Files
BlogPosts/.obsidian/plugins/nutstore-sync/main.js

34 lines
959 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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

function _array_like_to_array(arr1,len){if(len==null||len>arr1.length)len=arr1.length;for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr1[i];return arr2}function _array_with_holes(arr1){if(Array.isArray(arr1))return arr1}function _array_without_holes(arr1){if(Array.isArray(arr1))return _array_like_to_array(arr1)}function _assert_this_initialized(self1){if(self1===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return self1}function _call_super(_this,derived,args){derived=_get_prototype_of(derived);return _possible_constructor_return(_this,_is_native_reflect_construct()?Reflect.construct(derived,args||[],_get_prototype_of(_this).constructor):derived.apply(_this,args))}function _class_call_check(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}function _construct(Parent,args,Class){if(_is_native_reflect_construct()){_construct=Reflect.construct}else{_construct=function construct(Parent,args,Class){var a=[null];a.push.apply(a,args);var Constructor=Function.bind.apply(Parent,a);var instance=new Constructor;if(Class)_set_prototype_of(instance,Class.prototype);return instance}}return _construct.apply(null,arguments)}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor)}}function _create_class(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);return Constructor}function _define_property(obj,key,value){if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true})}else{obj[key]=value}return obj}function _get(target,property,receiver){if(typeof Reflect!=="undefined"&&Reflect.get){_get=Reflect.get}else{_get=function get(target,property,receiver){var base=_super_prop_base(target,property);if(!base)return;var desc=Object.getOwnPropertyDescriptor(base,property);if(desc.get){return desc.get.call(receiver||target)}return desc.value}}return _get(target,property,receiver||target)}function _get_prototype_of(o){_get_prototype_of=Object.setPrototypeOf?Object.getPrototypeOf:function getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o)};return _get_prototype_of(o)}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function")}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:true,configurable:true}});if(superClass)_set_prototype_of(subClass,superClass)}function _instanceof(left,right){if(right!=null&&typeof Symbol!=="undefined"&&right[Symbol.hasInstance]){return!!right[Symbol.hasInstance](left)}else{return left instanceof right}}function _is_native_function(fn){return Function.toString.call(fn).indexOf("[native code]")!==-1}function _iterable_to_array(iter){if(typeof Symbol!=="undefined"&&iter[Symbol.iterator]!=null||iter["@@iterator"]!=null)return Array.from(iter)}function _iterable_to_array_limit(arr1,i){var _i1=arr1==null?null:typeof Symbol!=="undefined"&&arr1[Symbol.iterator]||arr1["@@iterator"];if(_i1==null)return;var _arr=[];var _n=true;var _d1=false;var _s1,_e;try{for(_i1=_i1.call(arr1);!(_n=(_s1=_i1.next()).done);_n=true){_arr.push(_s1.value);if(i&&_arr.length===i)break}}catch(err1){_d1=true;_e=err1}finally{try{if(!_n&&_i1["return"]!=null)_i1["return"]()}finally{if(_d1)throw _e}}return _arr}function _non_iterable_rest(){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 _non_iterable_spread(){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 _possible_constructor_return(self1,call){if(call&&(_type_of(call)==="object"||typeof call==="function")){return call}return _assert_this_initialized(self1)}function _set_prototype_of(o,p){_set_prototype_of=Object.setPrototypeOf||function setPrototypeOf(o,p){o.__proto__=p;return o};return _set_prototype_of(o,p)}function _sliced_to_array(arr1,i){return _array_with_holes(arr1)||_iterable_to_array_limit(arr1,i)||_unsupported_iterable_to_array(arr1,i)||_non_iterable_rest()}function _super_prop_base(object,property){while(!Object.prototype.hasOwnProperty.call(object,property)){object=_get_prototype_of(object);if(object===null)break}return object}function _to_array(arr1){return _array_with_holes(arr1)||_iterable_to_array(arr1)||_unsupported_iterable_to_array(arr1)||_non_iterable_rest()}function _to_consumable_array(arr1){return _array_without_holes(arr1)||_iterable_to_array(arr1)||_unsupported_iterable_to_array(arr1)||_non_iterable_spread()}function _type_of(obj){"@swc/helpers - typeof";return obj&&typeof Symbol!=="undefined"&&obj.constructor===Symbol?"symbol":typeof obj}function _unsupported_iterable_to_array(o,minLen){if(!o)return;if(typeof o==="string")return _array_like_to_array(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor)n=o.constructor.name;if(n==="Map"||n==="Set")return Array.from(n);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _array_like_to_array(o,minLen)}function _wrap_native_super(Class){var _cache=typeof Map==="function"?new Map:undefined;_wrap_native_super=function wrapNativeSuper(Class){if(Class===null||!_is_native_function(Class))return Class;if(typeof Class!=="function"){throw new TypeError("Super expression must either be null or a function")}if(typeof _cache!=="undefined"){if(_cache.has(Class))return _cache.get(Class);_cache.set(Class,Wrapper)}function Wrapper(){return _construct(Class,arguments,_get_prototype_of(this).constructor)}Wrapper.prototype=Object.create(Class.prototype,{constructor:{value:Wrapper,enumerable:false,writable:true,configurable:true}});return _set_prototype_of(Wrapper,Class)};return _wrap_native_super(Class)}function _is_native_reflect_construct(){try{var result=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(_){}return(_is_native_reflect_construct=function(){return!!result})()}function _ts_generator(thisArg,body){var f,y,t,_={label:0,sent:function(){if(t[0]&1)throw t[1];return t[1]},trys:[],ops:[]},g1=Object.create((typeof Iterator==="function"?Iterator:Object).prototype),d=Object.defineProperty;return d(g1,"next",{value:verb(0)}),d(g1,"throw",{value:verb(1)}),d(g1,"return",{value:verb(2)}),typeof Symbol==="function"&&d(g1,Symbol.iterator,{value:function(){return this}}),g1;function verb(n){return function(v){return step([n,v])}}function step(op1){if(f)throw new TypeError("Generator is already executing.");while(g1&&(g1=0,op1[0]&&(_=0)),_)try{if(f=1,y&&(t=op1[0]&2?y["return"]:op1[0]?y["throw"]||((t=y["return"])&&t.call(y),0):y.next)&&!(t=t.call(y,op1[1])).done)return t;if(y=0,t)op1=[op1[0]&2,t.value];switch(op1[0]){case 0:case 1:t=op1;break;case 4:_.label++;return{value:op1[1],done:false};case 5:_.label++;y=op1[1];op1=[0];continue;case 7:op1=_.ops.pop();_.trys.pop();continue;default:if(!(t=_.trys,t=t.length>0&&t[t.length-1])&&(op1[0]===6||op1[0]===2)){_=0;continue}if(op1[0]===3&&(!t||op1[1]>t[0]&&op1[1]<t[3])){_.label=op1[1];break}if(op1[0]===6&&_.label<t[1]){_.label=t[1];t=op1;break}if(t&&_.label<t[2]){_.label=t[2];_.ops.push(op1);break}if(t[2])_.ops.pop();_.trys.pop();continue}op1=body.call(thisArg,_)}catch(e){op1=[6,e];y=0}finally{f=t=0}if(op1[0]&5)throw op1[1];return{value:op1[0]?op1[1]:void 0,done:true}}}var Nte=Object.create;var sl=Object.defineProperty,kte=Object.defineProperties,Lte=Object.getOwnPropertyDescriptor,Dte=Object.getOwnPropertyDescriptors,Wte=Object.getOwnPropertyNames,r3=Object.getOwnPropertySymbols,t3=Object.getPrototypeOf,n3=Object.prototype.hasOwnProperty,Mte=Object.prototype.propertyIsEnumerable,Fte=Reflect.get;var i3=Math.pow,nm=function(r,e,t){return e in r?sl(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t},j=function(r,e){for(var t in e||(e={}))n3.call(e,t)&&nm(r,t,e[t]);var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;if(r3)try{for(var _iterator=r3(e)[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var t=_step.value;Mte.call(e,t)&&nm(r,t,e[t])}}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}return r},Se=function(r,e){return kte(r,Dte(e))};var Ds=function(r,e){return function(){return r&&(e=r(r=0)),e}};var g=function(r,e){return function(){return e||r((e={exports:{}}).exports,e),e.exports}},Bte=function(r,e){for(var t in e)sl(r,t,{get:e[t],enumerable:!0})},a3=function(r,e,t,n){var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;if(e&&(typeof e==="undefined"?"undefined":_type_of(e))=="object"||typeof e=="function")try{var _loop=function(){var i=_step.value;!n3.call(r,i)&&i!==t&&sl(r,i,{get:function(){return e[i]},enumerable:!(n=Lte(e,i))||n.enumerable})};for(var _iterator=Wte(e)[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true)_loop()}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}return r};var ze=function(r,e,t){return t=r!=null?Nte(t3(r)):{},a3(e||!r||!r.__esModule?sl(t,"default",{value:r,enumerable:!0}):t,r)},Ute=function(r){return a3(sl({},"__esModule",{value:!0}),r)};var rr=function(r,e,t){return nm(r,(typeof e==="undefined"?"undefined":_type_of(e))!="symbol"?e+"":e,t),t},im=function(r,e,t){if(!e.has(r))throw TypeError("Cannot "+t)};var se=function(r,e,t){return im(r,e,"read from private field"),t?t.call(r):e.get(r)},vt=function(r,e,t){if(e.has(r))throw TypeError("Cannot add the same private member more than once");_instanceof(e,WeakSet)?e.add(r):e.set(r,t)},kr=function(r,e,t,n){return im(r,e,"write to private field"),n?n.call(r,t):e.set(r,t),t};var da=function(r,e,t){return im(r,e,"access private method"),t},hp=function(r,e,t){return Fte(t3(r),t,e)};var D=function(r,e,t){return new Promise(function(n,i){var a=function(u){try{s(t.next(u))}catch(c){i(c)}},o=function(u){try{s(t.throw(u))}catch(c){i(c)}},s=function(u){return u.done?n(u.value):Promise.resolve(u.value).then(a,o)};s((t=t.apply(r,e)).next())})};var s3=g(function(ul){var o3=function o3(r){for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",t=[],n=0;n<r.length;n+=3){var i=r[n],a=n+1<r.length,o=a?r[n+1]:0,s=n+2<r.length,u=s?r[n+2]:0,c=i>>2,l=(i&3)<<4|o>>4,f=(o&15)<<2|u>>6,d=u&63;s||(d=64,a||(f=64)),t.push(e[c],e[l],e[f],e[d])}return t.join("")};(function(r){(function(e){typeof define=="function"&&define.amd?define(["exports"],e):(typeof ul==="undefined"?"undefined":_type_of(ul))=="object"&&typeof ul.nodeName!="string"?e(ul):e(r)})(function(e){"use strict";var t=r.BlobBuilder||r.WebKitBlobBuilder||r.MSBlobBuilder||r.MozBlobBuilder,n=r.URL||r.webkitURL||function(E,O){return O=document.createElement("a"),O.href=E,O},i=r.Blob,a=n.createObjectURL,o=n.revokeObjectURL,s=r.Symbol&&r.Symbol.toStringTag,u=!1,c=!1,l=t&&t.prototype.append&&t.prototype.getBlob;try{u=new Blob(["\xe4"]).size===2,c=new Blob([new Uint8Array([1,2])]).size===2}catch(E){}function f(E){return E.map(function(O){if(_instanceof(O.buffer,ArrayBuffer)){var I=O.buffer;if(O.byteLength!==I.byteLength){var N=new Uint8Array(O.byteLength);N.set(new Uint8Array(I,O.byteOffset,O.byteLength)),I=N.buffer}return I}return O})}function d(E,O){O=O||{};var I=new t;return f(E).forEach(function(N){I.append(N)}),O.type?I.getBlob(O.type):I.getBlob()}function p(E,O){return new i(f(E),O||{})}r.Blob&&(d.prototype=r.Blob.prototype,p.prototype=r.Blob.prototype);function x(E){for(var O=0,I=E.length,N=r.Uint8Array||Array,k=0,B=Math.max(32,I+(I>>1)+7),U=new N(B>>3<<3);O<I;){var $=E.charCodeAt(O++);if($>=55296&&$<=56319){if(O<I){var X=E.charCodeAt(O);(X&64512)===56320&&(++O,$=(($&1023)<<10)+(X&1023)+65536)}if($>=55296&&$<=56319)continue}if(k+4>U.length){B+=8,B*=1+O/E.length*2,B=B>>3<<3;var le=new Uint8Array(B);le.set(U),U=le}if($&0xffffff80)if(!($&0xfffff800))U[k++]=$>>6&31|192;else if(!($&0xffff0000))U[k++]=$>>12&15|224,U[k++]=$>>6&63|128;else if(!($&0xffe00000))U[k++]=$>>18&7|240,U[k++]=$>>12&63|128,U[k++]=$>>6&63|128;else continue;else{U[k++]=$;continue}U[k++]=$&63|128}return U.slice(0,k)}function h(E){for(var O=E.length,I=[],N=0;N<O;){var k=E[N],B=null,U=k>239?4:k>223?3:k>191?2:1;if(N+U<=O){var $,X,le,K;switch(U){case 1:k<128&&(B=k);break;case 2:$=E[N+1],($&192)===128&&(K=(k&31)<<6|$&63,K>127&&(B=K));break;case 3:$=E[N+1],X=E[N+2],($&192)===128&&(X&192)===128&&(K=(k&15)<<12|($&63)<<6|X&63,K>2047&&(K<55296||K>57343)&&(B=K));break;case 4:$=E[N+1],X=E[N+2],le=E[N+3],($&192)===128&&(X&192)===128&&(le&192)===128&&(K=(k&15)<<18|($&63)<<12|(X&63)<<6|le&63,K>65535&&K<1114112&&(B=K))}}B===null?(B=65533,U=1):B>65535&&(B-=65536,I.push(B>>>10&1023|55296),B=56320|B&1023),I.push(B),N+=U}for(var qe=I.length,V="",fe=0;fe<qe;)V+=String.fromCharCode.apply(String,I.slice(fe,fe+=4096));return V}var v=typeof TextEncoder=="function"?TextEncoder.prototype.encode.bind(new TextEncoder):x,y=typeof TextDecoder=="function"?TextDecoder.prototype.decode.bind(new TextDecoder):h;function m(){function E(V){for(var fe=new Array(V.byteLength),me=new Uint8Array(V),be=fe.length;be--;)fe[be]=me[be];return fe}var O=Object.create||function(V){function fe(){}return fe.prototype=V,new fe};function I(V){return Object.prototype.toString.call(V).slice(8,-1)}function N(V,fe){return(typeof V==="undefined"?"undefined":_type_of(V))=="object"&&Object.prototype.isPrototypeOf.call(V.prototype,fe)}function k(V){return I(V)==="DataView"||N(r.DataView,V)}var B=["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","ArrayBuffer"];function U(V,fe){return V.indexOf(fe)!==-1}function $(V){return U(B,I(V))||N(r.ArrayBuffer,V)}function X(V){for(var fe=0,me=V.length;me--;)fe+=V[me].length;for(var be=new Uint8Array(fe),pe=0,Te=0;Te<V.length;Te++){var de=V[Te];be.set(de,pe),pe+=de.byteLength||de.length}return be}function le(V,fe){V=V?V.slice():[],fe=fe==null?{}:fe;for(var me=0,be=V.length;me<be;me++){var pe=V[me];_instanceof(pe,le)?V[me]=pe._buffer:typeof pe=="string"?V[me]=v(pe):k(pe)?V[me]=E(pe.buffer):$(pe)?V[me]=E(pe):V[me]=v(String(pe))}this._buffer=r.Uint8Array?X(V):[].concat.apply([],V),this.size=this._buffer.length,this.type=fe.type||"",/[^\u0020-\u007E]/.test(this.type)?this.type="":this.type=this.type.toLowerCase()}le.isPolyfill=!0,le.prototype.arrayBuffer=function(){return Promise.resolve(this._buffer.buffer||this._buffer)},le.prototype.text=function(){return Promise.resolve(y(this._buffer))},le.prototype.slice=function(V,fe,me){var be=this._buffer.slice(V||0,fe||this._buffer.length);return new le([be],{type:me})},le.prototype.toString=function(){return"[object Blob]"};function K(V,fe,me){me=me||{};var be=le.call(this,V,me)||this;return be.name=fe.replace(/\//g,":"),be.lastModifiedDate=me.lastModified?new Date(me.lastModified):new Date,be.lastModified=+be.lastModifiedDate,be}if(K.isPolyfill=!0,K.prototype=O(le.prototype),K.prototype.constructor=K,Object.setPrototypeOf)Object.setPrototypeOf(K,le);else try{K.__proto__=le}catch(V){}K.prototype.toString=function(){return"[object File]"},n.createObjectURL=function(V){return _instanceof(V,le)?"data:"+V.type+";base64,"+o3(V._buffer):a.call(n,V)},n.createObjectURL.isPolyfill=!0,n.revokeObjectURL=function(V){o&&o.call(n,V)},n.revokeObjectURL.isPolyfill=!0;var qe=r.XMLHttpRequest&&r.XMLHttpRequest.prototype.send;qe&&(XMLHttpRequest.prototype.send=function(V){_instanceof(V,le)?(this.setRequestHeader("Content-Type",V.type),qe.call(this,y(V._buffer))):qe.call(this,V)}),e.Blob=le,e.File=K}function b(){var E=!!r.ActiveXObject||typeof document!="undefined"&&"-ms-scroll-limit"in document.documentElement.style&&"-ms-ime-align"in document.documentElement.style,O=r.XMLHttpRequest&&r.XMLHttpRequest.prototype.send;E&&O&&(XMLHttpRequest.prototype.send=function(I){_instanceof(I,Blob)?(this.setRequestHeader("Content-Type",I.type),O.call(this,I)):O.call(this,I)});try{new File([],""),e.File=r.File}catch(I){try{e.File=new Function('class File extends Blob {constructor(chunks, name, opts) {opts = opts || {};super(chunks, opts || {});this.name = name.replace(/\\//g, ":");this.lastModifiedDate = opts.lastModified ? new Date(opts.lastModified) : new Date();this.lastModified = +this.lastModifiedDate;}};return new File([], ""), File')()}catch(N){e.File=function(B,U,$){var X=new Blob(B,$),le=$&&$.lastModified!==void 0?new Date($.lastModified):new Date;return X.name=U.replace(/\//g,":"),X.lastModifiedDate=le,X.lastModified=+le,X.toString=function(){return"[object File]"},s&&(X[s]="File"),X}}e.File.isPolyfill=!0}}u?(b(),e.Blob=c?r.Blob:p):l?(b(),e.Blob=d):m();function S(){if(!_instanceof(this,S))throw new TypeError("Failed to construct 'FileReader': Please use the 'new' operator, this DOM object constructor cannot be called as a function.");var E=document.createDocumentFragment();this.addEventListener=E.addEventListener,this.dispatchEvent=function(O){var I=this["on"+O.type];typeof I=="function"&&I(O),E.dispatchEvent(O)},this.removeEventListener=E.removeEventListener}function T(E,O,I){if(!_instanceof(O,e.Blob))throw new TypeError("Failed to execute '"+I+"' on 'FileReader': parameter 1 is not of type 'Blob'.");E.result="",setTimeout(function(){this.readyState=S.LOADING,E.dispatchEvent(new Event("load")),E.dispatchEvent(new Event("loadend"))})}S.EMPTY=0,S.LOADING=1,S.DONE=2,S.prototype.error=null,S.prototype.onabort=null,S.prototype.onerror=null,S.prototype.onload=null,S.prototype.onloadend=null,S.prototype.onloadstart=null,S.prototype.onprogress=null,S.prototype.readAsDataURL=function(E){T(this,E,"readAsDataURL"),this.result="data:"+E.type+";base64,"+o3(E._buffer)},S.prototype.readAsText=function(E){T(this,E,"readAsText"),this.result=y(E._buffer)},S.prototype.readAsArrayBuffer=function(E){T(this,E,"readAsText"),this.result=(E._buffer.buffer||E._buffer).slice()},S.prototype.abort=function(){},e.FileReader=r.FileReader||S,e.URL=r.URL||n,s&&(e.File.prototype[s]||(e.File.prototype[s]="File"),e.Blob.prototype[s]||(e.Blob.prototype[s]="Blob"),e.FileReader.prototype[s]||(e.FileReader.prototype[s]="FileReader"));var w=e.Blob.prototype,R;try{new ReadableStream({type:"bytes"}),R=function R(){var O=0,I=this;return new ReadableStream({type:"bytes",autoAllocateChunkSize:524288,pull:function pull(N){var k=N.byobRequest.view,B=I.slice(O,O+k.byteLength);return B.arrayBuffer().then(function(U){var $=new Uint8Array(U),X=$.byteLength;O+=X,k.set($),N.byobRequest.respond(X),O>=I.size&&N.close()})}})}}catch(E){try{new ReadableStream({}),R=function R(I){var N=0;return new ReadableStream({pull:function pull(k){var B=I.slice(N,N+524288);return B.arrayBuffer().then(function(U){N+=U.byteLength;var $=new Uint8Array(U);k.enqueue($),N==I.size&&k.close()})}})}}catch(O){try{new Response("").body.getReader().read(),R=function R(){return new Response(this).body}}catch(I){R=function R(){throw new Error("Include https://github.com/MattiasBuelens/web-streams-polyfill")}}}}function _(E){return new Promise(function(O,I){E.onload=E.onerror=function(N){E.onload=E.onerror=null,N.type==="load"?O(E.result||E):I(new Error("Failed to read the blob/file"))}})}w.arrayBuffer||(w.arrayBuffer=function(){var O=new e.FileReader;return O.readAsArrayBuffer(this),_(O)}),w.text||(w.text=function(){var O=new e.FileReader;return O.readAsText(this),_(O)}),w.stream||(w.stream=R)})})(typeof self!="undefined"&&self||typeof window!="undefined"&&window||typeof global!="undefined"&&global||ul)});var ne=g(function(am,u3){"use strict";var cl=function cl(r){return r&&r.Math===Math&&r};u3.exports=cl((typeof globalThis==="undefined"?"undefined":_type_of(globalThis))=="object"&&globalThis)||cl((typeof window==="undefined"?"undefined":_type_of(window))=="object"&&window)||cl((typeof self==="undefined"?"undefined":_type_of(self))=="object"&&self)||cl((typeof global==="undefined"?"undefined":_type_of(global))=="object"&&global)||cl((typeof am==="undefined"?"undefined":_type_of(am))=="object"&&am)||function(){return this}()||Function("return this")()});var z=g(function(Grr,c3){"use strict";c3.exports=function(r){try{return!!r()}catch(e){return!0}}});var ye=g(function(zrr,l3){"use strict";var jte=z();l3.exports=!jte(function(){return Object.defineProperty({},1,{get:function get(){return 7}})[1]!==7})});var Ws=g(function(Krr,f3){"use strict";var $te=z();f3.exports=!$te(function(){var r=(function(){}).bind();return typeof r!="function"||r.hasOwnProperty("prototype")})});var he=g(function(Hrr,d3){"use strict";var Vte=Ws(),xp=Function.prototype.call;d3.exports=Vte?xp.bind(xp):function(){return xp.apply(xp,arguments)}});var ll=g(function(x3){"use strict";var p3={}.propertyIsEnumerable,h3=Object.getOwnPropertyDescriptor,Gte=h3&&!p3.call({1:2},1);x3.f=Gte?function(e){var t=h3(this,e);return!!t&&t.enumerable}:p3});var Wt=g(function(Xrr,g3){"use strict";g3.exports=function(r,e){return{enumerable:!(r&1),configurable:!(r&2),writable:!(r&4),value:e}}});var Q=g(function(Yrr,y3){"use strict";var v3=Ws(),m3=Function.prototype,om=m3.call,zte=v3&&m3.bind.bind(om,om);y3.exports=v3?zte:function(r){return function(){return om.apply(r,arguments)}}});var ut=g(function(Jrr,_3){"use strict";var b3=Q(),Kte=b3({}.toString),Hte=b3("".slice);_3.exports=function(r){return Hte(Kte(r),8,-1)}});var qo=g(function(Zrr,w3){"use strict";var Qte=Q(),Xte=z(),Yte=ut(),sm=Object,Jte=Qte("".split);w3.exports=Xte(function(){return!sm("z").propertyIsEnumerable(0)})?function(r){return Yte(r)==="String"?Jte(r,""):sm(r)}:sm});var Yn=g(function(etr,S3){"use strict";S3.exports=function(r){return r==null}});var mr=g(function(rtr,E3){"use strict";var Zte=Yn(),ene=TypeError;E3.exports=function(r){if(Zte(r))throw new ene("Can't call method on "+r);return r}});var Vr=g(function(ttr,q3){"use strict";var rne=qo(),tne=mr();q3.exports=function(r){return rne(tne(r))}});var We=g(function(ntr,T3){"use strict";var um=(typeof document==="undefined"?"undefined":_type_of(document))=="object"&&document.all;T3.exports=typeof um=="undefined"&&um!==void 0?function(r){return typeof r=="function"||r===um}:function(r){return typeof r=="function"}});var we=g(function(itr,A3){"use strict";var nne=We();A3.exports=function(r){return(typeof r==="undefined"?"undefined":_type_of(r))=="object"?r!==null:nne(r)}});var Ce=g(function(atr,O3){"use strict";var cm=ne(),ine=We(),ane=function ane(r){return ine(r)?r:void 0};O3.exports=function(r,e){return arguments.length<2?ane(cm[r]):cm[r]&&cm[r][e]}});var mt=g(function(otr,R3){"use strict";var one=Q();R3.exports=one({}.isPrototypeOf)});var Pn=g(function(str,C3){"use strict";var sne=ne(),I3=sne.navigator,P3=I3&&I3.userAgent;C3.exports=P3?String(P3):""});var Nn=g(function(utr,M3){"use strict";var W3=ne(),lm=Pn(),N3=W3.process,k3=W3.Deno,L3=N3&&N3.versions||k3&&k3.version,D3=L3&&L3.v8,Cn,gp;D3&&(Cn=D3.split("."),gp=Cn[0]>0&&Cn[0]<4?1:+(Cn[0]+Cn[1]));!gp&&lm&&(Cn=lm.match(/Edge\/(\d+)/),(!Cn||Cn[1]>=74)&&(Cn=lm.match(/Chrome\/(\d+)/),Cn&&(gp=+Cn[1])));M3.exports=gp});var pa=g(function(ctr,B3){"use strict";var F3=Nn(),une=z(),cne=ne(),lne=cne.String;B3.exports=!!Object.getOwnPropertySymbols&&!une(function(){var r=Symbol("symbol detection");return!lne(r)||!_instanceof(Object(r),Symbol)||!Symbol.sham&&F3&&F3<41})});var fm=g(function(ltr,U3){"use strict";var fne=pa();U3.exports=fne&&!Symbol.sham&&_type_of(Symbol.iterator)=="symbol"});var ha=g(function(ftr,j3){"use strict";var dne=Ce(),pne=We(),hne=mt(),xne=fm(),gne=Object;j3.exports=xne?function(r){return(typeof r==="undefined"?"undefined":_type_of(r))=="symbol"}:function(r){var e=dne("Symbol");return pne(e)&&hne(e.prototype,gne(r))}});var xa=g(function(dtr,$3){"use strict";var vne=String;$3.exports=function(r){try{return vne(r)}catch(e){return"Object"}}});var ke=g(function(ptr,V3){"use strict";var mne=We(),yne=xa(),bne=TypeError;V3.exports=function(r){if(mne(r))return r;throw new bne(yne(r)+" is not a function")}});var Xr=g(function(htr,G3){"use strict";var _ne=ke(),wne=Yn();G3.exports=function(r,e){var t=r[e];return wne(t)?void 0:_ne(t)}});var xm=g(function(xtr,z3){"use strict";var dm=he(),pm=We(),hm=we(),Sne=TypeError;z3.exports=function(r,e){var t,n;if(e==="string"&&pm(t=r.toString)&&!hm(n=dm(t,r))||pm(t=r.valueOf)&&!hm(n=dm(t,r))||e!=="string"&&pm(t=r.toString)&&!hm(n=dm(t,r)))return n;throw new Sne("Can't convert object to primitive value")}});var Ke=g(function(gtr,K3){"use strict";K3.exports=!1});var vp=g(function(vtr,Q3){"use strict";var H3=ne(),Ene=Object.defineProperty;Q3.exports=function(r,e){try{Ene(H3,r,{value:e,configurable:!0,writable:!0})}catch(t){H3[r]=e}return e}});var fl=g(function(mtr,J3){"use strict";var qne=Ke(),Tne=ne(),Ane=vp(),X3="__core-js_shared__",Y3=J3.exports=Tne[X3]||Ane(X3,{});(Y3.versions||(Y3.versions=[])).push({version:"3.47.0",mode:qne?"pure":"global",copyright:"\xa9 2014-2025 Denis Pushkarev (zloirock.ru), 2025 CoreJS Company (core-js.io)",license:"https://github.com/zloirock/core-js/blob/v3.47.0/LICENSE",source:"https://github.com/zloirock/core-js"})});var To=g(function(ytr,e5){"use strict";var Z3=fl();e5.exports=function(r,e){return Z3[r]||(Z3[r]=e||{})}});var Ve=g(function(btr,r5){"use strict";var One=mr(),Rne=Object;r5.exports=function(r){return Rne(One(r))}});var Ne=g(function(_tr,t5){"use strict";var Ine=Q(),Pne=Ve(),Cne=Ine({}.hasOwnProperty);t5.exports=Object.hasOwn||function(e,t){return Cne(Pne(e),t)}});var ga=g(function(wtr,n5){"use strict";var Nne=Q(),kne=0,Lne=Math.random(),Dne=Nne(1.1.toString);n5.exports=function(r){return"Symbol("+(r===void 0?"":r)+")_"+Dne(++kne+Lne,36)}});var Ee=g(function(Str,a5){"use strict";var Wne=ne(),Mne=To(),i5=Ne(),Fne=ga(),Bne=pa(),Une=fm(),Ms=Wne.Symbol,gm=Mne("wks"),jne=Une?Ms.for||Ms:Ms&&Ms.withoutSetter||Fne;a5.exports=function(r){return i5(gm,r)||(gm[r]=Bne&&i5(Ms,r)?Ms[r]:jne("Symbol."+r)),gm[r]}});var dl=g(function(Etr,u5){"use strict";var $ne=he(),o5=we(),s5=ha(),Vne=Xr(),Gne=xm(),zne=Ee(),Kne=TypeError,Hne=zne("toPrimitive");u5.exports=function(r,e){if(!o5(r)||s5(r))return r;var t=Vne(r,Hne),n;if(t){if(e===void 0&&(e="default"),n=$ne(t,r,e),!o5(n)||s5(n))return n;throw new Kne("Can't convert object to primitive value")}return e===void 0&&(e="number"),Gne(r,e)}});var Ai=g(function(qtr,c5){"use strict";var Qne=dl(),Xne=ha();c5.exports=function(r){var e=Qne(r,"string");return Xne(e)?e:e+""}});var pl=g(function(Ttr,f5){"use strict";var Yne=ne(),l5=we(),vm=Yne.document,Jne=l5(vm)&&l5(vm.createElement);f5.exports=function(r){return Jne?vm.createElement(r):{}}});var mm=g(function(Atr,d5){"use strict";var Zne=ye(),eie=z(),rie=pl();d5.exports=!Zne&&!eie(function(){return Object.defineProperty(rie("div"),"a",{get:function get(){return 7}}).a!==7})});var Yr=g(function(h5){"use strict";var tie=ye(),nie=he(),iie=ll(),aie=Wt(),oie=Vr(),sie=Ai(),uie=Ne(),cie=mm(),p5=Object.getOwnPropertyDescriptor;h5.f=tie?p5:function(e,t){if(e=oie(e),t=sie(t),cie)try{return p5(e,t)}catch(n){}if(uie(e,t))return aie(!nie(iie.f,e,t),e[t])}});var ym=g(function(Rtr,x5){"use strict";var lie=ye(),fie=z();x5.exports=lie&&fie(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var ge=g(function(Itr,g5){"use strict";var die=we(),pie=String,hie=TypeError;g5.exports=function(r){if(die(r))return r;throw new hie(pie(r)+" is not an object")}});var pr=g(function(m5){"use strict";var xie=ye(),gie=mm(),vie=ym(),mp=ge(),v5=Ai(),mie=TypeError,bm=Object.defineProperty,yie=Object.getOwnPropertyDescriptor,_m="enumerable",wm="configurable",Sm="writable";m5.f=xie?vie?function(e,t,n){if(mp(e),t=v5(t),mp(n),typeof e=="function"&&t==="prototype"&&"value"in n&&Sm in n&&!n[Sm]){var i=yie(e,t);i&&i[Sm]&&(e[t]=n.value,n={configurable:wm in n?n[wm]:i[wm],enumerable:_m in n?n[_m]:i[_m],writable:!1})}return bm(e,t,n)}:bm:function(e,t,n){if(mp(e),t=v5(t),mp(n),gie)try{return bm(e,t,n)}catch(i){}if("get"in n||"set"in n)throw new mie("Accessors not supported");return"value"in n&&(e[t]=n.value),e}});var Jr=g(function(Ctr,y5){"use strict";var bie=ye(),_ie=pr(),wie=Wt();y5.exports=bie?function(r,e,t){return _ie.f(r,e,wie(1,t))}:function(r,e,t){return r[e]=t,r}});var Ao=g(function(Ntr,_5){"use strict";var Em=ye(),Sie=Ne(),b5=Function.prototype,Eie=Em&&Object.getOwnPropertyDescriptor,qm=Sie(b5,"name"),qie=qm&&(function(){}).name==="something",Tie=qm&&(!Em||Em&&Eie(b5,"name").configurable);_5.exports={EXISTS:qm,PROPER:qie,CONFIGURABLE:Tie}});var yp=g(function(ktr,w5){"use strict";var Aie=Q(),Oie=We(),Tm=fl(),Rie=Aie(Function.toString);Oie(Tm.inspectSource)||(Tm.inspectSource=function(r){return Rie(r)});w5.exports=Tm.inspectSource});var Am=g(function(Ltr,E5){"use strict";var Iie=ne(),Pie=We(),S5=Iie.WeakMap;E5.exports=Pie(S5)&&/native code/.test(String(S5))});var hl=g(function(Dtr,T5){"use strict";var Cie=To(),Nie=ga(),q5=Cie("keys");T5.exports=function(r){return q5[r]||(q5[r]=Nie(r))}});var Fs=g(function(Wtr,A5){"use strict";A5.exports={}});var hr=g(function(Mtr,I5){"use strict";var kie=Am(),R5=ne(),Lie=we(),Die=Jr(),Om=Ne(),Rm=fl(),Wie=hl(),Mie=Fs(),O5="Object already initialized",Im=R5.TypeError,Fie=R5.WeakMap,bp,xl,_p,Bie=function Bie(r){return _p(r)?xl(r):bp(r,{})},Uie=function Uie(r){return function(e){var t;if(!Lie(e)||(t=xl(e)).type!==r)throw new Im("Incompatible receiver, "+r+" required");return t}};kie||Rm.state?(kn=Rm.state||(Rm.state=new Fie),kn.get=kn.get,kn.has=kn.has,kn.set=kn.set,bp=function bp(r,e){if(kn.has(r))throw new Im(O5);return e.facade=r,kn.set(r,e),e},xl=function xl(r){return kn.get(r)||{}},_p=function _p(r){return kn.has(r)}):(Oo=Wie("state"),Mie[Oo]=!0,bp=function bp(r,e){if(Om(r,Oo))throw new Im(O5);return e.facade=r,Die(r,Oo,e),e},xl=function xl(r){return Om(r,Oo)?r[Oo]:{}},_p=function _p(r){return Om(r,Oo)});var kn,Oo;I5.exports={set:bp,get:xl,has:_p,enforce:Bie,getterFor:Uie}});var Ep=g(function(Ftr,N5){"use strict";var Cm=Q(),jie=z(),$ie=We(),wp=Ne(),Pm=ye(),Vie=Ao().CONFIGURABLE,Gie=yp(),C5=hr(),zie=C5.enforce,Kie=C5.get,P5=String,Sp=Object.defineProperty,Hie=Cm("".slice),Qie=Cm("".replace),Xie=Cm([].join),Yie=Pm&&!jie(function(){return Sp(function(){},"length",{value:8}).length!==8}),Jie=String(String).split("String"),Zie=N5.exports=function Zie(r,e,t){Hie(P5(e),0,7)==="Symbol("&&(e="["+Qie(P5(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),t&&t.getter&&(e="get "+e),t&&t.setter&&(e="set "+e),(!wp(r,"name")||Vie&&r.name!==e)&&(Pm?Sp(r,"name",{value:e,configurable:!0}):r.name=e),Yie&&t&&wp(t,"arity")&&r.length!==t.arity&&Sp(r,"length",{value:t.arity});try{t&&wp(t,"constructor")&&t.constructor?Pm&&Sp(r,"prototype",{writable:!1}):r.prototype&&(r.prototype=void 0)}catch(i){}var n=zie(r);return wp(n,"source")||(n.source=Xie(Jie,typeof e=="string"?e:"")),r};Function.prototype.toString=Zie(function(){return $ie(this)&&Kie(this).source||Gie(this)},"toString")});var tr=g(function(Btr,k5){"use strict";var eae=We(),rae=pr(),tae=Ep(),nae=vp();k5.exports=function(r,e,t,n){n||(n={});var i=n.enumerable,a=n.name!==void 0?n.name:e;if(eae(t)&&tae(t,a,n),n.global)i?r[e]=t:nae(e,t);else{try{n.unsafe?r[e]&&(i=!0):delete r[e]}catch(o){}i?r[e]=t:rae.f(r,e,{value:t,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return r}});var Nm=g(function(Utr,L5){"use strict";var iae=Math.ceil,aae=Math.floor;L5.exports=Math.trunc||function(e){var t=+e;return(t>0?aae:iae)(t)}});var Sr=g(function(jtr,D5){"use strict";var oae=Nm();D5.exports=function(r){var e=+r;return e!==e||e===0?0:oae(e)}});var Jn=g(function($tr,W5){"use strict";var sae=Sr(),uae=Math.max,cae=Math.min;W5.exports=function(r,e){var t=sae(r);return t<0?uae(t+e,0):cae(t,e)}});var Mt=g(function(Vtr,M5){"use strict";var lae=Sr(),fae=Math.min;M5.exports=function(r){var e=lae(r);return e>0?fae(e,0x1fffffffffffff):0}});var nr=g(function(Gtr,F5){"use strict";var dae=Mt();F5.exports=function(r){return dae(r.length)}});var Bs=g(function(ztr,U5){"use strict";var pae=Vr(),hae=Jn(),xae=nr(),B5=function B5(r){return function(e,t,n){var i=pae(e),a=xae(i);if(a===0)return!r&&-1;var o=hae(n,a),s;if(r&&t!==t){for(;a>o;)if(s=i[o++],s!==s)return!0}else for(;a>o;o++)if((r||o in i)&&i[o]===t)return r||o||0;return!r&&-1}};U5.exports={includes:B5(!0),indexOf:B5(!1)}});var Lm=g(function(Ktr,$5){"use strict";var gae=Q(),km=Ne(),vae=Vr(),mae=Bs().indexOf,yae=Fs(),j5=gae([].push);$5.exports=function(r,e){var t=vae(r),n=0,i=[],a;for(a in t)!km(yae,a)&&km(t,a)&&j5(i,a);for(;e.length>n;)km(t,a=e[n++])&&(~mae(i,a)||j5(i,a));return i}});var qp=g(function(Htr,V5){"use strict";V5.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var va=g(function(G5){"use strict";var bae=Lm(),_ae=qp(),wae=_ae.concat("length","prototype");G5.f=Object.getOwnPropertyNames||function(e){return bae(e,wae)}});var gl=g(function(z5){"use strict";z5.f=Object.getOwnPropertySymbols});var Tp=g(function(Ytr,K5){"use strict";var Sae=Ce(),Eae=Q(),qae=va(),Tae=gl(),Aae=ge(),Oae=Eae([].concat);K5.exports=Sae("Reflect","ownKeys")||function(e){var t=qae.f(Aae(e)),n=Tae.f;return n?Oae(t,n(e)):t}});var Ro=g(function(Jtr,Q5){"use strict";var H5=Ne(),Rae=Tp(),Iae=Yr(),Pae=pr();Q5.exports=function(r,e,t){for(var n=Rae(e),i=Pae.f,a=Iae.f,o=0;o<n.length;o++){var s=n[o];!H5(r,s)&&!(t&&H5(t,s))&&i(r,s,a(e,s))}}});var Us=g(function(Ztr,X5){"use strict";var Cae=z(),Nae=We(),kae=/#|\.prototype\./,vl=function vl(r,e){var t=Dae[Lae(r)];return t===Mae?!0:t===Wae?!1:Nae(e)?Cae(e):!!e},Lae=vl.normalize=function Lae(r){return String(r).replace(kae,".").toLowerCase()},Dae=vl.data={},Wae=vl.NATIVE="N",Mae=vl.POLYFILL="P";X5.exports=vl});var C=g(function(enr,Y5){"use strict";var Ap=ne(),Fae=Yr().f,Bae=Jr(),Uae=tr(),jae=vp(),$ae=Ro(),Vae=Us();Y5.exports=function(r,e){var t=r.target,n=r.global,i=r.stat,a,o,s,u,c,l;if(n?o=Ap:i?o=Ap[t]||jae(t,{}):o=Ap[t]&&Ap[t].prototype,o)for(s in e){if(c=e[s],r.dontCallGetSet?(l=Fae(o,s),u=l&&l.value):u=o[s],a=Vae(n?s:t+(i?".":"#")+s,r.forced),!a&&u!==void 0){if((typeof c==="undefined"?"undefined":_type_of(c))==(typeof u==="undefined"?"undefined":_type_of(u)))continue;$ae(c,u)}(r.sham||u&&u.sham)&&Bae(c,"sham",!0),Uae(o,s,c,r)}}});var Op=g(function(rnr,Z5){"use strict";var Gae=Ee(),zae=Gae("toStringTag"),J5={};J5[zae]="z";Z5.exports=String(J5)==="[object z]"});var Ft=g(function(tnr,e4){"use strict";var Kae=Op(),Hae=We(),Rp=ut(),Qae=Ee(),Xae=Qae("toStringTag"),Yae=Object,Jae=Rp(function(){return arguments}())==="Arguments",Zae=function Zae(r,e){try{return r[e]}catch(t){}};e4.exports=Kae?Rp:function(r){var e,t,n;return r===void 0?"Undefined":r===null?"Null":typeof(t=Zae(e=Yae(r),Xae))=="string"?t:Jae?Rp(e):(n=Rp(e))==="Object"&&Hae(e.callee)?"Arguments":n}});var Oe=g(function(nnr,r4){"use strict";var eoe=Ft(),roe=String;r4.exports=function(r){if(eoe(r)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return roe(r)}});var js=g(function(inr,t4){"use strict";var toe=Lm(),noe=qp();t4.exports=Object.keys||function(e){return toe(e,noe)}});var Ip=g(function(n4){"use strict";var ioe=ye(),aoe=ym(),ooe=pr(),soe=ge(),uoe=Vr(),coe=js();n4.f=ioe&&!aoe?Object.defineProperties:function(e,t){soe(e);for(var n=uoe(t),i=coe(t),a=i.length,o=0,s;a>o;)ooe.f(e,s=i[o++],n[s]);return e}});var Dm=g(function(onr,i4){"use strict";var loe=Ce();i4.exports=loe("document","documentElement")});var Zr=g(function(snr,f4){"use strict";var foe=ge(),doe=Ip(),a4=qp(),poe=Fs(),hoe=Dm(),xoe=pl(),goe=hl(),o4=">",s4="<",Mm="prototype",Fm="script",c4=goe("IE_PROTO"),Wm=function Wm(){},l4=function l4(r){return s4+Fm+o4+r+s4+"/"+Fm+o4},u4=function u4(r){r.write(l4("")),r.close();var e=r.parentWindow.Object;return r=null,e},voe=function voe(){var r=xoe("iframe"),e="java"+Fm+":",t;return r.style.display="none",hoe.appendChild(r),r.src=String(e),t=r.contentWindow.document,t.open(),t.write(l4("document.F=Object")),t.close(),t.F},Pp,Cp=function Cp1(){try{Pp=new ActiveXObject("htmlfile")}catch(e){}Cp=typeof document!="undefined"?document.domain&&Pp?u4(Pp):voe():u4(Pp);for(var r=a4.length;r--;)delete Cp[Mm][a4[r]];return Cp()};poe[c4]=!0;f4.exports=Object.create||function(e,t){var n;return e!==null?(Wm[Mm]=foe(e),n=new Wm,Wm[Mm]=null,n[c4]=e):n=Cp(),t===void 0?n:doe.f(n,t)}});var Zt=g(function(unr,d4){"use strict";var moe=Q();d4.exports=moe([].slice)});var Np=g(function(cnr,x4){"use strict";var yoe=ut(),boe=Vr(),p4=va().f,_oe=Zt(),h4=(typeof window==="undefined"?"undefined":_type_of(window))=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],woe=function woe(r){try{return p4(r)}catch(e){return _oe(h4)}};x4.exports.f=function(e){return h4&&yoe(e)==="Window"?woe(e):p4(boe(e))}});var Ir=g(function(lnr,v4){"use strict";var g4=Ep(),Soe=pr();v4.exports=function(r,e,t){return t.get&&g4(t.get,e,{getter:!0}),t.set&&g4(t.set,e,{setter:!0}),Soe.f(r,e,t)}});var Bm=g(function(m4){"use strict";var Eoe=Ee();m4.f=Eoe});var ml=g(function(dnr,y4){"use strict";var qoe=ne();y4.exports=qoe});var ct=g(function(pnr,_4){"use strict";var b4=ml(),Toe=Ne(),Aoe=Bm(),Ooe=pr().f;_4.exports=function(r){var e=b4.Symbol||(b4.Symbol={});Toe(e,r)||Ooe(e,r,{value:Aoe.f(r)})}});var Um=g(function(hnr,w4){"use strict";var Roe=he(),Ioe=Ce(),Poe=Ee(),Coe=tr();w4.exports=function(){var r=Ioe("Symbol"),e=r&&r.prototype,t=e&&e.valueOf,n=Poe("toPrimitive");e&&!e[n]&&Coe(e,n,function(i){return Roe(t,this)},{arity:1})}});var Tt=g(function(xnr,E4){"use strict";var Noe=pr().f,koe=Ne(),Loe=Ee(),S4=Loe("toStringTag");E4.exports=function(r,e,t){r&&!t&&(r=r.prototype),r&&!koe(r,S4)&&Noe(r,S4,{configurable:!0,value:e})}});var ma=g(function(gnr,q4){"use strict";var Doe=ut(),Woe=Q();q4.exports=function(r){if(Doe(r)==="Function")return Woe(r)}});var Bt=g(function(vnr,A4){"use strict";var T4=ma(),Moe=ke(),Foe=Ws(),Boe=T4(T4.bind);A4.exports=function(r,e){return Moe(r),e===void 0?r:Foe?Boe(r,e):function(){return r.apply(e,arguments)}}});var Zn=g(function(mnr,O4){"use strict";var Uoe=ut();O4.exports=Array.isArray||function(e){return Uoe(e)==="Array"}});var ya=g(function(ynr,N4){"use strict";var joe=Q(),$oe=z(),R4=We(),Voe=Ft(),Goe=Ce(),zoe=yp(),I4=function I4(){},P4=Goe("Reflect","construct"),jm=/^\s*(?:class|function)\b/,Koe=joe(jm.exec),Hoe=!jm.test(I4),yl=function yl(e){if(!R4(e))return!1;try{return P4(I4,[],e),!0}catch(t){return!1}},C4=function C4(e){if(!R4(e))return!1;switch(Voe(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Hoe||!!Koe(jm,zoe(e))}catch(t){return!0}};C4.sham=!0;N4.exports=!P4||$oe(function(){var r;return yl(yl.call)||!yl(Object)||!yl(function(){r=!0})||r})?C4:yl});var W4=g(function(bnr,D4){"use strict";var k4=Zn(),Qoe=ya(),Xoe=we(),Yoe=Ee(),Joe=Yoe("species"),L4=Array;D4.exports=function(r){var e;return k4(r)&&(e=r.constructor,Qoe(e)&&(e===L4||k4(e.prototype))?e=void 0:Xoe(e)&&(e=e[Joe],e===null&&(e=void 0))),e===void 0?L4:e}});var $s=g(function(_nr,M4){"use strict";var Zoe=W4();M4.exports=function(r,e){return new(Zoe(r))(e===0?0:e)}});var et=g(function(wnr,B4){"use strict";var ese=Bt(),rse=Q(),tse=qo(),nse=Ve(),ise=nr(),ase=$s(),F4=rse([].push),ba=function ba(r){var e=r===1,t=r===2,n=r===3,i=r===4,a=r===6,o=r===7,s=r===5||a;return function(u,c,l,f){for(var d=nse(u),p=tse(d),x=ise(p),h=ese(c,l),v=0,y=f||ase,m=e?y(u,x):t||o?y(u,0):void 0,b,S;x>v;v++)if((s||v in p)&&(b=p[v],S=h(b,v,d),r))if(e)m[v]=S;else if(S)switch(r){case 3:return!0;case 5:return b;case 6:return v;case 2:F4(m,b)}else switch(r){case 4:return!1;case 7:F4(m,b)}return a?-1:n||i?i:m}};B4.exports={forEach:ba(0),map:ba(1),filter:ba(2),some:ba(3),every:ba(4),find:ba(5),findIndex:ba(6),filterReject:ba(7)}});var nA=g(function(){"use strict";var kp=C(),wl=ne(),Ym=he(),ose=Q(),sse=Ke(),Vs=ye(),Gs=pa(),use=z(),rt=Ne(),cse=mt(),zm=ge(),Lp=Vr(),Jm=Ai(),lse=Oe(),Km=Wt(),zs=Zr(),$4=js(),fse=va(),V4=Np(),dse=gl(),G4=Yr(),z4=pr(),pse=Ip(),K4=ll(),$m=tr(),hse=Ir(),Zm=To(),xse=hl(),H4=Fs(),U4=ga(),gse=Ee(),vse=Bm(),mse=ct(),yse=Um(),bse=Tt(),Q4=hr(),Dp=et().forEach,Ut=xse("hidden"),Wp="Symbol",_l="prototype",_se=Q4.set,j4=Q4.getterFor(Wp),pn=Object[_l],Io=wl.Symbol,bl=Io&&Io[_l],wse=wl.RangeError,Sse=wl.TypeError,Vm=wl.QObject,X4=G4.f,Po=z4.f,Y4=V4.f,Ese=K4.f,J4=ose([].push),Oi=Zm("symbols"),Sl=Zm("op-symbols"),qse=Zm("wks"),Hm=!Vm||!Vm[_l]||!Vm[_l].findChild,Z4=function Z4(r,e,t){var n=X4(pn,e);n&&delete pn[e],Po(r,e,t),n&&r!==pn&&Po(pn,e,n)},Qm=Vs&&use(function(){return zs(Po({},"a",{get:function get(){return Po(this,"a",{value:7}).a}})).a!==7})?Z4:Po,Gm=function Gm(r,e){var t=Oi[r]=zs(bl);return _se(t,{type:Wp,tag:r,description:e}),Vs||(t.description=e),t},Mp=function Mp1(e,t,n){e===pn&&Mp(Sl,t,n),zm(e);var i=Jm(t);return zm(n),rt(Oi,i)?(n.enumerable?(rt(e,Ut)&&e[Ut][i]&&(e[Ut][i]=!1),n=zs(n,{enumerable:Km(0,!1)})):(rt(e,Ut)||Po(e,Ut,Km(1,zs(null))),e[Ut][i]=!0),Qm(e,i,n)):Po(e,i,n)},ey=function ey(e,t){zm(e);var n=Lp(t),i=$4(n).concat(tA(n));return Dp(i,function(a){(!Vs||Ym(Xm,n,a))&&Mp(e,a,n[a])}),e},Tse=function Tse(e,t){return t===void 0?zs(e):ey(zs(e),t)},Xm=function Xm(e){var t=Jm(e),n=Ym(Ese,this,t);return this===pn&&rt(Oi,t)&&!rt(Sl,t)?!1:n||!rt(this,t)||!rt(Oi,t)||rt(this,Ut)&&this[Ut][t]?n:!0},eA=function eA(e,t){var n=Lp(e),i=Jm(t);if(!(n===pn&&rt(Oi,i)&&!rt(Sl,i))){var a=X4(n,i);return a&&rt(Oi,i)&&!(rt(n,Ut)&&n[Ut][i])&&(a.enumerable=!0),a}},rA=function rA(e){var t=Y4(Lp(e)),n=[];return Dp(t,function(i){!rt(Oi,i)&&!rt(H4,i)&&J4(n,i)}),n},tA=function tA(r){var e=r===pn,t=Y4(e?Sl:Lp(r)),n=[];return Dp(t,function(i){rt(Oi,i)&&(!e||rt(pn,i))&&J4(n,Oi[i])}),n};Gs||(Io=function Io(){if(cse(bl,this))throw new Sse("Symbol is not a constructor");var e=!arguments.length||arguments[0]===void 0?void 0:lse(arguments[0]),t=U4(e),n=function n1(i){var a=this===void 0?wl:this;a===pn&&Ym(n,Sl,i),rt(a,Ut)&&rt(a[Ut],t)&&(a[Ut][t]=!1);var o=Km(1,i);try{Qm(a,t,o)}catch(s){if(!_instanceof(s,wse))throw s;Z4(a,t,o)}};return Vs&&Hm&&Qm(pn,t,{configurable:!0,set:n}),Gm(t,e)},bl=Io[_l],$m(bl,"toString",function(){return j4(this).tag}),$m(Io,"withoutSetter",function(r){return Gm(U4(r),r)}),K4.f=Xm,z4.f=Mp,pse.f=ey,G4.f=eA,fse.f=V4.f=rA,dse.f=tA,vse.f=function(r){return Gm(gse(r),r)},Vs&&(hse(bl,"description",{configurable:!0,get:function get(){return j4(this).description}}),sse||$m(pn,"propertyIsEnumerable",Xm,{unsafe:!0})));kp({global:!0,constructor:!0,wrap:!0,forced:!Gs,sham:!Gs},{Symbol:Io});Dp($4(qse),function(r){mse(r)});kp({target:Wp,stat:!0,forced:!Gs},{useSetter:function useSetter(){Hm=!0},useSimple:function useSimple(){Hm=!1}});kp({target:"Object",stat:!0,forced:!Gs,sham:!Vs},{create:Tse,defineProperty:Mp,defineProperties:ey,getOwnPropertyDescriptor:eA});kp({target:"Object",stat:!0,forced:!Gs},{getOwnPropertyNames:rA});yse();bse(Io,Wp);H4[Ut]=!0});var ry=g(function(qnr,iA){"use strict";var Ase=pa();iA.exports=Ase&&!!Symbol.for&&!!Symbol.keyFor});var oA=g(function(){"use strict";var Ose=C(),Rse=Ce(),Ise=Ne(),Pse=Oe(),aA=To(),Cse=ry(),ty=aA("string-to-symbol-registry"),Nse=aA("symbol-to-string-registry");Ose({target:"Symbol",stat:!0,forced:!Cse},{for:function _for(r){var e=Pse(r);if(Ise(ty,e))return ty[e];var t=Rse("Symbol")(e);return ty[e]=t,Nse[t]=e,t}})});var uA=g(function(){"use strict";var kse=C(),Lse=Ne(),Dse=ha(),Wse=xa(),Mse=To(),Fse=ry(),sA=Mse("symbol-to-string-registry");kse({target:"Symbol",stat:!0,forced:!Fse},{keyFor:function keyFor(e){if(!Dse(e))throw new TypeError(Wse(e)+" is not a symbol");if(Lse(sA,e))return sA[e]}})});var jt=g(function(Inr,dA){"use strict";var Bse=Ws(),fA=Function.prototype,cA=fA.apply,lA=fA.call;dA.exports=(typeof Reflect==="undefined"?"undefined":_type_of(Reflect))=="object"&&Reflect.apply||(Bse?lA.bind(cA):function(){return lA.apply(cA,arguments)})});var ny=g(function(Pnr,pA){"use strict";var Use=we(),jse=hr().get;pA.exports=function(e){if(!Use(e))return!1;var t=jse(e);return!!t&&t.type==="RawJSON"}});var ay=g(function(Cnr,vA){"use strict";var iy=Q(),$se=Ne(),Fp=SyntaxError,Vse=parseInt,Gse=String.fromCharCode,zse=iy("".charAt),hA=iy("".slice),xA=iy(/./.exec),gA={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":" "},Kse=/^[\da-f]{4}$/i,Hse=/^[\u0000-\u001F]$/;vA.exports=function(r,e){for(var t=!0,n="";e<r.length;){var i=zse(r,e);if(i==="\\"){var a=hA(r,e,e+2);if($se(gA,a))n+=gA[a],e+=2;else if(a==="\\u"){e+=2;var o=hA(r,e,e+4);if(!xA(Kse,o))throw new Fp("Bad Unicode escape at: "+e);n+=Gse(Vse(o,16)),e+=4}else throw new Fp('Unknown escape sequence: "'+a+'"')}else if(i==='"'){t=!1,e++;break}else{if(xA(Hse,i))throw new Fp("Bad control character in string literal at: "+e);n+=i,e++}}if(t)throw new Fp("Unterminated string at: "+e);return{value:n,end:e}}});var Bp=g(function(Nnr,mA){"use strict";var Qse=z();mA.exports=!Qse(function(){var r="9007199254740993",e=JSON.rawJSON(r);return!JSON.isRawJSON(e)||JSON.stringify(e)!==r})});var fy=g(function(){"use strict";var Xse=C(),TA=Ce(),Yse=jt(),AA=he(),Co=Q(),OA=z(),yA=Zn(),jp=We(),Jse=ny(),bA=ha(),_A=ut(),Zse=Oe(),eue=Zt(),rue=ay(),tue=ga(),nue=pa(),oy=Bp(),RA=String,_a=TA("JSON","stringify"),Up=Co(/./.exec),uy=Co("".charAt),iue=Co("".charCodeAt),aue=Co("".replace),sy=Co("".slice),cy=Co([].push),oue=Co(1.1.toString),sue=/[\uD800-\uDFFF]/g,wA=/^[\uD800-\uDBFF]$/,SA=/^[\uDC00-\uDFFF]$/,ly=tue(),EA=ly.length,IA=!nue||OA(function(){var r=TA("Symbol")("stringify detection");return _a([r])!=="[null]"||_a({a:r})!=="{}"||_a(Object(r))!=="{}"}),qA=OA(function(){return _a("\uDF06\uD834")!=='"\\udf06\\ud834"'||_a("\uDEAD")!=='"\\udead"'}),uue=IA?function uue(r,e){var t=eue(arguments),n=PA(e);if(!(!jp(n)&&(r===void 0||bA(r))))return t[1]=function(i,a){if(jp(n)&&(a=AA(n,this,RA(i),a)),!bA(a))return a},Yse(_a,null,t)}:_a,cue=function cue(r,e,t){var n=uy(t,e-1),i=uy(t,e+1);return Up(wA,r)&&!Up(SA,i)||Up(SA,r)&&!Up(wA,n)?"\\u"+oue(iue(r,0),16):r},PA=function PA(r){if(jp(r))return r;if(yA(r)){for(var e=r.length,t=[],n=0;n<e;n++){var i=r[n];typeof i=="string"?cy(t,i):(typeof i=="number"||_A(i)==="Number"||_A(i)==="String")&&cy(t,Zse(i))}var a=t.length,o=!0;return function(s,u){if(o)return o=!1,u;if(yA(this))return u;for(var c=0;c<a;c++)if(t[c]===s)return u}}};_a&&Xse({target:"JSON",stat:!0,arity:3,forced:IA||qA||!oy},{stringify:function stringify(e,t,n){var i=PA(t),a=[],o=uue(e,function(p,x){var h=jp(i)?AA(i,this,RA(p),x):x;return!oy&&Jse(h)?ly+(cy(a,h.rawJSON)-1):h},n);if(typeof o!="string"||(qA&&(o=aue(o,sue,cue)),oy))return o;for(var s="",u=o.length,c=0;c<u;c++){var l=uy(o,c);if(l==='"'){var f=rue(o,++c).end-1,d=sy(o,c,f);s+=sy(d,0,EA)===ly?a[sy(d,EA)]:'"'+d+'"',c=f}else s+=l}return s}})});var NA=g(function(){"use strict";var lue=C(),fue=pa(),due=z(),CA=gl(),pue=Ve(),hue=!fue||due(function(){CA.f(1)});lue({target:"Object",stat:!0,forced:hue},{getOwnPropertySymbols:function getOwnPropertySymbols(e){var t=CA.f;return t?t(pue(e)):[]}})});var kA=g(function(){"use strict";nA();oA();uA();fy();NA()});var UA=g(function(){"use strict";var xue=C(),gue=ye(),vue=ne(),$p=Q(),mue=Ne(),yue=We(),bue=mt(),_ue=Oe(),wue=Ir(),Sue=Ro(),Ri=vue.Symbol,No=Ri&&Ri.prototype;gue&&yue(Ri)&&(!("description"in No)||Ri().description!==void 0)&&(dy={},El=function El(){var e=arguments.length<1||arguments[0]===void 0?void 0:_ue(arguments[0]),t=bue(No,this)?new Ri(e):e===void 0?Ri():Ri(e);return e===""&&(dy[t]=!0),t},Sue(El,Ri),El.prototype=No,No.constructor=El,LA=String(Ri("description detection"))==="Symbol(description detection)",DA=$p(No.valueOf),WA=$p(No.toString),MA=/^Symbol\((.*)\)[^)]+$/,FA=$p("".replace),BA=$p("".slice),wue(No,"description",{configurable:!0,get:function get(){var e=DA(this);if(mue(dy,e))return"";var t=WA(e),n=LA?BA(t,7,-1):FA(t,MA,"$1");return n===""?void 0:n}}),xue({global:!0,constructor:!0,forced:!0},{Symbol:El}));var dy,El,LA,DA,WA,MA,FA,BA});var jA=g(function(){"use strict";var Eue=ne(),que=ct(),Tue=pr().f,Aue=Yr().f,py=Eue.Symbol;que("asyncDispose");py&&(ql=Aue(py,"asyncDispose"),ql.enumerable&&ql.configurable&&ql.writable&&Tue(py,"asyncDispose",{value:ql.value,enumerable:!1,configurable:!1,writable:!1}));var ql});var $A=g(function(){"use strict";var Oue=ct();Oue("asyncIterator")});var VA=g(function(){"use strict";var Rue=ne(),Iue=ct(),Pue=pr().f,Cue=Yr().f,hy=Rue.Symbol;Iue("dispose");hy&&(Tl=Cue(hy,"dispose"),Tl.enumerable&&Tl.configurable&&Tl.writable&&Pue(hy,"dispose",{value:Tl.value,enumerable:!1,configurable:!1,writable:!1}));var Tl});var GA=g(function(){"use strict";var Nue=ct();Nue("hasInstance")});var zA=g(function(){"use strict";var kue=ct();kue("isConcatSpreadable")});var KA=g(function(){"use strict";var Lue=ct();Lue("iterator")});var HA=g(function(){"use strict";var Due=ct();Due("match")});var QA=g(function(){"use strict";var Wue=ct();Wue("matchAll")});var XA=g(function(){"use strict";var Mue=ct();Mue("replace")});var YA=g(function(){"use strict";var Fue=ct();Fue("search")});var JA=g(function(){"use strict";var Bue=ct();Bue("species")});var ZA=g(function(){"use strict";var Uue=ct();Uue("split")});var eO=g(function(){"use strict";var jue=ct(),$ue=Um();jue("toPrimitive");$ue()});var rO=g(function(){"use strict";var Vue=Ce(),Gue=ct(),zue=Tt();Gue("toStringTag");zue(Vue("Symbol"),"Symbol")});var tO=g(function(){"use strict";var Kue=ct();Kue("unscopables")});var Al=g(function(mir,nO){"use strict";var Hue=Q(),Que=ke();nO.exports=function(r,e,t){try{return Hue(Que(Object.getOwnPropertyDescriptor(r,e)[t]))}catch(n){}}});var xy=g(function(yir,iO){"use strict";var Xue=we();iO.exports=function(r){return Xue(r)||r===null}});var gy=g(function(bir,aO){"use strict";var Yue=xy(),Jue=String,Zue=TypeError;aO.exports=function(r){if(Yue(r))return r;throw new Zue("Can't set "+Jue(r)+" as a prototype")}});var hn=g(function(_ir,oO){"use strict";var ece=Al(),rce=we(),tce=mr(),nce=gy();oO.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var r=!1,e={},t;try{t=ece(Object.prototype,"__proto__","set"),t(e,[]),r=_instanceof(e,Array)}catch(n){}return function(i,a){return tce(i),nce(a),rce(i)&&(r?t(i,a):i.__proto__=a),i}}():void 0)});var vy=g(function(wir,sO){"use strict";var ice=pr().f;sO.exports=function(r,e,t){t in r||ice(r,t,{configurable:!0,get:function get(){return e[t]},set:function set(n){e[t]=n}})}});var wa=g(function(Sir,cO){"use strict";var ace=We(),oce=we(),uO=hn();cO.exports=function(r,e,t){var n,i;return uO&&ace(n=e.constructor)&&n!==t&&oce(i=n.prototype)&&i!==t.prototype&&uO(r,i),r}});var ko=g(function(Eir,lO){"use strict";var sce=Oe();lO.exports=function(r,e){return r===void 0?arguments.length<2?"":e:sce(r)}});var my=g(function(qir,fO){"use strict";var uce=we(),cce=Jr();fO.exports=function(r,e){uce(e)&&"cause"in e&&cce(r,"cause",e.cause)}});var Vp=g(function(Tir,hO){"use strict";var lce=Q(),dO=Error,fce=lce("".replace),dce=function(r){return String(new dO(r).stack)}("zxcasd"),pO=/\n\s*at [^:]*:[^\n]*/,pce=pO.test(dce);hO.exports=function(r,e){if(pce&&typeof r=="string"&&!dO.prepareStackTrace)for(;e--;)r=fce(r,pO,"");return r}});var yy=g(function(Air,xO){"use strict";var hce=z(),xce=Wt();xO.exports=!hce(function(){var r=new Error("a");return"stack"in r?(Object.defineProperty(r,"stack",xce(1,7)),r.stack!==7):!0})});var Gp=g(function(Oir,vO){"use strict";var gce=Jr(),vce=Vp(),mce=yy(),gO=Error.captureStackTrace;vO.exports=function(r,e,t,n){mce&&(gO?gO(r,e):gce(r,"stack",vce(t,n)))}});var by=g(function(Rir,EO){"use strict";var mO=Ce(),yce=Ne(),yO=Jr(),bce=mt(),bO=hn(),_O=Ro(),wO=vy(),_ce=wa(),wce=ko(),Sce=my(),Ece=Gp(),qce=ye(),SO=Ke();EO.exports=function(r,e,t,n){var i="stackTraceLimit",a=n?2:1,o=r.split("."),s=o[o.length-1],u=mO.apply(null,o);if(u){var c=u.prototype;if(!SO&&yce(c,"cause")&&delete c.cause,!t)return u;var l=mO("Error"),f=e(function(d,p){var x=wce(n?p:d,void 0),h=n?new u(d):new u;return x!==void 0&&yO(h,"message",x),Ece(h,f,h.stack,2),this&&bce(c,this)&&_ce(h,this,f),arguments.length>a&&Sce(h,arguments[a]),h});if(f.prototype=c,s!=="Error"?bO?bO(f,l):_O(f,l,{name:!0}):qce&&i in u&&(wO(f,u,i),wO(f,u,"prepareStackTrace")),_O(f,u),!SO)try{c.name!==s&&yO(c,"name",s),c.constructor=f}catch(d){}return f}}});var OO=g(function(){"use strict";var TO=C(),Tce=ne(),ei=jt(),AO=by(),_y="WebAssembly",qO=Tce[_y],zp=new Error("e",{cause:7}).cause!==7,Lo=function Lo(r,e){var t={};t[r]=AO(r,e,zp),TO({global:!0,constructor:!0,arity:1,forced:zp},t)},wy=function wy(r,e){if(qO&&qO[r]){var t={};t[r]=AO(_y+"."+r,e,zp),TO({target:_y,stat:!0,constructor:!0,arity:1,forced:zp},t)}};Lo("Error",function(r){return function(t){return ei(r,this,arguments)}});Lo("EvalError",function(r){return function(t){return ei(r,this,arguments)}});Lo("RangeError",function(r){return function(t){return ei(r,this,arguments)}});Lo("ReferenceError",function(r){return function(t){return ei(r,this,arguments)}});Lo("SyntaxError",function(r){return function(t){return ei(r,this,arguments)}});Lo("TypeError",function(r){return function(t){return ei(r,this,arguments)}});Lo("URIError",function(r){return function(t){return ei(r,this,arguments)}});wy("CompileError",function(r){return function(t){return ei(r,this,arguments)}});wy("LinkError",function(r){return function(t){return ei(r,this,arguments)}});wy("RuntimeError",function(r){return function(t){return ei(r,this,arguments)}})});var CO=g(function(){"use strict";var Ace=C(),IO=Ce(),Oce=we(),Rce=Ft(),Ice=z(),PO="Error",Ey="DOMException",Pce=Object.setPrototypeOf||({}).__proto__,RO=IO(Ey),Sy=Error,Kp=Sy.isError,Cce=!Kp||!Pce||Ice(function(){return RO&&!Kp(new RO(Ey))||!Kp(new Sy(PO,{cause:function cause(){}}))||Kp(IO("Object","create")(Sy.prototype))});Ace({target:"Error",stat:!0,sham:!0,forced:Cce},{isError:function isError(e){if(!Oce(e))return!1;var t=Rce(e);return t===PO||t===Ey}})});var qy=g(function(kir,kO){"use strict";var Nce=ye(),kce=z(),Lce=ge(),NO=ko(),Hp=Error.prototype.toString,Dce=kce(function(){if(Nce){var r=Object.create(Object.defineProperty({},"name",{get:function get(){return this===r}}));if(Hp.call(r)!=="true")return!0}return Hp.call({message:1,name:2})!=="2: 1"||Hp.call({})!=="Error"});kO.exports=Dce?function(){var e=Lce(this),t=NO(e.name,"Error"),n=NO(e.message);return t?n?t+": "+n:t:n}:Hp});var WO=g(function(){"use strict";var Wce=tr(),LO=qy(),DO=Error.prototype;DO.toString!==LO&&Wce(DO,"toString",LO)});var Qp=g(function(Wir,MO){"use strict";var Mce=z();MO.exports=!Mce(function(){function r(){}return r.prototype.constructor=null,Object.getPrototypeOf(new r)!==r.prototype})});var yt=g(function(Mir,BO){"use strict";var Fce=Ne(),Bce=We(),Uce=Ve(),jce=hl(),$ce=Qp(),FO=jce("IE_PROTO"),Ty=Object,Vce=Ty.prototype;BO.exports=$ce?Ty.getPrototypeOf:function(r){var e=Uce(r);if(Fce(e,FO))return e[FO];var t=e.constructor;return Bce(t)&&_instanceof(e,t)?t.prototype:_instanceof(e,Ty)?Vce:null}});var Ks=g(function(Fir,UO){"use strict";UO.exports={}});var Xp=g(function(Bir,jO){"use strict";var Gce=Ee(),zce=Ks(),Kce=Gce("iterator"),Hce=Array.prototype;jO.exports=function(r){return r!==void 0&&(zce.Array===r||Hce[Kce]===r)}});var Ii=g(function(Uir,VO){"use strict";var Qce=Ft(),$O=Xr(),Xce=Yn(),Yce=Ks(),Jce=Ee(),Zce=Jce("iterator");VO.exports=function(r){if(!Xce(r))return $O(r,Zce)||$O(r,"@@iterator")||Yce[Qce(r)]}});var Do=g(function(jir,GO){"use strict";var ele=he(),rle=ke(),tle=ge(),nle=xa(),ile=Ii(),ale=TypeError;GO.exports=function(r,e){var t=arguments.length<2?ile(r):e;if(rle(t))return tle(ele(t,r));throw new ale(nle(r)+" is not iterable")}});var tt=g(function($ir,KO){"use strict";var ole=he(),zO=ge(),sle=Xr();KO.exports=function(r,e,t){var n,i;zO(r);try{if(n=sle(r,"return"),!n){if(e==="throw")throw t;return t}n=ole(n,r)}catch(a){i=!0,n=a}if(e==="throw")throw t;if(i)throw n;return zO(n),t}});var Fr=g(function(Vir,YO){"use strict";var ule=Bt(),cle=he(),lle=ge(),fle=xa(),dle=Xp(),ple=nr(),HO=mt(),hle=Do(),xle=Ii(),QO=tt(),gle=TypeError,Yp=function Yp(r,e){this.stopped=r,this.result=e},XO=Yp.prototype;YO.exports=function(r,e,t){var n=t&&t.that,i=!!(t&&t.AS_ENTRIES),a=!!(t&&t.IS_RECORD),o=!!(t&&t.IS_ITERATOR),s=!!(t&&t.INTERRUPTED),u=ule(e,n),c,l,f,d,p,x,h,v=function v(m){return c&&QO(c,"normal"),new Yp(!0,m)},y=function y(m){return i?(lle(m),s?u(m[0],m[1],v):u(m[0],m[1])):s?u(m,v):u(m)};if(a)c=r.iterator;else if(o)c=r;else{if(l=xle(r),!l)throw new gle(fle(r)+" is not iterable");if(dle(l)){for(f=0,d=ple(r);d>f;f++)if(p=y(r[f]),p&&HO(XO,p))return p;return new Yp(!1)}c=hle(r,l)}for(x=a?r.next:c.next;!(h=cle(x,c)).done;){try{p=y(h.value)}catch(m){QO(c,"throw",m)}if((typeof p==="undefined"?"undefined":_type_of(p))=="object"&&p&&HO(XO,p))return p}return new Yp(!1)}});var ZO=g(function(){"use strict";var vle=C(),mle=mt(),yle=yt(),Jp=hn(),ble=Ro(),JO=Zr(),Ay=Jr(),Oy=Wt(),_le=my(),wle=Gp(),Sle=Fr(),Ele=ko(),qle=Ee(),Tle=qle("toStringTag"),Zp=Error,Ale=[].push,Hs=function Hs1(e,t){var n=mle(Ry,this),i;Jp?i=Jp(new Zp,n?yle(this):Ry):(i=n?this:JO(Ry),Ay(i,Tle,"Error")),t!==void 0&&Ay(i,"message",Ele(t)),wle(i,Hs,i.stack,1),arguments.length>2&&_le(i,arguments[2]);var a=[];return Sle(e,Ale,{that:a}),Ay(i,"errors",a),i};Jp?Jp(Hs,Zp):ble(Hs,Zp,{name:!0});var Ry=Hs.prototype=JO(Zp.prototype,{constructor:Oy(1,Hs),message:Oy(1,""),name:Oy(1,"AggregateError")});vle({global:!0,constructor:!0,arity:2},{AggregateError:Hs})});var eR=g(function(){"use strict";ZO()});var iR=g(function(){"use strict";var Ole=C(),Rle=Ce(),Ile=jt(),rR=z(),Ple=by(),Iy="AggregateError",tR=Rle(Iy),nR=!rR(function(){return tR([1]).errors[0]!==1})&&rR(function(){return tR([1],Iy,{cause:7}).cause!==7});Ole({global:!0,constructor:!0,arity:2,forced:nR},{AggregateError:Ple(Iy,function(r){return function(t,n){return Ile(r,this,arguments)}},nR,!0)})});var sR=g(function(){"use strict";var Cle=C(),Nle=ne(),kle=mt(),aR=yt(),rh=hn(),Lle=Ro(),oR=Zr(),eh=Jr(),Py=Wt(),Dle=Gp(),Wle=ko(),Mle=Ee(),Fle=z(),Ble=Ke(),Qs=Nle.SuppressedError,Ule=Mle("toStringTag"),th=Error,jle=!!Qs&&Qs.length!==3,$le=!!Qs&&Fle(function(){return new Qs(1,2,3,{cause:4}).cause===4}),nh=jle||$le,Wo=function Wo1(e,t,n){var i=kle(Ol,this),a;return rh?a=nh&&(!i||aR(this)===Ol)?new Qs:rh(new th,i?aR(this):Ol):(a=i?this:oR(Ol),eh(a,Ule,"Error")),n!==void 0&&eh(a,"message",Wle(n)),Dle(a,Wo,a.stack,1),eh(a,"error",e),eh(a,"suppressed",t),a};rh?rh(Wo,th):Lle(Wo,th,{name:!0});var Ol=Wo.prototype=nh?Qs.prototype:oR(th.prototype,{constructor:Py(1,Wo),message:Py(1,""),name:Py(1,"SuppressedError")});nh&&!Ble&&(Ol.constructor=Wo);Cle({global:!0,constructor:!0,arity:3,forced:nh},{SuppressedError:Wo})});var At=g(function(Zir,uR){"use strict";var Vle=Ee(),Gle=Zr(),zle=pr().f,Cy=Vle("unscopables"),Ny=Array.prototype;Ny[Cy]===void 0&&zle(Ny,Cy,{configurable:!0,value:Gle(null)});uR.exports=function(r){Ny[Cy][r]=!0}});var cR=g(function(){"use strict";var Kle=C(),Hle=Ve(),Qle=nr(),Xle=Sr(),Yle=At();Kle({target:"Array",proto:!0},{at:function at1(e){var t=Hle(this),n=Qle(t),i=Xle(e),a=i>=0?i:n+i;return a<0||a>=n?void 0:t[a]}});Yle("at")});var Sa=g(function(tar,lR){"use strict";var Jle=TypeError,Zle=0x1fffffffffffff;lR.exports=function(r){if(r>Zle)throw Jle("Maximum allowed index exceeded");return r}});var en=g(function(nar,fR){"use strict";var efe=ye(),rfe=pr(),tfe=Wt();fR.exports=function(r,e,t){efe?rfe.f(r,e,tfe(0,t)):r[e]=t}});var Xs=g(function(iar,dR){"use strict";var nfe=z(),ife=Ee(),afe=Nn(),ofe=ife("species");dR.exports=function(r){return afe>=51||!nfe(function(){var e=[],t=e.constructor={};return t[ofe]=function(){return{foo:1}},e[r](Boolean).foo!==1})}});var gR=g(function(){"use strict";var sfe=C(),ufe=z(),cfe=Zn(),lfe=we(),ffe=Ve(),dfe=nr(),pR=Sa(),hR=en(),pfe=$s(),hfe=Xs(),xfe=Ee(),gfe=Nn(),xR=xfe("isConcatSpreadable"),vfe=gfe>=51||!ufe(function(){var r=[];return r[xR]=!1,r.concat()[0]!==r}),mfe=function mfe(r){if(!lfe(r))return!1;var e=r[xR];return e!==void 0?!!e:cfe(r)},yfe=!vfe||!hfe("concat");sfe({target:"Array",proto:!0,arity:1,forced:yfe},{concat:function concat(e){var t=ffe(this),n=pfe(t,0),i=0,a,o,s,u,c;for(a=-1,s=arguments.length;a<s;a++)if(c=a===-1?t:arguments[a],mfe(c))for(u=dfe(c),pR(i+u),o=0;o<u;o++,i++)o in c&&hR(n,i,c[o]);else pR(i+1),hR(n,i++,c);return n.length=i,n}})});var Rl=g(function(sar,mR){"use strict";var vR=xa(),bfe=TypeError;mR.exports=function(r,e){if(!delete r[e])throw new bfe("Cannot delete property "+vR(e)+" of "+vR(r))}});var Ly=g(function(uar,yR){"use strict";var _fe=Ve(),ky=Jn(),wfe=nr(),Sfe=Rl(),Efe=Math.min;yR.exports=[].copyWithin||function(e,t){var n=_fe(this),i=wfe(n),a=ky(e,i),o=ky(t,i),s=arguments.length>2?arguments[2]:void 0,u=Efe((s===void 0?i:ky(s,i))-o,i-a),c=1;for(o<a&&a<o+u&&(c=-1,o+=u-1,a+=u-1);u-- >0;)o in n?n[a]=n[o]:Sfe(n,a),a+=c,o+=c;return n}});var bR=g(function(){"use strict";var qfe=C(),Tfe=Ly(),Afe=At();qfe({target:"Array",proto:!0},{copyWithin:Tfe});Afe("copyWithin")});var ri=g(function(far,_R){"use strict";var Ofe=z();_R.exports=function(r,e){var t=[][r];return!!t&&Ofe(function(){t.call(null,e||function(){return 1},1)})}});var wR=g(function(){"use strict";var Rfe=C(),Ife=et().every,Pfe=ri(),Cfe=Pfe("every");Rfe({target:"Array",proto:!0,forced:!Cfe},{every:function every(e){return Ife(this,e,arguments.length>1?arguments[1]:void 0)}})});var ih=g(function(har,ER){"use strict";var Nfe=Ve(),SR=Jn(),kfe=nr();ER.exports=function(e){for(var t=Nfe(this),n=kfe(t),i=arguments.length,a=SR(i>1?arguments[1]:void 0,n),o=i>2?arguments[2]:void 0,s=o===void 0?n:SR(o,n);s>a;)t[a++]=e;return t}});var qR=g(function(){"use strict";var Lfe=C(),Dfe=ih(),Wfe=At();Lfe({target:"Array",proto:!0},{fill:Dfe});Wfe("fill")});var TR=g(function(){"use strict";var Mfe=C(),Ffe=et().filter,Bfe=Xs(),Ufe=Bfe("filter");Mfe({target:"Array",proto:!0,forced:!Ufe},{filter:function filter(e){return Ffe(this,e,arguments.length>1?arguments[1]:void 0)}})});var OR=g(function(){"use strict";var jfe=C(),$fe=et().find,Vfe=At(),Dy="find",AR=!0;Dy in[]&&Array(1)[Dy](function(){AR=!1});jfe({target:"Array",proto:!0,forced:AR},{find:function find(e){return $fe(this,e,arguments.length>1?arguments[1]:void 0)}});Vfe(Dy)});var IR=g(function(){"use strict";var Gfe=C(),zfe=et().findIndex,Kfe=At(),Wy="findIndex",RR=!0;Wy in[]&&Array(1)[Wy](function(){RR=!1});Gfe({target:"Array",proto:!0,forced:RR},{findIndex:function findIndex(e){return zfe(this,e,arguments.length>1?arguments[1]:void 0)}});Kfe(Wy)});var Il=g(function(Ear,CR){"use strict";var Hfe=Bt(),Qfe=qo(),Xfe=Ve(),Yfe=nr(),PR=function PR(r){var e=r===1;return function(t,n,i){for(var a=Xfe(t),o=Qfe(a),s=Yfe(o),u=Hfe(n,i),c,l;s-- >0;)if(c=o[s],l=u(c,s,a),l)switch(r){case 0:return c;case 1:return s}return e?-1:void 0}};CR.exports={findLast:PR(0),findLastIndex:PR(1)}});var NR=g(function(){"use strict";var Jfe=C(),Zfe=Il().findLast,ede=At();Jfe({target:"Array",proto:!0},{findLast:function findLast(e){return Zfe(this,e,arguments.length>1?arguments[1]:void 0)}});ede("findLast")});var kR=g(function(){"use strict";var rde=C(),tde=Il().findLastIndex,nde=At();rde({target:"Array",proto:!0},{findLastIndex:function findLastIndex(e){return tde(this,e,arguments.length>1?arguments[1]:void 0)}});nde("findLastIndex")});var My=g(function(Rar,DR){"use strict";var ide=Zn(),ade=nr(),ode=Sa(),sde=Bt(),LR=function LR1(r,e,t,n,i,a,o,s){for(var u=i,c=0,l=o?sde(o,s):!1,f,d;c<n;)c in t&&(f=l?l(t[c],c,e):t[c],a>0&&ide(f)?(d=ade(f),u=LR(r,e,f,d,u,a-1)-1):(ode(u+1),r[u]=f),u++),c++;return u};DR.exports=LR});var WR=g(function(){"use strict";var ude=C(),cde=My(),lde=Ve(),fde=nr(),dde=Sr(),pde=$s();ude({target:"Array",proto:!0},{flat:function flat(){var e=arguments.length?arguments[0]:void 0,t=lde(this),n=fde(t),i=pde(t,0);return i.length=cde(i,t,t,n,0,e===void 0?1:dde(e)),i}})});var MR=g(function(){"use strict";var hde=C(),xde=My(),gde=ke(),vde=Ve(),mde=nr(),yde=$s();hde({target:"Array",proto:!0},{flatMap:function flatMap(e){var t=vde(this),n=mde(t),i;return gde(e),i=yde(t,0),i.length=xde(i,t,t,n,0,1,e,arguments.length>1?arguments[1]:void 0),i}})});var Fy=g(function(kar,FR){"use strict";var bde=et().forEach,_de=ri(),wde=_de("forEach");FR.exports=wde?[].forEach:function(e){return bde(this,e,arguments.length>1?arguments[1]:void 0)}});var UR=g(function(){"use strict";var Sde=C(),BR=Fy();Sde({target:"Array",proto:!0,forced:[].forEach!==BR},{forEach:BR})});var ah=g(function(War,jR){"use strict";var Ede=ge(),qde=tt();jR.exports=function(r,e,t,n){try{return n?e(Ede(t)[0],t[1]):e(t)}catch(i){qde(r,"throw",i)}}});var By=g(function(Mar,GR){"use strict";var Tde=Bt(),Ade=he(),Ode=Ve(),Rde=ah(),Ide=Xp(),Pde=ya(),Cde=nr(),$R=en(),Nde=Do(),kde=Ii(),VR=Array;GR.exports=function(e){var t=Ode(e),n=Pde(this),i=arguments.length,a=i>1?arguments[1]:void 0,o=a!==void 0;o&&(a=Tde(a,i>2?arguments[2]:void 0));var s=kde(t),u=0,c,l,f,d,p,x;if(s&&!(this===VR&&Ide(s)))for(l=n?new this:[],d=Nde(t,s),p=d.next;!(f=Ade(p,d)).done;u++)x=o?Rde(d,a,[f.value,u],!0):f.value,$R(l,u,x);else for(c=Cde(t),l=n?new this(c):VR(c);c>u;u++)x=o?a(t[u],u):t[u],$R(l,u,x);return l.length=u,l}});var Pl=g(function(Far,QR){"use strict";var Lde=Ee(),KR=Lde("iterator"),HR=!1;try{zR=0,Uy={next:function next(){return{done:!!zR++}},return:function _return(){HR=!0}},Uy[KR]=function(){return this},Array.from(Uy,function(){throw 2})}catch(r){}var zR,Uy;QR.exports=function(r,e){try{if(!e&&!HR)return!1}catch(i){return!1}var t=!1;try{var n={};n[KR]=function(){return{next:function next(){return{done:t=!0}}}},r(n)}catch(i){}return t}});var XR=g(function(){"use strict";var Dde=C(),Wde=By(),Mde=Pl(),Fde=!Mde(function(r){Array.from(r)});Dde({target:"Array",stat:!0,forced:Fde},{from:Wde})});var YR=g(function(){"use strict";var Bde=C(),Ude=Bs().includes,jde=z(),$de=At(),Vde=jde(function(){return!Array(1).includes()});Bde({target:"Array",proto:!0,forced:Vde},{includes:function includes(e){return Ude(this,e,arguments.length>1?arguments[1]:void 0)}});$de("includes")});var ZR=g(function(){"use strict";var Gde=C(),zde=ma(),Kde=Bs().indexOf,Hde=ri(),jy=zde([].indexOf),JR=!!jy&&1/jy([1],1,-0)<0,Qde=JR||!Hde("indexOf");Gde({target:"Array",proto:!0,forced:Qde},{indexOf:function indexOf(e){var t=arguments.length>1?arguments[1]:void 0;return JR?jy(this,e,t)||0:Kde(this,e,t)}})});var eI=g(function(){"use strict";var Xde=C(),Yde=Zn();Xde({target:"Array",stat:!0},{isArray:Yde})});var Mo=g(function(Har,nI){"use strict";var Jde=z(),Zde=We(),epe=we(),rpe=Zr(),rI=yt(),tpe=tr(),npe=Ee(),ipe=Ke(),Gy=npe("iterator"),tI=!1,Pi,$y,Vy;[].keys&&(Vy=[].keys(),"next"in Vy?($y=rI(rI(Vy)),$y!==Object.prototype&&(Pi=$y)):tI=!0);var ape=!epe(Pi)||Jde(function(){var r={};return Pi[Gy].call(r)!==r});ape?Pi={}:ipe&&(Pi=rpe(Pi));Zde(Pi[Gy])||tpe(Pi,Gy,function(){return this});nI.exports={IteratorPrototype:Pi,BUGGY_SAFARI_ITERATORS:tI}});var oh=g(function(Qar,iI){"use strict";var ope=Mo().IteratorPrototype,spe=Zr(),upe=Wt(),cpe=Tt(),lpe=Ks(),fpe=function fpe(){return this};iI.exports=function(r,e,t,n){var i=e+" Iterator";return r.prototype=spe(ope,{next:upe(+!n,t)}),cpe(r,i,!1,!0),lpe[i]=fpe,r}});var ch=g(function(Xar,hI){"use strict";var dpe=C(),ppe=he(),sh=Ke(),dI=Ao(),hpe=We(),xpe=oh(),aI=yt(),oI=hn(),gpe=Tt(),vpe=Jr(),zy=tr(),mpe=Ee(),sI=Ks(),pI=Mo(),ype=dI.PROPER,bpe=dI.CONFIGURABLE,uI=pI.IteratorPrototype,uh=pI.BUGGY_SAFARI_ITERATORS,Cl=mpe("iterator"),cI="keys",Nl="values",lI="entries",fI=function fI(){return this};hI.exports=function(r,e,t,n,i,a,o){xpe(t,e,n);var s=function s(y){if(y===i&&d)return d;if(!uh&&y&&y in l)return l[y];switch(y){case cI:return function(){return new t(this,y)};case Nl:return function(){return new t(this,y)};case lI:return function(){return new t(this,y)}}return function(){return new t(this)}},u=e+" Iterator",c=!1,l=r.prototype,f=l[Cl]||l["@@iterator"]||i&&l[i],d=!uh&&f||s(i),p=e==="Array"&&l.entries||f,x,h,v;if(p&&(x=aI(p.call(new r)),x!==Object.prototype&&x.next&&(!sh&&aI(x)!==uI&&(oI?oI(x,uI):hpe(x[Cl])||zy(x,Cl,fI)),gpe(x,u,!0,!0),sh&&(sI[u]=fI))),ype&&i===Nl&&f&&f.name!==Nl&&(!sh&&bpe?vpe(l,"name",Nl):(c=!0,d=function d(){return ppe(f,this)})),i)if(h={values:s(Nl),keys:a?d:s(cI),entries:s(lI)},o)for(v in h)(uh||c||!(v in l))&&zy(l,v,h[v]);else dpe({target:e,proto:!0,forced:uh||c},h);return(!sh||o)&&l[Cl]!==d&&zy(l,Cl,d,{name:i}),sI[e]=d,h}});var Ea=g(function(Yar,xI){"use strict";xI.exports=function(r,e){return{value:r,done:e}}});var kl=g(function(Jar,bI){"use strict";var _pe=Vr(),Ky=At(),gI=Ks(),mI=hr(),wpe=pr().f,Spe=ch(),lh=Ea(),Epe=Ke(),qpe=ye(),yI="Array Iterator",Tpe=mI.set,Ape=mI.getterFor(yI);bI.exports=Spe(Array,"Array",function(r,e){Tpe(this,{type:yI,target:_pe(r),index:0,kind:e})},function(){var r=Ape(this),e=r.target,t=r.index++;if(!e||t>=e.length)return r.target=null,lh(void 0,!0);switch(r.kind){case"keys":return lh(t,!1);case"values":return lh(e[t],!1)}return lh([t,e[t]],!1)},"values");var vI=gI.Arguments=gI.Array;Ky("keys");Ky("values");Ky("entries");if(!Epe&&qpe&&vI.name!=="values")try{wpe(vI,"name",{value:"values"})}catch(r){}});var _I=g(function(){"use strict";var Ope=C(),Rpe=Q(),Ipe=qo(),Ppe=Vr(),Cpe=ri(),Npe=Rpe([].join),kpe=Ipe!==Object,Lpe=kpe||!Cpe("join",",");Ope({target:"Array",proto:!0,forced:Lpe},{join:function join(e){return Npe(Ppe(this),e===void 0?",":e)}})});var Qy=g(function(ror,SI){"use strict";var Dpe=jt(),Wpe=Vr(),Mpe=Sr(),Fpe=nr(),Bpe=ri(),Upe=Math.min,Hy=[].lastIndexOf,wI=!!Hy&&1/[1].lastIndexOf(1,-0)<0,jpe=Bpe("lastIndexOf"),$pe=wI||!jpe;SI.exports=$pe?function(e){if(wI)return Dpe(Hy,this,arguments)||0;var t=Wpe(this),n=Fpe(t);if(n===0)return-1;var i=n-1;for(arguments.length>1&&(i=Upe(i,Mpe(arguments[1]))),i<0&&(i=n+i);i>=0;i--)if(i in t&&t[i]===e)return i||0;return-1}:Hy});var qI=g(function(){"use strict";var Vpe=C(),EI=Qy();Vpe({target:"Array",proto:!0,forced:EI!==[].lastIndexOf},{lastIndexOf:EI})});var TI=g(function(){"use strict";var Gpe=C(),zpe=et().map,Kpe=Xs(),Hpe=Kpe("map");Gpe({target:"Array",proto:!0,forced:!Hpe},{map:function map(e){return zpe(this,e,arguments.length>1?arguments[1]:void 0)}})});var OI=g(function(){"use strict";var Qpe=C(),Xpe=z(),Ype=ya(),Jpe=en(),AI=Array,Zpe=Xpe(function(){function r(){}return!_instanceof(AI.of.call(r),r)});Qpe({target:"Array",stat:!0,forced:Zpe},{of:function of(){for(var e=0,t=arguments.length,n=new(Ype(this)?this:AI)(t);t>e;)Jpe(n,e,arguments[e++]);return n.length=t,n}})});var fh=g(function(uor,RI){"use strict";var ehe=ye(),rhe=Zn(),the=TypeError,nhe=Object.getOwnPropertyDescriptor,ihe=ehe&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(r){return _instanceof(r,TypeError)}}();RI.exports=ihe?function(r,e){if(rhe(r)&&!nhe(r,"length").writable)throw new the("Cannot set read only .length");return r.length=e}:function(r,e){return r.length=e}});var II=g(function(){"use strict";var ahe=C(),ohe=Ve(),she=nr(),uhe=fh(),che=Sa(),lhe=z(),fhe=lhe(function(){return[].push.call({length:0x100000000},1)!==0x100000001}),dhe=function dhe(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(r){return _instanceof(r,TypeError)}},phe=fhe||!dhe();ahe({target:"Array",proto:!0,arity:1,forced:phe},{push:function push(e){var t=ohe(this),n=she(t),i=arguments.length;che(n+i);for(var a=0;a<i;a++)t[n]=arguments[a],n++;return uhe(t,n),n}})});var Ll=g(function(dor,kI){"use strict";var hhe=ke(),xhe=Ve(),ghe=qo(),vhe=nr(),PI=TypeError,CI="Reduce of empty array with no initial value",NI=function NI(r){return function(e,t,n,i){var a=xhe(e),o=ghe(a),s=vhe(a);if(hhe(t),s===0&&n<2)throw new PI(CI);var u=r?s-1:0,c=r?-1:1;if(n<2)for(;;){if(u in o){i=o[u],u+=c;break}if(u+=c,r?u<0:s<=u)throw new PI(CI)}for(;r?u>=0:s>u;u+=c)u in o&&(i=t(i,o[u],u,a));return i}};kI.exports={left:NI(!1),right:NI(!0)}});var Wl=g(function(por,LI){"use strict";var Dl=ne(),mhe=Pn(),yhe=ut(),dh=function dh(r){return mhe.slice(0,r.length)===r};LI.exports=function(){return dh("Bun/")?"BUN":dh("Cloudflare-Workers")?"CLOUDFLARE":dh("Deno/")?"DENO":dh("Node.js/")?"NODE":Dl.Bun&&typeof Bun.version=="string"?"BUN":Dl.Deno&&_type_of(Deno.version)=="object"?"DENO":yhe(Dl.process)==="process"?"NODE":Dl.window&&Dl.document?"BROWSER":"REST"}()});var Fo=g(function(hor,DI){"use strict";var bhe=Wl();DI.exports=bhe==="NODE"});var MI=g(function(){"use strict";var _he=C(),whe=Ll().left,She=ri(),WI=Nn(),Ehe=Fo(),qhe=!Ehe&&WI>79&&WI<83,The=qhe||!She("reduce");_he({target:"Array",proto:!0,forced:The},{reduce:function reduce(e){var t=arguments.length;return whe(this,e,t,t>1?arguments[1]:void 0)}})});var BI=g(function(){"use strict";var Ahe=C(),Ohe=Ll().right,Rhe=ri(),FI=Nn(),Ihe=Fo(),Phe=!Ihe&&FI>79&&FI<83,Che=Phe||!Rhe("reduceRight");Ahe({target:"Array",proto:!0,forced:Che},{reduceRight:function reduceRight(e){return Ohe(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})});var jI=g(function(){"use strict";var Nhe=C(),khe=Q(),Lhe=Zn(),Dhe=khe([].reverse),UI=[1,2];Nhe({target:"Array",proto:!0,forced:String(UI)===String(UI.reverse())},{reverse:function reverse(){return Lhe(this)&&(this.length=this.length),Dhe(this)}})});var GI=g(function(){"use strict";var Whe=C(),$I=Zn(),Mhe=ya(),Fhe=we(),VI=Jn(),Bhe=nr(),Uhe=Vr(),jhe=en(),$he=Ee(),Vhe=Xs(),Ghe=Zt(),zhe=Vhe("slice"),Khe=$he("species"),Xy=Array,Hhe=Math.max;Whe({target:"Array",proto:!0,forced:!zhe},{slice:function slice(e,t){var n=Uhe(this),i=Bhe(n),a=VI(e,i),o=VI(t===void 0?i:t,i),s,u,c;if($I(n)&&(s=n.constructor,Mhe(s)&&(s===Xy||$I(s.prototype))?s=void 0:Fhe(s)&&(s=s[Khe],s===null&&(s=void 0)),s===Xy||s===void 0))return Ghe(n,a,o);for(u=new(s===void 0?Xy:s)(Hhe(o-a,0)),c=0;a<o;a++,c++)a in n&&jhe(u,c,n[a]);return u.length=c,u}})});var zI=g(function(){"use strict";var Qhe=C(),Xhe=et().some,Yhe=ri(),Jhe=Yhe("some");Qhe({target:"Array",proto:!0,forced:!Jhe},{some:function some(e){return Xhe(this,e,arguments.length>1?arguments[1]:void 0)}})});var ph=g(function(qor,HI){"use strict";var KI=Zt(),Zhe=Math.floor,Yy=function Yy1(r,e){var t=r.length;if(t<8)for(var n=1,i,a;n<t;){for(a=n,i=r[n];a&&e(r[a-1],i)>0;)r[a]=r[--a];a!==n++&&(r[a]=i)}else for(var o=Zhe(t/2),s=Yy(KI(r,0,o),e),u=Yy(KI(r,o),e),c=s.length,l=u.length,f=0,d=0;f<c||d<l;)r[f+d]=f<c&&d<l?e(s[f],u[d])<=0?s[f++]:u[d++]:f<c?s[f++]:u[d++];return r};HI.exports=Yy});var Jy=g(function(Tor,XI){"use strict";var e0e=Pn(),QI=e0e.match(/firefox\/(\d+)/i);XI.exports=!!QI&&+QI[1]});var Zy=g(function(Aor,YI){"use strict";var r0e=Pn();YI.exports=/MSIE|Trident/.test(r0e)});var hh=g(function(Oor,ZI){"use strict";var t0e=Pn(),JI=t0e.match(/AppleWebKit\/(\d+)\./);ZI.exports=!!JI&&+JI[1]});var uP=g(function(){"use strict";var n0e=C(),oP=Q(),i0e=ke(),a0e=Ve(),eP=nr(),o0e=Rl(),rP=Oe(),eb=z(),s0e=ph(),u0e=ri(),tP=Jy(),c0e=Zy(),nP=Nn(),iP=hh(),qa=[],aP=oP(qa.sort),l0e=oP(qa.push),f0e=eb(function(){qa.sort(void 0)}),d0e=eb(function(){qa.sort(null)}),p0e=u0e("sort"),sP=!eb(function(){if(nP)return nP<70;if(!(tP&&tP>3)){if(c0e)return!0;if(iP)return iP<603;var r="",e,t,n,i;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(i=0;i<47;i++)qa.push({k:t+i,v:n})}for(qa.sort(function(a,o){return o.v-a.v}),i=0;i<qa.length;i++)t=qa[i].k.charAt(0),r.charAt(r.length-1)!==t&&(r+=t);return r!=="DGBEFHACIJK"}}),h0e=f0e||!d0e||!p0e||!sP,x0e=function x0e(r){return function(e,t){return t===void 0?-1:e===void 0?1:r!==void 0?+r(e,t)||0:rP(e)>rP(t)?1:-1}};n0e({target:"Array",proto:!0,forced:h0e},{sort:function sort(e){e!==void 0&&i0e(e);var t=a0e(this);if(sP)return e===void 0?aP(t):aP(t,e);var n=[],i=eP(t),a,o;for(o=0;o<i;o++)o in t&&l0e(n,t[o]);for(s0e(n,x0e(e)),a=eP(n),o=0;o<a;)t[o]=n[o++];for(;o<i;)o0e(t,o++);return t}})});var Bo=g(function(Por,lP){"use strict";var g0e=Ce(),v0e=Ir(),m0e=Ee(),y0e=ye(),cP=m0e("species");lP.exports=function(r){var e=g0e(r);y0e&&e&&!e[cP]&&v0e(e,cP,{configurable:!0,get:function get(){return this}})}});var fP=g(function(){"use strict";var b0e=Bo();b0e("Array")});var dP=g(function(){"use strict";var _0e=C(),w0e=Ve(),S0e=Jn(),E0e=Sr(),q0e=nr(),T0e=fh(),A0e=Sa(),O0e=$s(),R0e=en(),rb=Rl(),I0e=Xs(),P0e=I0e("splice"),C0e=Math.max,N0e=Math.min;_0e({target:"Array",proto:!0,forced:!P0e},{splice:function splice(e,t){var n=w0e(this),i=q0e(n),a=S0e(e,i),o=arguments.length,s,u,c,l,f,d;for(o===0?s=u=0:o===1?(s=0,u=i-a):(s=o-2,u=N0e(C0e(E0e(t),0),i-a)),A0e(i+s-u),c=O0e(n,u),l=0;l<u;l++)f=a+l,f in n&&R0e(c,l,n[f]);if(c.length=u,s<u){for(l=a;l<i-u;l++)f=l+u,d=l+s,f in n?n[d]=n[f]:rb(n,d);for(l=i;l>i-u+s;l--)rb(n,l-1)}else if(s>u)for(l=i-u;l>a;l--)f=l+u-1,d=l+s-1,f in n?n[d]=n[f]:rb(n,d);for(l=0;l<s;l++)n[l+a]=arguments[l+2];return T0e(n,i-u+s),c}})});var tb=g(function(Dor,pP){"use strict";var k0e=nr();pP.exports=function(r,e){for(var t=k0e(r),n=new e(t),i=0;i<t;i++)n[i]=r[t-i-1];return n}});var hP=g(function(){"use strict";var L0e=C(),D0e=tb(),W0e=Vr(),M0e=At(),F0e=Array;L0e({target:"Array",proto:!0},{toReversed:function toReversed(){return D0e(W0e(this),F0e)}});M0e("toReversed")});var Ys=g(function(For,xP){"use strict";var B0e=nr();xP.exports=function(r,e,t){for(var n=0,i=arguments.length>2?t:B0e(e),a=new r(i);i>n;)a[n]=e[n++];return a}});var nb=g(function(Bor,gP){"use strict";var U0e=ne();gP.exports=function(r,e){var t=U0e[r],n=t&&t.prototype;return n&&n[e]}});var vP=g(function(){"use strict";var j0e=C(),$0e=Q(),V0e=ke(),G0e=Vr(),z0e=Ys(),K0e=nb(),H0e=At(),Q0e=Array,X0e=$0e(K0e("Array","sort"));j0e({target:"Array",proto:!0},{toSorted:function toSorted(e){e!==void 0&&V0e(e);var t=G0e(this),n=z0e(Q0e,t);return X0e(n,e)}});H0e("toSorted")});var mP=g(function(){"use strict";var Y0e=C(),J0e=At(),Z0e=Sa(),exe=nr(),rxe=Jn(),txe=Vr(),nxe=Sr(),ixe=Array,axe=Math.max,oxe=Math.min;Y0e({target:"Array",proto:!0},{toSpliced:function toSpliced(e,t){var n=txe(this),i=exe(n),a=rxe(e,i),o=arguments.length,s=0,u,c,l,f;for(o===0?u=c=0:o===1?(u=0,c=i-a):(u=o-2,c=oxe(axe(nxe(t),0),i-a)),l=Z0e(i+u-c),f=ixe(l);s<a;s++)f[s]=n[s];for(;s<a+u;s++)f[s]=arguments[s-a+2];for(;s<l;s++)f[s]=n[s+c-u];return f}});J0e("toSpliced")});var yP=g(function(){"use strict";var sxe=At();sxe("flat")});var bP=g(function(){"use strict";var uxe=At();uxe("flatMap")});var _P=g(function(){"use strict";var cxe=C(),lxe=Ve(),fxe=nr(),dxe=fh(),pxe=Rl(),hxe=Sa(),xxe=[].unshift(0)!==1,gxe=function gxe(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(r){return _instanceof(r,TypeError)}},vxe=xxe||!gxe();cxe({target:"Array",proto:!0,arity:1,forced:vxe},{unshift:function unshift(e){var t=lxe(this),n=fxe(t),i=arguments.length;if(i){hxe(n+i);for(var a=n;a--;){var o=a+i;a in t?t[o]=t[a]:pxe(t,o)}for(var s=0;s<i;s++)t[s]=arguments[s]}return dxe(t,n+i)}})});var ib=g(function(Yor,wP){"use strict";var mxe=nr(),yxe=Sr(),bxe=RangeError;wP.exports=function(r,e,t,n){var i=mxe(r),a=yxe(t),o=a<0?i+a:a;if(o>=i||o<0)throw new bxe("Incorrect index");for(var s=new e(i),u=0;u<i;u++)s[u]=u===o?n:r[u];return s}});var SP=g(function(){"use strict";var _xe=C(),wxe=ib(),Sxe=Vr(),Exe=Array,qxe=function(){try{[].with({valueOf:function valueOf(){throw 4}},null)}catch(r){return r!==4}}();_xe({target:"Array",proto:!0,forced:qxe},{with:function _with(r,e){return wxe(Sxe(this),Exe,r,e)}})});var Ml=g(function(esr,EP){"use strict";EP.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"});var ti=g(function(rsr,qP){"use strict";var Txe=tr();qP.exports=function(r,e,t){for(var n in e)Txe(r,n,e[n],t);return r}});var $t=g(function(tsr,TP){"use strict";var Axe=mt(),Oxe=TypeError;TP.exports=function(r,e){if(Axe(e,r))return r;throw new Oxe("Incorrect invocation")}});var Fl=g(function(nsr,AP){"use strict";var Rxe=Sr(),Ixe=Mt(),Pxe=RangeError;AP.exports=function(r){if(r===void 0)return 0;var e=Rxe(r),t=Ixe(e);if(e!==t)throw new Pxe("Wrong length or index");return t}});var xh=g(function(isr,OP){"use strict";OP.exports=Math.sign||function(e){var t=+e;return t===0||t!==t?t:t<0?-1:1}});var ab=g(function(asr,IP){"use strict";var Cxe=2220446049250313e-31,RP=1/Cxe;IP.exports=function(r){return r+RP-RP}});var ob=g(function(osr,PP){"use strict";var Nxe=xh(),kxe=ab(),Lxe=Math.abs,Dxe=2220446049250313e-31;PP.exports=function(r,e,t,n){var i=+r,a=Lxe(i),o=Nxe(i);if(a<n)return o*kxe(a/n/e)*n*e;var s=(1+e/Dxe)*a,u=s-(s-a);return u>t||u!==u?o*(1/0):o*u}});var sb=g(function(ssr,CP){"use strict";var Wxe=ob(),Mxe=11920928955078125e-23,Fxe=34028234663852886e22,Bxe=11754943508222875e-54;CP.exports=Math.fround||function(e){return Wxe(e,Mxe,Fxe,Bxe)}});var kP=g(function(usr,NP){"use strict";var Uxe=Array,jxe=Math.abs,Ci=Math.pow,$xe=Math.floor,Vxe=Math.log,Gxe=Math.LN2,zxe=function zxe(r,e,t){var n=Uxe(t),i=t*8-e-1,a=(1<<i)-1,o=a>>1,s=e===23?Ci(2,-24)-Ci(2,-77):0,u=r<0||r===0&&1/r<0?1:0,c=0,l,f,d;for(r=jxe(r),r!==r||r===1/0?(f=r!==r?1:0,l=a):(l=$xe(Vxe(r)/Gxe),d=Ci(2,-l),r*d<1&&(l--,d*=2),l+o>=1?r+=s/d:r+=s*Ci(2,1-o),r*d>=2&&(l++,d/=2),l+o>=a?(f=0,l=a):l+o>=1?(f=(r*d-1)*Ci(2,e),l+=o):(f=r*Ci(2,o-1)*Ci(2,e),l=0));e>=8;)n[c++]=f&255,f/=256,e-=8;for(l=l<<e|f,i+=e;i>0;)n[c++]=l&255,l/=256,i-=8;return n[c-1]|=u*128,n},Kxe=function Kxe(r,e){var t=r.length,n=t*8-e-1,i=(1<<n)-1,a=i>>1,o=n-7,s=t-1,u=r[s--],c=u&127,l;for(u>>=7;o>0;)c=c*256+r[s--],o-=8;for(l=c&(1<<-o)-1,c>>=-o,o+=e;o>0;)l=l*256+r[s--],o-=8;if(c===0)c=1-a;else{if(c===i)return l?NaN:u?-1/0:1/0;l+=Ci(2,e),c-=a}return(u?-1:1)*l*Ci(2,c-e)};NP.exports={pack:zxe,unpack:Kxe}});var jl=g(function(csr,YP){"use strict";var bh=ne(),db=Q(),ub=ye(),Hxe=Ml(),zP=Ao(),Qxe=Jr(),Xxe=Ir(),LP=ti(),cb=z(),gh=$t(),Yxe=Sr(),Jxe=Mt(),mh=Fl(),Zxe=sb(),KP=kP(),ege=yt(),DP=hn(),rge=ih(),tge=Zt(),nge=wa(),ige=Ro(),HP=Tt(),pb=hr(),age=zP.PROPER,WP=zP.CONFIGURABLE,Zs="ArrayBuffer",_h="DataView",eu="prototype",oge="Wrong length",QP="Wrong index",MP=pb.getterFor(Zs),Ul=pb.getterFor(_h),FP=pb.set,Ln=bh[Zs],rn=Ln,Js=rn&&rn[eu],ni=bh[_h],Uo=ni&&ni[eu],BP=Object.prototype,sge=bh.Array,yh=bh.RangeError,uge=db(rge),cge=db([].reverse),XP=KP.pack,UP=KP.unpack,jP=function jP(r){return[r&255]},$P=function $P(r){return[r&255,r>>8&255]},VP=function VP(r){return[r&255,r>>8&255,r>>16&255,r>>24&255]},GP=function GP(r){return r[3]<<24|r[2]<<16|r[1]<<8|r[0]},lge=function lge(r){return XP(Zxe(r),23,4)},fge=function fge(r){return XP(r,52,8)},vh=function vh(r,e,t){Xxe(r[eu],e,{configurable:!0,get:function get(){return t(this)[e]}})},Ta=function Ta(r,e,t,n){var i=Ul(r),a=mh(t),o=!!n;if(a+e>i.byteLength)throw new yh(QP);var s=i.bytes,u=a+i.byteOffset,c=tge(s,u,u+e);return o?c:cge(c)},Aa=function Aa(r,e,t,n,i,a){var o=Ul(r),s=mh(t),u=n(+i),c=!!a;if(s+e>o.byteLength)throw new yh(QP);for(var l=o.bytes,f=s+o.byteOffset,d=0;d<e;d++)l[f+d]=u[c?d:e-d-1]};Hxe?(lb=age&&Ln.name!==Zs,!cb(function(){Ln(1)})||!cb(function(){new Ln(-1)})||cb(function(){return new Ln,new Ln(1.5),new Ln(NaN),Ln.length!==1||lb&&!WP})?(rn=function(e){return gh(this,Js),nge(new Ln(mh(e)),this,rn)},rn[eu]=Js,Js.constructor=rn,ige(rn,Ln)):lb&&WP&&Qxe(Ln,"name",Zs),DP&&ege(Uo)!==BP&&DP(Uo,BP),Bl=new ni(new rn(2)),fb=db(Uo.setInt8),Bl.setInt8(0,0x80000000),Bl.setInt8(1,0x80000001),(Bl.getInt8(0)||!Bl.getInt8(1))&&LP(Uo,{setInt8:function setInt8(e,t){fb(this,e,t<<24>>24)},setUint8:function setUint8(e,t){fb(this,e,t<<24>>24)}},{unsafe:!0})):(rn=function rn(e){gh(this,Js);var t=mh(e);FP(this,{type:Zs,bytes:uge(sge(t),0),byteLength:t}),ub||(this.byteLength=t,this.detached=!1)},Js=rn[eu],ni=function ni(e,t,n){gh(this,Uo),gh(e,Js);var i=MP(e),a=i.byteLength,o=Yxe(t);if(o<0||o>a)throw new yh("Wrong offset");if(n=n===void 0?a-o:Jxe(n),o+n>a)throw new yh(oge);FP(this,{type:_h,buffer:e,byteLength:n,byteOffset:o,bytes:i.bytes}),ub||(this.buffer=e,this.byteLength=n,this.byteOffset=o)},Uo=ni[eu],ub&&(vh(rn,"byteLength",MP),vh(ni,"buffer",Ul),vh(ni,"byteLength",Ul),vh(ni,"byteOffset",Ul)),LP(Uo,{getInt8:function getInt8(e){return Ta(this,1,e)[0]<<24>>24},getUint8:function getUint8(e){return Ta(this,1,e)[0]},getInt16:function getInt16(e){var t=Ta(this,2,e,arguments.length>1?arguments[1]:!1);return(t[1]<<8|t[0])<<16>>16},getUint16:function getUint16(e){var t=Ta(this,2,e,arguments.length>1?arguments[1]:!1);return t[1]<<8|t[0]},getInt32:function getInt32(e){return GP(Ta(this,4,e,arguments.length>1?arguments[1]:!1))},getUint32:function getUint32(e){return GP(Ta(this,4,e,arguments.length>1?arguments[1]:!1))>>>0},getFloat32:function getFloat32(e){return UP(Ta(this,4,e,arguments.length>1?arguments[1]:!1),23)},getFloat64:function getFloat64(e){return UP(Ta(this,8,e,arguments.length>1?arguments[1]:!1),52)},setInt8:function setInt8(e,t){Aa(this,1,e,jP,t)},setUint8:function setUint8(e,t){Aa(this,1,e,jP,t)},setInt16:function setInt16(e,t){Aa(this,2,e,$P,t,arguments.length>2?arguments[2]:!1)},setUint16:function setUint16(e,t){Aa(this,2,e,$P,t,arguments.length>2?arguments[2]:!1)},setInt32:function setInt32(e,t){Aa(this,4,e,VP,t,arguments.length>2?arguments[2]:!1)},setUint32:function setUint32(e,t){Aa(this,4,e,VP,t,arguments.length>2?arguments[2]:!1)},setFloat32:function setFloat32(e,t){Aa(this,4,e,lge,t,arguments.length>2?arguments[2]:!1)},setFloat64:function setFloat64(e,t){Aa(this,8,e,fge,t,arguments.length>2?arguments[2]:!1)}}));var lb,Bl,fb;HP(rn,Zs);HP(ni,_h);YP.exports={ArrayBuffer:rn,DataView:ni}});var ZP=g(function(){"use strict";var dge=C(),pge=ne(),hge=jl(),xge=Bo(),hb="ArrayBuffer",JP=hge[hb],gge=pge[hb];dge({global:!0,constructor:!0,forced:gge!==JP},{ArrayBuffer:JP});xge(hb)});var Me=g(function(dsr,cC){"use strict";var vge=Ml(),mb=ye(),Ot=ne(),nC=We(),Eh=we(),Ra=Ne(),yb=Ft(),mge=xa(),yge=Jr(),xb=tr(),bge=Ir(),_ge=mt(),qh=yt(),tu=hn(),wge=Ee(),Sge=ga(),iC=hr(),aC=iC.enforce,Ege=iC.get,wh=Ot.Int8Array,gb=wh&&wh.prototype,eC=Ot.Uint8ClampedArray,rC=eC&&eC.prototype,ii=wh&&qh(wh),Dn=gb&&qh(gb),qge=Object.prototype,bb=Ot.TypeError,tC=wge("toStringTag"),vb=Sge("TYPED_ARRAY_TAG"),Sh="TypedArrayConstructor",Ni=vge&&!!tu&&yb(Ot.opera)!=="Opera",oC=!1,Vt,Oa,ru,ki={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},_b={BigInt64Array:8,BigUint64Array:8},Tge=function Tge(e){if(!Eh(e))return!1;var t=yb(e);return t==="DataView"||Ra(ki,t)||Ra(_b,t)},sC=function sC1(r){var e=qh(r);if(Eh(e)){var t=Ege(e);return t&&Ra(t,Sh)?t[Sh]:sC(e)}},uC=function uC(r){if(!Eh(r))return!1;var e=yb(r);return Ra(ki,e)||Ra(_b,e)},Age=function Age(r){if(uC(r))return r;throw new bb("Target is not a typed array")},Oge=function Oge(r){if(nC(r)&&(!tu||_ge(ii,r)))return r;throw new bb(mge(r)+" is not a typed array constructor")},Rge=function Rge(r,e,t,n){if(mb){if(t)for(var i in ki){var a=Ot[i];if(a&&Ra(a.prototype,r))try{delete a.prototype[r]}catch(o){try{a.prototype[r]=e}catch(s){}}}(!Dn[r]||t)&&xb(Dn,r,t?e:Ni&&gb[r]||e,n)}},Ige=function Ige(r,e,t){var n,i;if(mb){if(tu){if(t){for(n in ki)if(i=Ot[n],i&&Ra(i,r))try{delete i[r]}catch(a){}}if(!ii[r]||t)try{return xb(ii,r,t?e:Ni&&ii[r]||e)}catch(a){}else return}for(n in ki)i=Ot[n],i&&(!i[r]||t)&&xb(i,r,e)}};for(Vt in ki)Oa=Ot[Vt],ru=Oa&&Oa.prototype,ru?aC(ru)[Sh]=Oa:Ni=!1;for(Vt in _b)Oa=Ot[Vt],ru=Oa&&Oa.prototype,ru&&(aC(ru)[Sh]=Oa);if((!Ni||!nC(ii)||ii===Function.prototype)&&(ii=function ii(){throw new bb("Incorrect invocation")},Ni))for(Vt in ki)Ot[Vt]&&tu(Ot[Vt],ii);if((!Ni||!Dn||Dn===qge)&&(Dn=ii.prototype,Ni))for(Vt in ki)Ot[Vt]&&tu(Ot[Vt].prototype,Dn);Ni&&qh(rC)!==Dn&&tu(rC,Dn);if(mb&&!Ra(Dn,tC)){oC=!0,bge(Dn,tC,{configurable:!0,get:function get(){return Eh(this)?this[vb]:void 0}});for(Vt in ki)Ot[Vt]&&yge(Ot[Vt],vb,Vt)}cC.exports={NATIVE_ARRAY_BUFFER_VIEWS:Ni,TYPED_ARRAY_TAG:oC&&vb,aTypedArray:Age,aTypedArrayConstructor:Oge,exportTypedArrayMethod:Rge,exportTypedArrayStaticMethod:Ige,getTypedArrayConstructor:sC,isView:Tge,isTypedArray:uC,TypedArray:ii,TypedArrayPrototype:Dn}});var fC=g(function(){"use strict";var Pge=C(),lC=Me(),Cge=lC.NATIVE_ARRAY_BUFFER_VIEWS;Pge({target:"ArrayBuffer",stat:!0,forced:!Cge},{isView:lC.isView})});var vC=g(function(){"use strict";var Nge=C(),Sb=ma(),kge=z(),xC=jl(),dC=ge(),pC=Jn(),Lge=Mt(),Eb=xC.ArrayBuffer,wb=xC.DataView,gC=wb.prototype,hC=Sb(Eb.prototype.slice),Dge=Sb(gC.getUint8),Wge=Sb(gC.setUint8),Mge=kge(function(){return!new Eb(2).slice(1,void 0).byteLength});Nge({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:Mge},{slice:function slice(e,t){if(hC&&t===void 0)return hC(dC(this),e);for(var n=dC(this).byteLength,i=pC(e,n),a=pC(t===void 0?n:t,n),o=new Eb(Lge(a-i)),s=new wb(this),u=new wb(o),c=0;i<a;)Wge(u,c++,Dge(s,i++));return o}})});var mC=g(function(){"use strict";var Fge=C(),Bge=jl(),Uge=Ml();Fge({global:!0,constructor:!0,forced:!Uge},{DataView:Bge.DataView})});var yC=g(function(){"use strict";mC()});var EC=g(function(){"use strict";var jge=C(),$ge=Q(),SC=Math.pow,bC=31,Vge=1023,_C=SC(2,-24),wC=9765625e-10,Gge=function Gge(r){var e=r>>>15,t=r>>>10&bC,n=r&Vge;return t===bC?n===0?e===0?1/0:-1/0:NaN:t===0?n*(e===0?_C:-_C):SC(2,t-15)*(e===0?1+n*wC:-1-n*wC)},zge=$ge(DataView.prototype.getUint16);jge({target:"DataView",proto:!0},{getFloat16:function getFloat16(e){return Gge(zge(this,e,arguments.length>1?arguments[1]:!1))}})});var TC=g(function(Ssr,qC){"use strict";var Kge=Ft(),Hge=TypeError;qC.exports=function(r){if(Kge(r)==="DataView")return r;throw new Hge("Argument is not a DataView")}});var qb=g(function(Esr,AC){"use strict";var Qge=Math.log,Xge=Math.LN2;AC.exports=Math.log2||function(e){return Qge(e)/Xge}});var RC=g(function(){"use strict";var Yge=C(),Jge=Q(),Zge=TC(),eve=Fl(),rve=qb(),OC=ab(),tve=Math.pow,nve=65520,ive=61005353927612305e-21,ave=0x1000000,Tb=1024,ove=function ove(r){if(r!==r)return 32256;if(r===0)return(1/r===-1/0)<<15;var e=r<0;if(e&&(r=-r),r>=nve)return e<<15|31744;if(r<ive)return e<<15|OC(r*ave);var t=rve(r)|0;if(t===-15)return e<<15|Tb;var n=OC((r*tve(2,-t)-1)*Tb);return n===Tb?e<<15|t+16<<10:e<<15|t+15<<10|n},sve=Jge(DataView.prototype.setUint16);Yge({target:"DataView",proto:!0},{setFloat16:function setFloat16(e,t){sve(Zge(this),eve(e),ove(+t),arguments.length>2?arguments[2]:!1)}})});var Ab=g(function(Asr,CC){"use strict";var PC=ne(),uve=Al(),cve=ut(),IC=PC.ArrayBuffer,lve=PC.TypeError;CC.exports=IC&&uve(IC.prototype,"byteLength","get")||function(r){if(cve(r)!=="ArrayBuffer")throw new lve("ArrayBuffer expected");return r.byteLength}});var Ob=g(function(Osr,NC){"use strict";var fve=ne(),dve=Ml(),pve=Ab(),hve=fve.DataView;NC.exports=function(r){if(!dve||pve(r)!==0)return!1;try{return new hve(r),!1}catch(e){return!0}}});var LC=g(function(){"use strict";var xve=ye(),gve=Ir(),vve=Ob(),kC=ArrayBuffer.prototype;xve&&!("detached"in kC)&&gve(kC,"detached",{configurable:!0,get:function get(){return vve(this)}})});var nu=g(function(Psr,DC){"use strict";var mve=Ob(),yve=TypeError;DC.exports=function(r){if(mve(r))throw new yve("ArrayBuffer is detached");return r}});var Rb=g(function(Csr,WC){"use strict";var bve=ne(),_ve=Fo();WC.exports=function(r){if(_ve){try{return bve.process.getBuiltinModule(r)}catch(e){}try{return Function('return require("'+r+'")')()}catch(e){}}}});var Th=g(function(Nsr,FC){"use strict";var wve=ne(),Sve=z(),Ib=Nn(),Pb=Wl(),MC=wve.structuredClone;FC.exports=!!MC&&!Sve(function(){if(Pb==="DENO"&&Ib>92||Pb==="NODE"&&Ib>94||Pb==="BROWSER"&&Ib>97)return!1;var r=new ArrayBuffer(8),e=MC(r,{transfer:[r]});return r.byteLength!==0||e.byteLength!==8})});var Db=g(function(ksr,jC){"use strict";var Lb=ne(),Eve=Rb(),qve=Th(),Tve=Lb.structuredClone,BC=Lb.ArrayBuffer,Ah=Lb.MessageChannel,kb=!1,Cb,UC,Oh,Nb;if(qve)kb=function kb(r){Tve(r,{transfer:[r]})};else if(BC)try{Ah||(Cb=Eve("worker_threads"),Cb&&(Ah=Cb.MessageChannel)),Ah&&(UC=new Ah,Oh=new BC(2),Nb=function Nb(r){UC.port1.postMessage(null,[r])},Oh.byteLength===2&&(Nb(Oh),Oh.byteLength===0&&(kb=Nb)))}catch(r){}jC.exports=kb});var jb=g(function(Lsr,QC){"use strict";var Fb=ne(),Bb=Q(),zC=Al(),Ave=Fl(),Ove=nu(),Rve=Ab(),$C=Db(),Wb=Th(),Ive=Fb.structuredClone,KC=Fb.ArrayBuffer,Mb=Fb.DataView,Pve=Math.min,Ub=KC.prototype,HC=Mb.prototype,Cve=Bb(Ub.slice),VC=zC(Ub,"resizable","get"),GC=zC(Ub,"maxByteLength","get"),Nve=Bb(HC.getInt8),kve=Bb(HC.setInt8);QC.exports=(Wb||$C)&&function(r,e,t){var n=Rve(r),i=e===void 0?n:Ave(e),a=!VC||!VC(r),o;if(Ove(r),Wb&&(r=Ive(r,{transfer:[r]}),n===i&&(t||a)))return r;if(n>=i&&(!t||a))o=Cve(r,0,i);else{var s=t&&!a&&GC?{maxByteLength:GC(r)}:void 0;o=new KC(i,s);for(var u=new Mb(r),c=new Mb(o),l=Pve(i,n),f=0;f<l;f++)kve(c,f,Nve(u,f))}return Wb||$C(r),o}});var YC=g(function(){"use strict";var Lve=C(),XC=jb();XC&&Lve({target:"ArrayBuffer",proto:!0},{transfer:function transfer(){return XC(this,arguments.length?arguments[0]:void 0,!0)}})});var ZC=g(function(){"use strict";var Dve=C(),JC=jb();JC&&Dve({target:"ArrayBuffer",proto:!0},{transferToFixedLength:function transferToFixedLength(){return JC(this,arguments.length?arguments[0]:void 0,!1)}})});var e6=g(function(){"use strict";var Wve=C(),Mve=Q(),Fve=z(),Bve=Fve(function(){return new Date(16e11).getYear()!==120}),Uve=Mve(Date.prototype.getFullYear);Wve({target:"Date",proto:!0,forced:Bve},{getYear:function getYear(){return Uve(this)-1900}})});var t6=g(function(){"use strict";var jve=C(),$ve=Q(),r6=Date,Vve=$ve(r6.prototype.getTime);jve({target:"Date",stat:!0},{now:function now(){return Vve(new r6)}})});var a6=g(function(){"use strict";var Gve=C(),n6=Q(),zve=Sr(),i6=Date.prototype,Kve=n6(i6.getTime),Hve=n6(i6.setFullYear);Gve({target:"Date",proto:!0},{setYear:function setYear(e){Kve(this);var t=zve(e),n=t>=0&&t<=99?t+1900:t;return Hve(this,n)}})});var o6=g(function(){"use strict";var Qve=C();Qve({target:"Date",proto:!0},{toGMTString:Date.prototype.toUTCString})});var $l=g(function(Hsr,s6){"use strict";var Xve=Sr(),Yve=Oe(),Jve=mr(),Zve=RangeError;s6.exports=function(e){var t=Yve(Jve(this)),n="",i=Xve(e);if(i<0||i===1/0)throw new Zve("Wrong number of repetitions");for(;i>0;(i>>>=1)&&(t+=t))i&1&&(n+=t);return n}});var Vl=g(function(Qsr,f6){"use strict";var l6=Q(),eme=Mt(),u6=Oe(),rme=$l(),tme=mr(),nme=l6(rme),ime=l6("".slice),ame=Math.ceil,c6=function c6(r){return function(e,t,n){var i=u6(tme(e)),a=eme(t),o=i.length,s=n===void 0?" ":u6(n),u,c;return a<=o||s===""?i:(u=a-o,c=nme(s,ame(u/s.length)),c.length>u&&(c=ime(c,0,u)),r?i+c:c+i)}};f6.exports={start:c6(!1),end:c6(!0)}});var h6=g(function(Xsr,p6){"use strict";var Ia=Q(),d6=z(),jo=Vl().start,ome=RangeError,sme=isFinite,ume=Math.abs,Li=Date.prototype,$b=Li.toISOString,cme=Ia(Li.getTime),lme=Ia(Li.getUTCDate),fme=Ia(Li.getUTCFullYear),dme=Ia(Li.getUTCHours),pme=Ia(Li.getUTCMilliseconds),hme=Ia(Li.getUTCMinutes),xme=Ia(Li.getUTCMonth),gme=Ia(Li.getUTCSeconds);p6.exports=d6(function(){return $b.call(new Date(-5e13-1))!=="0385-07-25T07:06:39.999Z"})||!d6(function(){$b.call(new Date(NaN))})?function(){if(!sme(cme(this)))throw new ome("Invalid time value");var e=this,t=fme(e),n=pme(e),i=t<0?"-":t>9999?"+":"";return i+jo(ume(t),i?6:4,0)+"-"+jo(xme(e)+1,2,0)+"-"+jo(lme(e),2,0)+"T"+jo(dme(e),2,0)+":"+jo(hme(e),2,0)+":"+jo(gme(e),2,0)+"."+jo(n,3,0)+"Z"}:$b});var g6=g(function(){"use strict";var vme=C(),x6=h6();vme({target:"Date",proto:!0,forced:Date.prototype.toISOString!==x6},{toISOString:x6})});var v6=g(function(){"use strict";var mme=C(),yme=z(),bme=Ve(),_me=dl(),wme=yme(function(){return new Date(NaN).toJSON()!==null||Date.prototype.toJSON.call({toISOString:function toISOString(){return 1}})!==1});mme({target:"Date",proto:!0,arity:1,forced:wme},{toJSON:function toJSON(e){var t=bme(this),n=_me(t,"number");return typeof n=="number"&&!isFinite(n)?null:t.toISOString()}})});var y6=g(function(rur,m6){"use strict";var Sme=ge(),Eme=xm(),qme=TypeError;m6.exports=function(r){if(Sme(this),r==="string"||r==="default")r="string";else if(r!=="number")throw new qme("Incorrect hint");return Eme(this,r)}});var w6=g(function(){"use strict";var Tme=Ne(),Ame=tr(),Ome=y6(),Rme=Ee(),b6=Rme("toPrimitive"),_6=Date.prototype;Tme(_6,b6)||Ame(_6,b6,Ome)});var T6=g(function(){"use strict";var E6=Q(),Ime=tr(),Vb=Date.prototype,S6="Invalid Date",q6="toString",Pme=E6(Vb[q6]),Cme=E6(Vb.getTime);String(new Date(NaN))!==S6&&Ime(Vb,q6,function(){var e=Cme(this);return e===e?Pme(this):S6})});var zb=g(function(our,P6){"use strict";var Nme=Ce(),kme=he(),Lme=Q(),Dme=Bt(),Wme=ge(),Mme=ke(),R6=Yn(),Gb=Xr(),I6=Ee(),Fme=I6("asyncDispose"),A6=I6("dispose"),Bme=Lme([].push),Ume=function Ume(r,e){if(e==="async-dispose"){var t=Gb(r,Fme);return t!==void 0||(t=Gb(r,A6),t===void 0)?t:function(){var n=this,i=Nme("Promise");return new i(function(a){kme(t,n),a(void 0)})}}return Gb(r,A6)},O6=function O6(r,e,t){return arguments.length<3&&!R6(r)&&(t=Mme(Ume(Wme(r),e))),t===void 0?function(){}:Dme(t,r)};P6.exports=function(r,e,t,n){var i;if(arguments.length<4){if(R6(e)&&t==="sync-dispose")return;i=O6(e,t)}else i=O6(void 0,t,n);Bme(r.stack,i)}});var D6=g(function(){"use strict";var jme=C(),Ih=ye(),$me=Ce(),C6=ke(),Vme=$t(),N6=tr(),Gme=ti(),zme=Ir(),k6=Ee(),L6=hr(),Kb=zb(),Kme=$me("SuppressedError"),Hme=ReferenceError,Qme=k6("dispose"),Xme=k6("toStringTag"),Ch="DisposableStack",Yme=L6.set,Ph=L6.getterFor(Ch),Hb="sync-dispose",Gl="disposed",Jme="pending",Rh=function Rh(r){var e=Ph(r);if(e.state===Gl)throw new Hme(Ch+" already disposed");return e},Qb=function Qb(){Yme(Vme(this,iu),{type:Ch,state:Jme,stack:[]}),Ih||(this.disposed=!1)},iu=Qb.prototype;Gme(iu,{dispose:function dispose(){var e=Ph(this);if(e.state!==Gl){e.state=Gl,Ih||(this.disposed=!0);for(var t=e.stack,n=t.length,i=!1,a;n;){var o=t[--n];t[n]=null;try{o()}catch(s){i?a=new Kme(s,a):(i=!0,a=s)}}if(e.stack=null,i)throw a}},use:function use(e){return Kb(Rh(this),e,Hb),e},adopt:function adopt(e,t){var n=Rh(this);return C6(t),Kb(n,void 0,Hb,function(){t(e)}),e},defer:function defer(e){var t=Rh(this);C6(e),Kb(t,void 0,Hb,e)},move:function move(){var e=Rh(this),t=new Qb;return Ph(t).stack=e.stack,e.stack=[],e.state=Gl,Ih||(this.disposed=!0),t}});Ih&&zme(iu,"disposed",{configurable:!0,get:function get(){return Ph(this).state===Gl}});N6(iu,Qme,iu.dispose,{name:"dispose"});N6(iu,Xme,Ch,{nonWritable:!0});jme({global:!0,constructor:!0},{DisposableStack:Qb})});var M6=g(function(){"use strict";var Zme=C(),zl=Q(),eye=Oe(),rye=zl("".charAt),tye=zl("".charCodeAt),nye=zl(/./.exec),iye=zl(1.1.toString),aye=zl("".toUpperCase),oye=/[\w*+\-./@]/,W6=function W6(r,e){for(var t=iye(r,16);t.length<e;)t="0"+t;return t};Zme({global:!0},{escape:function escape1(e){for(var t=eye(e),n="",i=t.length,a=0,o,s;a<i;)o=rye(t,a++),nye(oye,o)?n+=o:(s=tye(o,0),s<256?n+="%"+W6(s,2):n+="%u"+aye(W6(s,4)));return n}})});var Yb=g(function(fur,j6){"use strict";var B6=Q(),sye=ke(),uye=we(),cye=Ne(),F6=Zt(),lye=Ws(),U6=Function,fye=B6([].concat),dye=B6([].join),Xb={},pye=function pye(r,e,t){if(!cye(Xb,e)){for(var n=[],i=0;i<e;i++)n[i]="a["+i+"]";Xb[e]=U6("C,a","return new C("+dye(n,",")+")")}return Xb[e](r,t)};j6.exports=lye?U6.bind:function(e){var t=sye(this),n=t.prototype,i=F6(arguments,1),a=function a2(){var s=fye(i,F6(arguments));return _instanceof(this,a)?pye(t,s.length,s):t.apply(e,s)};return uye(n)&&(a.prototype=n),a}});var V6=g(function(){"use strict";var hye=C(),$6=Yb();hye({target:"Function",proto:!0,forced:Function.bind!==$6},{bind:$6})});var K6=g(function(){"use strict";var xye=We(),G6=we(),gye=pr(),vye=mt(),mye=Ee(),yye=Ep(),Jb=mye("hasInstance"),z6=Function.prototype;Jb in z6||gye.f(z6,Jb,{value:yye(function(r){if(!xye(this)||!G6(r))return!1;var e=this.prototype;return G6(e)?vye(e,r):_instanceof(r,this)},Jb)})});var Y6=g(function(){"use strict";var bye=ye(),_ye=Ao().EXISTS,H6=Q(),wye=Ir(),Q6=Function.prototype,Sye=H6(Q6.toString),X6=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Eye=H6(X6.exec),qye="name";bye&&!_ye&&wye(Q6,qye,{configurable:!0,get:function get(){try{return Eye(X6,Sye(this))[1]}catch(r){return""}}})});var J6=g(function(){"use strict";var Tye=C(),Zb=ne();Tye({global:!0,forced:Zb.globalThis!==Zb},{globalThis:Zb})});var i8=g(function(){"use strict";var Aye=C(),Oye=ne(),Rye=$t(),Iye=ge(),Pye=We(),Cye=yt(),Nye=Ir(),kye=en(),Lye=z(),t_=Ne(),Dye=Ee(),ai=Mo().IteratorPrototype,Wye=ye(),Mye=Ke(),e_="constructor",e8="Iterator",Z6=Dye("toStringTag"),r8=TypeError,r_=Oye[e8],t8=Mye||!Pye(r_)||r_.prototype!==ai||!Lye(function(){r_({})}),n_=function n_(){if(Rye(this,ai),Cye(this)===ai)throw new r8("Abstract class Iterator not directly constructable")},n8=function n8(r,e){Wye?Nye(ai,r,{configurable:!0,get:function get(){return e},set:function set(t){if(Iye(this),this===ai)throw new r8("You can't redefine this property");t_(this,r)?this[r]=t:kye(this,r,t)}}):ai[r]=e};t_(ai,Z6)||n8(Z6,e8);(t8||!t_(ai,e_)||ai[e_]===Object)&&n8(e_,n_);n_.prototype=ai;Aye({global:!0,constructor:!0,forced:t8},{Iterator:n_})});var o8=g(function(wur,a8){"use strict";var Fye=tt();a8.exports=function(r,e,t){for(var n=r.length-1;n>=0;n--)if(r[n]!==void 0)try{t=Fye(r[n].iterator,e,t)}catch(i){e="throw",t=i}if(e==="throw")throw t;return t}});var Pa=g(function(Sur,p8){"use strict";var Bye=he(),Uye=Zr(),jye=Jr(),$ye=ti(),Vye=Ee(),u8=hr(),Gye=Xr(),zye=Mo().IteratorPrototype,Nh=Ea(),kh=tt(),Kye=o8(),Hye=Vye("toStringTag"),c8="IteratorHelper",l8="WrapForValidIterator",i_="normal",s8="throw",Qye=u8.set,f8=function f8(r){var e=u8.getterFor(r?l8:c8);return $ye(Uye(zye),{next:function next(){var n=e(this);if(r)return n.nextHandler();if(n.done)return Nh(void 0,!0);try{var i=n.nextHandler();return n.returnHandlerResult?i:Nh(i,n.done)}catch(a){throw n.done=!0,a}},return:function _return(){var t=e(this),n=t.iterator;if(t.done=!0,r){var i=Gye(n,"return");return i?Bye(i,n):Nh(void 0,!0)}if(t.inner)try{kh(t.inner.iterator,i_)}catch(a){return kh(n,s8,a)}if(t.openIters)try{Kye(t.openIters,i_)}catch(a){return kh(n,s8,a)}return n&&kh(n,i_),Nh(void 0,!0)}})},Xye=f8(!0),d8=f8(!1);jye(d8,Hye,"Iterator Helper");p8.exports=function(r,e,t){var n=function n(a,o){o?(o.iterator=a.iterator,o.next=a.next):o=a,o.type=e?l8:c8,o.returnHandlerResult=!!t,o.nextHandler=r,o.counter=0,o.done=!1,Qye(this,o)};return n.prototype=e?Xye:d8,n}});var g8=g(function(){"use strict";var Yye=C(),h8=he(),Jye=ke(),x8=ge(),Zye=Ii(),ebe=Pa(),rbe=Array,tbe=ebe(function(){for(;;){var r=this.iterator;if(!r){var e=this.nextIterableIndex++,t=this.iterables;if(e>=t.length){this.done=!0;return}var n=t[e];this.iterables[e]=null,r=this.iterator=h8(n.method,n.iterable),this.next=r.next}var i=x8(h8(this.next,r));if(i.done){this.iterator=null,this.next=null;continue}return i.value}});Yye({target:"Iterator",stat:!0},{concat:function concat(){for(var e=arguments.length,t=rbe(e),n=0;n<e;n++){var i=x8(arguments[n]);t[n]={iterable:i,method:Jye(Zye(i))}}return new tbe({iterables:t,nextIterableIndex:0,iterator:null,next:null})}})});var y8=g(function(){"use strict";var nbe=he(),ibe=tr(),abe=Xr(),obe=Ne(),sbe=Ee(),v8=Mo().IteratorPrototype,m8=sbe("dispose");obe(v8,m8)||ibe(v8,m8,function(){var r=abe(this,"return");r&&nbe(r,this)})});var lt=g(function(Our,b8){"use strict";b8.exports=function(r){return{iterator:r,next:r.next,done:!1}}});var a_=g(function(Rur,_8){"use strict";var ube=RangeError;_8.exports=function(r){if(r===r)return r;throw new ube("NaN is not allowed")}});var Lh=g(function(Iur,w8){"use strict";var cbe=Sr(),lbe=RangeError;w8.exports=function(r){var e=cbe(r);if(e<0)throw new lbe("The argument can't be less than 0");return e}});var Kl=g(function(Pur,S8){"use strict";S8.exports=function(r,e){var t=typeof Iterator=="function"&&Iterator.prototype[r];if(t)try{t.call({next:null},e).next()}catch(n){return!0}}});var Wn=g(function(Cur,E8){"use strict";var fbe=ne();E8.exports=function(r,e){var t=fbe.Iterator,n=t&&t.prototype,i=n&&n[r],a=!1;if(i)try{i.call({next:function next(){return{done:!0}},return:function _return(){a=!0}},-1)}catch(o){_instanceof(o,e)||(a=!1)}if(!a)return i}});var T8=g(function(){"use strict";var dbe=C(),o_=he(),s_=ge(),pbe=lt(),hbe=a_(),xbe=Lh(),gbe=tt(),vbe=Pa(),mbe=Kl(),ybe=Wn(),c_=Ke(),q8=!c_&&!mbe("drop",0),u_=!c_&&!q8&&ybe("drop",RangeError),bbe=c_||q8||u_,_be=vbe(function(){for(var r=this.iterator,e=this.next,t,n;this.remaining;)if(this.remaining--,t=s_(o_(e,r)),n=this.done=!!t.done,n)return;if(t=s_(o_(e,r)),n=this.done=!!t.done,!n)return t.value});dbe({target:"Iterator",proto:!0,real:!0,forced:bbe},{drop:function drop(e){s_(this);var t;try{t=xbe(hbe(+e))}catch(n){gbe(this,"throw",n)}return u_?o_(u_,this,t):new _be(pbe(this),{remaining:t})}})});var A8=g(function(){"use strict";var wbe=C(),Sbe=he(),Ebe=Fr(),qbe=ke(),Tbe=ge(),Abe=lt(),Obe=tt(),Rbe=Wn(),l_=Rbe("every",TypeError);wbe({target:"Iterator",proto:!0,real:!0,forced:l_},{every:function every(e){Tbe(this);try{qbe(e)}catch(i){Obe(this,"throw",i)}if(l_)return Sbe(l_,this,e);var t=Abe(this),n=0;return!Ebe(t,function(i,a){if(!e(i,n++))return a()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})});var P8=g(function(){"use strict";var Ibe=C(),O8=he(),Pbe=ke(),R8=ge(),Cbe=lt(),Nbe=Pa(),kbe=ah(),d_=Ke(),Lbe=tt(),Dbe=Kl(),Wbe=Wn(),I8=!d_&&!Dbe("filter",function(){}),f_=!d_&&!I8&&Wbe("filter",TypeError),Mbe=d_||I8||f_,Fbe=Nbe(function(){for(var r=this.iterator,e=this.predicate,t=this.next,n,i,a;;){if(n=R8(O8(t,r)),i=this.done=!!n.done,i)return;if(a=n.value,kbe(r,e,[a,this.counter++],!0))return a}});Ibe({target:"Iterator",proto:!0,real:!0,forced:Mbe},{filter:function filter(e){R8(this);try{Pbe(e)}catch(t){Lbe(this,"throw",t)}return f_?O8(f_,this,e):new Fbe(Cbe(this),{predicate:e})}})});var C8=g(function(){"use strict";var Bbe=C(),Ube=he(),jbe=Fr(),$be=ke(),Vbe=ge(),Gbe=lt(),zbe=tt(),Kbe=Wn(),p_=Kbe("find",TypeError);Bbe({target:"Iterator",proto:!0,real:!0,forced:p_},{find:function find(e){Vbe(this);try{$be(e)}catch(i){zbe(this,"throw",i)}if(p_)return Ube(p_,this,e);var t=Gbe(this),n=0;return jbe(t,function(i,a){if(e(i,n++))return a(i)},{IS_RECORD:!0,INTERRUPTED:!0}).result}})});var h_=g(function(Uur,k8){"use strict";var Hbe=he(),N8=ge(),Qbe=lt(),Xbe=Ii();k8.exports=function(r,e){(!e||typeof r!="string")&&N8(r);var t=Xbe(r);return Qbe(N8(t!==void 0?Hbe(t,r):r))}});var D8=g(function(){"use strict";var Ybe=C(),x_=he(),Jbe=ke(),g_=ge(),Zbe=lt(),e_e=h_(),r_e=Pa(),v_=tt(),y_=Ke(),t_e=Kl(),n_e=Wn(),L8=!y_&&!t_e("flatMap",function(){}),m_=!y_&&!L8&&n_e("flatMap",TypeError),i_e=y_||L8||m_,a_e=r_e(function(){for(var r=this.iterator,e=this.mapper,t,n;;){if(n=this.inner)try{if(t=g_(x_(n.next,n.iterator)),!t.done)return t.value;this.inner=null}catch(i){v_(r,"throw",i)}if(t=g_(x_(this.next,r)),this.done=!!t.done)return;try{this.inner=e_e(e(t.value,this.counter++),!1)}catch(i){v_(r,"throw",i)}}});Ybe({target:"Iterator",proto:!0,real:!0,forced:i_e},{flatMap:function flatMap(e){g_(this);try{Jbe(e)}catch(t){v_(this,"throw",t)}return m_?x_(m_,this,e):new a_e(Zbe(this),{mapper:e,inner:null})}})});var W8=g(function(){"use strict";var o_e=C(),s_e=he(),u_e=Fr(),c_e=ke(),l_e=ge(),f_e=lt(),d_e=tt(),p_e=Wn(),b_=p_e("forEach",TypeError);o_e({target:"Iterator",proto:!0,real:!0,forced:b_},{forEach:function forEach(e){l_e(this);try{c_e(e)}catch(i){d_e(this,"throw",i)}if(b_)return s_e(b_,this,e);var t=f_e(this),n=0;u_e(t,function(i){e(i,n++)},{IS_RECORD:!0})}})});var M8=g(function(){"use strict";var h_e=C(),x_e=he(),g_e=Ve(),v_e=mt(),m_e=Mo().IteratorPrototype,y_e=Pa(),b_e=h_(),__e=Ke(),w_e=__e||function(){try{Iterator.from({return:null}).return()}catch(r){return!0}}(),S_e=y_e(function(){return x_e(this.next,this.iterator)},!0);h_e({target:"Iterator",stat:!0,forced:w_e},{from:function from(e){var t=b_e(typeof e=="string"?g_e(e):e,!0);return v_e(m_e,t.iterator)?t.iterator:new S_e(t)}})});var j8=g(function(){"use strict";var E_e=C(),F8=he(),q_e=ke(),B8=ge(),T_e=lt(),A_e=Pa(),O_e=ah(),R_e=tt(),I_e=Kl(),P_e=Wn(),w_=Ke(),U8=!w_&&!I_e("map",function(){}),__=!w_&&!U8&&P_e("map",TypeError),C_e=w_||U8||__,N_e=A_e(function(){var r=this.iterator,e=B8(F8(this.next,r)),t=this.done=!!e.done;if(!t)return O_e(r,this.mapper,[e.value,this.counter++],!0)});E_e({target:"Iterator",proto:!0,real:!0,forced:C_e},{map:function map(e){B8(this);try{q_e(e)}catch(t){R_e(this,"throw",t)}return __?F8(__,this,e):new N_e(T_e(this),{mapper:e})}})});var G8=g(function(){"use strict";var k_e=C(),L_e=Fr(),D_e=ke(),W_e=ge(),M_e=lt(),F_e=tt(),B_e=Wn(),U_e=jt(),j_e=z(),$8=TypeError,V8=j_e(function(){[].keys().reduce(function(){},void 0)}),S_=!V8&&B_e("reduce",$8);k_e({target:"Iterator",proto:!0,real:!0,forced:V8||S_},{reduce:function reduce(e){W_e(this);try{D_e(e)}catch(o){F_e(this,"throw",o)}var t=arguments.length<2,n=t?void 0:arguments[1];if(S_)return U_e(S_,this,t?[e]:[e,n]);var i=M_e(this),a=0;if(L_e(i,function(o){t?(t=!1,n=o):n=e(n,o,a),a++},{IS_RECORD:!0}),t)throw new $8("Reduce of empty iterator with no initial value");return n}})});var z8=g(function(){"use strict";var $_e=C(),V_e=he(),G_e=Fr(),z_e=ke(),K_e=ge(),H_e=lt(),Q_e=tt(),X_e=Wn(),E_=X_e("some",TypeError);$_e({target:"Iterator",proto:!0,real:!0,forced:E_},{some:function some(e){K_e(this);try{z_e(e)}catch(i){Q_e(this,"throw",i)}if(E_)return V_e(E_,this,e);var t=H_e(this),n=0;return G_e(t,function(i,a){if(e(i,n++))return a()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})});var Y8=g(function(){"use strict";var Y_e=C(),K8=he(),H8=ge(),J_e=lt(),Z_e=a_(),e1e=Lh(),r1e=Pa(),Q8=tt(),t1e=Wn(),X8=Ke(),q_=!X8&&t1e("take",RangeError),n1e=r1e(function(){var r=this.iterator;if(!this.remaining--)return this.done=!0,Q8(r,"normal",void 0);var e=H8(K8(this.next,r)),t=this.done=!!e.done;if(!t)return e.value});Y_e({target:"Iterator",proto:!0,real:!0,forced:X8||q_},{take:function take(e){H8(this);var t;try{t=e1e(Z_e(+e))}catch(n){Q8(this,"throw",n)}return q_?K8(q_,this,t):new n1e(J_e(this),{remaining:t})}})});var J8=g(function(){"use strict";var i1e=C(),a1e=ge(),o1e=Fr(),s1e=lt(),u1e=[].push;i1e({target:"Iterator",proto:!0,real:!0},{toArray:function toArray(){var e=[];return o1e(s1e(a1e(this)),u1e,{that:e,IS_RECORD:!0}),e}})});var Z8=g(function(){"use strict";var c1e=C(),l1e=Bp(),f1e=ny();c1e({target:"JSON",stat:!0,forced:!l1e},{isRawJSON:f1e})});var sN=g(function(){"use strict";var d1e=C(),p1e=ye(),N_=ne(),h1e=Ce(),Dh=Q(),x1e=he(),aN=We(),g1e=we(),v1e=Zn(),m1e=Ne(),y1e=Oe(),eN=nr(),I_=en(),oN=z(),b1e=ay(),_1e=pa(),rN=N_.JSON,w1e=N_.Number,au=N_.SyntaxError,k_=rN&&rN.parse,S1e=h1e("Object","keys"),E1e=Object.getOwnPropertyDescriptor,ft=Dh("".charAt),T_=Dh("".slice),A_=Dh(/./.exec),tN=Dh([].push),O_=/^\d$/,q1e=/^[1-9]$/,T1e=/^[\d-]$/,Hl=/^[\t\n\r ]$/,R_=0,nN=1,A1e=function A1e(r,e){r=y1e(r);var t=new C_(r,0,""),n=t.parse(),i=n.value,a=t.skip(Hl,n.end);if(a<r.length)throw new au('Unexpected extra character: "'+ft(r,a)+'" after the parsed data at: '+a);return aN(e)?P_({"":i},"",e,n):i},P_=function P_1(r,e,t,n){var i=r[e],a=n&&i===n.value,o=a&&typeof n.source=="string"?{source:n.source}:{},s,u,c,l,f;if(g1e(i)){var d=v1e(i),p=a?n.nodes:d?[]:{};if(d)for(s=p.length,c=eN(i),l=0;l<c;l++)iN(i,l,P_(i,""+l,t,l<s?p[l]:void 0));else for(u=S1e(i),c=eN(u),l=0;l<c;l++)f=u[l],iN(i,f,P_(i,f,t,m1e(p,f)?p[f]:void 0))}return x1e(t,r,e,i,o)},iN=function iN(r,e,t){if(p1e){var n=E1e(r,e);if(n&&!n.configurable)return}t===void 0?delete r[e]:I_(r,e,t)},O1e=function O1e(r,e,t,n){this.value=r,this.end=e,this.source=t,this.nodes=n},C_=function C_(r,e){this.source=r,this.index=e};C_.prototype={fork:function fork(r){return new C_(this.source,r)},parse:function parse(){var r=this.source,e=this.skip(Hl,this.index),t=this.fork(e),n=ft(r,e);if(A_(T1e,n))return t.number();switch(n){case"{":return t.object();case"[":return t.array();case'"':return t.string();case"t":return t.keyword(!0);case"f":return t.keyword(!1);case"n":return t.keyword(null)}throw new au('Unexpected character: "'+n+'" at: '+e)},node:function node(r,e,t,n,i){return new O1e(e,n,r?null:T_(this.source,t,n),i)},object:function object(){for(var r=this.source,e=this.index+1,t=!1,n={},i={};e<r.length;){if(e=this.until(['"',"}"],e),ft(r,e)==="}"&&!t){e++;break}var a=this.fork(e).string(),o=a.value;e=a.end,e=this.until([":"],e)+1,e=this.skip(Hl,e),a=this.fork(e).parse(),I_(i,o,a),I_(n,o,a.value),e=this.until([",","}"],a.end);var s=ft(r,e);if(s===",")t=!0,e++;else if(s==="}"){e++;break}}return this.node(nN,n,this.index,e,i)},array:function array(){for(var r=this.source,e=this.index+1,t=!1,n=[],i=[];e<r.length;){if(e=this.skip(Hl,e),ft(r,e)==="]"&&!t){e++;break}var a=this.fork(e).parse();if(tN(i,a),tN(n,a.value),e=this.until([",","]"],a.end),ft(r,e)===",")t=!0,e++;else if(ft(r,e)==="]"){e++;break}}return this.node(nN,n,this.index,e,i)},string:function string(){var r=this.index,e=b1e(this.source,this.index+1);return this.node(R_,e.value,r,e.end)},number:function number(){var r=this.source,e=this.index,t=e;if(ft(r,t)==="-"&&t++,ft(r,t)==="0")t++;else if(A_(q1e,ft(r,t)))t=this.skip(O_,t+1);else throw new au("Failed to parse number at: "+t);if(ft(r,t)==="."&&(t=this.skip(O_,t+1)),ft(r,t)==="e"||ft(r,t)==="E"){t++,(ft(r,t)==="+"||ft(r,t)==="-")&&t++;var n=t;if(t=this.skip(O_,t),n===t)throw new au("Failed to parse number's exponent value at: "+t)}return this.node(R_,w1e(T_(r,e,t)),e,t)},keyword:function keyword(r){var e=""+r,t=this.index,n=t+e.length;if(T_(this.source,t,n)!==e)throw new au("Failed to parse value at: "+t);return this.node(R_,r,t,n)},skip:function skip(r,e){for(var t=this.source;e<t.length&&A_(r,ft(t,e));e++);return e},until:function until(r,e){e=this.skip(Hl,e);for(var t=ft(this.source,e),n=0;n<r.length;n++)if(r[n]===t)return e;throw new au('Unexpected character: "'+t+'" at: '+e)}};var R1e=oN(function(){var r="9007199254740993",e;return k_(r,function(t,n,i){e=i.source}),e!==r}),I1e=_1e&&!oN(function(){return 1/k_("-0 ")!==-1/0});d1e({target:"JSON",stat:!0,forced:R1e},{parse:function parse(e,t){return I1e&&!aN(t)?k_(e):A1e(e,t)}})});var Ca=g(function(ucr,uN){"use strict";var P1e=z();uN.exports=!P1e(function(){return Object.isExtensible(Object.preventExtensions({}))})});var pN=g(function(){"use strict";var C1e=C(),N1e=Ca(),k1e=Bp(),L_=Ce(),L1e=Q(),D1e=Oe(),W1e=en(),M1e=hr().set,cN=SyntaxError,F1e=L_("JSON","parse"),B1e=L_("Object","create"),U1e=L_("Object","freeze"),lN=L1e("".charAt),fN="Unacceptable as raw JSON",dN=function dN(r){return r===" "||r===" "||r==="\n"||r==="\r"};C1e({target:"JSON",stat:!0,forced:!k1e},{rawJSON:function rawJSON(e){var t=D1e(e);if(t===""||dN(lN(t,0))||dN(lN(t,t.length-1)))throw new cN(fN);var n=F1e(t);if((typeof n==="undefined"?"undefined":_type_of(n))=="object"&&n!==null)throw new cN(fN);var i=B1e(null);return M1e(i,{type:"RawJSON"}),W1e(i,"rawJSON",t),N1e?U1e(i):i}})});var hN=g(function(){"use strict";var j1e=ne(),$1e=Tt();$1e(j1e.JSON,"JSON",!0)});var Wh=g(function(pcr,xN){"use strict";var V1e=z();xN.exports=V1e(function(){if(typeof ArrayBuffer=="function"){var r=new ArrayBuffer(8);Object.isExtensible(r)&&Object.defineProperty(r,"a",{value:8})}})});var Fh=g(function(hcr,vN){"use strict";var G1e=z(),z1e=we(),K1e=ut(),gN=Wh(),Mh=Object.isExtensible,H1e=G1e(function(){Mh(1)});vN.exports=H1e||gN?function(e){return!z1e(e)||gN&&K1e(e)==="ArrayBuffer"?!1:Mh?Mh(e):!0}:Mh});var Na=g(function(xcr,bN){"use strict";var Q1e=C(),X1e=Q(),Y1e=Fs(),J1e=we(),D_=Ne(),Z1e=pr().f,mN=va(),ewe=Np(),W_=Fh(),rwe=ga(),twe=Ca(),yN=!1,Di=rwe("meta"),nwe=0,M_=function M_(r){Z1e(r,Di,{value:{objectID:"O"+nwe++,weakData:{}}})},iwe=function iwe(r,e){if(!J1e(r))return(typeof r==="undefined"?"undefined":_type_of(r))=="symbol"?r:(typeof r=="string"?"S":"P")+r;if(!D_(r,Di)){if(!W_(r))return"F";if(!e)return"E";M_(r)}return r[Di].objectID},awe=function awe(r,e){if(!D_(r,Di)){if(!W_(r))return!0;if(!e)return!1;M_(r)}return r[Di].weakData},owe=function owe(r){return twe&&yN&&W_(r)&&!D_(r,Di)&&M_(r),r},swe=function swe(){uwe.enable=function(){},yN=!0;var r=mN.f,e=X1e([].splice),t={};t[Di]=1,r(t).length&&(mN.f=function(n){for(var i=r(n),a=0,o=i.length;a<o;a++)if(i[a]===Di){e(i,a,1);break}return i},Q1e({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:ewe.f}))},uwe=bN.exports={enable:swe,fastKey:iwe,getWeakData:awe,onFreeze:owe};Y1e[Di]=!0});var Ql=g(function(gcr,wN){"use strict";var cwe=C(),lwe=ne(),fwe=Q(),_N=Us(),dwe=tr(),pwe=Na(),hwe=Fr(),xwe=$t(),gwe=We(),vwe=Yn(),F_=we(),B_=z(),mwe=Pl(),ywe=Tt(),bwe=wa();wN.exports=function(r,e,t){var n=r.indexOf("Map")!==-1,i=r.indexOf("Weak")!==-1,a=n?"set":"add",o=lwe[r],s=o&&o.prototype,u=o,c={},l=function l(y){var m=fwe(s[y]);dwe(s,y,y==="add"?function(S){return m(this,S===0?0:S),this}:y==="delete"?function(b){return i&&!F_(b)?!1:m(this,b===0?0:b)}:y==="get"?function(S){return i&&!F_(S)?void 0:m(this,S===0?0:S)}:y==="has"?function(S){return i&&!F_(S)?!1:m(this,S===0?0:S)}:function(S,T){return m(this,S===0?0:S,T),this})},f=_N(r,!gwe(o)||!(i||s.forEach&&!B_(function(){new o().entries().next()})));if(f)u=t.getConstructor(e,r,n,a),pwe.enable();else if(_N(r,!0)){var d=new u,p=d[a](i?{}:-0,1)!==d,x=B_(function(){d.has(1)}),h=mwe(function(y){new o(y)}),v=!i&&B_(function(){for(var y=new o,m=5;m--;)y[a](m,m);return!y.has(-0)});h||(u=e(function(y,m){xwe(y,s);var b=bwe(new o,y,u);return vwe(m)||hwe(m,b[a],{that:b,AS_ENTRIES:n}),b}),u.prototype=s,s.constructor=u),(x||v)&&(l("delete"),l("has"),n&&l("get")),(v||p)&&l(a),i&&s.clear&&delete s.clear}return c[r]=u,cwe({global:!0,constructor:!0,forced:u!==o},c),ywe(u,r),i||t.setStrong(u,r,n),u}});var j_=g(function(vcr,ON){"use strict";var SN=Zr(),_we=Ir(),EN=ti(),wwe=Bt(),Swe=$t(),Ewe=Yn(),qwe=Fr(),Twe=ch(),Bh=Ea(),Awe=Bo(),Xl=ye(),qN=Na().fastKey,AN=hr(),TN=AN.set,U_=AN.getterFor;ON.exports={getConstructor:function getConstructor(r,e,t,n){var i=r(function(c,l){Swe(c,a),TN(c,{type:e,index:SN(null),first:null,last:null,size:0}),Xl||(c.size=0),Ewe(l)||qwe(l,c[n],{that:c,AS_ENTRIES:t})}),a=i.prototype,o=U_(e),s=function s(c,l,f){var d=o(c),p=u(c,l),x,h;return p?p.value=f:(d.last=p={index:h=qN(l,!0),key:l,value:f,previous:x=d.last,next:null,removed:!1},d.first||(d.first=p),x&&(x.next=p),Xl?d.size++:c.size++,h!=="F"&&(d.index[h]=p)),c},u=function u(c,l){var f=o(c),d=qN(l),p;if(d!=="F")return f.index[d];for(p=f.first;p;p=p.next)if(p.key===l)return p};return EN(a,{clear:function clear(){for(var l=this,f=o(l),d=f.first;d;)d.removed=!0,d.previous&&(d.previous=d.previous.next=null),d=d.next;f.first=f.last=null,f.index=SN(null),Xl?f.size=0:l.size=0},delete:function _delete(c){var l=this,f=o(l),d=u(l,c);if(d){var p=d.next,x=d.previous;delete f.index[d.index],d.removed=!0,x&&(x.next=p),p&&(p.previous=x),f.first===d&&(f.first=p),f.last===d&&(f.last=x),Xl?f.size--:l.size--}return!!d},forEach:function forEach(l){for(var f=o(this),d=wwe(l,arguments.length>1?arguments[1]:void 0),p;p=p?p.next:f.first;)for(d(p.value,p.key,this);p&&p.removed;)p=p.previous},has:function has(l){return!!u(this,l)}}),EN(a,t?{get:function get(l){var f=u(this,l);return f&&f.value},set:function set(l,f){return s(this,l===0?0:l,f)}}:{add:function add(l){return s(this,l=l===0?0:l,l)}}),Xl&&_we(a,"size",{configurable:!0,get:function get(){return o(this).size}}),i},setStrong:function setStrong(r,e,t){var n=e+" Iterator",i=U_(e),a=U_(n);Twe(r,e,function(o,s){TN(this,{type:n,target:o,state:i(o),kind:s,last:null})},function(){for(var o=a(this),s=o.kind,u=o.last;u&&u.removed;)u=u.previous;return!o.target||!(o.last=u=u?u.next:o.state.first)?(o.target=null,Bh(void 0,!0)):Bh(s==="keys"?u.key:s==="values"?u.value:[u.key,u.value],!1)},t?"entries":"values",!t,!0),Awe(e)}}});var RN=g(function(){"use strict";var Owe=Ql(),Rwe=j_();Owe("Map",function(r){return function(){return r(this,arguments.length?arguments[0]:void 0)}},Rwe)});var IN=g(function(){"use strict";RN()});var $_=g(function(wcr,PN){"use strict";var Uh=Q(),Yl=Map.prototype;PN.exports={Map:Map,set:Uh(Yl.set),get:Uh(Yl.get),has:Uh(Yl.has),remove:Uh(Yl.delete),proto:Yl}});var kN=g(function(){"use strict";var Iwe=C(),Pwe=Q(),Cwe=ke(),Nwe=mr(),kwe=Fr(),jh=$_(),CN=Ke(),Lwe=z(),NN=jh.Map,Dwe=jh.has,Wwe=jh.get,Mwe=jh.set,Fwe=Pwe([].push),Bwe=CN||Lwe(function(){return NN.groupBy("ab",function(r){return r}).get("a").length!==1});Iwe({target:"Map",stat:!0,forced:CN||Bwe},{groupBy:function groupBy(e,t){Nwe(e),Cwe(t);var n=new NN,i=0;return kwe(e,function(a){var o=t(a,i++);Dwe(n,o)?Fwe(Wwe(n,o),a):Mwe(n,o,[a])}),n}})});var V_=g(function(qcr,LN){"use strict";var Uwe=Math.log;LN.exports=Math.log1p||function(e){var t=+e;return t>-1e-8&&t<1e-8?t-t*t/2:Uwe(1+t)}});var WN=g(function(){"use strict";var jwe=C(),$we=V_(),G_=Math.acosh,Vwe=Math.log,DN=Math.sqrt,Gwe=Math.LN2,zwe=!G_||Math.floor(G_(Number.MAX_VALUE))!==710||G_(1/0)!==1/0;jwe({target:"Math",stat:!0,forced:zwe},{acosh:function acosh(e){var t=+e;return t<1?NaN:t>94906265.62425156?Vwe(t)+Gwe:$we(t-1+DN(t-1)*DN(t+1))}})});var BN=g(function(){"use strict";var Kwe=C(),MN=Math.asinh,Hwe=Math.log,Qwe=Math.sqrt;function FN(r){var e=+r;return!isFinite(e)||e===0?e:e<0?-FN(-e):Hwe(e+Qwe(e*e+1))}var Xwe=!(MN&&1/MN(0)>0);Kwe({target:"Math",stat:!0,forced:Xwe},{asinh:FN})});var jN=g(function(){"use strict";var Ywe=C(),UN=Math.atanh,Jwe=Math.log,Zwe=!(UN&&1/UN(-0)<0);Ywe({target:"Math",stat:!0,forced:Zwe},{atanh:function atanh(e){var t=+e;return t===0?t:Jwe((1+t)/(1-t))/2}})});var $N=g(function(){"use strict";var eSe=C(),rSe=xh(),tSe=Math.abs,nSe=Math.pow;eSe({target:"Math",stat:!0},{cbrt:function cbrt(e){var t=+e;return rSe(t)*nSe(tSe(t),1/3)}})});var VN=g(function(){"use strict";var iSe=C(),aSe=Math.floor,oSe=Math.log,sSe=Math.LOG2E;iSe({target:"Math",stat:!0},{clz32:function clz32(e){var t=e>>>0;return t?31-aSe(oSe(t+.5)*sSe):32}})});var Zl=g(function(Dcr,GN){"use strict";var Jl=Math.expm1,uSe=Math.exp;GN.exports=!Jl||Jl(10)>22025.465794806718||Jl(10)<22025.465794806718||Jl(-2e-17)!==-2e-17?function(e){var t=+e;return t===0?t:t>-1e-6&&t<1e-6?t+t*t/2:uSe(t)-1}:Jl});var KN=g(function(){"use strict";var cSe=C(),lSe=Zl(),zN=Math.cosh,fSe=Math.abs,z_=Math.E,dSe=!zN||zN(710)===1/0;cSe({target:"Math",stat:!0,forced:dSe},{cosh:function cosh(e){var t=lSe(fSe(e)-1)+1;return(t+1/(t*z_*z_))*(z_/2)}})});var QN=g(function(){"use strict";var pSe=C(),HN=Zl();pSe({target:"Math",stat:!0,forced:HN!==Math.expm1},{expm1:HN})});var XN=g(function(){"use strict";var hSe=C(),xSe=sb();hSe({target:"Math",stat:!0},{fround:xSe})});var YN=g(function(){"use strict";var gSe=C(),vSe=ob(),mSe=9765625e-10,ySe=65504,bSe=6103515625e-14;gSe({target:"Math",stat:!0},{f16round:function f16round(e){return vSe(e,mSe,ySe,bSe)}})});var ZN=g(function(){"use strict";var _Se=C(),JN=Math.hypot,wSe=Math.abs,SSe=Math.sqrt,ESe=!!JN&&JN(1/0,NaN)!==1/0;_Se({target:"Math",stat:!0,arity:2,forced:ESe},{hypot:function hypot(e,t){for(var n=0,i=0,a=arguments.length,o=0,s,u;i<a;)s=wSe(arguments[i++]),o<s?(u=o/s,n=n*u*u+1,o=s):s>0?(u=s/o,n+=u*u):n+=s;return o===1/0?1/0:o*SSe(n)}})});var r7=g(function(){"use strict";var qSe=C(),TSe=z(),e7=Math.imul,ASe=TSe(function(){return e7(0xffffffff,5)!==-5||e7.length!==2});qSe({target:"Math",stat:!0,forced:ASe},{imul:function imul(e,t){var n=65535,i=+e,a=+t,o=n&i,s=n&a;return 0|o*s+((n&i>>>16)*s+o*(n&a>>>16)<<16>>>0)}})});var K_=g(function(Qcr,t7){"use strict";var OSe=Math.log,RSe=Math.LOG10E;t7.exports=Math.log10||function(e){return OSe(e)*RSe}});var n7=g(function(){"use strict";var ISe=C(),PSe=K_();ISe({target:"Math",stat:!0},{log10:PSe})});var i7=g(function(){"use strict";var CSe=C(),NSe=V_();CSe({target:"Math",stat:!0},{log1p:NSe})});var a7=g(function(){"use strict";var kSe=C(),LSe=qb();kSe({target:"Math",stat:!0},{log2:LSe})});var o7=g(function(){"use strict";var DSe=C(),WSe=xh();DSe({target:"Math",stat:!0},{sign:WSe})});var c7=g(function(){"use strict";var MSe=C(),FSe=z(),s7=Zl(),BSe=Math.abs,u7=Math.exp,USe=Math.E,jSe=FSe(function(){return Math.sinh(-2e-17)!==-2e-17});MSe({target:"Math",stat:!0,forced:jSe},{sinh:function sinh(e){var t=+e;return BSe(t)<1?(s7(t)-s7(-t))/2:(u7(t-1)-u7(-t-1))*(USe/2)}})});var h7=g(function(){"use strict";var $Se=C(),VSe=Q(),GSe=Fr(),zSe=RangeError,KSe=TypeError,xn=1/0,HSe=NaN,$o=Math.abs,Y_=Math.pow,l7=VSe([].push),ef=Y_(2,1023),QSe=Y_(2,53)-1,f7=Number.MAX_VALUE,d7=Y_(2,971),rf={},H_={},Q_={},X_={},p7={},$h=function $h(r,e){var t=r+e,n=e-(t-r);return{hi:t,lo:n}};$Se({target:"Math",stat:!0},{sumPrecise:function sumPrecise(e){var t=[],n=0,i=X_;switch(GSe(e,function(b){if(++n>=QSe)throw new zSe("Maximum allowed index exceeded");if(typeof b!="number")throw new KSe("Value is not a number");i!==rf&&(b!==b?i=rf:b===xn?i=i===H_?rf:Q_:b===-xn?i=i===Q_?rf:H_:(b!==0||1/b===xn)&&(i===X_||i===p7)&&(i=p7,l7(t,b)))}),i){case rf:return HSe;case H_:return-xn;case Q_:return xn;case X_:return-0}for(var a=[],o=0,s,u,c,l,f,d,p=0;p<t.length;p++){s=t[p];for(var x=0,h=0;h<a.length;h++){if(u=a[h],$o(s)<$o(u)&&(d=s,s=u,u=d),c=$h(s,u),l=c.hi,f=c.lo,$o(l)===xn){var v=l===xn?1:-1;o+=v,s=s-v*ef-v*ef,$o(s)<$o(u)&&(d=s,s=u,u=d),c=$h(s,u),l=c.hi,f=c.lo}f!==0&&(a[x++]=f),s=l}a.length=x,s!==0&&l7(a,s)}var y=a.length-1;if(l=0,f=0,o!==0){var m=y>=0?a[y]:0;if(y--,$o(o)>1||o>0&&m>0||o<0&&m<0)return o>0?xn:-xn;if(c=$h(o*ef,m/2),l=c.hi,f=c.lo,f*=2,$o(2*l)===xn)return l>0?l===ef&&f===-(d7/2)&&y>=0&&a[y]<0?f7:xn:l===-ef&&f===d7/2&&y>=0&&a[y]>0?-f7:-xn;f!==0&&(a[++y]=f,f=0),l*=2}for(;y>=0&&(c=$h(l,a[y--]),l=c.hi,f=c.lo,f===0););return y>=0&&(f<0&&a[y]<0||f>0&&a[y]>0)&&(u=f*2,s=l+u,u===s-l&&(l=s)),l}})});var v7=g(function(){"use strict";var XSe=C(),x7=Zl(),g7=Math.exp;XSe({target:"Math",stat:!0},{tanh:function tanh(e){var t=+e,n=x7(t),i=x7(-t);return n===1/0?1:i===1/0?-1:(n-i)/(g7(t)+g7(-t))}})});var m7=g(function(){"use strict";var YSe=Tt();YSe(Math,"Math",!0)});var y7=g(function(){"use strict";var JSe=C(),ZSe=Nm();JSe({target:"Math",stat:!0},{trunc:ZSe})});var tf=g(function(hlr,b7){"use strict";var e2e=Q();b7.exports=e2e(1.1.valueOf)});var ou=g(function(xlr,_7){"use strict";_7.exports=" \n\v\f\r \xa0  \u2028\u2029\uFEFF"});var Vo=g(function(glr,S7){"use strict";var r2e=Q(),t2e=mr(),n2e=Oe(),Z_=ou(),w7=r2e("".replace),i2e=RegExp("^["+Z_+"]+"),a2e=RegExp("(^|[^"+Z_+"])["+Z_+"]+$"),J_=function J_(r){return function(e){var t=n2e(t2e(e));return r&1&&(t=w7(t,i2e,"")),r&2&&(t=w7(t,a2e,"$1")),t}};S7.exports={start:J_(1),end:J_(2),trim:J_(3)}});var I7=g(function(){"use strict";var o2e=C(),e1=Ke(),s2e=ye(),T7=ne(),r1=ml(),A7=Q(),u2e=Us(),E7=Ne(),c2e=wa(),l2e=mt(),f2e=ha(),O7=dl(),d2e=z(),p2e=va().f,h2e=Yr().f,x2e=pr().f,g2e=tf(),v2e=Vo().trim,nf="Number",su=T7[nf],q7=r1[nf],t1=su.prototype,m2e=T7.TypeError,y2e=A7("".slice),Vh=A7("".charCodeAt),b2e=function b2e(r){var e=O7(r,"number");return(typeof e==="undefined"?"undefined":_type_of(e))=="bigint"?e:_2e(e)},_2e=function _2e(r){var e=O7(r,"number"),t,n,i,a,o,s,u,c;if(f2e(e))throw new m2e("Cannot convert a Symbol value to a number");if(typeof e=="string"&&e.length>2){if(e=v2e(e),t=Vh(e,0),t===43||t===45){if(n=Vh(e,2),n===88||n===120)return NaN}else if(t===48){switch(Vh(e,1)){case 66:case 98:i=2,a=49;break;case 79:case 111:i=8,a=55;break;default:return+e}for(o=y2e(e,2),s=o.length,u=0;u<s;u++)if(c=Vh(o,u),c<48||c>a)return NaN;return parseInt(o,i)}}return+e},n1=u2e(nf,!su(" 0o1")||!su("0b1")||su("+0x1")),w2e=function w2e(r){return l2e(t1,r)&&d2e(function(){g2e(r)})},Gh=function Gh1(e){var t=arguments.length<1?0:su(b2e(e));return w2e(this)?c2e(Object(t),this,Gh):t};Gh.prototype=t1;n1&&!e1&&(t1.constructor=Gh);o2e({global:!0,constructor:!0,wrap:!0,forced:n1},{Number:Gh});var R7=function R7(r,e){for(var t=s2e?p2e(e):"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(","),n=0,i;t.length>n;n++)E7(e,i=t[n])&&!E7(r,i)&&x2e(r,i,h2e(e,i))};e1&&q7&&R7(r1[nf],q7);(n1||e1)&&R7(r1[nf],su)});var P7=g(function(){"use strict";var S2e=C();S2e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{EPSILON:Math.pow(2,-52)})});var N7=g(function(_lr,C7){"use strict";var E2e=ne(),q2e=E2e.isFinite;C7.exports=Number.isFinite||function(e){return typeof e=="number"&&q2e(e)}});var k7=g(function(){"use strict";var T2e=C(),A2e=N7();T2e({target:"Number",stat:!0},{isFinite:A2e})});var zh=g(function(Elr,L7){"use strict";var O2e=we(),R2e=Math.floor;L7.exports=Number.isInteger||function(e){return!O2e(e)&&isFinite(e)&&R2e(e)===e}});var D7=g(function(){"use strict";var I2e=C(),P2e=zh();I2e({target:"Number",stat:!0},{isInteger:P2e})});var W7=g(function(){"use strict";var C2e=C();C2e({target:"Number",stat:!0},{isNaN:function isNaN1(e){return e!==e}})});var M7=g(function(){"use strict";var N2e=C(),k2e=zh(),L2e=Math.abs;N2e({target:"Number",stat:!0},{isSafeInteger:function isSafeInteger(e){return k2e(e)&&L2e(e)<=0x1fffffffffffff}})});var F7=g(function(){"use strict";var D2e=C();D2e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:0x1fffffffffffff})});var B7=g(function(){"use strict";var W2e=C();W2e({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-0x1fffffffffffff})});var i1=g(function(Llr,V7){"use strict";var $7=ne(),M2e=z(),F2e=Q(),B2e=Oe(),U2e=Vo().trim,j2e=ou(),$2e=F2e("".charAt),Kh=$7.parseFloat,U7=$7.Symbol,j7=U7&&U7.iterator,V2e=1/Kh(j2e+"-0")!==-1/0||j7&&!M2e(function(){Kh(Object(j7))});V7.exports=V2e?function(e){var t=U2e(B2e(e)),n=Kh(t);return n===0&&$2e(t,0)==="-"?-0:n}:Kh});var z7=g(function(){"use strict";var G2e=C(),G7=i1();G2e({target:"Number",stat:!0,forced:Number.parseFloat!==G7},{parseFloat:G7})});var a1=g(function(Mlr,J7){"use strict";var X7=ne(),z2e=z(),K2e=Q(),H2e=Oe(),Q2e=Vo().trim,K7=ou(),af=X7.parseInt,H7=X7.Symbol,Q7=H7&&H7.iterator,Y7=/^[+-]?0x/i,X2e=K2e(Y7.exec),Y2e=af(K7+"08")!==8||af(K7+"0x16")!==22||Q7&&!z2e(function(){af(Object(Q7))});J7.exports=Y2e?function(e,t){var n=Q2e(H2e(e));return af(n,t>>>0||(X2e(Y7,n)?16:10))}:af});var ek=g(function(){"use strict";var J2e=C(),Z7=a1();J2e({target:"Number",stat:!0,forced:Number.parseInt!==Z7},{parseInt:Z7})});var ak=g(function(){"use strict";var Z2e=C(),s1=Q(),eEe=Sr(),rEe=tf(),tEe=$l(),nEe=K_(),o1=z(),iEe=RangeError,rk=String,aEe=isFinite,oEe=Math.abs,sEe=Math.floor,tk=Math.pow,uEe=Math.round,oi=s1(1.1.toExponential),cEe=s1(tEe),nk=s1("".slice),ik=oi(-69e-12,4)==="-6.9000e-11"&&oi(1.255,2)==="1.25e+0"&&oi(12345,3)==="1.235e+4"&&oi(25,0)==="3e+1",lEe=function lEe(){return o1(function(){oi(1,1/0)})&&o1(function(){oi(1,-1/0)})},fEe=function fEe(){return!o1(function(){oi(1/0,1/0),oi(NaN,1/0)})},dEe=!ik||!lEe()||!fEe();Z2e({target:"Number",proto:!0,forced:dEe},{toExponential:function toExponential(e){var t=rEe(this);if(e===void 0)return oi(t);var n=eEe(e);if(!aEe(t))return String(t);if(n<0||n>20)throw new iEe("Incorrect fraction digits");if(ik)return oi(t,n);var i="",a,o,s,u;if(t<0&&(i="-",t=-t),t===0)o=0,a=cEe("0",n+1);else{var c=nEe(t);o=sEe(c);var l=tk(10,o-n),f=uEe(t/l);2*t>=(2*f+1)*l&&(f+=1),f>=tk(10,n+1)&&(f/=10,o+=1),a=rk(f)}return n!==0&&(a=nk(a,0,1)+"."+nk(a,1)),o===0?(s="+",u="0"):(s=o>0?"+":"-",u=rk(oEe(o))),a+="e"+s+u,i+a}})});var fk=g(function(){"use strict";var pEe=C(),l1=Q(),hEe=Sr(),xEe=tf(),gEe=$l(),ok=z(),vEe=RangeError,ck=String,lk=Math.floor,c1=l1(gEe),sk=l1("".slice),of=l1(1.1.toFixed),cu=function cu1(r,e,t){return e===0?t:e%2===1?cu(r,e-1,t*r):cu(r*r,e/2,t)},mEe=function mEe(r){for(var e=0,t=r;t>=4096;)e+=12,t/=4096;for(;t>=2;)e+=1,t/=2;return e},uu=function uu(r,e,t){for(var n=-1,i=t;++n<6;)i+=e*r[n],r[n]=i%1e7,i=lk(i/1e7)},u1=function u1(r,e){for(var t=6,n=0;--t>=0;)n+=r[t],r[t]=lk(n/e),n=n%e*1e7},uk=function uk(r){for(var e=6,t="";--e>=0;)if(t!==""||e===0||r[e]!==0){var n=ck(r[e]);t=t===""?n:t+c1("0",7-n.length)+n}return t},yEe=ok(function(){return of(8e-5,3)!=="0.000"||of(.9,0)!=="1"||of(1.255,2)!=="1.25"||of(0xde0b6b3a7640080,0)!=="1000000000000000128"})||!ok(function(){of({})});pEe({target:"Number",proto:!0,forced:yEe},{toFixed:function toFixed(e){var t=xEe(this),n=hEe(e),i=[0,0,0,0,0,0],a="",o="0",s,u,c,l;if(n<0||n>20)throw new vEe("Incorrect fraction digits");if(t!==t)return"NaN";if(t<=-1e21||t>=1e21)return ck(t);if(t<0&&(a="-",t=-t),t>1e-21)if(s=mEe(t*cu(2,69,1))-69,u=s<0?t*cu(2,-s,1):t/cu(2,s,1),u*=0x10000000000000,s=52-s,s>0){for(uu(i,0,u),c=n;c>=7;)uu(i,1e7,0),c-=7;for(uu(i,cu(10,c,1),0),c=s-1;c>=23;)u1(i,1<<23),c-=23;u1(i,1<<c),uu(i,1,1),u1(i,2),o=uk(i)}else uu(i,0,u),uu(i,1<<-s,0),o=uk(i)+c1("0",n);return n>0?(l=o.length,o=a+(l<=n?"0."+c1("0",n-l)+o:sk(o,0,l-n)+"."+sk(o,l-n))):o=a+o,o}})});var hk=g(function(){"use strict";var bEe=C(),_Ee=Q(),dk=z(),pk=tf(),Hh=_Ee(1.1.toPrecision),wEe=dk(function(){return Hh(1,void 0)!=="1"})||!dk(function(){Hh({})});bEe({target:"Number",proto:!0,forced:wEe},{toPrecision:function toPrecision(e){return e===void 0?Hh(pk(this)):Hh(pk(this),e)}})});var d1=g(function(Klr,vk){"use strict";var xk=ye(),SEe=Q(),EEe=he(),qEe=z(),f1=js(),TEe=gl(),AEe=ll(),OEe=Ve(),REe=qo(),lu=Object.assign,gk=Object.defineProperty,IEe=SEe([].concat);vk.exports=!lu||qEe(function(){if(xk&&lu({b:1},lu(gk({},"a",{enumerable:!0,get:function get(){gk(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var r={},e={},t=Symbol("assign detection"),n="abcdefghijklmnopqrst";return r[t]=7,n.split("").forEach(function(i){e[i]=i}),lu({},r)[t]!==7||f1(lu({},e)).join("")!==n})?function(e,t){for(var n=OEe(e),i=arguments.length,a=1,o=TEe.f,s=AEe.f;i>a;)for(var u=REe(arguments[a++]),c=o?IEe(f1(u),o(u)):f1(u),l=c.length,f=0,d;l>f;)d=c[f++],(!xk||EEe(s,u,d))&&(n[d]=u[d]);return n}:lu});var yk=g(function(){"use strict";var PEe=C(),mk=d1();PEe({target:"Object",stat:!0,arity:2,forced:Object.assign!==mk},{assign:mk})});var bk=g(function(){"use strict";var CEe=C(),NEe=ye(),kEe=Zr();CEe({target:"Object",stat:!0,sham:!NEe},{create:kEe})});var sf=g(function(Jlr,wk){"use strict";var LEe=Ke(),DEe=ne(),WEe=z(),_k=hh();wk.exports=LEe||!WEe(function(){if(!(_k&&_k<535)){var r=Math.random();__defineSetter__.call(null,r,function(){}),delete DEe[r]}})});var Sk=g(function(){"use strict";var MEe=C(),FEe=ye(),BEe=sf(),UEe=ke(),jEe=Ve(),$Ee=pr();FEe&&MEe({target:"Object",proto:!0,forced:BEe},{__defineGetter__:function __defineGetter__(e,t){$Ee.f(jEe(this),e,{get:UEe(t),enumerable:!0,configurable:!0})}})});var qk=g(function(){"use strict";var VEe=C(),GEe=ye(),Ek=Ip().f;VEe({target:"Object",stat:!0,forced:Object.defineProperties!==Ek,sham:!GEe},{defineProperties:Ek})});var Ak=g(function(){"use strict";var zEe=C(),KEe=ye(),Tk=pr().f;zEe({target:"Object",stat:!0,forced:Object.defineProperty!==Tk,sham:!KEe},{defineProperty:Tk})});var Ok=g(function(){"use strict";var HEe=C(),QEe=ye(),XEe=sf(),YEe=ke(),JEe=Ve(),ZEe=pr();QEe&&HEe({target:"Object",proto:!0,forced:XEe},{__defineSetter__:function __defineSetter__1(e,t){ZEe.f(JEe(this),e,{set:YEe(t),enumerable:!0,configurable:!0})}})});var p1=g(function(sfr,Nk){"use strict";var Ik=ye(),eqe=z(),Pk=Q(),rqe=yt(),tqe=js(),nqe=Vr(),iqe=ll().f,Ck=Pk(iqe),aqe=Pk([].push),oqe=Ik&&eqe(function(){var r=Object.create(null);return r[2]=2,!Ck(r,2)}),Rk=function Rk(r){return function(e){for(var t=nqe(e),n=tqe(t),i=oqe&&rqe(t)===null,a=n.length,o=0,s=[],u;a>o;)u=n[o++],(!Ik||(i?u in t:Ck(t,u)))&&aqe(s,r?[u,t[u]]:t[u]);return s}};Nk.exports={entries:Rk(!0),values:Rk(!1)}});var kk=g(function(){"use strict";var sqe=C(),uqe=p1().entries;sqe({target:"Object",stat:!0},{entries:function entries(e){return uqe(e)}})});var Lk=g(function(){"use strict";var cqe=C(),lqe=Ca(),fqe=z(),dqe=we(),pqe=Na().onFreeze,h1=Object.freeze,hqe=fqe(function(){h1(1)});cqe({target:"Object",stat:!0,forced:hqe,sham:!lqe},{freeze:function freeze(e){return h1&&dqe(e)?h1(pqe(e)):e}})});var Dk=g(function(){"use strict";var xqe=C(),gqe=Fr(),vqe=en();xqe({target:"Object",stat:!0},{fromEntries:function fromEntries(e){var t={};return gqe(e,function(n,i){vqe(t,n,i)},{AS_ENTRIES:!0}),t}})});var Fk=g(function(){"use strict";var mqe=C(),yqe=z(),bqe=Vr(),Wk=Yr().f,Mk=ye(),_qe=!Mk||yqe(function(){Wk(1)});mqe({target:"Object",stat:!0,forced:_qe,sham:!Mk},{getOwnPropertyDescriptor:function getOwnPropertyDescriptor(e,t){return Wk(bqe(e),t)}})});var Bk=g(function(){"use strict";var wqe=C(),Sqe=ye(),Eqe=Tp(),qqe=Vr(),Tqe=Yr(),Aqe=en();wqe({target:"Object",stat:!0,sham:!Sqe},{getOwnPropertyDescriptors:function getOwnPropertyDescriptors(e){for(var t=qqe(e),n=Tqe.f,i=Eqe(t),a={},o=0,s,u;i.length>o;)u=n(t,s=i[o++]),u!==void 0&&Aqe(a,s,u);return a}})});var Uk=g(function(){"use strict";var Oqe=C(),Rqe=z(),Iqe=Np().f,Pqe=Rqe(function(){return!Object.getOwnPropertyNames(1)});Oqe({target:"Object",stat:!0,forced:Pqe},{getOwnPropertyNames:Iqe})});var $k=g(function(){"use strict";var Cqe=C(),Nqe=z(),kqe=Ve(),jk=yt(),Lqe=Qp(),Dqe=Nqe(function(){jk(1)});Cqe({target:"Object",stat:!0,forced:Dqe,sham:!Lqe},{getPrototypeOf:function getPrototypeOf(e){return jk(kqe(e))}})});var Gk=g(function(){"use strict";var Wqe=C(),Mqe=en(),Fqe=Ce(),Bqe=Q(),Uqe=ke(),jqe=mr(),$qe=Ai(),Vqe=Fr(),Gqe=z(),Vk=Object.groupBy,zqe=Fqe("Object","create"),Kqe=Bqe([].push),Hqe=!Vk||Gqe(function(){return Vk("ab",function(r){return r}).a.length!==1});Wqe({target:"Object",stat:!0,forced:Hqe},{groupBy:function groupBy(e,t){jqe(e),Uqe(t);var n=zqe(null),i=0;return Vqe(e,function(a){var o=$qe(t(a,i++));o in n?Kqe(n[o],a):Mqe(n,o,[a])}),n}})});var zk=g(function(){"use strict";var Qqe=C(),Xqe=Ne();Qqe({target:"Object",stat:!0},{hasOwn:Xqe})});var x1=g(function(Tfr,Kk){"use strict";Kk.exports=Object.is||function(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}});var Hk=g(function(){"use strict";var Yqe=C(),Jqe=x1();Yqe({target:"Object",stat:!0},{is:Jqe})});var Xk=g(function(){"use strict";var Zqe=C(),Qk=Fh();Zqe({target:"Object",stat:!0,forced:Object.isExtensible!==Qk},{isExtensible:Qk})});var Jk=g(function(){"use strict";var eTe=C(),rTe=z(),tTe=we(),nTe=ut(),Yk=Wh(),g1=Object.isFrozen,iTe=Yk||rTe(function(){g1(1)});eTe({target:"Object",stat:!0,forced:iTe},{isFrozen:function isFrozen(e){return!tTe(e)||Yk&&nTe(e)==="ArrayBuffer"?!0:g1?g1(e):!1}})});var eL=g(function(){"use strict";var aTe=C(),oTe=z(),sTe=we(),uTe=ut(),Zk=Wh(),v1=Object.isSealed,cTe=Zk||oTe(function(){v1(1)});aTe({target:"Object",stat:!0,forced:cTe},{isSealed:function isSealed(e){return!sTe(e)||Zk&&uTe(e)==="ArrayBuffer"?!0:v1?v1(e):!1}})});var tL=g(function(){"use strict";var lTe=C(),fTe=Ve(),rL=js(),dTe=z(),pTe=dTe(function(){rL(1)});lTe({target:"Object",stat:!0,forced:pTe},{keys:function keys(e){return rL(fTe(e))}})});var nL=g(function(){"use strict";var hTe=C(),xTe=ye(),gTe=sf(),vTe=Ve(),mTe=Ai(),yTe=yt(),bTe=Yr().f;xTe&&hTe({target:"Object",proto:!0,forced:gTe},{__lookupGetter__:function __lookupGetter__(e){var t=vTe(this),n=mTe(e),i;do if(i=bTe(t,n))return i.get;while(t=yTe(t))}})});var iL=g(function(){"use strict";var _Te=C(),wTe=ye(),STe=sf(),ETe=Ve(),qTe=Ai(),TTe=yt(),ATe=Yr().f;wTe&&_Te({target:"Object",proto:!0,forced:STe},{__lookupSetter__:function __lookupSetter__(e){var t=ETe(this),n=qTe(e),i;do if(i=ATe(t,n))return i.set;while(t=TTe(t))}})});var aL=g(function(){"use strict";var OTe=C(),RTe=we(),ITe=Na().onFreeze,PTe=Ca(),CTe=z(),m1=Object.preventExtensions,NTe=CTe(function(){m1(1)});OTe({target:"Object",stat:!0,forced:NTe,sham:!PTe},{preventExtensions:function preventExtensions(e){return m1&&RTe(e)?m1(ITe(e)):e}})});var lL=g(function(){"use strict";var kTe=ye(),LTe=Ir(),DTe=we(),WTe=xy(),MTe=Ve(),FTe=mr(),oL=Object.getPrototypeOf,sL=Object.setPrototypeOf,uL=Object.prototype,cL="__proto__";if(kTe&&oL&&sL&&!(cL in uL))try{LTe(uL,cL,{configurable:!0,get:function get(){return oL(MTe(this))},set:function set(e){var t=FTe(this);WTe(e)&&DTe(t)&&sL(t,e)}})}catch(r){}});var fL=g(function(){"use strict";var BTe=C(),UTe=we(),jTe=Na().onFreeze,$Te=Ca(),VTe=z(),y1=Object.seal,GTe=VTe(function(){y1(1)});BTe({target:"Object",stat:!0,forced:GTe,sham:!$Te},{seal:function seal(e){return y1&&UTe(e)?y1(jTe(e)):e}})});var dL=g(function(){"use strict";var zTe=C(),KTe=hn();zTe({target:"Object",stat:!0},{setPrototypeOf:KTe})});var hL=g(function(Qfr,pL){"use strict";var HTe=Op(),QTe=Ft();pL.exports=HTe?({}).toString:function(){return"[object "+QTe(this)+"]"}});var xL=g(function(){"use strict";var XTe=Op(),YTe=tr(),JTe=hL();XTe||YTe(Object.prototype,"toString",JTe,{unsafe:!0})});var gL=g(function(){"use strict";var ZTe=C(),e3e=p1().values;ZTe({target:"Object",stat:!0},{values:function values(e){return e3e(e)}})});var mL=g(function(){"use strict";var r3e=C(),vL=i1();r3e({global:!0,forced:parseFloat!==vL},{parseFloat:vL})});var bL=g(function(){"use strict";var t3e=C(),yL=a1();t3e({global:!0,forced:parseInt!==yL},{parseInt:yL})});var Qh=g(function(idr,_L){"use strict";var n3e=ya(),i3e=xa(),a3e=TypeError;_L.exports=function(r){if(n3e(r))return r;throw new a3e(i3e(r)+" is not a constructor")}});var uf=g(function(adr,SL){"use strict";var wL=ge(),o3e=Qh(),s3e=Yn(),u3e=Ee(),c3e=u3e("species");SL.exports=function(r,e){var t=wL(r).constructor,n;return t===void 0||s3e(n=wL(t)[c3e])?e:o3e(n)}});var tn=g(function(odr,EL){"use strict";var l3e=TypeError;EL.exports=function(r,e){if(r<e)throw new l3e("Not enough arguments");return r}});var b1=g(function(sdr,qL){"use strict";var f3e=Pn();qL.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(f3e)});var ff=g(function(udr,kL){"use strict";var nn=ne(),d3e=jt(),p3e=Bt(),TL=We(),h3e=Ne(),NL=z(),AL=Dm(),x3e=Zt(),OL=pl(),g3e=tn(),v3e=b1(),m3e=Fo(),T1=nn.setImmediate,A1=nn.clearImmediate,y3e=nn.process,_1=nn.Dispatch,b3e=nn.Function,RL=nn.MessageChannel,_3e=nn.String,w1=0,cf={},IL="onreadystatechange",lf,Go,S1,E1;NL(function(){lf=nn.location});var O1=function O1(r){if(h3e(cf,r)){var e=cf[r];delete cf[r],e()}},q1=function q1(r){return function(){O1(r)}},PL=function PL(r){O1(r.data)},CL=function CL(r){nn.postMessage(_3e(r),lf.protocol+"//"+lf.host)};(!T1||!A1)&&(T1=function T1(e){g3e(arguments.length,1);var t=TL(e)?e:b3e(e),n=x3e(arguments,1);return cf[++w1]=function(){d3e(t,void 0,n)},Go(w1),w1},A1=function A1(e){delete cf[e]},m3e?Go=function Go(r){y3e.nextTick(q1(r))}:_1&&_1.now?Go=function Go(r){_1.now(q1(r))}:RL&&!v3e?(S1=new RL,E1=S1.port2,S1.port1.onmessage=PL,Go=p3e(E1.postMessage,E1)):nn.addEventListener&&TL(nn.postMessage)&&!nn.importScripts&&lf&&lf.protocol!=="file:"&&!NL(CL)?(Go=CL,nn.addEventListener("message",PL,!1)):IL in OL("script")?Go=function Go(r){AL.appendChild(OL("script"))[IL]=function(){AL.removeChild(this),O1(r)}}:Go=function Go(r){setTimeout(q1(r),0)});kL.exports={set:T1,clear:A1}});var R1=g(function(cdr,DL){"use strict";var LL=ne(),w3e=ye(),S3e=Object.getOwnPropertyDescriptor;DL.exports=function(r){if(!w3e)return LL[r];var e=S3e(LL,r);return e&&e.value}});var I1=g(function(ldr,ML){"use strict";var WL=function WL(){this.head=null,this.tail=null};WL.prototype={add:function add(r){var e={item:r,next:null},t=this.tail;t?t.next=e:this.head=e,this.tail=e},get:function get(){var r=this.head;if(r){var e=this.head=r.next;return e===null&&(this.tail=null),r.item}}};ML.exports=WL});var BL=g(function(fdr,FL){"use strict";var E3e=Pn();FL.exports=/ipad|iphone|ipod/i.test(E3e)&&typeof Pebble!="undefined"});var jL=g(function(ddr,UL){"use strict";var q3e=Pn();UL.exports=/web0s(?!.*chrome)/i.test(q3e)});var D1=g(function(pdr,HL){"use strict";var du=ne(),T3e=R1(),$L=Bt(),P1=ff().set,A3e=I1(),O3e=b1(),R3e=BL(),I3e=jL(),C1=Fo(),VL=du.MutationObserver||du.WebKitMutationObserver,GL=du.document,zL=du.process,Xh=du.Promise,L1=T3e("queueMicrotask"),fu,N1,k1,Yh,KL;L1||(df=new A3e,pf=function pf(){var r,e;for(C1&&(r=zL.domain)&&r.exit();e=df.get();)try{e()}catch(t){throw df.head&&fu(),t}r&&r.enter()},!O3e&&!C1&&!I3e&&VL&&GL?(N1=!0,k1=GL.createTextNode(""),new VL(pf).observe(k1,{characterData:!0}),fu=function fu(){k1.data=N1=!N1}):!R3e&&Xh&&Xh.resolve?(Yh=Xh.resolve(void 0),Yh.constructor=Xh,KL=$L(Yh.then,Yh),fu=function fu(){KL(pf)}):C1?fu=function fu(){zL.nextTick(pf)}:(P1=$L(P1,du),fu=function fu(){P1(pf)}),L1=function L1(r){df.head||fu(),df.add(r)});var df,pf;HL.exports=L1});var XL=g(function(hdr,QL){"use strict";QL.exports=function(r,e){try{arguments.length===1?console.error(r):console.error(r,e)}catch(t){}}});var zo=g(function(xdr,YL){"use strict";YL.exports=function(r){try{return{error:!1,value:r()}}catch(e){return{error:!0,value:e}}}});var Ko=g(function(gdr,JL){"use strict";var P3e=ne();JL.exports=P3e.Promise});var pu=g(function(vdr,tD){"use strict";var C3e=ne(),hf=Ko(),N3e=We(),k3e=Us(),L3e=yp(),D3e=Ee(),ZL=Wl(),W3e=Ke(),W1=Nn(),eD=hf&&hf.prototype,M3e=D3e("species"),M1=!1,rD=N3e(C3e.PromiseRejectionEvent),F3e=k3e("Promise",function(){var r=L3e(hf),e=r!==String(hf);if(!e&&W1===66||W3e&&!(eD.catch&&eD.finally))return!0;if(!W1||W1<51||!/native code/.test(r)){var t=new hf(function(a){a(1)}),n=function n(a){a(function(){},function(){})},i=t.constructor={};if(i[M3e]=n,M1=_instanceof(t.then(function(){}),n),!M1)return!0}return!e&&(ZL==="BROWSER"||ZL==="DENO")&&!rD});tD.exports={CONSTRUCTOR:F3e,REJECTION_EVENT:rD,SUBCLASSING:M1}});var si=g(function(mdr,iD){"use strict";var nD=ke(),B3e=TypeError,U3e=function U3e(r){var e,t;this.promise=new r(function(n,i){if(e!==void 0||t!==void 0)throw new B3e("Bad Promise constructor");e=n,t=i}),this.resolve=nD(e),this.reject=nD(t)};iD.exports.f=function(r){return new U3e(r)}});var ED=g(function(){"use strict";var j3e=C(),$3e=Ke(),r0=Fo(),ka=ne(),V3e=ml(),vu=he(),aD=tr(),oD=hn(),G3e=Tt(),z3e=Bo(),K3e=ke(),e0=We(),H3e=we(),Q3e=$t(),X3e=uf(),fD=ff().set,$1=D1(),Y3e=XL(),J3e=zo(),Z3e=I1(),dD=hr(),t0=Ko(),V1=pu(),pD=si(),n0="Promise",hD=V1.CONSTRUCTOR,e5e=V1.REJECTION_EVENT,r5e=V1.SUBCLASSING,F1=dD.getterFor(n0),t5e=dD.set,hu=t0&&t0.prototype,Ho=t0,Jh=hu,xD=ka.TypeError,B1=ka.document,G1=ka.process,U1=pD.f,n5e=U1,i5e=!!(B1&&B1.createEvent&&ka.dispatchEvent),gD="unhandledrejection",a5e="rejectionhandled",sD=0,vD=1,o5e=2,z1=1,mD=2,Zh,uD,yD,cD,bD=function bD(r){var e;return H3e(r)&&e0(e=r.then)?e:!1},_D=function _D(r,e){var t=e.value,n=e.state===vD,i=n?r.ok:r.fail,a=r.resolve,o=r.reject,s=r.domain,u,c,l;try{i?(n||(e.rejection===mD&&u5e(e),e.rejection=z1),i===!0?u=t:(s&&s.enter(),u=i(t),s&&(s.exit(),l=!0)),u===r.promise?o(new xD("Promise-chain cycle")):(c=bD(u))?vu(c,u,a,o):a(u)):o(t)}catch(f){s&&!l&&s.exit(),o(f)}},wD=function wD(r,e){r.notified||(r.notified=!0,$1(function(){for(var t=r.reactions,n;n=t.get();)_D(n,r);r.notified=!1,e&&!r.rejection&&s5e(r)}))},SD=function SD(r,e,t){var n,i;i5e?(n=B1.createEvent("Event"),n.promise=e,n.reason=t,n.initEvent(r,!1,!0),ka.dispatchEvent(n)):n={promise:e,reason:t},!e5e&&(i=ka["on"+r])?i(n):r===gD&&Y3e("Unhandled promise rejection",t)},s5e=function s5e(r){vu(fD,ka,function(){var e=r.facade,t=r.value,n=lD(r),i;if(n&&(i=J3e(function(){r0?G1.emit("unhandledRejection",t,e):SD(gD,e,t)}),r.rejection=r0||lD(r)?mD:z1,i.error))throw i.value})},lD=function lD(r){return r.rejection!==z1&&!r.parent},u5e=function u5e(r){vu(fD,ka,function(){var e=r.facade;r0?G1.emit("rejectionHandled",e):SD(a5e,e,r.value)})},xu=function xu(r,e,t){return function(n){r(e,n,t)}},gu=function gu(r,e,t){r.done||(r.done=!0,t&&(r=t),r.value=e,r.state=o5e,wD(r,!0))},j1=function j11(r,e,t){if(!r.done){r.done=!0,t&&(r=t);try{if(r.facade===e)throw new xD("Promise can't be resolved itself");var n=bD(e);n?$1(function(){var _$i={done:!1};try{vu(n,e,xu(j1,_$i,r),xu(gu,_$i,r))}catch(a){gu(_$i,a,r)}}):(r.value=e,r.state=vD,wD(r,!1))}catch(i){gu({done:!1},i,r)}}};if(hD&&(Ho=function Ho(e){Q3e(this,Jh),K3e(e),vu(Zh,this);var t=F1(this);try{e(xu(j1,t),xu(gu,t))}catch(n){gu(t,n)}},Jh=Ho.prototype,Zh=function Zh(e){t5e(this,{type:n0,done:!1,notified:!1,parent:!1,reactions:new Z3e,rejection:!1,state:sD,value:null})},Zh.prototype=aD(Jh,"then",function(e,t){var n=F1(this),i=U1(X3e(this,Ho));return n.parent=!0,i.ok=e0(e)?e:!0,i.fail=e0(t)&&t,i.domain=r0?G1.domain:void 0,n.state===sD?n.reactions.add(i):$1(function(){_D(i,n)}),i.promise}),uD=function uD(){var r=new Zh,e=F1(r);this.promise=r,this.resolve=xu(j1,e),this.reject=xu(gu,e)},pD.f=U1=function U1(r){return r===Ho||r===yD?new uD(r):n5e(r)},!$3e&&e0(t0)&&hu!==Object.prototype)){cD=hu.then,r5e||aD(hu,"then",function(e,t){var n=this;return new Ho(function(i,a){vu(cD,n,i,a)}).then(e,t)},{unsafe:!0});try{delete hu.constructor}catch(r){}oD&&oD(hu,Jh)}j3e({global:!0,constructor:!0,wrap:!0,forced:hD},{Promise:Ho});yD=V3e.Promise;G3e(Ho,n0,!1,!0);z3e(n0)});var xf=g(function(_dr,qD){"use strict";var c5e=Ko(),l5e=Pl(),f5e=pu().CONSTRUCTOR;qD.exports=f5e||!l5e(function(r){c5e.all(r).then(void 0,function(){})})});var TD=g(function(){"use strict";var d5e=C(),p5e=he(),h5e=ke(),x5e=si(),g5e=zo(),v5e=Fr(),m5e=xf();d5e({target:"Promise",stat:!0,forced:m5e},{all:function all(e){var t=this,n=x5e.f(t),i=n.resolve,a=n.reject,o=g5e(function(){var s=h5e(t.resolve),u=[],c=0,l=1;v5e(e,function(f){var d=c++,p=!1;l++,p5e(s,t,f).then(function(x){p||(p=!0,u[d]=x,--l||i(u))},a)}),--l||i(u)});return o.error&&a(o.value),n.promise}})});var OD=g(function(){"use strict";var y5e=C(),b5e=Ke(),_5e=pu().CONSTRUCTOR,H1=Ko(),w5e=Ce(),S5e=We(),E5e=tr(),AD=H1&&H1.prototype;y5e({target:"Promise",proto:!0,forced:_5e,real:!0},{catch:function _catch(r){return this.then(void 0,r)}});!b5e&&S5e(H1)&&(K1=w5e("Promise").prototype.catch,AD.catch!==K1&&E5e(AD,"catch",K1,{unsafe:!0}));var K1});var RD=g(function(){"use strict";var q5e=C(),T5e=he(),A5e=ke(),O5e=si(),R5e=zo(),I5e=Fr(),P5e=xf();q5e({target:"Promise",stat:!0,forced:P5e},{race:function race(e){var t=this,n=O5e.f(t),i=n.reject,a=R5e(function(){var o=A5e(t.resolve);I5e(e,function(s){T5e(o,t,s).then(n.resolve,i)})});return a.error&&i(a.value),n.promise}})});var ID=g(function(){"use strict";var C5e=C(),N5e=si(),k5e=pu().CONSTRUCTOR;C5e({target:"Promise",stat:!0,forced:k5e},{reject:function reject(e){var t=N5e.f(this),n=t.reject;return n(e),t.promise}})});var Q1=g(function(Idr,PD){"use strict";var L5e=ge(),D5e=we(),W5e=si();PD.exports=function(r,e){if(L5e(r),D5e(e)&&e.constructor===r)return e;var t=W5e.f(r),n=t.resolve;return n(e),t.promise}});var kD=g(function(){"use strict";var M5e=C(),F5e=Ce(),CD=Ke(),B5e=Ko(),ND=pu().CONSTRUCTOR,U5e=Q1(),j5e=F5e("Promise"),$5e=CD&&!ND;M5e({target:"Promise",stat:!0,forced:CD||ND},{resolve:function resolve(e){return U5e($5e&&this===j5e?B5e:this,e)}})});var LD=g(function(){"use strict";ED();TD();OD();RD();ID();kD()});var DD=g(function(){"use strict";var V5e=C(),G5e=he(),z5e=ke(),K5e=si(),H5e=zo(),Q5e=Fr(),X5e=xf();V5e({target:"Promise",stat:!0,forced:X5e},{allSettled:function allSettled(e){var t=this,n=K5e.f(t),i=n.resolve,a=n.reject,o=H5e(function(){var s=z5e(t.resolve),u=[],c=0,l=1;Q5e(e,function(f){var d=c++,p=!1;l++,G5e(s,t,f).then(function(x){p||(p=!0,u[d]={status:"fulfilled",value:x},--l||i(u))},function(x){p||(p=!0,u[d]={status:"rejected",reason:x},--l||i(u))})}),--l||i(u)});return o.error&&a(o.value),n.promise}})});var MD=g(function(){"use strict";var Y5e=C(),J5e=he(),Z5e=ke(),e4e=Ce(),r4e=si(),t4e=zo(),n4e=Fr(),i4e=xf(),WD="No one promise resolved";Y5e({target:"Promise",stat:!0,forced:i4e},{any:function any(e){var t=this,n=e4e("AggregateError"),i=r4e.f(t),a=i.resolve,o=i.reject,s=t4e(function(){var u=Z5e(t.resolve),c=[],l=0,f=1,d=!1;n4e(e,function(p){var x=l++,h=!1;f++,J5e(u,t,p).then(function(v){h||d||(d=!0,a(v))},function(v){h||d||(h=!0,c[x]=v,--f||o(new n(c,WD)))})}),--f||o(new n(c,WD))});return s.error&&o(s.value),i.promise}})});var jD=g(function(){"use strict";var a4e=C(),o4e=Ke(),i0=Ko(),s4e=z(),BD=Ce(),UD=We(),u4e=uf(),FD=Q1(),c4e=tr(),Y1=i0&&i0.prototype,l4e=!!i0&&s4e(function(){Y1.finally.call({then:function then(){}},function(){})});a4e({target:"Promise",proto:!0,real:!0,forced:l4e},{finally:function _finally(r){var e=u4e(this,BD("Promise")),t=UD(r);return this.then(t?function(n){return FD(e,r()).then(function(){return n})}:r,t?function(n){return FD(e,r()).then(function(){throw n})}:r)}});!o4e&&UD(i0)&&(X1=BD("Promise").prototype.finally,Y1.finally!==X1&&c4e(Y1,"finally",X1,{unsafe:!0}));var X1});var GD=g(function(){"use strict";var f4e=C(),d4e=ne(),p4e=jt(),h4e=Zt(),x4e=si(),g4e=ke(),VD=zo(),J1=d4e.Promise,$D=!1,v4e=!J1||!J1.try||VD(function(){J1.try(function(r){$D=r===8},8)}).error||!$D;f4e({target:"Promise",stat:!0,forced:v4e},{try:function _try(r){var e=arguments.length>1?h4e(arguments,1):[],t=x4e.f(this),n=VD(function(){return p4e(g4e(r),void 0,e)});return(n.error?t.reject:t.resolve)(n.value),t.promise}})});var zD=g(function(){"use strict";var m4e=C(),y4e=si();m4e({target:"Promise",stat:!0},{withResolvers:function withResolvers(){var e=y4e.f(this);return{promise:e.promise,resolve:e.resolve,reject:e.reject}}})});var ew=g(function(Gdr,e9){"use strict";var YD=ne(),JD=fl(),ZD=We(),b4e=Zr(),a0=yt(),_4e=tr(),w4e=Ee(),S4e=Ke(),KD="USE_FUNCTION_CONSTRUCTOR",HD=w4e("asyncIterator"),QD=YD.AsyncIterator,XD=JD.AsyncIteratorPrototype,ui,Z1;if(XD)ui=XD;else if(ZD(QD))ui=QD.prototype;else if(JD[KD]||YD[KD])try{Z1=a0(a0(a0(Function("return async function*(){}()")()))),a0(Z1)===Object.prototype&&(ui=Z1)}catch(r){}ui?S4e&&(ui=b4e(ui)):ui={};ZD(ui[HD])||_4e(ui,HD,function(){return this});e9.exports=ui});var tw=g(function(zdr,c9){"use strict";var r9=he(),t9=ge(),E4e=Zr(),q4e=Xr(),T4e=ti(),a9=hr(),A4e=tt(),O4e=Ce(),R4e=ew(),o9=Ea(),rw=O4e("Promise"),s9="AsyncFromSyncIterator",I4e=a9.set,n9=a9.getterFor(s9),i9=function i9(r,e,t,n,i){var a=r.done;rw.resolve(r.value).then(function(o){e(o9(o,a))},function(o){if(!a&&i)try{A4e(n,"throw",o)}catch(s){o=s}t(o)})},u9=function u9(e){e.type=s9,I4e(this,e)};u9.prototype=T4e(E4e(R4e),{next:function next(){var e=n9(this);return new rw(function(t,n){var i=t9(r9(e.next,e.iterator));i9(i,t,n,e.iterator,!0)})},return:function _return(){var r=n9(this).iterator;return new rw(function(e,t){var n=q4e(r,"return");if(n===void 0)return e(o9(void 0,!0));var i=t9(r9(n,r));i9(i,e,t,r)})}});c9.exports=u9});var f9=g(function(Kdr,l9){"use strict";var P4e=he(),C4e=tw(),N4e=ge(),k4e=Do(),L4e=lt(),D4e=Xr(),W4e=Ee(),M4e=W4e("asyncIterator");l9.exports=function(r,e){var t=arguments.length<2?D4e(r,M4e):e;return t?N4e(P4e(t,r)):new C4e(L4e(k4e(r)))}});var p9=g(function(Hdr,d9){"use strict";var F4e=he(),B4e=Ce(),U4e=Xr();d9.exports=function(r,e,t,n){try{var i=U4e(r,"return");if(i)return B4e("Promise").resolve(F4e(i,r)).then(function(){e(t)},function(a){n(a)})}catch(a){return n(a)}e(t)}});var x9=g(function(Qdr,h9){"use strict";var j4e=he(),$4e=ke(),nw=ge(),V4e=we(),G4e=Sa(),z4e=Ce(),K4e=lt(),iw=p9(),gf=function gf(r){var e=r===0,t=r===1,n=r===2,i=r===3;return function(a,o,s){nw(a);var u=o!==void 0;(u||!e)&&$4e(o);var c=K4e(a),l=z4e("Promise"),f=c.iterator,d=c.next,p=0;return new l(function(x,h){var v=function v(m){iw(f,h,m,h)},y=function y1(){try{if(u)try{G4e(p)}catch(m){v(m)}l.resolve(nw(j4e(d,f))).then(function(m){try{if(nw(m).done)e?(s.length=p,x(s)):x(i?!1:n||void 0);else{var b=m.value;try{if(u){var S=o(b,p),T=function T(w){if(t)y();else if(n)w?y():iw(f,x,!1,h);else if(e)try{s[p++]=w,y()}catch(R){v(R)}else w?iw(f,x,i||b,h):y()};V4e(S)?l.resolve(S).then(T,v):T(S)}else s[p++]=b,y()}catch(w){v(w)}}}catch(w){h(w)}},h)}catch(m){h(m)}};y()})}};h9.exports={toArray:gf(0),forEach:gf(1),every:gf(2),some:gf(3),find:gf(4)}});var b9=g(function(Xdr,y9){"use strict";var H4e=Bt(),g9=Q(),Q4e=Ve(),X4e=ya(),Y4e=f9(),J4e=Do(),Z4e=lt(),eAe=Ii(),rAe=Xr(),tAe=Ce(),nAe=nb(),iAe=Ee(),aAe=tw(),oAe=x9().toArray,sAe=iAe("asyncIterator"),v9=g9(nAe("Array","values")),uAe=g9(v9([]).next),cAe=function cAe(){return new m9(this)},m9=function m9(r){this.iterator=v9(r)};m9.prototype.next=function(){return uAe(this.iterator)};y9.exports=function(e){var t=this,n=arguments.length,i=n>1?arguments[1]:void 0,a=n>2?arguments[2]:void 0;return new(tAe("Promise"))(function(o){var s=Q4e(e);i!==void 0&&(i=H4e(i,a));var u=rAe(s,sAe),c=u?void 0:eAe(s)||cAe,l=X4e(t)?new t:[],f=u?Y4e(s,u):new aAe(Z4e(J4e(s,c)));o(oAe(f,i,l))})}});var w9=g(function(){"use strict";var lAe=C(),fAe=b9(),dAe=z(),_9=Array.fromAsync,pAe=!_9||dAe(function(){var r=0;return _9.call(function(){return r++,[]},{length:0}),r!==1});lAe({target:"Array",stat:!0,forced:pAe},{fromAsync:fAe})});var I9=g(function(){"use strict";var hAe=C(),s0=ye(),T9=Ce(),S9=ke(),xAe=$t(),A9=tr(),gAe=ti(),vAe=Ir(),O9=Ee(),R9=hr(),aw=zb(),E9=Nn(),q9=T9("Promise"),mAe=T9("SuppressedError"),yAe=ReferenceError,bAe=O9("asyncDispose"),_Ae=O9("toStringTag"),c0="AsyncDisposableStack",wAe=R9.set,u0=R9.getterFor(c0),ow="async-dispose",vf="disposed",SAe="pending",o0=function o0(r){var e=u0(r);if(e.state===vf)throw new yAe(c0+" already disposed");return e},sw=function sw(){wAe(xAe(this,mu),{type:c0,state:SAe,stack:[]}),s0||(this.disposed=!1)},mu=sw.prototype;gAe(mu,{disposeAsync:function disposeAsync(){var e=this;return new q9(function(t,n){var i=u0(e);if(i.state===vf)return t(void 0);i.state=vf,s0||(e.disposed=!0);var a=i.stack,o=a.length,s=!1,u,c=function c(f){s?u=new mAe(f,u):(s=!0,u=f),l()},l=function l1(){if(o){var f=a[--o];a[o]=null;try{q9.resolve(f()).then(l,c)}catch(d){c(d)}}else i.stack=null,s?n(u):t(void 0)};l()})},use:function use(e){return aw(o0(this),e,ow),e},adopt:function adopt(e,t){var n=o0(this);return S9(t),aw(n,void 0,ow,function(){return t(e)}),e},defer:function defer(e){var t=o0(this);S9(e),aw(t,void 0,ow,e)},move:function move(){var e=o0(this),t=new sw;return u0(t).stack=e.stack,e.stack=[],e.state=vf,s0||(this.disposed=!0),t}});s0&&vAe(mu,"disposed",{configurable:!0,get:function get(){return u0(this).state===vf}});A9(mu,bAe,mu.disposeAsync,{name:"disposeAsync"});A9(mu,_Ae,c0,{nonWritable:!0});var EAe=E9&&E9<136;hAe({global:!0,constructor:!0,forced:EAe},{AsyncDisposableStack:sw})});var k9=g(function(){"use strict";var qAe=he(),TAe=tr(),AAe=Ce(),OAe=Xr(),RAe=Ne(),IAe=Ee(),P9=ew(),C9=IAe("asyncDispose"),N9=AAe("Promise");RAe(P9,C9)||TAe(P9,C9,function(){var r=this;return new N9(function(e,t){var n=OAe(r,"return");n?N9.resolve(qAe(n,r)).then(function(){e(void 0)},t):e(void 0)})})});var L9=g(function(){"use strict";var PAe=C(),CAe=jt(),NAe=ke(),kAe=ge(),LAe=z(),DAe=!LAe(function(){Reflect.apply(function(){})});PAe({target:"Reflect",stat:!0,forced:DAe},{apply:function apply(e,t,n){return CAe(NAe(e),t,kAe(n))}})});var j9=g(function(){"use strict";var WAe=C(),MAe=Ce(),uw=jt(),FAe=Yb(),D9=Qh(),BAe=ge(),W9=we(),UAe=Zr(),F9=z(),cw=MAe("Reflect","construct"),jAe=Object.prototype,$Ae=[].push,B9=F9(function(){function r(){}return!_instanceof(cw(function(){},[],r),r)}),U9=!F9(function(){cw(function(){})}),M9=B9||U9;WAe({target:"Reflect",stat:!0,forced:M9,sham:M9},{construct:function construct(e,t){D9(e),BAe(t);var n=arguments.length<3?e:D9(arguments[2]);if(U9&&!B9)return cw(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 i=[null];return uw($Ae,i,t),new(uw(FAe,e,i))}var a=n.prototype,o=UAe(W9(a)?a:jAe),s=uw(e,o,t);return W9(s)?s:o}})});var G9=g(function(){"use strict";var VAe=C(),GAe=ye(),$9=ge(),zAe=Ai(),V9=pr(),KAe=z(),HAe=KAe(function(){Reflect.defineProperty(V9.f({},1,{value:1}),1,{value:2})});VAe({target:"Reflect",stat:!0,forced:HAe,sham:!GAe},{defineProperty:function defineProperty(e,t,n){$9(e);var i=zAe(t);$9(n);try{return V9.f(e,i,n),!0}catch(a){return!1}}})});var z9=g(function(){"use strict";var QAe=C(),XAe=ge(),YAe=Yr().f;QAe({target:"Reflect",stat:!0},{deleteProperty:function deleteProperty(e,t){var n=YAe(XAe(e),t);return n&&!n.configurable?!1:delete e[t]}})});var lw=g(function(fpr,H9){"use strict";var K9=Ne();H9.exports=function(r){return r!==void 0&&(K9(r,"value")||K9(r,"writable"))}});var X9=g(function(){"use strict";var JAe=C(),ZAe=he(),eOe=we(),rOe=ge(),tOe=lw(),nOe=Yr(),iOe=yt();function Q9(r,e){var t=arguments.length<3?r:arguments[2],n,i;if(rOe(r)===t)return r[e];if(n=nOe.f(r,e),n)return tOe(n)?n.value:n.get===void 0?void 0:ZAe(n.get,t);if(eOe(i=iOe(r)))return Q9(i,e,t)}JAe({target:"Reflect",stat:!0},{get:Q9})});var Y9=g(function(){"use strict";var aOe=C(),oOe=ye(),sOe=ge(),uOe=Yr();aOe({target:"Reflect",stat:!0,sham:!oOe},{getOwnPropertyDescriptor:function getOwnPropertyDescriptor(e,t){return uOe.f(sOe(e),t)}})});var J9=g(function(){"use strict";var cOe=C(),lOe=ge(),fOe=yt(),dOe=Qp();cOe({target:"Reflect",stat:!0,sham:!dOe},{getPrototypeOf:function getPrototypeOf(e){return fOe(lOe(e))}})});var Z9=g(function(){"use strict";var pOe=C();pOe({target:"Reflect",stat:!0},{has:function has(e,t){return t in e}})});var eW=g(function(){"use strict";var hOe=C(),xOe=ge(),gOe=Fh();hOe({target:"Reflect",stat:!0},{isExtensible:function isExtensible(e){return xOe(e),gOe(e)}})});var rW=g(function(){"use strict";var vOe=C(),mOe=Tp();vOe({target:"Reflect",stat:!0},{ownKeys:mOe})});var tW=g(function(){"use strict";var yOe=C(),bOe=Ce(),_Oe=ge(),wOe=Ca();yOe({target:"Reflect",stat:!0,sham:!wOe},{preventExtensions:function preventExtensions(e){_Oe(e);try{var t=bOe("Object","preventExtensions");return t&&t(e),!0}catch(n){return!1}}})});var sW=g(function(){"use strict";var SOe=C(),EOe=he(),qOe=ge(),nW=we(),TOe=lw(),AOe=z(),fw=pr(),iW=Yr(),OOe=yt(),aW=Wt();function oW(r,e,t){var n=arguments.length<4?r:arguments[3],i=iW.f(qOe(r),e),a,o,s;if(!i){if(nW(o=OOe(r)))return oW(o,e,t,n);i=aW(0)}if(TOe(i)){if(i.writable===!1||!nW(n))return!1;if(a=iW.f(n,e)){if(a.get||a.set||a.writable===!1)return!1;a.value=t,fw.f(n,e,a)}else fw.f(n,e,aW(0,t))}else{if(s=i.set,s===void 0)return!1;EOe(s,n,t)}return!0}var ROe=AOe(function(){var r=function r(){},e=fw.f(new r,"a",{configurable:!0});return Reflect.set(r.prototype,"a",1,e)!==!1});SOe({target:"Reflect",stat:!0,forced:ROe},{set:oW})});var cW=g(function(){"use strict";var IOe=C(),POe=ge(),COe=gy(),uW=hn();uW&&IOe({target:"Reflect",stat:!0},{setPrototypeOf:function setPrototypeOf(e,t){POe(e),COe(t);try{return uW(e,t),!0}catch(n){return!1}}})});var lW=g(function(){"use strict";var NOe=C(),kOe=ne(),LOe=Tt();NOe({global:!0},{Reflect:{}});LOe(kOe.Reflect,"Reflect",!0)});var mf=g(function(Cpr,fW){"use strict";var DOe=we(),WOe=ut(),MOe=Ee(),FOe=MOe("match");fW.exports=function(r){var e;return DOe(r)&&((e=r[FOe])!==void 0?!!e:WOe(r)==="RegExp")}});var dw=g(function(Npr,pW){"use strict";var BOe=ne(),UOe=z(),dW=BOe.RegExp,jOe=!UOe(function(){var r=!0;try{dW(".","d")}catch(u){r=!1}var e={},t="",n=r?"dgimsy":"gimsy",i=function i(u,c){Object.defineProperty(e,u,{get:function get(){return t+=c,!0}})},a={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};r&&(a.hasIndices="d");for(var o in a)i(o,a[o]);var s=Object.getOwnPropertyDescriptor(dW.prototype,"flags").get.call(e);return s!==n||t!==n});pW.exports={correct:jOe}});var l0=g(function(kpr,hW){"use strict";var $Oe=ge();hW.exports=function(){var r=$Oe(this),e="";return r.hasIndices&&(e+="d"),r.global&&(e+="g"),r.ignoreCase&&(e+="i"),r.multiline&&(e+="m"),r.dotAll&&(e+="s"),r.unicode&&(e+="u"),r.unicodeSets&&(e+="v"),r.sticky&&(e+="y"),e}});var La=g(function(Lpr,gW){"use strict";var VOe=he(),GOe=Ne(),zOe=mt(),xW=dw(),KOe=l0(),HOe=RegExp.prototype;gW.exports=xW.correct?function(r){return r.flags}:function(r){return!xW.correct&&zOe(HOe,r)&&!GOe(r,"flags")?VOe(KOe,r):r.flags}});var yf=g(function(Dpr,vW){"use strict";var pw=z(),QOe=ne(),hw=QOe.RegExp,xw=pw(function(){var r=hw("a","y");return r.lastIndex=2,r.exec("abcd")!==null}),XOe=xw||pw(function(){return!hw("a","y").sticky}),YOe=xw||pw(function(){var r=hw("^r","gy");return r.lastIndex=2,r.exec("str")!==null});vW.exports={BROKEN_CARET:YOe,MISSED_STICKY:XOe,UNSUPPORTED_Y:xw}});var f0=g(function(Wpr,mW){"use strict";var JOe=z(),ZOe=ne(),eRe=ZOe.RegExp;mW.exports=JOe(function(){var r=eRe(".","s");return!(r.dotAll&&r.test("\n")&&r.flags==="s")})});var gw=g(function(Mpr,yW){"use strict";var rRe=z(),tRe=ne(),nRe=tRe.RegExp;yW.exports=rRe(function(){var r=nRe("(?<a>b)","g");return r.exec("b").groups.a!=="b"||"b".replace(r,"$<a>c")!=="bc"})});var RW=g(function(){"use strict";var iRe=ye(),bw=ne(),bf=Q(),aRe=Us(),oRe=wa(),sRe=Jr(),uRe=Zr(),cRe=va().f,bW=mt(),lRe=mf(),_W=Oe(),fRe=La(),qW=yf(),dRe=vy(),pRe=tr(),hRe=z(),xRe=Ne(),gRe=hr().enforce,vRe=Bo(),mRe=Ee(),TW=f0(),AW=gw(),yRe=mRe("match"),Wa=bw.RegExp,yu=Wa.prototype,bRe=bw.SyntaxError,_Re=bf(yu.exec),d0=bf("".charAt),wW=bf("".replace),SW=bf("".indexOf),EW=bf("".slice),wRe=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,Qo=/a/g,vw=/a/g,SRe=new Wa(Qo)!==Qo,OW=qW.MISSED_STICKY,ERe=qW.UNSUPPORTED_Y,qRe=iRe&&(!SRe||OW||TW||AW||hRe(function(){return vw[yRe]=!1,Wa(Qo)!==Qo||Wa(vw)===vw||String(Wa(Qo,"i"))!=="/a/i"})),TRe=function TRe(r){for(var e=r.length,t=0,n="",i=!1,a;t<=e;t++){if(a=d0(r,t),a==="\\"){n+=a+d0(r,++t);continue}!i&&a==="."?n+="[\\s\\S]":(a==="["?i=!0:a==="]"&&(i=!1),n+=a)}return n},ARe=function ARe(r){for(var e=r.length,t=0,n="",i=[],a=uRe(null),o=!1,s=!1,u=0,c="",l;t<=e;t++){if(l=d0(r,t),l==="\\")l+=d0(r,++t);else if(l==="]")o=!1;else if(!o)switch(!0){case l==="[":o=!0;break;case l==="(":if(n+=l,EW(r,t+1,t+3)==="?:")continue;_Re(wRe,EW(r,t+1))&&(t+=2,s=!0),u++;continue;case l===">"&&s:if(c===""||xRe(a,c))throw new bRe("Invalid capture group name");a[c]=!0,i[i.length]=[c,u],s=!1,c="";continue}s?c+=l:n+=l}return[n,i]};if(aRe("RegExp",qRe)){for(Da=function(e,t){var n=bW(yu,this),i=lRe(e),a=t===void 0,o=[],s=e,u,c,l,f,d,p;if(!n&&i&&a&&e.constructor===Da)return e;if((i||bW(yu,e))&&(e=e.source,a&&(t=fRe(s))),e=e===void 0?"":_W(e),t=t===void 0?"":_W(t),s=e,TW&&"dotAll"in Qo&&(c=!!t&&SW(t,"s")>-1,c&&(t=wW(t,/s/g,""))),u=t,OW&&"sticky"in Qo&&(l=!!t&&SW(t,"y")>-1,l&&ERe&&(t=wW(t,/y/g,""))),AW&&(f=ARe(e),e=f[0],o=f[1]),d=oRe(Wa(e,t),n?this:yu,Da),(c||l||o.length)&&(p=gRe(d),c&&(p.dotAll=!0,p.raw=Da(TRe(e),u)),l&&(p.sticky=!0),o.length&&(p.groups=o)),e!==s)try{sRe(d,"source",s===""?"(?:)":s)}catch(x){}return d},mw=cRe(Wa),yw=0;mw.length>yw;)dRe(Da,Wa,mw[yw++]);yu.constructor=Da,Da.prototype=yu,pRe(bw,"RegExp",Da,{constructor:!0})}var Da,mw,yw;vRe("RegExp")});var _f=g(function(Upr,IW){"use strict";var ORe=TypeError;IW.exports=function(r){if(typeof r=="string")return r;throw new ORe("Argument is not a string")}});var DW=g(function(){"use strict";var RRe=C(),wf=Q(),IRe=_f(),PRe=Ne(),PW=Vl().start,CRe=ou(),NRe=Array,CW=RegExp.escape,NW=wf("".charAt),Sw=wf("".charCodeAt),kRe=wf(1.1.toString),LRe=wf([].join),LW=/^[0-9a-z]/i,DRe=/^[$()*+./?[\\\]^{|}]/,WRe=RegExp("^[!\"#%&',\\-:;<=>@`~"+CRe+"]"),_w=wf(LW.exec),kW={" ":"t","\n":"n","\v":"v","\f":"f","\r":"r"},ww=function ww(r){var e=kRe(Sw(r,0),16);return e.length<3?"\\x"+PW(e,2,"0"):"\\u"+PW(e,4,"0")},MRe=!CW||CW("ab")!=="\\x61b";RRe({target:"RegExp",stat:!0,forced:MRe},{escape:function escape1(e){IRe(e);for(var t=e.length,n=NRe(t),i=0;i<t;i++){var a=NW(e,i);if(i===0&&_w(LW,a))n[i]=ww(a);else if(PRe(kW,a))n[i]="\\"+kW[a];else if(_w(DRe,a))n[i]="\\"+a;else if(_w(WRe,a))n[i]=ww(a);else{var o=Sw(a,0);(o&63488)!==55296?n[i]=a:o>=56320||i+1>=t||(Sw(e,i+1)&64512)!==56320?n[i]=ww(a):(n[i]=a,n[++i]=NW(e,i))}}return LRe(n,"")}})});var MW=g(function(){"use strict";var FRe=ye(),BRe=f0(),URe=ut(),jRe=Ir(),$Re=hr().get,WW=RegExp.prototype,VRe=TypeError;FRe&&BRe&&jRe(WW,"dotAll",{configurable:!0,get:function get(){if(this!==WW){if(URe(this)==="RegExp")return!!$Re(this).dotAll;throw new VRe("Incompatible receiver, RegExp required")}}})});var x0=g(function(zpr,BW){"use strict";var bu=he(),h0=Q(),GRe=Oe(),zRe=l0(),KRe=yf(),HRe=To(),QRe=Zr(),XRe=hr().get,YRe=f0(),JRe=gw(),ZRe=HRe("native-string-replace",String.prototype.replace),p0=RegExp.prototype.exec,qw=p0,eIe=h0("".charAt),rIe=h0("".indexOf),tIe=h0("".replace),Ew=h0("".slice),Tw=function(){var r=/a/,e=/b*/g;return bu(p0,r,"a"),bu(p0,e,"a"),r.lastIndex!==0||e.lastIndex!==0}(),FW=KRe.BROKEN_CARET,Aw=/()??/.exec("")[1]!==void 0,nIe=Tw||Aw||FW||YRe||JRe;nIe&&(qw=function(e){var t=this,n=XRe(t),i=GRe(e),a=n.raw,o,s,u,c,l,f,d;if(a)return a.lastIndex=t.lastIndex,o=bu(qw,a,i),t.lastIndex=a.lastIndex,o;var p=n.groups,x=FW&&t.sticky,h=bu(zRe,t),v=t.source,y=0,m=i;if(x&&(h=tIe(h,"y",""),rIe(h,"g")===-1&&(h+="g"),m=Ew(i,t.lastIndex),t.lastIndex>0&&(!t.multiline||t.multiline&&eIe(i,t.lastIndex-1)!=="\n")&&(v="(?: "+v+")",m=" "+m,y++),s=new RegExp("^(?:"+v+")",h)),Aw&&(s=new RegExp("^"+v+"$(?!\\s)",h)),Tw&&(u=t.lastIndex),c=bu(p0,x?s:t,m),x?c?(c.input=Ew(c.input,y),c[0]=Ew(c[0],y),c.index=t.lastIndex,t.lastIndex+=c[0].length):t.lastIndex=0:Tw&&c&&(t.lastIndex=t.global?c.index+c[0].length:u),Aw&&c&&c.length>1&&bu(ZRe,c[0],s,function(){for(l=1;l<arguments.length-2;l++)arguments[l]===void 0&&(c[l]=void 0)}),c&&p)for(c.groups=f=QRe(null),l=0;l<p.length;l++)d=p[l],f[d[0]]=c[d[1]];return c});BW.exports=qw});var g0=g(function(){"use strict";var iIe=C(),UW=x0();iIe({target:"RegExp",proto:!0,forced:/./.exec!==UW},{exec:UW})});var $W=g(function(){"use strict";var aIe=ye(),oIe=Ir(),jW=dw(),sIe=l0();aIe&&!jW.correct&&(oIe(RegExp.prototype,"flags",{configurable:!0,get:sIe}),jW.correct=!0)});var GW=g(function(){"use strict";var uIe=ye(),cIe=yf().MISSED_STICKY,lIe=ut(),fIe=Ir(),dIe=hr().get,VW=RegExp.prototype,pIe=TypeError;uIe&&cIe&&fIe(VW,"sticky",{configurable:!0,get:function get(){if(this!==VW){if(lIe(this)==="RegExp")return!!dIe(this).sticky;throw new pIe("Incompatible receiver, RegExp required")}}})});var HW=g(function(){"use strict";g0();var hIe=C(),zW=he(),xIe=We(),KW=ge(),gIe=Oe(),vIe=function(){var r=!1,e=/[ac]/;return e.exec=function(){return r=!0,/./.exec.apply(this,arguments)},e.test("abc")===!0&&r}(),mIe=/./.test;hIe({target:"RegExp",proto:!0,forced:!vIe},{test:function test(r){var e=KW(this),t=gIe(r),n=e.exec;if(!xIe(n))return zW(mIe,e,t);var i=zW(n,e,t);return i===null?!1:(KW(i),!0)}})});var JW=g(function(){"use strict";var yIe=Ao().PROPER,bIe=tr(),_Ie=ge(),QW=Oe(),wIe=z(),SIe=La(),Ow="toString",XW=RegExp.prototype,YW=XW[Ow],EIe=wIe(function(){return YW.call({source:"a",flags:"b"})!=="/a/b"}),qIe=yIe&&YW.name!==Ow;(EIe||qIe)&&bIe(XW,Ow,function(){var e=_Ie(this),t=QW(e.source),n=QW(SIe(e));return"/"+t+"/"+n},{unsafe:!0})});var ZW=g(function(){"use strict";var TIe=Ql(),AIe=j_();TIe("Set",function(r){return function(){return r(this,arguments.length?arguments[0]:void 0)}},AIe)});var eM=g(function(){"use strict";ZW()});var gn=g(function(shr,rM){"use strict";var Rw=Q(),v0=Set.prototype;rM.exports={Set:Set,add:Rw(v0.add),has:Rw(v0.has),remove:Rw(v0.delete),proto:v0}});var Ma=g(function(uhr,tM){"use strict";var OIe=gn().has;tM.exports=function(r){return OIe(r),r}});var Fa=g(function(chr,nM){"use strict";var RIe=he();nM.exports=function(r,e,t){for(var n=t?r:r.iterator,i=r.next,a,o;!(a=RIe(i,n)).done;)if(o=e(a.value),o!==void 0)return o}});var Xo=g(function(lhr,uM){"use strict";var iM=Q(),IIe=Fa(),aM=gn(),PIe=aM.Set,oM=aM.proto,CIe=iM(oM.forEach),sM=iM(oM.keys),NIe=sM(new PIe).next;uM.exports=function(r,e,t){return t?IIe({iterator:sM(r),next:NIe},e):CIe(r,e)}});var m0=g(function(fhr,lM){"use strict";var cM=gn(),kIe=Xo(),LIe=cM.Set,DIe=cM.add;lM.exports=function(r){var e=new LIe;return kIe(r,function(t){DIe(e,t)}),e}});var _u=g(function(dhr,fM){"use strict";var WIe=Al(),MIe=gn();fM.exports=WIe(MIe.proto,"size","get")||function(r){return r.size}});var Ba=g(function(phr,vM){"use strict";var dM=ke(),xM=ge(),pM=he(),FIe=Sr(),BIe=lt(),hM="Invalid size",UIe=RangeError,jIe=TypeError,$Ie=Math.max,gM=function gM(r,e){this.set=r,this.size=$Ie(e,0),this.has=dM(r.has),this.keys=dM(r.keys)};gM.prototype={getIterator:function getIterator(){return BIe(xM(pM(this.keys,this.set)))},includes:function includes(r){return pM(this.has,this.set,r)}};vM.exports=function(r){xM(r);var e=+r.size;if(e!==e)throw new jIe(hM);var t=FIe(e);if(t<0)throw new UIe(hM);return new gM(r,t)}});var _M=g(function(hhr,bM){"use strict";var VIe=Ma(),yM=gn(),GIe=m0(),zIe=_u(),KIe=Ba(),HIe=Xo(),QIe=Fa(),XIe=yM.has,mM=yM.remove;bM.exports=function(e){var t=VIe(this),n=KIe(e),i=GIe(t);return zIe(t)<=n.size?HIe(t,function(a){n.includes(a)&&mM(i,a)}):QIe(n.getIterator(),function(a){XIe(i,a)&&mM(i,a)}),i}});var Ua=g(function(xhr,EM){"use strict";var YIe=Ce(),wM=function wM(r){return{size:r,has:function has(){return!1},keys:function keys(){return{next:function next(){return{done:!0}}}}}},SM=function SM(r){return{size:r,has:function has(){return!0},keys:function keys(){throw new Error("e")}}};EM.exports=function(r,e){var t=YIe("Set");try{new t()[r](wM(0));try{return new t()[r](wM(-1)),!1}catch(i){if(!e)return!0;try{return new t()[r](SM(-1/0)),!1}catch(a){var n=new t([1,2]);return e(n[r](SM(1/0)))}}}catch(i){return!1}}});var qM=g(function(){"use strict";var JIe=C(),ZIe=_M(),ePe=z(),rPe=Ua(),tPe=!rPe("difference",function(r){return r.size===0}),nPe=tPe||ePe(function(){var r={size:1,has:function has(){return!0},keys:function keys(){var t=0;return{next:function next(){var n=t++>1;return e.has(1)&&e.clear(),{done:n,value:2}}}}},e=new Set([1,2,3,4]);return e.difference(r).size!==3});JIe({target:"Set",proto:!0,real:!0,forced:nPe},{difference:ZIe})});var OM=g(function(mhr,AM){"use strict";var iPe=Ma(),Iw=gn(),aPe=_u(),oPe=Ba(),sPe=Xo(),uPe=Fa(),cPe=Iw.Set,TM=Iw.add,lPe=Iw.has;AM.exports=function(e){var t=iPe(this),n=oPe(e),i=new cPe;return aPe(t)>n.size?uPe(n.getIterator(),function(a){lPe(t,a)&&TM(i,a)}):sPe(t,function(a){n.includes(a)&&TM(i,a)}),i}});var RM=g(function(){"use strict";var fPe=C(),dPe=z(),pPe=OM(),hPe=Ua(),xPe=!hPe("intersection",function(r){return r.size===2&&r.has(1)&&r.has(2)})||dPe(function(){return String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))!=="3,2"});fPe({target:"Set",proto:!0,real:!0,forced:xPe},{intersection:pPe})});var PM=g(function(_hr,IM){"use strict";var gPe=Ma(),vPe=gn().has,mPe=_u(),yPe=Ba(),bPe=Xo(),_Pe=Fa(),wPe=tt();IM.exports=function(e){var t=gPe(this),n=yPe(e);if(mPe(t)<=n.size)return bPe(t,function(a){if(n.includes(a))return!1},!0)!==!1;var i=n.getIterator();return _Pe(i,function(a){if(vPe(t,a))return wPe(i,"normal",!1)})!==!1}});var CM=g(function(){"use strict";var SPe=C(),EPe=PM(),qPe=Ua(),TPe=!qPe("isDisjointFrom",function(r){return!r});SPe({target:"Set",proto:!0,real:!0,forced:TPe},{isDisjointFrom:EPe})});var kM=g(function(Ehr,NM){"use strict";var APe=Ma(),OPe=_u(),RPe=Xo(),IPe=Ba();NM.exports=function(e){var t=APe(this),n=IPe(e);return OPe(t)>n.size?!1:RPe(t,function(i){if(!n.includes(i))return!1},!0)!==!1}});var LM=g(function(){"use strict";var PPe=C(),CPe=kM(),NPe=Ua(),kPe=!NPe("isSubsetOf",function(r){return r});PPe({target:"Set",proto:!0,real:!0,forced:kPe},{isSubsetOf:CPe})});var WM=g(function(Ahr,DM){"use strict";var LPe=Ma(),DPe=gn().has,WPe=_u(),MPe=Ba(),FPe=Fa(),BPe=tt();DM.exports=function(e){var t=LPe(this),n=MPe(e);if(WPe(t)<n.size)return!1;var i=n.getIterator();return FPe(i,function(a){if(!DPe(t,a))return BPe(i,"normal",!1)})!==!1}});var MM=g(function(){"use strict";var UPe=C(),jPe=WM(),$Pe=Ua(),VPe=!$Pe("isSupersetOf",function(r){return!r});UPe({target:"Set",proto:!0,real:!0,forced:VPe},{isSupersetOf:jPe})});var BM=g(function(Ihr,FM){"use strict";var GPe=Ma(),Pw=gn(),zPe=m0(),KPe=Ba(),HPe=Fa(),QPe=Pw.add,XPe=Pw.has,YPe=Pw.remove;FM.exports=function(e){var t=GPe(this),n=KPe(e).getIterator(),i=zPe(t);return HPe(n,function(a){XPe(t,a)?YPe(i,a):QPe(i,a)}),i}});var Cw=g(function(Phr,UM){"use strict";UM.exports=function(r){try{var e=new Set,t={size:0,has:function has(){return!0},keys:function keys(){return Object.defineProperty({},"next",{get:function get(){return e.clear(),e.add(4),function(){return{done:!0}}}})}},n=e[r](t);return n.size===1&&n.values().next().value===4}catch(i){return!1}}});var jM=g(function(){"use strict";var JPe=C(),ZPe=BM(),eCe=Cw(),rCe=Ua(),tCe=!rCe("symmetricDifference")||!eCe("symmetricDifference");JPe({target:"Set",proto:!0,real:!0,forced:tCe},{symmetricDifference:ZPe})});var VM=g(function(khr,$M){"use strict";var nCe=Ma(),iCe=gn().add,aCe=m0(),oCe=Ba(),sCe=Fa();$M.exports=function(e){var t=nCe(this),n=oCe(e).getIterator(),i=aCe(t);return sCe(n,function(a){iCe(i,a)}),i}});var GM=g(function(){"use strict";var uCe=C(),cCe=VM(),lCe=Cw(),fCe=Ua(),dCe=!fCe("union")||!lCe("union");uCe({target:"Set",proto:!0,real:!0,forced:dCe},{union:cCe})});var zM=g(function(){"use strict";var pCe=C(),hCe=Q(),xCe=mr(),gCe=Sr(),vCe=Oe(),mCe=z(),yCe=hCe("".charAt),bCe=mCe(function(){return"\uD842\uDFB7".at(-2)!=="\uD842"});pCe({target:"String",proto:!0,forced:bCe},{at:function at1(e){var t=vCe(xCe(this)),n=t.length,i=gCe(e),a=i>=0?i:n+i;return a<0||a>=n?void 0:yCe(t,a)}})});var Sf=g(function(Fhr,QM){"use strict";var Nw=Q(),_Ce=Sr(),wCe=Oe(),SCe=mr(),ECe=Nw("".charAt),KM=Nw("".charCodeAt),qCe=Nw("".slice),HM=function HM(r){return function(e,t){var n=wCe(SCe(e)),i=_Ce(t),a=n.length,o,s;return i<0||i>=a?r?"":void 0:(o=KM(n,i),o<55296||o>56319||i+1===a||(s=KM(n,i+1))<56320||s>57343?r?ECe(n,i):o:r?qCe(n,i,i+2):(o-55296<<10)+(s-56320)+65536)}};QM.exports={codeAt:HM(!1),charAt:HM(!0)}});var XM=g(function(){"use strict";var TCe=C(),ACe=Sf().codeAt;TCe({target:"String",proto:!0},{codePointAt:function codePointAt(e){return ACe(this,e)}})});var y0=g(function(jhr,YM){"use strict";var OCe=mf(),RCe=TypeError;YM.exports=function(r){if(OCe(r))throw new RCe("The method doesn't accept regular expressions");return r}});var b0=g(function($hr,JM){"use strict";var ICe=Ee(),PCe=ICe("match");JM.exports=function(r){var e=/./;try{"/./"[r](e)}catch(t){try{return e[PCe]=!1,"/./"[r](e)}catch(n){}}return!1}});var rF=g(function(){"use strict";var CCe=C(),NCe=ma(),kCe=Yr().f,LCe=Mt(),ZM=Oe(),DCe=y0(),WCe=mr(),MCe=b0(),FCe=Ke(),BCe=NCe("".slice),UCe=Math.min,eF=MCe("endsWith"),jCe=!FCe&&!eF&&!!function(){var r=kCe(String.prototype,"endsWith");return r&&!r.writable}();CCe({target:"String",proto:!0,forced:!jCe&&!eF},{endsWith:function endsWith(e){var t=ZM(WCe(this));DCe(e);var n=arguments.length>1?arguments[1]:void 0,i=t.length,a=n===void 0?i:UCe(LCe(n),i),o=ZM(e);return BCe(t,a-o.length,a)===o}})});var kw=g(function(){"use strict";var $Ce=C(),VCe=Q(),GCe=Jn(),zCe=RangeError,tF=String.fromCharCode,nF=String.fromCodePoint,KCe=VCe([].join),HCe=!!nF&&nF.length!==1;$Ce({target:"String",stat:!0,arity:1,forced:HCe},{fromCodePoint:function fromCodePoint(e){for(var t=[],n=arguments.length,i=0,a;n>i;){if(a=+arguments[i++],GCe(a,1114111)!==a)throw new zCe(a+" is not a valid code point");t[i]=a<65536?tF(a):tF(((a-=65536)>>10)+55296,a%1024+56320)}return KCe(t,"")}})});var aF=g(function(){"use strict";var QCe=C(),XCe=Q(),YCe=y0(),JCe=mr(),iF=Oe(),ZCe=b0(),e6e=XCe("".indexOf);QCe({target:"String",proto:!0,forced:!ZCe("includes")},{includes:function includes(e){return!!~e6e(iF(JCe(this)),iF(YCe(e)),arguments.length>1?arguments[1]:void 0)}})});var sF=g(function(){"use strict";var r6e=C(),t6e=Q(),n6e=mr(),i6e=Oe(),oF=t6e("".charCodeAt);r6e({target:"String",proto:!0},{isWellFormed:function isWellFormed(){for(var e=i6e(n6e(this)),t=e.length,n=0;n<t;n++){var i=oF(e,n);if((i&63488)===55296&&(i>=56320||++n>=t||(oF(e,n)&64512)!==56320))return!1}return!0}})});var Lw=g(function(){"use strict";var a6e=Sf().charAt,o6e=Oe(),cF=hr(),s6e=ch(),uF=Ea(),lF="String Iterator",u6e=cF.set,c6e=cF.getterFor(lF);s6e(String,"String",function(r){u6e(this,{type:lF,string:o6e(r),index:0})},function(){var e=c6e(this),t=e.string,n=e.index,i;return n>=t.length?uF(void 0,!0):(i=a6e(t,n),e.index+=i.length,uF(i,!1))})});var Ef=g(function(e0r,xF){"use strict";g0();var fF=he(),dF=tr(),l6e=x0(),pF=z(),hF=Ee(),f6e=Jr(),d6e=hF("species"),Dw=RegExp.prototype;xF.exports=function(r,e,t,n){var i=hF(r),a=!pF(function(){var c={};return c[i]=function(){return 7},""[r](c)!==7}),o=a&&!pF(function(){var c=!1,l=/a/;if(r==="split"){var f={};f[d6e]=function(){return l},l={constructor:f,flags:""},l[i]=/./[i]}return l.exec=function(){return c=!0,null},l[i](""),!c});if(!a||!o||t){var s=/./[i],u=e(i,""[r],function(c,l,f,d,p){var x=l.exec;return x===l6e||x===Dw.exec?a&&!p?{done:!0,value:fF(s,l,f,d)}:{done:!0,value:fF(c,f,l,d)}:{done:!1}});dF(String.prototype,r,u[0]),dF(Dw,i,u[1])}n&&f6e(Dw[i],"sham",!0)}});var qf=g(function(r0r,gF){"use strict";var p6e=Sf().charAt;gF.exports=function(r,e,t){return e+(t?p6e(r,e).length:1)}});var wu=g(function(t0r,mF){"use strict";var vF=he(),h6e=ge(),x6e=We(),g6e=ut(),v6e=x0(),m6e=TypeError;mF.exports=function(r,e){var t=r.exec;if(x6e(t)){var n=vF(t,r,e);return n!==null&&h6e(n),n}if(g6e(r)==="RegExp")return vF(v6e,r,e);throw new m6e("RegExp#exec called on incompatible receiver")}});var _F=g(function(){"use strict";var y6e=he(),b6e=Q(),_6e=Ef(),w6e=ge(),S6e=we(),E6e=Mt(),_0=Oe(),q6e=mr(),T6e=Xr(),A6e=qf(),O6e=La(),yF=wu(),bF=b6e("".indexOf);_6e("match",function(r,e,t){return[function(i){var a=q6e(this),o=S6e(i)?T6e(i,r):void 0;return o?y6e(o,i,a):new RegExp(i)[r](_0(a))},function(n){var i=w6e(this),a=_0(n),o=t(e,i,a);if(o.done)return o.value;var s=_0(O6e(i));if(bF(s,"g")===-1)return yF(i,a);var u=bF(s,"u")!==-1;i.lastIndex=0;for(var c=[],l=0,f;(f=yF(i,a))!==null;){var d=_0(f[0]);c[l]=d,d===""&&(i.lastIndex=A6e(a,E6e(i.lastIndex),u)),l++}return l===0?null:c}]})});var PF=g(function(){"use strict";var R6e=C(),wF=he(),qF=ma(),I6e=oh(),w0=Ea(),SF=mr(),TF=Mt(),Tf=Oe(),P6e=ge(),C6e=we(),N6e=ut(),k6e=mf(),AF=La(),L6e=Xr(),D6e=tr(),W6e=z(),M6e=Ee(),F6e=uf(),B6e=qf(),U6e=wu(),OF=hr(),Mw=Ke(),S0=M6e("matchAll"),RF="RegExp String",IF=RF+" Iterator",j6e=OF.set,$6e=OF.getterFor(IF),EF=RegExp.prototype,V6e=TypeError,Fw=qF("".indexOf),E0=qF("".matchAll),Ww=!!E0&&!W6e(function(){E0("a",/./)}),G6e=I6e(function(e,t,n,i){j6e(this,{type:IF,regexp:e,string:t,global:n,unicode:i,done:!1})},RF,function(){var e=$6e(this);if(e.done)return w0(void 0,!0);var t=e.regexp,n=e.string,i=U6e(t,n);return i===null?(e.done=!0,w0(void 0,!0)):e.global?(Tf(i[0])===""&&(t.lastIndex=B6e(n,TF(t.lastIndex),e.unicode)),w0(i,!1)):(e.done=!0,w0(i,!1))}),Bw=function Bw(r){var e=P6e(this),t=Tf(r),n=F6e(e,RegExp),i=Tf(AF(e)),a,o,s;return a=new n(n===RegExp?e.source:e,i),o=!!~Fw(i,"g"),s=!!~Fw(i,"u"),a.lastIndex=TF(e.lastIndex),new G6e(a,t,o,s)};R6e({target:"String",proto:!0,forced:Ww},{matchAll:function matchAll(e){var t=SF(this),n,i,a,o;if(C6e(e)){if(k6e(e)&&(n=Tf(SF(AF(e))),!~Fw(n,"g")))throw new V6e("`.matchAll` does not allow non-global regexes");if(Ww)return E0(t,e);if(a=L6e(e,S0),a===void 0&&Mw&&N6e(e)==="RegExp"&&(a=Bw),a)return wF(a,e,t)}else if(Ww)return E0(t,e);return i=Tf(t),o=new RegExp(e,"g"),Mw?wF(Bw,o,i):o[S0](i)}});Mw||S0 in EF||D6e(EF,S0,Bw)});var Uw=g(function(s0r,CF){"use strict";var z6e=Pn();CF.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(z6e)});var NF=g(function(){"use strict";var K6e=C(),H6e=Vl().end,Q6e=Uw();K6e({target:"String",proto:!0,forced:Q6e},{padEnd:function padEnd(e){return H6e(this,e,arguments.length>1?arguments[1]:void 0)}})});var kF=g(function(){"use strict";var X6e=C(),Y6e=Vl().start,J6e=Uw();X6e({target:"String",proto:!0,forced:J6e},{padStart:function padStart(e){return Y6e(this,e,arguments.length>1?arguments[1]:void 0)}})});var MF=g(function(){"use strict";var Z6e=C(),WF=Q(),e8e=Vr(),r8e=Ve(),LF=Oe(),t8e=nr(),DF=WF([].push),n8e=WF([].join);Z6e({target:"String",stat:!0},{raw:function raw(e){var t=e8e(r8e(e).raw),n=t8e(t);if(!n)return"";for(var i=arguments.length,a=[],o=0;;){if(DF(a,LF(t[o++])),o===n)return n8e(a,"");o<i&&DF(a,LF(arguments[o]))}}})});var FF=g(function(){"use strict";var i8e=C(),a8e=$l();i8e({target:"String",proto:!0},{repeat:a8e})});var Gw=g(function(g0r,BF){"use strict";var Vw=Q(),o8e=Ve(),s8e=Math.floor,jw=Vw("".charAt),u8e=Vw("".replace),$w=Vw("".slice),c8e=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,l8e=/\$([$&'`]|\d{1,2})/g;BF.exports=function(r,e,t,n,i,a){var o=t+r.length,s=n.length,u=l8e;return i!==void 0&&(i=o8e(i),u=c8e),u8e(a,u,function(c,l){var f;switch(jw(l,0)){case"$":return"$";case"&":return r;case"`":return $w(e,0,t);case"'":return $w(e,o);case"<":f=i[$w(l,1,-1)];break;default:var d=+l;if(d===0)return c;if(d>s){var p=s8e(d/10);return p===0?c:p<=s?n[p-1]===void 0?jw(l,1):n[p-1]+jw(l,1):c}f=n[d-1]}return f===void 0?"":f})}});var VF=g(function(){"use strict";var f8e=jt(),UF=he(),T0=Q(),d8e=Ef(),p8e=z(),h8e=ge(),x8e=We(),g8e=we(),v8e=Sr(),m8e=Mt(),Yo=Oe(),y8e=mr(),b8e=qf(),_8e=Xr(),w8e=Gw(),S8e=La(),E8e=wu(),q8e=Ee(),Kw=q8e("replace"),T8e=Math.max,A8e=Math.min,O8e=T0([].concat),zw=T0([].push),q0=T0("".indexOf),jF=T0("".slice),R8e=function R8e(r){return r===void 0?r:String(r)},I8e=function(){return"a".replace(/./,"$0")==="$0"}(),$F=function(){return/./[Kw]?/./[Kw]("a","$0")==="":!1}(),P8e=!p8e(function(){var r=/./;return r.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(r,"$<a>")!=="7"});d8e("replace",function(r,e,t){var n=$F?"$":"$0";return[function(a,o){var s=y8e(this),u=g8e(a)?_8e(a,Kw):void 0;return u?UF(u,a,s,o):UF(e,Yo(s),a,o)},function(i,a){var o=h8e(this),s=Yo(i);if(typeof a=="string"&&q0(a,n)===-1&&q0(a,"$<")===-1){var u=t(e,o,s,a);if(u.done)return u.value}var c=x8e(a);c||(a=Yo(a));var l=Yo(S8e(o)),f=q0(l,"g")!==-1,d;f&&(d=q0(l,"u")!==-1,o.lastIndex=0);for(var p=[],x;x=E8e(o,s),!(x===null||(zw(p,x),!f));){var h=Yo(x[0]);h===""&&(o.lastIndex=b8e(s,m8e(o.lastIndex),d))}for(var v="",y=0,m=0;m<p.length;m++){x=p[m];for(var b=Yo(x[0]),S=T8e(A8e(v8e(x.index),s.length),0),T=[],w,R=1;R<x.length;R++)zw(T,R8e(x[R]));var _=x.groups;if(c){var E=O8e([b],T,S,s);_!==void 0&&zw(E,_),w=Yo(f8e(a,void 0,E))}else w=w8e(b,s,S,T,_,a);S>=y&&(v+=jF(s,y,S)+w,y=S+b.length)}return v+jF(s,y)}]},!P8e||!I8e||$F)});var KF=g(function(){"use strict";var C8e=C(),N8e=he(),Qw=Q(),GF=mr(),k8e=We(),L8e=we(),D8e=mf(),Su=Oe(),W8e=Xr(),M8e=La(),F8e=Gw(),B8e=Ee(),U8e=Ke(),j8e=B8e("replace"),$8e=TypeError,Hw=Qw("".indexOf),V8e=Qw("".replace),zF=Qw("".slice),G8e=Math.max;C8e({target:"String",proto:!0},{replaceAll:function replaceAll(e,t){var n=GF(this),i,a,o,s,u,c,l,f,d,p,x=0,h="";if(L8e(e)){if(i=D8e(e),i&&(a=Su(GF(M8e(e))),!~Hw(a,"g")))throw new $8e("`.replaceAll` does not allow non-global regexes");if(o=W8e(e,j8e),o)return N8e(o,e,n,t);if(U8e&&i)return V8e(Su(n),e,t)}for(s=Su(n),u=Su(e),c=k8e(t),c||(t=Su(t)),l=u.length,f=G8e(1,l),d=Hw(s,u);d!==-1;)p=c?Su(t(u,d,s)):F8e(u,s,d,[],void 0,t),h+=zF(s,x,d)+p,x=d+l,d=d+f>s.length?-1:Hw(s,u,d+f);return x<s.length&&(h+=zF(s,x)),h}})});var XF=g(function(){"use strict";var z8e=he(),K8e=Ef(),H8e=ge(),Q8e=we(),X8e=mr(),HF=x1(),QF=Oe(),Y8e=Xr(),J8e=wu();K8e("search",function(r,e,t){return[function(i){var a=X8e(this),o=Q8e(i)?Y8e(i,r):void 0;return o?z8e(o,i,a):new RegExp(i)[r](QF(a))},function(n){var i=H8e(this),a=QF(n),o=t(e,i,a);if(o.done)return o.value;var s=i.lastIndex;HF(s,0)||(i.lastIndex=0);var u=J8e(i,a);return HF(i.lastIndex,s)||(i.lastIndex=s),u===null?-1:u.index}]})});var rB=g(function(){"use strict";var Xw=he(),eB=Q(),Z8e=Ef(),eNe=ge(),rNe=we(),tNe=mr(),nNe=uf(),iNe=qf(),aNe=Mt(),YF=Oe(),oNe=Xr(),JF=wu(),sNe=yf(),uNe=z(),Eu=sNe.UNSUPPORTED_Y,cNe=0xffffffff,lNe=Math.min,Yw=eB([].push),Jw=eB("".slice),fNe=!uNe(function(){var r=/(?:)/,e=r.exec;r.exec=function(){return e.apply(this,arguments)};var t="ab".split(r);return t.length!==2||t[0]!=="a"||t[1]!=="b"}),ZF="abbc".split(/(b)*/)[1]==="c"||"test".split(/(?:)/,-1).length!==4||"ab".split(/(?:ab)*/).length!==2||".".split(/(.?)(.?)/).length!==4||".".split(/()()/).length>1||"".split(/.?/).length;Z8e("split",function(r,e,t){var n="0".split(void 0,0).length?function n(i,a){return i===void 0&&a===0?[]:Xw(e,this,i,a)}:e;return[function(a,o){var s=tNe(this),u=rNe(a)?oNe(a,r):void 0;return u?Xw(u,a,s,o):Xw(n,YF(s),a,o)},function(i,a){var o=eNe(this),s=YF(i);if(!ZF){var u=t(n,o,s,a,n!==e);if(u.done)return u.value}var c=nNe(o,RegExp),l=o.unicode,f=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(Eu?"g":"y"),d=new c(Eu?"^(?:"+o.source+")":o,f),p=a===void 0?cNe:a>>>0;if(p===0)return[];if(s.length===0)return JF(d,s)===null?[s]:[];for(var x=0,h=0,v=[];h<s.length;){d.lastIndex=Eu?0:h;var y=JF(d,Eu?Jw(s,h):s),m;if(y===null||(m=lNe(aNe(d.lastIndex+(Eu?h:0)),s.length))===x)h=iNe(s,h,l);else{if(Yw(v,Jw(s,x,h)),v.length===p)return v;for(var b=1;b<=y.length-1;b++)if(Yw(v,y[b]),v.length===p)return v;h=x=m}}return Yw(v,Jw(s,x)),v}]},ZF||!fNe,Eu)});var iB=g(function(){"use strict";var dNe=C(),pNe=ma(),hNe=Yr().f,xNe=Mt(),tB=Oe(),gNe=y0(),vNe=mr(),mNe=b0(),yNe=Ke(),bNe=pNe("".slice),_Ne=Math.min,nB=mNe("startsWith"),wNe=!yNe&&!nB&&!!function(){var r=hNe(String.prototype,"startsWith");return r&&!r.writable}();dNe({target:"String",proto:!0,forced:!wNe&&!nB},{startsWith:function startsWith(e){var t=tB(vNe(this));gNe(e);var n=xNe(_Ne(arguments.length>1?arguments[1]:void 0,t.length)),i=tB(e);return bNe(t,n,n+i.length)===i}})});var oB=g(function(){"use strict";var SNe=C(),ENe=Q(),qNe=mr(),aB=Sr(),TNe=Oe(),ANe=ENe("".slice),ONe=Math.max,RNe=Math.min,INe=!"".substr||"ab".substr(-1)!=="b";SNe({target:"String",proto:!0,forced:INe},{substr:function substr(e,t){var n=TNe(qNe(this)),i=n.length,a=aB(e),o,s;return a===1/0&&(a=0),a<0&&(a=ONe(i+a,0)),o=t===void 0?i:aB(t),o<=0||o===1/0?"":(s=RNe(a+o,i),a>=s?"":ANe(n,a,s))}})});var lB=g(function(){"use strict";var PNe=C(),cB=he(),rS=Q(),CNe=mr(),NNe=Oe(),kNe=z(),LNe=Array,Zw=rS("".charAt),sB=rS("".charCodeAt),DNe=rS([].join),eS="".toWellFormed,WNe="<22>",uB=eS&&kNe(function(){return cB(eS,1)!=="1"});PNe({target:"String",proto:!0,forced:uB},{toWellFormed:function toWellFormed(){var e=NNe(CNe(this));if(uB)return cB(eS,e);for(var t=e.length,n=LNe(t),i=0;i<t;i++){var a=sB(e,i);(a&63488)!==55296?n[i]=Zw(e,i):a>=56320||i+1>=t||(sB(e,i+1)&64512)!==56320?n[i]=WNe:(n[i]=Zw(e,i),n[++i]=Zw(e,i))}return DNe(n,"")}})});var A0=g(function(P0r,pB){"use strict";var MNe=Ao().PROPER,FNe=z(),fB=ou(),dB="\x85";pB.exports=function(r){return FNe(function(){return!!fB[r]()||dB[r]()!==dB||MNe&&fB[r].name!==r})}});var hB=g(function(){"use strict";var BNe=C(),UNe=Vo().trim,jNe=A0();BNe({target:"String",proto:!0,forced:jNe("trim")},{trim:function trim(){return UNe(this)}})});var tS=g(function(k0r,xB){"use strict";var $Ne=Vo().end,VNe=A0();xB.exports=VNe("trimEnd")?function(){return $Ne(this)}:"".trimEnd});var vB=g(function(){"use strict";var GNe=C(),gB=tS();GNe({target:"String",proto:!0,name:"trimEnd",forced:"".trimRight!==gB},{trimRight:gB})});var yB=g(function(){"use strict";vB();var zNe=C(),mB=tS();zNe({target:"String",proto:!0,name:"trimEnd",forced:"".trimEnd!==mB},{trimEnd:mB})});var nS=g(function(F0r,bB){"use strict";var KNe=Vo().start,HNe=A0();bB.exports=HNe("trimStart")?function(){return KNe(this)}:"".trimStart});var wB=g(function(){"use strict";var QNe=C(),_B=nS();QNe({target:"String",proto:!0,name:"trimStart",forced:"".trimLeft!==_B},{trimLeft:_B})});var EB=g(function(){"use strict";wB();var XNe=C(),SB=nS();XNe({target:"String",proto:!0,name:"trimStart",forced:"".trimStart!==SB},{trimStart:SB})});var Gt=g(function(V0r,TB){"use strict";var YNe=Q(),JNe=mr(),qB=Oe(),ZNe=/"/g,e7e=YNe("".replace);TB.exports=function(r,e,t,n){var i=qB(JNe(r)),a="<"+e;return t!==""&&(a+=" "+t+'="'+e7e(qB(n),ZNe,"&quot;")+'"'),a+">"+i+"</"+e+">"}});var zt=g(function(G0r,AB){"use strict";var r7e=z();AB.exports=function(r){return r7e(function(){var e=""[r]('"');return e!==e.toLowerCase()||e.split('"').length>3})}});var OB=g(function(){"use strict";var t7e=C(),n7e=Gt(),i7e=zt();t7e({target:"String",proto:!0,forced:i7e("anchor")},{anchor:function anchor(e){return n7e(this,"a","name",e)}})});var RB=g(function(){"use strict";var a7e=C(),o7e=Gt(),s7e=zt();a7e({target:"String",proto:!0,forced:s7e("big")},{big:function big(){return o7e(this,"big","","")}})});var IB=g(function(){"use strict";var u7e=C(),c7e=Gt(),l7e=zt();u7e({target:"String",proto:!0,forced:l7e("blink")},{blink:function blink(){return c7e(this,"blink","","")}})});var PB=g(function(){"use strict";var f7e=C(),d7e=Gt(),p7e=zt();f7e({target:"String",proto:!0,forced:p7e("bold")},{bold:function bold(){return d7e(this,"b","","")}})});var CB=g(function(){"use strict";var h7e=C(),x7e=Gt(),g7e=zt();h7e({target:"String",proto:!0,forced:g7e("fixed")},{fixed:function fixed(){return x7e(this,"tt","","")}})});var NB=g(function(){"use strict";var v7e=C(),m7e=Gt(),y7e=zt();v7e({target:"String",proto:!0,forced:y7e("fontcolor")},{fontcolor:function fontcolor(e){return m7e(this,"font","color",e)}})});var kB=g(function(){"use strict";var b7e=C(),_7e=Gt(),w7e=zt();b7e({target:"String",proto:!0,forced:w7e("fontsize")},{fontsize:function fontsize(e){return _7e(this,"font","size",e)}})});var LB=g(function(){"use strict";var S7e=C(),E7e=Gt(),q7e=zt();S7e({target:"String",proto:!0,forced:q7e("italics")},{italics:function italics(){return E7e(this,"i","","")}})});var DB=g(function(){"use strict";var T7e=C(),A7e=Gt(),O7e=zt();T7e({target:"String",proto:!0,forced:O7e("link")},{link:function link(e){return A7e(this,"a","href",e)}})});var WB=g(function(){"use strict";var R7e=C(),I7e=Gt(),P7e=zt();R7e({target:"String",proto:!0,forced:P7e("small")},{small:function small(){return I7e(this,"small","","")}})});var MB=g(function(){"use strict";var C7e=C(),N7e=Gt(),k7e=zt();C7e({target:"String",proto:!0,forced:k7e("strike")},{strike:function strike(){return N7e(this,"strike","","")}})});var FB=g(function(){"use strict";var L7e=C(),D7e=Gt(),W7e=zt();L7e({target:"String",proto:!0,forced:W7e("sub")},{sub:function sub(){return D7e(this,"sub","","")}})});var BB=g(function(){"use strict";var M7e=C(),F7e=Gt(),B7e=zt();M7e({target:"String",proto:!0,forced:B7e("sup")},{sup:function sup(){return F7e(this,"sup","","")}})});var O0=g(function(mxr,jB){"use strict";var UB=ne(),iS=z(),U7e=Pl(),j7e=Me().NATIVE_ARRAY_BUFFER_VIEWS,$7e=UB.ArrayBuffer,Jo=UB.Int8Array;jB.exports=!j7e||!iS(function(){Jo(1)})||!iS(function(){new Jo(-1)})||!U7e(function(r){new Jo,new Jo(null),new Jo(1.5),new Jo(r)},!0)||iS(function(){return new Jo(new $7e(2),1,void 0).length!==1})});var aS=g(function(yxr,$B){"use strict";var V7e=Lh(),G7e=RangeError;$B.exports=function(r,e){var t=V7e(r);if(t%e)throw new G7e("Wrong offset");return t}});var GB=g(function(bxr,VB){"use strict";var z7e=Math.round;VB.exports=function(r){var e=z7e(r);return e<0?0:e>255?255:e&255}});var oS=g(function(_xr,zB){"use strict";var K7e=Ft();zB.exports=function(r){var e=K7e(r);return e==="BigInt64Array"||e==="BigUint64Array"}});var R0=g(function(wxr,KB){"use strict";var H7e=dl(),Q7e=TypeError;KB.exports=function(r){var e=H7e(r,"number");if(typeof e=="number")throw new Q7e("Can't convert number to bigint");return BigInt(e)}});var sS=g(function(Sxr,HB){"use strict";var X7e=Bt(),Y7e=he(),J7e=Qh(),Z7e=Ve(),eke=nr(),rke=Do(),tke=Ii(),nke=Xp(),ike=oS(),ake=Me().aTypedArrayConstructor,oke=R0();HB.exports=function(e){var t=J7e(this),n=Z7e(e),i=arguments.length,a=i>1?arguments[1]:void 0,o=a!==void 0,s=tke(n),u,c,l,f,d,p,x,h;if(s&&!nke(s))for(x=rke(n,s),h=x.next,n=[];!(p=Y7e(h,x)).done;)n.push(p.value);for(o&&i>2&&(a=X7e(a,arguments[2])),c=eke(n),l=new(ake(t))(c),f=ike(l),u=0;c>u;u++)d=o?a(n[u],u):n[u],l[u]=f?oke(d):+d;return l}});var ci=g(function(Exr,hS){"use strict";var QB=C(),oU=ne(),XB=he(),ske=ye(),uke=O0(),If=Me(),sU=jl(),YB=$t(),cke=Wt(),Af=Jr(),lke=zh(),fke=Mt(),JB=Fl(),uS=aS(),dke=GB(),uU=Ai(),Of=Ne(),pke=Ft(),fS=we(),hke=ha(),xke=Zr(),gke=mt(),I0=hn(),vke=va().f,ZB=sS(),mke=et().forEach,yke=Bo(),bke=Ir(),cU=pr(),lU=Yr(),eU=Ys(),xS=hr(),_ke=wa(),dS=xS.get,wke=xS.set,Ske=xS.enforce,fU=cU.f,Eke=lU.f,cS=oU.RangeError,dU=sU.ArrayBuffer,qke=dU.prototype,Tke=sU.DataView,P0=If.NATIVE_ARRAY_BUFFER_VIEWS,rU=If.TYPED_ARRAY_TAG,tU=If.TypedArray,Rf=If.TypedArrayPrototype,pS=If.isTypedArray,C0="BYTES_PER_ELEMENT",lS="Wrong length",N0=function N0(r,e){bke(r,e,{configurable:!0,get:function get(){return dS(this)[e]}})},nU=function nU(r){var e;return gke(qke,r)||(e=pke(r))==="ArrayBuffer"||e==="SharedArrayBuffer"},pU=function pU(r,e){return pS(r)&&!hke(e)&&e in r&&lke(+e)&&e>=0},iU=function iU(e,t){return t=uU(t),pU(e,t)?cke(2,e[t]):Eke(e,t)},aU=function aU(e,t,n){return t=uU(t),pU(e,t)&&fS(n)&&Of(n,"value")&&!Of(n,"get")&&!Of(n,"set")&&!n.configurable&&(!Of(n,"writable")||n.writable)&&(!Of(n,"enumerable")||n.enumerable)?(e[t]=n.value,e):fU(e,t,n)};ske?(P0||(lU.f=iU,cU.f=aU,N0(Rf,"buffer"),N0(Rf,"byteOffset"),N0(Rf,"byteLength"),N0(Rf,"length")),QB({target:"Object",stat:!0,forced:!P0},{getOwnPropertyDescriptor:iU,defineProperty:aU}),hS.exports=function(r,e,t){var n=r.match(/\d+/)[0]/8,i=r+(t?"Clamped":"")+"Array",a="get"+r,o="set"+r,s=oU[i],u=s,c=u&&u.prototype,l={},f=function f(h,v){var y=dS(h);return y.view[a](v*n+y.byteOffset,!0)},d=function d(h,v,y){var m=dS(h);m.view[o](v*n+m.byteOffset,t?dke(y):y,!0)},p=function p(h,v){fU(h,v,{get:function get(){return f(this,v)},set:function set(y){return d(this,v,y)},enumerable:!0})};P0?uke&&(u=e(function(h,v,y,m){return YB(h,c),_ke(function(){return fS(v)?nU(v)?m!==void 0?new s(v,uS(y,n),m):y!==void 0?new s(v,uS(y,n)):new s(v):pS(v)?eU(u,v):XB(ZB,u,v):new s(JB(v))}(),h,u)}),I0&&I0(u,tU),mke(vke(s),function(h){h in u||Af(u,h,s[h])}),u.prototype=c):(u=e(function(h,v,y,m){YB(h,c);var b=0,S=0,T,w,R;if(!fS(v))R=JB(v),w=R*n,T=new dU(w);else if(nU(v)){T=v,S=uS(y,n);var _=v.byteLength;if(m===void 0){if(_%n)throw new cS(lS);if(w=_-S,w<0)throw new cS(lS)}else if(w=fke(m)*n,w+S>_)throw new cS(lS);R=w/n}else return pS(v)?eU(u,v):XB(ZB,u,v);for(wke(h,{buffer:T,byteOffset:S,byteLength:w,length:R,view:new Tke(T)});b<R;)p(h,b++)}),I0&&I0(u,tU),c=u.prototype=xke(Rf)),c.constructor!==u&&Af(c,"constructor",u),Ske(c).TypedArrayConstructor=u,rU&&Af(c,rU,i);var x=u!==s;l[i]=u,QB({global:!0,constructor:!0,forced:x,sham:!P0},l),C0 in u||Af(u,C0,n),C0 in c||Af(c,C0,n),yke(i)}):hS.exports=function(){}});var hU=g(function(){"use strict";var Ake=ci();Ake("Float32",function(r){return function(t,n,i){return r(this,t,n,i)}})});var xU=g(function(){"use strict";var Oke=ci();Oke("Float64",function(r){return function(t,n,i){return r(this,t,n,i)}})});var gU=g(function(){"use strict";var Rke=ci();Rke("Int8",function(r){return function(t,n,i){return r(this,t,n,i)}})});var vU=g(function(){"use strict";var Ike=ci();Ike("Int16",function(r){return function(t,n,i){return r(this,t,n,i)}})});var mU=g(function(){"use strict";var Pke=ci();Pke("Int32",function(r){return function(t,n,i){return r(this,t,n,i)}})});var yU=g(function(){"use strict";var Cke=ci();Cke("Uint8",function(r){return function(t,n,i){return r(this,t,n,i)}})});var bU=g(function(){"use strict";var Nke=ci();Nke("Uint8",function(r){return function(t,n,i){return r(this,t,n,i)}},!0)});var _U=g(function(){"use strict";var kke=ci();kke("Uint16",function(r){return function(t,n,i){return r(this,t,n,i)}})});var wU=g(function(){"use strict";var Lke=ci();Lke("Uint32",function(r){return function(t,n,i){return r(this,t,n,i)}})});var EU=g(function(){"use strict";var SU=Me(),Dke=nr(),Wke=Sr(),Mke=SU.aTypedArray,Fke=SU.exportTypedArrayMethod;Fke("at",function(e){var t=Mke(this),n=Dke(t),i=Wke(e),a=i>=0?i:n+i;return a<0||a>=n?void 0:t[a]})});var TU=g(function(){"use strict";var Bke=Q(),qU=Me(),Uke=Ly(),jke=Bke(Uke),$ke=qU.aTypedArray,Vke=qU.exportTypedArrayMethod;Vke("copyWithin",function(e,t){return jke($ke(this),e,t,arguments.length>2?arguments[2]:void 0)})});var OU=g(function(){"use strict";var AU=Me(),Gke=et().every,zke=AU.aTypedArray,Kke=AU.exportTypedArrayMethod;Kke("every",function(e){return Gke(zke(this),e,arguments.length>1?arguments[1]:void 0)})});var IU=g(function(){"use strict";var RU=Me(),Hke=ih(),Qke=R0(),Xke=Ft(),Yke=he(),Jke=Q(),Zke=z(),eLe=RU.aTypedArray,rLe=RU.exportTypedArrayMethod,tLe=Jke("".slice),nLe=Zke(function(){var r=0;return new Int8Array(2).fill({valueOf:function valueOf(){return r++}}),r!==1});rLe("fill",function(e){var t=arguments.length;eLe(this);var n=tLe(Xke(this),0,3)==="Big"?Qke(e):+e;return Yke(Hke,this,n,t>1?arguments[1]:void 0,t>2?arguments[2]:void 0)},nLe)});var CU=g(function(Yxr,PU){"use strict";var iLe=Ys(),aLe=Me().getTypedArrayConstructor;PU.exports=function(r,e){return iLe(aLe(r),e)}});var kU=g(function(){"use strict";var NU=Me(),oLe=et().filter,sLe=CU(),uLe=NU.aTypedArray,cLe=NU.exportTypedArrayMethod;cLe("filter",function(e){var t=oLe(uLe(this),e,arguments.length>1?arguments[1]:void 0);return sLe(this,t)})});var DU=g(function(){"use strict";var LU=Me(),lLe=et().find,fLe=LU.aTypedArray,dLe=LU.exportTypedArrayMethod;dLe("find",function(e){return lLe(fLe(this),e,arguments.length>1?arguments[1]:void 0)})});var MU=g(function(){"use strict";var WU=Me(),pLe=et().findIndex,hLe=WU.aTypedArray,xLe=WU.exportTypedArrayMethod;xLe("findIndex",function(e){return pLe(hLe(this),e,arguments.length>1?arguments[1]:void 0)})});var BU=g(function(){"use strict";var FU=Me(),gLe=Il().findLast,vLe=FU.aTypedArray,mLe=FU.exportTypedArrayMethod;mLe("findLast",function(e){return gLe(vLe(this),e,arguments.length>1?arguments[1]:void 0)})});var jU=g(function(){"use strict";var UU=Me(),yLe=Il().findLastIndex,bLe=UU.aTypedArray,_Le=UU.exportTypedArrayMethod;_Le("findLastIndex",function(e){return yLe(bLe(this),e,arguments.length>1?arguments[1]:void 0)})});var VU=g(function(){"use strict";var $U=Me(),wLe=et().forEach,SLe=$U.aTypedArray,ELe=$U.exportTypedArrayMethod;ELe("forEach",function(e){wLe(SLe(this),e,arguments.length>1?arguments[1]:void 0)})});var GU=g(function(){"use strict";var qLe=O0(),TLe=Me().exportTypedArrayStaticMethod,ALe=sS();TLe("from",ALe,qLe)});var KU=g(function(){"use strict";var zU=Me(),OLe=Bs().includes,RLe=zU.aTypedArray,ILe=zU.exportTypedArrayMethod;ILe("includes",function(e){return OLe(RLe(this),e,arguments.length>1?arguments[1]:void 0)})});var QU=g(function(){"use strict";var HU=Me(),PLe=Bs().indexOf,CLe=HU.aTypedArray,NLe=HU.exportTypedArrayMethod;NLe("indexOf",function(e){return PLe(CLe(this),e,arguments.length>1?arguments[1]:void 0)})});var ej=g(function(){"use strict";var kLe=ne(),LLe=z(),gS=Q(),YU=Me(),vS=kl(),DLe=Ee(),mS=DLe("iterator"),XU=kLe.Uint8Array,WLe=gS(vS.values),MLe=gS(vS.keys),FLe=gS(vS.entries),yS=YU.aTypedArray,k0=YU.exportTypedArrayMethod,qu=XU&&XU.prototype,L0=!LLe(function(){qu[mS].call([1])}),JU=!!qu&&qu.values&&qu[mS]===qu.values&&qu.values.name==="values",ZU=function ZU(){return WLe(yS(this))};k0("entries",function(){return FLe(yS(this))},L0);k0("keys",function(){return MLe(yS(this))},L0);k0("values",ZU,L0||!JU,{name:"values"});k0(mS,ZU,L0||!JU,{name:"values"})});var tj=g(function(){"use strict";var rj=Me(),BLe=Q(),ULe=rj.aTypedArray,jLe=rj.exportTypedArrayMethod,$Le=BLe([].join);jLe("join",function(e){return $Le(ULe(this),e)})});var ij=g(function(){"use strict";var nj=Me(),VLe=jt(),GLe=Qy(),zLe=nj.aTypedArray,KLe=nj.exportTypedArrayMethod;KLe("lastIndexOf",function(e){var t=arguments.length;return VLe(GLe,zLe(this),t>1?[e,arguments[1]]:[e])})});var aj=g(function(){"use strict";var bS=Me(),HLe=et().map,QLe=bS.aTypedArray,XLe=bS.getTypedArrayConstructor,YLe=bS.exportTypedArrayMethod;YLe("map",function(e){return HLe(QLe(this),e,arguments.length>1?arguments[1]:void 0,function(t,n){return new(XLe(t))(n)})})});var sj=g(function(){"use strict";var oj=Me(),JLe=O0(),ZLe=oj.aTypedArrayConstructor,eDe=oj.exportTypedArrayStaticMethod;eDe("of",function(){for(var e=0,t=arguments.length,n=new(ZLe(this))(t);t>e;)n[e]=arguments[e++];return n},JLe)});var cj=g(function(){"use strict";var uj=Me(),rDe=Ll().left,tDe=uj.aTypedArray,nDe=uj.exportTypedArrayMethod;nDe("reduce",function(e){var t=arguments.length;return rDe(tDe(this),e,t,t>1?arguments[1]:void 0)})});var fj=g(function(){"use strict";var lj=Me(),iDe=Ll().right,aDe=lj.aTypedArray,oDe=lj.exportTypedArrayMethod;oDe("reduceRight",function(e){var t=arguments.length;return iDe(aDe(this),e,t,t>1?arguments[1]:void 0)})});var pj=g(function(){"use strict";var dj=Me(),sDe=dj.aTypedArray,uDe=dj.exportTypedArrayMethod,cDe=Math.floor;uDe("reverse",function(){for(var e=this,t=sDe(e).length,n=cDe(t/2),i=0,a;i<n;)a=e[i],e[i++]=e[--t],e[t]=a;return e})});var yj=g(function(){"use strict";var xj=ne(),gj=he(),SS=Me(),lDe=nr(),fDe=aS(),dDe=Ve(),vj=z(),pDe=xj.RangeError,_S=xj.Int8Array,hj=_S&&_S.prototype,mj=hj&&hj.set,hDe=SS.aTypedArray,xDe=SS.exportTypedArrayMethod,wS=!vj(function(){var r=new Uint8ClampedArray(2);return gj(mj,r,{length:1,0:3},1),r[1]!==3}),gDe=wS&&SS.NATIVE_ARRAY_BUFFER_VIEWS&&vj(function(){var r=new _S(2);return r.set(1),r.set("2",1),r[0]!==0||r[1]!==2});xDe("set",function(e){hDe(this);var t=fDe(arguments.length>1?arguments[1]:void 0,1),n=dDe(e);if(wS)return gj(mj,this,n,t);var i=this.length,a=lDe(n),o=0;if(a+t>i)throw new pDe("Wrong length");for(;o<a;)this[t+o]=n[o++]},!wS||gDe)});var bj=g(function(){"use strict";var ES=Me(),vDe=z(),mDe=Zt(),yDe=ES.aTypedArray,bDe=ES.getTypedArrayConstructor,_De=ES.exportTypedArrayMethod,wDe=vDe(function(){new Int8Array(1).slice()});_De("slice",function(e,t){for(var n=mDe(yDe(this),e,t),i=bDe(this),a=0,o=n.length,s=new i(o);o>a;)s[a]=n[a++];return s},wDe)});var wj=g(function(){"use strict";var _j=Me(),SDe=et().some,EDe=_j.aTypedArray,qDe=_j.exportTypedArrayMethod;qDe("some",function(e){return SDe(EDe(this),e,arguments.length>1?arguments[1]:void 0)})});var Oj=g(function(){"use strict";var TDe=ne(),ADe=ma(),qS=z(),ODe=ke(),RDe=ph(),Aj=Me(),Sj=Jy(),IDe=Zy(),Ej=Nn(),qj=hh(),PDe=Aj.aTypedArray,CDe=Aj.exportTypedArrayMethod,Pf=TDe.Uint16Array,Tu=Pf&&ADe(Pf.prototype.sort),NDe=!!Tu&&!(qS(function(){Tu(new Pf(2),null)})&&qS(function(){Tu(new Pf(2),{})})),Tj=!!Tu&&!qS(function(){if(Ej)return Ej<74;if(Sj)return Sj<67;if(IDe)return!0;if(qj)return qj<602;var r=new Pf(516),e=Array(516),t,n;for(t=0;t<516;t++)n=t%4,r[t]=515-t,e[t]=t-2*n+3;for(Tu(r,function(i,a){return(i/4|0)-(a/4|0)}),t=0;t<516;t++)if(r[t]!==e[t])return!0}),kDe=function kDe(r){return function(e,t){return r!==void 0?+r(e,t)||0:t!==t?-1:e!==e?1:e===0&&t===0?1/e>0&&1/t<0?1:-1:e>t}};CDe("sort",function(e){return e!==void 0&&ODe(e),Tj?Tu(this,e):RDe(PDe(this),kDe(e))},!Tj||NDe)});var Ij=g(function(){"use strict";var TS=Me(),LDe=Mt(),Rj=Jn(),DDe=TS.aTypedArray,WDe=TS.getTypedArrayConstructor,MDe=TS.exportTypedArrayMethod;MDe("subarray",function(e,t){var n=DDe(this),i=n.length,a=Rj(e,i),o=WDe(n);return new o(n.buffer,n.byteOffset+a*n.BYTES_PER_ELEMENT,LDe((t===void 0?i:Rj(t,i))-a))})});var Lj=g(function(){"use strict";var FDe=ne(),BDe=jt(),Nj=Me(),AS=z(),Pj=Zt(),D0=FDe.Int8Array,Cj=Nj.aTypedArray,UDe=Nj.exportTypedArrayMethod,kj=[].toLocaleString,jDe=!!D0&&AS(function(){kj.call(new D0(1))}),$De=AS(function(){return[1,2].toLocaleString()!==new D0([1,2]).toLocaleString()})||!AS(function(){D0.prototype.toLocaleString.call([1,2])});UDe("toLocaleString",function(){return BDe(kj,jDe?Pj(Cj(this)):Cj(this),Pj(arguments))},$De)});var Dj=g(function(){"use strict";var VDe=tb(),OS=Me(),GDe=OS.aTypedArray,zDe=OS.exportTypedArrayMethod,KDe=OS.getTypedArrayConstructor;zDe("toReversed",function(){return VDe(GDe(this),KDe(this))})});var Wj=g(function(){"use strict";var W0=Me(),HDe=Q(),QDe=ke(),XDe=Ys(),YDe=W0.aTypedArray,JDe=W0.getTypedArrayConstructor,ZDe=W0.exportTypedArrayMethod,e9e=HDe(W0.TypedArrayPrototype.sort);ZDe("toSorted",function(e){e!==void 0&&QDe(e);var t=YDe(this),n=XDe(JDe(t),t);return e9e(n,e)})});var Fj=g(function(){"use strict";var r9e=Me().exportTypedArrayMethod,t9e=z(),n9e=ne(),i9e=Q(),Mj=n9e.Uint8Array,a9e=Mj&&Mj.prototype||{},M0=[].toString,o9e=i9e([].join);t9e(function(){M0.call({})})&&(M0=function M0(){return o9e(this)});var s9e=a9e.toString!==M0;r9e("toString",M0,s9e)});var Uj=g(function(){"use strict";var u9e=ib(),RS=Me(),c9e=oS(),l9e=Sr(),f9e=R0(),d9e=RS.aTypedArray,p9e=RS.getTypedArrayConstructor,h9e=RS.exportTypedArrayMethod,Bj=function(){try{new Int8Array(1).with(2,{valueOf:function valueOf(){throw 8}})}catch(r){return r===8}}(),x9e=Bj&&function(){try{new Int8Array(1).with(-.5,1)}catch(r){return!0}}();h9e("with",function(r,e){var t=d9e(this),n=l9e(r),i=c9e(t)?f9e(e):+e;return u9e(t,p9e(t),n,i)},!Bj||x9e)});var IS=g(function(Jgr,jj){"use strict";var g9e=we(),v9e=String,m9e=TypeError;jj.exports=function(r){if(r===void 0||g9e(r))return r;throw new m9e(v9e(r)+" is not an object or undefined")}});var Cf=g(function(Zgr,Kj){"use strict";var zj="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",$j=zj+"+/",Vj=zj+"-_",Gj=function Gj(r){for(var e={},t=0;t<64;t++)e[r.charAt(t)]=t;return e};Kj.exports={i2c:$j,c2i:Gj($j),i2cUrl:Vj,c2iUrl:Gj(Vj)}});var PS=g(function(evr,Hj){"use strict";var y9e=TypeError;Hj.exports=function(r){var e=r&&r.alphabet;if(e===void 0||e==="base64"||e==="base64url")return e||"base64";throw new y9e("Incorrect `alphabet` option")}});var LS=g(function(rvr,Yj){"use strict";var Qj=ne(),b9e=Q(),_9e=IS(),w9e=_f(),S9e=Ne(),Xj=Cf(),E9e=PS(),q9e=nu(),T9e=Xj.c2i,A9e=Xj.c2iUrl,ja=Qj.SyntaxError,O9e=Qj.TypeError,Zo=b9e("".charAt),CS=function CS(r,e){for(var t=r.length;e<t;e++){var n=Zo(r,e);if(n!==" "&&n!==" "&&n!=="\n"&&n!=="\f"&&n!=="\r")break}return e},NS=function NS(r,e,t){var n=r.length;n<4&&(r+=n===2?"AA":"A");var i=(e[Zo(r,0)]<<18)+(e[Zo(r,1)]<<12)+(e[Zo(r,2)]<<6)+e[Zo(r,3)],a=[i>>16&255,i>>8&255,i&255];if(n===2){if(t&&a[1]!==0)throw new ja("Extra bits");return[a[0]]}if(n===3){if(t&&a[2]!==0)throw new ja("Extra bits");return[a[0],a[1]]}return a},kS=function kS(r,e,t){for(var n=e.length,i=0;i<n;i++)r[t+i]=e[i];return t+n};Yj.exports=function(r,e,t,n){w9e(r),_9e(e);var i=E9e(e)==="base64"?T9e:A9e,a=e?e.lastChunkHandling:void 0;if(a===void 0&&(a="loose"),a!=="loose"&&a!=="strict"&&a!=="stop-before-partial")throw new O9e("Incorrect `lastChunkHandling` option");t&&q9e(t.buffer);var o=r.length,s=t||[],u=0,c=0,l="",f=0;if(n)for(;;){if(f=CS(r,f),f===o){if(l.length>0){if(a==="stop-before-partial")break;if(a==="loose"){if(l.length===1)throw new ja("Malformed padding: exactly one additional character");u=kS(s,NS(l,i,!1),u)}else throw new ja("Missing padding")}c=o;break}var d=Zo(r,f);if(++f,d==="="){if(l.length<2)throw new ja("Padding is too early");if(f=CS(r,f),l.length===2){if(f===o){if(a==="stop-before-partial")break;throw new ja("Malformed padding: only one =")}Zo(r,f)==="="&&(++f,f=CS(r,f))}if(f<o)throw new ja("Unexpected character after padding");u=kS(s,NS(l,i,a==="strict"),u),c=o;break}if(!S9e(i,d))throw new ja("Unexpected character");var p=n-u;if(p===1&&l.length===2||p===2&&l.length===3||(l+=d,l.length===4&&(u=kS(s,NS(l,i,!1),u),l="",c=f,u===n)))break}return{bytes:s,read:c,written:u}}});var Jj=g(function(){"use strict";var R9e=C(),I9e=ne(),P9e=Ys(),C9e=LS(),Au=I9e.Uint8Array,N9e=!Au||!Au.fromBase64||!function(){try{Au.fromBase64("a");return}catch(r){}try{Au.fromBase64("",null)}catch(r){return!0}}();Au&&R9e({target:"Uint8Array",stat:!0,forced:N9e},{fromBase64:function fromBase64(e){var t=C9e(e,arguments.length>1?arguments[1]:void 0,null,0x1fffffffffffff);return P9e(Au,t.bytes)}})});var WS=g(function(ivr,t$){"use strict";var DS=ne(),e$=Q(),k9e=DS.Uint8Array,Zj=DS.SyntaxError,L9e=DS.parseInt,D9e=Math.min,r$=/[^\da-f]/i,W9e=e$(r$.exec),M9e=e$("".slice);t$.exports=function(r,e){var t=r.length;if(t%2!==0)throw new Zj("String should be an even number of characters");for(var n=e?D9e(e.length,t/2):t/2,i=e||new k9e(n),a=0,o=0;o<n;){var s=M9e(r,a,a+=2);if(W9e(r$,s))throw new Zj("String should only contain hex characters");i[o++]=L9e(s,16)}return{bytes:i,read:a}}});var n$=g(function(){"use strict";var F9e=C(),B9e=ne(),U9e=_f(),j9e=WS();B9e.Uint8Array&&F9e({target:"Uint8Array",stat:!0},{fromHex:function fromHex(e){return j9e(U9e(e)).bytes}})});var Nf=g(function(svr,i$){"use strict";var $9e=Ft(),V9e=TypeError;i$.exports=function(r){if($9e(r)==="Uint8Array")return r;throw new V9e("Argument is not an Uint8Array")}});var a$=g(function(){"use strict";var G9e=C(),z9e=ne(),K9e=LS(),H9e=Nf(),F0=z9e.Uint8Array,Q9e=!F0||!F0.prototype.setFromBase64||!function(){var r=new F0([255,255,255,255,255]);try{r.setFromBase64("",null);return}catch(e){}try{r.setFromBase64("a");return}catch(e){}try{r.setFromBase64("MjYyZg===")}catch(e){return r[0]===50&&r[1]===54&&r[2]===50&&r[3]===255&&r[4]===255}}();F0&&G9e({target:"Uint8Array",proto:!0,forced:Q9e},{setFromBase64:function setFromBase64(e){H9e(this);var t=K9e(e,arguments.length>1?arguments[1]:void 0,this,this.length);return{read:t.read,written:t.written}}})});var o$=g(function(){"use strict";var X9e=C(),Y9e=ne(),J9e=_f(),Z9e=Nf(),eWe=nu(),rWe=WS();Y9e.Uint8Array&&X9e({target:"Uint8Array",proto:!0},{setFromHex:function setFromHex(e){Z9e(this),J9e(e),eWe(this.buffer);var t=rWe(e,this).read;return{read:t,written:t/2}}})});var u$=g(function(){"use strict";var tWe=C(),nWe=ne(),iWe=Q(),aWe=IS(),oWe=Nf(),sWe=nu(),s$=Cf(),uWe=PS(),cWe=s$.i2c,lWe=s$.i2cUrl,fWe=iWe("".charAt),B0=nWe.Uint8Array,dWe=!B0||!B0.prototype.toBase64||!function(){try{var r=new B0;r.toBase64(null)}catch(e){return!0}}();B0&&tWe({target:"Uint8Array",proto:!0,forced:dWe},{toBase64:function toBase64(){var e=oWe(this),t=arguments.length?aWe(arguments[0]):void 0,n=uWe(t)==="base64"?cWe:lWe,i=!!t&&!!t.omitPadding;sWe(this.buffer);for(var a="",o=0,s=e.length,u,c=function c(l){return fWe(n,u>>6*l&63)};o+2<s;o+=3)u=(e[o]<<16)+(e[o+1]<<8)+e[o+2],a+=c(3)+c(2)+c(1)+c(0);return o+2===s?(u=(e[o]<<16)+(e[o+1]<<8),a+=c(3)+c(2)+c(1)+(i?"":"=")):o+1===s&&(u=e[o]<<16,a+=c(3)+c(2)+(i?"":"==")),a}})});var c$=g(function(){"use strict";var pWe=C(),hWe=ne(),xWe=Q(),gWe=Nf(),vWe=nu(),mWe=xWe(1.1.toString),U0=hWe.Uint8Array,yWe=!U0||!U0.prototype.toHex||!function(){try{var r=new U0([255,255,255,255,255,255,255,255]);return r.toHex()==="ffffffffffffffff"}catch(e){return!1}}();U0&&pWe({target:"Uint8Array",proto:!0,forced:yWe},{toHex:function toHex(){gWe(this),vWe(this.buffer);for(var e="",t=0,n=this.length;t<n;t++){var i=mWe(this[t],16);e+=i.length===1?"0"+i:i}return e}})});var h$=g(function(){"use strict";var bWe=C(),MS=Q(),_We=Oe(),l$=String.fromCharCode,f$=MS("".charAt),d$=MS(/./.exec),p$=MS("".slice),wWe=/^[\da-f]{2}$/i,SWe=/^[\da-f]{4}$/i;bWe({global:!0},{unescape:function unescape1(e){for(var t=_We(e),n="",i=t.length,a=0,o,s;a<i;){if(o=f$(t,a++),o==="%"){if(f$(t,a)==="u"){if(s=p$(t,a+1,a+5),d$(SWe,s)){n+=l$(parseInt(s,16)),a+=5;continue}}else if(s=p$(t,a,a+2),d$(wWe,s)){n+=l$(parseInt(s,16)),a+=2;continue}}n+=o}return n}})});var US=g(function(mvr,b$){"use strict";var EWe=Q(),x$=ti(),j0=Na().getWeakData,qWe=$t(),TWe=ge(),AWe=Yn(),FS=we(),OWe=Fr(),v$=et(),g$=Ne(),m$=hr(),RWe=m$.set,IWe=m$.getterFor,PWe=v$.find,CWe=v$.findIndex,NWe=EWe([].splice),kWe=0,$0=function $0(r){return r.frozen||(r.frozen=new y$)},y$=function y$(){this.entries=[]},BS=function BS(r,e){return PWe(r.entries,function(t){return t[0]===e})};y$.prototype={get:function get(r){var e=BS(this,r);if(e)return e[1]},has:function has(r){return!!BS(this,r)},set:function set(r,e){var t=BS(this,r);t?t[1]=e:this.entries.push([r,e])},delete:function _delete(r){var e=CWe(this.entries,function(t){return t[0]===r});return~e&&NWe(this.entries,e,1),!!~e}};b$.exports={getConstructor:function getConstructor(r,e,t,n){var i=r(function(u,c){qWe(u,a),RWe(u,{type:e,id:kWe++,frozen:null}),AWe(c)||OWe(c,u[n],{that:u,AS_ENTRIES:t})}),a=i.prototype,o=IWe(e),s=function s(u,c,l){var f=o(u),d=j0(TWe(c),!0);return d===!0?$0(f).set(c,l):d[f.id]=l,u};return x$(a,{delete:function _delete(u){var c=o(this);if(!FS(u))return!1;var l=j0(u);return l===!0?$0(c).delete(u):l&&g$(l,c.id)&&delete l[c.id]},has:function has(c){var l=o(this);if(!FS(c))return!1;var f=j0(c);return f===!0?$0(l).has(c):f&&g$(f,l.id)}}),x$(a,t?{get:function get(c){var l=o(this);if(FS(c)){var f=j0(c);if(f===!0)return $0(l).get(c);if(f)return f[l.id]}},set:function set(c,l){return s(this,c,l)}}:{add:function add(c){return s(this,c,!0)}}),i}}});var O$=g(function(){"use strict";var LWe=Ca(),_$=ne(),K0=Q(),w$=ti(),DWe=Na(),WWe=Ql(),S$=US(),V0=we(),G0=hr().enforce,MWe=z(),FWe=Am(),Df=Object,BWe=Array.isArray,z0=Df.isExtensible,E$=Df.isFrozen,UWe=Df.isSealed,q$=Df.freeze,jWe=Df.seal,$We=!_$.ActiveXObject&&"ActiveXObject"in _$,kf,T$=function T$(r){return function(){return r(this,arguments.length?arguments[0]:void 0)}},A$=WWe("WeakMap",T$,S$),Ou=A$.prototype,H0=K0(Ou.set),VWe=function VWe(){return LWe&&MWe(function(){var r=q$([]);return H0(new A$,r,1),!E$(r)})};FWe&&($We?(kf=S$.getConstructor(T$,"WeakMap",!0),DWe.enable(),jS=K0(Ou.delete),Lf=K0(Ou.has),$S=K0(Ou.get),w$(Ou,{delete:function _delete(r){if(V0(r)&&!z0(r)){var e=G0(this);return e.frozen||(e.frozen=new kf),jS(this,r)||e.frozen.delete(r)}return jS(this,r)},has:function has(e){if(V0(e)&&!z0(e)){var t=G0(this);return t.frozen||(t.frozen=new kf),Lf(this,e)||t.frozen.has(e)}return Lf(this,e)},get:function get(e){if(V0(e)&&!z0(e)){var t=G0(this);return t.frozen||(t.frozen=new kf),Lf(this,e)?$S(this,e):t.frozen.get(e)}return $S(this,e)},set:function set(e,t){if(V0(e)&&!z0(e)){var n=G0(this);n.frozen||(n.frozen=new kf),Lf(this,e)?H0(this,e,t):n.frozen.set(e,t)}else H0(this,e,t);return this}})):VWe()&&w$(Ou,{set:function set(e,t){var n;return BWe(e)&&(E$(e)?n=q$:UWe(e)&&(n=jWe)),H0(this,e,t),n&&n(e),this}}));var jS,Lf,$S});var R$=g(function(){"use strict";O$()});var I$=g(function(){"use strict";var GWe=Ql(),zWe=US();GWe("WeakSet",function(r){return function(){return r(this,arguments.length?arguments[0]:void 0)}},zWe)});var P$=g(function(){"use strict";I$()});var M$=g(function(){"use strict";var KWe=C(),HWe=ne(),k$=Ce(),VS=Q(),QWe=he(),Q0=z(),XWe=Oe(),YWe=tn(),C$=Cf().c2i,L$=/[^\d+/a-z]/i,JWe=/[\t\n\f\r ]+/g,ZWe=/[=]{1,2}$/,es=k$("atob"),eMe=String.fromCharCode,rMe=VS("".charAt),N$=VS("".replace),tMe=VS(L$.exec),Ru=!!es&&!Q0(function(){return es("aGk=")!=="hi"}),D$=Ru&&Q0(function(){return es(" ")!==""}),W$=Ru&&!Q0(function(){es("a")}),nMe=Ru&&!Q0(function(){es()}),iMe=Ru&&es.length!==1,aMe=!Ru||D$||W$||nMe||iMe;KWe({global:!0,bind:!0,enumerable:!0,forced:aMe},{atob:function atob1(e){if(YWe(arguments.length,1),Ru&&!D$&&!W$)return QWe(es,HWe,e);var t=N$(XWe(e),JWe,""),n="",i=0,a=0,o,s,u;if(t.length%4===0&&(t=N$(t,ZWe,"")),o=t.length,o%4===1||tMe(L$,t))throw new(k$("DOMException"))("The string is not correctly encoded","InvalidCharacterError");for(;i<o;)s=rMe(t,i++),u=a%4?u*64+C$[s]:C$[s],a++%4&&(n+=eMe(255&u>>(-2*a&6)));return n}})});var $$=g(function(){"use strict";var oMe=C(),sMe=ne(),U$=Ce(),j$=Q(),uMe=he(),GS=z(),F$=Oe(),cMe=tn(),lMe=Cf().i2c,Iu=U$("btoa"),B$=j$("".charAt),fMe=j$("".charCodeAt),Wf=!!Iu&&!GS(function(){return Iu("hi")!=="aGk="}),dMe=Wf&&!GS(function(){Iu()}),pMe=Wf&&GS(function(){return Iu(null)!=="bnVsbA=="}),hMe=Wf&&Iu.length!==1;oMe({global:!0,bind:!0,enumerable:!0,forced:!Wf||dMe||pMe||hMe},{btoa:function btoa1(e){if(cMe(arguments.length,1),Wf)return uMe(Iu,sMe,F$(e));for(var t=F$(e),n="",i=0,a=lMe,o,s;B$(t,i)||(a="=",i%1);){if(s=fMe(t,i+=3/4),s>255)throw new(U$("DOMException"))("The string contains characters outside of the Latin1 range","InvalidCharacterError");o=o<<8|s,n+=B$(a,63&o>>8-i%1*8)}return n}})});var zS=g(function(Pvr,V$){"use strict";V$.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}});var HS=g(function(Cvr,z$){"use strict";var xMe=pl(),KS=xMe("span").classList,G$=KS&&KS.constructor&&KS.constructor.prototype;z$.exports=G$===Object.prototype?void 0:G$});var X$=g(function(){"use strict";var K$=ne(),H$=zS(),gMe=HS(),QS=Fy(),vMe=Jr(),Q$=function Q$(r){if(r&&r.forEach!==QS)try{vMe(r,"forEach",QS)}catch(e){r.forEach=QS}};for(X0 in H$)H$[X0]&&Q$(K$[X0]&&K$[X0].prototype);var X0;Q$(gMe)});var rV=g(function(){"use strict";var Y$=ne(),Z$=zS(),mMe=HS(),Mf=kl(),J$=Jr(),yMe=Tt(),bMe=Ee(),XS=bMe("iterator"),YS=Mf.values,eV=function eV(r,e){if(r){if(r[XS]!==YS)try{J$(r,XS,YS)}catch(n){r[XS]=YS}if(yMe(r,e,!0),Z$[e]){for(var t in Mf)if(r[t]!==Mf[t])try{J$(r,t,Mf[t])}catch(n){r[t]=Mf[t]}}}};for(Y0 in Z$)eV(Y$[Y0]&&Y$[Y0].prototype,Y0);var Y0;eV(mMe,"DOMTokenList")});var JS=g(function(Wvr,tV){"use strict";tV.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}});var pV=g(function(){"use strict";var _Me=C(),ex=Ce(),wMe=Rb(),i2=z(),SMe=Zr(),a2=Wt(),rx=pr().f,EMe=tr(),J0=Ir(),Z0=Ne(),qMe=$t(),TMe=ge(),aV=qy(),nV=ko(),Pu=JS(),AMe=Vp(),oV=hr(),o2=ye(),sV=Ke(),Cu="DOMException",n2="DATA_CLONE_ERR",nx=ex("Error"),Wi=ex(Cu)||function(){try{var r=ex("MessageChannel")||wMe("worker_threads").MessageChannel;new r().port1.postMessage(new WeakMap)}catch(e){if(e.name===n2&&e.code===25)return e.constructor}}(),OMe=Wi&&Wi.prototype,uV=nx.prototype,RMe=oV.set,IMe=oV.getterFor(Cu),PMe="stack"in new nx(Cu),cV=function cV(r){return Z0(Pu,r)&&Pu[r].m?Pu[r].c:0},s2=function s2(){qMe(this,Bf);var e=arguments.length,t=nV(e<1?void 0:arguments[0]),n=nV(e<2?void 0:arguments[1],"Error"),i=cV(n);if(RMe(this,{type:Cu,name:n,message:t,code:i}),o2||(this.name=n,this.message=t,this.code=i),PMe){var a=new nx(t);a.name=Cu,rx(this,"stack",a2(1,AMe(a.stack,1)))}},Bf=s2.prototype=SMe(uV),lV=function lV(r){return{enumerable:!0,configurable:!0,get:r}},ZS=function ZS(r){return lV(function(){return IMe(this)[r]})};o2&&(J0(Bf,"code",ZS("code")),J0(Bf,"message",ZS("message")),J0(Bf,"name",ZS("name")));rx(Bf,"constructor",a2(1,s2));var ix=i2(function(){return!_instanceof(new Wi,nx)}),fV=ix||i2(function(){return uV.toString!==aV||String(new Wi(1,2))!=="2: 1"}),dV=ix||i2(function(){return new Wi(1,"DataCloneError").code!==25}),CMe=ix||Wi[n2]!==25||OMe[n2]!==25,iV=sV?fV||dV||CMe:ix;_Me({global:!0,constructor:!0,forced:iV},{DOMException:iV?s2:Wi});var Uf=ex(Cu),tx=Uf.prototype;fV&&(sV||Wi===Uf)&&EMe(tx,"toString",aV);dV&&o2&&Wi===Uf&&J0(tx,"code",lV(function(){return cV(TMe(this).name)}));for(e2 in Pu)Z0(Pu,e2)&&(r2=Pu[e2],Ff=r2.s,t2=a2(6,r2.c),Z0(Uf,Ff)||rx(Uf,Ff,t2),Z0(tx,Ff)||rx(tx,Ff,t2));var r2,Ff,t2,e2});var bV=g(function(){"use strict";var NMe=C(),kMe=ne(),x2=Ce(),p2=Wt(),h2=pr().f,hV=Ne(),LMe=$t(),DMe=wa(),xV=ko(),u2=JS(),WMe=Vp(),MMe=ye(),mV=Ke(),$f="DOMException",yV=x2("Error"),Vf=x2($f),g2=function g21(){LMe(this,FMe);var e=arguments.length,t=xV(e<1?void 0:arguments[0]),n=xV(e<2?void 0:arguments[1],"Error"),i=new Vf(t,n),a=new yV(t);return a.name=$f,h2(i,"stack",p2(1,WMe(a.stack,1))),DMe(i,this,g2),i},FMe=g2.prototype=Vf.prototype,BMe="stack"in new yV($f),UMe="stack"in new Vf(1,2),c2=Vf&&MMe&&Object.getOwnPropertyDescriptor(kMe,$f),jMe=!!c2&&!(c2.writable&&c2.configurable),gV=BMe&&!jMe&&!UMe;NMe({global:!0,constructor:!0,forced:mV||gV},{DOMException:gV?g2:Vf});var jf=x2($f),vV=jf.prototype;if(vV.constructor!==jf){mV||h2(vV,"constructor",p2(1,jf));for(l2 in u2)hV(u2,l2)&&(f2=u2[l2],d2=f2.s,hV(jf,d2)||h2(jf,d2,p2(6,f2.c)))}var f2,d2,l2});var wV=g(function(){"use strict";var $Me=Ce(),VMe=Tt(),_V="DOMException";VMe($Me(_V),_V)});var EV=g(function(){"use strict";var GMe=C(),zMe=ne(),SV=ff().clear;GMe({global:!0,bind:!0,enumerable:!0,forced:zMe.clearImmediate!==SV},{clearImmediate:SV})});var ax=g(function(zvr,TV){"use strict";var qV=ne(),KMe=jt(),HMe=We(),QMe=Wl(),XMe=Pn(),YMe=Zt(),JMe=tn(),ZMe=qV.Function,eFe=/MSIE .\./.test(XMe)||QMe==="BUN"&&function(){var r=qV.Bun.version.split(".");return r.length<3||r[0]==="0"&&(r[1]<3||r[1]==="3"&&r[2]==="0")}();TV.exports=function(r,e){var t=e?2:1;return eFe?function(n,i){var a=JMe(arguments.length,1)>t,o=HMe(n)?n:ZMe(n),s=a?YMe(arguments,t):[],u=a?function u(){KMe(o,this,s)}:o;return e?r(u,i):r(u)}:r}});var IV=g(function(){"use strict";var rFe=C(),RV=ne(),AV=ff().set,tFe=ax(),OV=RV.setImmediate?tFe(AV,!1):AV;rFe({global:!0,bind:!0,enumerable:!0,forced:RV.setImmediate!==OV},{setImmediate:OV})});var PV=g(function(){"use strict";EV();IV()});var CV=g(function(){"use strict";var nFe=C(),iFe=ne(),aFe=D1(),oFe=ke(),sFe=tn(),uFe=z(),cFe=ye(),lFe=uFe(function(){return cFe&&Object.getOwnPropertyDescriptor(iFe,"queueMicrotask").value.length!==1});nFe({global:!0,enumerable:!0,dontCallGetSet:!0,forced:lFe},{queueMicrotask:function queueMicrotask1(e){sFe(arguments.length,1),aFe(oFe(e))}})});var kV=g(function(){"use strict";var fFe=C(),$a=ne(),dFe=Ir(),pFe=ye(),hFe=TypeError,xFe=Object.defineProperty,NV=$a.self!==$a;try{pFe?(ox=Object.getOwnPropertyDescriptor($a,"self"),(NV||!ox||!ox.get||!ox.enumerable)&&dFe($a,"self",{get:function get(){return $a},set:function set(e){if(this!==$a)throw new hFe("Illegal invocation");xFe($a,"self",{value:e,writable:!0,configurable:!0,enumerable:!0})},configurable:!0,enumerable:!0})):fFe({global:!0,simple:!0,forced:NV},{self:$a})}catch(r){}var ox});var GV=g(function(){"use strict";var gFe=Ke(),vFe=C(),pt=ne(),zf=Ce(),Hf=Q(),w2=z(),mFe=ga(),ku=We(),yFe=ya(),bFe=Yn(),fx=we(),_Fe=ha(),wFe=Fr(),WV=ge(),cx=Ft(),SFe=Ne(),EFe=en(),v2=Jr(),sx=nr(),qFe=tn(),TFe=La(),dx=$_(),S2=gn(),AFe=Xo(),LV=Db(),OFe=yy(),E2=Th(),Gf=pt.Object,RFe=pt.Array,MV=pt.Date,FV=pt.Error,IFe=pt.TypeError,PFe=pt.PerformanceMark,rs=zf("DOMException"),b2=dx.Map,q2=dx.has,BV=dx.get,lx=dx.set,UV=S2.Set,jV=S2.add,CFe=S2.has,NFe=zf("Object","keys"),kFe=Hf([].push),LFe=Hf((!0).valueOf),DFe=Hf(1.1.valueOf),WFe=Hf("".valueOf),MFe=Hf(MV.prototype.getTime),_2=mFe("structuredClone"),Kf="DataCloneError",ux="Transferring",$V=function $V(r){return!w2(function(){var e=new pt.Set([7]),t=r(e),n=r(Gf(7));return t===e||!t.has(7)||!fx(n)||+n!=7})&&r},DV=function DV(r,e){return!w2(function(){var t=new e,n=r({a:t,b:t});return!(n&&n.a===n.b&&_instanceof(n.a,e)&&n.a.stack===t.stack)})},FFe=function FFe(r){return!w2(function(){var e=r(new pt.AggregateError([1],_2,{cause:3}));return e.name!=="AggregateError"||e.errors[0]!==1||e.message!==_2||e.cause!==3})},Nu=pt.structuredClone,BFe=gFe||!DV(Nu,FV)||!DV(Nu,rs)||!FFe(Nu),UFe=!Nu&&$V(function(r){return new PFe(_2,{detail:r}).detail}),Mi=$V(Nu)||UFe,m2=function m2(r){throw new rs("Uncloneable type: "+r,Kf)},Kt=function Kt(r,e){throw new rs((e||"Cloning")+" of "+r+" cannot be properly polyfilled in this engine",Kf)},y2=function y2(r,e){return Mi||Kt(e),Mi(r)},jFe=function jFe(){var r;try{r=new pt.DataTransfer}catch(e){try{r=new pt.ClipboardEvent("").clipboardData}catch(t){}}return r&&r.items&&r.files?r:null},VV=function VV(r,e,t){if(q2(e,r))return BV(e,r);var n=t||cx(r),i,a,o,s,u,c;if(n==="SharedArrayBuffer")Mi?i=Mi(r):i=r;else{var l=pt.DataView;!l&&!ku(r.slice)&&Kt("ArrayBuffer");try{if(ku(r.slice)&&!r.resizable)i=r.slice(0);else for(a=r.byteLength,o=("maxByteLength"in r)?{maxByteLength:r.maxByteLength}:void 0,i=new ArrayBuffer(a,o),s=new l(r),u=new l(i),c=0;c<a;c++)u.setUint8(c,s.getUint8(c))}catch(f){throw new rs("ArrayBuffer is detached",Kf)}}return lx(e,r,i),i},$Fe=function $Fe(r,e,t,n,i){var a=pt[e];return fx(a)||Kt(e),new a(VV(r.buffer,i),t,n)},dt=function dt1(r,e){if(_Fe(r)&&m2("Symbol"),!fx(r))return r;if(e){if(q2(e,r))return BV(e,r)}else e=new b2;var t=cx(r),n,i,a,o,s,u,c,l;switch(t){case"Array":a=RFe(sx(r));break;case"Object":a={};break;case"Map":a=new b2;break;case"Set":a=new UV;break;case"RegExp":a=new RegExp(r.source,TFe(r));break;case"Error":switch(i=r.name,i){case"AggregateError":a=new(zf(i))([]);break;case"EvalError":case"RangeError":case"ReferenceError":case"SuppressedError":case"SyntaxError":case"TypeError":case"URIError":a=new(zf(i));break;case"CompileError":case"LinkError":case"RuntimeError":a=new(zf("WebAssembly",i));break;default:a=new FV}break;case"DOMException":a=new rs(r.message,r.name);break;case"ArrayBuffer":case"SharedArrayBuffer":a=VV(r,e,t);break;case"DataView":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float16Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":u=t==="DataView"?r.byteLength:r.length,a=$Fe(r,t,r.byteOffset,u,e);break;case"DOMQuad":try{a=new DOMQuad(dt(r.p1,e),dt(r.p2,e),dt(r.p3,e),dt(r.p4,e))}catch(f){a=y2(r,t)}break;case"File":if(Mi)try{a=Mi(r),cx(a)!==t&&(a=void 0)}catch(f){}if(!a)try{a=new File([r],r.name,r)}catch(f){}a||Kt(t);break;case"FileList":if(o=jFe(),o){for(s=0,u=sx(r);s<u;s++)o.items.add(dt(r[s],e));a=o.files}else a=y2(r,t);break;case"ImageData":try{a=new ImageData(dt(r.data,e),r.width,r.height,{colorSpace:r.colorSpace})}catch(f){a=y2(r,t)}break;default:if(Mi)a=Mi(r);else switch(t){case"BigInt":a=Gf(r.valueOf());break;case"Boolean":a=Gf(LFe(r));break;case"Number":a=Gf(DFe(r));break;case"String":a=Gf(WFe(r));break;case"Date":a=new MV(MFe(r));break;case"Blob":try{a=r.slice(0,r.size,r.type)}catch(f){Kt(t)}break;case"DOMPoint":case"DOMPointReadOnly":n=pt[t];try{a=n.fromPoint?n.fromPoint(r):new n(r.x,r.y,r.z,r.w)}catch(f){Kt(t)}break;case"DOMRect":case"DOMRectReadOnly":n=pt[t];try{a=n.fromRect?n.fromRect(r):new n(r.x,r.y,r.width,r.height)}catch(f){Kt(t)}break;case"DOMMatrix":case"DOMMatrixReadOnly":n=pt[t];try{a=n.fromMatrix?n.fromMatrix(r):new n(r)}catch(f){Kt(t)}break;case"AudioData":case"VideoFrame":ku(r.clone)||Kt(t);try{a=r.clone()}catch(f){m2(t)}break;case"CropTarget":case"CryptoKey":case"FileSystemDirectoryHandle":case"FileSystemFileHandle":case"FileSystemHandle":case"GPUCompilationInfo":case"GPUCompilationMessage":case"ImageBitmap":case"RTCCertificate":case"WebAssembly.Module":Kt(t);default:m2(t)}}switch(lx(e,r,a),t){case"Array":case"Object":for(c=NFe(r),s=0,u=sx(c);s<u;s++)l=c[s],EFe(a,l,dt(r[l],e));break;case"Map":r.forEach(function(f,d){lx(a,dt(d,e),dt(f,e))});break;case"Set":r.forEach(function(f){jV(a,dt(f,e))});break;case"Error":v2(a,"message",dt(r.message,e)),SFe(r,"cause")&&v2(a,"cause",dt(r.cause,e)),i==="AggregateError"?a.errors=dt(r.errors,e):i==="SuppressedError"&&(a.error=dt(r.error,e),a.suppressed=dt(r.suppressed,e));case"DOMException":OFe&&v2(a,"stack",dt(r.stack,e))}return a},VFe=function VFe(r,e){if(!fx(r))throw new IFe("Transfer option cannot be converted to a sequence");var t=[];wFe(r,function(d){kFe(t,WV(d))});for(var n=0,i=sx(t),a=new UV,o,s,u,c,l,f;n<i;){if(o=t[n++],s=cx(o),s==="ArrayBuffer"?CFe(a,o):q2(e,o))throw new rs("Duplicate transferable",Kf);if(s==="ArrayBuffer"){jV(a,o);continue}if(E2)c=Nu(o,{transfer:[o]});else switch(s){case"ImageBitmap":u=pt.OffscreenCanvas,yFe(u)||Kt(s,ux);try{l=new u(o.width,o.height),f=l.getContext("bitmaprenderer"),f.transferFromImageBitmap(o),c=l.transferToImageBitmap()}catch(d){}break;case"AudioData":case"VideoFrame":(!ku(o.clone)||!ku(o.close))&&Kt(s,ux);try{c=o.clone(),o.close()}catch(d){}break;case"MediaSourceHandle":case"MessagePort":case"MIDIAccess":case"OffscreenCanvas":case"ReadableStream":case"RTCDataChannel":case"TransformStream":case"WebTransportReceiveStream":case"WebTransportSendStream":case"WritableStream":Kt(s,ux)}if(c===void 0)throw new rs("This object cannot be transferred: "+s,Kf);lx(e,o,c)}return a},GFe=function GFe(r){AFe(r,function(e){E2?Mi(e,{transfer:[e]}):ku(e.transfer)?e.transfer():LV?LV(e):Kt("ArrayBuffer",ux)})};vFe({global:!0,enumerable:!0,sham:!E2,forced:BFe},{structuredClone:function structuredClone(e){var t=qFe(arguments.length,1)>1&&!bFe(arguments[1])?WV(arguments[1]):void 0,n=t?t.transfer:void 0,i,a;n!==void 0&&(i=new b2,a=VFe(n,i));var o=dt(e,i);return a&&GFe(a),o}})});var HV=g(function(){"use strict";var zFe=C(),KV=ne(),KFe=ax(),zV=KFe(KV.setInterval,!0);zFe({global:!0,bind:!0,forced:KV.setInterval!==zV},{setInterval:zV})});var YV=g(function(){"use strict";var HFe=C(),XV=ne(),QFe=ax(),QV=QFe(XV.setTimeout,!0);HFe({global:!0,bind:!0,forced:XV.setTimeout!==QV},{setTimeout:QV})});var JV=g(function(){"use strict";HV();YV()});var Qf=g(function(cmr,eG){"use strict";var XFe=z(),YFe=Ee(),JFe=ye(),ZV=Ke(),ZFe=YFe("iterator");eG.exports=!XFe(function(){var r=new URL("b?a=1&b=2&c=3","https://a"),e=r.searchParams,t=new URLSearchParams("a=1&a=2&b=3"),n="";return r.pathname="c%20d",e.forEach(function(i,a){e.delete("b"),n+=a+i}),t.delete("a",2),t.delete("b",void 0),ZV&&(!r.toJSON||!t.has("a",1)||t.has("a",2)||!t.has("a",void 0)||t.has("b"))||!e.size&&(ZV||!JFe)||!e.sort||r.href!=="https://a/c%20d?a=1&c=3"||e.get("c")!=="3"||String(new URLSearchParams("?a=1"))!=="a=1"||!e[ZFe]||new URL("https://a@b").username!=="a"||new URLSearchParams(new URLSearchParams("a=b")).get("a")!=="b"||new URL("https://тест").host!=="xn--e1aybc"||new URL("https://a#б").hash!=="#%D0%B1"||n!=="a1c3"||new URL("https://x",void 0).host!=="x"})});var cG=g(function(lmr,uG){"use strict";var ts=Q(),T2=0x7fffffff,Xf=36,aG=1,R2=26,eBe=38,rBe=700,tBe=72,nBe=128,iBe="-",aBe=/[^\0-\u007E]/,oG=/[.\u3002\uFF0E\uFF61]/g,rG="Overflow: input needs wider integers to process",A2=Xf-aG,tG=RangeError,oBe=ts(oG.exec),Lu=Math.floor,O2=String.fromCharCode,nG=ts("".charCodeAt),sG=ts([].join),Va=ts([].push),sBe=ts("".replace),uBe=ts("".split),cBe=ts("".toLowerCase),lBe=function lBe(r){for(var e=[],t=0,n=r.length;t<n;){var i=nG(r,t++);if(i>=55296&&i<=56319&&t<n){var a=nG(r,t++);(a&64512)===56320?Va(e,((i&1023)<<10)+(a&1023)+65536):(Va(e,i),t--)}else Va(e,i)}return e},iG=function iG(r){return r+22+75*(r<26)},fBe=function fBe(r,e,t){var n=0;for(r=t?Lu(r/rBe):r>>1,r+=Lu(r/e);r>A2*R2>>1;)r=Lu(r/A2),n+=Xf;return Lu(n+(A2+1)*r/(r+eBe))},dBe=function dBe(r){var e=[];r=lBe(r);var t=r.length,n=nBe,i=0,a=tBe,o,s;for(o=0;o<r.length;o++)s=r[o],s<128&&Va(e,O2(s));var u=e.length,c=u;for(u&&Va(e,iBe);c<t;){var l=T2;for(o=0;o<r.length;o++)s=r[o],s>=n&&s<l&&(l=s);var f=c+1;if(l-n>Lu((T2-i)/f))throw new tG(rG);for(i+=(l-n)*f,n=l,o=0;o<r.length;o++){if(s=r[o],s<n&&++i>T2)throw new tG(rG);if(s===n){for(var d=i,p=Xf;;){var x=p<=a?aG:p>=a+R2?R2:p-a;if(d<x)break;var h=d-x,v=Xf-x;Va(e,O2(iG(x+h%v))),d=Lu(h/v),p+=Xf}Va(e,O2(iG(d))),a=fBe(i,f,c===u),i=0,c++}}i++,n++}return sG(e,"")};uG.exports=function(r){var e=[],t=uBe(sBe(cBe(r),oG,"."),"."),n,i;for(n=0;n<t.length;n++)i=t[n],Va(e,oBe(aBe,i)?"xn--"+dBe(i):i);return sG(e,".")}});var M2=g(function(fmr,CG){"use strict";kl();kw();var L2=C(),wG=ne(),D2=R1(),pBe=Ce(),px=he(),Mn=Q(),Yf=ye(),SG=Qf(),EG=tr(),hBe=Ir(),xBe=ti(),gBe=Tt(),vBe=oh(),W2=hr(),qG=$t(),I2=We(),mBe=Ne(),yBe=Bt(),bBe=Ft(),_Be=ge(),TG=we(),Rt=Oe(),wBe=Zr(),lG=Wt(),fG=Do(),SBe=Ii(),hx=Ea(),Du=tn(),EBe=Ee(),qBe=ph(),TBe=EBe("iterator"),Mu="URLSearchParams",AG=Mu+"Iterator",OG=W2.set,vn=W2.getterFor(Mu),ABe=W2.getterFor(AG),dG=D2("fetch"),vx=D2("Request"),Jf=D2("Headers"),P2=vx&&vx.prototype,pG=Jf&&Jf.prototype,OBe=wG.TypeError,RBe=wG.encodeURIComponent,IBe=String.fromCharCode,PBe=pBe("String","fromCodePoint"),CBe=parseInt,gx=Mn("".charAt),hG=Mn([].join),Ga=Mn([].push),RG=Mn("".replace),NBe=Mn([].shift),xG=Mn([].splice),gG=Mn("".split),IG=Mn("".slice),kBe=Mn(/./.exec),LBe=/\+/g,C2="<22>",DBe=/^[0-9a-f]+$/i,vG=function vG(r,e){var t=IG(r,e,e+2);return kBe(DBe,t)?CBe(t,16):NaN},WBe=function WBe(r){for(var e=0,t=128;t>0&&r&t;t>>=1)e++;return e},MBe=function MBe(r){var e=null;switch(r.length){case 1:e=r[0];break;case 2:e=(r[0]&31)<<6|r[1]&63;break;case 3:e=(r[0]&15)<<12|(r[1]&63)<<6|r[2]&63;break;case 4:e=(r[0]&7)<<18|(r[1]&63)<<12|(r[2]&63)<<6|r[3]&63;break}return e>1114111?null:e},mG=function mG(r){r=RG(r,LBe," ");for(var e=r.length,t="",n=0;n<e;){var i=gx(r,n);if(i==="%"){if(gx(r,n+1)==="%"||n+3>e){t+="%",n++;continue}var a=vG(r,n+1);if(a!==a){t+=i,n++;continue}n+=2;var o=WBe(a);if(o===0)i=IBe(a);else{if(o===1||o>4){t+=C2,n++;continue}for(var s=[a],u=1;u<o&&(n++,!(n+3>e||gx(r,n)!=="%"));){var c=vG(r,n+1);if(c!==c){n+=3;break}if(c>191||c<128)break;Ga(s,c),n+=2,u++}if(s.length!==o){t+=C2;continue}var l=MBe(s);l===null?t+=C2:i=PBe(l)}}t+=i,n++}return t},FBe=/[!'()~]|%20/g,BBe={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},UBe=function UBe(r){return BBe[r]},yG=function yG(r){return RG(RBe(r),FBe,UBe)},N2=vBe(function(e,t){OG(this,{type:AG,target:vn(e).entries,index:0,kind:t})},Mu,function(){var e=ABe(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,hx(void 0,!0);var i=t[n];switch(e.kind){case"keys":return hx(i.key,!1);case"values":return hx(i.value,!1)}return hx([i.key,i.value],!1)},!0),PG=function PG(r){this.entries=[],this.url=null,r!==void 0&&(TG(r)?this.parseObject(r):this.parseQuery(typeof r=="string"?gx(r,0)==="?"?IG(r,1):r:Rt(r)))};PG.prototype={type:Mu,bindURL:function bindURL(r){this.url=r,this.update()},parseObject:function parseObject(r){var e=this.entries,t=SBe(r),n,i,a,o,s,u,c;if(t)for(n=fG(r,t),i=n.next;!(a=px(i,n)).done;){if(o=fG(_Be(a.value)),s=o.next,(u=px(s,o)).done||(c=px(s,o)).done||!px(s,o).done)throw new OBe("Expected sequence with length 2");Ga(e,{key:Rt(u.value),value:Rt(c.value)})}else for(var l in r)mBe(r,l)&&Ga(e,{key:l,value:Rt(r[l])})},parseQuery:function parseQuery(r){if(r)for(var e=this.entries,t=gG(r,"&"),n=0,i,a;n<t.length;)i=t[n++],i.length&&(a=gG(i,"="),Ga(e,{key:mG(NBe(a)),value:mG(hG(a,"="))}))},serialize:function serialize(){for(var r=this.entries,e=[],t=0,n;t<r.length;)n=r[t++],Ga(e,yG(n.key)+"="+yG(n.value));return hG(e,"&")},update:function update(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function updateURL(){this.url&&this.url.update()}};var mx=function mx(){qG(this,Wu);var e=arguments.length>0?arguments[0]:void 0,t=OG(this,new PG(e));Yf||(this.size=t.entries.length)},Wu=mx.prototype;xBe(Wu,{append:function append(e,t){var n=vn(this);Du(arguments.length,2),Ga(n.entries,{key:Rt(e),value:Rt(t)}),Yf||this.size++,n.updateURL()},delete:function _delete(r){for(var e=vn(this),t=Du(arguments.length,1),n=e.entries,i=Rt(r),a=t<2?void 0:arguments[1],o=a===void 0?a:Rt(a),s=0;s<n.length;){var u=n[s];if(u.key===i&&(o===void 0||u.value===o)){if(xG(n,s,1),o!==void 0)break}else s++}Yf||(this.size=n.length),e.updateURL()},get:function get(e){var t=vn(this).entries;Du(arguments.length,1);for(var n=Rt(e),i=0;i<t.length;i++)if(t[i].key===n)return t[i].value;return null},getAll:function getAll(e){var t=vn(this).entries;Du(arguments.length,1);for(var n=Rt(e),i=[],a=0;a<t.length;a++)t[a].key===n&&Ga(i,t[a].value);return i},has:function has(e){for(var t=vn(this).entries,n=Du(arguments.length,1),i=Rt(e),a=n<2?void 0:arguments[1],o=a===void 0?a:Rt(a),s=0;s<t.length;){var u=t[s++];if(u.key===i&&(o===void 0||u.value===o))return!0}return!1},set:function set(e,t){var n=vn(this);Du(arguments.length,1);for(var i=n.entries,a=!1,o=Rt(e),s=Rt(t),u=0,c;u<i.length;u++)c=i[u],c.key===o&&(a?xG(i,u--,1):(a=!0,c.value=s));a||Ga(i,{key:o,value:s}),Yf||(this.size=i.length),n.updateURL()},sort:function sort(){var e=vn(this);qBe(e.entries,function(t,n){return t.key>n.key?1:-1}),e.updateURL()},forEach:function forEach(e){for(var t=vn(this).entries,n=yBe(e,arguments.length>1?arguments[1]:void 0),i=0,a;i<t.length;)a=t[i++],n(a.value,a.key,this)},keys:function keys(){return new N2(this,"keys")},values:function values(){return new N2(this,"values")},entries:function entries(){return new N2(this,"entries")}},{enumerable:!0});EG(Wu,TBe,Wu.entries,{name:"entries"});EG(Wu,"toString",function(){return vn(this).serialize()},{enumerable:!0});Yf&&hBe(Wu,"size",{get:function get(){return vn(this).entries.length},configurable:!0,enumerable:!0});gBe(mx,Mu);L2({global:!0,constructor:!0,forced:!SG},{URLSearchParams:mx});!SG&&I2(Jf)&&(bG=Mn(pG.has),_G=Mn(pG.set),k2=function k2(r){if(TG(r)){var e=r.body,t;if(bBe(e)===Mu)return t=r.headers?new Jf(r.headers):new Jf,bG(t,"content-type")||_G(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),wBe(r,{body:lG(0,Rt(e)),headers:lG(0,t)})}return r},I2(dG)&&L2({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function fetch1(e){return dG(e,arguments.length>1?k2(arguments[1]):{})}}),I2(vx)&&(xx=function xx(e){return qG(this,P2),new vx(e,arguments.length>1?k2(arguments[1]):{})},P2.constructor=xx,xx.prototype=P2,L2({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:xx})));var bG,_G,k2,xx;CG.exports={URLSearchParams:mx,getState:vn}});var XG=g(function(){"use strict";Lw();var jBe=C(),rE=ye(),$Be=Qf(),tE=ne(),NG=Bt(),wn=Q(),Sx=tr(),mn=Ir(),VBe=$t(),J2=Ne(),nE=d1(),Fu=By(),Fn=Zt(),GBe=Sf().codeAt,zBe=cG(),Bi=Oe(),KBe=Tt(),HBe=tn(),VG=M2(),GG=hr(),QBe=GG.set,Ex=GG.getterFor("URL"),XBe=VG.URLSearchParams,YBe=VG.getState,Zf=tE.URL,Z2=tE.TypeError,qx=tE.parseInt,JBe=Math.floor,kG=Math.pow,_n=wn("".charAt),Bn=wn(/./.exec),rd=wn([].join),ZBe=wn(1.1.toString),eUe=wn([].pop),Uu=wn([].push),F2=wn("".replace),rUe=wn([].shift),tUe=wn("".split),nd=wn("".slice),Tx=wn("".toLowerCase),nUe=wn([].unshift),iUe="Invalid authority",B2="Invalid scheme",ns="Invalid host",LG="Invalid port",zG=/[a-z]/i,aUe=/[\d+-.a-z]/i,eE=/\d/,oUe=/^0x/i,sUe=/^[0-7]+$/,uUe=/^\d+$/,KG=/^[\da-f]+$/i,cUe=/[\0\t\n\r #%/:<>?@[\\\]^|]/,lUe=/[\0\t\n\r #/:<>?@[\\\]^|]/,fUe=/^[\u0000-\u0020]+/,dUe=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,pUe=/[\t\n\r]/g,yn,hUe=function hUe(r){var e=tUe(r,"."),t,n,i,a,o,s,u;if(e.length&&e[e.length-1]===""&&e.length--,t=e.length,t>4)return r;for(n=[],i=0;i<t;i++){if(a=e[i],a==="")return r;if(o=10,a.length>1&&_n(a,0)==="0"&&(o=Bn(oUe,a)?16:8,a=nd(a,o===8?1:2)),a==="")s=0;else{if(!Bn(o===10?uUe:o===8?sUe:KG,a))return r;s=qx(a,o)}Uu(n,s)}for(i=0;i<t;i++)if(s=n[i],i===t-1){if(s>=kG(256,5-t))return null}else if(s>255)return null;for(u=eUe(n),i=0;i<n.length;i++)u+=n[i]*kG(256,3-i);return u},xUe=function xUe(r){var e=[0,0,0,0,0,0,0,0],t=0,n=null,i=0,a,o,s,u,c,l,f,d=function d(){return _n(r,i)};if(d()===":"){if(_n(r,1)!==":")return;i+=2,t++,n=t}for(;d();){if(t===8)return;if(d()===":"){if(n!==null)return;i++,t++,n=t;continue}for(a=o=0;o<4&&Bn(KG,d());)a=a*16+qx(d(),16),i++,o++;if(d()==="."){if(o===0||(i-=o,t>6))return;for(s=0;d();){if(u=null,s>0)if(d()==="."&&s<4)i++;else return;if(!Bn(eE,d()))return;for(;Bn(eE,d());){if(c=qx(d(),10),u===null)u=c;else{if(u===0)return;u=u*10+c}if(u>255)return;i++}e[t]=e[t]*256+u,s++,(s===2||s===4)&&t++}if(s!==4)return;break}else if(d()===":"){if(i++,!d())return}else if(d())return;e[t++]=a}if(n!==null)for(l=t-n,t=7;t!==0&&l>0;)f=e[t],e[t--]=e[n+l-1],e[n+--l]=f;else if(t!==8)return;return e},gUe=function gUe(r){for(var e=null,t=1,n=null,i=0,a=0;a<8;a++)r[a]!==0?(i>t&&(e=n,t=i),n=null,i=0):(n===null&&(n=a),++i);return i>t?n:e},ed=function ed(r){var e,t,n,i;if(typeof r=="number"){for(e=[],t=0;t<4;t++)nUe(e,r%256),r=JBe(r/256);return rd(e,".")}if((typeof r==="undefined"?"undefined":_type_of(r))=="object"){for(e="",n=gUe(r),t=0;t<8;t++)i&&r[t]===0||(i&&(i=!1),n===t?(e+=t?":":"::",i=!0):(e+=ZBe(r[t],16),t<7&&(e+=":")));return"["+e+"]"}return r},wx={},HG=nE({},wx,{" ":1,'"':1,"<":1,">":1,"`":1}),QG=nE({},HG,{"#":1,"?":1,"{":1,"}":1}),U2=nE({},QG,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),za=function za(r,e){var t=GBe(r,0);return t>32&&t<127&&!J2(e,r)?r:encodeURIComponent(r)},yx={ftp:21,file:null,http:80,https:443,ws:80,wss:443},td=function td(r,e){var t;return r.length===2&&Bn(zG,_n(r,0))&&((t=_n(r,1))===":"||!e&&t==="|")},DG=function DG(r){var e;return r.length>1&&td(nd(r,0,2))&&(r.length===2||(e=_n(r,2))==="/"||e==="\\"||e==="?"||e==="#")},vUe=function vUe(r){return r==="."||Tx(r)==="%2e"},mUe=function mUe(r){return r=Tx(r),r===".."||r==="%2e."||r===".%2e"||r==="%2e%2e"},j2={},WG={},$2={},MG={},FG={},V2={},BG={},UG={},bx={},_x={},G2={},z2={},K2={},H2={},jG={},Q2={},Bu={},li={},$G={},is={},Fi={},iE=function iE1(r,e,t){var n=Bi(r),i,a,o;if(e){if(a=this.parse(n),a)throw new Z2(a);this.searchParams=null}else{if(t!==void 0&&(i=new iE(t,!0)),a=this.parse(n,null,i),a)throw new Z2(a);o=YBe(new XBe),o.bindURL(this),this.searchParams=o}};iE.prototype={type:"URL",parse:function parse(r,e,t){var n=this,i=e||j2,a=0,o="",s=!1,u=!1,c=!1,l,f,d,p;for(r=Bi(r),e||(n.scheme="",n.username="",n.password="",n.host=null,n.port=null,n.path=[],n.query=null,n.fragment=null,n.cannotBeABaseURL=!1,r=F2(r,fUe,""),r=F2(r,dUe,"$1")),r=F2(r,pUe,""),l=Fu(r);a<=l.length;){switch(f=l[a],i){case j2:if(f&&Bn(zG,f))o+=Tx(f),i=WG;else{if(e)return B2;i=$2;continue}break;case WG:if(f&&(Bn(aUe,f)||f==="+"||f==="-"||f==="."))o+=Tx(f);else if(f===":"){if(e&&(n.isSpecial()!==J2(yx,o)||o==="file"&&(n.includesCredentials()||n.port!==null)||n.scheme==="file"&&!n.host))return;if(n.scheme=o,e){n.isSpecial()&&yx[n.scheme]===n.port&&(n.port=null);return}o="",n.scheme==="file"?i=H2:n.isSpecial()&&t&&t.scheme===n.scheme?i=MG:n.isSpecial()?i=UG:l[a+1]==="/"?(i=FG,a++):(n.cannotBeABaseURL=!0,Uu(n.path,""),i=$G)}else{if(e)return B2;o="",i=$2,a=0;continue}break;case $2:if(!t||t.cannotBeABaseURL&&f!=="#")return B2;if(t.cannotBeABaseURL&&f==="#"){n.scheme=t.scheme,n.path=Fn(t.path),n.query=t.query,n.fragment="",n.cannotBeABaseURL=!0,i=Fi;break}i=t.scheme==="file"?H2:V2;continue;case MG:if(f==="/"&&l[a+1]==="/")i=bx,a++;else{i=V2;continue}break;case FG:if(f==="/"){i=_x;break}else{i=li;continue}case V2:if(n.scheme=t.scheme,f===yn)n.username=t.username,n.password=t.password,n.host=t.host,n.port=t.port,n.path=Fn(t.path),n.query=t.query;else if(f==="/"||f==="\\"&&n.isSpecial())i=BG;else if(f==="?")n.username=t.username,n.password=t.password,n.host=t.host,n.port=t.port,n.path=Fn(t.path),n.query="",i=is;else if(f==="#")n.username=t.username,n.password=t.password,n.host=t.host,n.port=t.port,n.path=Fn(t.path),n.query=t.query,n.fragment="",i=Fi;else{n.username=t.username,n.password=t.password,n.host=t.host,n.port=t.port,n.path=Fn(t.path),n.path.length--,i=li;continue}break;case BG:if(n.isSpecial()&&(f==="/"||f==="\\"))i=bx;else if(f==="/")i=_x;else{n.username=t.username,n.password=t.password,n.host=t.host,n.port=t.port,i=li;continue}break;case UG:if(i=bx,f!=="/"||_n(o,a+1)!=="/")continue;a++;break;case bx:if(f!=="/"&&f!=="\\"){i=_x;continue}break;case _x:if(f==="@"){s&&(o="%40"+o),s=!0,d=Fu(o);for(var x=0;x<d.length;x++){var h=d[x];if(h===":"&&!c){c=!0;continue}var v=za(h,U2);c?n.password+=v:n.username+=v}o=""}else if(f===yn||f==="/"||f==="?"||f==="#"||f==="\\"&&n.isSpecial()){if(s&&o==="")return iUe;a-=Fu(o).length+1,o="",i=G2}else o+=f;break;case G2:case z2:if(e&&n.scheme==="file"){i=Q2;continue}else if(f===":"&&!u){if(o==="")return ns;if(p=n.parseHost(o),p)return p;if(o="",i=K2,e===z2)return}else if(f===yn||f==="/"||f==="?"||f==="#"||f==="\\"&&n.isSpecial()){if(n.isSpecial()&&o==="")return ns;if(e&&o===""&&(n.includesCredentials()||n.port!==null))return;if(p=n.parseHost(o),p)return p;if(o="",i=Bu,e)return;continue}else f==="["?u=!0:f==="]"&&(u=!1),o+=f;break;case K2:if(Bn(eE,f))o+=f;else if(f===yn||f==="/"||f==="?"||f==="#"||f==="\\"&&n.isSpecial()||e){if(o!==""){var y=qx(o,10);if(y>65535)return LG;n.port=n.isSpecial()&&y===yx[n.scheme]?null:y,o=""}if(e)return;i=Bu;continue}else return LG;break;case H2:if(n.scheme="file",f==="/"||f==="\\")i=jG;else if(t&&t.scheme==="file")switch(f){case yn:n.host=t.host,n.path=Fn(t.path),n.query=t.query;break;case"?":n.host=t.host,n.path=Fn(t.path),n.query="",i=is;break;case"#":n.host=t.host,n.path=Fn(t.path),n.query=t.query,n.fragment="",i=Fi;break;default:DG(rd(Fn(l,a),""))||(n.host=t.host,n.path=Fn(t.path),n.shortenPath()),i=li;continue}else{i=li;continue}break;case jG:if(f==="/"||f==="\\"){i=Q2;break}t&&t.scheme==="file"&&!DG(rd(Fn(l,a),""))&&(td(t.path[0],!0)?Uu(n.path,t.path[0]):n.host=t.host),i=li;continue;case Q2:if(f===yn||f==="/"||f==="\\"||f==="?"||f==="#"){if(!e&&td(o))i=li;else if(o===""){if(n.host="",e)return;i=Bu}else{if(p=n.parseHost(o),p)return p;if(n.host==="localhost"&&(n.host=""),e)return;o="",i=Bu}continue}else o+=f;break;case Bu:if(n.isSpecial()){if(i=li,f!=="/"&&f!=="\\")continue}else if(!e&&f==="?")n.query="",i=is;else if(!e&&f==="#")n.fragment="",i=Fi;else if(f!==yn&&(i=li,f!=="/"))continue;break;case li:if(f===yn||f==="/"||f==="\\"&&n.isSpecial()||!e&&(f==="?"||f==="#")){if(mUe(o)?(n.shortenPath(),f!=="/"&&!(f==="\\"&&n.isSpecial())&&Uu(n.path,"")):vUe(o)?f!=="/"&&!(f==="\\"&&n.isSpecial())&&Uu(n.path,""):(n.scheme==="file"&&!n.path.length&&td(o)&&(n.host&&(n.host=""),o=_n(o,0)+":"),Uu(n.path,o)),o="",n.scheme==="file"&&(f===yn||f==="?"||f==="#"))for(;n.path.length>1&&n.path[0]==="";)rUe(n.path);f==="?"?(n.query="",i=is):f==="#"&&(n.fragment="",i=Fi)}else o+=za(f,QG);break;case $G:f==="?"?(n.query="",i=is):f==="#"?(n.fragment="",i=Fi):f!==yn&&(n.path[0]+=za(f,wx));break;case is:!e&&f==="#"?(n.fragment="",i=Fi):f!==yn&&(f==="'"&&n.isSpecial()?n.query+="%27":f==="#"?n.query+="%23":n.query+=za(f,wx));break;case Fi:f!==yn&&(n.fragment+=za(f,HG));break}a++}},parseHost:function parseHost(r){var e,t,n;if(_n(r,0)==="["){if(_n(r,r.length-1)!=="]"||(e=xUe(nd(r,1,-1)),!e))return ns;this.host=e}else if(this.isSpecial()){if(r=zBe(r),Bn(cUe,r)||(e=hUe(r),e===null))return ns;this.host=e}else{if(Bn(lUe,r))return ns;for(e="",t=Fu(r),n=0;n<t.length;n++)e+=za(t[n],wx);this.host=e}},cannotHaveUsernamePasswordPort:function cannotHaveUsernamePasswordPort(){return!this.host||this.cannotBeABaseURL||this.scheme==="file"},includesCredentials:function includesCredentials(){return this.username!==""||this.password!==""},isSpecial:function isSpecial(){return J2(yx,this.scheme)},shortenPath:function shortenPath(){var r=this.path,e=r.length;e&&(this.scheme!=="file"||e!==1||!td(r[0],!0))&&r.length--},serialize:function serialize(){var r=this,e=r.scheme,t=r.username,n=r.password,i=r.host,a=r.port,o=r.path,s=r.query,u=r.fragment,c=e+":";return i!==null?(c+="//",r.includesCredentials()&&(c+=t+(n?":"+n:"")+"@"),c+=ed(i),a!==null&&(c+=":"+a)):e==="file"&&(c+="//"),c+=r.cannotBeABaseURL?o[0]:o.length?"/"+rd(o,"/"):"",s!==null&&(c+="?"+s),u!==null&&(c+="#"+u),c},setHref:function setHref(r){var e=this.parse(r);if(e)throw new Z2(e);this.searchParams.update()},getOrigin:function getOrigin(){var r=this.scheme,e=this.port;if(r==="blob")try{return new ju(r.path[0]).origin}catch(t){return"null"}return r==="file"||!this.isSpecial()?"null":r+"://"+ed(this.host)+(e!==null?":"+e:"")},getProtocol:function getProtocol(){return this.scheme+":"},setProtocol:function setProtocol(r){this.parse(Bi(r)+":",j2)},getUsername:function getUsername(){return this.username},setUsername:function setUsername(r){var e=Fu(Bi(r));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var t=0;t<e.length;t++)this.username+=za(e[t],U2)}},getPassword:function getPassword(){return this.password},setPassword:function setPassword(r){var e=Fu(Bi(r));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var t=0;t<e.length;t++)this.password+=za(e[t],U2)}},getHost:function getHost(){var r=this.host,e=this.port;return r===null?"":e===null?ed(r):ed(r)+":"+e},setHost:function setHost(r){this.cannotBeABaseURL||this.parse(r,G2)},getHostname:function getHostname(){var r=this.host;return r===null?"":ed(r)},setHostname:function setHostname(r){this.cannotBeABaseURL||this.parse(r,z2)},getPort:function getPort(){var r=this.port;return r===null?"":Bi(r)},setPort:function setPort(r){this.cannotHaveUsernamePasswordPort()||(r=Bi(r),r===""?this.port=null:this.parse(r,K2))},getPathname:function getPathname(){var r=this.path;return this.cannotBeABaseURL?r[0]:r.length?"/"+rd(r,"/"):""},setPathname:function setPathname(r){this.cannotBeABaseURL||(this.path=[],this.parse(r,Bu))},getSearch:function getSearch(){var r=this.query;return r?"?"+r:""},setSearch:function setSearch(r){r=Bi(r),r===""?this.query=null:(_n(r,0)==="?"&&(r=nd(r,1)),this.query="",this.parse(r,is)),this.searchParams.update()},getSearchParams:function getSearchParams(){return this.searchParams.facade},getHash:function getHash(){var r=this.fragment;return r?"#"+r:""},setHash:function setHash(r){if(r=Bi(r),r===""){this.fragment=null;return}_n(r,0)==="#"&&(r=nd(r,1)),this.fragment="",this.parse(r,Fi)},update:function update(){this.query=this.searchParams.serialize()||null}};var ju=function ju(e){var t=VBe(this,It),n=HBe(arguments.length,1)>1?arguments[1]:void 0,i=QBe(t,new iE(e,!1,n));rE||(t.href=i.serialize(),t.origin=i.getOrigin(),t.protocol=i.getProtocol(),t.username=i.getUsername(),t.password=i.getPassword(),t.host=i.getHost(),t.hostname=i.getHostname(),t.port=i.getPort(),t.pathname=i.getPathname(),t.search=i.getSearch(),t.searchParams=i.getSearchParams(),t.hash=i.getHash())},It=ju.prototype,bn=function bn(r,e){return{get:function get(){return Ex(this)[r]()},set:e&&function(t){return Ex(this)[e](t)},configurable:!0,enumerable:!0}};rE&&(mn(It,"href",bn("serialize","setHref")),mn(It,"origin",bn("getOrigin")),mn(It,"protocol",bn("getProtocol","setProtocol")),mn(It,"username",bn("getUsername","setUsername")),mn(It,"password",bn("getPassword","setPassword")),mn(It,"host",bn("getHost","setHost")),mn(It,"hostname",bn("getHostname","setHostname")),mn(It,"port",bn("getPort","setPort")),mn(It,"pathname",bn("getPathname","setPathname")),mn(It,"search",bn("getSearch","setSearch")),mn(It,"searchParams",bn("getSearchParams")),mn(It,"hash",bn("getHash","setHash")));Sx(It,"toJSON",function(){return Ex(this).serialize()},{enumerable:!0});Sx(It,"toString",function(){return Ex(this).serialize()},{enumerable:!0});Zf&&(X2=Zf.createObjectURL,Y2=Zf.revokeObjectURL,X2&&Sx(ju,"createObjectURL",NG(X2,Zf)),Y2&&Sx(ju,"revokeObjectURL",NG(Y2,Zf)));var X2,Y2;KBe(ju,"URL");jBe({global:!0,constructor:!0,forced:!$Be,sham:!rE},{URL:ju})});var YG=g(function(){"use strict";XG()});var ez=g(function(){"use strict";var yUe=C(),bUe=Ce(),ZG=z(),_Ue=tn(),JG=Oe(),wUe=Qf(),aE=bUe("URL"),SUe=wUe&&ZG(function(){aE.canParse()}),EUe=ZG(function(){return aE.canParse.length!==1});yUe({target:"URL",stat:!0,forced:!SUe||EUe},{canParse:function canParse(e){var t=_Ue(arguments.length,1),n=JG(e),i=t<2||arguments[1]===void 0?void 0:JG(arguments[1]);try{return!!new aE(n,i)}catch(a){return!1}}})});var tz=g(function(){"use strict";var qUe=C(),TUe=Ce(),AUe=tn(),rz=Oe(),OUe=Qf(),RUe=TUe("URL");qUe({target:"URL",stat:!0,forced:!OUe},{parse:function parse(e){var t=AUe(arguments.length,1),n=rz(e),i=t<2||arguments[1]===void 0?void 0:rz(arguments[1]);try{return new RUe(n,i)}catch(a){return null}}})});var nz=g(function(){"use strict";var IUe=C(),PUe=he();IUe({target:"URL",proto:!0,enumerable:!0},{toJSON:function toJSON(){return PUe(URL.prototype.toString,this)}})});var iz=g(function(){"use strict";M2()});var uz=g(function(){"use strict";var CUe=tr(),Ax=Q(),az=Oe(),NUe=tn(),sz=URLSearchParams,Ox=sz.prototype,kUe=Ax(Ox.append),oz=Ax(Ox.delete),LUe=Ax(Ox.forEach),DUe=Ax([].push),oE=new sz("a=1&a=2&b=3");oE.delete("a",1);oE.delete("b",void 0);oE+""!="a=2"&&CUe(Ox,"delete",function(r){var e=arguments.length,t=e<2?void 0:arguments[1];if(e&&t===void 0)return oz(this,r);var n=[];LUe(this,function(f,d){DUe(n,{key:d,value:f})}),NUe(e,1);for(var i=az(r),a=az(t),o=0,s=0,u=!1,c=n.length,l;o<c;)l=n[o++],u||l.key===i?(u=!0,oz(this,l.key)):s++;for(;s<c;)l=n[s++],l.key===i&&l.value===a||kUe(this,l.key,l.value)},{enumerable:!0,unsafe:!0})});var dz=g(function(){"use strict";var WUe=tr(),lz=Q(),MUe=Oe(),FUe=tn(),fz=URLSearchParams,sE=fz.prototype,BUe=lz(sE.getAll),UUe=lz(sE.has),cz=new fz("a=1");(cz.has("a",2)||!cz.has("a",void 0))&&WUe(sE,"has",function(e){var t=arguments.length,n=t<2?void 0:arguments[1];if(t&&n===void 0)return UUe(this,e);var i=BUe(this,e);FUe(t,1);for(var a=MUe(n),o=0;o<i.length;)if(i[o++]===a)return!0;return!1},{enumerable:!0,unsafe:!0})});var pz=g(function(){"use strict";var jUe=ye(),$Ue=Q(),VUe=Ir(),uE=URLSearchParams.prototype,GUe=$Ue(uE.forEach);jUe&&!("size"in uE)&&VUe(uE,"size",{get:function get(){var e=0;return GUe(this,function(){e++}),e},configurable:!0,enumerable:!0})});var xz=g(function(Imr,hz){"use strict";kA();UA();jA();$A();VA();GA();zA();KA();HA();QA();XA();YA();JA();ZA();eO();rO();tO();OO();CO();WO();eR();iR();sR();cR();gR();bR();wR();qR();TR();OR();IR();NR();kR();WR();MR();UR();XR();YR();ZR();eI();kl();_I();qI();TI();OI();II();MI();BI();jI();GI();zI();uP();fP();dP();hP();vP();mP();yP();bP();_P();SP();ZP();fC();vC();yC();EC();RC();LC();YC();ZC();e6();t6();a6();o6();g6();v6();w6();T6();D6();M6();V6();K6();Y6();J6();i8();g8();y8();T8();A8();P8();C8();D8();W8();M8();j8();G8();z8();Y8();J8();Z8();sN();pN();fy();hN();IN();kN();WN();BN();jN();$N();VN();KN();QN();XN();YN();ZN();r7();n7();i7();a7();o7();c7();h7();v7();m7();y7();I7();P7();k7();D7();W7();M7();F7();B7();z7();ek();ak();fk();hk();yk();bk();Sk();qk();Ak();Ok();kk();Lk();Dk();Fk();Bk();Uk();$k();Gk();zk();Hk();Xk();Jk();eL();tL();nL();iL();aL();lL();fL();dL();xL();gL();mL();bL();LD();DD();MD();jD();GD();zD();w9();I9();k9();L9();j9();G9();z9();X9();Y9();J9();Z9();eW();rW();tW();sW();cW();lW();RW();DW();MW();g0();$W();GW();HW();JW();eM();qM();RM();CM();LM();MM();jM();GM();zM();XM();rF();kw();aF();sF();Lw();_F();PF();NF();kF();MF();FF();VF();KF();XF();rB();iB();oB();lB();hB();yB();EB();OB();RB();IB();PB();CB();NB();kB();LB();DB();WB();MB();FB();BB();hU();xU();gU();vU();mU();yU();bU();_U();wU();EU();TU();OU();IU();kU();DU();MU();BU();jU();VU();GU();KU();QU();ej();tj();ij();aj();sj();cj();fj();pj();yj();bj();wj();Oj();Ij();Lj();Dj();Wj();Fj();Uj();Jj();n$();a$();o$();u$();c$();h$();R$();P$();M$();$$();X$();rV();pV();bV();wV();PV();CV();kV();GV();JV();YG();ez();tz();nz();iz();uz();dz();pz();hz.exports=ml()});var vz=g(function($u){"use strict";Object.defineProperty($u,"__esModule",{value:!0});$u.reasonPhraseToStatusCode=$u.statusCodeToReasonPhrase=void 0;$u.statusCodeToReasonPhrase={202:"Accepted",502:"Bad Gateway",400:"Bad Request",409:"Conflict",100:"Continue",201:"Created",417:"Expectation Failed",424:"Failed Dependency",403:"Forbidden",504:"Gateway Timeout",410:"Gone",505:"HTTP Version Not Supported",418:"I'm a teapot",419:"Insufficient Space on Resource",507:"Insufficient Storage",500:"Internal Server Error",411:"Length Required",423:"Locked",420:"Method Failure",405:"Method Not Allowed",301:"Moved Permanently",302:"Moved Temporarily",207:"Multi-Status",300:"Multiple Choices",511:"Network Authentication Required",204:"No Content",203:"Non Authoritative Information",406:"Not Acceptable",404:"Not Found",501:"Not Implemented",304:"Not Modified",200:"OK",206:"Partial Content",402:"Payment Required",308:"Permanent Redirect",412:"Precondition Failed",428:"Precondition Required",102:"Processing",103:"Early Hints",426:"Upgrade Required",407:"Proxy Authentication Required",431:"Request Header Fields Too Large",408:"Request Timeout",413:"Request Entity Too Large",414:"Request-URI Too Long",416:"Requested Range Not Satisfiable",205:"Reset Content",303:"See Other",503:"Service Unavailable",101:"Switching Protocols",307:"Temporary Redirect",429:"Too Many Requests",401:"Unauthorized",451:"Unavailable For Legal Reasons",422:"Unprocessable Entity",415:"Unsupported Media Type",305:"Use Proxy",421:"Misdirected Request"};$u.reasonPhraseToStatusCode={Accepted:202,"Bad Gateway":502,"Bad Request":400,Conflict:409,Continue:100,Created:201,"Expectation Failed":417,"Failed Dependency":424,Forbidden:403,"Gateway Timeout":504,Gone:410,"HTTP Version Not Supported":505,"I'm a teapot":418,"Insufficient Space on Resource":419,"Insufficient Storage":507,"Internal Server Error":500,"Length Required":411,Locked:423,"Method Failure":420,"Method Not Allowed":405,"Moved Permanently":301,"Moved Temporarily":302,"Multi-Status":207,"Multiple Choices":300,"Network Authentication Required":511,"No Content":204,"Non Authoritative Information":203,"Not Acceptable":406,"Not Found":404,"Not Implemented":501,"Not Modified":304,OK:200,"Partial Content":206,"Payment Required":402,"Permanent Redirect":308,"Precondition Failed":412,"Precondition Required":428,Processing:102,"Early Hints":103,"Upgrade Required":426,"Proxy Authentication Required":407,"Request Header Fields Too Large":431,"Request Timeout":408,"Request Entity Too Large":413,"Request-URI Too Long":414,"Requested Range Not Satisfiable":416,"Reset Content":205,"See Other":303,"Service Unavailable":503,"Switching Protocols":101,"Temporary Redirect":307,"Too Many Requests":429,Unauthorized:401,"Unavailable For Legal Reasons":451,"Unprocessable Entity":422,"Unsupported Media Type":415,"Use Proxy":305,"Misdirected Request":421}});var bz=g(function(Ka){"use strict";var yz=function yz(r){var e=mz.statusCodeToReasonPhrase[r.toString()];if(!e)throw new Error("Status code does not exist: "+r);return e};var KUe=function KUe(r){var e=mz.reasonPhraseToStatusCode[r];if(!e)throw new Error("Reason phrase does not exist: "+r);return e};Object.defineProperty(Ka,"__esModule",{value:!0});Ka.getStatusText=Ka.getStatusCode=Ka.getReasonPhrase=void 0;var mz=vz();Ka.getReasonPhrase=yz;Ka.getStatusCode=KUe;Ka.getStatusText=yz});function cE(r){if(r===null||(typeof r==="undefined"?"undefined":_type_of(r))!="object")return!1;var e=Object.getPrototypeOf(r);return e!==null&&e!==Object.prototype&&Object.getPrototypeOf(e)!==null||Symbol.iterator in r?!1:Symbol.toStringTag in r?Object.prototype.toString.call(r)==="[object Module]":!0}function pE(r,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".",n=arguments.length>3?arguments[3]:void 0;if(!cE(e))return pE(r,{},t,n);var i=Object.assign({},e);for(var a in r){if(a==="__proto__"||a==="constructor")continue;var o=r[a];o!=null&&(n&&n(i,a,o,t)||(Array.isArray(o)&&Array.isArray(i[a])?i[a]=_to_consumable_array(o).concat(_to_consumable_array(i[a])):cE(o)&&cE(i[a])?i[a]=pE(o,i[a],(t?"".concat(t,"."):"")+a.toString(),n):i[a]=o))}return i}function HUe(r){return function(){for(var _len=arguments.length,e=new Array(_len),_key=0;_key<_len;_key++){e[_key]=arguments[_key]}return e.reduce(function(t,n){return pE(t,n,"",r)},{})}}function XUe(r){return Object.prototype.toString.call(r)==="[object Object]"}function YUe(r){return!(!XUe(r)||!r.message&&!r.args||r.stack)}function fE(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:3;return r===void 0?t:typeof r=="number"?r:e[r]&&e[r].level!==void 0?e[r].level:t}function wz(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return new Br(r)}var bt,dE,QUe,lE,_z,Br,hE=Ds(function(){bt={silent:Number.NEGATIVE_INFINITY,fatal:0,error:0,warn:1,log:2,info:3,success:3,fail:3,ready:3,start:3,box:3,debug:4,trace:5,verbose:Number.POSITIVE_INFINITY},dE={silent:{level:-1},fatal:{level:bt.fatal},error:{level:bt.error},warn:{level:bt.warn},log:{level:bt.log},info:{level:bt.info},success:{level:bt.success},fail:{level:bt.fail},ready:{level:bt.info},start:{level:bt.info},box:{level:bt.info},debug:{level:bt.debug},trace:{level:bt.trace},verbose:{level:bt.verbose}};QUe=HUe();lE=!1,_z=[],Br=/*#__PURE__*/function(){"use strict";function Br1(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};_class_call_check(this,Br1);rr(this,"options");rr(this,"_lastLog");rr(this,"_mockFn");var t=e.types||dE;this.options=QUe(Se(j({},e),{defaults:j({},e.defaults),level:fE(e.level,t),reporters:_to_consumable_array(e.reporters||[])}),{types:dE,throttle:1e3,throttleMin:5,formatOptions:{date:!0,colors:!1,compact:!0}});for(var n in t){var i=j(j({type:n},this.options.defaults),t[n]);this[n]=this._wrapLogFn(i),this[n].raw=this._wrapLogFn(i,!0)}this.options.mockFn&&this.mockTypes(),this._lastLog={}}_create_class(Br1,[{key:"level",get:function get(){return this.options.level},set:function set(e){this.options.level=fE(e,this.options.types,this.options.level)}},{key:"prompt",value:function prompt1(e,t){if(!this.options.prompt)throw new Error("prompt is not supported!");return this.options.prompt(e,t)}},{key:"create",value:function create(e){var t=new Br(j(j({},this.options),e));return this._mockFn&&t.mockTypes(this._mockFn),t}},{key:"withDefaults",value:function withDefaults(e){return this.create(Se(j({},this.options),{defaults:j(j({},this.options.defaults),e)}))}},{key:"withTag",value:function withTag(e){return this.withDefaults({tag:this.options.defaults.tag?this.options.defaults.tag+":"+e:e})}},{key:"addReporter",value:function addReporter(e){return this.options.reporters.push(e),this}},{key:"removeReporter",value:function removeReporter(e){if(e){var t=this.options.reporters.indexOf(e);if(t!==-1)return this.options.reporters.splice(t,1)}else this.options.reporters.splice(0);return this}},{key:"setReporters",value:function setReporters(e){return this.options.reporters=Array.isArray(e)?e:[e],this}},{key:"wrapAll",value:function wrapAll(){this.wrapConsole(),this.wrapStd()}},{key:"restoreAll",value:function restoreAll(){this.restoreConsole(),this.restoreStd()}},{key:"wrapConsole",value:function wrapConsole(){for(var e in this.options.types)console["__"+e]||(console["__"+e]=console[e]),console[e]=this[e].raw}},{key:"restoreConsole",value:function restoreConsole(){for(var e in this.options.types)console["__"+e]&&(console[e]=console["__"+e],delete console["__"+e])}},{key:"wrapStd",value:function wrapStd(){this._wrapStream(this.options.stdout,"log"),this._wrapStream(this.options.stderr,"log")}},{key:"_wrapStream",value:function _wrapStream(e,t){var _this=this;e&&(e.__write||(e.__write=e.write),e.write=function(n){_this[t].raw(String(n).trim())})}},{key:"restoreStd",value:function restoreStd(){this._restoreStream(this.options.stdout),this._restoreStream(this.options.stderr)}},{key:"_restoreStream",value:function _restoreStream(e){e&&e.__write&&(e.write=e.__write,delete e.__write)}},{key:"pauseLogs",value:function pauseLogs(){lE=!0}},{key:"resumeLogs",value:function resumeLogs(){lE=!1;var e=_z.splice(0);var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;try{for(var _iterator=e[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var t=_step.value;t[0]._logFn(t[1],t[2])}}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}}},{key:"mockTypes",value:function mockTypes(e){var t=e||this.options.mockFn;if(this._mockFn=t,typeof t=="function")for(var n in this.options.types)this[n]=t(n,this.options.types[n])||this[n],this[n].raw=this[n]}},{key:"_wrapLogFn",value:function _wrapLogFn(e,t){var _this=this;return function(){for(var _len=arguments.length,n=new Array(_len),_key=0;_key<_len;_key++){n[_key]=arguments[_key]}if(lE){_z.push([_this,e,n,t]);return}return _this._logFn(e,n,t)}}},{key:"_logFn",value:function _logFn(e,t,n){var _this=this;if((e.level||0)>this.level)return!1;var i=Se(j({date:new Date,args:[]},e),{level:fE(e.level,this.options.types)});!n&&t.length===1&&YUe(t[0])?Object.assign(i,t[0]):i.args=_to_consumable_array(t),i.message&&(i.args.unshift(i.message),delete i.message),i.additional&&(Array.isArray(i.additional)||(i.additional=i.additional.split("\n")),i.args.push("\n"+i.additional.join("\n")),delete i.additional),i.type=typeof i.type=="string"?i.type.toLowerCase():"log",i.tag=typeof i.tag=="string"?i.tag:"";var a=function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;var u=(_this._lastLog.count||0)-_this.options.throttleMin;if(_this._lastLog.object&&u>0){var c=_to_consumable_array(_this._lastLog.object.args);u>1&&c.push("(repeated ".concat(u," times)")),_this._log(Se(j({},_this._lastLog.object),{args:c})),_this._lastLog.count=1}s&&(_this._lastLog.object=i,_this._log(i))};clearTimeout(this._lastLog.timeout);var o=this._lastLog.time&&i.date?i.date.getTime()-this._lastLog.time.getTime():0;if(this._lastLog.time=i.date,o<this.options.throttle)try{var s=JSON.stringify([i.type,i.tag,i.args]),u=this._lastLog.serialized===s;if(this._lastLog.serialized=s,u&&(this._lastLog.count=(this._lastLog.count||0)+1,this._lastLog.count>this.options.throttleMin)){this._lastLog.timeout=setTimeout(a,this.options.throttle);return}}catch(s){}a(!0)}},{key:"_log",value:function _log(e){var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;try{for(var _iterator=this.options.reporters[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var t=_step.value;t.log(e,{options:this.options})}}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}}}]);return Br1}();Br.prototype.add=Br.prototype.addReporter;Br.prototype.remove=Br.prototype.removeReporter;Br.prototype.clear=Br.prototype.removeReporter;Br.prototype.withScope=Br.prototype.withTag;Br.prototype.mock=Br.prototype.mockTypes;Br.prototype.pause=Br.prototype.pauseLogs;Br.prototype.resume=Br.prototype.resumeLogs});function gE(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return wz(j({reporters:r.reporters||[new xE({})],prompt:function prompt1(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return n.type==="confirm"?Promise.resolve(confirm(t)):Promise.resolve(prompt(t))}},r))}var xE,Dmr,Sz=Ds(function(){hE();hE();xE=/*#__PURE__*/function(){"use strict";function xE1(e){_class_call_check(this,xE1);rr(this,"options");rr(this,"defaultColor");rr(this,"levelColorMap");rr(this,"typeColorMap");this.options=j({},e),this.defaultColor="#7f8c8d",this.levelColorMap={0:"#c0392b",1:"#f39c12",3:"#00BCD4"},this.typeColorMap={success:"#2ecc71"}}_create_class(xE1,[{key:"_getLogFn",value:function _getLogFn(e){return e<1?console.__error||console.error:e===1?console.__warn||console.warn:console.__log||console.log}},{key:"log",value:function log(e){var t=this._getLogFn(e.level),n=e.type==="log"?"":e.type,i=e.tag||"",o="\n background: ".concat(this.typeColorMap[e.type]||this.levelColorMap[e.level]||this.defaultColor,";\n border-radius: 0.5em;\n color: white;\n font-weight: bold;\n padding: 2px 0.5em;\n "),s="%c".concat([i,n].filter(Boolean).join(":"));typeof e.args[0]=="string"?t.apply(void 0,["".concat(s,"%c ").concat(e.args[0]),o,""].concat(_to_consumable_array(e.args.slice(1)))):t.apply(void 0,[s,o].concat(_to_consumable_array(e.args)))}}]);return xE1}();Dmr=gE()});var JUe,ce,Pr=Ds(function(){Sz();JUe=gE({level:bt.verbose,formatOptions:{date:!0,colors:!1}}),ce=JUe});function fi(r){return D(this,null,function(){var e,t,_tmp,_tmp1;return _ts_generator(this,function(_state){switch(_state.label){case 0:t=!0;if(!(typeof r=="string"))return[3,2];return[4,(0,Rx.requestUrl)({url:r,throw:!1})];case 1:_tmp=e=_state.sent();return[3,7];case 2:if(!(r.throw!==!1))return[3,4];return[4,(0,Rx.requestUrl)(Se(j({},r),{throw:!1}))];case 3:_tmp1=e=_state.sent();return[3,6];case 4:return[4,(0,Rx.requestUrl)(r)];case 5:_tmp1=(e=_state.sent(),t=!1);_state.label=6;case 6:_tmp=_tmp1;_state.label=7;case 7:if(_tmp,e.status>=400&&(ce.error(e),t))throw new vE(e);return[2,e]}})})}var Rx,vE,id=Ds(function(){Rx=require("obsidian");Pr();vE=/*#__PURE__*/function(Error1){"use strict";_inherits(vE1,Error1);function vE1(t){_class_call_check(this,vE1);var _this;_this=_call_super(this,vE1,["".concat(t.status,": ").concat(t.text)]);_this.res=t;return _this}return vE1}(_wrap_native_super(Error))});function lr(r){var e=Ez[r];if(e!==void 0)return e.exports;var t=Ez[r]={id:r,loaded:!1,exports:{}};return ZUe[r].call(t.exports,t,t.exports,lr),t.loaded=!0,t.exports}function mE(r){if(!TE(r))throw new Error("Parameter was not an error")}function TE(r){return!!r&&(typeof r==="undefined"?"undefined":_type_of(r))=="object"&&(e=r,Object.prototype.toString.call(e)==="[object Error]")||_instanceof(r,Error);var e}function Er(r){try{var _$e1=r.replace(/\//g,qz).replace(/\\\\/g,Tz);return encodeURIComponent(_$e1).split(Tz).join("\\\\").split(qz).join("/")}catch(e){throw new ht(e,"Failed encoding path")}}function Az(r){return r.startsWith("/")?r:"/"+r}function cd(r){var e=r;return e[0]!=="/"&&(e="/"+e),/^.+\/$/.test(e)&&(e=e.substr(0,e.length-1)),e}function nje(r){var e=new(rje())(r).pathname;return e.length<=0&&(e="/"),cd(e)}function qr(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return function(){return function(n){var i=[];if(n.length===0)return"";if(typeof n[0]!="string")throw new TypeError("Url must be a string. Received "+n[0]);if(n[0].match(/^[^/:]+:\/*$/)&&n.length>1){var a=n.shift();n[0]=a+n[0]}n[0].match(/^file:\/\/\//)?n[0]=n[0].replace(/^([^/:]+):\/*/,"$1:///"):n[0]=n[0].replace(/^([^/:]+):\/*/,"$1://");for(var o=0;o<n.length;o++){var s=n[o];if(typeof s!="string")throw new TypeError("Url must be a string. Received "+s);s!==""&&(o>0&&(s=s.replace(/^[\/]+/,"")),s=o<n.length-1?s.replace(/[\/]+$/,""):s.replace(/[\/]+$/,"/"),i.push(s))}var u=i.join("/"),c=(u=u.replace(/\/(\?|&|#[^!])/g,"$1")).split("?");return c.shift()+(c.length>0?"?":"")+c.join("&")}(_type_of(arguments[0])=="object"?arguments[0]:[].slice.call(arguments))}(e.reduce(function(n,i,a){return(a===0||i!=="/"||i==="/"&&n[n.length-1]!=="/")&&n.push(i),n},[]))}function Oz(r,e){var t=r.url.replace("//",""),n=t.indexOf("/")==-1?"/":t.slice(t.indexOf("/")),i=r.method?r.method.toUpperCase():"GET",a=!!/(^|,)\s*auth\s*($|,)/.test(e.qop)&&"auth",o="00000000".concat(e.nc).slice(-8),s=function(d,p,x,h,v,y,m){var b=m||ad()("".concat(p,":").concat(x,":").concat(h));return d&&d.toLowerCase()==="md5-sess"?ad()("".concat(b,":").concat(v,":").concat(y)):b}(e.algorithm,e.username,e.realm,e.password,e.nonce,e.cnonce,e.ha1),u=ad()("".concat(i,":").concat(n)),c=a?ad()("".concat(s,":").concat(e.nonce,":").concat(o,":").concat(e.cnonce,":").concat(a,":").concat(u)):ad()("".concat(s,":").concat(e.nonce,":").concat(u)),l={username:e.username,realm:e.realm,nonce:e.nonce,uri:n,qop:a,response:c,nc:o,cnonce:e.cnonce,algorithm:e.algorithm,opaque:e.opaque},f=[];for(var d in l)l[d]&&(d==="qop"||d==="nc"||d==="algorithm"?f.push("".concat(d,"=").concat(l[d])):f.push("".concat(d,'="').concat(l[d],'"')));return"Digest ".concat(f.join(", "))}function Vz(r){return(r.headers&&r.headers.get("www-authenticate")||"").split(/\s/)[0].toLowerCase()==="digest"}function Rz(r){return Gz().decode(r)}function Iz(r,e){var t;return"Basic ".concat((t="".concat(r,":").concat(e),Gz().encode(t)))}function zz(r,e,t,n,i){switch(r.authType){case Pt.Auto:e&&t&&(r.headers.Authorization=Iz(e,t));break;case Pt.Digest:r.digest=function(o,s,u){return{username:o,password:s,ha1:u,nc:0,algorithm:"md5",hasDigestAuth:!1}}(e,t,i);break;case Pt.None:break;case Pt.Password:r.headers.Authorization=Iz(e,t);break;case Pt.Token:r.headers.Authorization="".concat((a=n).token_type," ").concat(a.access_token);break;default:throw new ht({info:{code:$i.InvalidAuthType}},"Invalid auth type: ".concat(r.authType))}var a}function yE(r){return{original:r,methods:[r],final:!1}}function Kz(){return bE||(bE=new AE),bE}function Nx(r){return function(e){if((typeof e==="undefined"?"undefined":_type_of(e))!="object"||e===null||Object.prototype.toString.call(e)!="[object Object]")return!1;if(Object.getPrototypeOf(e)===null)return!0;var t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(r)?Object.assign({},r):Object.setPrototypeOf(Object.assign({},r),Object.getPrototypeOf(r))}function Cz(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];var n=null,i=_to_consumable_array(e);for(;i.length>0;){var a=i.shift();n=n?Hz(n,a):Nx(a)}return n}function Hz(r,e){var t=Nx(r);return Object.keys(e).forEach(function(n){t.hasOwnProperty(n)?Array.isArray(e[n])?t[n]=Array.isArray(t[n])?_to_consumable_array(t[n]).concat(_to_consumable_array(e[n])):_to_consumable_array(e[n]):_type_of(e[n])=="object"&&e[n]?t[n]=_type_of(t[n])=="object"&&t[n]?Hz(t[n],e[n]):Nx(e[n]):t[n]=e[n]:t[n]=e[n]}),t}function fje(r){var e={};var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;try{for(var _iterator=r.keys()[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var t=_step.value;e[t]=r.get(t)}}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}return e}function OE(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];if(e.length===0)return{};var n={};return e.reduce(function(i,a){return Object.keys(a).forEach(function(o){var s=o.toLowerCase();n.hasOwnProperty(s)?i[n[s]]=a[o]:(n[s]=o,i[o]=a[o])}),i},{})}function Qz(r){return dje&&(_instanceof(r,ArrayBuffer)||pje.call(r)==="[object ArrayBuffer]")}function Xz(r){return r!=null&&r.constructor!=null&&typeof r.constructor.isBuffer=="function"&&r.constructor.isBuffer(r)}function NE(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];try{return Promise.resolve(r.apply(this,e))}catch(n){return Promise.reject(n)}}}function RE(r,e,t){return t?e?e(r):r:(r&&r.then||(r=Promise.resolve(r)),e?r.then(e):r)}function Kr(r,e,t){var n=Nx(r);return n.headers=OE(e.headers,n.headers||{},t.headers||{}),t.data!==void 0&&(n.data=t.data),t.signal&&(n.signal=t.signal),e.httpAgent&&(n.httpAgent=e.httpAgent),e.httpsAgent&&(n.httpsAgent=e.httpsAgent),e.digest&&(n._digest=e.digest),typeof e.withCredentials=="boolean"&&(n.withCredentials=e.withCredentials),n}function kx(r){var e=Kz();return e.patchInline("request",function(t){return e.patchInline("fetch",sje,t.url,function(n){var i={},a={method:n.method};if(n.headers&&(i=OE(i,n.headers)),n.data!==void 0){var _ref=_sliced_to_array(function(u){if(typeof u=="string")return[u,{}];if(Xz(u))return[u,{}];if(Qz(u))return[u,{}];if(u&&(typeof u==="undefined"?"undefined":_type_of(u))=="object")return[JSON.stringify(u),{"content-type":"application/json"}];throw new Error("Unable to convert request body: Unexpected body type: "+(typeof u==="undefined"?"undefined":_type_of(u)))}(n.data),2),o=_ref[0],s=_ref[1];a.body=o,i=OE(i,s)}return n.signal&&(a.signal=n.signal),n.withCredentials&&(a.credentials="include"),a.headers=i,a}(t))},r)}function LE(r){var e=new Error("".concat(arguments.length>1&&arguments[1]!==void 0?arguments[1]:"","Invalid response: ").concat(r.status," ").concat(r.statusText));return e.status=r.status,e.response=r,e}function Hr(r,e){var t=e.status;if(t===401&&r.digest)return e;if(t>=400)throw LE(e);return e}function ss(r,e){return arguments.length>2&&arguments[2]!==void 0&&arguments[2]?{data:e,headers:r.headers?fje(r.headers):{},status:r.status,statusText:r.statusText}:e}function Ix(r,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Gu.Original,n=Ui().get(r,e);return t==="array"&&Array.isArray(n)===!1?[n]:t==="object"&&Array.isArray(n)?n[0]:n}function pd(r){return new Promise(function(e){e(function(t){var n=t.multistatus;if(n==="")return{multistatus:{response:[]}};if(!n)throw new Error("Invalid response: No root multistatus found");var i={multistatus:Array.isArray(n)?n[0]:n};return Ui().set(i,"multistatus.response",Ix(i,"multistatus.response",Gu.Array)),Ui().set(i,"multistatus.response",Ui().get(i,"multistatus.response").map(function(a){return function(o){var s=Object.assign({},o);return s.status?Ui().set(s,"status",Ix(s,"status",Gu.Object)):(Ui().set(s,"propstat",Ix(s,"propstat",Gu.Object)),Ui().set(s,"propstat.prop",Ix(s,"propstat.prop",Gu.Object))),s}(a)})),i}(new DE.XMLParser({allowBooleanAttributes:!0,attributeNamePrefix:"",textNodeName:"text",ignoreAttributes:!1,removeNSPrefix:!0,numberParseOptions:{hex:!0,leadingZeros:!1},attributeValueProcessor:function(t,n,i){return n==="true"||n==="false"?n==="true":n},tagValueProcessor:function tagValueProcessor(t,n,i){if(!i.endsWith("propstat.prop.displayname"))return n}}).parse(r)))})}function Fx(r,e){var t=arguments.length>2&&arguments[2]!==void 0&&arguments[2],tmp=r.getlastmodified,n=tmp===void 0?null:tmp,tmp1=r.getcontentlength,i=tmp1===void 0?"0":tmp1,tmp2=r.resourcetype,a=tmp2===void 0?null:tmp2,tmp3=r.getcontenttype,o=tmp3===void 0?null:tmp3,tmp4=r.getetag,s=tmp4===void 0?null:tmp4,u=a&&(typeof a==="undefined"?"undefined":_type_of(a))=="object"&&a.collection!==void 0?"directory":"file",c={filename:e,basename:Cx().basename(e),lastmod:n,size:parseInt(i,10),type:u,etag:typeof s=="string"?s.replace(/"/g,""):null};return u==="file"&&(c.mime=o&&typeof o=="string"?o.split(";")[0]:""),t&&(r.displayname!==void 0&&(r.displayname=String(r.displayname)),c.props=r),c}function iK(r,e){var t=arguments.length>2&&arguments[2]!==void 0&&arguments[2],n=null;try{r.multistatus.response[0].propstat&&(n=r.multistatus.response[0])}catch(l){}if(!n)throw new Error("Failed getting item stat: bad response");var _n_propstat=n.propstat,i=_n_propstat.prop,a=_n_propstat.status,_a_split=_sliced_to_array(a.split(" ",3),3),o=_a_split[0],s=_a_split[1],u=_a_split[2],c=parseInt(s,10);if(c>=400){var l=new Error("Invalid response: ".concat(c," ").concat(u));throw l.status=c,l}return Fx(i,cd(e),t)}function aK(r){switch(String(r)){case"-3":return"unlimited";case"-2":case"-1":return"unknown";default:return parseInt(String(r),10)}}function wE(r,e,t){return t?e?e(r):r:(r&&r.then||(r=Promise.resolve(r)),e?r.then(e):r)}function oK(r,e,t){return t?e?e(r):r:(r&&r.then||(r=Promise.resolve(r)),e?r.then(e):r)}function sK(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];try{return Promise.resolve(r.apply(this,e))}catch(n){return Promise.reject(n)}}}function $je(){}function Fz(r,e){if(!e)return r&&r.then?r.then($je):Promise.resolve()}function Ct(r,e,t){if(!r.s){if(_instanceof(t,zu)){if(!t.s)return void(t.o=Ct.bind(null,r,e));1&e&&(e=t.s),t=t.v}if(t&&t.then)return void t.then(Ct.bind(null,r,e),Ct.bind(null,r,2));r.s=e,r.v=t;var n=r.o;n&&n(r)}}function Uz(r){return _instanceof(r,zu)&&1&r.s}function SE(r,e,t){return t?e?e(r):r:(r&&r.then||(r=Promise.resolve(r)),e?r.then(e):r)}function ME(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];try{return Promise.resolve(r.apply(this,e))}catch(n){return Promise.reject(n)}}}function Dx(r,e,t){return t?e?e(r):r:(r&&r.then||(r=Promise.resolve(r)),e?r.then(e):r)}function r$e(r){return new DE.XMLBuilder({attributeNamePrefix:"@_",format:!0,ignoreAttributes:!1,suppressEmptyNode:!0}).build(uK({lockinfo:{"@_xmlns:d":"DAV:",lockscope:{exclusive:{}},locktype:{write:{}},owner:{href:r}}},"d"))}function uK(r,e){var t=j({},r);for(var n in t)t.hasOwnProperty(n)&&(t[n]&&_type_of(t[n])=="object"&&n.indexOf(":")===-1?(t["".concat(e,":").concat(n)]=uK(t[n],e),delete t[n]):/^@_/.test(n)===!1&&(t["".concat(e,":").concat(n)]=t[n],delete t[n]));return t}function CE(r,e,t){return t?e?e(r):r:(r&&r.then||(r=Promise.resolve(r)),e?r.then(e):r)}function cK(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];try{return Promise.resolve(r.apply(this,e))}catch(n){return Promise.reject(n)}}}function EE(r,e,t){return t?e?e(r):r:(r&&r.then||(r=Promise.resolve(r)),e?r.then(e):r)}function qE(r,e,t){return t?e?e(r):r:(r&&r.then||(r=Promise.resolve(r)),e?r.then(e):r)}function ud(r,e,t){return t?e?e(r):r:(r&&r.then||(r=Promise.resolve(r)),e?r.then(e):r)}function $z(r,e){var t=r();return t&&t.then?t.then(e):e(t)}function FE(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];try{return Promise.resolve(r.apply(this,e))}catch(n){return Promise.reject(n)}}}function h$e(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},tmp=e.authType,t=tmp===void 0?null:tmp,n=e.remoteBasePath,tmp1=e.contactHref,i=tmp1===void 0?p$e:tmp1,a=e.ha1,tmp2=e.headers,o=tmp2===void 0?{}:tmp2,s=e.httpAgent,u=e.httpsAgent,c=e.password,l=e.token,f=e.username,d=e.withCredentials,p=t;p||(p=f||c?Pt.Password:Pt.None);var x={authType:p,remoteBasePath:n,contactHref:i,ha1:a,headers:Object.assign({},o),httpAgent:s,httpsAgent:u,password:c,remotePath:nje(r),remoteURL:r,token:l,username:f,withCredentials:d};return zz(x,f,c,l,a),{copyFile:function(h,v,y){return Bje(x,h,v,y)},createDirectory:function(h,v){return PE(x,h,v)},createReadStream:function(h,v){return function(y,m){var b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},S=new(jz()).PassThrough;return Gje(y,m,b).then(function(T){T.pipe(S)}).catch(function(T){S.emit("error",T)}),S}(x,h,v)},createWriteStream:function(h,v,y){return function(m,b){var S=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},T=arguments.length>3&&arguments[3]!==void 0?arguments[3]:zje,w=new(jz()).PassThrough,R={};S.overwrite===!1&&(R["If-None-Match"]="*");var _=Kr({url:qr(m.remoteURL,Er(b)),method:"PUT",headers:R,data:w,maxRedirects:0},m,S);return zr(_,m).then(function(E){return Hr(m,E)}).then(function(E){setTimeout(function(){T(E)},0)}).catch(function(E){w.emit("error",E)}),w}(x,h,v,y)},customRequest:function(h,v){return Kje(x,h,v)},deleteFile:function(h,v){return Hje(x,h,v)},exists:function(h,v){return Qje(x,h,v)},getDirectoryContents:function(h,v){return Xje(x,h,v)},getFileContents:function(h,v){return Zje(x,h,v)},getFileDownloadLink:function(h){return function(v,y){var m=qr(v.remoteURL,Er(y)),b=/^https:/i.test(m)?"https":"http";switch(v.authType){case Pt.None:break;case Pt.Password:{var S=Rz(v.headers.Authorization.replace(/^Basic /i,"").trim());m=m.replace(/^https?:\/\//,"".concat(b,"://").concat(S,"@"));break}default:throw new ht({info:{code:$i.LinkUnsupportedAuthType}},"Unsupported auth type for file link: ".concat(v.authType))}return m}(x,h)},getFileUploadLink:function(h){return function(v,y){var m="".concat(qr(v.remoteURL,Er(y)),"?Content-Type=application/octet-stream"),b=/^https:/i.test(m)?"https":"http";switch(v.authType){case Pt.None:break;case Pt.Password:{var S=Rz(v.headers.Authorization.replace(/^Basic /i,"").trim());m=m.replace(/^https?:\/\//,"".concat(b,"://").concat(S,"@"));break}default:throw new ht({info:{code:$i.LinkUnsupportedAuthType}},"Unsupported auth type for file link: ".concat(v.authType))}return m}(x,h)},getHeaders:function(){return Object.assign({},x.headers)},getQuota:function(h){return a$e(x,h)},lock:function(h,v){return n$e(x,h,v)},moveFile:function(h,v,y){return s$e(x,h,v,y)},putFileContents:function(h,v,y){return c$e(x,h,v,y)},partialUpdateFileContents:function(h,v,y,m,b){return d$e(x,h,v,y,m,b)},getDAVCompliance:function(h){return lK(x,h)},search:function(h,v){return o$e(x,h,v)},setHeaders:function(h){x.headers=Object.assign({},h)},stat:function(h,v){return WE(x,h,v)},unlock:function(h,v,y){return t$e(x,h,v,y)}}}var ZUe,Ez,qn,eje,rje,ht,tje,Cx,qz,Tz,ije,ad,aje,oje,Gz,ld,sje,uje,cje,Pt,$i,Pz,lje,AE,bE,dje,pje,Yz,hje,zr,xje,Lx,gje,od,Nz,vje,sd,mje,kz,_E,yje,bje,_je,kE,Lz,Dz,Gr,nt,ji,wr,Ur,Ha,as,Qa,di,os,fd,Wx,Jz,Ku,Px,dd,IE,Mx,Zz,Ht,Vu,_t,wje,Sje,Eje,qje,Tje,Aje,Oje,Rje,Ije,Pje,Cje,Nje,kje,Lje,Dje,Wje,Mje,Fje,eK,rK,tK,En,Sn,nK,Wz,Hu,Bje,Mz,DE,Uje,Ui,Gu,WE,jje,Bz,zu,PE,Vje,jz,Gje,zje,Kje,Hje,Qje,Xje,Yje,Jje,Zje,e$e,t$e,n$e,i$e,a$e,o$e,s$e,u$e,c$e,lK,l$e,f$e,d$e,p$e,Kmr,Hmr,Qmr,Xmr,hd,fK,Ymr,Jmr,Zmr,eyr,ryr,Bx=Ds(function(){ZUe={2:function(r){var e=function e(i,a,o){_instanceof(i,RegExp)&&(i=t(i,o)),_instanceof(a,RegExp)&&(a=t(a,o));var s=n(i,a,o);return s&&{start:s[0],end:s[1],pre:o.slice(0,s[0]),body:o.slice(s[0]+i.length,s[1]),post:o.slice(s[1]+a.length)}};var t=function t(i,a){var o=a.match(i);return o?o[0]:null};var n=function n(i,a,o){var s,u,c,l,f,d=o.indexOf(i),p=o.indexOf(a,d+1),x=d;if(d>=0&&p>0){for(s=[],c=o.length;x>=0&&!f;)x==d?(s.push(x),d=o.indexOf(i,x+1)):s.length==1?f=[s.pop(),p]:((u=s.pop())<c&&(c=u,l=p),p=o.indexOf(a,x+1)),x=d<p&&d>=0?d:p;s.length&&(f=[c,l])}return f};r.exports=e,e.range=n},101:function(r,e,t){var n;r=t.nmd(r),function(i){var a=(r&&r.exports,(typeof global==="undefined"?"undefined":_type_of(global))=="object"&&global);a.global!==a&&a.window;var o=function o(f){this.message=f};(o.prototype=new Error).name="InvalidCharacterError";var s=function s(f){throw new o(f)},u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=/[\t\n\f\r ]/g,l={encode:function encode(f){f=String(f),/[^\0-\xFF]/.test(f)&&s("The string to be encoded contains characters outside of the Latin1 range.");for(var d,p,x,h,v=f.length%3,y="",m=-1,b=f.length-v;++m<b;)d=f.charCodeAt(m)<<16,p=f.charCodeAt(++m)<<8,x=f.charCodeAt(++m),y+=u.charAt((h=d+p+x)>>18&63)+u.charAt(h>>12&63)+u.charAt(h>>6&63)+u.charAt(63&h);return v==2?(d=f.charCodeAt(m)<<8,p=f.charCodeAt(++m),y+=u.charAt((h=d+p)>>10)+u.charAt(h>>4&63)+u.charAt(h<<2&63)+"="):v==1&&(h=f.charCodeAt(m),y+=u.charAt(h>>2)+u.charAt(h<<4&63)+"=="),y},decode:function decode(f){var d=(f=String(f).replace(c,"")).length;d%4==0&&(d=(f=f.replace(/==?$/,"")).length),(d%4==1||/[^+a-zA-Z0-9/]/.test(f))&&s("Invalid character: the string to be decoded is not correctly encoded.");for(var p,x,h=0,v="",y=-1;++y<d;)x=u.indexOf(f.charAt(y)),p=h%4?64*p+x:x,h++%4&&(v+=String.fromCharCode(255&p>>(-2*h&6)));return v},version:"1.0.0"};(n=(function(){return l}).call(e,t,e,r))===void 0||(r.exports=n)}()},172:function(r,e){e.d=function(t){if(!t)return 0;for(var n=(t=t.toString()).length,i=t.length;i--;){var a=t.charCodeAt(i);56320<=a&&a<=57343&&i--,127<a&&a<=2047?n++:2047<a&&a<=65535&&(n+=2)}return n}},526:function(r){var e={utf8:{stringToBytes:function stringToBytes(t){return e.bin.stringToBytes(unescape(encodeURIComponent(t)))},bytesToString:function bytesToString(t){return decodeURIComponent(escape(e.bin.bytesToString(t)))}},bin:{stringToBytes:function stringToBytes(t){for(var n=[],i=0;i<t.length;i++)n.push(255&t.charCodeAt(i));return n},bytesToString:function bytesToString(t){for(var n=[],i=0;i<t.length;i++)n.push(String.fromCharCode(t[i]));return n.join("")}}};r.exports=e},298:function(r){var e,t;e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t={rotl:function rotl(n,i){return n<<i|n>>>32-i},rotr:function rotr(n,i){return n<<32-i|n>>>i},endian:function endian(n){if(n.constructor==Number)return 0xff00ff&t.rotl(n,8)|0xff00ff00&t.rotl(n,24);for(var i=0;i<n.length;i++)n[i]=t.endian(n[i]);return n},randomBytes:function randomBytes(n){for(var i=[];n>0;n--)i.push(Math.floor(256*Math.random()));return i},bytesToWords:function bytesToWords(n){for(var i=[],a=0,o=0;a<n.length;a++,o+=8)i[o>>>5]|=n[a]<<24-o%32;return i},wordsToBytes:function wordsToBytes(n){for(var i=[],a=0;a<32*n.length;a+=8)i.push(n[a>>>5]>>>24-a%32&255);return i},bytesToHex:function bytesToHex(n){for(var i=[],a=0;a<n.length;a++)i.push((n[a]>>>4).toString(16)),i.push((15&n[a]).toString(16));return i.join("")},hexToBytes:function hexToBytes(n){for(var i=[],a=0;a<n.length;a+=2)i.push(parseInt(n.substr(a,2),16));return i},bytesToBase64:function bytesToBase64(n){for(var i=[],a=0;a<n.length;a+=3)for(var o=n[a]<<16|n[a+1]<<8|n[a+2],s=0;s<4;s++)8*a+6*s<=8*n.length?i.push(e.charAt(o>>>6*(3-s)&63)):i.push("=");return i.join("")},base64ToBytes:function base64ToBytes(n){n=n.replace(/[^A-Z0-9+\/]/gi,"");for(var i=[],a=0,o=0;a<n.length;o=++a%4)o!=0&&i.push((e.indexOf(n.charAt(a-1))&Math.pow(2,-2*o+8)-1)<<2*o|e.indexOf(n.charAt(a))>>>6-2*o);return i}},r.exports=t},635:function(r,e,t){var n=t(31),i=t(338),a=t(221);r.exports={XMLParser:i,XMLValidator:n,XMLBuilder:a}},118:function(r){r.exports=function(e){return typeof e=="function"?e:Array.isArray(e)?function(t){var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;try{for(var _iterator=e[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var n=_step.value;if(typeof n=="string"&&t===n||_instanceof(n,RegExp)&&n.test(t))return!0}}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}}:function(){return!1}}},705:function(r,e){var t=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",n="["+t+"]["+t+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*",i=new RegExp("^"+n+"$");e.isExist=function(a){return a!==void 0},e.isEmptyObject=function(a){return Object.keys(a).length===0},e.merge=function(a,o,s){if(o){var u=Object.keys(o),c=u.length;for(var l=0;l<c;l++)a[u[l]]=s==="strict"?[o[u[l]]]:o[u[l]]}},e.getValue=function(a){return e.isExist(a)?a:""},e.isName=function(a){return i.exec(a)!=null},e.getAllMatches=function(a,o){var s=[],u=o.exec(a);for(;u;){var c=[];c.startIndex=o.lastIndex-u[0].length;var l=u.length;for(var f=0;f<l;f++)c.push(u[f]);s.push(c),u=o.exec(a)}return s},e.nameRegexp=n},31:function(r,e,t){var a=function a(m){return m===" "||m===" "||m==="\n"||m==="\r"};var o=function o(m,b){var S=b;for(;b<m.length;b++)if(!(m[b]!="?"&&m[b]!=" ")){var T=m.substr(S,b-S);if(b>5&&T==="xml")return x("InvalidXml","XML declaration allowed only at the start of the document.",v(m,b));if(m[b]=="?"&&m[b+1]==">"){b++;break}}return b};var s=function s(m,b){if(m.length>b+5&&m[b+1]==="-"&&m[b+2]==="-"){for(b+=3;b<m.length;b++)if(m[b]==="-"&&m[b+1]==="-"&&m[b+2]===">"){b+=2;break}}else if(m.length>b+8&&m[b+1]==="D"&&m[b+2]==="O"&&m[b+3]==="C"&&m[b+4]==="T"&&m[b+5]==="Y"&&m[b+6]==="P"&&m[b+7]==="E"){var S=1;for(b+=8;b<m.length;b++)if(m[b]==="<")S++;else if(m[b]===">"&&(S--,S===0))break}else if(m.length>b+9&&m[b+1]==="["&&m[b+2]==="C"&&m[b+3]==="D"&&m[b+4]==="A"&&m[b+5]==="T"&&m[b+6]==="A"&&m[b+7]==="["){for(b+=8;b<m.length;b++)if(m[b]==="]"&&m[b+1]==="]"&&m[b+2]===">"){b+=2;break}}return b};var l=function l(m,b){var S="",T="",w=!1;for(;b<m.length;b++){if(m[b]===u||m[b]===c)T===""?T=m[b]:T!==m[b]||(T="");else if(m[b]===">"&&T===""){w=!0;break}S+=m[b]}return T===""&&{value:S,index:b,tagClosed:w}};var d=function d(m,b){var S=n.getAllMatches(m,f),T={};for(var w=0;w<S.length;w++){if(S[w][1].length===0)return x("InvalidAttr","Attribute '"+S[w][2]+"' has no space in starting.",y(S[w]));if(S[w][3]!==void 0&&S[w][4]===void 0)return x("InvalidAttr","Attribute '"+S[w][2]+"' is without value.",y(S[w]));if(S[w][3]===void 0&&!b.allowBooleanAttributes)return x("InvalidAttr","boolean attribute '"+S[w][2]+"' is not allowed.",y(S[w]));var R=S[w][2];if(!h(R))return x("InvalidAttr","Attribute '"+R+"' is an invalid name.",y(S[w]));if(T.hasOwnProperty(R))return x("InvalidAttr","Attribute '"+R+"' is repeated.",y(S[w]));T[R]=1}return!0};var p=function p(m,b){if(m[++b]===";")return-1;if(m[b]==="#")return function(T,w){var R=/\d/;for(T[w]==="x"&&(w++,R=/[\da-fA-F]/);w<T.length;w++){if(T[w]===";")return w;if(!T[w].match(R))break}return-1}(m,++b);var S=0;for(;b<m.length;b++,S++)if(!(m[b].match(/\w/)&&S<20)){if(m[b]===";")break;return-1}return b};var x=function x(m,b,S){return{err:{code:m,msg:b,line:S.line||S,col:S.col}}};var h=function h(m){return n.isName(m)};var v=function v(m,b){var S=m.substring(0,b).split(/\r?\n/);return{line:S.length,col:S[S.length-1].length+1}};var y=function y(m){return m.startIndex+m[1].length};var n=t(705),i={allowBooleanAttributes:!1,unpairedTags:[]};e.validate=function(m,b){b=Object.assign({},i,b);var S=[],T=!1,w=!1;m[0]==="\uFEFF"&&(m=m.substr(1));for(var _=0;_<m.length;_++)if(m[_]==="<"&&m[_+1]==="?"){if(_+=2,_=o(m,_),_.err)return _}else{if(m[_]!=="<"){if(a(m[_]))continue;return x("InvalidChar","char '"+m[_]+"' is not expected.",v(m,_))}{var E=_;if(_++,m[_]==="!"){_=s(m,_);continue}{var O=!1;m[_]==="/"&&(O=!0,_++);var I="";for(;_<m.length&&m[_]!==">"&&m[_]!==" "&&m[_]!==" "&&m[_]!=="\n"&&m[_]!=="\r";_++)I+=m[_];if(I=I.trim(),I[I.length-1]==="/"&&(I=I.substring(0,I.length-1),_--),R=I,!n.isName(R)){var B=void 0;return B=I.trim().length===0?"Invalid space after '<'.":"Tag '"+I+"' is an invalid name.",x("InvalidTag",B,v(m,_))}var N=l(m,_);if(N===!1)return x("InvalidAttr","Attributes for '"+I+"' have open quote.",v(m,_));var k=N.value;if(_=N.index,k[k.length-1]==="/"){var B1=_-k.length;k=k.substring(0,k.length-1);var U=d(k,b);if(U!==!0)return x(U.err.code,U.err.msg,v(m,B1+U.err.line));T=!0}else if(O){if(!N.tagClosed)return x("InvalidTag","Closing tag '"+I+"' doesn't have proper closing.",v(m,_));if(k.trim().length>0)return x("InvalidTag","Closing tag '"+I+"' can't have attributes or invalid starting.",v(m,E));if(S.length===0)return x("InvalidTag","Closing tag '"+I+"' has not been opened.",v(m,E));{var B2=S.pop();if(I!==B2.tagName){var U1=v(m,B2.tagStartPos);return x("InvalidTag","Expected closing tag '"+B2.tagName+"' (opened in line "+U1.line+", col "+U1.col+") instead of closing tag '"+I+"'.",v(m,E))}S.length==0&&(w=!0)}}else{var B3=d(k,b);if(B3!==!0)return x(B3.err.code,B3.err.msg,v(m,_-k.length+B3.err.line));if(w===!0)return x("InvalidXml","Multiple possible root nodes found.",v(m,_));b.unpairedTags.indexOf(I)!==-1||S.push({tagName:I,tagStartPos:E}),T=!0}for(_++;_<m.length;_++)if(m[_]==="<"){if(m[_+1]==="!"){_++,_=s(m,_);continue}if(m[_+1]!=="?")break;if(_=o(m,++_),_.err)return _}else if(m[_]==="&"){var B4=p(m,_);if(B4==-1)return x("InvalidChar","char '&' is not expected.",v(m,_));_=B4}else if(w===!0&&!a(m[_]))return x("InvalidXml","Extra text at the end",v(m,_));m[_]==="<"&&_--}}}var R;return T?S.length==1?x("InvalidTag","Unclosed tag '"+S[0].tagName+"'.",v(m,S[0].tagStartPos)):!(S.length>0)||x("InvalidXml","Invalid '"+JSON.stringify(S.map(function(_){return _.tagName}),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):x("InvalidXml","Start tag expected.",1)};var u='"',c="'";var f=new RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g")},221:function(r,e,t){var o=function o(l){this.options=Object.assign({},a,l),this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=i(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=c),this.processTextOrObjNode=s,this.options.format?(this.indentate=u,this.tagEndChar=">\n",this.newLine="\n"):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")};var s=function s(l,f,d,p){var x=this.j2x(l,d+1,p.concat(f));return l[this.options.textNodeName]!==void 0&&Object.keys(l).length===1?this.buildTextValNode(l[this.options.textNodeName],f,x.attrStr,d):this.buildObjectNode(x.val,f,x.attrStr,d)};var u=function u(l){return this.options.indentBy.repeat(l)};var c=function c(l){return!(!l.startsWith(this.options.attributeNamePrefix)||l===this.options.textNodeName)&&l.substr(this.attrPrefixLen)};var n=t(87),i=t(118),a={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function tagValueProcessor(l,f){return f},attributeValueProcessor:function attributeValueProcessor(l,f){return f},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1};o.prototype.build=function(l){return this.options.preserveOrder?n(l,this.options):(Array.isArray(l)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(l=_define_property({},this.options.arrayNodeName,l)),this.j2x(l,0,[]).val)},o.prototype.j2x=function(l,f,d){var p="",x="",h=d.join(".");for(var v in l)if(Object.prototype.hasOwnProperty.call(l,v))if(l[v]===void 0)this.isAttribute(v)&&(x+="");else if(l[v]===null)this.isAttribute(v)?x+="":v[0]==="?"?x+=this.indentate(f)+"<"+v+"?"+this.tagEndChar:x+=this.indentate(f)+"<"+v+"/"+this.tagEndChar;else if(_instanceof(l[v],Date))x+=this.buildTextValNode(l[v],v,"",f);else if(_type_of(l[v])!="object"){var y=this.isAttribute(v);if(y&&!this.ignoreAttributesFn(y,h))p+=this.buildAttrPairStr(y,""+l[v]);else if(!y)if(v===this.options.textNodeName){var m=this.options.tagValueProcessor(v,""+l[v]);x+=this.replaceEntitiesValue(m)}else x+=this.buildTextValNode(l[v],v,"",f)}else if(Array.isArray(l[v])){var y1=l[v].length,m1="",b="";for(var S=0;S<y1;S++){var T=l[v][S];if(T!==void 0)if(T===null)v[0]==="?"?x+=this.indentate(f)+"<"+v+"?"+this.tagEndChar:x+=this.indentate(f)+"<"+v+"/"+this.tagEndChar;else if((typeof T==="undefined"?"undefined":_type_of(T))=="object")if(this.options.oneListGroup){var w=this.j2x(T,f+1,d.concat(v));m1+=w.val,this.options.attributesGroupName&&T.hasOwnProperty(this.options.attributesGroupName)&&(b+=w.attrStr)}else m1+=this.processTextOrObjNode(T,v,f,d);else if(this.options.oneListGroup){var w1=this.options.tagValueProcessor(v,T);w1=this.replaceEntitiesValue(w1),m1+=w1}else m1+=this.buildTextValNode(T,v,"",f)}this.options.oneListGroup&&(m1=this.buildObjectNode(m1,v,b,f)),x+=m1}else if(this.options.attributesGroupName&&v===this.options.attributesGroupName){var y2=Object.keys(l[v]),m2=y2.length;for(var b2=0;b2<m2;b2++)p+=this.buildAttrPairStr(y2[b2],""+l[v][y2[b2]])}else x+=this.processTextOrObjNode(l[v],v,f,d);return{attrStr:p,val:x}},o.prototype.buildAttrPairStr=function(l,f){return f=this.options.attributeValueProcessor(l,""+f),f=this.replaceEntitiesValue(f),this.options.suppressBooleanAttributes&&f==="true"?" "+l:" "+l+'="'+f+'"'},o.prototype.buildObjectNode=function(l,f,d,p){if(l==="")return f[0]==="?"?this.indentate(p)+"<"+f+d+"?"+this.tagEndChar:this.indentate(p)+"<"+f+d+this.closeTag(f)+this.tagEndChar;{var x="</"+f+this.tagEndChar,h="";return f[0]==="?"&&(h="?",x=""),!d&&d!==""||l.indexOf("<")!==-1?this.options.commentPropName!==!1&&f===this.options.commentPropName&&h.length===0?this.indentate(p)+"<!--".concat(l,"-->")+this.newLine:this.indentate(p)+"<"+f+d+h+this.tagEndChar+l+this.indentate(p)+x:this.indentate(p)+"<"+f+d+h+">"+l+x}},o.prototype.closeTag=function(l){var f="";return this.options.unpairedTags.indexOf(l)!==-1?this.options.suppressUnpairedNode||(f="/"):f=this.options.suppressEmptyNode?"/":"></".concat(l),f},o.prototype.buildTextValNode=function(l,f,d,p){if(this.options.cdataPropName!==!1&&f===this.options.cdataPropName)return this.indentate(p)+"<![CDATA[".concat(l,"]]>")+this.newLine;if(this.options.commentPropName!==!1&&f===this.options.commentPropName)return this.indentate(p)+"<!--".concat(l,"-->")+this.newLine;if(f[0]==="?")return this.indentate(p)+"<"+f+d+"?"+this.tagEndChar;{var x=this.options.tagValueProcessor(f,l);return x=this.replaceEntitiesValue(x),x===""?this.indentate(p)+"<"+f+d+this.closeTag(f)+this.tagEndChar:this.indentate(p)+"<"+f+d+">"+x+"</"+f+this.tagEndChar}},o.prototype.replaceEntitiesValue=function(l){if(l&&l.length>0&&this.options.processEntities)for(var f=0;f<this.options.entities.length;f++){var d=this.options.entities[f];l=l.replace(d.regex,d.val)}return l},r.exports=o},87:function(r){var t=function t(o){var s=Object.keys(o);for(var u=0;u<s.length;u++){var c=s[u];if(o.hasOwnProperty(c)&&c!==":@")return c}};var n=function n(o,s){var u="";if(o&&!s.ignoreAttributes)for(var c in o){if(!o.hasOwnProperty(c))continue;var l=s.attributeValueProcessor(c,o[c]);l=a(l,s),l===!0&&s.suppressBooleanAttributes?u+=" ".concat(c.substr(s.attributeNamePrefix.length)):u+=" ".concat(c.substr(s.attributeNamePrefix.length),'="').concat(l,'"')}return u};var i=function i(o,s){var u=(o=o.substr(0,o.length-s.textNodeName.length-1)).substr(o.lastIndexOf(".")+1);for(var c in s.stopNodes)if(s.stopNodes[c]===o||s.stopNodes[c]==="*."+u)return!0;return!1};var a=function a(o,s){if(o&&o.length>0&&s.processEntities)for(var u=0;u<s.entities.length;u++){var c=s.entities[u];o=o.replace(c.regex,c.val)}return o};function e(o,s,u,c){var l="",f=!1;for(var d=0;d<o.length;d++){var p=o[d],x=t(p);if(x===void 0)continue;var h="";if(h=u.length===0?x:"".concat(u,".").concat(x),x===s.textNodeName){var b=p[x];i(h,s)||(b=s.tagValueProcessor(x,b),b=a(b,s)),f&&(l+=c),l+=b,f=!1;continue}if(x===s.cdataPropName){f&&(l+=c),l+="<![CDATA[".concat(p[x][0][s.textNodeName],"]]>"),f=!1;continue}if(x===s.commentPropName){l+=c+"<!--".concat(p[x][0][s.textNodeName],"-->"),f=!0;continue}if(x[0]==="?"){var b2=n(p[":@"],s),S=x==="?xml"?"":c,T=p[x][0][s.textNodeName];T=T.length!==0?" "+T:"",l+=S+"<".concat(x).concat(T).concat(b2,"?>"),f=!0;continue}var v=c;v!==""&&(v+=s.indentBy);var y=c+"<".concat(x).concat(n(p[":@"],s)),m=e(p[x],s,h,v);s.unpairedTags.indexOf(x)!==-1?s.suppressUnpairedNode?l+=y+">":l+=y+"/>":m&&m.length!==0||!s.suppressEmptyNode?m&&m.endsWith(">")?l+=y+">".concat(m).concat(c,"</").concat(x,">"):(l+=y+">",m&&c!==""&&(m.includes("/>")||m.includes("</"))?l+=c+s.indentBy+m+c:l+=m,l+="</".concat(x,">")):l+=y+"/>",f=!0}return l}r.exports=function(o,s){var u="";return s.format&&s.indentBy.length>0&&(u="\n"),e(o,s,"",u)}},193:function(r,e,t){var i=function i(f,d){var p="";for(;d<f.length&&f[d]!=="'"&&f[d]!=='"';d++)p+=f[d];if(p=p.trim(),p.indexOf(" ")!==-1)throw new Error("External entites are not supported");var x=f[d++],h="";for(;d<f.length&&f[d]!==x;d++)h+=f[d];return[p,h,d]};var a=function a(f,d){return f[d+1]==="!"&&f[d+2]==="-"&&f[d+3]==="-"};var o=function o(f,d){return f[d+1]==="!"&&f[d+2]==="E"&&f[d+3]==="N"&&f[d+4]==="T"&&f[d+5]==="I"&&f[d+6]==="T"&&f[d+7]==="Y"};var s=function s(f,d){return f[d+1]==="!"&&f[d+2]==="E"&&f[d+3]==="L"&&f[d+4]==="E"&&f[d+5]==="M"&&f[d+6]==="E"&&f[d+7]==="N"&&f[d+8]==="T"};var u=function u(f,d){return f[d+1]==="!"&&f[d+2]==="A"&&f[d+3]==="T"&&f[d+4]==="T"&&f[d+5]==="L"&&f[d+6]==="I"&&f[d+7]==="S"&&f[d+8]==="T"};var c=function c(f,d){return f[d+1]==="!"&&f[d+2]==="N"&&f[d+3]==="O"&&f[d+4]==="T"&&f[d+5]==="A"&&f[d+6]==="T"&&f[d+7]==="I"&&f[d+8]==="O"&&f[d+9]==="N"};var l=function l(f){if(n.isName(f))return f;throw new Error("Invalid entity name ".concat(f))};var n=t(705);r.exports=function(f,d){var p={};if(f[d+3]!=="O"||f[d+4]!=="C"||f[d+5]!=="T"||f[d+6]!=="Y"||f[d+7]!=="P"||f[d+8]!=="E")throw new Error("Invalid Tag instead of DOCTYPE");{d+=9;var x=1,h=!1,v=!1,y="";for(;d<f.length;d++)if(f[d]!=="<"||v)if(f[d]===">"){if(v?f[d-1]==="-"&&f[d-2]==="-"&&(v=!1,x--):x--,x===0)break}else f[d]==="["?h=!0:y+=f[d];else{if(h&&o(f,d)){var m=void 0,b=void 0;var ref;d+=7,ref=_sliced_to_array(i(f,d+1),3),m=ref[0],b=ref[1],d=ref[2],ref,b.indexOf("&")===-1&&(p[l(m)]={regx:RegExp("&".concat(m,";"),"g"),val:b})}else if(h&&s(f,d))d+=8;else if(h&&u(f,d))d+=8;else if(h&&c(f,d))d+=9;else{if(!a)throw new Error("Invalid DOCTYPE");v=!0}x++,y=""}if(x!==0)throw new Error("Unclosed DOCTYPE")}return{entities:p,i:d}}},63:function(r,e){var t={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function tagValueProcessor(n,i){return i},attributeValueProcessor:function attributeValueProcessor(n,i){return i},stopNodes:[],alwaysCreateTextNode:!1,isArray:function(){return!1},commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function updateTag(n,i,a){return n}};e.buildOptions=function(n){return Object.assign({},t,n)},e.defaultOptions=t},299:function(r,e,t){var u=function u(w){var R=Object.keys(w);for(var _=0;_<R.length;_++){var E=R[_];this.lastEntities[E]={regex:new RegExp("&"+E+";","g"),val:w[E]}}};var c=function c(w,R,_,E,O,I,N){if(w!==void 0&&(this.options.trimValues&&!E&&(w=w.trim()),w.length>0)){N||(w=this.replaceEntitiesValue(w));var k=this.options.tagValueProcessor(R,w,_,O,I);return k==null?w:(typeof k==="undefined"?"undefined":_type_of(k))!=(typeof w==="undefined"?"undefined":_type_of(w))||k!==w?k:this.options.trimValues||w.trim()===w?T(w,this.options.parseTagValue,this.options.numberParseOptions):w}};var l=function l(w){if(this.options.removeNSPrefix){var R=w.split(":"),_=w.charAt(0)==="/"?"/":"";if(R[0]==="xmlns")return"";R.length===2&&(w=_+R[1])}return w};var d=function d(w,R,_){if(this.options.ignoreAttributes!==!0&&typeof w=="string"){var E=n.getAllMatches(w,f),O=E.length,I={};for(var N=0;N<O;N++){var k=this.resolveNameSpace(E[N][1]);if(this.ignoreAttributesFn(k,R))continue;var B=E[N][4],U=this.options.attributeNamePrefix+k;if(k.length)if(this.options.transformAttributeName&&(U=this.options.transformAttributeName(U)),U==="__proto__"&&(U="#__proto__"),B!==void 0){this.options.trimValues&&(B=B.trim()),B=this.replaceEntitiesValue(B);var $=this.options.attributeValueProcessor(k,B,R);I[U]=$==null?B:(typeof $==="undefined"?"undefined":_type_of($))!=(typeof B==="undefined"?"undefined":_type_of(B))||$!==B?$:T(B,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&(I[U]=!0)}if(!Object.keys(I).length)return;if(this.options.attributesGroupName){var N1={};return N1[this.options.attributesGroupName]=I,N1}return I}};var x=function x(w,R,_){var E=this.options.updateTag(R.tagname,_,R[":@"]);E===!1||(typeof E=="string"&&(R.tagname=E),w.addChild(R))};var v=function v(w,R,_,E){return w&&(E===void 0&&(E=Object.keys(R.child).length===0),(w=this.parseTextData(w,R.tagname,_,!1,!!R[":@"]&&Object.keys(R[":@"]).length!==0,E))!==void 0&&w!==""&&R.add(this.options.textNodeName,w),w=""),w};var y=function y(w,R,_){var E="*."+_;for(var O in w){var I=w[O];if(E===I||R===I)return!0}return!1};var m=function m(w,R,_,E){var O=w.indexOf(R,_);if(O===-1)throw new Error(E);return O+R.length-1};var b=function b(w,R,_){var E=function($,X){var le,K=arguments.length>2&&arguments[2]!==void 0?arguments[2]:">",qe="";for(var V=X;V<$.length;V++){var fe=$[V];if(le)fe===le&&(le="");else if(fe==='"'||fe==="'")le=fe;else if(fe===K[0]){if(!K[1])return{data:qe,index:V};if($[V+1]===K[1])return{data:qe,index:V}}else fe===" "&&(fe=" ");qe+=fe}}(w,R+1,arguments.length>3&&arguments[3]!==void 0?arguments[3]:">");if(!E)return;var O=E.data,I=E.index,N=O.search(/\s/),k=O,B=!0;N!==-1&&(k=O.substring(0,N),O=O.substring(N+1).trimStart());var U=k;if(_){var $=k.indexOf(":");$!==-1&&(k=k.substr($+1),B=k!==E.data.substr($+1))}return{tagName:k,tagExp:O,closeIndex:I,attrExpPresent:B,rawTagName:U}};var S=function S(w,R,_){var E=_,O=1;for(;_<w.length;_++)if(w[_]==="<")if(w[_+1]==="/"){var I=m(w,">",_,"".concat(R," is not closed"));if(w.substring(_+2,I).trim()===R&&(O--,O===0))return{tagContent:w.substring(E,_),i:I};_=I}else if(w[_+1]==="?")_=m(w,"?>",_+1,"StopNode is not closed.");else if(w.substr(_+1,3)==="!--")_=m(w,"-->",_+3,"StopNode is not closed.");else if(w.substr(_+1,2)==="![")_=m(w,"]]>",_,"StopNode is not closed.")-2;else{var I2=b(w,_,">");I2&&((I2&&I2.tagName)===R&&I2.tagExp[I2.tagExp.length-1]!=="/"&&O++,_=I2.closeIndex)}};var T=function T(w,R,_){if(R&&typeof w=="string"){var E=w.trim();return E==="true"||E!=="false"&&o(w,_)}return n.isExist(w)?w:""};var n=t(705),i=t(365),a=t(193),o=t(494),s=t(118);var f=new RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?","gm");var p=function p(w){w=w.replace(/\r\n?/g,"\n");var R=new i("!xml"),_=R,E="",O="";for(var I=0;I<w.length;I++)if(w[I]==="<")if(w[I+1]==="/"){var N=m(w,">",I,"Closing Tag is not closed."),k=w.substring(I+2,N).trim();if(this.options.removeNSPrefix){var $=k.indexOf(":");$!==-1&&(k=k.substr($+1))}this.options.transformTagName&&(k=this.options.transformTagName(k)),_&&(E=this.saveTextToParentTag(E,_,O));var B=O.substring(O.lastIndexOf(".")+1);if(k&&this.options.unpairedTags.indexOf(k)!==-1)throw new Error("Unpaired tag can not be used as closing tag: </".concat(k,">"));var U=0;B&&this.options.unpairedTags.indexOf(B)!==-1?(U=O.lastIndexOf(".",O.lastIndexOf(".")-1),this.tagsNodeStack.pop()):U=O.lastIndexOf("."),O=O.substring(0,U),_=this.tagsNodeStack.pop(),E="",I=N}else if(w[I+1]==="?"){var N1=b(w,I,!1,"?>");if(!N1)throw new Error("Pi Tag is not closed.");if(E=this.saveTextToParentTag(E,_,O),!(this.options.ignoreDeclaration&&N1.tagName==="?xml"||this.options.ignorePiTags)){var k1=new i(N1.tagName);k1.add(this.options.textNodeName,""),N1.tagName!==N1.tagExp&&N1.attrExpPresent&&(k1[":@"]=this.buildAttributesMap(N1.tagExp,O,N1.tagName)),this.addChild(_,k1,O)}I=N1.closeIndex+1}else if(w.substr(I+1,3)==="!--"){var N2=m(w,"-->",I+4,"Comment is not closed.");if(this.options.commentPropName){var k2=w.substring(I+4,N2-2);E=this.saveTextToParentTag(E,_,O),_.add(this.options.commentPropName,[_define_property({},this.options.textNodeName,k2)])}I=N2}else if(w.substr(I+1,2)==="!D"){var N3=a(w,I);this.docTypeEntities=N3.entities,I=N3.i}else if(w.substr(I+1,2)==="!["){var N4=m(w,"]]>",I,"CDATA is not closed.")-2,k3=w.substring(I+9,N4);E=this.saveTextToParentTag(E,_,O);var B1=this.parseTextData(k3,_.tagname,O,!0,!1,!0,!0);B1==null&&(B1=""),this.options.cdataPropName?_.add(this.options.cdataPropName,[_define_property({},this.options.textNodeName,k3)]):_.add(this.options.textNodeName,B1),I=N4+2}else{var N5=b(w,I,this.options.removeNSPrefix),k4=N5.tagName,B2=N5.rawTagName,U1=N5.tagExp,$1=N5.attrExpPresent,X=N5.closeIndex;this.options.transformTagName&&(k4=this.options.transformTagName(k4)),_&&E&&_.tagname!=="!xml"&&(E=this.saveTextToParentTag(E,_,O,!1));var le=_;if(le&&this.options.unpairedTags.indexOf(le.tagname)!==-1&&(_=this.tagsNodeStack.pop(),O=O.substring(0,O.lastIndexOf("."))),k4!==R.tagname&&(O+=O?"."+k4:k4),this.isItStopNode(this.options.stopNodes,O,k4)){var K="";if(U1.length>0&&U1.lastIndexOf("/")===U1.length-1)k4[k4.length-1]==="/"?(k4=k4.substr(0,k4.length-1),O=O.substr(0,O.length-1),U1=k4):U1=U1.substr(0,U1.length-1),I=N5.closeIndex;else if(this.options.unpairedTags.indexOf(k4)!==-1)I=N5.closeIndex;else{var V=this.readStopNodeData(w,B2,X+1);if(!V)throw new Error("Unexpected end of ".concat(B2));I=V.i,K=V.tagContent}var qe=new i(k4);k4!==U1&&$1&&(qe[":@"]=this.buildAttributesMap(U1,O,k4)),K&&(K=this.parseTextData(K,k4,O,!0,$1,!0,!0)),O=O.substr(0,O.lastIndexOf(".")),qe.add(this.options.textNodeName,K),this.addChild(_,qe,O)}else{if(U1.length>0&&U1.lastIndexOf("/")===U1.length-1){k4[k4.length-1]==="/"?(k4=k4.substr(0,k4.length-1),O=O.substr(0,O.length-1),U1=k4):U1=U1.substr(0,U1.length-1),this.options.transformTagName&&(k4=this.options.transformTagName(k4));var K1=new i(k4);k4!==U1&&$1&&(K1[":@"]=this.buildAttributesMap(U1,O,k4)),this.addChild(_,K1,O),O=O.substr(0,O.lastIndexOf("."))}else{var K2=new i(k4);this.tagsNodeStack.push(_),k4!==U1&&$1&&(K2[":@"]=this.buildAttributesMap(U1,O,k4)),this.addChild(_,K2,O),_=K2}E="",I=X}}else E+=w[I];return R.child};var h=function h(w){if(this.options.processEntities){for(var R in this.docTypeEntities){var _=this.docTypeEntities[R];w=w.replace(_.regx,_.val)}for(var R2 in this.lastEntities){var _1=this.lastEntities[R2];w=w.replace(_1.regex,_1.val)}if(this.options.htmlEntities)for(var R3 in this.htmlEntities){var _2=this.htmlEntities[R3];w=w.replace(_2.regex,_2.val)}w=w.replace(this.ampEntity.regex,this.ampEntity.val)}return w};r.exports=function _class(w){"use strict";_class_call_check(this,_class);this.options=w,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"\xa2"},pound:{regex:/&(pound|#163);/g,val:"\xa3"},yen:{regex:/&(yen|#165);/g,val:"\xa5"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"\xa9"},reg:{regex:/&(reg|#174);/g,val:"\xae"},inr:{regex:/&(inr|#8377);/g,val:"₹"},num_dec:{regex:/&#([0-9]{1,7});/g,val:function(R,_){return String.fromCharCode(Number.parseInt(_,10))}},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:function(R,_){return String.fromCharCode(Number.parseInt(_,16))}}},this.addExternalEntities=u,this.parseXml=p,this.parseTextData=c,this.resolveNameSpace=l,this.buildAttributesMap=d,this.isItStopNode=y,this.replaceEntitiesValue=h,this.readStopNodeData=S,this.saveTextToParentTag=v,this.addChild=x,this.ignoreAttributesFn=s(this.options.ignoreAttributes)}},338:function(r,e,t){var _t1=t(63),n=_t1.buildOptions,i=t(299),_t2=t(728),a=_t2.prettify,o=t(31);r.exports=/*#__PURE__*/function(){"use strict";function _class(s){_class_call_check(this,_class);this.externalEntities={},this.options=n(s)}_create_class(_class,[{key:"parse",value:function parse(s,u){if(typeof s!="string"){if(!s.toString)throw new Error("XML data is accepted in String or Bytes[] form.");s=s.toString()}if(u){u===!0&&(u={});var f=o.validate(s,u);if(f!==!0)throw Error("".concat(f.err.msg,":").concat(f.err.line,":").concat(f.err.col))}var c=new i(this.options);c.addExternalEntities(this.externalEntities);var l=c.parseXml(s);return this.options.preserveOrder||l===void 0?l:a(l,this.options)}},{key:"addEntity",value:function addEntity(s,u){if(u.indexOf("&")!==-1)throw new Error("Entity value can't have '&'");if(s.indexOf("&")!==-1||s.indexOf(";")!==-1)throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '&#xD;'");if(u==="&")throw new Error("An entity with value '&' is not permitted");this.externalEntities[s]=u}}]);return _class}()},728:function(r,e){var n=function n(o){var s=Object.keys(o);for(var u=0;u<s.length;u++){var c=s[u];if(c!==":@")return c}};var i=function i(o,s,u,c){if(s){var l=Object.keys(s),f=l.length;for(var d=0;d<f;d++){var p=l[d];c.isArray(p,u+"."+p,!0,!0)?o[p]=[s[p]]:o[p]=s[p]}}};var a=function a(o,s){var u=s.textNodeName,c=Object.keys(o).length;return c===0||!(c!==1||!o[u]&&typeof o[u]!="boolean"&&o[u]!==0)};function t(o,s,u){var c,l={};for(var f=0;f<o.length;f++){var d=o[f],p=n(d),x="";if(x=u===void 0?p:u+"."+p,p===s.textNodeName)c===void 0?c=d[p]:c+=""+d[p];else{if(p===void 0)continue;if(d[p]){var h=t(d[p],s,x),v=a(h,s);d[":@"]?i(h,d[":@"],x,s):Object.keys(h).length!==1||h[s.textNodeName]===void 0||s.alwaysCreateTextNode?Object.keys(h).length===0&&(s.alwaysCreateTextNode?h[s.textNodeName]="":h=""):h=h[s.textNodeName],l[p]!==void 0&&l.hasOwnProperty(p)?(Array.isArray(l[p])||(l[p]=[l[p]]),l[p].push(h)):s.isArray(p,x,v)?l[p]=[h]:l[p]=h}}}return typeof c=="string"?c.length>0&&(l[s.textNodeName]=c):c!==void 0&&(l[s.textNodeName]=c),l}e.prettify=function(o,s){return t(o,s)}},365:function(r){r.exports=/*#__PURE__*/function(){"use strict";function _class(e){_class_call_check(this,_class);this.tagname=e,this.child=[],this[":@"]={}}_create_class(_class,[{key:"add",value:function add(e,t){e==="__proto__"&&(e="#__proto__"),this.child.push(_define_property({},e,t))}},{key:"addChild",value:function addChild(e){var _obj;e.tagname==="__proto__"&&(e.tagname="#__proto__"),e[":@"]&&Object.keys(e[":@"]).length>0?this.child.push((_obj={},_define_property(_obj,e.tagname,e.child),_define_property(_obj,":@",e[":@"]),_obj)):this.child.push(_define_property({},e.tagname,e.child))}}]);return _class}()},135:function(r){var e=function e(t){return!!t.constructor&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)};r.exports=function(t){return t!=null&&(e(t)||function(n){return typeof n.readFloatLE=="function"&&typeof n.slice=="function"&&e(n.slice(0,0))}(t)||!!t._isBuffer)}},542:function(r,e,t){(function(){var n=t(298),i=t(526).utf8,a=t(135),o=t(526).bin,s=function s1(u,c){u.constructor==String?u=c&&c.encoding==="binary"?o.stringToBytes(u):i.stringToBytes(u):a(u)?u=Array.prototype.slice.call(u,0):Array.isArray(u)||u.constructor===Uint8Array||(u=u.toString());for(var l=n.bytesToWords(u),f=8*u.length,d=0x67452301,p=-0x10325477,x=-0x67452302,h=0x10325476,v=0;v<l.length;v++)l[v]=0xff00ff&(l[v]<<8|l[v]>>>24)|0xff00ff00&(l[v]<<24|l[v]>>>8);l[f>>>5]|=128<<f%32,l[14+(f+64>>>9<<4)]=f;var y=s._ff,m=s._gg,b=s._hh,S=s._ii;for(v=0;v<l.length;v+=16){var T=d,w=p,R=x,_=h;d=y(d,p,x,h,l[v+0],7,-0x28955b88),h=y(h,d,p,x,l[v+1],12,-0x173848aa),x=y(x,h,d,p,l[v+2],17,0x242070db),p=y(p,x,h,d,l[v+3],22,-0x3e423112),d=y(d,p,x,h,l[v+4],7,-0xa83f051),h=y(h,d,p,x,l[v+5],12,0x4787c62a),x=y(x,h,d,p,l[v+6],17,-0x57cfb9ed),p=y(p,x,h,d,l[v+7],22,-0x2b96aff),d=y(d,p,x,h,l[v+8],7,0x698098d8),h=y(h,d,p,x,l[v+9],12,-0x74bb0851),x=y(x,h,d,p,l[v+10],17,-42063),p=y(p,x,h,d,l[v+11],22,-0x76a32842),d=y(d,p,x,h,l[v+12],7,0x6b901122),h=y(h,d,p,x,l[v+13],12,-0x2678e6d),x=y(x,h,d,p,l[v+14],17,-0x5986bc72),d=m(d,p=y(p,x,h,d,l[v+15],22,0x49b40821),x,h,l[v+1],5,-0x9e1da9e),h=m(h,d,p,x,l[v+6],9,-0x3fbf4cc0),x=m(x,h,d,p,l[v+11],14,0x265e5a51),p=m(p,x,h,d,l[v+0],20,-0x16493856),d=m(d,p,x,h,l[v+5],5,-0x29d0efa3),h=m(h,d,p,x,l[v+10],9,0x2441453),x=m(x,h,d,p,l[v+15],14,-0x275e197f),p=m(p,x,h,d,l[v+4],20,-0x182c0438),d=m(d,p,x,h,l[v+9],5,0x21e1cde6),h=m(h,d,p,x,l[v+14],9,-0x3cc8f82a),x=m(x,h,d,p,l[v+3],14,-0xb2af279),p=m(p,x,h,d,l[v+8],20,0x455a14ed),d=m(d,p,x,h,l[v+13],5,-0x561c16fb),h=m(h,d,p,x,l[v+2],9,-0x3105c08),x=m(x,h,d,p,l[v+7],14,0x676f02d9),d=b(d,p=m(p,x,h,d,l[v+12],20,-0x72d5b376),x,h,l[v+5],4,-378558),h=b(h,d,p,x,l[v+8],11,-0x788e097f),x=b(x,h,d,p,l[v+11],16,0x6d9d6122),p=b(p,x,h,d,l[v+14],23,-0x21ac7f4),d=b(d,p,x,h,l[v+1],4,-0x5b4115bc),h=b(h,d,p,x,l[v+4],11,0x4bdecfa9),x=b(x,h,d,p,l[v+7],16,-0x944b4a0),p=b(p,x,h,d,l[v+10],23,-0x41404390),d=b(d,p,x,h,l[v+13],4,0x289b7ec6),h=b(h,d,p,x,l[v+0],11,-0x155ed806),x=b(x,h,d,p,l[v+3],16,-0x2b10cf7b),p=b(p,x,h,d,l[v+6],23,0x4881d05),d=b(d,p,x,h,l[v+9],4,-0x262b2fc7),h=b(h,d,p,x,l[v+12],11,-0x1924661b),x=b(x,h,d,p,l[v+15],16,0x1fa27cf8),d=S(d,p=b(p,x,h,d,l[v+2],23,-0x3b53a99b),x,h,l[v+0],6,-0xbd6ddbc),h=S(h,d,p,x,l[v+7],10,0x432aff97),x=S(x,h,d,p,l[v+14],15,-0x546bdc59),p=S(p,x,h,d,l[v+5],21,-0x36c5fc7),d=S(d,p,x,h,l[v+12],6,0x655b59c3),h=S(h,d,p,x,l[v+3],10,-0x70f3336e),x=S(x,h,d,p,l[v+10],15,-1051523),p=S(p,x,h,d,l[v+1],21,-0x7a7ba22f),d=S(d,p,x,h,l[v+8],6,0x6fa87e4f),h=S(h,d,p,x,l[v+15],10,-0x1d31920),x=S(x,h,d,p,l[v+6],15,-0x5cfebcec),p=S(p,x,h,d,l[v+13],21,0x4e0811a1),d=S(d,p,x,h,l[v+4],6,-0x8ac817e),h=S(h,d,p,x,l[v+11],10,-0x42c50dcb),x=S(x,h,d,p,l[v+2],15,0x2ad7d2bb),p=S(p,x,h,d,l[v+9],21,-0x14792c6f),d=d+T>>>0,p=p+w>>>0,x=x+R>>>0,h=h+_>>>0}return n.endian([d,p,x,h])};s._ff=function(u,c,l,f,d,p,x){var h=u+(c&l|~c&f)+(d>>>0)+x;return(h<<p|h>>>32-p)+c},s._gg=function(u,c,l,f,d,p,x){var h=u+(c&f|l&~f)+(d>>>0)+x;return(h<<p|h>>>32-p)+c},s._hh=function(u,c,l,f,d,p,x){var h=u+(c^l^f)+(d>>>0)+x;return(h<<p|h>>>32-p)+c},s._ii=function(u,c,l,f,d,p,x){var h=u+(l^(c|~f))+(d>>>0)+x;return(h<<p|h>>>32-p)+c},s._blocksize=16,s._digestsize=16,r.exports=function(u,c){if(u==null)throw new Error("Illegal argument "+u);var l=n.wordsToBytes(s(u,c));return c&&c.asBytes?l:c&&c.asString?o.bytesToString(l):n.bytesToHex(l)}})()},285:function(r,e,t){var c=function c(y){return parseInt(y,10)==y?parseInt(y,10):y.charCodeAt(0)};var l=function l(y){return y.split(i).join("\\").split(a).join("{").split(o).join("}").split(s).join(",").split(u).join(".")};var d=function d(y){return"{"+y+"}"};var p=function p(y){return/^-?0\d/.test(y)};var x=function x(y,m){return y<=m};var h=function h(y,m){return y>=m};var n=t(2);r.exports=function(y){return y?(y.substr(0,2)==="{}"&&(y="\\{\\}"+y.substr(2)),v(function(m){return m.split("\\\\").join(i).split("\\{").join(a).split("\\}").join(o).split("\\,").join(s).split("\\.").join(u)}(y),!0).map(l)):[]};var i="\0SLASH"+Math.random()+"\0",a="\0OPEN"+Math.random()+"\0",o="\0CLOSE"+Math.random()+"\0",s="\0COMMA"+Math.random()+"\0",u="\0PERIOD"+Math.random()+"\0";function f(y){if(!y)return[""];var m=[],b=n("{","}",y);if(!b)return y.split(",");var S=b.pre,T=b.body,w=b.post,R=S.split(",");R[R.length-1]+="{"+T+"}";var _=f(w);return w.length&&(R[R.length-1]+=_.shift(),R.push.apply(R,_)),m.push.apply(m,R),m}function v(y,m){var b=[],S=n("{","}",y);if(!S)return[y];var T=S.pre,w=S.post.length?v(S.post,!1):[""];if(/\$$/.test(S.pre))for(var R=0;R<w.length;R++){var _=T+"{"+S.body+"}"+w[R];b.push(_)}else{var E,O,I=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(S.body),N=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(S.body),k=I||N,B=S.body.indexOf(",")>=0;if(!k&&!B)return S.post.match(/,.*\}/)?v(y=S.pre+"{"+S.body+o+S.post):[y];if(k)E=S.body.split(/\.\./);else if((E=f(S.body)).length===1&&(E=v(E[0],!1).map(d)).length===1)return w.map(function(Te){return S.pre+E[0]+Te});if(k){var U=c(E[0]),$=c(E[1]),X=Math.max(E[0].length,E[1].length),le=E.length==3?Math.abs(c(E[2])):1,K=x;$<U&&(le*=-1,K=h);var qe=E.some(p);O=[];for(var V=U;K(V,$);V+=le){var fe;if(N)(fe=String.fromCharCode(V))==="\\"&&(fe="");else if(fe=String(V),qe){var me=X-fe.length;if(me>0){var be=new Array(me+1).join("0");fe=V<0?"-"+be+fe.slice(1):be+fe}}O.push(fe)}}else{O=[];for(var pe=0;pe<E.length;pe++)O.push.apply(O,v(E[pe],!1))}for(pe=0;pe<O.length;pe++)for(R=0;R<w.length;R++)_=T+O[pe]+w[R],(!m||k||_)&&b.push(_)}return b}},829:function(r){var u=function u(c,l){return c.length===l+1};function e(c){return e=typeof Symbol=="function"&&_type_of(Symbol.iterator)=="symbol"?function e(l){return typeof l==="undefined"?"undefined":_type_of(l)}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l==="undefined"?"undefined":_type_of(l)},e(c)}function t(c){var l=typeof Map=="function"?new Map:void 0;return t=function t(f){if(f===null||(d=f,Function.toString.call(d).indexOf("[native code]")===-1))return f;var d;if(typeof f!="function")throw new TypeError("Super expression must either be null or a function");if(l!==void 0){if(l.has(f))return l.get(f);l.set(f,p)}function p(){return n(f,arguments,a(this).constructor)}return p.prototype=Object.create(f.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),i(p,f)},t(c)}function n(c,l,f){return n=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(d){return!1}}()?Reflect.construct:function n(d,p,x){var h=[null];h.push.apply(h,p);var v=new(Function.bind.apply(d,h));return x&&i(v,x.prototype),v},n.apply(null,arguments)}function i(c,l){return i=Object.setPrototypeOf||function(f,d){return f.__proto__=d,f},i(c,l)}function a(c){return a=Object.setPrototypeOf?Object.getPrototypeOf:function a(l){return l.__proto__||Object.getPrototypeOf(l)},a(c)}var o=function(c){function l(f){var d;return function(p,x){if(!_instanceof(p,x))throw new TypeError("Cannot call a class as a function")}(this,l),(d=function(p,x){return!x||e(x)!=="object"&&typeof x!="function"?function(h){if(h===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h}(p):x}(this,a(l).call(this,f))).name="ObjectPrototypeMutationError",d}return function(f,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function");f.prototype=Object.create(d&&d.prototype,{constructor:{value:f,writable:!0,configurable:!0}}),d&&i(f,d)}(l,c),l}(t(Error));function s(c,l){for(var f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function f(){},d=l.split("."),p=d.length,x=function x(y){var m=d[y];if(!c)return{v:void 0};if(m==="+"){if(Array.isArray(c))return{v:c.map(function(S,T){var w=d.slice(y+1);return w.length>0?s(S,w.join("."),f):f(c,T,d,y)})};var b=d.slice(0,y).join(".");throw new Error("Object at wildcard (".concat(b,") is not an array"))}c=f(c,m,d,y)},h=0;h<p;h++){var v=x(h);if(e(v)==="object")return v.v}return c}r.exports={set:function set(c,l,f){if(e(c)!="object"||c===null||l===void 0)return c;if(typeof l=="number")return c[l]=f,c[l];try{return s(c,l,function(d,p,x,h){if(d===Reflect.getPrototypeOf({}))throw new o("Attempting to mutate Object.prototype");if(!d[p]){var v=Number.isInteger(Number(x[h+1])),y=x[h+1]==="+";d[p]=v||y?[]:{}}return u(x,h)&&(d[p]=f),d[p]})}catch(d){if(_instanceof(d,o))throw d;return c}},get:function get(c,l){if(e(c)!="object"||c===null||l===void 0)return c;if(typeof l=="number")return c[l];try{return s(c,l,function(f,d){return f[d]})}catch(f){return c}},has:function has(c,l){var f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(e(c)!="object"||c===null||l===void 0)return!1;if(typeof l=="number")return l in c;try{var d=!1;return s(c,l,function(p,x,h,v){if(!u(h,v))return p&&p[x];d=f.own?p.hasOwnProperty(x):x in p}),d}catch(p){return!1}},hasOwn:function hasOwn(c,l,f){return this.has(c,l,f||{own:!0})},isIn:function isIn(c,l,f){var d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};if(e(c)!="object"||c===null||l===void 0)return!1;try{var p=!1,x=!1;return s(c,l,function(h,v,y,m){return p=p||h===f||!!h&&h[v]===f,x=u(y,m)&&e(h)==="object"&&v in h,h&&h[v]}),d.validPath?p&&x:p}catch(h){return!1}},ObjectPrototypeMutationError:o}},47:function(r,e,t){var a=function a(c,l){for(var f=[],d=0;d<c.length;d++){var p=c[d];p&&p!=="."&&(p===".."?f.length&&f[f.length-1]!==".."?f.pop():l&&f.push(".."):f.push(p))}return f};var u=function u(c){return o.exec(c).slice(1)};var n=t(410),i=function i(c){return typeof c=="string"};var o=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,s={};s.resolve=function(){for(var c="",l=!1,f=arguments.length-1;f>=-1&&!l;f--){var d=f>=0?arguments[f]:process.cwd();if(!i(d))throw new TypeError("Arguments to path.resolve must be strings");d&&(c=d+"/"+c,l=d.charAt(0)==="/")}return(l?"/":"")+(c=a(c.split("/"),!l).join("/"))||"."},s.normalize=function(c){var l=s.isAbsolute(c),f=c.substr(-1)==="/";return(c=a(c.split("/"),!l).join("/"))||l||(c="."),c&&f&&(c+="/"),(l?"/":"")+c},s.isAbsolute=function(c){return c.charAt(0)==="/"},s.join=function(){for(var c="",l=0;l<arguments.length;l++){var f=arguments[l];if(!i(f))throw new TypeError("Arguments to path.join must be strings");f&&(c+=c?"/"+f:f)}return s.normalize(c)},s.relative=function(c,l){function f(m){for(var b=0;b<m.length&&m[b]==="";b++);for(var S=m.length-1;S>=0&&m[S]==="";S--);return b>S?[]:m.slice(b,S+1)}c=s.resolve(c).substr(1),l=s.resolve(l).substr(1);for(var d=f(c.split("/")),p=f(l.split("/")),x=Math.min(d.length,p.length),h=x,v=0;v<x;v++)if(d[v]!==p[v]){h=v;break}var y=[];for(v=h;v<d.length;v++)y.push("..");return(y=y.concat(p.slice(h))).join("/")},s._makeLong=function(c){return c},s.dirname=function(c){var l=u(c),f=l[0],d=l[1];return f||d?(d&&(d=d.substr(0,d.length-1)),f+d):"."},s.basename=function(c,l){var f=u(c)[2];return l&&f.substr(-1*l.length)===l&&(f=f.substr(0,f.length-l.length)),f},s.extname=function(c){return u(c)[3]},s.format=function(c){if(!n.isObject(c))throw new TypeError("Parameter 'pathObject' must be an object, not "+(typeof c==="undefined"?"undefined":_type_of(c)));var l=c.root||"";if(!i(l))throw new TypeError("'pathObject.root' must be a string or undefined, not "+_type_of(c.root));return(c.dir?c.dir+s.sep:"")+(c.base||"")},s.parse=function(c){if(!i(c))throw new TypeError("Parameter 'pathString' must be a string, not "+(typeof c==="undefined"?"undefined":_type_of(c)));var l=u(c);if(!l||l.length!==4)throw new TypeError("Invalid path '"+c+"'");return l[1]=l[1]||"",l[2]=l[2]||"",l[3]=l[3]||"",{root:l[0],dir:l[0]+l[1].slice(0,l[1].length-1),base:l[2],ext:l[3],name:l[2].slice(0,l[2].length-l[3].length)}},s.sep="/",s.delimiter=":",r.exports=s},647:function(r,e){var n=function n(a){try{return decodeURIComponent(a.replace(/\+/g," "))}catch(o){return null}};var i=function i(a){try{return encodeURIComponent(a)}catch(o){return null}};var t=Object.prototype.hasOwnProperty;e.stringify=function(a,o){o=o||"";var s,u,c=[];for(u in typeof o!="string"&&(o="?"),a)if(t.call(a,u)){if((s=a[u])||s!=null&&!isNaN(s)||(s=""),u=i(u),s=i(s),u===null||s===null)continue;c.push(u+"="+s)}return c.length?o+c.join("&"):""},e.parse=function(a){for(var o,s=/([^=?#&]+)=?([^&]*)/g,u={};o=s.exec(a);){var c=n(o[1]),l=n(o[2]);c===null||l===null||c in u||(u[c]=l)}return u}},670:function(r){r.exports=function(e,t){if(t=t.split(":")[0],!(e=+e))return!1;switch(t){case"http":case"ws":return e!==80;case"https":case"wss":return e!==443;case"ftp":return e!==21;case"gopher":return e!==70;case"file":return!1}return e!==0}},494:function(r){var e=/^[-+]?0x[a-fA-F0-9]+$/,t=/^([\-\+])?(0*)(\.[0-9]+([eE]\-?[0-9]+)?|[0-9]+(\.[0-9]+([eE]\-?[0-9]+)?)?)$/;!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt),!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);var n={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};r.exports=function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(a=Object.assign({},n,a),!i||typeof i!="string")return i;var o=i.trim();if(a.skipLike!==void 0&&a.skipLike.test(o))return i;if(a.hex&&e.test(o))return Number.parseInt(o,16);{var u=t.exec(o);if(u){var c=u[1],l=u[2],f=((s=u[3])&&s.indexOf(".")!==-1&&((s=s.replace(/0+$/,""))==="."?s="0":s[0]==="."?s="0"+s:s[s.length-1]==="."&&(s=s.substr(0,s.length-1))),s),d=u[4]||u[6];if(!a.leadingZeros&&l.length>0&&c&&o[2]!=="."||!a.leadingZeros&&l.length>0&&!c&&o[1]!==".")return i;{var p=Number(o),x=""+p;return x.search(/[eE]/)!==-1||d?a.eNotation?p:i:o.indexOf(".")!==-1?x==="0"&&f===""||x===f||c&&x==="-"+f?p:i:l?f===x||c+f===x?p:i:o===x||o===c+x?p:i}}return i}var s}},737:function(r,e,t){var f=function f(m){return(m||"").toString().replace(a,"")};var x=function x(m){var b,S=(typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{}).location||{},T={},w=_type_of(m=m||S);if(m.protocol==="blob:")T=new y(unescape(m.pathname),{});else if(w==="string")for(b in T=new y(m,{}),p)delete T[b];else if(w==="object"){for(b in m)b in p||(T[b]=m[b]);T.slashes===void 0&&(T.slashes=s.test(m.href))}return T};var h=function h(m){return m==="file:"||m==="ftp:"||m==="http:"||m==="https:"||m==="ws:"||m==="wss:"};var v=function v(m,b){m=(m=f(m)).replace(o,""),b=b||{};var S,T=c.exec(m),w=T[1]?T[1].toLowerCase():"",R=!!T[2],_=!!T[3],E=0;return R?_?(S=T[2]+T[3]+T[4],E=T[2].length+T[3].length):(S=T[2]+T[4],E=T[2].length):_?(S=T[3]+T[4],E=T[3].length):S=T[4],w==="file:"?E>=2&&(S=S.slice(2)):h(w)?S=T[4]:w?R&&(S=S.slice(2)):E>=2&&h(b.protocol)&&(S=T[4]),{protocol:w,slashes:R||h(w),slashesCount:E,rest:S}};var n=t(670),i=t(647),a=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,o=/[\n\r\t]/g,s=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,u=/:\d+$/,c=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,l=/^[a-zA-Z]:/;var d=[["#","hash"],["?","query"],function(m,b){return h(b.protocol)?m.replace(/\\/g,"/"):m},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],p={hash:1,query:1};function y(m,b,S){if(m=(m=f(m)).replace(o,""),!_instanceof(this,y))return new y(m,b,S);var T,w,R,_,E,O,I=d.slice(),N=typeof b==="undefined"?"undefined":_type_of(b),k=this,B=0;for(N!=="object"&&N!=="string"&&(S=b,b=null),S&&typeof S!="function"&&(S=i.parse),T=!(w=v(m||"",b=x(b))).protocol&&!w.slashes,k.slashes=w.slashes||T&&b.slashes,k.protocol=w.protocol||b.protocol||"",m=w.rest,(w.protocol==="file:"&&(w.slashesCount!==2||l.test(m))||!w.slashes&&(w.protocol||w.slashesCount<2||!h(k.protocol)))&&(I[3]=[/(.*)/,"pathname"]);B<I.length;B++)typeof(_=I[B])!="function"?(R=_[0],O=_[1],R!=R?k[O]=m:typeof R=="string"?~(E=R==="@"?m.lastIndexOf(R):m.indexOf(R))&&(typeof _[2]=="number"?(k[O]=m.slice(0,E),m=m.slice(E+_[2])):(k[O]=m.slice(E),m=m.slice(0,E))):(E=R.exec(m))&&(k[O]=E[1],m=m.slice(0,E.index)),k[O]=k[O]||T&&_[3]&&b[O]||"",_[4]&&(k[O]=k[O].toLowerCase())):m=_(m,k);S&&(k.query=S(k.query)),T&&b.slashes&&k.pathname.charAt(0)!=="/"&&(k.pathname!==""||b.pathname!=="")&&(k.pathname=function(U,$){if(U==="")return $;for(var X=($||"/").split("/").slice(0,-1).concat(U.split("/")),le=X.length,K=X[le-1],qe=!1,V=0;le--;)X[le]==="."?X.splice(le,1):X[le]===".."?(X.splice(le,1),V++):V&&(le===0&&(qe=!0),X.splice(le,1),V--);return qe&&X.unshift(""),K!=="."&&K!==".."||X.push(""),X.join("/")}(k.pathname,b.pathname)),k.pathname.charAt(0)!=="/"&&h(k.protocol)&&(k.pathname="/"+k.pathname),n(k.port,k.protocol)||(k.host=k.hostname,k.port=""),k.username=k.password="",k.auth&&(~(E=k.auth.indexOf(":"))?(k.username=k.auth.slice(0,E),k.username=encodeURIComponent(decodeURIComponent(k.username)),k.password=k.auth.slice(E+1),k.password=encodeURIComponent(decodeURIComponent(k.password))):k.username=encodeURIComponent(decodeURIComponent(k.auth)),k.auth=k.password?k.username+":"+k.password:k.username),k.origin=k.protocol!=="file:"&&h(k.protocol)&&k.host?k.protocol+"//"+k.host:"null",k.href=k.toString()}y.prototype={set:function set(m,b,S){var T=this;switch(m){case"query":typeof b=="string"&&b.length&&(b=(S||i.parse)(b)),T[m]=b;break;case"port":T[m]=b,n(b,T.protocol)?b&&(T.host=T.hostname+":"+b):(T.host=T.hostname,T[m]="");break;case"hostname":T[m]=b,T.port&&(b+=":"+T.port),T.host=b;break;case"host":T[m]=b,u.test(b)?(b=b.split(":"),T.port=b.pop(),T.hostname=b.join(":")):(T.hostname=b,T.port="");break;case"protocol":T.protocol=b.toLowerCase(),T.slashes=!S;break;case"pathname":case"hash":if(b){var w=m==="pathname"?"/":"#";T[m]=b.charAt(0)!==w?w+b:b}else T[m]=b;break;case"username":case"password":T[m]=encodeURIComponent(b);break;case"auth":var R=b.indexOf(":");~R?(T.username=b.slice(0,R),T.username=encodeURIComponent(decodeURIComponent(T.username)),T.password=b.slice(R+1),T.password=encodeURIComponent(decodeURIComponent(T.password))):T.username=encodeURIComponent(decodeURIComponent(b))}for(var _=0;_<d.length;_++){var E=d[_];E[4]&&(T[E[1]]=T[E[1]].toLowerCase())}return T.auth=T.password?T.username+":"+T.password:T.username,T.origin=T.protocol!=="file:"&&h(T.protocol)&&T.host?T.protocol+"//"+T.host:"null",T.href=T.toString(),T},toString:function toString(m){m&&typeof m=="function"||(m=i.stringify);var b,S=this,T=S.host,w=S.protocol;w&&w.charAt(w.length-1)!==":"&&(w+=":");var R=w+(S.protocol&&S.slashes||h(S.protocol)?"//":"");return S.username?(R+=S.username,S.password&&(R+=":"+S.password),R+="@"):S.password?(R+=":"+S.password,R+="@"):S.protocol!=="file:"&&h(S.protocol)&&!T&&S.pathname!=="/"&&(R+="@"),(T[T.length-1]===":"||u.test(S.hostname)&&!S.port)&&(T+=":"),R+=T+S.pathname,(b=_type_of(S.query)=="object"?m(S.query):S.query)&&(R+=b.charAt(0)!=="?"?"?"+b:b),S.hash&&(R+=S.hash),R}},y.extractProtocol=v,y.location=x,y.trimLeft=f,y.qs=i,r.exports=y},410:function(){},388:function(){},805:function(){},345:function(){},800:function(){}},Ez={};lr.n=function(r){var e=r&&r.__esModule?function(){return r.default}:function(){return r};return lr.d(e,{a:e}),e},lr.d=function(r,e){for(var t in e)lr.o(e,t)&&!lr.o(r,t)&&Object.defineProperty(r,t,{enumerable:!0,get:e[t]})},lr.o=function(r,e){return Object.prototype.hasOwnProperty.call(r,e)},lr.nmd=function(r){return r.paths=[],r.children||(r.children=[]),r};qn={};lr.d(qn,{hT:function(){return Pt},O4:function(){return $i},Kd:function(){return uje},YK:function(){return cje},UU:function(){return h$e},Gu:function(){return Kz},ky:function(){return iK},h4:function(){return pd},ch:function(){return Fx},hq:function(){return ss},i5:function(){return aK}});eje=lr(737),rje=lr.n(eje);ht=/*#__PURE__*/function(Error1){"use strict";_inherits(ht1,Error1);function ht1(e,t){_class_call_check(this,ht1);var _this;var n=Array.prototype.slice.call(arguments),_ref=function(s){var u,c="";if(s.length===0)u={};else if(TE(s[0]))u={cause:s[0]},c=s.slice(1).join(" ")||"";else if(s[0]&&_type_of(s[0])=="object")u=Object.assign({},s[0]),c=s.slice(1).join(" ")||"";else{if(typeof s[0]!="string")throw new Error("Invalid arguments passed to Layerr");u={},c=c=s.join(" ")||""}return{options:u,shortMessage:c}}(n),i=_ref.options,a=_ref.shortMessage,o=a;if(i.cause&&(o="".concat(o,": ").concat(i.cause.message)),_this=_call_super(this,ht1,[o]),_this.message=o,i.name&&typeof i.name=="string"?_this.name=i.name:_this.name="Layerr",i.cause&&Object.defineProperty(_this,"_cause",{value:i.cause}),Object.defineProperty(_this,"_info",{value:{}}),i.info&&_type_of(i.info)=="object"&&Object.assign(_this._info,i.info),Error.captureStackTrace){var s=i.constructorOpt||_this.constructor;Error.captureStackTrace(_this,s)}return _this}_create_class(ht1,[{key:"toString",value:function toString(){var e=this.name||this.constructor.name||this.constructor.prototype.name;return this.message&&(e="".concat(e,": ").concat(this.message)),e}}],[{key:"cause",value:function cause(e){return mE(e),e._cause&&TE(e._cause)?e._cause:null}},{key:"fullStack",value:function fullStack(e){var n;mE(e);var t=ht.cause(e);return t?"".concat(e.stack,"\ncaused by: ").concat(ht.fullStack(t)):(n=e.stack)!=null?n:""}},{key:"info",value:function info(e){mE(e);var t={},n=ht.cause(e);return n&&Object.assign(t,ht.info(n)),e._info&&Object.assign(t,e._info),t}}]);return ht1}(_wrap_native_super(Error)),tje=lr(47),Cx=lr.n(tje),qz="__PATH_SEPARATOR_POSIX__",Tz="__PATH_SEPARATOR_WINDOWS__";ije=lr(542),ad=lr.n(ije),aje="abcdef0123456789";oje=lr(101),Gz=lr.n(oje);ld=typeof WorkerGlobalScope!="undefined"&&_instanceof(self,WorkerGlobalScope)?self:typeof window!="undefined"?window:globalThis,sje=ld.fetch.bind(ld),uje=(ld.Headers,ld.Request),cje=ld.Response,Pt=function(r){return r.Auto="auto",r.Digest="digest",r.None="none",r.Password="password",r.Token="token",r}({}),$i=function(r){return r.DataTypeNoLength="data-type-no-length",r.InvalidAuthType="invalid-auth-type",r.InvalidOutputFormat="invalid-output-format",r.LinkUnsupportedAuthType="link-unsupported-auth",r.InvalidUpdateRange="invalid-update-range",r.NotSupported="not-supported",r}({});lr(345),lr(800);Pz="@@HOTPATCHER",lje=function(){};AE=/*#__PURE__*/function(){"use strict";function AE1(){_class_call_check(this,AE1);this._configuration={registry:{},getEmptyAction:"null"},this.__type__=Pz}_create_class(AE1,[{key:"configuration",get:function get(){return this._configuration}},{key:"getEmptyAction",get:function get(){return this.configuration.getEmptyAction},set:function set(e){this.configuration.getEmptyAction=e}},{key:"control",value:function control(e){var _this=this;var t=arguments.length>1&&arguments[1]!==void 0&&arguments[1];if(!e||e.__type__!==Pz)throw new Error("Failed taking control of target HotPatcher instance: Invalid type or object");return Object.keys(e.configuration.registry).forEach(function(n){_this.configuration.registry.hasOwnProperty(n)?t&&(_this.configuration.registry[n]=Object.assign({},e.configuration.registry[n])):_this.configuration.registry[n]=Object.assign({},e.configuration.registry[n])}),e._configuration=this.configuration,this}},{key:"execute",value:function execute(e){var t=this.get(e)||lje;for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];return t.apply(void 0,_to_consumable_array(i))}},{key:"get",value:function get(e){var t=this.configuration.registry[e];if(!t)switch(this.getEmptyAction){case"null":return null;case"throw":throw new Error("Failed handling method request: No method provided for override: ".concat(e));default:throw new Error("Failed handling request which resulted in an empty method: Invalid empty-action specified: ".concat(this.getEmptyAction))}return(function(){for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];if(i.length===0)throw new Error("Failed creating sequence: No functions provided");return function(){for(var o=arguments.length,s=new Array(o),u=0;u<o;u++)s[u]=arguments[u];var c=s,l=this;for(;i.length>0;)c=[i.shift().apply(l,c)];return c[0]}}).apply(this,_to_consumable_array(t.methods))}},{key:"isPatched",value:function isPatched(e){return!!this.configuration.registry[e]}},{key:"patch",value:function patch(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},tmp=n.chain,i=tmp===void 0?!1:tmp;if(this.configuration.registry[e]&&this.configuration.registry[e].final)throw new Error("Failed patching '".concat(e,"': Method marked as being final"));if(typeof t!="function")throw new Error("Failed patching '".concat(e,"': Provided method is not a function"));if(i)this.configuration.registry[e]?this.configuration.registry[e].methods.push(t):this.configuration.registry[e]=yE(t);else if(this.isPatched(e)){var _this_configuration_registry_e=this.configuration.registry[e],a=_this_configuration_registry_e.original;this.configuration.registry[e]=Object.assign(yE(t),{original:a})}else this.configuration.registry[e]=yE(t);return this}},{key:"patchInline",value:function patchInline(e,t){this.isPatched(e)||this.patch(e,t);for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a];return this.execute.apply(this,[e].concat(_to_consumable_array(i)))}},{key:"plugin",value:function plugin(e){var _this=this;for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return n.forEach(function(a){_this.patch(e,a,{chain:!0})}),this}},{key:"restore",value:function restore(e){if(!this.isPatched(e))throw new Error("Failed restoring method: No method present for key: ".concat(e));if(typeof this.configuration.registry[e].original!="function")throw new Error("Failed restoring method: Original method not found or of invalid type for key: ".concat(e));return this.configuration.registry[e].methods=[this.configuration.registry[e].original],this}},{key:"setFinal",value:function setFinal(e){if(!this.configuration.registry.hasOwnProperty(e))throw new Error("Failed marking '".concat(e,"' as final: No method found for key"));return this.configuration.registry[e].final=!0,this}}]);return AE1}(),bE=null;lr(805);var ref;dje=typeof ArrayBuffer=="function",ref=Object.prototype,pje=ref.toString,ref;Yz=NE(function(r){var e=r._digest;return delete r._digest,e.hasDigestAuth&&(r=Cz(r,{headers:{Authorization:Oz(r,e)}})),RE(kx(r),function(t){var n=!1;return i=function i(o){return n?o:t},(a=function(){if(t.status==401)return e.hasDigestAuth=function(o,s){if(!Vz(o))return!1;var u=/([a-z0-9_-]+)=(?:"([^"]+)"|([a-z0-9_-]+))/gi;for(;;){var c=o.headers&&o.headers.get("www-authenticate")||"",l=u.exec(c);if(!l)break;s[l[1]]=l[2]||l[3]}return s.nc+=1,s.cnonce=function(){var c="";for(var l=0;l<32;++l)c="".concat(c).concat(aje[Math.floor(16*Math.random())]);return c}(),!0}(t,e),function(){if(e.hasDigestAuth)return RE(kx(r=Cz(r,{headers:{Authorization:Oz(r,e)}})),function(o){return o.status==401?e.hasDigestAuth=!1:e.nc++,n=!0,o})}();e.nc++}())&&a.then?a.then(i):i(a);var i,a})}),hje=NE(function(r,e){return RE(kx(r),function(t){return t.ok?(e.authType=Pt.Password,t):t.status==401&&Vz(t)?(e.authType=Pt.Digest,zz(e,e.username,e.password,void 0,void 0),r._digest=e.digest,Yz(r)):t})}),zr=NE(function(r,e){return e.authType===Pt.Auto?hje(r,e):r._digest?Yz(r):kx(r)});xje=lr(285),Lx=function(r){if(typeof r!="string")throw new TypeError("invalid pattern");if(r.length>65536)throw new TypeError("pattern is too long")},gje={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},od=function(r){return r.replace(/[[\]\\-]/g,"\\$&")},Nz=function(r){return r.join("")},vje=function(r,e){var t=e;if(r.charAt(t)!=="[")throw new Error("not in a brace expression");var n=[],i=[],a=t+1,o=!1,s=!1,u=!1,c=!1,l=t,f="";e:for(;a<r.length;){var h=r.charAt(a);if(h!=="!"&&h!=="^"||a!==t+1){if(h==="]"&&o&&!u){l=a+1;break}if(o=!0,h!=="\\"||u){if(h==="["&&!u){var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;try{for(var _iterator=Object.entries(gje)[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var _step_value=_sliced_to_array(_step.value,2),v=_step_value[0],_step_value_=_sliced_to_array(_step_value[1],3),y=_step_value_[0],m=_step_value_[1],b=_step_value_[2];if(r.startsWith(v,a)){if(f)return["$.",!1,r.length-t,!0];a+=v.length,b?i.push(y):n.push(y),s=s||m;continue e}}}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}}u=!1,f?(h>f?n.push(od(f)+"-"+od(h)):h===f&&n.push(od(h)),f="",a++):r.startsWith("-]",a+1)?(n.push(od(h+"-")),a+=2):r.startsWith("-",a+1)?(f=h,a+=2):(n.push(od(h)),a++)}else u=!0,a++}else c=!0,a++}if(l<a)return["",!1,0,!1];if(!n.length&&!i.length)return["$.",!1,r.length-t,!0];if(i.length===0&&n.length===1&&/^\\?.$/.test(n[0])&&!c)return[(d=n[0].length===2?n[0].slice(-1):n[0],d.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")),!1,l-t,!1];var d;var p="["+(c?"^":"")+Nz(n)+"]",x="["+(c?"":"^")+Nz(i)+"]";return[n.length&&i.length?"("+p+"|"+x+")":n.length?p:x,s,l-t,!0]},sd=function sd1(r){var _ref=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},tmp=_ref.windowsPathsNoEscape,e=tmp===void 0?!1:tmp;return e?r.replace(/\[([^\/\\])\]/g,"$1"):r.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1")},mje=new Set(["!","?","+","*","@"]),kz=function(r){return mje.has(r)},_E="(?!\\.)",yje=new Set(["[","."]),bje=new Set(["..","."]),_je=new Set("().*{}+?[]^$\\!"),kE="[^/]",Lz=kE+"*?",Dz=kE+"+?",Ht=/*#__PURE__*/function(){"use strict";function Ht1(e,t){_class_call_check(this,Ht1);vt(this,Wx);vt(this,dd);rr(this,"type");vt(this,Gr,void 0);vt(this,nt,void 0);vt(this,ji,!1);vt(this,wr,[]);vt(this,Ur,void 0);vt(this,Ha,void 0);vt(this,as,void 0);vt(this,Qa,!1);vt(this,di,void 0);vt(this,os,void 0);vt(this,fd,!1);var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.type=e,e&&kr(this,nt,!0),kr(this,Ur,t),kr(this,Gr,se(this,Ur)?se(se(this,Ur),Gr):this),kr(this,di,se(this,Gr)===this?n:se(se(this,Gr),di)),kr(this,as,se(this,Gr)===this?[]:se(se(this,Gr),as)),e!=="!"||se(se(this,Gr),Qa)||se(this,as).push(this),kr(this,Ha,se(this,Ur)?se(se(this,Ur),wr).length:0)}_create_class(Ht1,[{key:"hasMagic",get:function get(){if(se(this,nt)!==void 0)return se(this,nt);var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;try{for(var _iterator=se(this,wr)[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var e=_step.value;if(typeof e!="string"&&(e.type||e.hasMagic))return kr(this,nt,!0)}}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}return se(this,nt)}},{key:"toString",value:function toString(){return se(this,os)!==void 0?se(this,os):this.type?kr(this,os,this.type+"("+se(this,wr).map(function(e){return String(e)}).join("|")+")"):kr(this,os,se(this,wr).map(function(e){return String(e)}).join(""))}},{key:"push",value:function push(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;try{for(var _iterator=t[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var i=_step.value;if(i!==""){if(typeof i!="string"&&!(_instanceof(i,Ht)&&se(i,Ur)===this))throw new Error("invalid part: "+i);se(this,wr).push(i)}}}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}}},{key:"toJSON",value:function toJSON(){var t;var e=this.type===null?se(this,wr).slice().map(function(n){return typeof n=="string"?n:n.toJSON()}):[this.type].concat(_to_consumable_array(se(this,wr).map(function(n){return n.toJSON()})));return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===se(this,Gr)||se(se(this,Gr),Qa)&&((t=se(this,Ur))==null?void 0:t.type)==="!")&&e.push({}),e}},{key:"isStart",value:function isStart(){var t;if(se(this,Gr)===this)return!0;if(!((t=se(this,Ur))!=null&&t.isStart()))return!1;if(se(this,Ha)===0)return!0;var e=se(this,Ur);for(var n=0;n<se(this,Ha);n++){var i=se(e,wr)[n];if(!(_instanceof(i,Ht)&&i.type==="!"))return!1}return!0}},{key:"isEnd",value:function isEnd(){var t,n,i;if(se(this,Gr)===this||((t=se(this,Ur))==null?void 0:t.type)==="!")return!0;if(!((n=se(this,Ur))!=null&&n.isEnd()))return!1;if(!this.type)return(i=se(this,Ur))==null?void 0:i.isEnd();var e=se(this,Ur)?se(se(this,Ur),wr).length:0;return se(this,Ha)===e-1}},{key:"copyIn",value:function copyIn(e){typeof e=="string"?this.push(e):this.push(e.clone(this))}},{key:"clone",value:function clone(e){var t=new Ht(this.type,e);var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;try{for(var _iterator=se(this,wr)[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var n=_step.value;t.copyIn(n)}}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}return t}},{key:"toMMPattern",value:function toMMPattern(){if(this!==se(this,Gr))return se(this,Gr).toMMPattern();var e=this.toString(),_this_toRegExpSource=_sliced_to_array(this.toRegExpSource(),4),t=_this_toRegExpSource[0],n=_this_toRegExpSource[1],i=_this_toRegExpSource[2],a=_this_toRegExpSource[3];if(!(i||se(this,nt)||se(this,di).nocase&&!se(this,di).nocaseMagicOnly&&e.toUpperCase()!==e.toLowerCase()))return n;var o=(se(this,di).nocase?"i":"")+(a?"u":"");return Object.assign(new RegExp("^".concat(t,"$"),o),{_src:t,_glob:e})}},{key:"options",get:function get(){return se(this,di)}},{key:"toRegExpSource",value:function toRegExpSource(e){var _this=this;var u;var t=e!=null?e:!!se(this,di).dot;if(se(this,Gr)===this&&da(this,Wx,Jz).call(this),!this.type){var c=this.isStart()&&this.isEnd(),l=se(this,wr).map(function(p){var m;var _ref=_sliced_to_array(typeof p=="string"?da(m=Ht,Mx,Zz).call(m,p,se(_this,nt),c):p.toRegExpSource(e),4),x=_ref[0],h=_ref[1],v=_ref[2],y=_ref[3];return kr(_this,nt,se(_this,nt)||v),kr(_this,ji,se(_this,ji)||y),x}).join(""),f="";if(this.isStart()&&typeof se(this,wr)[0]=="string"&&(se(this,wr).length!==1||!bje.has(se(this,wr)[0]))){var p=yje,x=t&&p.has(l.charAt(0))||l.startsWith("\\.")&&p.has(l.charAt(2))||l.startsWith("\\.\\.")&&p.has(l.charAt(4)),h=!t&&!e&&p.has(l.charAt(0));f=x?"(?!(?:^|/)\\.\\.?(?:$|/))":h?_E:""}var d="";return this.isEnd()&&se(se(this,Gr),Qa)&&((u=se(this,Ur))==null?void 0:u.type)==="!"&&(d="(?:$|\\/)"),[f+l+d,sd(l),kr(this,nt,!!se(this,nt)),se(this,ji)]}var n=this.type==="*"||this.type==="+",i=this.type==="!"?"(?:(?!(?:":"(?:",a=da(this,dd,IE).call(this,t);if(this.isStart()&&this.isEnd()&&!a&&this.type!=="!"){var c1=this.toString();return kr(this,wr,[c1]),this.type=null,kr(this,nt,void 0),[c1,sd(this.toString()),!1,!1]}var o=!n||e||t?"":da(this,dd,IE).call(this,!0);o===a&&(o=""),o&&(a="(?:".concat(a,")(?:").concat(o,")*?"));var s="";return s=this.type==="!"&&se(this,fd)?(this.isStart()&&!t?_E:"")+Dz:i+a+(this.type==="!"?"))"+(!this.isStart()||t||e?"":_E)+Lz+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&o?")":this.type==="*"&&o?")?":")".concat(this.type)),[s,sd(a),kr(this,nt,!!se(this,nt)),se(this,ji)]}}],[{key:"fromGlob",value:function fromGlob(e){var i;var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=new Ht(null,void 0,t);return da(i=Ht,Ku,Px).call(i,e,n,0,t),n}}]);return Ht1}(),Vu=Ht;Gr=new WeakMap,nt=new WeakMap,ji=new WeakMap,wr=new WeakMap,Ur=new WeakMap,Ha=new WeakMap,as=new WeakMap,Qa=new WeakMap,di=new WeakMap,os=new WeakMap,fd=new WeakMap,Wx=new WeakSet,Jz=function Jz1(){if(this!==se(this,Gr))throw new Error("should only call on root");if(se(this,Qa))return this;var e;for(this.toString(),kr(this,Qa,!0);e=se(this,as).pop();){if(e.type!=="!")continue;var t=e,n=se(t,Ur);for(;n;){var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;for(var i=se(t,Ha)+1;!n.type&&i<se(n,wr).length;i++)try{for(var _iterator=se(e,wr)[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var a=_step.value;if(typeof a=="string")throw new Error("string part in extglob AST??");a.copyIn(se(n,wr)[i])}}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}t=n,n=se(t,Ur)}}return this},Ku=new WeakSet,Px=function(e,t,n,i){var p,x;var a=!1,o=!1,s=-1,u=!1;if(t.type===null){var h=n,v="";for(;h<e.length;){var y=e.charAt(h++);if(a||y==="\\")a=!a,v+=y;else if(o)h===s+1?y!=="^"&&y!=="!"||(u=!0):y!=="]"||h===s+2&&u||(o=!1),v+=y;else if(y!=="[")if(i.noext||!kz(y)||e.charAt(h)!=="(")v+=y;else{t.push(v),v="";var m=new Ht(y,t);h=da(p=Ht,Ku,Px).call(p,e,m,h,i),t.push(m)}else o=!0,s=h,u=!1,v+=y}return t.push(v),h}var c=n+1,l=new Ht(null,t),f=[],d="";for(;c<e.length;){var h1=e.charAt(c++);if(a||h1==="\\")a=!a,d+=h1;else if(o)c===s+1?h1!=="^"&&h1!=="!"||(u=!0):h1!=="]"||c===s+2&&u||(o=!1),d+=h1;else if(h1!=="[")if(kz(h1)&&e.charAt(c)==="("){l.push(d),d="";var v1=new Ht(h1,l);l.push(v1),c=da(x=Ht,Ku,Px).call(x,e,v1,c,i)}else if(h1!=="|"){var _t1;if(h1===")")return d===""&&se(t,wr).length===0&&kr(t,fd,!0),l.push(d),d="",(_t1=t).push.apply(_t1,_to_consumable_array(f).concat([l])),c;d+=h1}else l.push(d),d="",f.push(l),l=new Ht(null,t);else o=!0,s=c,u=!1,d+=h1}return t.type=null,kr(t,nt,void 0),kr(t,wr,[e.substring(n-1)]),c},dd=new WeakSet,IE=function IE1(e){var _this=this;return se(this,wr).map(function(t){if(typeof t=="string")throw new Error("string type in extglob ast??");var _t_toRegExpSource=_sliced_to_array(t.toRegExpSource(e),4),n=_t_toRegExpSource[0],i=_t_toRegExpSource[1],a=_t_toRegExpSource[2],o=_t_toRegExpSource[3];return kr(_this,ji,se(_this,ji)||o),n}).filter(function(t){return!(_this.isStart()&&_this.isEnd()&&!t)}).join("|")},Mx=new WeakSet,Zz=function Zz1(e,t){var n=arguments.length>2&&arguments[2]!==void 0&&arguments[2],i=!1,a="",o=!1;for(var s=0;s<e.length;s++){var u=e.charAt(s);if(i)i=!1,a+=(_je.has(u)?"\\":"")+u;else if(u!=="\\"){if(u==="["){var _vje=_sliced_to_array(vje(e,s),4),c=_vje[0],l=_vje[1],f=_vje[2],d=_vje[3];if(f){a+=c,o=o||l,s+=f-1,t=t||d;continue}}u!=="*"?u!=="?"?a+=u.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):(a+=kE,t=!0):(a+=n&&e==="*"?Dz:Lz,t=!0)}else s===e.length-1?a+="\\\\":i=!0}return[a,sd(e),!!t,o]},vt(Vu,Ku),vt(Vu,Mx);_t=function _t1(r,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Lx(e),!(!t.nocomment&&e.charAt(0)==="#")&&new Hu(e,t).match(r)},wje=/^\*+([^+@!?\*\[\(]*)$/,Sje=function(r){return function(e){return!e.startsWith(".")&&e.endsWith(r)}},Eje=function(r){return function(e){return e.endsWith(r)}},qje=function(r){return r=r.toLowerCase(),function(e){return!e.startsWith(".")&&e.toLowerCase().endsWith(r)}},Tje=function(r){return r=r.toLowerCase(),function(e){return e.toLowerCase().endsWith(r)}},Aje=/^\*+\.\*+$/,Oje=function(r){return!r.startsWith(".")&&r.includes(".")},Rje=function(r){return r!=="."&&r!==".."&&r.includes(".")},Ije=/^\.\*+$/,Pje=function(r){return r!=="."&&r!==".."&&r.startsWith(".")},Cje=/^\*+$/,Nje=function(r){return r.length!==0&&!r.startsWith(".")},kje=function(r){return r.length!==0&&r!=="."&&r!==".."},Lje=/^\?+([^+@!?\*\[\(]*)?$/,Dje=function(r){var _r=_sliced_to_array(r,2),e=_r[0],tmp=_r[1],t=tmp===void 0?"":tmp,n=eK([e]);return t?(t=t.toLowerCase(),function(i){return n(i)&&i.toLowerCase().endsWith(t)}):n},Wje=function(r){var _r=_sliced_to_array(r,2),e=_r[0],tmp=_r[1],t=tmp===void 0?"":tmp,n=rK([e]);return t?(t=t.toLowerCase(),function(i){return n(i)&&i.toLowerCase().endsWith(t)}):n},Mje=function(r){var _r=_sliced_to_array(r,2),e=_r[0],tmp=_r[1],t=tmp===void 0?"":tmp,n=rK([e]);return t?function(i){return n(i)&&i.endsWith(t)}:n},Fje=function(r){var _r=_sliced_to_array(r,2),e=_r[0],tmp=_r[1],t=tmp===void 0?"":tmp,n=eK([e]);return t?function(i){return n(i)&&i.endsWith(t)}:n},eK=function(r){var _r=_sliced_to_array(r,1),e=_r[0],t=e.length;return function(n){return n.length===t&&!n.startsWith(".")}},rK=function(r){var _r=_sliced_to_array(r,1),e=_r[0],t=e.length;return function(n){return n.length===t&&n!=="."&&n!==".."}},tK=(typeof process==="undefined"?"undefined":_type_of(process))=="object"&&process?_type_of(process.env)=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix";_t.sep=tK==="win32"?"\\":"/";En=Symbol("globstar **");_t.GLOBSTAR=En,_t.filter=function(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return function(t){return _t(t,r,e)}};Sn=function Sn1(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.assign({},r,e)};_t.defaults=function(r){if(!r||(typeof r==="undefined"?"undefined":_type_of(r))!="object"||!Object.keys(r).length)return _t;var e=_t;return Object.assign(function(t,n){return e(t,n,Sn(r,arguments.length>2&&arguments[2]!==void 0?arguments[2]:{}))},{Minimatch:/*#__PURE__*/function(_e_Minimatch){"use strict";_inherits(Minimatch,_e_Minimatch);function Minimatch(t){_class_call_check(this,Minimatch);return _call_super(this,Minimatch,[t,Sn(r,arguments.length>1&&arguments[1]!==void 0?arguments[1]:{})])}_create_class(Minimatch,null,[{key:"defaults",value:function defaults(t){return e.defaults(Sn(r,t)).Minimatch}}]);return Minimatch}(e.Minimatch),AST:/*#__PURE__*/function(_e_AST){"use strict";_inherits(AST,_e_AST);function AST(t,n){_class_call_check(this,AST);return _call_super(this,AST,[t,n,Sn(r,arguments.length>2&&arguments[2]!==void 0?arguments[2]:{})])}_create_class(AST,null,[{key:"fromGlob",value:function fromGlob(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return e.AST.fromGlob(t,Sn(r,n))}}]);return AST}(e.AST),unescape:function unescape1(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return e.unescape(t,Sn(r,n))},escape:function escape1(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return e.escape(t,Sn(r,n))},filter:function filter(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return e.filter(t,Sn(r,n))},defaults:function(t){return e.defaults(Sn(r,t))},makeRe:function makeRe(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return e.makeRe(t,Sn(r,n))},braceExpand:function braceExpand(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return e.braceExpand(t,Sn(r,n))},match:function match(t,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return e.match(t,n,Sn(r,i))},sep:e.sep,GLOBSTAR:En})};nK=function nK1(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Lx(r),e.nobrace||!/\{(?:(?!\{).)*\}/.test(r)?[r]:xje(r)};_t.braceExpand=nK,_t.makeRe=function(r){return new Hu(r,arguments.length>1&&arguments[1]!==void 0?arguments[1]:{}).makeRe()},_t.match=function(r,e){var t=new Hu(e,arguments.length>2&&arguments[2]!==void 0?arguments[2]:{});return r=r.filter(function(n){return t.match(n)}),t.options.nonull&&!r.length&&r.push(e),r};Wz=/[?*]|[+@!]\(.*?\)|\[|\]/,Hu=/*#__PURE__*/function(){"use strict";function Hu1(e){_class_call_check(this,Hu1);rr(this,"options");rr(this,"set");rr(this,"pattern");rr(this,"windowsPathsNoEscape");rr(this,"nonegate");rr(this,"negate");rr(this,"comment");rr(this,"empty");rr(this,"preserveMultipleSlashes");rr(this,"partial");rr(this,"globSet");rr(this,"globParts");rr(this,"nocase");rr(this,"isWindows");rr(this,"platform");rr(this,"windowsNoMagicRoot");rr(this,"regexp");var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Lx(e),t=t||{},this.options=t,this.pattern=e,this.platform=t.platform||tK,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||t.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!t.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!t.nonegate,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=t.windowsNoMagicRoot!==void 0?t.windowsNoMagicRoot:!(!this.isWindows||!this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}_create_class(Hu1,[{key:"hasMagic",value:function hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined,_iteratorNormalCompletion1=true,_didIteratorError1=false,_iteratorError1=undefined;try{for(var _iterator=this.set[Symbol.iterator](),_step;!(_iteratorNormalCompletion1=(_step=_iterator.next()).done);_iteratorNormalCompletion1=true){var e=_step.value;try{for(var _iterator1=e[Symbol.iterator](),_step1;!(_iteratorNormalCompletion=(_step1=_iterator1.next()).done);_iteratorNormalCompletion=true){var t=_step1.value;if(typeof t!="string")return!0}}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator1.return!=null){_iterator1.return()}}finally{if(_didIteratorError){throw _iteratorError}}}}}catch(err1){_didIteratorError1=true;_iteratorError1=err1}finally{try{if(!_iteratorNormalCompletion1&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError1){throw _iteratorError1}}}return!1}},{key:"debug",value:function debug(){}},{key:"make",value:function make(){var _this=this;var e=this.pattern,t=this.options;if(!t.nocomment&&e.charAt(0)==="#")return void(this.comment=!0);if(!e)return void(this.empty=!0);this.parseNegate(),this.globSet=_to_consumable_array(new Set(this.braceExpand())),t.debug&&(this.debug=function(){var _console;return(_console=console).error.apply(_console,arguments)}),this.debug(this.pattern,this.globSet);var n=this.globSet.map(function(a){return _this.slashSplit(a)});this.globParts=this.preprocess(n),this.debug(this.pattern,this.globParts);var i=this.globParts.map(function(a,o,s){if(_this.isWindows&&_this.windowsNoMagicRoot){var u=!(a[0]!==""||a[1]!==""||a[2]!=="?"&&Wz.test(a[2])||Wz.test(a[3])),c=/^[a-z]:/i.test(a[0]);if(u)return _to_consumable_array(a.slice(0,4)).concat(_to_consumable_array(a.slice(4).map(function(l){return _this.parse(l)})));if(c)return[a[0]].concat(_to_consumable_array(a.slice(1).map(function(l){return _this.parse(l)})))}return a.map(function(u){return _this.parse(u)})});if(this.debug(this.pattern,i),this.set=i.filter(function(a){return a.indexOf(!1)===-1}),this.isWindows)for(var a=0;a<this.set.length;a++){var o=this.set[a];o[0]===""&&o[1]===""&&this.globParts[a][2]==="?"&&typeof o[3]=="string"&&/^[a-z]:$/i.test(o[3])&&(o[2]="?")}this.debug(this.pattern,this.set)}},{key:"preprocess",value:function preprocess(e){if(this.options.noglobstar)for(var n=0;n<e.length;n++)for(var i=0;i<e[n].length;i++)e[n][i]==="**"&&(e[n][i]="*");var _this_options=this.options,tmp=_this_options.optimizationLevel,t=tmp===void 0?1:tmp;return t>=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):e=t>=1?this.levelOneOptimize(e):this.adjascentGlobstarOptimize(e),e}},{key:"adjascentGlobstarOptimize",value:function adjascentGlobstarOptimize(e){return e.map(function(t){var n=-1;for(;(n=t.indexOf("**",n+1))!==-1;){var i=n;for(;t[i+1]==="**";)i++;i!==n&&t.splice(n,i-n)}return t})}},{key:"levelOneOptimize",value:function levelOneOptimize(e){return e.map(function(t){return(t=t.reduce(function(n,i){var a=n[n.length-1];return i==="**"&&a==="**"?n:i===".."&&a&&a!==".."&&a!=="."&&a!=="**"?(n.pop(),n):(n.push(i),n)},[])).length===0?[""]:t})}},{key:"levelTwoFileOptimize",value:function levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));var t=!1;do{if(t=!1,!this.preserveMultipleSlashes){for(var i=1;i<e.length-1;i++){var a=e[i];i===1&&a===""&&e[0]===""||a!=="."&&a!==""||(t=!0,e.splice(i,1),i--)}e[0]!=="."||e.length!==2||e[1]!=="."&&e[1]!==""||(t=!0,e.pop())}var n=0;for(;(n=e.indexOf("..",n+1))!==-1;){var i2=e[n-1];i2&&i2!=="."&&i2!==".."&&i2!=="**"&&(t=!0,e.splice(n-1,2),n-=2)}}while(t);return e.length===0?[""]:e}},{key:"firstPhasePreProcess",value:function firstPhasePreProcess(e){var t=!1;do{t=!1;var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;try{for(var _iterator=e[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var n=_step.value;var i=-1;for(;(i=n.indexOf("**",i+1))!==-1;){var o=i;for(;n[o+1]==="**";)o++;o>i&&n.splice(i+1,o-i);var s=n[i+1],u=n[i+2],c=n[i+3];if(s!==".."||!u||u==="."||u===".."||!c||c==="."||c==="..")continue;t=!0,n.splice(i,1);var l=n.slice(0);l[i]="**",e.push(l),i--}if(!this.preserveMultipleSlashes){for(var o1=1;o1<n.length-1;o1++){var s1=n[o1];o1===1&&s1===""&&n[0]===""||s1!=="."&&s1!==""||(t=!0,n.splice(o1,1),o1--)}n[0]!=="."||n.length!==2||n[1]!=="."&&n[1]!==""||(t=!0,n.pop())}var a=0;for(;(a=n.indexOf("..",a+1))!==-1;){var o2=n[a-1];if(o2&&o2!=="."&&o2!==".."&&o2!=="**"){var _n;t=!0;var s2=a===1&&n[a+1]==="**"?["."]:[];(_n=n).splice.apply(_n,[a-1,2].concat(_to_consumable_array(s2))),n.length===0&&n.push(""),a-=2}}}}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}}while(t);return e}},{key:"secondPhasePreProcess",value:function secondPhasePreProcess(e){for(var t=0;t<e.length-1;t++)for(var n=t+1;n<e.length;n++){var i=this.partsMatch(e[t],e[n],!this.preserveMultipleSlashes);if(i){e[t]=[],e[n]=i;break}}return e.filter(function(t){return t.length})}},{key:"partsMatch",value:function partsMatch(e,t){var n=arguments.length>2&&arguments[2]!==void 0&&arguments[2],i=0,a=0,o=[],s="";for(;i<e.length&&a<t.length;)if(e[i]===t[a])o.push(s==="b"?t[a]:e[i]),i++,a++;else if(n&&e[i]==="**"&&t[a]===e[i+1])o.push(e[i]),i++;else if(n&&t[a]==="**"&&e[i]===t[a+1])o.push(t[a]),a++;else if(e[i]!=="*"||!t[a]||!this.options.dot&&t[a].startsWith(".")||t[a]==="**"){if(t[a]!=="*"||!e[i]||!this.options.dot&&e[i].startsWith(".")||e[i]==="**"||s==="a")return!1;s="b",o.push(t[a]),i++,a++}else{if(s==="b")return!1;s="a",o.push(e[i]),i++,a++}return e.length===t.length&&o}},{key:"parseNegate",value:function parseNegate(){if(this.nonegate)return;var e=this.pattern,t=!1,n=0;for(var i=0;i<e.length&&e.charAt(i)==="!";i++)t=!t,n++;n&&(this.pattern=e.slice(n)),this.negate=t}},{key:"matchOne",value:function matchOne(e,t){var n=arguments.length>2&&arguments[2]!==void 0&&arguments[2],i=this.options;if(this.isWindows){var h=typeof e[0]=="string"&&/^[a-z]:$/i.test(e[0]),v=!h&&e[0]===""&&e[1]===""&&e[2]==="?"&&/^[a-z]:$/i.test(e[3]),y=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),m=v?3:h?0:void 0,b=!y&&t[0]===""&&t[1]===""&&t[2]==="?"&&typeof t[3]=="string"&&/^[a-z]:$/i.test(t[3])?3:y?0:void 0;if(typeof m=="number"&&typeof b=="number"){var _ref=[e[m],t[b]],S=_ref[0],T=_ref[1];S.toLowerCase()===T.toLowerCase()&&(t[b]=S,b>m?t=t.slice(b):m>b&&(e=e.slice(m)))}}var _this_options=this.options,tmp=_this_options.optimizationLevel,a=tmp===void 0?1:tmp;a>=2&&(e=this.levelTwoFileOptimize(e)),this.debug("matchOne",this,{file:e,pattern:t}),this.debug("matchOne",e.length,t.length);for(var o=0,s=0,u=e.length,c=t.length;o<u&&s<c;o++,s++){this.debug("matchOne loop");var l=t[s],f=e[o];if(this.debug(t,l,f),l===!1)return!1;if(l===En){this.debug("GLOBSTAR",[t,l,f]);var d=o,p=s+1;if(p===c){for(this.debug("** at the end");o<u;o++)if(e[o]==="."||e[o]===".."||!i.dot&&e[o].charAt(0)===".")return!1;return!0}for(;d<u;){var x=e[d];if(this.debug("\nglobstar while",e,d,t,p,x),this.matchOne(e.slice(d),t.slice(p),n))return this.debug("globstar found match!",d,u,x),!0;if(x==="."||x===".."||!i.dot&&x.charAt(0)==="."){this.debug("dot detected!",e,d,t,p);break}this.debug("globstar swallow a segment, and continue"),d++}return!(!n||(this.debug("\n>>> no match, partial?",e,d,t,p),d!==u))}var h1=void 0;if(typeof l=="string"?(h1=f===l,this.debug("string match",l,f,h1)):(h1=l.test(f),this.debug("pattern match",l,f,h1)),!h1)return!1}if(o===u&&s===c)return!0;if(o===u)return n;if(s===c)return o===u-1&&e[o]==="";throw new Error("wtf?")}},{key:"braceExpand",value:function braceExpand(){return nK(this.pattern,this.options)}},{key:"parse",value:function parse(e){Lx(e);var t=this.options;if(e==="**")return En;if(e==="")return"";var n,i=null;(n=e.match(Cje))?i=t.dot?kje:Nje:(n=e.match(wje))?i=(t.nocase?t.dot?Tje:qje:t.dot?Eje:Sje)(n[1]):(n=e.match(Lje))?i=(t.nocase?t.dot?Wje:Dje:t.dot?Mje:Fje)(n):(n=e.match(Aje))?i=t.dot?Rje:Oje:(n=e.match(Ije))&&(i=Pje);var a=Vu.fromGlob(e,this.options).toMMPattern();return i&&(typeof a==="undefined"?"undefined":_type_of(a))=="object"&&Reflect.defineProperty(a,"test",{value:i}),a}},{key:"makeRe",value:function makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;var e=this.set;if(!e.length)return this.regexp=!1,this.regexp;var t=this.options,n=t.noglobstar?"[^/]*?":t.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",i=new Set(t.nocase?["i"]:[]),a=e.map(function(u){var c=u.map(function(l){var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;if(_instanceof(l,RegExp))try{for(var _iterator=l.flags.split("")[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var f=_step.value;i.add(f)}}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}return typeof l=="string"?l.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):l===En?En:l._src});return c.forEach(function(l,f){var d=c[f+1],p=c[f-1];l===En&&p!==En&&(p===void 0?d!==void 0&&d!==En?c[f+1]="(?:\\/|"+n+"\\/)?"+d:c[f]=n:d===void 0?c[f-1]=p+"(?:\\/|"+n+")?":d!==En&&(c[f-1]=p+"(?:\\/|\\/"+n+"\\/)"+d,c[f+1]=En))}),c.filter(function(l){return l!==En}).join("/")}).join("|"),_ref=_sliced_to_array(e.length>1?["(?:",")"]:["",""],2),o=_ref[0],s=_ref[1];a="^"+o+a+s+"$",this.negate&&(a="^(?!"+a+").+$");try{this.regexp=new RegExp(a,_to_consumable_array(i).join(""))}catch(u){this.regexp=!1}return this.regexp}},{key:"slashSplit",value:function slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(e)?[""].concat(_to_consumable_array(e.split(/\/+/))):e.split(/\/+/)}},{key:"match",value:function match(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.partial;if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&t)return!0;var n=this.options;this.isWindows&&(e=e.split("\\").join("/"));var i=this.slashSplit(e);this.debug(this.pattern,"split",i);var a=this.set;this.debug(this.pattern,"set",a);var o=i[i.length-1];if(!o)for(var s=i.length-2;!o&&s>=0;s--)o=i[s];for(var s1=0;s1<a.length;s1++){var u=a[s1],c=i;if(n.matchBase&&u.length===1&&(c=[o]),this.matchOne(c,u,t))return!!n.flipNegate||!this.negate}return!n.flipNegate&&this.negate}}],[{key:"defaults",value:function defaults(e){return _t.defaults(e).Minimatch}}]);return Hu1}();_t.AST=Vu,_t.Minimatch=Hu,_t.escape=function(r){var _ref=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},tmp=_ref.windowsPathsNoEscape,e=tmp===void 0?!1:tmp;return e?r.replace(/[?*()[\]]/g,"[$&]"):r.replace(/[?*()[\]\\]/g,"\\$&")},_t.unescape=sd;Bje=(Mz=function Mz1(r,e,t){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=Kr({url:qr(r.remoteURL,Er(e)),method:"COPY",headers:{Destination:qr(r.remoteURL,Er(t)),Overwrite:n.overwrite===!1?"F":"T",Depth:n.shallow?"0":"infinity"}},r,n);return o=function o(s){Hr(r,s)},(a=zr(i,r))&&a.then||(a=Promise.resolve(a)),o?a.then(o):a;var a,o},function Bje1(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];try{return Promise.resolve(Mz.apply(this,r))}catch(t){return Promise.reject(t)}}),DE=lr(635),Uje=lr(829),Ui=lr.n(Uje),Gu=function(r){return r.Array="array",r.Object="object",r.Original="original",r}(Gu||{});WE=function(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];try{return Promise.resolve(r.apply(this,e))}catch(n){return Promise.reject(n)}}}(function(r,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},tmp=t.details,n=tmp===void 0?!1:tmp,i=Kr({url:qr(r.remoteURL,Er(e)),method:"PROPFIND",headers:{Accept:"text/plain,application/xml",Depth:"0"}},r,t);return wE(zr(i,r),function(a){return Hr(r,a),wE(a.text(),function(o){return wE(pd(o),function(s){var u=iK(s,e,n);return ss(a,u,n)})})})});jje=sK(function(r,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=function(a){if(!a||a==="/")return[];var o=a,s=[];do s.push(o),o=Cx().dirname(o);while(o&&o!=="/");return s}(cd(e));n.sort(function(a,o){return a.length>o.length?1:o.length>a.length?-1:0});var i=!1;return function(a,o,s){if(typeof a[Bz]=="function"){var h=function h1(v){try{for(;!(u=f.next()).done;)if((v=o(u.value))&&v.then){if(!Uz(v))return void v.then(h,l||(l=Ct.bind(null,c=new zu,2)));v=v.v}c?Ct(c,1,v):c=v}catch(y){Ct(c||(c=new zu),2,y)}};var u,c,l,f=a[Bz]();if(h(),f.return){var d=function d(v){try{u.done||f.return()}catch(y){}return v};if(c&&c.then)return c.then(d,function(v){throw d(v)});d()}return c}if(!("length"in a))throw new TypeError("Object is not iterable");for(var p=[],x=0;x<a.length;x++)p.push(a[x]);return function(h,v,y){var m,b,S=-1;return function T(w){try{for(;++S<h.length&&(!y||!y());)if((w=v(S))&&w.then){if(!Uz(w))return void w.then(T,b||(b=Ct.bind(null,m=new zu,2)));w=w.v}m?Ct(m,1,w):m=w}catch(R){Ct(m||(m=new zu),2,R)}}(),m}(p,function(h){return o(p[h])},s)}(n,function(a){return o=function o(){return function(u,c){try{var l=oK(WE(r,a),function(f){if(f.type!=="directory")throw new Error("Path includes a file: ".concat(e))})}catch(f){return c(f)}return l&&l.then?l.then(void 0,c):l}(0,function(u){var c=u;return function(){if(c.status===404)return i=!0,Fz(PE(r,a,Se(j({},t),{recursive:!1})));throw u}()})},(s=function(){if(i)return Fz(PE(r,a,Se(j({},t),{recursive:!1})))}())&&s.then?s.then(o):o();var o,s},function(){return!1})});Bz=typeof Symbol!="undefined"?Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator")):"@@iterator";zu=function(){function r(){}return r.prototype.then=function(e,t){var n=new r,i=this.s;if(i){var a=1&i?e:t;if(a){try{Ct(n,1,a(this.v))}catch(o){Ct(n,2,o)}return n}return this}return this.o=function(a){try{var _$o=a.v;1&a.s?Ct(n,1,e?e(_$o):_$o):t?Ct(n,1,t(_$o)):Ct(n,2,_$o)}catch(o){Ct(n,2,o)}},n},r}();PE=sK(function(r,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(t.recursive===!0)return jje(r,e,t);var n=Kr({url:qr(r.remoteURL,(i=Er(e),i.endsWith("/")?i:i+"/")),method:"MKCOL"},r,t);var i;return oK(zr(n,r),function(a){Hr(r,a)})}),Vje=lr(388),jz=lr.n(Vje),Gje=function(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];try{return Promise.resolve(r.apply(this,e))}catch(n){return Promise.reject(n)}}}(function(r,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n={};if(_type_of(t.range)=="object"&&typeof t.range.start=="number"){var s="bytes=".concat(t.range.start,"-");typeof t.range.end=="number"&&(s="".concat(s).concat(t.range.end)),n.Range=s}var i=Kr({url:qr(r.remoteURL,Er(e)),method:"GET",headers:n},r,t);return o=function o(s){if(Hr(r,s),n.Range&&s.status!==206){var u=new Error("Invalid response code for partial request: ".concat(s.status));throw u.status=s.status,u}return t.callback&&setTimeout(function(){t.callback(s)},0),s.body},(a=zr(i,r))&&a.then||(a=Promise.resolve(a)),o?a.then(o):a;var a,o}),zje=function(){},Kje=function(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];try{return Promise.resolve(r.apply(this,e))}catch(n){return Promise.reject(n)}}}(function(r,e,t){t.url||(t.url=qr(r.remoteURL,Er(e)));var n=Kr(t,r,{});return a=function a(o){return Hr(r,o),o},(i=zr(n,r))&&i.then||(i=Promise.resolve(i)),a?i.then(a):i;var i,a}),Hje=function(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];try{return Promise.resolve(r.apply(this,e))}catch(n){return Promise.reject(n)}}}(function(r,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=Kr({url:qr(r.remoteURL,Er(e)),method:"DELETE"},r,t);return a=function a(o){Hr(r,o)},(i=zr(n,r))&&i.then||(i=Promise.resolve(i)),a?i.then(a):i;var i,a}),Qje=function(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];try{return Promise.resolve(r.apply(this,e))}catch(n){return Promise.reject(n)}}}(function(r,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return function(n,i){try{var a=(o=WE(r,e,t),s=function s(){return!0},u?s?s(o):o:(o&&o.then||(o=Promise.resolve(o)),s?o.then(s):o))}catch(c){return i(c)}var o,s,u;return a&&a.then?a.then(void 0,i):a}(0,function(n){if(n.status===404)return!1;throw n})});Xje=function(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];try{return Promise.resolve(r.apply(this,e))}catch(n){return Promise.reject(n)}}}(function(r,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=Kr({url:qr(r.remoteURL,Er(e),"/"),method:"PROPFIND",headers:{Accept:"text/plain,application/xml",Depth:t.deep?"infinity":"1"}},r,t);return SE(zr(n,r),function(i){return Hr(r,i),SE(i.text(),function(a){if(!a)throw new Error("Failed parsing directory contents: Empty response");return SE(pd(a),function(o){var s=Az(e),u=function(c,l,f){var d=arguments.length>3&&arguments[3]!==void 0&&arguments[3],p=arguments.length>4&&arguments[4]!==void 0&&arguments[4],x=Cx().join(l,"/"),_c_multistatus=c.multistatus,h=_c_multistatus.response,v=h.map(function(y){var m=function(S){try{return S.replace(/^https?:\/\/[^\/]+/,"")}catch(T){throw new ht(T,"Failed normalising HREF")}}(y.href),_y_propstat=y.propstat,b=_y_propstat.prop;return Fx(b,x==="/"?decodeURIComponent(cd(m)):cd(Cx().relative(decodeURIComponent(x),decodeURIComponent(m))),d)});return p?v:v.filter(function(y){return y.basename&&(y.type==="file"||y.filename!==f.replace(/\/$/,""))})}(o,Az(r.remoteBasePath||r.remotePath),s,t.details,t.includeSelf);return t.glob&&(u=function(c,l){return c.filter(function(f){return _t(f.filename,l,{matchBase:!0})})}(u,t.glob)),ss(i,u,t.details)})})})});Yje=ME(function(r,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=Kr({url:qr(r.remoteURL,Er(e)),method:"GET",headers:{Accept:"text/plain"},transformResponse:[e$e]},r,t);return Dx(zr(n,r),function(i){return Hr(r,i),Dx(i.text(),function(a){return ss(i,a,t.details)})})});Jje=ME(function(r,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=Kr({url:qr(r.remoteURL,Er(e)),method:"GET"},r,t);return Dx(zr(n,r),function(i){var a;return Hr(r,i),function(o,s){var u=o();return u&&u.then?u.then(s):s()}(function(){return Dx(i.arrayBuffer(),function(o){a=o})},function(){return ss(i,a,t.details)})})}),Zje=ME(function(r,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},tmp=t.format,n=tmp===void 0?"binary":tmp;if(n!=="binary"&&n!=="text")throw new ht({info:{code:$i.InvalidOutputFormat}},"Invalid output format: ".concat(n));return n==="text"?Yje(r,e,t):Jje(r,e,t)}),e$e=function(r){return r};t$e=cK(function(r,e,t){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=Kr({url:qr(r.remoteURL,Er(e)),method:"UNLOCK",headers:{"Lock-Token":t}},r,n);return CE(zr(i,r),function(a){if(Hr(r,a),a.status!==204&&a.status!==200)throw LE(a)})}),n$e=cK(function(r,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=t.refreshToken,tmp=t.timeout,i=tmp===void 0?i$e:tmp,a={Accept:"text/plain,application/xml",Timeout:i};n&&(a.If=n);var o=Kr({url:qr(r.remoteURL,Er(e)),method:"LOCK",headers:a,data:r$e(r.contactHref)},r,t);return CE(zr(o,r),function(s){return Hr(r,s),CE(s.text(),function(u){var c=(d=u,new DE.XMLParser({removeNSPrefix:!0,parseAttributeValue:!0,parseTagValue:!0}).parse(d)),l=Ui().get(c,"prop.lockdiscovery.activelock.locktoken.href"),f=Ui().get(c,"prop.lockdiscovery.activelock.timeout");var d;if(!l)throw LE(s,"No lock token received: ");return{token:l,serverTimeout:f}})})}),i$e="Infinite, Second-4100000000";a$e=function(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];try{return Promise.resolve(r.apply(this,e))}catch(n){return Promise.reject(n)}}}(function(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=e.path||"/",n=Kr({url:qr(r.remoteURL,t),method:"PROPFIND",headers:{Accept:"text/plain,application/xml",Depth:"0"}},r,e);return EE(zr(n,r),function(i){return Hr(r,i),EE(i.text(),function(a){return EE(pd(a),function(o){var s=function(u){try{var _u_multistatus_response=_sliced_to_array(u.multistatus.response,1),c=_u_multistatus_response[0],_c_propstat=c.propstat,_c_propstat_prop=_c_propstat.prop,l=_c_propstat_prop["quota-used-bytes"],f=_c_propstat_prop["quota-available-bytes"];return l!==void 0&&f!==void 0?{used:parseInt(String(l),10),available:aK(f)}:null}catch(c){}return null}(o);return ss(i,s,e.details)})})})});o$e=function(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];try{return Promise.resolve(r.apply(this,e))}catch(n){return Promise.reject(n)}}}(function(r,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},tmp=t.details,n=tmp===void 0?!1:tmp,i=Kr({url:qr(r.remoteURL,Er(e)),method:"SEARCH",headers:{Accept:"text/plain,application/xml","Content-Type":r.headers["Content-Type"]||"application/xml; charset=utf-8"}},r,t);return qE(zr(i,r),function(a){return Hr(r,a),qE(a.text(),function(o){return qE(pd(o),function(s){var u=function(c,l,f){var d={truncated:!1,results:[]};return d.truncated=c.multistatus.response.some(function(p){var x,h;return((h=(p.status||((x=p.propstat)==null?void 0:x.status)).split(" ",3))==null?void 0:h[1])==="507"&&p.href.replace(/\/$/,"").endsWith(Er(l).replace(/\/$/,""))}),c.multistatus.response.forEach(function(p){if(p.propstat===void 0)return;var x=p.href.split("/").map(decodeURIComponent).join("/");d.results.push(Fx(p.propstat.prop,x,f))}),d}(s,e,n);return ss(a,u,n)})})})}),s$e=function(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];try{return Promise.resolve(r.apply(this,e))}catch(n){return Promise.reject(n)}}}(function(r,e,t){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=Kr({url:qr(r.remoteURL,Er(e)),method:"MOVE",headers:{Destination:qr(r.remoteURL,Er(t)),Overwrite:n.overwrite===!1?"F":"T"}},r,n);return o=function o(s){Hr(r,s)},(a=zr(i,r))&&a.then||(a=Promise.resolve(a)),o?a.then(o):a;var a,o}),u$e=lr(172),c$e=function(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];try{return Promise.resolve(r.apply(this,e))}catch(n){return Promise.reject(n)}}}(function(r,e,t){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},tmp=n.contentLength,i=tmp===void 0?!0:tmp,tmp1=n.overwrite,a=tmp1===void 0?!0:tmp1,o={"Content-Type":"application/octet-stream"};i===!1||(o["Content-Length"]=typeof i=="number"?"".concat(i):"".concat(function(l){if(Qz(l))return l.byteLength;if(Xz(l))return l.length;if(typeof l=="string")return(0,u$e.d)(l);throw new ht({info:{code:$i.DataTypeNoLength}},"Cannot calculate data length: Invalid type")}(t))),a||(o["If-None-Match"]="*");var s=Kr({url:qr(r.remoteURL,Er(e)),method:"PUT",headers:o,data:t},r,n);return c=function c(l){try{Hr(r,l)}catch(f){var d=f;if(d.status!==412||a)throw d;return!1}return!0},(u=zr(s,r))&&u.then||(u=Promise.resolve(u)),c?u.then(c):u;var u,c}),lK=function(r){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];try{return Promise.resolve(r.apply(this,e))}catch(n){return Promise.reject(n)}}}(function(r,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=Kr({url:qr(r.remoteURL,Er(e)),method:"OPTIONS"},r,t);return a=function a(o){var s,u;try{Hr(r,o)}catch(c){throw c}return{compliance:((s=o.headers.get("DAV"))!=null?s:"").split(",").map(function(c){return c.trim()}),server:(u=o.headers.get("Server"))!=null?u:""}},(i=zr(n,r))&&i.then||(i=Promise.resolve(i)),a?i.then(a):i;var i,a});l$e=FE(function(r,e,t,n,i){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};if(t>n||t<0)throw new ht({info:{code:$i.InvalidUpdateRange}},"Invalid update range ".concat(t," for partial update"));var o={"Content-Type":"application/octet-stream","Content-Length":""+(n-t+1),"Content-Range":"bytes ".concat(t,"-").concat(n,"/*")},s=Kr({url:qr(r.remoteURL,Er(e)),method:"PUT",headers:o,data:i},r,a);return ud(zr(s,r),function(u){Hr(r,u)})});f$e=FE(function(r,e,t,n,i){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};if(t>n||t<0)throw new ht({info:{code:$i.InvalidUpdateRange}},"Invalid update range ".concat(t," for partial update"));var o={"Content-Type":"application/x-sabredav-partialupdate","Content-Length":""+(n-t+1),"X-Update-Range":"bytes=".concat(t,"-").concat(n)},s=Kr({url:qr(r.remoteURL,Er(e)),method:"PATCH",headers:o,data:i},r,a);return ud(zr(s,r),function(u){Hr(r,u)})});d$e=FE(function(r,e,t,n,i){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};return ud(lK(r,e,a),function(o){var s=!1;return $z(function(){if(o.compliance.includes("sabredav-partialupdate"))return ud(f$e(r,e,t,n,i,a),function(u){return s=!0,u})},function(u){var c=!1;return s?u:$z(function(){if(o.server.includes("Apache")&&o.compliance.includes("<http://apache.org/dav/propset/fs/1>"))return ud(l$e(r,e,t,n,i,a),function(l){return c=!0,l})},function(l){if(c)return l;throw new ht({info:{code:$i.NotSupported}},"Not supported")})})})}),p$e="https://github.com/perry-mitchell/webdav-client/blob/master/LOCK_CONTACT.md";Kmr=qn.hT,Hmr=qn.O4,Qmr=qn.Kd,Xmr=qn.YK,hd=qn.UU,fK=qn.Gu,Ymr=qn.ky,Jmr=qn.h4,Zmr=qn.ch,eyr=qn.hq,ryr=qn.i5});var Qu,dK,us,x$e,g$e,pK,hK,cs=Ds(function(){Qu=require("obsidian"),dK="https://dav.jianguoyun.com/nsdav",us="https://dav.jianguoyun.com/dav",x$e="0.13.26",g$e="0.14.6",pK=!Qu.Platform.isAndroidApp&&(0,Qu.requireApiVersion)(x$e)||Qu.Platform.isAndroidApp&&(0,Qu.requireApiVersion)(g$e),hK=!1});var yK=g(function(mK){var xK=function xK(r){return Object.fromEntries(Object.entries(r).map(function(param){var _param=_sliced_to_array(param,2),e=_param[0],t=_param[1];return[e.toLowerCase(),t]}))};var v$e=function v$e(r){return!/[^\u0000-\u00ff]/g.test(r)};var gK=ze(bz()),vK=require("obsidian");id();Bx();cs();pK&&fK().patch("request",function(r){return D(mK,null,function(){var c,e,t,n,i,a,_tmp,o,l,s,u;return _ts_generator(this,function(_state){switch(_state.label){case 0:e=xK(j({},r.headers));delete e.host,delete e["content-length"];t=(c=e.accept)!=null?c:e["content-type"],n=j({},e);n.hasOwnProperty("authorization")&&(n.authorization="<retracted>");i={url:r.url,method:r.method,body:r.data,headers:e,contentType:t,throw:!1};return[4,fi(i)];case 1:a=_state.sent();_tmp=a.status===401&&vK.Platform.isIosApp&&!r.url.endsWith("/")&&!r.url.endsWith(".md")&&r.method.toUpperCase()==="PROPFIND";if(!_tmp)return[3,3];i.url="".concat(r.url,"/");return[4,fi(i)];case 2:_tmp=a=_state.sent();_state.label=3;case 3:_tmp;o=xK(j({},a.headers));for(var l in o)o.hasOwnProperty(l)&&(v$e(o[l])||(o[l]=encodeURIComponent(o[l])));u=(0,gK.getReasonPhrase)(a.status);return[2,([101,103,204,205,304].includes(a.status)?s=new Response(null,{status:a.status,statusText:u,headers:o}):s=new Response(a.arrayBuffer,{status:a.status,statusText:u,headers:o}),s)]}})})})});var Qr=g(function(wOr,vY){"use strict";var mi=function mi(r){if(typeof r!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(r))};var gY=function gY(r,e){for(var t="",n=0,i=-1,a=0,o,s=0;s<=r.length;++s){if(s<r.length)o=r.charCodeAt(s);else{if(o===47)break;o=47}if(o===47){if(!(i===s-1||a===1))if(i!==s-1&&a===2){if(t.length<2||n!==2||t.charCodeAt(t.length-1)!==46||t.charCodeAt(t.length-2)!==46){if(t.length>2){var u=t.lastIndexOf("/");if(u!==t.length-1){u===-1?(t="",n=0):(t=t.slice(0,u),n=t.length-1-t.lastIndexOf("/")),i=s,a=0;continue}}else if(t.length===2||t.length===1){t="",n=0,i=s,a=0;continue}}e&&(t.length>0?t+="/..":t="..",n=2)}else t.length>0?t+="/"+r.slice(i+1,s):t=r.slice(i+1,s),n=s-i-1;i=s,a=0}else o===46&&a!==-1?++a:a=-1}return t};var tJe=function tJe(r,e){var t=e.dir||e.root,n=e.base||(e.name||"")+(e.ext||"");return t?t===e.root?t+n:t+r+n:n};var Ic={resolve:function resolve(){for(var e="",t=!1,n,i=arguments.length-1;i>=-1&&!t;i--){var a;i>=0?a=arguments[i]:(n===void 0&&(n=process.cwd()),a=n),mi(a),a.length!==0&&(e=a+"/"+e,t=a.charCodeAt(0)===47)}return e=gY(e,!t),t?e.length>0?"/"+e:"/":e.length>0?e:"."},normalize:function normalize(e){if(mi(e),e.length===0)return".";var t=e.charCodeAt(0)===47,n=e.charCodeAt(e.length-1)===47;return e=gY(e,!t),e.length===0&&!t&&(e="."),e.length>0&&n&&(e+="/"),t?"/"+e:e},isAbsolute:function isAbsolute(e){return mi(e),e.length>0&&e.charCodeAt(0)===47},join:function join(){if(arguments.length===0)return".";for(var e,t=0;t<arguments.length;++t){var n=arguments[t];mi(n),n.length>0&&(e===void 0?e=n:e+="/"+n)}return e===void 0?".":Ic.normalize(e)},relative:function relative(e,t){if(mi(e),mi(t),e===t||(e=Ic.resolve(e),t=Ic.resolve(t),e===t))return"";for(var n=1;n<e.length&&e.charCodeAt(n)===47;++n);for(var i=e.length,a=i-n,o=1;o<t.length&&t.charCodeAt(o)===47;++o);for(var s=t.length,u=s-o,c=a<u?a:u,l=-1,f=0;f<=c;++f){if(f===c){if(u>c){if(t.charCodeAt(o+f)===47)return t.slice(o+f+1);if(f===0)return t.slice(o+f)}else a>c&&(e.charCodeAt(n+f)===47?l=f:f===0&&(l=0));break}var d=e.charCodeAt(n+f),p=t.charCodeAt(o+f);if(d!==p)break;d===47&&(l=f)}var x="";for(f=n+l+1;f<=i;++f)(f===i||e.charCodeAt(f)===47)&&(x.length===0?x+="..":x+="/..");return x.length>0?x+t.slice(o+l):(o+=l,t.charCodeAt(o)===47&&++o,t.slice(o))},_makeLong:function _makeLong(e){return e},dirname:function dirname(e){if(mi(e),e.length===0)return".";for(var t=e.charCodeAt(0),n=t===47,i=-1,a=!0,o=e.length-1;o>=1;--o)if(t=e.charCodeAt(o),t===47){if(!a){i=o;break}}else a=!1;return i===-1?n?"/":".":n&&i===1?"//":e.slice(0,i)},basename:function basename(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');mi(e);var n=0,i=-1,a=!0,o;if(t!==void 0&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var s=t.length-1,u=-1;for(o=e.length-1;o>=0;--o){var c=e.charCodeAt(o);if(c===47){if(!a){n=o+1;break}}else u===-1&&(a=!1,u=o+1),s>=0&&(c===t.charCodeAt(s)?--s===-1&&(i=o):(s=-1,i=u))}return n===i?i=u:i===-1&&(i=e.length),e.slice(n,i)}else{for(o=e.length-1;o>=0;--o)if(e.charCodeAt(o)===47){if(!a){n=o+1;break}}else i===-1&&(a=!1,i=o+1);return i===-1?"":e.slice(n,i)}},extname:function extname(e){mi(e);for(var t=-1,n=0,i=-1,a=!0,o=0,s=e.length-1;s>=0;--s){var u=e.charCodeAt(s);if(u===47){if(!a){n=s+1;break}continue}i===-1&&(a=!1,i=s+1),u===46?t===-1?t=s:o!==1&&(o=1):t!==-1&&(o=-1)}return t===-1||i===-1||o===0||o===1&&t===i-1&&t===n+1?"":e.slice(t,i)},format:function format(e){if(e===null||(typeof e==="undefined"?"undefined":_type_of(e))!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+(typeof e==="undefined"?"undefined":_type_of(e)));return tJe("/",e)},parse:function parse(e){mi(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;var n=e.charCodeAt(0),i=n===47,a;i?(t.root="/",a=1):a=0;for(var o=-1,s=0,u=-1,c=!0,l=e.length-1,f=0;l>=a;--l){if(n=e.charCodeAt(l),n===47){if(!c){s=l+1;break}continue}u===-1&&(c=!1,u=l+1),n===46?o===-1?o=l:f!==1&&(f=1):o!==-1&&(f=-1)}return o===-1||u===-1||f===0||f===1&&o===u-1&&o===s+1?u!==-1&&(s===0&&i?t.base=t.name=e.slice(1,u):t.base=t.name=e.slice(s,u)):(s===0&&i?(t.name=e.slice(1,o),t.base=e.slice(1,u)):(t.name=e.slice(s,o),t.base=e.slice(s,u)),t.ext=e.slice(o,u)),s>0?t.dir=e.slice(0,s-1):i&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};Ic.posix=Ic;vY.exports=Ic});var bY=g(function(yY,Tq){(function(r){if((typeof yY==="undefined"?"undefined":_type_of(yY))=="object"&&typeof Tq!="undefined")Tq.exports=r();else if(typeof define=="function"&&define.amd)define([],r);else{var e;typeof window!="undefined"?e=window:typeof global!="undefined"?e=global:typeof self!="undefined"?e=self:e=this,e.localforage=r()}})(function(){var r,e,t;return(function n(i,a,o){function s(l,f){if(!a[l]){if(!i[l]){var d=typeof require=="function"&&require;if(!f&&d)return d(l,!0);if(u)return u(l,!0);var p=new Error("Cannot find module '"+l+"'");throw p.code="MODULE_NOT_FOUND",p}var x=a[l]={exports:{}};i[l][0].call(x.exports,function(h){var v=i[l][1][h];return s(v||h)},x,x.exports,n,i,a,o)}return a[l].exports}for(var u=typeof require=="function"&&require,c=0;c<o.length;c++)s(o[c]);return s})({1:[function(n,i,a){(function(o){"use strict";var s=o.MutationObserver||o.WebKitMutationObserver,u;if(s){var c=0,l=new s(h),f=o.document.createTextNode("");l.observe(f,{characterData:!0}),u=function u(){f.data=c=++c%2}}else if(!o.setImmediate&&typeof o.MessageChannel!="undefined"){var d=new o.MessageChannel;d.port1.onmessage=h,u=function u(){d.port2.postMessage(0)}}else"document"in o&&"onreadystatechange"in o.document.createElement("script")?u=function u(){var y=o.document.createElement("script");y.onreadystatechange=function(){h(),y.onreadystatechange=null,y.parentNode.removeChild(y),y=null},o.document.documentElement.appendChild(y)}:u=function u(){setTimeout(h,0)};var p,x=[];function h(){p=!0;for(var y,m,b=x.length;b;){for(m=x,x=[],y=-1;++y<b;)m[y]();b=x.length}p=!1}i.exports=v;function v(y){x.push(y)===1&&!p&&u()}}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],2:[function(n,i,a){"use strict";var o=n(1);function s(){}var u={},c=["REJECTED"],l=["FULFILLED"],f=["PENDING"];i.exports=d;function d(w){if(typeof w!="function")throw new TypeError("resolver must be a function");this.state=f,this.queue=[],this.outcome=void 0,w!==s&&v(this,w)}d.prototype.catch=function(w){return this.then(null,w)},d.prototype.then=function(w,R){if(typeof w!="function"&&this.state===l||typeof R!="function"&&this.state===c)return this;var _=new this.constructor(s);if(this.state!==f){var E=this.state===l?w:R;x(_,E,this.outcome)}else this.queue.push(new p(_,w,R));return _};function p(w,R,_){this.promise=w,typeof R=="function"&&(this.onFulfilled=R,this.callFulfilled=this.otherCallFulfilled),typeof _=="function"&&(this.onRejected=_,this.callRejected=this.otherCallRejected)}p.prototype.callFulfilled=function(w){u.resolve(this.promise,w)},p.prototype.otherCallFulfilled=function(w){x(this.promise,this.onFulfilled,w)},p.prototype.callRejected=function(w){u.reject(this.promise,w)},p.prototype.otherCallRejected=function(w){x(this.promise,this.onRejected,w)};function x(w,R,_){o(function(){var E;try{E=R(_)}catch(O){return u.reject(w,O)}E===w?u.reject(w,new TypeError("Cannot resolve promise with itself")):u.resolve(w,E)})}u.resolve=function(w,R){var _=y(h,R);if(_.status==="error")return u.reject(w,_.value);var E=_.value;if(E)v(w,E);else{w.state=l,w.outcome=R;for(var O=-1,I=w.queue.length;++O<I;)w.queue[O].callFulfilled(R)}return w},u.reject=function(w,R){w.state=c,w.outcome=R;for(var _=-1,E=w.queue.length;++_<E;)w.queue[_].callRejected(R);return w};function h(w){var R=w&&w.then;if(w&&((typeof w==="undefined"?"undefined":_type_of(w))=="object"||typeof w=="function")&&typeof R=="function")return function(){R.apply(w,arguments)}}function v(w,R){var _=!1;function E(k){_||(_=!0,u.reject(w,k))}function O(k){_||(_=!0,u.resolve(w,k))}function I(){R(O,E)}var N=y(I);N.status==="error"&&E(N.value)}function y(w,R){var _={};try{_.value=w(R),_.status="success"}catch(E){_.status="error",_.value=E}return _}d.resolve=m;function m(w){return _instanceof(w,this)?w:u.resolve(new this(s),w)}d.reject=b;function b(w){var R=new this(s);return u.reject(R,w)}d.all=S;function S(w){var R=this;if(Object.prototype.toString.call(w)!=="[object Array]")return this.reject(new TypeError("must be an array"));var _=w.length,E=!1;if(!_)return this.resolve([]);for(var O=new Array(_),I=0,N=-1,k=new this(s);++N<_;)B(w[N],N);return k;function B(U,$){R.resolve(U).then(X,function(le){E||(E=!0,u.reject(k,le))});function X(le){O[$]=le,++I===_&&!E&&(E=!0,u.resolve(k,O))}}}d.race=T;function T(w){var R=this;if(Object.prototype.toString.call(w)!=="[object Array]")return this.reject(new TypeError("must be an array"));var _=w.length,E=!1;if(!_)return this.resolve([]);for(var O=-1,I=new this(s);++O<_;)N(w[O]);return I;function N(k){R.resolve(k).then(function(B){E||(E=!0,u.resolve(I,B))},function(B){E||(E=!0,u.reject(I,B))})}}},{1:1}],3:[function(n,i,a){(function(o){"use strict";typeof o.Promise!="function"&&(o.Promise=n(2))}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{2:2}],4:[function(n,i,a){"use strict";var o=typeof Symbol=="function"&&_type_of(Symbol.iterator)=="symbol"?function o(q){return typeof q==="undefined"?"undefined":_type_of(q)}:function(q){return q&&typeof Symbol=="function"&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q==="undefined"?"undefined":_type_of(q)};function s(q,L){if(!_instanceof(q,L))throw new TypeError("Cannot call a class as a function")}function u(){try{if(typeof indexedDB!="undefined")return indexedDB;if(typeof webkitIndexedDB!="undefined")return webkitIndexedDB;if(typeof mozIndexedDB!="undefined")return mozIndexedDB;if(typeof OIndexedDB!="undefined")return OIndexedDB;if(typeof msIndexedDB!="undefined")return msIndexedDB}catch(q){return}}var c=u();function l(){try{if(!c||!c.open)return!1;var q=typeof openDatabase!="undefined"&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),L=typeof fetch=="function"&&fetch.toString().indexOf("[native code")!==-1;return(!q||L)&&typeof indexedDB!="undefined"&&typeof IDBKeyRange!="undefined"}catch(A){return!1}}function f(q,L){q=q||[],L=L||{};try{return new Blob(q,L)}catch(W){if(W.name!=="TypeError")throw W;for(var A=typeof BlobBuilder!="undefined"?BlobBuilder:typeof MSBlobBuilder!="undefined"?MSBlobBuilder:typeof MozBlobBuilder!="undefined"?MozBlobBuilder:WebKitBlobBuilder,M=new A,F=0;F<q.length;F+=1)M.append(q[F]);return M.getBlob(L.type)}}typeof Promise=="undefined"&&n(3);var d=Promise;function p(q,L){L&&q.then(function(A){L(null,A)},function(A){L(A)})}function x(q,L,A){typeof L=="function"&&q.then(L),typeof A=="function"&&q.catch(A)}function h(q){return typeof q!="string"&&(console.warn(q+" used as a key, but it is not a string."),q=String(q)),q}function v(){if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}var y="local-forage-detect-blob-support",m=void 0,b={},S=Object.prototype.toString,T="readonly",w="readwrite";function R(q){for(var L=q.length,A=new ArrayBuffer(L),M=new Uint8Array(A),F=0;F<L;F++)M[F]=q.charCodeAt(F);return A}function _(q){return new d(function(L){var A=q.transaction(y,w),M=f([""]);A.objectStore(y).put(M,"key"),A.onabort=function(F){F.preventDefault(),F.stopPropagation(),L(!1)},A.oncomplete=function(){var F=navigator.userAgent.match(/Chrome\/(\d+)/),W=navigator.userAgent.match(/Edge\//);L(W||!F||parseInt(F[1],10)>=43)}}).catch(function(){return!1})}function E(q){return typeof m=="boolean"?d.resolve(m):_(q).then(function(L){return m=L,m})}function O(q){var L=b[q.name],A={};A.promise=new d(function(M,F){A.resolve=M,A.reject=F}),L.deferredOperations.push(A),L.dbReady?L.dbReady=L.dbReady.then(function(){return A.promise}):L.dbReady=A.promise}function I(q){var L=b[q.name],A=L.deferredOperations.pop();if(A)return A.resolve(),A.promise}function N(q,L){var A=b[q.name],M=A.deferredOperations.pop();if(M)return M.reject(L),M.promise}function k(q,L){return new d(function(A,M){if(b[q.name]=b[q.name]||me(),q.db)if(L)O(q),q.db.close();else return A(q.db);var F=[q.name];L&&F.push(q.version);var W=c.open.apply(c,F);L&&(W.onupgradeneeded=function(G){var H=W.result;try{H.createObjectStore(q.storeName),G.oldVersion<=1&&H.createObjectStore(y)}catch(ee){if(ee.name==="ConstraintError")console.warn('The database "'+q.name+'" has been upgraded from version '+G.oldVersion+" to version "+G.newVersion+', but the storage "'+q.storeName+'" already exists.');else throw ee}}),W.onerror=function(G){G.preventDefault(),M(W.error)},W.onsuccess=function(){var G=W.result;G.onversionchange=function(H){H.target.close()},A(G),I(q)}})}function B(q){return k(q,!1)}function U(q){return k(q,!0)}function $(q,L){if(!q.db)return!0;var A=!q.db.objectStoreNames.contains(q.storeName),M=q.version<q.db.version,F=q.version>q.db.version;if(M&&(q.version!==L&&console.warn('The database "'+q.name+"\" can't be downgraded from version "+q.db.version+" to version "+q.version+"."),q.version=q.db.version),F||A){if(A){var W=q.db.version+1;W>q.version&&(q.version=W)}return!0}return!1}function X(q){return new d(function(L,A){var M=new FileReader;M.onerror=A,M.onloadend=function(F){var W=btoa(F.target.result||"");L({__local_forage_encoded_blob:!0,data:W,type:q.type})},M.readAsBinaryString(q)})}function le(q){var L=R(atob(q.data));return f([L],{type:q.type})}function K(q){return q&&q.__local_forage_encoded_blob}function qe(q){var L=this,A=L._initReady().then(function(){var M=b[L._dbInfo.name];if(M&&M.dbReady)return M.dbReady});return x(A,q,q),A}function V(q){O(q);for(var L=b[q.name],A=L.forages,M=0;M<A.length;M++){var F=A[M];F._dbInfo.db&&(F._dbInfo.db.close(),F._dbInfo.db=null)}return q.db=null,B(q).then(function(W){return q.db=W,$(q)?U(q):W}).then(function(W){q.db=L.db=W;for(var G=0;G<A.length;G++)A[G]._dbInfo.db=W}).catch(function(W){throw N(q,W),W})}function fe(q,L,A,M){M===void 0&&(M=1);try{var F=q.db.transaction(q.storeName,L);A(null,F)}catch(W){if(M>0&&(!q.db||W.name==="InvalidStateError"||W.name==="NotFoundError"))return d.resolve().then(function(){if(!q.db||W.name==="NotFoundError"&&!q.db.objectStoreNames.contains(q.storeName)&&q.version<=q.db.version)return q.db&&(q.version=q.db.version+1),U(q)}).then(function(){return V(q).then(function(){fe(q,L,A,M-1)})}).catch(A);A(W)}}function me(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function be(q){var L=this,A={db:null};if(q)for(var M in q)A[M]=q[M];var F=b[A.name];F||(F=me(),b[A.name]=F),F.forages.push(L),L._initReady||(L._initReady=L.ready,L.ready=qe);var W=[];function G(){return d.resolve()}for(var H=0;H<F.forages.length;H++){var ee=F.forages[H];ee!==L&&W.push(ee._initReady().catch(G))}var re=F.forages.slice(0);return d.all(W).then(function(){return A.db=F.db,B(A)}).then(function(oe){return A.db=oe,$(A,L._defaultConfig.version)?U(A):oe}).then(function(oe){A.db=F.db=oe,L._dbInfo=A;for(var xe=0;xe<re.length;xe++){var De=re[xe];De!==L&&(De._dbInfo.db=A.db,De._dbInfo.version=A.version)}})}function pe(q,L){var A=this;q=h(q);var M=new d(function(F,W){A.ready().then(function(){fe(A._dbInfo,T,function(G,H){if(G)return W(G);try{var ee=H.objectStore(A._dbInfo.storeName),re=ee.get(q);re.onsuccess=function(){var _$oe=re.result;_$oe===void 0&&(_$oe=null),K(_$oe)&&(_$oe=le(_$oe)),F(_$oe)},re.onerror=function(){W(re.error)}}catch(oe){W(oe)}})}).catch(W)});return p(M,L),M}function Te(q,L){var A=this,M=new d(function(F,W){A.ready().then(function(){fe(A._dbInfo,T,function(G,H){if(G)return W(G);try{var ee=H.objectStore(A._dbInfo.storeName),re=ee.openCursor(),oe=1;re.onsuccess=function(){var _$xe=re.result;if(_$xe){var De=_$xe.value;K(De)&&(De=le(De));var er=q(De,_$xe.key,oe++);er!==void 0?F(er):_$xe.continue()}else F()},re.onerror=function(){W(re.error)}}catch(xe){W(xe)}})}).catch(W)});return p(M,L),M}function de(q,L,A){var M=this;q=h(q);var F=new d(function(W,G){var H;M.ready().then(function(){return H=M._dbInfo,S.call(L)==="[object Blob]"?E(H.db).then(function(ee){return ee?L:X(L)}):L}).then(function(ee){fe(M._dbInfo,w,function(re,oe){if(re)return G(re);try{var xe=oe.objectStore(M._dbInfo.storeName);ee===null&&(ee=void 0);var De=xe.put(ee,q);oe.oncomplete=function(){ee===void 0&&(ee=null),W(ee)},oe.onabort=oe.onerror=function(){var _$er=De.error?De.error:De.transaction.error;G(_$er)}}catch(er){G(er)}})}).catch(G)});return p(F,A),F}function _e(q,L){var A=this;q=h(q);var M=new d(function(F,W){A.ready().then(function(){fe(A._dbInfo,w,function(G,H){if(G)return W(G);try{var ee=H.objectStore(A._dbInfo.storeName),re=ee.delete(q);H.oncomplete=function(){F()},H.onerror=function(){W(re.error)},H.onabort=function(){var _$oe=re.error?re.error:re.transaction.error;W(_$oe)}}catch(oe){W(oe)}})}).catch(W)});return p(M,L),M}function Ae(q){var L=this,A=new d(function(M,F){L.ready().then(function(){fe(L._dbInfo,w,function(W,G){if(W)return F(W);try{var H=G.objectStore(L._dbInfo.storeName),ee=H.clear();G.oncomplete=function(){M()},G.onabort=G.onerror=function(){var _$re=ee.error?ee.error:ee.transaction.error;F(_$re)}}catch(re){F(re)}})}).catch(F)});return p(A,q),A}function Qe(q){var L=this,A=new d(function(M,F){L.ready().then(function(){fe(L._dbInfo,T,function(W,G){if(W)return F(W);try{var H=G.objectStore(L._dbInfo.storeName),ee=H.count();ee.onsuccess=function(){M(ee.result)},ee.onerror=function(){F(ee.error)}}catch(re){F(re)}})}).catch(F)});return p(A,q),A}function Ie(q,L){var A=this,M=new d(function(F,W){if(q<0){F(null);return}A.ready().then(function(){fe(A._dbInfo,T,function(G,H){if(G)return W(G);try{var ee=H.objectStore(A._dbInfo.storeName),re=!1,oe=ee.openKeyCursor();oe.onsuccess=function(){var _$xe=oe.result;if(!_$xe){F(null);return}q===0||re?F(_$xe.key):(re=!0,_$xe.advance(q))},oe.onerror=function(){W(oe.error)}}catch(xe){W(xe)}})}).catch(W)});return p(M,L),M}function or(q){var L=this,A=new d(function(M,F){L.ready().then(function(){fe(L._dbInfo,T,function(W,G){if(W)return F(W);try{var H=G.objectStore(L._dbInfo.storeName),ee=H.openKeyCursor(),re=[];ee.onsuccess=function(){var _$oe=ee.result;if(!_$oe){M(re);return}re.push(_$oe.key),_$oe.continue()},ee.onerror=function(){F(ee.error)}}catch(oe){F(oe)}})}).catch(F)});return p(A,q),A}function Be(q,L){L=v.apply(this,arguments);var A=this.config();q=typeof q!="function"&&q||{},q.name||(q.name=q.name||A.name,q.storeName=q.storeName||A.storeName);var M=this,F;if(!q.name)F=d.reject("Invalid arguments");else{var W=q.name===A.name&&M._dbInfo.db,G=W?d.resolve(M._dbInfo.db):B(q).then(function(H){var ee=b[q.name],re=ee.forages;ee.db=H;for(var oe=0;oe<re.length;oe++)re[oe]._dbInfo.db=H;return H});q.storeName?F=G.then(function(H){if(H.objectStoreNames.contains(q.storeName)){var ee=H.version+1;O(q);var re=b[q.name],oe=re.forages;H.close();for(var xe=0;xe<oe.length;xe++){var De=oe[xe];De._dbInfo.db=null,De._dbInfo.version=ee}var er=new d(function(sr,Mr){var Nr=c.open(q.name,ee);Nr.onerror=function(dn){var ol=Nr.result;ol.close(),Mr(dn)},Nr.onupgradeneeded=function(){var dn=Nr.result;dn.deleteObjectStore(q.storeName)},Nr.onsuccess=function(){var dn=Nr.result;dn.close(),sr(dn)}});return er.then(function(sr){re.db=sr;for(var Mr=0;Mr<oe.length;Mr++){var Nr=oe[Mr];Nr._dbInfo.db=sr,I(Nr._dbInfo)}}).catch(function(sr){throw(N(q,sr)||d.resolve()).catch(function(){}),sr})}}):F=G.then(function(H){O(q);var ee=b[q.name],re=ee.forages;H.close();for(var oe=0;oe<re.length;oe++){var xe=re[oe];xe._dbInfo.db=null}var De=new d(function(er,sr){var Mr=c.deleteDatabase(q.name);Mr.onerror=function(){var Nr=Mr.result;Nr&&Nr.close(),sr(Mr.error)},Mr.onblocked=function(){console.warn('dropInstance blocked for database "'+q.name+'" until all open connections are closed')},Mr.onsuccess=function(){var Nr=Mr.result;Nr&&Nr.close(),er(Nr)}});return De.then(function(er){ee.db=er;for(var sr=0;sr<re.length;sr++){var Mr=re[sr];I(Mr._dbInfo)}}).catch(function(er){throw(N(q,er)||d.resolve()).catch(function(){}),er})})}return p(F,L),F}var Ze={_driver:"asyncStorage",_initStorage:be,_support:l(),iterate:Te,getItem:pe,setItem:de,removeItem:_e,clear:Ae,length:Qe,key:Ie,keys:or,dropInstance:Be};function vr(){return typeof openDatabase=="function"}var Le="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Cr="~~local_forage_type~",je=/^~~local_forage_type~([^~]+)~/,Ge="__lfsc__:",ur=Ge.length,Rr="arbf",$e="blob",dr="si08",gt="ui08",_r="uic8",Wr="si16",UT="si32",jT="ur16",$T="ui32",VT="fl32",GT="fl64",zT=ur+Rr.length,KT=Object.prototype.toString;function HT(q){var L=q.length*.75,A=q.length,M,F=0,W,G,H,ee;q[q.length-1]==="="&&(L--,q[q.length-2]==="="&&L--);var re=new ArrayBuffer(L),oe=new Uint8Array(re);for(M=0;M<A;M+=4)W=Le.indexOf(q[M]),G=Le.indexOf(q[M+1]),H=Le.indexOf(q[M+2]),ee=Le.indexOf(q[M+3]),oe[F++]=W<<2|G>>4,oe[F++]=(G&15)<<4|H>>2,oe[F++]=(H&3)<<6|ee&63;return re}function Yv(q){var L=new Uint8Array(q),A="",M;for(M=0;M<L.length;M+=3)A+=Le[L[M]>>2],A+=Le[(L[M]&3)<<4|L[M+1]>>4],A+=Le[(L[M+1]&15)<<2|L[M+2]>>6],A+=Le[L[M+2]&63];return L.length%3===2?A=A.substring(0,A.length-1)+"=":L.length%3===1&&(A=A.substring(0,A.length-2)+"=="),A}function Qre(q,L){var A="";if(q&&(A=KT.call(q)),q&&(A==="[object ArrayBuffer]"||q.buffer&&KT.call(q.buffer)==="[object ArrayBuffer]")){var M,F=Ge;_instanceof(q,ArrayBuffer)?(M=q,F+=Rr):(M=q.buffer,A==="[object Int8Array]"?F+=dr:A==="[object Uint8Array]"?F+=gt:A==="[object Uint8ClampedArray]"?F+=_r:A==="[object Int16Array]"?F+=Wr:A==="[object Uint16Array]"?F+=jT:A==="[object Int32Array]"?F+=UT:A==="[object Uint32Array]"?F+=$T:A==="[object Float32Array]"?F+=VT:A==="[object Float64Array]"?F+=GT:L(new Error("Failed to get type for BinaryArray"))),L(F+Yv(M))}else if(A==="[object Blob]"){var W=new FileReader;W.onload=function(){var _$G=Cr+q.type+"~"+Yv(this.result);L(Ge+$e+_$G)},W.readAsArrayBuffer(q)}else try{L(JSON.stringify(q))}catch(G){console.error("Couldn't convert value into a JSON string: ",q),L(null,G)}}function Xre(q){if(q.substring(0,ur)!==Ge)return JSON.parse(q);var L=q.substring(zT),A=q.substring(ur,zT),M;if(A===$e&&je.test(L)){var F=L.match(je);M=F[1],L=L.substring(F[0].length)}var W=HT(L);switch(A){case Rr:return W;case $e:return f([W],{type:M});case dr:return new Int8Array(W);case gt:return new Uint8Array(W);case _r:return new Uint8ClampedArray(W);case Wr:return new Int16Array(W);case jT:return new Uint16Array(W);case UT:return new Int32Array(W);case $T:return new Uint32Array(W);case VT:return new Float32Array(W);case GT:return new Float64Array(W);default:throw new Error("Unkown type: "+A)}}var Jv={serialize:Qre,deserialize:Xre,stringToBuffer:HT,bufferToString:Yv};function QT(q,L,A,M){q.executeSql("CREATE TABLE IF NOT EXISTS "+L.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],A,M)}function Yre(q){var L=this,A={db:null};if(q)for(var M in q)A[M]=typeof q[M]!="string"?q[M].toString():q[M];var F=new d(function(W,G){try{A.db=openDatabase(A.name,String(A.version),A.description,A.size)}catch(H){return G(H)}A.db.transaction(function(H){QT(H,A,function(){L._dbInfo=A,W()},function(ee,re){G(re)})},G)});return A.serializer=Jv,F}function fa(q,L,A,M,F,W){q.executeSql(A,M,F,function(G,H){H.code===H.SYNTAX_ERR?G.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[L.storeName],function(ee,re){re.rows.length?W(ee,H):QT(ee,L,function(){ee.executeSql(A,M,F,W)},W)},W):W(G,H)},W)}function Jre(q,L){var A=this;q=h(q);var M=new d(function(F,W){A.ready().then(function(){var G=A._dbInfo;G.db.transaction(function(H){fa(H,G,"SELECT * FROM "+G.storeName+" WHERE key = ? LIMIT 1",[q],function(ee,re){var oe=re.rows.length?re.rows.item(0).value:null;oe&&(oe=G.serializer.deserialize(oe)),F(oe)},function(ee,re){W(re)})})}).catch(W)});return p(M,L),M}function Zre(q,L){var A=this,M=new d(function(F,W){A.ready().then(function(){var G=A._dbInfo;G.db.transaction(function(H){fa(H,G,"SELECT * FROM "+G.storeName,[],function(ee,re){for(var oe=re.rows,xe=oe.length,De=0;De<xe;De++){var er=oe.item(De),sr=er.value;if(sr&&(sr=G.serializer.deserialize(sr)),sr=q(sr,er.key,De+1),sr!==void 0){F(sr);return}}F()},function(ee,re){W(re)})})}).catch(W)});return p(M,L),M}function XT(q,L,A,M){var F=this;q=h(q);var W=new d(function(G,H){F.ready().then(function(){L===void 0&&(L=null);var ee=L,re=F._dbInfo;re.serializer.serialize(L,function(oe,xe){xe?H(xe):re.db.transaction(function(De){fa(De,re,"INSERT OR REPLACE INTO "+re.storeName+" (key, value) VALUES (?, ?)",[q,oe],function(){G(ee)},function(er,sr){H(sr)})},function(De){if(De.code===De.QUOTA_ERR){if(M>0){G(XT.apply(F,[q,ee,A,M-1]));return}H(De)}})})}).catch(H)});return p(W,A),W}function ete(q,L,A){return XT.apply(this,[q,L,A,1])}function rte(q,L){var A=this;q=h(q);var M=new d(function(F,W){A.ready().then(function(){var G=A._dbInfo;G.db.transaction(function(H){fa(H,G,"DELETE FROM "+G.storeName+" WHERE key = ?",[q],function(){F()},function(ee,re){W(re)})})}).catch(W)});return p(M,L),M}function tte(q){var L=this,A=new d(function(M,F){L.ready().then(function(){var W=L._dbInfo;W.db.transaction(function(G){fa(G,W,"DELETE FROM "+W.storeName,[],function(){M()},function(H,ee){F(ee)})})}).catch(F)});return p(A,q),A}function nte(q){var L=this,A=new d(function(M,F){L.ready().then(function(){var W=L._dbInfo;W.db.transaction(function(G){fa(G,W,"SELECT COUNT(key) as c FROM "+W.storeName,[],function(H,ee){var re=ee.rows.item(0).c;M(re)},function(H,ee){F(ee)})})}).catch(F)});return p(A,q),A}function ite(q,L){var A=this,M=new d(function(F,W){A.ready().then(function(){var G=A._dbInfo;G.db.transaction(function(H){fa(H,G,"SELECT key FROM "+G.storeName+" WHERE id = ? LIMIT 1",[q+1],function(ee,re){var oe=re.rows.length?re.rows.item(0).key:null;F(oe)},function(ee,re){W(re)})})}).catch(W)});return p(M,L),M}function ate(q){var L=this,A=new d(function(M,F){L.ready().then(function(){var W=L._dbInfo;W.db.transaction(function(G){fa(G,W,"SELECT key FROM "+W.storeName,[],function(H,ee){for(var re=[],oe=0;oe<ee.rows.length;oe++)re.push(ee.rows.item(oe).key);M(re)},function(H,ee){F(ee)})})}).catch(F)});return p(A,q),A}function ote(q){return new d(function(L,A){q.transaction(function(M){M.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(F,W){for(var G=[],H=0;H<W.rows.length;H++)G.push(W.rows.item(H).name);L({db:q,storeNames:G})},function(F,W){A(W)})},function(M){A(M)})})}function ste(q,L){L=v.apply(this,arguments);var A=this.config();q=typeof q!="function"&&q||{},q.name||(q.name=q.name||A.name,q.storeName=q.storeName||A.storeName);var M=this,F;return q.name?F=new d(function(W){var G;q.name===A.name?G=M._dbInfo.db:G=openDatabase(q.name,"","",0),q.storeName?W({db:G,storeNames:[q.storeName]}):W(ote(G))}).then(function(W){return new d(function(G,H){W.db.transaction(function(ee){function re(er){return new d(function(sr,Mr){ee.executeSql("DROP TABLE IF EXISTS "+er,[],function(){sr()},function(Nr,dn){Mr(dn)})})}for(var oe=[],xe=0,De=W.storeNames.length;xe<De;xe++)oe.push(re(W.storeNames[xe]));d.all(oe).then(function(){G()}).catch(function(er){H(er)})},function(ee){H(ee)})})}):F=d.reject("Invalid arguments"),p(F,L),F}var ute={_driver:"webSQLStorage",_initStorage:Yre,_support:vr(),iterate:Zre,getItem:Jre,setItem:ete,removeItem:rte,clear:tte,length:nte,key:ite,keys:ate,dropInstance:ste};function cte(){try{return typeof localStorage!="undefined"&&"setItem"in localStorage&&!!localStorage.setItem}catch(q){return!1}}function YT(q,L){var A=q.name+"/";return q.storeName!==L.storeName&&(A+=q.storeName+"/"),A}function lte(){var q="_localforage_support_test";try{return localStorage.setItem(q,!0),localStorage.removeItem(q),!1}catch(L){return!0}}function fte(){return!lte()||localStorage.length>0}function dte(q){var L=this,A={};if(q)for(var M in q)A[M]=q[M];return A.keyPrefix=YT(q,L._defaultConfig),fte()?(L._dbInfo=A,A.serializer=Jv,d.resolve()):d.reject()}function pte(q){var L=this,A=L.ready().then(function(){for(var M=L._dbInfo.keyPrefix,F=localStorage.length-1;F>=0;F--){var W=localStorage.key(F);W.indexOf(M)===0&&localStorage.removeItem(W)}});return p(A,q),A}function hte(q,L){var A=this;q=h(q);var M=A.ready().then(function(){var F=A._dbInfo,W=localStorage.getItem(F.keyPrefix+q);return W&&(W=F.serializer.deserialize(W)),W});return p(M,L),M}function xte(q,L){var A=this,M=A.ready().then(function(){for(var F=A._dbInfo,W=F.keyPrefix,G=W.length,H=localStorage.length,ee=1,re=0;re<H;re++){var oe=localStorage.key(re);if(oe.indexOf(W)===0){var xe=localStorage.getItem(oe);if(xe&&(xe=F.serializer.deserialize(xe)),xe=q(xe,oe.substring(G),ee++),xe!==void 0)return xe}}});return p(M,L),M}function gte(q,L){var A=this,M=A.ready().then(function(){var F=A._dbInfo,W;try{W=localStorage.key(q)}catch(G){W=null}return W&&(W=W.substring(F.keyPrefix.length)),W});return p(M,L),M}function vte(q){var L=this,A=L.ready().then(function(){for(var M=L._dbInfo,F=localStorage.length,W=[],G=0;G<F;G++){var H=localStorage.key(G);H.indexOf(M.keyPrefix)===0&&W.push(H.substring(M.keyPrefix.length))}return W});return p(A,q),A}function mte(q){var L=this,A=L.keys().then(function(M){return M.length});return p(A,q),A}function yte(q,L){var A=this;q=h(q);var M=A.ready().then(function(){var F=A._dbInfo;localStorage.removeItem(F.keyPrefix+q)});return p(M,L),M}function bte(q,L,A){var M=this;q=h(q);var F=M.ready().then(function(){L===void 0&&(L=null);var W=L;return new d(function(G,H){var ee=M._dbInfo;ee.serializer.serialize(L,function(re,oe){if(oe)H(oe);else try{localStorage.setItem(ee.keyPrefix+q,re),G(W)}catch(xe){(xe.name==="QuotaExceededError"||xe.name==="NS_ERROR_DOM_QUOTA_REACHED")&&H(xe),H(xe)}})})});return p(F,A),F}function _te(q,L){if(L=v.apply(this,arguments),q=typeof q!="function"&&q||{},!q.name){var A=this.config();q.name=q.name||A.name,q.storeName=q.storeName||A.storeName}var M=this,F;return q.name?F=new d(function(W){q.storeName?W(YT(q,M._defaultConfig)):W(q.name+"/")}).then(function(W){for(var G=localStorage.length-1;G>=0;G--){var H=localStorage.key(G);H.indexOf(W)===0&&localStorage.removeItem(H)}}):F=d.reject("Invalid arguments"),p(F,L),F}var wte={_driver:"localStorageWrapper",_initStorage:dte,_support:cte(),iterate:xte,getItem:hte,setItem:bte,removeItem:yte,clear:pte,length:mte,key:gte,keys:vte,dropInstance:_te},Ste=function Ste(L,A){return L===A||typeof L=="number"&&typeof A=="number"&&isNaN(L)&&isNaN(A)},Ete=function Ete(L,A){for(var M=L.length,F=0;F<M;){if(Ste(L[F],A))return!0;F++}return!1},JT=Array.isArray||function(q){return Object.prototype.toString.call(q)==="[object Array]"},al={},ZT={},Ls={INDEXEDDB:Ze,WEBSQL:ute,LOCALSTORAGE:wte},qte=[Ls.INDEXEDDB._driver,Ls.WEBSQL._driver,Ls.LOCALSTORAGE._driver],pp=["dropInstance"],Zv=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(pp),Tte={description:"",driver:qte.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function Ate(q,L){q[L]=function(){var A=arguments;return q.ready().then(function(){return q[L].apply(q,A)})}}function em(){for(var q=1;q<arguments.length;q++){var L=arguments[q];if(L)for(var A in L)L.hasOwnProperty(A)&&(JT(L[A])?arguments[0][A]=L[A].slice():arguments[0][A]=L[A])}return arguments[0]}var Ote=function(){function q(L){s(this,q);for(var A in Ls)if(Ls.hasOwnProperty(A)){var M=Ls[A],F=M._driver;this[A]=F,al[F]||this.defineDriver(M)}this._defaultConfig=em({},Tte),this._config=em({},this._defaultConfig,L),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch(function(){})}return q.prototype.config=function(A){if((typeof A=="undefined"?"undefined":o(A))==="object"){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var M in A){if(M==="storeName"&&(A[M]=A[M].replace(/\W/g,"_")),M==="version"&&typeof A[M]!="number")return new Error("Database version must be a number.");this._config[M]=A[M]}return"driver"in A&&A.driver?this.setDriver(this._config.driver):!0}else return typeof A=="string"?this._config[A]:this._config},q.prototype.defineDriver=function(A,M,F){var W=new d(function(G,H){try{var ee=A._driver,re=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!A._driver){H(re);return}for(var oe=Zv.concat("_initStorage"),xe=0,De=oe.length;xe<De;xe++){var er=oe[xe],sr=!Ete(pp,er);if((sr||A[er])&&typeof A[er]!="function"){H(re);return}}var Mr=function Mr(){for(var ol=function ol(Pte){return function(){var Cte=new Error("Method "+Pte+" is not implemented by the current driver"),e3=d.reject(Cte);return p(e3,arguments[arguments.length-1]),e3}},rm=0,Ite=pp.length;rm<Ite;rm++){var tm=pp[rm];A[tm]||(A[tm]=ol(tm))}};Mr();var Nr=function Nr(ol){al[ee]&&console.info("Redefining LocalForage driver: "+ee),al[ee]=A,ZT[ee]=ol,G()};"_support"in A?A._support&&typeof A._support=="function"?A._support().then(Nr,H):Nr(!!A._support):Nr(!0)}catch(dn){H(dn)}});return x(W,M,F),W},q.prototype.driver=function(){return this._driver||null},q.prototype.getDriver=function(A,M,F){var W=al[A]?d.resolve(al[A]):d.reject(new Error("Driver not found."));return x(W,M,F),W},q.prototype.getSerializer=function(A){var M=d.resolve(Jv);return x(M,A),M},q.prototype.ready=function(A){var M=this,F=M._driverSet.then(function(){return M._ready===null&&(M._ready=M._initDriver()),M._ready});return x(F,A,A),F},q.prototype.setDriver=function(A,M,F){var W=this;JT(A)||(A=[A]);var G=this._getSupportedDrivers(A);function H(){W._config.driver=W.driver()}function ee(xe){return W._extend(xe),H(),W._ready=W._initStorage(W._config),W._ready}function re(xe){return function(){var De=0;function er(){for(;De<xe.length;){var sr=xe[De];return De++,W._dbInfo=null,W._ready=null,W.getDriver(sr).then(ee).catch(er)}H();var Mr=new Error("No available storage method found.");return W._driverSet=d.reject(Mr),W._driverSet}return er()}}var oe=this._driverSet!==null?this._driverSet.catch(function(){return d.resolve()}):d.resolve();return this._driverSet=oe.then(function(){var xe=G[0];return W._dbInfo=null,W._ready=null,W.getDriver(xe).then(function(De){W._driver=De._driver,H(),W._wrapLibraryMethodsWithReady(),W._initDriver=re(G)})}).catch(function(){H();var xe=new Error("No available storage method found.");return W._driverSet=d.reject(xe),W._driverSet}),x(this._driverSet,M,F),this._driverSet},q.prototype.supports=function(A){return!!ZT[A]},q.prototype._extend=function(A){em(this,A)},q.prototype._getSupportedDrivers=function(A){for(var M=[],F=0,W=A.length;F<W;F++){var G=A[F];this.supports(G)&&M.push(G)}return M},q.prototype._wrapLibraryMethodsWithReady=function(){for(var A=0,M=Zv.length;A<M;A++)Ate(this,Zv[A])},q.prototype.createInstance=function(A){return new q(A)},q}(),Rte=new Ote;i.exports=Rte},{3:3}]},{},[4])(4)})});var OY=g(function(iRr,Nc){var J=function J(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32},fr=-1,gr=1,Pe=0;J.Diff=function(r,e){return[r,e]};J.prototype.diff_main=function(r,e,t,n){typeof n=="undefined"&&(this.Diff_Timeout<=0?n=Number.MAX_VALUE:n=new Date().getTime()+this.Diff_Timeout*1e3);var i=n;if(r==null||e==null)throw new Error("Null input. (diff_main)");if(r==e)return r?[new J.Diff(Pe,r)]:[];typeof t=="undefined"&&(t=!0);var a=t,o=this.diff_commonPrefix(r,e),s=r.substring(0,o);r=r.substring(o),e=e.substring(o),o=this.diff_commonSuffix(r,e);var u=r.substring(r.length-o);r=r.substring(0,r.length-o),e=e.substring(0,e.length-o);var c=this.diff_compute_(r,e,a,i);return s&&c.unshift(new J.Diff(Pe,s)),u&&c.push(new J.Diff(Pe,u)),this.diff_cleanupMerge(c),c};J.prototype.diff_compute_=function(r,e,t,n){var i;if(!r)return[new J.Diff(gr,e)];if(!e)return[new J.Diff(fr,r)];var a=r.length>e.length?r:e,o=r.length>e.length?e:r,s=a.indexOf(o);if(s!=-1)return i=[new J.Diff(gr,a.substring(0,s)),new J.Diff(Pe,o),new J.Diff(gr,a.substring(s+o.length))],r.length>e.length&&(i[0][0]=i[2][0]=fr),i;if(o.length==1)return[new J.Diff(fr,r),new J.Diff(gr,e)];var u=this.diff_halfMatch_(r,e);if(u){var c=u[0],l=u[1],f=u[2],d=u[3],p=u[4],x=this.diff_main(c,f,t,n),h=this.diff_main(l,d,t,n);return x.concat([new J.Diff(Pe,p)],h)}return t&&r.length>100&&e.length>100?this.diff_lineMode_(r,e,n):this.diff_bisect_(r,e,n)};J.prototype.diff_lineMode_=function(r,e,t){var n=this.diff_linesToChars_(r,e);r=n.chars1,e=n.chars2;var i=n.lineArray,a=this.diff_main(r,e,!1,t);this.diff_charsToLines_(a,i),this.diff_cleanupSemantic(a),a.push(new J.Diff(Pe,""));for(var o=0,s=0,u=0,c="",l="";o<a.length;){switch(a[o][0]){case gr:u++,l+=a[o][1];break;case fr:s++,c+=a[o][1];break;case Pe:if(s>=1&&u>=1){a.splice(o-s-u,s+u),o=o-s-u;for(var f=this.diff_main(c,l,!1,t),d=f.length-1;d>=0;d--)a.splice(o,0,f[d]);o=o+f.length}u=0,s=0,c="",l="";break}o++}return a.pop(),a};J.prototype.diff_bisect_=function(r,e,t){for(var n=r.length,i=e.length,a=Math.ceil((n+i)/2),o=a,s=2*a,u=new Array(s),c=new Array(s),l=0;l<s;l++)u[l]=-1,c[l]=-1;u[o+1]=0,c[o+1]=0;for(var f=n-i,d=f%2!=0,p=0,x=0,h=0,v=0,y=0;y<a&&!(new Date().getTime()>t);y++){for(var m=-y+p;m<=y-x;m+=2){var b=o+m,S;m==-y||m!=y&&u[b-1]<u[b+1]?S=u[b+1]:S=u[b-1]+1;for(var T=S-m;S<n&&T<i&&r.charAt(S)==e.charAt(T);)S++,T++;if(u[b]=S,S>n)x+=2;else if(T>i)p+=2;else if(d){var w=o+f-m;if(w>=0&&w<s&&c[w]!=-1){var R=n-c[w];if(S>=R)return this.diff_bisectSplit_(r,e,S,T,t)}}}for(var _=-y+h;_<=y-v;_+=2){var w=o+_,R;_==-y||_!=y&&c[w-1]<c[w+1]?R=c[w+1]:R=c[w-1]+1;for(var E=R-_;R<n&&E<i&&r.charAt(n-R-1)==e.charAt(i-E-1);)R++,E++;if(c[w]=R,R>n)v+=2;else if(E>i)h+=2;else if(!d){var b=o+f-_;if(b>=0&&b<s&&u[b]!=-1){var S=u[b],T=o+S-b;if(R=n-R,S>=R)return this.diff_bisectSplit_(r,e,S,T,t)}}}}return[new J.Diff(fr,r),new J.Diff(gr,e)]};J.prototype.diff_bisectSplit_=function(r,e,t,n,i){var a=r.substring(0,t),o=e.substring(0,n),s=r.substring(t),u=e.substring(n),c=this.diff_main(a,o,!1,i),l=this.diff_main(s,u,!1,i);return c.concat(l)};J.prototype.diff_linesToChars_=function(r,e){var t=[],n={};t[0]="";function i(u){for(var c="",l=0,f=-1,d=t.length;f<u.length-1;){f=u.indexOf("\n",l),f==-1&&(f=u.length-1);var p=u.substring(l,f+1);(n.hasOwnProperty?n.hasOwnProperty(p):n[p]!==void 0)?c+=String.fromCharCode(n[p]):(d==a&&(p=u.substring(l),f=u.length),c+=String.fromCharCode(d),n[p]=d,t[d++]=p),l=f+1}return c}var a=4e4,o=i(r);a=65535;var s=i(e);return{chars1:o,chars2:s,lineArray:t}};J.prototype.diff_charsToLines_=function(r,e){for(var t=0;t<r.length;t++){for(var n=r[t][1],i=[],a=0;a<n.length;a++)i[a]=e[n.charCodeAt(a)];r[t][1]=i.join("")}};J.prototype.diff_commonPrefix=function(r,e){if(!r||!e||r.charAt(0)!=e.charAt(0))return 0;for(var t=0,n=Math.min(r.length,e.length),i=n,a=0;t<i;)r.substring(a,i)==e.substring(a,i)?(t=i,a=t):n=i,i=Math.floor((n-t)/2+t);return i};J.prototype.diff_commonSuffix=function(r,e){if(!r||!e||r.charAt(r.length-1)!=e.charAt(e.length-1))return 0;for(var t=0,n=Math.min(r.length,e.length),i=n,a=0;t<i;)r.substring(r.length-i,r.length-a)==e.substring(e.length-i,e.length-a)?(t=i,a=t):n=i,i=Math.floor((n-t)/2+t);return i};J.prototype.diff_commonOverlap_=function(r,e){var t=r.length,n=e.length;if(t==0||n==0)return 0;t>n?r=r.substring(t-n):t<n&&(e=e.substring(0,t));var i=Math.min(t,n);if(r==e)return i;for(var a=0,o=1;;){var s=r.substring(i-o),u=e.indexOf(s);if(u==-1)return a;o+=u,(u==0||r.substring(i-o)==e.substring(0,o))&&(a=o,o++)}};J.prototype.diff_halfMatch_=function(r,e){if(this.Diff_Timeout<=0)return null;var t=r.length>e.length?r:e,n=r.length>e.length?e:r;if(t.length<4||n.length*2<t.length)return null;var i=this;function a(x,h,v){for(var y=x.substring(v,v+Math.floor(x.length/4)),m=-1,b="",S,T,w,R;(m=h.indexOf(y,m+1))!=-1;){var _=i.diff_commonPrefix(x.substring(v),h.substring(m)),E=i.diff_commonSuffix(x.substring(0,v),h.substring(0,m));b.length<E+_&&(b=h.substring(m-E,m)+h.substring(m,m+_),S=x.substring(0,v-E),T=x.substring(v+_),w=h.substring(0,m-E),R=h.substring(m+_))}return b.length*2>=x.length?[S,T,w,R,b]:null}var o=a(t,n,Math.ceil(t.length/4)),s=a(t,n,Math.ceil(t.length/2)),u;if(!o&&!s)return null;s?o?u=o[4].length>s[4].length?o:s:u=s:u=o;var c,l,f,d;r.length>e.length?(c=u[0],l=u[1],f=u[2],d=u[3]):(f=u[0],d=u[1],c=u[2],l=u[3]);var p=u[4];return[c,l,f,d,p]};J.prototype.diff_cleanupSemantic=function(r){for(var e=!1,t=[],n=0,i=null,a=0,o=0,s=0,u=0,c=0;a<r.length;)r[a][0]==Pe?(t[n++]=a,o=u,s=c,u=0,c=0,i=r[a][1]):(r[a][0]==gr?u+=r[a][1].length:c+=r[a][1].length,i&&i.length<=Math.max(o,s)&&i.length<=Math.max(u,c)&&(r.splice(t[n-1],0,new J.Diff(fr,i)),r[t[n-1]+1][0]=gr,n--,n--,a=n>0?t[n-1]:-1,o=0,s=0,u=0,c=0,i=null,e=!0)),a++;for(e&&this.diff_cleanupMerge(r),this.diff_cleanupSemanticLossless(r),a=1;a<r.length;){if(r[a-1][0]==fr&&r[a][0]==gr){var l=r[a-1][1],f=r[a][1],d=this.diff_commonOverlap_(l,f),p=this.diff_commonOverlap_(f,l);d>=p?(d>=l.length/2||d>=f.length/2)&&(r.splice(a,0,new J.Diff(Pe,f.substring(0,d))),r[a-1][1]=l.substring(0,l.length-d),r[a+1][1]=f.substring(d),a++):(p>=l.length/2||p>=f.length/2)&&(r.splice(a,0,new J.Diff(Pe,l.substring(0,p))),r[a-1][0]=gr,r[a-1][1]=f.substring(0,f.length-p),r[a+1][0]=fr,r[a+1][1]=l.substring(p),a++),a++}a++}};J.prototype.diff_cleanupSemanticLossless=function(r){function e(p,x){if(!p||!x)return 6;var h=p.charAt(p.length-1),v=x.charAt(0),y=h.match(J.nonAlphaNumericRegex_),m=v.match(J.nonAlphaNumericRegex_),b=y&&h.match(J.whitespaceRegex_),S=m&&v.match(J.whitespaceRegex_),T=b&&h.match(J.linebreakRegex_),w=S&&v.match(J.linebreakRegex_),R=T&&p.match(J.blanklineEndRegex_),_=w&&x.match(J.blanklineStartRegex_);return R||_?5:T||w?4:y&&!b&&S?3:b||S?2:y||m?1:0}for(var t=1;t<r.length-1;){if(r[t-1][0]==Pe&&r[t+1][0]==Pe){var n=r[t-1][1],i=r[t][1],a=r[t+1][1],o=this.diff_commonSuffix(n,i);if(o){var s=i.substring(i.length-o);n=n.substring(0,n.length-o),i=s+i.substring(0,i.length-o),a=s+a}for(var u=n,c=i,l=a,f=e(n,i)+e(i,a);i.charAt(0)===a.charAt(0);){n+=i.charAt(0),i=i.substring(1)+a.charAt(0),a=a.substring(1);var d=e(n,i)+e(i,a);d>=f&&(f=d,u=n,c=i,l=a)}r[t-1][1]!=u&&(u?r[t-1][1]=u:(r.splice(t-1,1),t--),r[t][1]=c,l?r[t+1][1]=l:(r.splice(t+1,1),t--))}t++}};J.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/;J.whitespaceRegex_=/\s/;J.linebreakRegex_=/[\r\n]/;J.blanklineEndRegex_=/\n\r?\n$/;J.blanklineStartRegex_=/^\r?\n\r?\n/;J.prototype.diff_cleanupEfficiency=function(r){for(var e=!1,t=[],n=0,i=null,a=0,o=!1,s=!1,u=!1,c=!1;a<r.length;)r[a][0]==Pe?(r[a][1].length<this.Diff_EditCost&&(u||c)?(t[n++]=a,o=u,s=c,i=r[a][1]):(n=0,i=null),u=c=!1):(r[a][0]==fr?c=!0:u=!0,i&&(o&&s&&u&&c||i.length<this.Diff_EditCost/2&&o+s+u+c==3)&&(r.splice(t[n-1],0,new J.Diff(fr,i)),r[t[n-1]+1][0]=gr,n--,i=null,o&&s?(u=c=!0,n=0):(n--,a=n>0?t[n-1]:-1,u=c=!1),e=!0)),a++;e&&this.diff_cleanupMerge(r)};J.prototype.diff_cleanupMerge=function(r){r.push(new J.Diff(Pe,""));for(var e=0,t=0,n=0,i="",a="",o;e<r.length;)switch(r[e][0]){case gr:n++,a+=r[e][1],e++;break;case fr:t++,i+=r[e][1],e++;break;case Pe:t+n>1?(t!==0&&n!==0&&(o=this.diff_commonPrefix(a,i),o!==0&&(e-t-n>0&&r[e-t-n-1][0]==Pe?r[e-t-n-1][1]+=a.substring(0,o):(r.splice(0,0,new J.Diff(Pe,a.substring(0,o))),e++),a=a.substring(o),i=i.substring(o)),o=this.diff_commonSuffix(a,i),o!==0&&(r[e][1]=a.substring(a.length-o)+r[e][1],a=a.substring(0,a.length-o),i=i.substring(0,i.length-o))),e-=t+n,r.splice(e,t+n),i.length&&(r.splice(e,0,new J.Diff(fr,i)),e++),a.length&&(r.splice(e,0,new J.Diff(gr,a)),e++),e++):e!==0&&r[e-1][0]==Pe?(r[e-1][1]+=r[e][1],r.splice(e,1)):e++,n=0,t=0,i="",a="";break}r[r.length-1][1]===""&&r.pop();var s=!1;for(e=1;e<r.length-1;)r[e-1][0]==Pe&&r[e+1][0]==Pe&&(r[e][1].substring(r[e][1].length-r[e-1][1].length)==r[e-1][1]?(r[e][1]=r[e-1][1]+r[e][1].substring(0,r[e][1].length-r[e-1][1].length),r[e+1][1]=r[e-1][1]+r[e+1][1],r.splice(e-1,1),s=!0):r[e][1].substring(0,r[e+1][1].length)==r[e+1][1]&&(r[e-1][1]+=r[e+1][1],r[e][1]=r[e][1].substring(r[e+1][1].length)+r[e+1][1],r.splice(e+1,1),s=!0)),e++;s&&this.diff_cleanupMerge(r)};J.prototype.diff_xIndex=function(r,e){var t=0,n=0,i=0,a=0,o;for(o=0;o<r.length&&(r[o][0]!==gr&&(t+=r[o][1].length),r[o][0]!==fr&&(n+=r[o][1].length),!(t>e));o++)i=t,a=n;return r.length!=o&&r[o][0]===fr?a:a+(e-i)};J.prototype.diff_prettyHtml=function(r){for(var e=[],t=/&/g,n=/</g,i=/>/g,a=/\n/g,o=0;o<r.length;o++){var s=r[o][0],u=r[o][1],c=u.replace(t,"&amp;").replace(n,"&lt;").replace(i,"&gt;").replace(a,"&para;<br>");switch(s){case gr:e[o]='<ins style="background:#e6ffe6;">'+c+"</ins>";break;case fr:e[o]='<del style="background:#ffe6e6;">'+c+"</del>";break;case Pe:e[o]="<span>"+c+"</span>";break}}return e.join("")};J.prototype.diff_text1=function(r){for(var e=[],t=0;t<r.length;t++)r[t][0]!==gr&&(e[t]=r[t][1]);return e.join("")};J.prototype.diff_text2=function(r){for(var e=[],t=0;t<r.length;t++)r[t][0]!==fr&&(e[t]=r[t][1]);return e.join("")};J.prototype.diff_levenshtein=function(r){for(var e=0,t=0,n=0,i=0;i<r.length;i++){var a=r[i][0],o=r[i][1];switch(a){case gr:t+=o.length;break;case fr:n+=o.length;break;case Pe:e+=Math.max(t,n),t=0,n=0;break}}return e+=Math.max(t,n),e};J.prototype.diff_toDelta=function(r){for(var e=[],t=0;t<r.length;t++)switch(r[t][0]){case gr:e[t]="+"+encodeURI(r[t][1]);break;case fr:e[t]="-"+r[t][1].length;break;case Pe:e[t]="="+r[t][1].length;break}return e.join(" ").replace(/%20/g," ")};J.prototype.diff_fromDelta=function(r,e){for(var t=[],n=0,i=0,a=e.split(/\t/g),o=0;o<a.length;o++){var s=a[o].substring(1);switch(a[o].charAt(0)){case"+":try{t[n++]=new J.Diff(gr,decodeURI(s))}catch(l){throw new Error("Illegal escape in diff_fromDelta: "+s)}break;case"-":case"=":var u=parseInt(s,10);if(isNaN(u)||u<0)throw new Error("Invalid number in diff_fromDelta: "+s);var c=r.substring(i,i+=u);a[o].charAt(0)=="="?t[n++]=new J.Diff(Pe,c):t[n++]=new J.Diff(fr,c);break;default:if(a[o])throw new Error("Invalid diff operation in diff_fromDelta: "+a[o])}}if(i!=r.length)throw new Error("Delta length ("+i+") does not equal source text length ("+r.length+").");return t};J.prototype.match_main=function(r,e,t){if(r==null||e==null||t==null)throw new Error("Null input. (match_main)");return t=Math.max(0,Math.min(t,r.length)),r==e?0:r.length?r.substring(t,t+e.length)==e?t:this.match_bitap_(r,e,t):-1};J.prototype.match_bitap_=function(r,e,t){if(e.length>this.Match_MaxBits)throw new Error("Pattern too long for this browser.");var n=this.match_alphabet_(e),i=this;function a(S,T){var w=S/e.length,R=Math.abs(t-T);return i.Match_Distance?w+R/i.Match_Distance:R?1:w}var o=this.Match_Threshold,s=r.indexOf(e,t);s!=-1&&(o=Math.min(a(0,s),o),s=r.lastIndexOf(e,t+e.length),s!=-1&&(o=Math.min(a(0,s),o)));var u=1<<e.length-1;s=-1;for(var c,l,f=e.length+r.length,d,p=0;p<e.length;p++){for(c=0,l=f;c<l;)a(p,t+l)<=o?c=l:f=l,l=Math.floor((f-c)/2+c);f=l;var x=Math.max(1,t-l+1),h=Math.min(t+l,r.length)+e.length,v=Array(h+2);v[h+1]=(1<<p)-1;for(var y=h;y>=x;y--){var m=n[r.charAt(y-1)];if(p===0?v[y]=(v[y+1]<<1|1)&m:v[y]=(v[y+1]<<1|1)&m|((d[y+1]|d[y])<<1|1)|d[y+1],v[y]&u){var b=a(p,y-1);if(b<=o)if(o=b,s=y-1,s>t)x=Math.max(1,2*t-s);else break}}if(a(p+1,t)>o)break;d=v}return s};J.prototype.match_alphabet_=function(r){for(var e={},t=0;t<r.length;t++)e[r.charAt(t)]=0;for(var t=0;t<r.length;t++)e[r.charAt(t)]|=1<<r.length-t-1;return e};J.prototype.patch_addContext_=function(r,e){if(e.length!=0){if(r.start2===null)throw Error("patch not initialized");for(var t=e.substring(r.start2,r.start2+r.length1),n=0;e.indexOf(t)!=e.lastIndexOf(t)&&t.length<this.Match_MaxBits-this.Patch_Margin-this.Patch_Margin;)n+=this.Patch_Margin,t=e.substring(r.start2-n,r.start2+r.length1+n);n+=this.Patch_Margin;var i=e.substring(r.start2-n,r.start2);i&&r.diffs.unshift(new J.Diff(Pe,i));var a=e.substring(r.start2+r.length1,r.start2+r.length1+n);a&&r.diffs.push(new J.Diff(Pe,a)),r.start1-=i.length,r.start2-=i.length,r.length1+=i.length+a.length,r.length2+=i.length+a.length}};J.prototype.patch_make=function(r,e,t){var n,i;if(typeof r=="string"&&typeof e=="string"&&typeof t=="undefined")n=r,i=this.diff_main(n,e,!0),i.length>2&&(this.diff_cleanupSemantic(i),this.diff_cleanupEfficiency(i));else if(r&&(typeof r==="undefined"?"undefined":_type_of(r))=="object"&&typeof e=="undefined"&&typeof t=="undefined")i=r,n=this.diff_text1(i);else if(typeof r=="string"&&e&&(typeof e==="undefined"?"undefined":_type_of(e))=="object"&&typeof t=="undefined")n=r,i=e;else if(typeof r=="string"&&typeof e=="string"&&t&&(typeof t==="undefined"?"undefined":_type_of(t))=="object")n=r,i=t;else throw new Error("Unknown call format to patch_make.");if(i.length===0)return[];for(var a=[],o=new J.patch_obj,s=0,u=0,c=0,l=n,f=n,d=0;d<i.length;d++){var p=i[d][0],x=i[d][1];switch(!s&&p!==Pe&&(o.start1=u,o.start2=c),p){case gr:o.diffs[s++]=i[d],o.length2+=x.length,f=f.substring(0,c)+x+f.substring(c);break;case fr:o.length1+=x.length,o.diffs[s++]=i[d],f=f.substring(0,c)+f.substring(c+x.length);break;case Pe:x.length<=2*this.Patch_Margin&&s&&i.length!=d+1?(o.diffs[s++]=i[d],o.length1+=x.length,o.length2+=x.length):x.length>=2*this.Patch_Margin&&s&&(this.patch_addContext_(o,l),a.push(o),o=new J.patch_obj,s=0,l=f,u=c);break}p!==gr&&(u+=x.length),p!==fr&&(c+=x.length)}return s&&(this.patch_addContext_(o,l),a.push(o)),a};J.prototype.patch_deepCopy=function(r){for(var e=[],t=0;t<r.length;t++){var n=r[t],i=new J.patch_obj;i.diffs=[];for(var a=0;a<n.diffs.length;a++)i.diffs[a]=new J.Diff(n.diffs[a][0],n.diffs[a][1]);i.start1=n.start1,i.start2=n.start2,i.length1=n.length1,i.length2=n.length2,e[t]=i}return e};J.prototype.patch_apply=function(r,e){if(r.length==0)return[e,[]];r=this.patch_deepCopy(r);var t=this.patch_addPadding(r);e=t+e+t,this.patch_splitMax(r);for(var n=0,i=[],a=0;a<r.length;a++){var o=r[a].start2+n,s=this.diff_text1(r[a].diffs),u,c=-1;if(s.length>this.Match_MaxBits?(u=this.match_main(e,s.substring(0,this.Match_MaxBits),o),u!=-1&&(c=this.match_main(e,s.substring(s.length-this.Match_MaxBits),o+s.length-this.Match_MaxBits),(c==-1||u>=c)&&(u=-1))):u=this.match_main(e,s,o),u==-1)i[a]=!1,n-=r[a].length2-r[a].length1;else{i[a]=!0,n=u-o;var l;if(c==-1?l=e.substring(u,u+s.length):l=e.substring(u,c+this.Match_MaxBits),s==l)e=e.substring(0,u)+this.diff_text2(r[a].diffs)+e.substring(u+s.length);else{var f=this.diff_main(s,l,!1);if(s.length>this.Match_MaxBits&&this.diff_levenshtein(f)/s.length>this.Patch_DeleteThreshold)i[a]=!1;else{this.diff_cleanupSemanticLossless(f);for(var d=0,p,x=0;x<r[a].diffs.length;x++){var h=r[a].diffs[x];h[0]!==Pe&&(p=this.diff_xIndex(f,d)),h[0]===gr?e=e.substring(0,u+p)+h[1]+e.substring(u+p):h[0]===fr&&(e=e.substring(0,u+p)+e.substring(u+this.diff_xIndex(f,d+h[1].length))),h[0]!==fr&&(d+=h[1].length)}}}}}return e=e.substring(t.length,e.length-t.length),[e,i]};J.prototype.patch_addPadding=function(r){for(var e=this.Patch_Margin,t="",n=1;n<=e;n++)t+=String.fromCharCode(n);for(var n=0;n<r.length;n++)r[n].start1+=e,r[n].start2+=e;var i=r[0],a=i.diffs;if(a.length==0||a[0][0]!=Pe)a.unshift(new J.Diff(Pe,t)),i.start1-=e,i.start2-=e,i.length1+=e,i.length2+=e;else if(e>a[0][1].length){var o=e-a[0][1].length;a[0][1]=t.substring(a[0][1].length)+a[0][1],i.start1-=o,i.start2-=o,i.length1+=o,i.length2+=o}if(i=r[r.length-1],a=i.diffs,a.length==0||a[a.length-1][0]!=Pe)a.push(new J.Diff(Pe,t)),i.length1+=e,i.length2+=e;else if(e>a[a.length-1][1].length){var o=e-a[a.length-1][1].length;a[a.length-1][1]+=t.substring(0,o),i.length1+=o,i.length2+=o}return t};J.prototype.patch_splitMax=function(r){for(var e=this.Match_MaxBits,t=0;t<r.length;t++)if(!(r[t].length1<=e)){var n=r[t];r.splice(t--,1);for(var i=n.start1,a=n.start2,o="";n.diffs.length!==0;){var s=new J.patch_obj,u=!0;for(s.start1=i-o.length,s.start2=a-o.length,o!==""&&(s.length1=s.length2=o.length,s.diffs.push(new J.Diff(Pe,o)));n.diffs.length!==0&&s.length1<e-this.Patch_Margin;){var c=n.diffs[0][0],l=n.diffs[0][1];c===gr?(s.length2+=l.length,a+=l.length,s.diffs.push(n.diffs.shift()),u=!1):c===fr&&s.diffs.length==1&&s.diffs[0][0]==Pe&&l.length>2*e?(s.length1+=l.length,i+=l.length,u=!1,s.diffs.push(new J.Diff(c,l)),n.diffs.shift()):(l=l.substring(0,e-s.length1-this.Patch_Margin),s.length1+=l.length,i+=l.length,c===Pe?(s.length2+=l.length,a+=l.length):u=!1,s.diffs.push(new J.Diff(c,l)),l==n.diffs[0][1]?n.diffs.shift():n.diffs[0][1]=n.diffs[0][1].substring(l.length))}o=this.diff_text2(s.diffs),o=o.substring(o.length-this.Patch_Margin);var f=this.diff_text1(n.diffs).substring(0,this.Patch_Margin);f!==""&&(s.length1+=f.length,s.length2+=f.length,s.diffs.length!==0&&s.diffs[s.diffs.length-1][0]===Pe?s.diffs[s.diffs.length-1][1]+=f:s.diffs.push(new J.Diff(Pe,f))),u||r.splice(++t,0,s)}}};J.prototype.patch_toText=function(r){for(var e=[],t=0;t<r.length;t++)e[t]=r[t];return e.join("")};J.prototype.patch_fromText=function(r){var e=[];if(!r)return e;for(var t=r.split("\n"),n=0,i=/^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;n<t.length;){var a=t[n].match(i);if(!a)throw new Error("Invalid patch string: "+t[n]);var o=new J.patch_obj;for(e.push(o),o.start1=parseInt(a[1],10),a[2]===""?(o.start1--,o.length1=1):a[2]=="0"?o.length1=0:(o.start1--,o.length1=parseInt(a[2],10)),o.start2=parseInt(a[3],10),a[4]===""?(o.start2--,o.length2=1):a[4]=="0"?o.length2=0:(o.start2--,o.length2=parseInt(a[4],10)),n++;n<t.length;){var s=t[n].charAt(0);try{var u=decodeURI(t[n].substring(1))}catch(c){throw new Error("Illegal escape in patch_fromText: "+u)}if(s=="-")o.diffs.push(new J.Diff(fr,u));else if(s=="+")o.diffs.push(new J.Diff(gr,u));else if(s==" ")o.diffs.push(new J.Diff(Pe,u));else{if(s=="@")break;if(s!=="")throw new Error('Invalid patch mode "'+s+'" in: '+u)}n++}}return e};J.patch_obj=function(){this.diffs=[],this.start1=null,this.start2=null,this.length1=0,this.length2=0};J.patch_obj.prototype.toString=function(){var r,e;this.length1===0?r=this.start1+",0":this.length1==1?r=this.start1+1:r=this.start1+1+","+this.length1,this.length2===0?e=this.start2+",0":this.length2==1?e=this.start2+1:e=this.start2+1+","+this.length2;for(var t=["@@ -"+r+" +"+e+" @@\n"],n,i=0;i<this.diffs.length;i++){switch(this.diffs[i][0]){case gr:n="+";break;case fr:n="-";break;case Pe:n=" ";break}t[i+1]=n+encodeURI(this.diffs[i][1])+"\n"}return t.join("").replace(/%20/g," ")};Nc.exports=J;Nc.exports.diff_match_patch=J;Nc.exports.DIFF_DELETE=fr;Nc.exports.DIFF_INSERT=gr;Nc.exports.DIFF_EQUAL=Pe});var fv=g(function(aa){"use strict";var _J=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",aZe=_J+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",wJ="["+_J+"]["+aZe+"]*",oZe=new RegExp("^"+wJ+"$"),sZe=function sZe(r,e){var t=[],n=e.exec(r);for(;n;){var i=[];i.startIndex=e.lastIndex-n[0].length;var a=n.length;for(var o=0;o<a;o++)i.push(n[o]);t.push(i),n=e.exec(r)}return t},uZe=function uZe(r){var e=oZe.exec(r);return!(e===null||typeof e=="undefined")};aa.isExist=function(r){return typeof r!="undefined"};aa.isEmptyObject=function(r){return Object.keys(r).length===0};aa.merge=function(r,e,t){if(e){var n=Object.keys(e),i=n.length;for(var a=0;a<i;a++)t==="strict"?r[n[a]]=[e[n[a]]]:r[n[a]]=e[n[a]]}};aa.getValue=function(r){return aa.isExist(r)?r:""};aa.isName=uZe;aa.getAllMatches=sZe;aa.nameRegexp=wJ});var Jq=g(function(AJ){"use strict";var SJ=function SJ(r){return r===" "||r===" "||r==="\n"||r==="\r"};var EJ=function EJ(r,e){var t=e;for(;e<r.length;e++)if(r[e]=="?"||r[e]==" "){var n=r.substr(t,e-t);if(e>5&&n==="xml")return Lr("InvalidXml","XML declaration allowed only at the start of the document.",Dt(r,e));if(r[e]=="?"&&r[e+1]==">"){e++;break}else continue}return e};var qJ=function qJ(r,e){if(r.length>e+5&&r[e+1]==="-"&&r[e+2]==="-"){for(e+=3;e<r.length;e++)if(r[e]==="-"&&r[e+1]==="-"&&r[e+2]===">"){e+=2;break}}else if(r.length>e+8&&r[e+1]==="D"&&r[e+2]==="O"&&r[e+3]==="C"&&r[e+4]==="T"&&r[e+5]==="Y"&&r[e+6]==="P"&&r[e+7]==="E"){var t=1;for(e+=8;e<r.length;e++)if(r[e]==="<")t++;else if(r[e]===">"&&(t--,t===0))break}else if(r.length>e+9&&r[e+1]==="["&&r[e+2]==="C"&&r[e+3]==="D"&&r[e+4]==="A"&&r[e+5]==="T"&&r[e+6]==="A"&&r[e+7]==="["){for(e+=8;e<r.length;e++)if(r[e]==="]"&&r[e+1]==="]"&&r[e+2]===">"){e+=2;break}}return e};var dZe=function dZe(r,e){var t="",n="",i=!1;for(;e<r.length;e++){if(r[e]===lZe||r[e]===fZe)n===""?n=r[e]:n!==r[e]||(n="");else if(r[e]===">"&&n===""){i=!0;break}t+=r[e]}return n!==""?!1:{value:t,index:e,tagClosed:i}};var TJ=function TJ(r,e){var t=Yq.getAllMatches(r,pZe),n={};for(var i=0;i<t.length;i++){if(t[i][1].length===0)return Lr("InvalidAttr","Attribute '"+t[i][2]+"' has no space in starting.",Wd(t[i]));if(t[i][3]!==void 0&&t[i][4]===void 0)return Lr("InvalidAttr","Attribute '"+t[i][2]+"' is without value.",Wd(t[i]));if(t[i][3]===void 0&&!e.allowBooleanAttributes)return Lr("InvalidAttr","boolean attribute '"+t[i][2]+"' is not allowed.",Wd(t[i]));var a=t[i][2];if(!gZe(a))return Lr("InvalidAttr","Attribute '"+a+"' is an invalid name.",Wd(t[i]));if(!n.hasOwnProperty(a))n[a]=1;else return Lr("InvalidAttr","Attribute '"+a+"' is repeated.",Wd(t[i]))}return!0};var hZe=function hZe(r,e){var t=/\d/;for(r[e]==="x"&&(e++,t=/[\da-fA-F]/);e<r.length;e++){if(r[e]===";")return e;if(!r[e].match(t))break}return-1};var xZe=function xZe(r,e){if(e++,r[e]===";")return-1;if(r[e]==="#")return e++,hZe(r,e);var t=0;for(;e<r.length;e++,t++)if(!(r[e].match(/\w/)&&t<20)){if(r[e]===";")break;return-1}return e};var Lr=function Lr(r,e,t){return{err:{code:r,msg:e,line:t.line||t,col:t.col}}};var gZe=function gZe(r){return Yq.isName(r)};var vZe=function vZe(r){return Yq.isName(r)};var Dt=function Dt(r,e){var t=r.substring(0,e).split(/\r?\n/);return{line:t.length,col:t[t.length-1].length+1}};var Wd=function Wd(r){return r.startIndex+r[1].length};var Yq=fv(),cZe={allowBooleanAttributes:!1,unpairedTags:[]};AJ.validate=function(r,e){e=Object.assign({},cZe,e);var t=[],n=!1,i=!1;r[0]==="\uFEFF"&&(r=r.substr(1));for(var a=0;a<r.length;a++)if(r[a]==="<"&&r[a+1]==="?"){if(a+=2,a=EJ(r,a),a.err)return a}else if(r[a]==="<"){var o=a;if(a++,r[a]==="!"){a=qJ(r,a);continue}else{var s=!1;r[a]==="/"&&(s=!0,a++);var u="";for(;a<r.length&&r[a]!==">"&&r[a]!==" "&&r[a]!==" "&&r[a]!=="\n"&&r[a]!=="\r";a++)u+=r[a];if(u=u.trim(),u[u.length-1]==="/"&&(u=u.substring(0,u.length-1),a--),!vZe(u)){var f=void 0;return u.trim().length===0?f="Invalid space after '<'.":f="Tag '"+u+"' is an invalid name.",Lr("InvalidTag",f,Dt(r,a))}var c=dZe(r,a);if(c===!1)return Lr("InvalidAttr","Attributes for '"+u+"' have open quote.",Dt(r,a));var l=c.value;if(a=c.index,l[l.length-1]==="/"){var f1=a-l.length;l=l.substring(0,l.length-1);var d=TJ(l,e);if(d===!0)n=!0;else return Lr(d.err.code,d.err.msg,Dt(r,f1+d.err.line))}else if(s)if(c.tagClosed){if(l.trim().length>0)return Lr("InvalidTag","Closing tag '"+u+"' can't have attributes or invalid starting.",Dt(r,o));if(t.length===0)return Lr("InvalidTag","Closing tag '"+u+"' has not been opened.",Dt(r,o));{var f2=t.pop();if(u!==f2.tagName){var d2=Dt(r,f2.tagStartPos);return Lr("InvalidTag","Expected closing tag '"+f2.tagName+"' (opened in line "+d2.line+", col "+d2.col+") instead of closing tag '"+u+"'.",Dt(r,o))}t.length==0&&(i=!0)}}else return Lr("InvalidTag","Closing tag '"+u+"' doesn't have proper closing.",Dt(r,a));else{var f3=TJ(l,e);if(f3!==!0)return Lr(f3.err.code,f3.err.msg,Dt(r,a-l.length+f3.err.line));if(i===!0)return Lr("InvalidXml","Multiple possible root nodes found.",Dt(r,a));e.unpairedTags.indexOf(u)!==-1||t.push({tagName:u,tagStartPos:o}),n=!0}for(a++;a<r.length;a++)if(r[a]==="<")if(r[a+1]==="!"){a++,a=qJ(r,a);continue}else if(r[a+1]==="?"){if(a=EJ(r,++a),a.err)return a}else break;else if(r[a]==="&"){var f4=xZe(r,a);if(f4==-1)return Lr("InvalidChar","char '&' is not expected.",Dt(r,a));a=f4}else if(i===!0&&!SJ(r[a]))return Lr("InvalidXml","Extra text at the end",Dt(r,a));r[a]==="<"&&a--}}else{if(SJ(r[a]))continue;return Lr("InvalidChar","char '"+r[a]+"' is not expected.",Dt(r,a))}if(n){if(t.length==1)return Lr("InvalidTag","Unclosed tag '"+t[0].tagName+"'.",Dt(r,t[0].tagStartPos));if(t.length>0)return Lr("InvalidXml","Invalid '"+JSON.stringify(t.map(function(a){return a.tagName}),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Lr("InvalidXml","Start tag expected.",1);return!0};var lZe='"',fZe="'";var pZe=new RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g")});var RJ=g(function(Zq){var OJ={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function tagValueProcessor(r,e){return e},attributeValueProcessor:function attributeValueProcessor(r,e){return e},stopNodes:[],alwaysCreateTextNode:!1,isArray:function(){return!1},commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function updateTag(r,e,t){return r}},mZe=function mZe(r){return Object.assign({},OJ,r)};Zq.buildOptions=mZe;Zq.defaultOptions=OJ});var PJ=g(function(hCr,IJ){"use strict";var eT=/*#__PURE__*/function(){function eT(e){_class_call_check(this,eT);this.tagname=e,this.child=[],this[":@"]={}}_create_class(eT,[{key:"add",value:function add(e,t){e==="__proto__"&&(e="#__proto__"),this.child.push(_define_property({},e,t))}},{key:"addChild",value:function addChild(e){var _obj;e.tagname==="__proto__"&&(e.tagname="#__proto__"),e[":@"]&&Object.keys(e[":@"]).length>0?this.child.push((_obj={},_define_property(_obj,e.tagname,e.child),_define_property(_obj,":@",e[":@"]),_obj)):this.child.push(_define_property({},e.tagname,e.child))}}]);return eT}();IJ.exports=eT});var NJ=g(function(xCr,CJ){var bZe=function bZe(r,e){var t={};if(r[e+3]==="O"&&r[e+4]==="C"&&r[e+5]==="T"&&r[e+6]==="Y"&&r[e+7]==="P"&&r[e+8]==="E"){e=e+9;var n=1,i=!1,a=!1,o="";for(;e<r.length;e++)if(r[e]==="<"&&!a){if(i&&SZe(r,e)){e+=7;var s=void 0,u=void 0;var ref;ref=_sliced_to_array(_Ze(r,e+1),3),s=ref[0],u=ref[1],e=ref[2],ref,u.indexOf("&")===-1&&(t[AZe(s)]={regx:RegExp("&".concat(s,";"),"g"),val:u})}else if(i&&EZe(r,e))e+=8;else if(i&&qZe(r,e))e+=8;else if(i&&TZe(r,e))e+=9;else if(wZe)a=!0;else throw new Error("Invalid DOCTYPE");n++,o=""}else if(r[e]===">"){if(a?r[e-1]==="-"&&r[e-2]==="-"&&(a=!1,n--):n--,n===0)break}else r[e]==="["?i=!0:o+=r[e];if(n!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:t,i:e}};var _Ze=function _Ze(r,e){var t="";for(;e<r.length&&r[e]!=="'"&&r[e]!=='"';e++)t+=r[e];if(t=t.trim(),t.indexOf(" ")!==-1)throw new Error("External entites are not supported");var n=r[e++],i="";for(;e<r.length&&r[e]!==n;e++)i+=r[e];return[t,i,e]};var wZe=function wZe(r,e){return r[e+1]==="!"&&r[e+2]==="-"&&r[e+3]==="-"};var SZe=function SZe(r,e){return r[e+1]==="!"&&r[e+2]==="E"&&r[e+3]==="N"&&r[e+4]==="T"&&r[e+5]==="I"&&r[e+6]==="T"&&r[e+7]==="Y"};var EZe=function EZe(r,e){return r[e+1]==="!"&&r[e+2]==="E"&&r[e+3]==="L"&&r[e+4]==="E"&&r[e+5]==="M"&&r[e+6]==="E"&&r[e+7]==="N"&&r[e+8]==="T"};var qZe=function qZe(r,e){return r[e+1]==="!"&&r[e+2]==="A"&&r[e+3]==="T"&&r[e+4]==="T"&&r[e+5]==="L"&&r[e+6]==="I"&&r[e+7]==="S"&&r[e+8]==="T"};var TZe=function TZe(r,e){return r[e+1]==="!"&&r[e+2]==="N"&&r[e+3]==="O"&&r[e+4]==="T"&&r[e+5]==="A"&&r[e+6]==="T"&&r[e+7]==="I"&&r[e+8]==="O"&&r[e+9]==="N"};var AZe=function AZe(r){if(yZe.isName(r))return r;throw new Error("Invalid entity name ".concat(r))};var yZe=fv();CJ.exports=bZe});var LJ=g(function(gCr,kJ){var PZe=function PZe(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(e=Object.assign({},IZe,e),!r||typeof r!="string")return r;var t=r.trim();if(e.skipLike!==void 0&&e.skipLike.test(t))return r;if(r==="0")return 0;if(e.hex&&OZe.test(t))return NZe(t,16);if(t.search(/[eE]/)!==-1){var n=t.match(/^([-\+])?(0*)([0-9]*(\.[0-9]*)?[eE][-\+]?[0-9]+)$/);if(n){if(e.leadingZeros)t=(n[1]||"")+n[3];else if(!(n[2]==="0"&&n[3][0]==="."))return r;return e.eNotation?Number(t):r}else return r}else{var n1=RZe.exec(t);if(n1){var i=n1[1],a=n1[2],o=CZe(n1[3]);if(!e.leadingZeros&&a.length>0&&i&&t[2]!==".")return r;if(!e.leadingZeros&&a.length>0&&!i&&t[1]!==".")return r;if(e.leadingZeros&&a===r)return 0;{var s=Number(t),u=""+s;return u.search(/[eE]/)!==-1?e.eNotation?s:r:t.indexOf(".")!==-1?u==="0"&&o===""||u===o||i&&u==="-"+o?s:r:a?o===u||i+o===u?s:r:t===u||t===i+u?s:r}}else return r}};var CZe=function CZe(r){return r&&r.indexOf(".")!==-1&&(r=r.replace(/0+$/,""),r==="."?r="0":r[0]==="."?r="0"+r:r[r.length-1]==="."&&(r=r.substr(0,r.length-1))),r};var NZe=function NZe(r,e){if(parseInt)return parseInt(r,e);if(Number.parseInt)return Number.parseInt(r,e);if(window&&window.parseInt)return window.parseInt(r,e);throw new Error("parseInt, Number.parseInt, window.parseInt are not supported")};var OZe=/^[-+]?0x[a-fA-F0-9]+$/,RZe=/^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/,IZe={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};kJ.exports=PZe});var rT=g(function(vCr,DJ){var kZe=function kZe(r){return typeof r=="function"?r:Array.isArray(r)?function(e){var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;try{for(var _iterator=r[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var t=_step.value;if(typeof t=="string"&&e===t||_instanceof(t,RegExp)&&t.test(e))return!0}}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}}:function(){return!1}};DJ.exports=kZe});var FJ=g(function(mCr,MJ){"use strict";var MZe=function MZe(r){var e=Object.keys(r);for(var t=0;t<e.length;t++){var n=e[t];this.lastEntities[n]={regex:new RegExp("&"+n+";","g"),val:r[n]}}};var FZe=function FZe(r,e,t,n,i,a,o){if(r!==void 0&&(this.options.trimValues&&!n&&(r=r.trim()),r.length>0)){o||(r=this.replaceEntitiesValue(r));var s=this.options.tagValueProcessor(e,r,t,i,a);return s==null?r:(typeof s==="undefined"?"undefined":_type_of(s))!=(typeof r==="undefined"?"undefined":_type_of(r))||s!==r?s:this.options.trimValues?iT(r,this.options.parseTagValue,this.options.numberParseOptions):r.trim()===r?iT(r,this.options.parseTagValue,this.options.numberParseOptions):r}};var BZe=function BZe(r){if(this.options.removeNSPrefix){var e=r.split(":"),t=r.charAt(0)==="/"?"/":"";if(e[0]==="xmlns")return"";e.length===2&&(r=t+e[1])}return r};var jZe=function jZe(r,e,t){if(this.options.ignoreAttributes!==!0&&typeof r=="string"){var n=WJ.getAllMatches(r,UZe),i=n.length,a={};for(var o=0;o<i;o++){var s=this.resolveNameSpace(n[o][1]);if(this.ignoreAttributesFn(s,e))continue;var u=n[o][4],c=this.options.attributeNamePrefix+s;if(s.length)if(this.options.transformAttributeName&&(c=this.options.transformAttributeName(c)),c==="__proto__"&&(c="#__proto__"),u!==void 0){this.options.trimValues&&(u=u.trim()),u=this.replaceEntitiesValue(u);var l=this.options.attributeValueProcessor(s,u,e);l==null?a[c]=u:(typeof l==="undefined"?"undefined":_type_of(l))!=(typeof u==="undefined"?"undefined":_type_of(u))||l!==u?a[c]=l:a[c]=iT(u,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&(a[c]=!0)}if(!Object.keys(a).length)return;if(this.options.attributesGroupName){var o1={};return o1[this.options.attributesGroupName]=a,o1}return a}};var VZe=function VZe(r,e,t){var n=this.options.updateTag(e.tagname,t,e[":@"]);n===!1||(typeof n=="string"&&(e.tagname=n),r.addChild(e))};var zZe=function zZe(r,e,t,n){return r&&(n===void 0&&(n=e.child.length===0),r=this.parseTextData(r,e.tagname,t,!1,e[":@"]?Object.keys(e[":@"]).length!==0:!1,n),r!==void 0&&r!==""&&e.add(this.options.textNodeName,r),r=""),r};var KZe=function KZe(r,e,t){var n="*."+t;for(var i in r){var a=r[i];if(n===a||e===a)return!0}return!1};var HZe=function HZe(r,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:">";var n,i="";for(var a=e;a<r.length;a++){var o=r[a];if(n)o===n&&(n="");else if(o==='"'||o==="'")n=o;else if(o===t[0])if(t[1]){if(r[a+1]===t[1])return{data:i,index:a}}else return{data:i,index:a};else o===" "&&(o=" ");i+=o}};var qs=function qs(r,e,t,n){var i=r.indexOf(e,t);if(i===-1)throw new Error(n);return i+e.length-1};var nT=function nT(r,e,t){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:">";var i=HZe(r,e+1,n);if(!i)return;var a=i.data,o=i.index,s=a.search(/\s/),u=a,c=!0;s!==-1&&(u=a.substring(0,s),a=a.substring(s+1).trimStart());var l=u;if(t){var f=u.indexOf(":");f!==-1&&(u=u.substr(f+1),c=u!==i.data.substr(f+1))}return{tagName:u,tagExp:a,closeIndex:o,attrExpPresent:c,rawTagName:l}};var QZe=function QZe(r,e,t){var n=t,i=1;for(;t<r.length;t++)if(r[t]==="<")if(r[t+1]==="/"){var a=qs(r,">",t,"".concat(e," is not closed"));if(r.substring(t+2,a).trim()===e&&(i--,i===0))return{tagContent:r.substring(n,t),i:a};t=a}else if(r[t+1]==="?")t=qs(r,"?>",t+1,"StopNode is not closed.");else if(r.substr(t+1,3)==="!--")t=qs(r,"-->",t+3,"StopNode is not closed.");else if(r.substr(t+1,2)==="![")t=qs(r,"]]>",t,"StopNode is not closed.")-2;else{var a2=nT(r,t,">");a2&&((a2&&a2.tagName)===e&&a2.tagExp[a2.tagExp.length-1]!=="/"&&i++,t=a2.closeIndex)}};var iT=function iT(r,e,t){if(e&&typeof r=="string"){var n=r.trim();return n==="true"?!0:n==="false"?!1:DZe(r,t)}else return WJ.isExist(r)?r:""};var WJ=fv(),Md=PJ(),LZe=NJ(),DZe=LJ(),WZe=rT(),tT=function tT(e){_class_call_check(this,tT);this.options=e,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"\xa2"},pound:{regex:/&(pound|#163);/g,val:"\xa3"},yen:{regex:/&(yen|#165);/g,val:"\xa5"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"\xa9"},reg:{regex:/&(reg|#174);/g,val:"\xae"},inr:{regex:/&(inr|#8377);/g,val:"₹"},num_dec:{regex:/&#([0-9]{1,7});/g,val:function(t,n){return String.fromCharCode(Number.parseInt(n,10))}},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:function(t,n){return String.fromCharCode(Number.parseInt(n,16))}}},this.addExternalEntities=MZe,this.parseXml=$Ze,this.parseTextData=FZe,this.resolveNameSpace=BZe,this.buildAttributesMap=jZe,this.isItStopNode=KZe,this.replaceEntitiesValue=GZe,this.readStopNodeData=QZe,this.saveTextToParentTag=zZe,this.addChild=VZe,this.ignoreAttributesFn=WZe(this.options.ignoreAttributes)};var UZe=new RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?","gm");var $Ze=function $Ze(r){r=r.replace(/\r\n?/g,"\n");var e=new Md("!xml"),t=e,n="",i="";for(var a=0;a<r.length;a++)if(r[a]==="<")if(r[a+1]==="/"){var s=qs(r,">",a,"Closing Tag is not closed."),u=r.substring(a+2,s).trim();if(this.options.removeNSPrefix){var f=u.indexOf(":");f!==-1&&(u=u.substr(f+1))}this.options.transformTagName&&(u=this.options.transformTagName(u)),t&&(n=this.saveTextToParentTag(n,t,i));var c=i.substring(i.lastIndexOf(".")+1);if(u&&this.options.unpairedTags.indexOf(u)!==-1)throw new Error("Unpaired tag can not be used as closing tag: </".concat(u,">"));var l=0;c&&this.options.unpairedTags.indexOf(c)!==-1?(l=i.lastIndexOf(".",i.lastIndexOf(".")-1),this.tagsNodeStack.pop()):l=i.lastIndexOf("."),i=i.substring(0,l),t=this.tagsNodeStack.pop(),n="",a=s}else if(r[a+1]==="?"){var s1=nT(r,a,!1,"?>");if(!s1)throw new Error("Pi Tag is not closed.");if(n=this.saveTextToParentTag(n,t,i),!(this.options.ignoreDeclaration&&s1.tagName==="?xml"||this.options.ignorePiTags)){var u1=new Md(s1.tagName);u1.add(this.options.textNodeName,""),s1.tagName!==s1.tagExp&&s1.attrExpPresent&&(u1[":@"]=this.buildAttributesMap(s1.tagExp,i,s1.tagName)),this.addChild(t,u1,i)}a=s1.closeIndex+1}else if(r.substr(a+1,3)==="!--"){var s2=qs(r,"-->",a+4,"Comment is not closed.");if(this.options.commentPropName){var u2=r.substring(a+4,s2-2);n=this.saveTextToParentTag(n,t,i),t.add(this.options.commentPropName,[_define_property({},this.options.textNodeName,u2)])}a=s2}else if(r.substr(a+1,2)==="!D"){var s4=LZe(r,a);this.docTypeEntities=s4.entities,a=s4.i}else if(r.substr(a+1,2)==="!["){var s5=qs(r,"]]>",a,"CDATA is not closed.")-2,u3=r.substring(a+9,s5);n=this.saveTextToParentTag(n,t,i);var c1=this.parseTextData(u3,t.tagname,i,!0,!1,!0,!0);c1==null&&(c1=""),this.options.cdataPropName?t.add(this.options.cdataPropName,[_define_property({},this.options.textNodeName,u3)]):t.add(this.options.textNodeName,c1),a=s5+2}else{var s6=nT(r,a,this.options.removeNSPrefix),u4=s6.tagName,c2=s6.rawTagName,l1=s6.tagExp,f1=s6.attrExpPresent,d=s6.closeIndex;this.options.transformTagName&&(u4=this.options.transformTagName(u4)),t&&n&&t.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,t,i,!1));var p=t;if(p&&this.options.unpairedTags.indexOf(p.tagname)!==-1&&(t=this.tagsNodeStack.pop(),i=i.substring(0,i.lastIndexOf("."))),u4!==e.tagname&&(i+=i?"."+u4:u4),this.isItStopNode(this.options.stopNodes,i,u4)){var x="";if(l1.length>0&&l1.lastIndexOf("/")===l1.length-1)u4[u4.length-1]==="/"?(u4=u4.substr(0,u4.length-1),i=i.substr(0,i.length-1),l1=u4):l1=l1.substr(0,l1.length-1),a=s6.closeIndex;else if(this.options.unpairedTags.indexOf(u4)!==-1)a=s6.closeIndex;else{var v=this.readStopNodeData(r,c2,d+1);if(!v)throw new Error("Unexpected end of ".concat(c2));a=v.i,x=v.tagContent}var h=new Md(u4);u4!==l1&&f1&&(h[":@"]=this.buildAttributesMap(l1,i,u4)),x&&(x=this.parseTextData(x,u4,i,!0,f1,!0,!0)),i=i.substr(0,i.lastIndexOf(".")),h.add(this.options.textNodeName,x),this.addChild(t,h,i)}else{if(l1.length>0&&l1.lastIndexOf("/")===l1.length-1){u4[u4.length-1]==="/"?(u4=u4.substr(0,u4.length-1),i=i.substr(0,i.length-1),l1=u4):l1=l1.substr(0,l1.length-1),this.options.transformTagName&&(u4=this.options.transformTagName(u4));var x2=new Md(u4);u4!==l1&&f1&&(x2[":@"]=this.buildAttributesMap(l1,i,u4)),this.addChild(t,x2,i),i=i.substr(0,i.lastIndexOf("."))}else{var x3=new Md(u4);this.tagsNodeStack.push(t),u4!==l1&&f1&&(x3[":@"]=this.buildAttributesMap(l1,i,u4)),this.addChild(t,x3,i),t=x3}n="",a=d}}else n+=r[a];return e.child};var GZe=function GZe(r){if(this.options.processEntities){for(var e in this.docTypeEntities){var t=this.docTypeEntities[e];r=r.replace(t.regx,t.val)}for(var e1 in this.lastEntities){var t1=this.lastEntities[e1];r=r.replace(t1.regex,t1.val)}if(this.options.htmlEntities)for(var e2 in this.htmlEntities){var t2=this.htmlEntities[e2];r=r.replace(t2.regex,t2.val)}r=r.replace(this.ampEntity.regex,this.ampEntity.val)}return r};MJ.exports=tT});var jJ=g(function(UJ){"use strict";var XZe=function XZe(r,e){return BJ(r,e)};var YZe=function YZe(r){var e=Object.keys(r);for(var t=0;t<e.length;t++){var n=e[t];if(n!==":@")return n}};var JZe=function JZe(r,e,t,n){if(e){var i=Object.keys(e),a=i.length;for(var o=0;o<a;o++){var s=i[o];n.isArray(s,t+"."+s,!0,!0)?r[s]=[e[s]]:r[s]=e[s]}}};var ZZe=function ZZe(r,e){var t=e.textNodeName,n=Object.keys(r).length;return!!(n===0||n===1&&(r[t]||typeof r[t]=="boolean"||r[t]===0))};function BJ(r,e,t){var n,i={};for(var a=0;a<r.length;a++){var o=r[a],s=YZe(o),u="";if(t===void 0?u=s:u=t+"."+s,s===e.textNodeName)n===void 0?n=o[s]:n+=""+o[s];else{if(s===void 0)continue;if(o[s]){var c=BJ(o[s],e,u),l=ZZe(c,e);o[":@"]?JZe(c,o[":@"],u,e):Object.keys(c).length===1&&c[e.textNodeName]!==void 0&&!e.alwaysCreateTextNode?c=c[e.textNodeName]:Object.keys(c).length===0&&(e.alwaysCreateTextNode?c[e.textNodeName]="":c=""),i[s]!==void 0&&i.hasOwnProperty(s)?(Array.isArray(i[s])||(i[s]=[i[s]]),i[s].push(c)):e.isArray(s,u,l)?i[s]=[c]:i[s]=c}}}return typeof n=="string"?n.length>0&&(i[e.textNodeName]=n):n!==void 0&&(i[e.textNodeName]=n),i}UJ.prettify=XZe});var VJ=g(function(bCr,$J){var _RJ=RJ(),eer=_RJ.buildOptions,rer=FJ(),_jJ=jJ(),ter=_jJ.prettify,ner=Jq(),aT=/*#__PURE__*/function(){"use strict";function aT(e){_class_call_check(this,aT);this.externalEntities={},this.options=eer(e)}_create_class(aT,[{key:"parse",value:function parse(e,t){if(typeof e!="string")if(e.toString)e=e.toString();else throw new Error("XML data is accepted in String or Bytes[] form.");if(t){t===!0&&(t={});var a=ner.validate(e,t);if(a!==!0)throw Error("".concat(a.err.msg,":").concat(a.err.line,":").concat(a.err.col))}var n=new rer(this.options);n.addExternalEntities(this.externalEntities);var i=n.parseXml(e);return this.options.preserveOrder||i===void 0?i:ter(i,this.options)}},{key:"addEntity",value:function addEntity(e,t){if(t.indexOf("&")!==-1)throw new Error("Entity value can't have '&'");if(e.indexOf("&")!==-1||e.indexOf(";")!==-1)throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '&#xD;'");if(t==="&")throw new Error("An entity with value '&' is not permitted");this.externalEntities[e]=t}}]);return aT}();$J.exports=aT});var QJ=g(function(_Cr,HJ){var aer=function aer(r,e){var t="";return e.format&&e.indentBy.length>0&&(t=ier),zJ(r,e,"",t)};var oer=function oer(r){var e=Object.keys(r);for(var t=0;t<e.length;t++){var n=e[t];if(r.hasOwnProperty(n)&&n!==":@")return n}};var GJ=function GJ(r,e){var t="";if(r&&!e.ignoreAttributes)for(var n in r){if(!r.hasOwnProperty(n))continue;var i=e.attributeValueProcessor(n,r[n]);i=KJ(i,e),i===!0&&e.suppressBooleanAttributes?t+=" ".concat(n.substr(e.attributeNamePrefix.length)):t+=" ".concat(n.substr(e.attributeNamePrefix.length),'="').concat(i,'"')}return t};var ser=function ser(r,e){r=r.substr(0,r.length-e.textNodeName.length-1);var t=r.substr(r.lastIndexOf(".")+1);for(var n in e.stopNodes)if(e.stopNodes[n]===r||e.stopNodes[n]==="*."+t)return!0;return!1};var KJ=function KJ(r,e){if(r&&r.length>0&&e.processEntities)for(var t=0;t<e.entities.length;t++){var n=e.entities[t];r=r.replace(n.regex,n.val)}return r};var ier="\n";function zJ(r,e,t,n){var i="",a=!1;for(var o=0;o<r.length;o++){var s=r[o],u=oer(s);if(u===void 0)continue;var c="";if(t.length===0?c=u:c="".concat(t,".").concat(u),u===e.textNodeName){var x=s[u];ser(c,e)||(x=e.tagValueProcessor(u,x),x=KJ(x,e)),a&&(i+=n),i+=x,a=!1;continue}else if(u===e.cdataPropName){a&&(i+=n),i+="<![CDATA[".concat(s[u][0][e.textNodeName],"]]>"),a=!1;continue}else if(u===e.commentPropName){i+=n+"<!--".concat(s[u][0][e.textNodeName],"-->"),a=!0;continue}else if(u[0]==="?"){var x2=GJ(s[":@"],e),h=u==="?xml"?"":n,v=s[u][0][e.textNodeName];v=v.length!==0?" "+v:"",i+=h+"<".concat(u).concat(v).concat(x2,"?>"),a=!0;continue}var l=n;l!==""&&(l+=e.indentBy);var f=GJ(s[":@"],e),d=n+"<".concat(u).concat(f),p=zJ(s[u],e,c,l);e.unpairedTags.indexOf(u)!==-1?e.suppressUnpairedNode?i+=d+">":i+=d+"/>":(!p||p.length===0)&&e.suppressEmptyNode?i+=d+"/>":p&&p.endsWith(">")?i+=d+">".concat(p).concat(n,"</").concat(u,">"):(i+=d+">",p&&n!==""&&(p.includes("/>")||p.includes("</"))?i+=n+e.indentBy+p+n:i+=p,i+="</".concat(u,">")),a=!0}return i}HJ.exports=aer});var YJ=g(function(wCr,XJ){"use strict";var go=function go(r){this.options=Object.assign({},ler,r),this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=cer(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=per),this.processTextOrObjNode=fer,this.options.format?(this.indentate=der,this.tagEndChar=">\n",this.newLine="\n"):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")};var fer=function fer(r,e,t,n){var i=this.j2x(r,t+1,n.concat(e));return r[this.options.textNodeName]!==void 0&&Object.keys(r).length===1?this.buildTextValNode(r[this.options.textNodeName],e,i.attrStr,t):this.buildObjectNode(i.val,e,i.attrStr,t)};var der=function der(r){return this.options.indentBy.repeat(r)};var per=function per(r){return r.startsWith(this.options.attributeNamePrefix)&&r!==this.options.textNodeName?r.substr(this.attrPrefixLen):!1};var uer=QJ(),cer=rT(),ler={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function tagValueProcessor(r,e){return e},attributeValueProcessor:function attributeValueProcessor(r,e){return e},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1};go.prototype.build=function(r){return this.options.preserveOrder?uer(r,this.options):(Array.isArray(r)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(r=_define_property({},this.options.arrayNodeName,r)),this.j2x(r,0,[]).val)};go.prototype.j2x=function(r,e,t){var n="",i="",a=t.join(".");for(var o in r)if(Object.prototype.hasOwnProperty.call(r,o))if(typeof r[o]=="undefined")this.isAttribute(o)&&(i+="");else if(r[o]===null)this.isAttribute(o)||o===this.options.cdataPropName?i+="":o[0]==="?"?i+=this.indentate(e)+"<"+o+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+o+"/"+this.tagEndChar;else if(_instanceof(r[o],Date))i+=this.buildTextValNode(r[o],o,"",e);else if(_type_of(r[o])!="object"){var s=this.isAttribute(o);if(s&&!this.ignoreAttributesFn(s,a))n+=this.buildAttrPairStr(s,""+r[o]);else if(!s)if(o===this.options.textNodeName){var u=this.options.tagValueProcessor(o,""+r[o]);i+=this.replaceEntitiesValue(u)}else i+=this.buildTextValNode(r[o],o,"",e)}else if(Array.isArray(r[o])){var s1=r[o].length,u1="",c="";for(var l=0;l<s1;l++){var f=r[o][l];if(typeof f!="undefined")if(f===null)o[0]==="?"?i+=this.indentate(e)+"<"+o+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+o+"/"+this.tagEndChar;else if((typeof f==="undefined"?"undefined":_type_of(f))=="object")if(this.options.oneListGroup){var d=this.j2x(f,e+1,t.concat(o));u1+=d.val,this.options.attributesGroupName&&f.hasOwnProperty(this.options.attributesGroupName)&&(c+=d.attrStr)}else u1+=this.processTextOrObjNode(f,o,e,t);else if(this.options.oneListGroup){var d2=this.options.tagValueProcessor(o,f);d2=this.replaceEntitiesValue(d2),u1+=d2}else u1+=this.buildTextValNode(f,o,"",e)}this.options.oneListGroup&&(u1=this.buildObjectNode(u1,o,c,e)),i+=u1}else if(this.options.attributesGroupName&&o===this.options.attributesGroupName){var s2=Object.keys(r[o]),u2=s2.length;for(var c1=0;c1<u2;c1++)n+=this.buildAttrPairStr(s2[c1],""+r[o][s2[c1]])}else i+=this.processTextOrObjNode(r[o],o,e,t);return{attrStr:n,val:i}};go.prototype.buildAttrPairStr=function(r,e){return e=this.options.attributeValueProcessor(r,""+e),e=this.replaceEntitiesValue(e),this.options.suppressBooleanAttributes&&e==="true"?" "+r:" "+r+'="'+e+'"'};go.prototype.buildObjectNode=function(r,e,t,n){if(r==="")return e[0]==="?"?this.indentate(n)+"<"+e+t+"?"+this.tagEndChar:this.indentate(n)+"<"+e+t+this.closeTag(e)+this.tagEndChar;{var i="</"+e+this.tagEndChar,a="";return e[0]==="?"&&(a="?",i=""),(t||t==="")&&r.indexOf("<")===-1?this.indentate(n)+"<"+e+t+a+">"+r+i:this.options.commentPropName!==!1&&e===this.options.commentPropName&&a.length===0?this.indentate(n)+"<!--".concat(r,"-->")+this.newLine:this.indentate(n)+"<"+e+t+a+this.tagEndChar+r+this.indentate(n)+i}};go.prototype.closeTag=function(r){var e="";return this.options.unpairedTags.indexOf(r)!==-1?this.options.suppressUnpairedNode||(e="/"):this.options.suppressEmptyNode?e="/":e="></".concat(r),e};go.prototype.buildTextValNode=function(r,e,t,n){if(this.options.cdataPropName!==!1&&e===this.options.cdataPropName)return this.indentate(n)+"<![CDATA[".concat(r,"]]>")+this.newLine;if(this.options.commentPropName!==!1&&e===this.options.commentPropName)return this.indentate(n)+"<!--".concat(r,"-->")+this.newLine;if(e[0]==="?")return this.indentate(n)+"<"+e+t+"?"+this.tagEndChar;{var i=this.options.tagValueProcessor(e,r);return i=this.replaceEntitiesValue(i),i===""?this.indentate(n)+"<"+e+t+this.closeTag(e)+this.tagEndChar:this.indentate(n)+"<"+e+t+">"+i+"</"+e+this.tagEndChar}};go.prototype.replaceEntitiesValue=function(r){if(r&&r.length>0&&this.options.processEntities)for(var e=0;e<this.options.entities.length;e++){var t=this.options.entities[e];r=r.replace(t.regex,t.val)}return r};XJ.exports=go});var dv=g(function(SCr,JJ){"use strict";var her=Jq(),xer=VJ(),ger=YJ();JJ.exports={XMLParser:xer,XMLValidator:her,XMLBuilder:ger}});var XZ=g(function(c8r,QZ){QZ.exports=function(r,e){if(typeof r!="string")throw new TypeError("Expected a string");for(var t=String(r),n="",i=e?!!e.extended:!1,a=e?!!e.globstar:!1,o=!1,s=e&&typeof e.flags=="string"?e.flags:"",u,c=0,l=t.length;c<l;c++)switch(u=t[c],u){case"/":case"$":case"^":case"+":case".":case"(":case")":case"=":case"!":case"|":n+="\\"+u;break;case"?":if(i){n+=".";break}case"[":case"]":if(i){n+=u;break}case"{":if(i){o=!0,n+="(";break}case"}":if(i){o=!1,n+=")";break}case",":if(o){n+="|";break}n+="\\"+u;break;case"*":for(var f=t[c-1],d=1;t[c+1]==="*";)d++,c++;var p=t[c+1];if(!a)n+=".*";else{var x=d>1&&(f==="/"||f===void 0)&&(p==="/"||p===void 0);x?(n+="((?:[^/]*(?:/|$))*)",c++):n+="([^/]*)"}break;default:n+=u}return(!s||!~s.indexOf("g"))&&(n="^"+n+"$"),new RegExp(n,s)}});var ca=g(function(wT){"use strict";wT.load=function(r,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var n,i,a;for(n in e)a=e[n],t[n]=(i=r[n])!=null?i:a;return t};wT.overwrite=function(r,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var n,i;for(n in r)i=r[n],e[n]!==void 0&&(t[n]=i);return t}});var ST=g(function(qNr,cee){"use strict";var uee;uee=/*#__PURE__*/function(){function uee(e,t){_class_call_check(this,uee);this.incr=e,this.decr=t,this._first=null,this._last=null,this.length=0}_create_class(uee,[{key:"push",value:function push(e){var t;this.length++,typeof this.incr=="function"&&this.incr(),t={value:e,prev:this._last,next:null},this._last!=null?(this._last.next=t,this._last=t):this._first=this._last=t}},{key:"shift",value:function shift(){var e;if(this._first!=null)return this.length--,typeof this.decr=="function"&&this.decr(),e=this._first.value,(this._first=this._first.next)!=null?this._first.prev=null:this._last=null,e}},{key:"first",value:function first(){if(this._first!=null)return this._first.value}},{key:"getArray",value:function getArray(){var e,t,n;for(e=this._first,n=[];e!=null;)n.push((t=e,e=e.next,t.value));return n}},{key:"forEachShift",value:function forEachShift(e){var t;for(t=this.shift();t!=null;)e(t),t=this.shift()}},{key:"debug",value:function debug(){var e,t,n,i,a;for(e=this._first,a=[];e!=null;)a.push((t=e,e=e.next,{value:t.value,prev:(n=t.prev)!=null?n.value:void 0,next:(i=t.next)!=null?i.value:void 0}));return a}}]);return uee}();cee.exports=uee});var Ps=g(function(ANr,pee){"use strict";var lee=function lee(r,e,t,n,i,a,o){try{var s=r[a](o),u=s.value}catch(c){t(c);return}s.done?e(u):Promise.resolve(u).then(n,i)};var fee=function fee(r){return function(){var e=this,t=arguments;return new Promise(function(n,i){var a=r.apply(e,t);function o(u){lee(a,n,i,o,s,"next",u)}function s(u){lee(a,n,i,o,s,"throw",u)}o(void 0)})}};var dee;dee=/*#__PURE__*/function(){function dee(e){var _this=this;var _this1=this;_class_call_check(this,dee);if(this.instance=e,this._events={},this.instance.on!=null||this.instance.once!=null||this.instance.removeAllListeners!=null)throw new Error("An Emitter already exists for this object");this.instance.on=function(t,n){return _this._addListener(t,"many",n)},this.instance.once=function(t,n){return _this._addListener(t,"once",n)},this.instance.removeAllListeners=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return t!=null?delete _this1._events[t]:_this1._events={}}}_create_class(dee,[{key:"_addListener",value:function _addListener(e,t,n){var i;return(i=this._events)[e]==null&&(i[e]=[]),this._events[e].push({cb:n,status:t}),this.instance}},{key:"listenerCount",value:function listenerCount(e){return this._events[e]!=null?this._events[e].length:0}},{key:"trigger",value:function trigger(e){for(var _len=arguments.length,t=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++){t[_key-1]=arguments[_key]}var n=this;return fee(function(){var i,a,_tmp,o;return _ts_generator(this,function(_state){switch(_state.label){case 0:_state.trys.push([0,4,,5]);e!=="debug"&&n.trigger("debug","Event triggered: ".concat(e),t);if(!(n._events[e]==null))return[3,1];_tmp=void 0;return[3,3];case 1:n._events[e]=n._events[e].filter(function(o){return o.status!=="none"}),a=n._events[e].map(function(){var _$o=fee(function(s){var u,c,_s1,_tmp,l;return _ts_generator(this,function(_state){switch(_state.label){case 0:if(!(s.status!=="none"))return[3,6];s.status==="once"&&(s.status="none");_state.label=1;case 1:_state.trys.push([1,5,,6]);c=typeof s.cb=="function"?(_s1=s).cb.apply(_s1,_to_consumable_array(t)):void 0;if(!(typeof(c!=null?c.then:void 0)=="function"))return[3,3];return[4,c];case 2:_tmp=_state.sent();return[3,4];case 3:_tmp=c;_state.label=4;case 4:return[2,_tmp];case 5:l=_state.sent();return[2,(u=l,n.trigger("error",u),null)];case 6:return[2]}})});return function(s){return _$o.apply(this,arguments)}}());return[4,Promise.all(a)];case 2:_tmp=_state.sent().find(function(o){return o!=null});_state.label=3;case 3:return[2,_tmp];case 4:o=_state.sent();return[2,(i=o,n.trigger("error",i),null)];case 5:return[2]}})})()}}]);return dee}();pee.exports=dee});var mee=g(function(RNr,vee){"use strict";var hee,xee,gee;hee=ST();xee=Ps();gee=/*#__PURE__*/function(){function gee(e){_class_call_check(this,gee);var t;this.Events=new xee(this),this._length=0,this._lists=(function(){var _this=this;var n,i,a;for(a=[],t=n=1,i=e;1<=i?n<=i:n>=i;t=1<=i?++n:--n)a.push(new hee(function(){return _this.incr()},function(){return _this.decr()}));return a}).call(this)}_create_class(gee,[{key:"incr",value:function incr(){if(this._length++===0)return this.Events.trigger("leftzero")}},{key:"decr",value:function decr(){if(--this._length===0)return this.Events.trigger("zero")}},{key:"push",value:function push(e){return this._lists[e.options.priority].push(e)}},{key:"queued",value:function queued(e){return e!=null?this._lists[e].length:this._length}},{key:"shiftAll",value:function shiftAll(e){return this._lists.forEach(function(t){return t.forEachShift(e)})}},{key:"getFirst",value:function getFirst(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this._lists;var t,n,i;for(t=0,n=e.length;t<n;t++)if(i=e[t],i.length>0)return i;return[]}},{key:"shiftLastFrom",value:function shiftLastFrom(e){return this.getFirst(this._lists.slice(e).reverse()).shift()}}]);return gee}();vee.exports=gee});var Zc=g(function(PNr,bee){"use strict";var yee;yee=/*#__PURE__*/function(Error1){_inherits(yee,Error1);function yee(){_class_call_check(this,yee);return _call_super(this,yee,arguments)}return yee}(_wrap_native_super(Error));bee.exports=yee});var Aee=g(function(NNr,Tee){"use strict";var _ee=function _ee(r,e,t,n,i,a,o){try{var s=r[a](o),u=s.value}catch(c){t(c);return}s.done?e(u):Promise.resolve(u).then(n,i)};var wee=function wee(r){return function(){var e=this,t=arguments;return new Promise(function(n,i){var a=r.apply(e,t);function o(u){_ee(a,n,i,o,s,"next",u)}function s(u){_ee(a,n,i,o,s,"throw",u)}o(void 0)})}};var Pv,See,Eee,ET,qee;ET=10;See=5;qee=ca();Pv=Zc();Eee=/*#__PURE__*/function(){function Eee(e,t,n,i,a,o,s,u){var _this=this;_class_call_check(this,Eee);this.task=e,this.args=t,this.rejectOnDrop=a,this.Events=o,this._states=s,this.Promise=u,this.options=qee.load(n,i),this.options.priority=this._sanitizePriority(this.options.priority),this.options.id===i.id&&(this.options.id="".concat(this.options.id,"-").concat(this._randomIndex())),this.promise=new this.Promise(function(c,l){_this._resolve=c,_this._reject=l}),this.retryCount=0}_create_class(Eee,[{key:"_sanitizePriority",value:function _sanitizePriority(e){var t;return t=~~e!==e?See:e,t<0?0:t>ET-1?ET-1:t}},{key:"_randomIndex",value:function _randomIndex(){return Math.random().toString(36).slice(2)}},{key:"doDrop",value:function doDrop(){var _ref=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=_ref.error,tmp=_ref.message,t=tmp===void 0?"This job has been dropped by Bottleneck":tmp;return this._states.remove(this.options.id)?(this.rejectOnDrop&&this._reject(e!=null?e:new Pv(t)),this.Events.trigger("dropped",{args:this.args,options:this.options,task:this.task,promise:this.promise}),!0):!1}},{key:"_assertStatus",value:function _assertStatus(e){var t;if(t=this._states.jobStatus(this.options.id),!(t===e||e==="DONE"&&t===null))throw new Pv("Invalid job status ".concat(t,", expected ").concat(e,". Please open an issue at https://github.com/SGrondin/bottleneck/issues"))}},{key:"doReceive",value:function doReceive(){return this._states.start(this.options.id),this.Events.trigger("received",{args:this.args,options:this.options})}},{key:"doQueue",value:function doQueue(e,t){return this._assertStatus("RECEIVED"),this._states.next(this.options.id),this.Events.trigger("queued",{args:this.args,options:this.options,reachedHWM:e,blocked:t})}},{key:"doRun",value:function doRun(){return this.retryCount===0?(this._assertStatus("QUEUED"),this._states.next(this.options.id)):this._assertStatus("EXECUTING"),this.Events.trigger("scheduled",{args:this.args,options:this.options})}},{key:"doExecute",value:function doExecute(e,t,n,i){var a=this;return wee(function(){var o,s,u,_e,_a,c;return _ts_generator(this,function(_state){switch(_state.label){case 0:a.retryCount===0?(a._assertStatus("RUNNING"),a._states.next(a.options.id)):a._assertStatus("EXECUTING"),s={args:a.args,options:a.options,retryCount:a.retryCount},a.Events.trigger("executing",s);_state.label=1;case 1:_state.trys.push([1,5,,6]);return[4,e!=null?(_e=e).schedule.apply(_e,[a.options,a.task].concat(_to_consumable_array(a.args))):(_a=a).task.apply(_a,_to_consumable_array(a.args))];case 2:if(!(u=_state.sent(),t()))return[3,4];a.doDone(s);return[4,i(a.options,s)];case 3:return[2,(_state.sent(),a._assertStatus("DONE"),a._resolve(u))];case 4:return[3,6];case 5:c=_state.sent();return[2,(o=c,a._onFailure(o,s,t,n,i))];case 6:return[2]}})})()}},{key:"doExpire",value:function doExpire(e,t,n){var i,a;return this._states.jobStatus(this.options.id==="RUNNING")&&this._states.next(this.options.id),this._assertStatus("EXECUTING"),a={args:this.args,options:this.options,retryCount:this.retryCount},i=new Pv("This job timed out after ".concat(this.options.expiration," ms.")),this._onFailure(i,a,e,t,n)}},{key:"_onFailure",value:function _onFailure(e,t,n,i,a){var o=this;return wee(function(){var s,u,_tmp;return _ts_generator(this,function(_state){switch(_state.label){case 0:if(!n())return[3,5];return[4,o.Events.trigger("failed",e,t)];case 1:s=_state.sent();if(!(s!=null))return[3,2];_tmp=(u=~~s,o.Events.trigger("retry","Retrying ".concat(o.options.id," after ").concat(u," ms"),t),o.retryCount++,i(u));return[3,4];case 2:o.doDone(t);return[4,a(o.options,t)];case 3:_tmp=(_state.sent(),o._assertStatus("DONE"),o._reject(e));_state.label=4;case 4:return[2,_tmp];case 5:return[2]}})})()}},{key:"doDone",value:function doDone(e){return this._assertStatus("EXECUTING"),this._states.next(this.options.id),this.Events.trigger("done",e)}}]);return Eee}();Tee.exports=Eee});var Cee=g(function(LNr,Pee){"use strict";var Oee=function Oee(r,e,t,n,i,a,o){try{var s=r[a](o),u=s.value}catch(c){t(c);return}s.done?e(u):Promise.resolve(u).then(n,i)};var fn=function fn(r){return function(){var e=this,t=arguments;return new Promise(function(n,i){var a=r.apply(e,t);function o(u){Oee(a,n,i,o,s,"next",u)}function s(u){Oee(a,n,i,o,s,"throw",u)}o(void 0)})}};var Ree,Iee,qT;qT=ca();Ree=Zc();Iee=/*#__PURE__*/function(){function Iee(e,t,n){_class_call_check(this,Iee);this.instance=e,this.storeOptions=t,this.clientId=this.instance._randomIndex(),qT.load(n,n,this),this._nextRequest=this._lastReservoirRefresh=this._lastReservoirIncrease=Date.now(),this._running=0,this._done=0,this._unblockTime=0,this.ready=this.Promise.resolve(),this.clients={},this._startHeartbeat()}_create_class(Iee,[{key:"_startHeartbeat",value:function _startHeartbeat(){var _this=this;var e;return this.heartbeat==null&&(this.storeOptions.reservoirRefreshInterval!=null&&this.storeOptions.reservoirRefreshAmount!=null||this.storeOptions.reservoirIncreaseInterval!=null&&this.storeOptions.reservoirIncreaseAmount!=null)?typeof(e=this.heartbeat=setInterval(function(){var t,n,i,a,o;if(a=Date.now(),_this.storeOptions.reservoirRefreshInterval!=null&&a>=_this._lastReservoirRefresh+_this.storeOptions.reservoirRefreshInterval&&(_this._lastReservoirRefresh=a,_this.storeOptions.reservoir=_this.storeOptions.reservoirRefreshAmount,_this.instance._drainAll(_this.computeCapacity())),_this.storeOptions.reservoirIncreaseInterval!=null&&a>=_this._lastReservoirIncrease+_this.storeOptions.reservoirIncreaseInterval){var s=_this.storeOptions;if(t=s.reservoirIncreaseAmount,i=s.reservoirIncreaseMaximum,o=s.reservoir,_this._lastReservoirIncrease=a,n=i!=null?Math.min(t,i-o):t,n>0)return _this.storeOptions.reservoir+=n,_this.instance._drainAll(_this.computeCapacity())}},this.heartbeatInterval)).unref=="function"?e.unref():void 0:clearInterval(this.heartbeat)}},{key:"__publish__",value:function __publish__(e){var t=this;return fn(function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,t.yieldLoop()];case 1:return[2,(_state.sent(),t.instance.Events.trigger("message",e.toString()))]}})})()}},{key:"__disconnect__",value:function __disconnect__(e){var t=this;return fn(function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,t.yieldLoop()];case 1:return[2,(_state.sent(),clearInterval(t.heartbeat),t.Promise.resolve())]}})})()}},{key:"yieldLoop",value:function yieldLoop(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return new this.Promise(function(t,n){return setTimeout(t,e)})}},{key:"computePenalty",value:function computePenalty(){var e;return(e=this.storeOptions.penalty)!=null?e:15*this.storeOptions.minTime||5e3}},{key:"__updateSettings__",value:function __updateSettings__(e){var t=this;return fn(function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,t.yieldLoop()];case 1:return[2,(_state.sent(),qT.overwrite(e,e,t.storeOptions),t._startHeartbeat(),t.instance._drainAll(t.computeCapacity()),!0)]}})})()}},{key:"__running__",value:function __running__(){var e=this;return fn(function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,e.yieldLoop()];case 1:return[2,(_state.sent(),e._running)]}})})()}},{key:"__queued__",value:function __queued__(){var e=this;return fn(function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,e.yieldLoop()];case 1:return[2,(_state.sent(),e.instance.queued())]}})})()}},{key:"__done__",value:function __done__(){var e=this;return fn(function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,e.yieldLoop()];case 1:return[2,(_state.sent(),e._done)]}})})()}},{key:"__groupCheck__",value:function __groupCheck__(e){var t=this;return fn(function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,t.yieldLoop()];case 1:return[2,(_state.sent(),t._nextRequest+t.timeout<e)]}})})()}},{key:"computeCapacity",value:function computeCapacity(){var e,t,n=this.storeOptions;return e=n.maxConcurrent,t=n.reservoir,e!=null&&t!=null?Math.min(e-this._running,t):e!=null?e-this._running:t!=null?t:null}},{key:"conditionsCheck",value:function conditionsCheck(e){var t;return t=this.computeCapacity(),t==null||e<=t}},{key:"__incrementReservoir__",value:function __incrementReservoir__(e){var t=this;return fn(function(){var n;return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,t.yieldLoop()];case 1:return[2,(_state.sent(),n=t.storeOptions.reservoir+=e,t.instance._drainAll(t.computeCapacity()),n)]}})})()}},{key:"__currentReservoir__",value:function __currentReservoir__(){var e=this;return fn(function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,e.yieldLoop()];case 1:return[2,(_state.sent(),e.storeOptions.reservoir)]}})})()}},{key:"isBlocked",value:function isBlocked(e){return this._unblockTime>=e}},{key:"check",value:function check(e,t){return this.conditionsCheck(e)&&this._nextRequest-t<=0}},{key:"__check__",value:function __check__(e){var t=this;return fn(function(){var n;return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,t.yieldLoop()];case 1:return[2,(_state.sent(),n=Date.now(),t.check(e,n))]}})})()}},{key:"__register__",value:function __register__(e,t,n){var i=this;return fn(function(){var a,o;return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,i.yieldLoop()];case 1:return[2,(_state.sent(),a=Date.now(),i.conditionsCheck(t)?(i._running+=t,i.storeOptions.reservoir!=null&&(i.storeOptions.reservoir-=t),o=Math.max(i._nextRequest-a,0),i._nextRequest=a+o+i.storeOptions.minTime,{success:!0,wait:o,reservoir:i.storeOptions.reservoir}):{success:!1})]}})})()}},{key:"strategyIsBlock",value:function strategyIsBlock(){return this.storeOptions.strategy===3}},{key:"__submit__",value:function __submit__(e,t){var n=this;return fn(function(){var i,a,o;return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,n.yieldLoop()];case 1:if(_state.sent(),n.storeOptions.maxConcurrent!=null&&t>n.storeOptions.maxConcurrent)throw new Ree("Impossible to add a job having a weight of ".concat(t," to a limiter having a maxConcurrent setting of ").concat(n.storeOptions.maxConcurrent));return[2,(a=Date.now(),o=n.storeOptions.highWater!=null&&e===n.storeOptions.highWater&&!n.check(t,a),i=n.strategyIsBlock()&&(o||n.isBlocked(a)),i&&(n._unblockTime=a+n.computePenalty(),n._nextRequest=n._unblockTime+n.storeOptions.minTime,n.instance._dropAllQueued()),{reachedHWM:o,blocked:i,strategy:n.storeOptions.strategy})]}})})()}},{key:"__free__",value:function __free__(e,t){var n=this;return fn(function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,n.yieldLoop()];case 1:return[2,(_state.sent(),n._running-=t,n._done+=t,n.instance._drainAll(n.computeCapacity()),{running:n._running})]}})})()}}]);return Iee}();Pee.exports=Iee});var Nee=g(function(DNr,yrr){yrr.exports={"blacklist_client.lua":"local blacklist = ARGV[num_static_argv + 1]\n\nif redis.call('zscore', client_last_seen_key, blacklist) then\n redis.call('zadd', client_last_seen_key, 0, blacklist)\nend\n\n\nreturn {}\n","check.lua":"local weight = tonumber(ARGV[num_static_argv + 1])\n\nlocal capacity = process_tick(now, false)['capacity']\nlocal nextRequest = tonumber(redis.call('hget', settings_key, 'nextRequest'))\n\nreturn conditions_check(capacity, weight) and nextRequest - now <= 0\n","conditions_check.lua":"local conditions_check = function (capacity, weight)\n return capacity == nil or weight <= capacity\nend\n","current_reservoir.lua":"return process_tick(now, false)['reservoir']\n","done.lua":"process_tick(now, false)\n\nreturn tonumber(redis.call('hget', settings_key, 'done'))\n","free.lua":"local index = ARGV[num_static_argv + 1]\n\nredis.call('zadd', job_expirations_key, 0, index)\n\nreturn process_tick(now, false)['running']\n","get_time.lua":"redis.replicate_commands()\n\nlocal get_time = function ()\n local time = redis.call('time')\n\n return tonumber(time[1]..string.sub(time[2], 1, 3))\nend\n","group_check.lua":"return not (redis.call('exists', settings_key) == 1)\n","heartbeat.lua":"process_tick(now, true)\n","increment_reservoir.lua":"local incr = tonumber(ARGV[num_static_argv + 1])\n\nredis.call('hincrby', settings_key, 'reservoir', incr)\n\nlocal reservoir = process_tick(now, true)['reservoir']\n\nlocal groupTimeout = tonumber(redis.call('hget', settings_key, 'groupTimeout'))\nrefresh_expiration(0, 0, groupTimeout)\n\nreturn reservoir\n","init.lua":"local clear = tonumber(ARGV[num_static_argv + 1])\nlocal limiter_version = ARGV[num_static_argv + 2]\nlocal num_local_argv = num_static_argv + 2\n\nif clear == 1 then\n redis.call('del', unpack(KEYS))\nend\n\nif redis.call('exists', settings_key) == 0 then\n -- Create\n local args = {'hmset', settings_key}\n\n for i = num_local_argv + 1, #ARGV do\n table.insert(args, ARGV[i])\n end\n\n redis.call(unpack(args))\n redis.call('hmset', settings_key,\n 'nextRequest', now,\n 'lastReservoirRefresh', now,\n 'lastReservoirIncrease', now,\n 'running', 0,\n 'done', 0,\n 'unblockTime', 0,\n 'capacityPriorityCounter', 0\n )\n\nelse\n -- Apply migrations\n local settings = redis.call('hmget', settings_key,\n 'id',\n 'version'\n )\n local id = settings[1]\n local current_version = settings[2]\n\n if current_version ~= limiter_version then\n local version_digits = {}\n for k, v in string.gmatch(current_version, \"([^.]+)\") do\n table.insert(version_digits, tonumber(k))\n end\n\n -- 2.10.0\n if version_digits[2] < 10 then\n redis.call('hsetnx', settings_key, 'reservoirRefreshInterval', '')\n redis.call('hsetnx', settings_key, 'reservoirRefreshAmount', '')\n redis.call('hsetnx', settings_key, 'lastReservoirRefresh', '')\n redis.call('hsetnx', settings_key, 'done', 0)\n redis.call('hset', settings_key, 'version', '2.10.0')\n end\n\n -- 2.11.1\n if version_digits[2] < 11 or (version_digits[2] == 11 and version_digits[3] < 1) then\n if redis.call('hstrlen', settings_key, 'lastReservoirRefresh') == 0 then\n redis.call('hmset', settings_key,\n 'lastReservoirRefresh', now,\n 'version', '2.11.1'\n )\n end\n end\n\n -- 2.14.0\n if version_digits[2] < 14 then\n local old_running_key = 'b_'..id..'_running'\n local old_executing_key = 'b_'..id..'_executing'\n\n if redis.call('exists', old_running_key) == 1 then\n redis.call('rename', old_running_key, job_weights_key)\n end\n if redis.call('exists', old_executing_key) == 1 then\n redis.call('rename', old_executing_key, job_expirations_key)\n end\n redis.call('hset', settings_key, 'version', '2.14.0')\n end\n\n -- 2.15.2\n if version_digits[2] < 15 or (version_digits[2] == 15 and version_digits[3] < 2) then\n redis.call('hsetnx', settings_key, 'capacityPriorityCounter', 0)\n redis.call('hset', settings_key, 'version', '2.15.2')\n end\n\n -- 2.17.0\n if version_digits[2] < 17 then\n redis.call('hsetnx', settings_key, 'clientTimeout', 10000)\n redis.call('hset', settings_key, 'version', '2.17.0')\n end\n\n -- 2.18.0\n if version_digits[2] < 18 then\n redis.call('hsetnx', settings_key, 'reservoirIncreaseInterval', '')\n redis.call('hsetnx', settings_key, 'reservoirIncreaseAmount', '')\n redis.call('hsetnx', settings_key, 'reservoirIncreaseMaximum', '')\n redis.call('hsetnx', settings_key, 'lastReservoirIncrease', now)\n redis.call('hset', settings_key, 'version', '2.18.0')\n end\n\n end\n\n process_tick(now, false)\nend\n\nlocal groupTimeout = tonumber(redis.call('hget', settings_key, 'groupTimeout'))\nrefresh_expiration(0, 0, groupTimeout)\n\nreturn {}\n","process_tick.lua":"local process_tick = function (now, always_publish)\n\n local compute_capacity = function (maxConcurrent, running, reservoir)\n if maxConcurrent ~= nil and reservoir ~= nil then\n return math.min((maxConcurrent - running), reservoir)\n elseif maxConcurrent ~= nil then\n return maxConcurrent - running\n elseif reservoir ~= nil then\n return reservoir\n else\n return nil\n end\n end\n\n local settings = redis.call('hmget', settings_key,\n 'id',\n 'maxConcurrent',\n 'running',\n 'reservoir',\n 'reservoirRefreshInterval',\n 'reservoirRefreshAmount',\n 'lastReservoirRefresh',\n 'reservoirIncreaseInterval',\n 'reservoirIncreaseAmount',\n 'reservoirIncreaseMaximum',\n 'lastReservoirIncrease',\n 'capacityPriorityCounter',\n 'clientTimeout'\n )\n local id = settings[1]\n local maxConcurrent = tonumber(settings[2])\n local running = tonumber(settings[3])\n local reservoir = tonumber(settings[4])\n local reservoirRefreshInterval = tonumber(settings[5])\n local reservoirRefreshAmount = tonumber(settings[6])\n local lastReservoirRefresh = tonumber(settings[7])\n local reservoirIncreaseInterval = tonumber(settings[8])\n local reservoirIncreaseAmount = tonumber(settings[9])\n local reservoirIncreaseMaximum = tonumber(settings[10])\n local lastReservoirIncrease = tonumber(settings[11])\n local capacityPriorityCounter = tonumber(settings[12])\n local clientTimeout = tonumber(settings[13])\n\n local initial_capacity = compute_capacity(maxConcurrent, running, reservoir)\n\n --\n -- Process 'running' changes\n --\n local expired = redis.call('zrangebyscore', job_expirations_key, '-inf', '('..now)\n\n if #expired > 0 then\n redis.call('zremrangebyscore', job_expirations_key, '-inf', '('..now)\n\n local flush_batch = function (batch, acc)\n local weights = redis.call('hmget', job_weights_key, unpack(batch))\n redis.call('hdel', job_weights_key, unpack(batch))\n local clients = redis.call('hmget', job_clients_key, unpack(batch))\n redis.call('hdel', job_clients_key, unpack(batch))\n\n -- Calculate sum of removed weights\n for i = 1, #weights do\n acc['total'] = acc['total'] + (tonumber(weights[i]) or 0)\n end\n\n -- Calculate sum of removed weights by client\n local client_weights = {}\n for i = 1, #clients do\n local removed = tonumber(weights[i]) or 0\n if removed > 0 then\n acc['client_weights'][clients[i]] = (acc['client_weights'][clients[i]] or 0) + removed\n end\n end\n end\n\n local acc = {\n ['total'] = 0,\n ['client_weights'] = {}\n }\n local batch_size = 1000\n\n -- Compute changes to Zsets and apply changes to Hashes\n for i = 1, #expired, batch_size do\n local batch = {}\n for j = i, math.min(i + batch_size - 1, #expired) do\n table.insert(batch, expired[j])\n end\n\n flush_batch(batch, acc)\n end\n\n -- Apply changes to Zsets\n if acc['total'] > 0 then\n redis.call('hincrby', settings_key, 'done', acc['total'])\n running = tonumber(redis.call('hincrby', settings_key, 'running', -acc['total']))\n end\n\n for client, weight in pairs(acc['client_weights']) do\n redis.call('zincrby', client_running_key, -weight, client)\n end\n end\n\n --\n -- Process 'reservoir' changes\n --\n local reservoirRefreshActive = reservoirRefreshInterval ~= nil and reservoirRefreshAmount ~= nil\n if reservoirRefreshActive and now >= lastReservoirRefresh + reservoirRefreshInterval then\n reservoir = reservoirRefreshAmount\n redis.call('hmset', settings_key,\n 'reservoir', reservoir,\n 'lastReservoirRefresh', now\n )\n end\n\n local reservoirIncreaseActive = reservoirIncreaseInterval ~= nil and reservoirIncreaseAmount ~= nil\n if reservoirIncreaseActive and now >= lastReservoirIncrease + reservoirIncreaseInterval then\n local num_intervals = math.floor((now - lastReservoirIncrease) / reservoirIncreaseInterval)\n local incr = reservoirIncreaseAmount * num_intervals\n if reservoirIncreaseMaximum ~= nil then\n incr = math.min(incr, reservoirIncreaseMaximum - (reservoir or 0))\n end\n if incr > 0 then\n reservoir = (reservoir or 0) + incr\n end\n redis.call('hmset', settings_key,\n 'reservoir', reservoir,\n 'lastReservoirIncrease', lastReservoirIncrease + (num_intervals * reservoirIncreaseInterval)\n )\n end\n\n --\n -- Clear unresponsive clients\n --\n local unresponsive = redis.call('zrangebyscore', client_last_seen_key, '-inf', (now - clientTimeout))\n local unresponsive_lookup = {}\n local terminated_clients = {}\n for i = 1, #unresponsive do\n unresponsive_lookup[unresponsive[i]] = true\n if tonumber(redis.call('zscore', client_running_key, unresponsive[i])) == 0 then\n table.insert(terminated_clients, unresponsive[i])\n end\n end\n if #terminated_clients > 0 then\n redis.call('zrem', client_running_key, unpack(terminated_clients))\n redis.call('hdel', client_num_queued_key, unpack(terminated_clients))\n redis.call('zrem', client_last_registered_key, unpack(terminated_clients))\n redis.call('zrem', client_last_seen_key, unpack(terminated_clients))\n end\n\n --\n -- Broadcast capacity changes\n --\n local final_capacity = compute_capacity(maxConcurrent, running, reservoir)\n\n if always_publish or (initial_capacity ~= nil and final_capacity == nil) then\n -- always_publish or was not unlimited, now unlimited\n redis.call('publish', 'b_'..id, 'capacity:'..(final_capacity or ''))\n\n elseif initial_capacity ~= nil and final_capacity ~= nil and final_capacity > initial_capacity then\n -- capacity was increased\n -- send the capacity message to the limiter having the lowest number of running jobs\n -- the tiebreaker is the limiter having not registered a job in the longest time\n\n local lowest_concurrency_value = nil\n local lowest_concurrency_clients = {}\n local lowest_concurrency_last_registered = {}\n local client_concurrencies = redis.call('zrange', client_running_key, 0, -1, 'withscores')\n\n for i = 1, #client_concurrencies, 2 do\n local client = client_concurrencies[i]\n local concurrency = tonumber(client_concurrencies[i+1])\n\n if (\n lowest_concurrency_value == nil or lowest_concurrency_value == concurrency\n ) and (\n not unresponsive_lookup[client]\n ) and (\n tonumber(redis.call('hget', client_num_queued_key, client)) > 0\n ) then\n lowest_concurrency_value = concurrency\n table.insert(lowest_concurrency_clients, client)\n local last_registered = tonumber(redis.call('zscore', client_last_registered_key, client))\n table.insert(lowest_concurrency_last_registered, last_registered)\n end\n end\n\n if #lowest_concurrency_clients > 0 then\n local position = 1\n local earliest = lowest_concurrency_last_registered[1]\n\n for i,v in ipairs(lowest_concurrency_last_registered) do\n if v < earliest then\n position = i\n earliest = v\n end\n end\n\n local next_client = lowest_concurrency_clients[position]\n redis.call('publish', 'b_'..id,\n 'capacity-priority:'..(final_capacity or '')..\n ':'..next_client..\n ':'..capacityPriorityCounter\n )\n redis.call('hincrby', settings_key, 'capacityPriorityCounter', '1')\n else\n redis.call('publish', 'b_'..id, 'capacity:'..(final_capacity or ''))\n end\n end\n\n return {\n ['capacity'] = final_capacity,\n ['running'] = running,\n ['reservoir'] = reservoir\n }\nend\n","queued.lua":"local clientTimeout = tonumber(redis.call('hget', settings_key, 'clientTimeout'))\nlocal valid_clients = redis.call('zrangebyscore', client_last_seen_key, (now - clientTimeout), 'inf')\nlocal client_queued = redis.call('hmget', client_num_queued_key, unpack(valid_clients))\n\nlocal sum = 0\nfor i = 1, #client_queued do\n sum = sum + tonumber(client_queued[i])\nend\n\nreturn sum\n","refresh_expiration.lua":"local refresh_expiration = function (now, nextRequest, groupTimeout)\n\n if groupTimeout ~= nil then\n local ttl = (nextRequest + groupTimeout) - now\n\n for i = 1, #KEYS do\n redis.call('pexpire', KEYS[i], ttl)\n end\n end\n\nend\n","refs.lua":"local settings_key = KEYS[1]\nlocal job_weights_key = KEYS[2]\nlocal job_expirations_key = KEYS[3]\nlocal job_clients_key = KEYS[4]\nlocal client_running_key = KEYS[5]\nlocal client_num_queued_key = KEYS[6]\nlocal client_last_registered_key = KEYS[7]\nlocal client_last_seen_key = KEYS[8]\n\nlocal now = tonumber(ARGV[1])\nlocal client = ARGV[2]\n\nlocal num_static_argv = 2\n","register.lua":"local index = ARGV[num_static_argv + 1]\nlocal weight = tonumber(ARGV[num_static_argv + 2])\nlocal expiration = tonumber(ARGV[num_static_argv + 3])\n\nlocal state = process_tick(now, false)\nlocal capacity = state['capacity']\nlocal reservoir = state['reservoir']\n\nlocal settings = redis.call('hmget', settings_key,\n 'nextRequest',\n 'minTime',\n 'groupTimeout'\n)\nlocal nextRequest = tonumber(settings[1])\nlocal minTime = tonumber(settings[2])\nlocal groupTimeout = tonumber(settings[3])\n\nif conditions_check(capacity, weight) then\n\n redis.call('hincrby', settings_key, 'running', weight)\n redis.call('hset', job_weights_key, index, weight)\n if expiration ~= nil then\n redis.call('zadd', job_expirations_key, now + expiration, index)\n end\n redis.call('hset', job_clients_key, index, client)\n redis.call('zincrby', client_running_key, weight, client)\n redis.call('hincrby', client_num_queued_key, client, -1)\n redis.call('zadd', client_last_registered_key, now, client)\n\n local wait = math.max(nextRequest - now, 0)\n local newNextRequest = now + wait + minTime\n\n if reservoir == nil then\n redis.call('hset', settings_key,\n 'nextRequest', newNextRequest\n )\n else\n reservoir = reservoir - weight\n redis.call('hmset', settings_key,\n 'reservoir', reservoir,\n 'nextRequest', newNextRequest\n )\n end\n\n refresh_expiration(now, newNextRequest, groupTimeout)\n\n return {true, wait, reservoir}\n\nelse\n return {false}\nend\n","register_client.lua":"local queued = tonumber(ARGV[num_static_argv + 1])\n\n-- Could have been re-registered concurrently\nif not redis.call('zscore', client_last_seen_key, client) then\n redis.call('zadd', client_running_key, 0, client)\n redis.call('hset', client_num_queued_key, client, queued)\n redis.call('zadd', client_last_registered_key, 0, client)\nend\n\nredis.call('zadd', client_last_seen_key, now, client)\n\nreturn {}\n","running.lua":"return process_tick(now, false)['running']\n","submit.lua":"local queueLength = tonumber(ARGV[num_static_argv + 1])\nlocal weight = tonumber(ARGV[num_static_argv + 2])\n\nlocal capacity = process_tick(now, false)['capacity']\n\nlocal settings = redis.call('hmget', settings_key,\n 'id',\n 'maxConcurrent',\n 'highWater',\n 'nextRequest',\n 'strategy',\n 'unblockTime',\n 'penalty',\n 'minTime',\n 'groupTimeout'\n)\nlocal id = settings[1]\nlocal maxConcurrent = tonumber(settings[2])\nlocal highWater = tonumber(settings[3])\nlocal nextRequest = tonumber(settings[4])\nlocal strategy = tonumber(settings[5])\nlocal unblockTime = tonumber(settings[6])\nlocal penalty = tonumber(settings[7])\nlocal minTime = tonumber(settings[8])\nlocal groupTimeout = tonumber(settings[9])\n\nif maxConcurrent ~= nil and weight > maxConcurrent then\n return redis.error_reply('OVERWEIGHT:'..weight..':'..maxConcurrent)\nend\n\nlocal reachedHWM = (highWater ~= nil and queueLength == highWater\n and not (\n conditions_check(capacity, weight)\n and nextRequest - now <= 0\n )\n)\n\nlocal blocked = strategy == 3 and (reachedHWM or unblockTime >= now)\n\nif blocked then\n local computedPenalty = penalty\n if computedPenalty == nil then\n if minTime == 0 then\n computedPenalty = 5000\n else\n computedPenalty = 15 * minTime\n end\n end\n\n local newNextRequest = now + computedPenalty + minTime\n\n redis.call('hmset', settings_key,\n 'unblockTime', now + computedPenalty,\n 'nextRequest', newNextRequest\n )\n\n local clients_queued_reset = redis.call('hkeys', client_num_queued_key)\n local queued_reset = {}\n for i = 1, #clients_queued_reset do\n table.insert(queued_reset, clients_queued_reset[i])\n table.insert(queued_reset, 0)\n end\n redis.call('hmset', client_num_queued_key, unpack(queued_reset))\n\n redis.call('publish', 'b_'..id, 'blocked:')\n\n refresh_expiration(now, newNextRequest, groupTimeout)\nend\n\nif not blocked and not reachedHWM then\n redis.call('hincrby', client_num_queued_key, client, 1)\nend\n\nreturn {reachedHWM, blocked, strategy}\n","update_settings.lua":"local args = {'hmset', settings_key}\n\nfor i = num_static_argv + 1, #ARGV do\n table.insert(args, ARGV[i])\nend\n\nredis.call(unpack(args))\n\nprocess_tick(now, true)\n\nlocal groupTimeout = tonumber(redis.call('hget', settings_key, 'groupTimeout'))\nrefresh_expiration(0, 0, groupTimeout)\n\nreturn {}\n","validate_client.lua":"if not redis.call('zscore', client_last_seen_key, client) then\n return redis.error_reply('UNKNOWN_CLIENT')\nend\n\nredis.call('zadd', client_last_seen_key, now, client)\n","validate_keys.lua":"if not (redis.call('exists', settings_key) == 1) then\n return redis.error_reply('SETTINGS_KEY_NOT_FOUND')\nend\n"}});var kv=g(function($r){"use strict";var Cv,Or,Nv;Or=Nee();Cv={refs:Or["refs.lua"],validate_keys:Or["validate_keys.lua"],validate_client:Or["validate_client.lua"],refresh_expiration:Or["refresh_expiration.lua"],process_tick:Or["process_tick.lua"],conditions_check:Or["conditions_check.lua"],get_time:Or["get_time.lua"]};$r.allKeys=function(r){return["b_".concat(r,"_settings"),"b_".concat(r,"_job_weights"),"b_".concat(r,"_job_expirations"),"b_".concat(r,"_job_clients"),"b_".concat(r,"_client_running"),"b_".concat(r,"_client_num_queued"),"b_".concat(r,"_client_last_registered"),"b_".concat(r,"_client_last_seen")]};Nv={init:{keys:$r.allKeys,headers:["process_tick"],refresh_expiration:!0,code:Or["init.lua"]},group_check:{keys:$r.allKeys,headers:[],refresh_expiration:!1,code:Or["group_check.lua"]},register_client:{keys:$r.allKeys,headers:["validate_keys"],refresh_expiration:!1,code:Or["register_client.lua"]},blacklist_client:{keys:$r.allKeys,headers:["validate_keys","validate_client"],refresh_expiration:!1,code:Or["blacklist_client.lua"]},heartbeat:{keys:$r.allKeys,headers:["validate_keys","validate_client","process_tick"],refresh_expiration:!1,code:Or["heartbeat.lua"]},update_settings:{keys:$r.allKeys,headers:["validate_keys","validate_client","process_tick"],refresh_expiration:!0,code:Or["update_settings.lua"]},running:{keys:$r.allKeys,headers:["validate_keys","validate_client","process_tick"],refresh_expiration:!1,code:Or["running.lua"]},queued:{keys:$r.allKeys,headers:["validate_keys","validate_client"],refresh_expiration:!1,code:Or["queued.lua"]},done:{keys:$r.allKeys,headers:["validate_keys","validate_client","process_tick"],refresh_expiration:!1,code:Or["done.lua"]},check:{keys:$r.allKeys,headers:["validate_keys","validate_client","process_tick","conditions_check"],refresh_expiration:!1,code:Or["check.lua"]},submit:{keys:$r.allKeys,headers:["validate_keys","validate_client","process_tick","conditions_check"],refresh_expiration:!0,code:Or["submit.lua"]},register:{keys:$r.allKeys,headers:["validate_keys","validate_client","process_tick","conditions_check"],refresh_expiration:!0,code:Or["register.lua"]},free:{keys:$r.allKeys,headers:["validate_keys","validate_client","process_tick"],refresh_expiration:!0,code:Or["free.lua"]},current_reservoir:{keys:$r.allKeys,headers:["validate_keys","validate_client","process_tick"],refresh_expiration:!1,code:Or["current_reservoir.lua"]},increment_reservoir:{keys:$r.allKeys,headers:["validate_keys","validate_client","process_tick"],refresh_expiration:!0,code:Or["increment_reservoir.lua"]}};$r.names=Object.keys(Nv);$r.keys=function(r,e){return Nv[r].keys(e)};$r.payload=function(r){var e;return e=Nv[r],Array.prototype.concat(Cv.refs,e.headers.map(function(t){return Cv[t]}),e.refresh_expiration?Cv.refresh_expiration:"",e.code).join("\n")}});var Lv=g(function(exports,module){"use strict";var asyncGeneratorStep=function asyncGeneratorStep(r,e,t,n,i,a,o){try{var s=r[a](o),u=s.value}catch(c){t(c);return}s.done?e(u):Promise.resolve(u).then(n,i)};var _asyncToGenerator=function _asyncToGenerator(r){return function(){var e=this,t=arguments;return new Promise(function(n,i){var a=r.apply(e,t);function o(u){asyncGeneratorStep(a,n,i,o,s,"next",u)}function s(u){asyncGeneratorStep(a,n,i,o,s,"throw",u)}o(void 0)})}};var Events,RedisConnection,Scripts,parser;parser=ca();Events=Ps();Scripts=kv();RedisConnection=(function(){var RedisConnection=/*#__PURE__*/function(){function RedisConnection(){var _this=this;var options=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};_class_call_check(this,RedisConnection);parser.load(options,this.defaults,this),this.Redis==null&&(this.Redis=eval("require")("redis")),this.Events==null&&(this.Events=new Events(this)),this.terminated=!1,this.client==null&&(this.client=this.Redis.createClient(this.clientOptions)),this.subscriber=this.client.duplicate(),this.limiters={},this.shas={},this.ready=this.Promise.all([this._setup(this.client,!1),this._setup(this.subscriber,!0)]).then(function(){return _this._loadScripts()}).then(function(){return{client:_this.client,subscriber:_this.subscriber}})}_create_class(RedisConnection,[{key:"_setup",value:function _setup(r,e){var _this=this;return r.setMaxListeners(0),new this.Promise(function(t,n){return r.on("error",function(i){return _this.Events.trigger("error",i)}),e&&r.on("message",function(i,a){var o;return(o=_this.limiters[i])!=null?o._store.onMessage(i,a):void 0}),r.ready?t():r.once("ready",t)})}},{key:"_loadScript",value:function _loadScript(r){var _this=this;return new this.Promise(function(e,t){var n;return n=Scripts.payload(r),_this.client.multi([["script","load",n]]).exec(function(i,a){return i!=null?t(i):(_this.shas[r]=a[0],e(a[0]))})})}},{key:"_loadScripts",value:function _loadScripts(){var _this=this;return this.Promise.all(Scripts.names.map(function(r){return _this._loadScript(r)}))}},{key:"__runCommand__",value:function __runCommand__(r){var e=this;return _asyncToGenerator(function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,e.ready];case 1:return[2,(_state.sent(),new e.Promise(function(t,n){return e.client.multi([r]).exec_atomic(function(i,a){return i!=null?n(i):t(a[0])})}))]}})})()}},{key:"__addLimiter__",value:function __addLimiter__(r){var _this=this;return this.Promise.all([r.channel(),r.channel_client()].map(function(e){return new _this.Promise(function(t,n){var i;return i=function(a){if(a===e)return _this.subscriber.removeListener("subscribe",i),_this.limiters[e]=r,t()},_this.subscriber.on("subscribe",i),_this.subscriber.subscribe(e)})}))}},{key:"__removeLimiter__",value:function __removeLimiter__(r){var e=this;return this.Promise.all([r.channel(),r.channel_client()].map(function(){var t=_asyncToGenerator(function(n){var _tmp;return _ts_generator(this,function(_state){switch(_state.label){case 0:_tmp=e.terminated;if(_tmp)return[3,2];return[4,new e.Promise(function(i,a){return e.subscriber.unsubscribe(n,function(o,s){if(o!=null)return a(o);if(s===n)return i()})})];case 1:_tmp=_state.sent();_state.label=2;case 2:return[2,(_tmp,delete e.limiters[n])]}})});return function(n){return t.apply(this,arguments)}}()))}},{key:"__scriptArgs__",value:function __scriptArgs__(r,e,t,n){var i;return i=Scripts.keys(r,e),[this.shas[r],i.length].concat(i,t,n)}},{key:"__scriptFn__",value:function __scriptFn__(r){return this.client.evalsha.bind(this.client)}},{key:"disconnect",value:function disconnect(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;var e,t,n,i;for(i=Object.keys(this.limiters),e=0,n=i.length;e<n;e++)t=i[e],clearInterval(this.limiters[t]._store.heartbeat);return this.limiters={},this.terminated=!0,this.client.end(r),this.subscriber.end(r),this.Promise.resolve()}}]);return RedisConnection}();return RedisConnection.prototype.datastore="redis",RedisConnection.prototype.defaults={Redis:null,clientOptions:{},client:null,Promise:Promise,Events:null},RedisConnection}).call(void 0);module.exports=RedisConnection});var Dv=g(function(exports,module){"use strict";var _slicedToArray=function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_nonIterableRest()};var _nonIterableRest=function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance")};var _iterableToArrayLimit=function _iterableToArrayLimit(r,e){var t=[],n=!0,i=!1,a=void 0;try{for(var o=r[Symbol.iterator](),s;!(n=(s=o.next()).done)&&(t.push(s.value),!(e&&t.length===e));n=!0);}catch(u){i=!0,a=u}finally{try{!n&&o.return!=null&&o.return()}finally{if(i)throw a}}return t};var _arrayWithHoles=function _arrayWithHoles(r){if(Array.isArray(r))return r};var asyncGeneratorStep=function asyncGeneratorStep(r,e,t,n,i,a,o){try{var s=r[a](o),u=s.value}catch(c){t(c);return}s.done?e(u):Promise.resolve(u).then(n,i)};var _asyncToGenerator=function _asyncToGenerator(r){return function(){var e=this,t=arguments;return new Promise(function(n,i){var a=r.apply(e,t);function o(u){asyncGeneratorStep(a,n,i,o,s,"next",u)}function s(u){asyncGeneratorStep(a,n,i,o,s,"throw",u)}o(void 0)})}};var Events,IORedisConnection,Scripts,parser;parser=ca();Events=Ps();Scripts=kv();IORedisConnection=(function(){var IORedisConnection=/*#__PURE__*/function(){function IORedisConnection(){var _this=this;var options=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};_class_call_check(this,IORedisConnection);parser.load(options,this.defaults,this),this.Redis==null&&(this.Redis=eval("require")("ioredis")),this.Events==null&&(this.Events=new Events(this)),this.terminated=!1,this.clusterNodes!=null?(this.client=new this.Redis.Cluster(this.clusterNodes,this.clientOptions),this.subscriber=new this.Redis.Cluster(this.clusterNodes,this.clientOptions)):this.client!=null&&this.client.duplicate==null?this.subscriber=new this.Redis.Cluster(this.client.startupNodes,this.client.options):(this.client==null&&(this.client=new this.Redis(this.clientOptions)),this.subscriber=this.client.duplicate()),this.limiters={},this.ready=this.Promise.all([this._setup(this.client,!1),this._setup(this.subscriber,!0)]).then(function(){return _this._loadScripts(),{client:_this.client,subscriber:_this.subscriber}})}_create_class(IORedisConnection,[{key:"_setup",value:function _setup(r,e){var _this=this;return r.setMaxListeners(0),new this.Promise(function(t,n){return r.on("error",function(i){return _this.Events.trigger("error",i)}),e&&r.on("message",function(i,a){var o;return(o=_this.limiters[i])!=null?o._store.onMessage(i,a):void 0}),r.status==="ready"?t():r.once("ready",t)})}},{key:"_loadScripts",value:function _loadScripts(){var _this=this;return Scripts.names.forEach(function(r){return _this.client.defineCommand(r,{lua:Scripts.payload(r)})})}},{key:"__runCommand__",value:function __runCommand__(r){var e=this;return _asyncToGenerator(function(){var t,n,i,a,o;return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,e.ready];case 1:_state.sent();return[4,e.client.pipeline([r]).exec()];case 2:i=_state.sent(),a=_slicedToArray(i,1),o=_slicedToArray(a[0],2);return[2,(t=o[0],n=o[1],n)]}})})()}},{key:"__addLimiter__",value:function __addLimiter__(r){var _this=this;return this.Promise.all([r.channel(),r.channel_client()].map(function(e){return new _this.Promise(function(t,n){return _this.subscriber.subscribe(e,function(){return _this.limiters[e]=r,t()})})}))}},{key:"__removeLimiter__",value:function __removeLimiter__(r){var e=this;return[r.channel(),r.channel_client()].forEach(function(){var t=_asyncToGenerator(function(n){var _tmp;return _ts_generator(this,function(_state){switch(_state.label){case 0:_tmp=e.terminated;if(_tmp)return[3,2];return[4,e.subscriber.unsubscribe(n)];case 1:_tmp=_state.sent();_state.label=2;case 2:return[2,(_tmp,delete e.limiters[n])]}})});return function(n){return t.apply(this,arguments)}}())}},{key:"__scriptArgs__",value:function __scriptArgs__(r,e,t,n){var i;return i=Scripts.keys(r,e),[i.length].concat(i,t,n)}},{key:"__scriptFn__",value:function __scriptFn__(r){return this.client[r].bind(this.client)}},{key:"disconnect",value:function disconnect(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;var e,t,n,i;for(i=Object.keys(this.limiters),e=0,n=i.length;e<n;e++)t=i[e],clearInterval(this.limiters[t]._store.heartbeat);return this.limiters={},this.terminated=!0,r?this.Promise.all([this.client.quit(),this.subscriber.quit()]):(this.client.disconnect(),this.subscriber.disconnect(),this.Promise.resolve())}}]);return IORedisConnection}();return IORedisConnection.prototype.datastore="ioredis",IORedisConnection.prototype.defaults={Redis:null,clientOptions:{},clusterNodes:null,client:null,Promise:Promise,Events:null},IORedisConnection}).call(void 0);module.exports=IORedisConnection});var Bee=g(function(FNr,Fee){"use strict";var Wv=function Wv(r,e){return wrr(r)||_rr(r,e)||brr()};var brr=function brr(){throw new TypeError("Invalid attempt to destructure non-iterable instance")};var _rr=function _rr(r,e){var t=[],n=!0,i=!1,a=void 0;try{for(var o=r[Symbol.iterator](),s;!(n=(s=o.next()).done)&&(t.push(s.value),!(e&&t.length===e));n=!0);}catch(u){i=!0,a=u}finally{try{!n&&o.return!=null&&o.return()}finally{if(i)throw a}}return t};var wrr=function wrr(r){if(Array.isArray(r))return r};var kee=function kee(r,e,t,n,i,a,o){try{var s=r[a](o),u=s.value}catch(c){t(c);return}s.done?e(u):Promise.resolve(u).then(n,i)};var Ei=function Ei(r){return function(){var e=this,t=arguments;return new Promise(function(n,i){var a=r.apply(e,t);function o(u){kee(a,n,i,o,s,"next",u)}function s(u){kee(a,n,i,o,s,"throw",u)}o(void 0)})}};var Lee,Dee,Wee,Mee,TT;TT=ca();Lee=Zc();Wee=Lv();Dee=Dv();Mee=/*#__PURE__*/function(){function Mee(e,t,n){var _this=this;_class_call_check(this,Mee);this.instance=e,this.storeOptions=t,this.originalId=this.instance.id,this.clientId=this.instance._randomIndex(),TT.load(n,n,this),this.clients={},this.capacityPriorityCounters={},this.sharedConnection=this.connection!=null,this.connection==null&&(this.connection=this.instance.datastore==="redis"?new Wee({Redis:this.Redis,clientOptions:this.clientOptions,Promise:this.Promise,Events:this.instance.Events}):this.instance.datastore==="ioredis"?new Dee({Redis:this.Redis,clientOptions:this.clientOptions,clusterNodes:this.clusterNodes,Promise:this.Promise,Events:this.instance.Events}):void 0),this.instance.connection=this.connection,this.instance.datastore=this.connection.datastore,this.ready=this.connection.ready.then(function(i){return _this.clients=i,_this.runScript("init",_this.prepareInitSettings(_this.clearDatastore))}).then(function(){return _this.connection.__addLimiter__(_this.instance)}).then(function(){return _this.runScript("register_client",[_this.instance.queued()])}).then(function(){var i;return typeof(i=_this.heartbeat=setInterval(function(){return _this.runScript("heartbeat",[]).catch(function(a){return _this.instance.Events.trigger("error",a)})},_this.heartbeatInterval)).unref=="function"&&i.unref(),_this.clients})}_create_class(Mee,[{key:"__publish__",value:function __publish__(e){var t=this;return Ei(function(){var n,i;return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,t.ready];case 1:i=_state.sent();return[2,(n=i.client,n.publish(t.instance.channel(),"message:".concat(e.toString())))]}})})()}},{key:"onMessage",value:function onMessage(e,t){var n=this;return Ei(function(){var i,a,o,s,u,c,l,f,d,p,x,h,v,_tmp,y;return _ts_generator(this,function(_state){switch(_state.label){case 0:_state.trys.push([0,10,,11]);l=t.indexOf(":");x=[t.slice(0,l),t.slice(l+1)];if(!(p=x[0],o=x[1],p==="capacity"))return[3,2];return[4,n.instance._drainAll(o.length>0?~~o:void 0)];case 1:return[2,_state.sent()];case 2:if(!(p==="capacity-priority"))return[3,7];h=o.split(":"),v=Wv(h,3);d=v[0],f=v[1],a=v[2],i=d.length>0?~~d:void 0;if(!(f===n.clientId))return[3,5];return[4,n.instance._drainAll(i)];case 3:s=_state.sent(),c=i!=null?i-(s||0):"";return[4,n.clients.client.publish(n.instance.channel(),"capacity-priority:".concat(c,"::").concat(a))];case 4:_tmp=_state.sent();return[3,6];case 5:_tmp=f===""?(clearTimeout(n.capacityPriorityCounters[a]),delete n.capacityPriorityCounters[a],n.instance._drainAll(i)):n.capacityPriorityCounters[a]=setTimeout(Ei(function(){var _$y,m;return _ts_generator(this,function(_state){switch(_state.label){case 0:_state.trys.push([0,3,,4]);delete n.capacityPriorityCounters[a];return[4,n.runScript("blacklist_client",[f])];case 1:_state.sent();return[4,n.instance._drainAll(i)];case 2:return[2,_state.sent()];case 3:m=_state.sent();return[2,(_$y=m,n.instance.Events.trigger("error",_$y))];case 4:return[2]}})}),1e3);_state.label=6;case 6:return[2,_tmp];case 7:if(p==="message")return[2,n.instance.Events.trigger("message",o)];if(!(p==="blocked"))return[3,9];return[4,n.instance._dropAllQueued()];case 8:return[2,_state.sent()];case 9:return[3,11];case 10:y=_state.sent();return[2,(u=y,n.instance.Events.trigger("error",u))];case 11:return[2]}})})()}},{key:"__disconnect__",value:function __disconnect__(e){return clearInterval(this.heartbeat),this.sharedConnection?this.connection.__removeLimiter__(this.instance):this.connection.disconnect(e)}},{key:"runScript",value:function runScript(e,t){var n=this;return Ei(function(){var _this,_tmp;return _ts_generator(this,function(_state){switch(_state.label){case 0:_this=this;_tmp=e==="init"||e==="register_client";if(_tmp)return[3,2];return[4,n.ready];case 1:_tmp=_state.sent();_state.label=2;case 2:return[2,(_tmp,new n.Promise(function(i,a){var o,s;return o=[Date.now(),n.clientId].concat(t),n.instance.Events.trigger("debug","Calling Redis script: ".concat(e,".lua"),o),s=n.connection.__scriptArgs__(e,n.originalId,o,function(u,c){return u!=null?a(u):i(c)}),n.connection.__scriptFn__(e).apply(_this,_to_consumable_array(s))}).catch(function(i){return i.message==="SETTINGS_KEY_NOT_FOUND"?e==="heartbeat"?n.Promise.resolve():n.runScript("init",n.prepareInitSettings(!1)).then(function(){return n.runScript(e,t)}):i.message==="UNKNOWN_CLIENT"?n.runScript("register_client",[n.instance.queued()]).then(function(){return n.runScript(e,t)}):n.Promise.reject(i)}))]}})})()}},{key:"prepareArray",value:function prepareArray(e){var t,n,i,a;for(i=[],t=0,n=e.length;t<n;t++)a=e[t],i.push(a!=null?a.toString():"");return i}},{key:"prepareObject",value:function prepareObject(e){var t,n,i;t=[];for(n in e)i=e[n],t.push(n,i!=null?i.toString():"");return t}},{key:"prepareInitSettings",value:function prepareInitSettings(e){var t;return t=this.prepareObject(Object.assign({},this.storeOptions,{id:this.originalId,version:this.instance.version,groupTimeout:this.timeout,clientTimeout:this.clientTimeout})),t.unshift(e?1:0,this.instance.version),t}},{key:"convertBool",value:function convertBool(e){return!!e}},{key:"__updateSettings__",value:function __updateSettings__(e){var t=this;return Ei(function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,t.runScript("update_settings",t.prepareObject(e))];case 1:return[2,(_state.sent(),TT.overwrite(e,e,t.storeOptions))]}})})()}},{key:"__running__",value:function __running__(){return this.runScript("running",[])}},{key:"__queued__",value:function __queued__(){return this.runScript("queued",[])}},{key:"__done__",value:function __done__(){return this.runScript("done",[])}},{key:"__groupCheck__",value:function __groupCheck__(){var e=this;return Ei(function(){var _;return _ts_generator(this,function(_state){switch(_state.label){case 0:_=e.convertBool;return[4,e.runScript("group_check",[])];case 1:return[2,_.apply(e,[_state.sent()])]}})})()}},{key:"__incrementReservoir__",value:function __incrementReservoir__(e){return this.runScript("increment_reservoir",[e])}},{key:"__currentReservoir__",value:function __currentReservoir__(){return this.runScript("current_reservoir",[])}},{key:"__check__",value:function __check__(e){var t=this;return Ei(function(){var _;return _ts_generator(this,function(_state){switch(_state.label){case 0:_=t.convertBool;return[4,t.runScript("check",t.prepareArray([e]))];case 1:return[2,_.apply(t,[_state.sent()])]}})})()}},{key:"__register__",value:function __register__(e,t,n){var i=this;return Ei(function(){var a,o,s,u,c;return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,i.runScript("register",i.prepareArray([e,t,n]))];case 1:u=_state.sent(),c=Wv(u,3);return[2,(o=c[0],s=c[1],a=c[2],{success:i.convertBool(o),wait:s,reservoir:a})]}})})()}},{key:"__submit__",value:function __submit__(e,t){var n=this;return Ei(function(){var i,a,o,s,u,c,l,f,x,d,p;return _ts_generator(this,function(_state){switch(_state.label){case 0:_state.trys.push([0,2,,3]);return[4,n.runScript("submit",n.prepareArray([e,t]))];case 1:l=_state.sent(),f=Wv(l,3);return[2,(u=f[0],i=f[1],c=f[2],{reachedHWM:n.convertBool(u),blocked:n.convertBool(i),strategy:c})];case 2:x=_state.sent();if(a=x,a.message.indexOf("OVERWEIGHT")===0){d=a.message.split(":"),p=Wv(d,3);throw s=p[0],t=p[1],o=p[2],new Lee("Impossible to add a job having a weight of ".concat(t," to a limiter having a maxConcurrent setting of ").concat(o))}else throw a;return[3,3];case 3:return[2]}})})()}},{key:"__free__",value:function __free__(e,t){var n=this;return Ei(function(){var i;return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,n.runScript("free",n.prepareArray([e]))];case 1:return[2,(i=_state.sent(),{running:i})]}})})()}}]);return Mee}();Fee.exports=Mee});var Vee=g(function(UNr,$ee){"use strict";var Uee,jee;Uee=Zc();jee=/*#__PURE__*/function(){function jee(e){_class_call_check(this,jee);this.status=e,this._jobs={},this.counts=this.status.map(function(){return 0})}_create_class(jee,[{key:"next",value:function next(e){var t,n;if(t=this._jobs[e],n=t+1,t!=null&&n<this.status.length)return this.counts[t]--,this.counts[n]++,this._jobs[e]++;if(t!=null)return this.counts[t]--,delete this._jobs[e]}},{key:"start",value:function start(e){var t;return t=0,this._jobs[e]=t,this.counts[t]++}},{key:"remove",value:function remove(e){var t;return t=this._jobs[e],t!=null&&(this.counts[t]--,delete this._jobs[e]),t!=null}},{key:"jobStatus",value:function jobStatus(e){var t;return(t=this.status[this._jobs[e]])!=null?t:null}},{key:"statusJobs",value:function statusJobs(e){var t,n,i,a,o;if(e!=null){if(n=this.status.indexOf(e),n<0)throw new Uee("status must be one of ".concat(this.status.join(", ")));i=this._jobs,a=[];for(t in i)o=i[t],o===n&&a.push(t);return a}else return Object.keys(this._jobs)}},{key:"statusCounts",value:function statusCounts(){var _this=this;return this.counts.reduce(function(e,t,n){return e[_this.status[n]]=t,e},{})}}]);return jee}();$ee.exports=jee});var Xee=g(function($Nr,Qee){"use strict";var Gee=function Gee(r,e,t,n,i,a,o){try{var s=r[a](o),u=s.value}catch(c){t(c);return}s.done?e(u):Promise.resolve(u).then(n,i)};var zee=function zee(r){return function(){var e=this,t=arguments;return new Promise(function(n,i){var a=r.apply(e,t);function o(u){Gee(a,n,i,o,s,"next",u)}function s(u){Gee(a,n,i,o,s,"throw",u)}o(void 0)})}};var Kee,Hee;Kee=ST();Hee=/*#__PURE__*/function(){function Hee(e,t){_class_call_check(this,Hee);this.schedule=this.schedule.bind(this),this.name=e,this.Promise=t,this._running=0,this._queue=new Kee}_create_class(Hee,[{key:"isEmpty",value:function isEmpty(){return this._queue.length===0}},{key:"_tryToRun",value:function _tryToRun(){var e=this;return zee(function(){var t,n,i,a,o,s,u,c;return _ts_generator(this,function(_state){switch(_state.label){case 0:if(!(e._running<1&&e._queue.length>0))return[3,2];e._running++;c=e._queue.shift();u=c.task,t=c.args,o=c.resolve,a=c.reject;return[4,zee(function(){var l;return _ts_generator(this,function(_state){switch(_state.label){case 0:_state.trys.push([0,2,,3]);return[4,u.apply(void 0,_to_consumable_array(t))];case 1:return[2,(s=_state.sent(),function(){return o(s)})];case 2:l=_state.sent();return[2,(i=l,function(){return a(i)})];case 3:return[2]}})})()];case 1:return[2,(n=_state.sent(),e._running--,e._tryToRun(),n())];case 2:return[2]}})})()}},{key:"schedule",value:function schedule(e){for(var _len=arguments.length,t=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++){t[_key-1]=arguments[_key]}var n,i,a;return a=i=null,n=new this.Promise(function(o,s){return a=o,i=s}),this._queue.push({task:e,args:t,resolve:a,reject:i}),this._tryToRun(),n}}]);return Hee}();Qee.exports=Hee});var Yee=g(function(VNr,Srr){Srr.exports={version:"2.19.5"}});var are=g(function(GNr,ire){"use strict";var Err=function Err(r,e){return Arr(r)||Trr(r,e)||qrr()};var qrr=function qrr(){throw new TypeError("Invalid attempt to destructure non-iterable instance")};var Trr=function Trr(r,e){var t=[],n=!0,i=!1,a=void 0;try{for(var o=r[Symbol.iterator](),s;!(n=(s=o.next()).done)&&(t.push(s.value),!(e&&t.length===e));n=!0);}catch(u){i=!0,a=u}finally{try{!n&&o.return!=null&&o.return()}finally{if(i)throw a}}return t};var Arr=function Arr(r){if(Array.isArray(r))return r};var Jee=function Jee(r,e,t,n,i,a,o){try{var s=r[a](o),u=s.value}catch(c){t(c);return}s.done?e(u):Promise.resolve(u).then(n,i)};var AT=function AT(r){return function(){var e=this,t=arguments;return new Promise(function(n,i){var a=r.apply(e,t);function o(u){Jee(a,n,i,o,s,"next",u)}function s(u){Jee(a,n,i,o,s,"throw",u)}o(void 0)})}};var Zee,ere,rre,tre,nre,Mv;Mv=ca();Zee=Ps();tre=Lv();rre=Dv();nre=kv();ere=(function(){var r=/*#__PURE__*/function(){function r(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};_class_call_check(this,r);this.deleteKey=this.deleteKey.bind(this),this.limiterOptions=t,Mv.load(this.limiterOptions,this.defaults,this),this.Events=new Zee(this),this.instances={},this.Bottleneck=OT(),this._startAutoCleanup(),this.sharedConnection=this.connection!=null,this.connection==null&&(this.limiterOptions.datastore==="redis"?this.connection=new tre(Object.assign({},this.limiterOptions,{Events:this.Events})):this.limiterOptions.datastore==="ioredis"&&(this.connection=new rre(Object.assign({},this.limiterOptions,{Events:this.Events}))))}_create_class(r,[{key:"key",value:function key(){var _this=this;var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";var n;return(n=this.instances[t])!=null?n:function(){var i;return i=_this.instances[t]=new _this.Bottleneck(Object.assign(_this.limiterOptions,{id:"".concat(_this.id,"-").concat(t),timeout:_this.timeout,connection:_this.connection})),_this.Events.trigger("created",i,t),i}()}},{key:"deleteKey",value:function deleteKey(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";var n=this;return AT(function(){var i,a,_tmp,_tmp1;return _ts_generator(this,function(_state){switch(_state.label){case 0:a=n.instances[t];_tmp=n.connection;if(!_tmp)return[3,2];return[4,n.connection.__runCommand__(["del"].concat(_to_consumable_array(nre.allKeys("".concat(n.id,"-").concat(t)))))];case 1:_tmp=i=_state.sent();_state.label=2;case 2:_tmp;_tmp1=a!=null;if(!_tmp1)return[3,4];delete n.instances[t];return[4,a.disconnect()];case 3:_tmp1=_state.sent();_state.label=4;case 4:return[2,(_tmp1,a!=null||i>0)]}})})()}},{key:"limiters",value:function limiters(){var t,n,i,a;n=this.instances,i=[];for(t in n)a=n[t],i.push({key:t,limiter:a});return i}},{key:"keys",value:function keys(){return Object.keys(this.instances)}},{key:"clusterKeys",value:function clusterKeys(){var t=this;return AT(function(){var n,i,a,o,s,u,c,l,f,d,p;return _ts_generator(this,function(_state){switch(_state.label){case 0:if(t.connection==null)return[2,t.Promise.resolve(t.keys())];u=[],n=null,f="b_".concat(t.id,"-").length,i=9;_state.label=1;case 1:if(!(n!==0))return[3,4];return[4,t.connection.__runCommand__(["scan",n!=null?n:0,"match","b_".concat(t.id,"-*_settings"),"count",1e4])];case 2:d=_state.sent(),p=Err(d,2);for(l=p[0],a=p[1],n=~~l,o=0,c=a.length;o<c;o++)s=a[o],u.push(s.slice(f,-i));_state.label=3;case 3:return[3,1];case 4:return[2,u]}})})()}},{key:"_startAutoCleanup",value:function _startAutoCleanup(){var t=this,n;return clearInterval(this.interval),typeof(n=this.interval=setInterval(AT(function(){var i,a,o,s,u,c,_tmp,_tmp1,_tmp2,_i1,l;return _ts_generator(this,function(_state){switch(_state.label){case 0:u=Date.now(),o=t.instances,s=[];_tmp=o;_tmp1=[];for(_tmp2 in _tmp)_tmp1.push(_tmp2);_i1=0;_state.label=1;case 1:if(!(_i1<_tmp1.length))return[3,6];_tmp2=_tmp1[_i1];if(!(_tmp2 in _tmp))return[3,5];a=_tmp2;c=o[a];_state.label=2;case 2:_state.trys.push([2,4,,5]);return[4,c._store.__groupCheck__(u)];case 3:_state.sent()?s.push(t.deleteKey(a)):s.push(void 0);return[3,5];case 4:l=_state.sent();i=l,s.push(c.Events.trigger("error",i));return[3,5];case 5:_i1++;return[3,1];case 6:return[2,s]}})}),this.timeout/2)).unref=="function"?n.unref():void 0}},{key:"updateSettings",value:function updateSettings(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Mv.overwrite(t,this.defaults,this),Mv.overwrite(t,t,this.limiterOptions),t.timeout!=null)return this._startAutoCleanup()}},{key:"disconnect",value:function disconnect(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;var n;if(!this.sharedConnection)return(n=this.connection)!=null?n.disconnect(t):void 0}}]);return r}();return r.prototype.defaults={timeout:1e3*60*5,connection:null,Promise:Promise,id:"group-key"},r}).call(void 0);ire.exports=ere});var lre=g(function(zNr,cre){"use strict";var ore,sre,ure;ure=ca();sre=Ps();ore=(function(){var r=/*#__PURE__*/function(){function r(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};_class_call_check(this,r);this.options=t,ure.load(this.options,this.defaults,this),this.Events=new sre(this),this._arr=[],this._resetPromise(),this._lastFlush=Date.now()}_create_class(r,[{key:"_resetPromise",value:function _resetPromise(){var _this=this;return this._promise=new this.Promise(function(t,n){return _this._resolve=t})}},{key:"_flush",value:function _flush(){return clearTimeout(this._timeout),this._lastFlush=Date.now(),this._resolve(),this.Events.trigger("batch",this._arr),this._arr=[],this._resetPromise()}},{key:"add",value:function add(t){var _this=this;var n;return this._arr.push(t),n=this._promise,this._arr.length===this.maxSize?this._flush():this.maxTime!=null&&this._arr.length===1&&(this._timeout=setTimeout(function(){return _this._flush()},this.maxTime)),n}}]);return r}();return r.prototype.defaults={maxTime:null,maxSize:null,Promise:Promise},r}).call(void 0);cre.exports=ore});var OT=g(function(KNr,wre){"use strict";var fre=function fre(r,e){return xre(r)||Orr(r,e)||hre()};var Orr=function Orr(r,e){var t=[],n=!0,i=!1,a=void 0;try{for(var o=r[Symbol.iterator](),s;!(n=(s=o.next()).done)&&(t.push(s.value),!(e&&t.length===e));n=!0);}catch(u){i=!0,a=u}finally{try{!n&&o.return!=null&&o.return()}finally{if(i)throw a}}return t};var Fv=function Fv(r){return xre(r)||Rrr(r)||hre()};var hre=function hre(){throw new TypeError("Invalid attempt to destructure non-iterable instance")};var Rrr=function Rrr(r){if(Symbol.iterator in Object(r)||Object.prototype.toString.call(r)==="[object Arguments]")return Array.from(r)};var xre=function xre(r){if(Array.isArray(r))return r};var dre=function dre(r,e,t,n,i,a,o){try{var s=r[a](o),u=s.value}catch(c){t(c);return}s.done?e(u):Promise.resolve(u).then(n,i)};var RT=function RT(r){return function(){var e=this,t=arguments;return new Promise(function(n,i){var a=r.apply(e,t);function o(u){dre(a,n,i,o,s,"next",u)}function s(u){dre(a,n,i,o,s,"throw",u)}o(void 0)})}};var gre,vre,IT,PT,mre,CT,yre,bre,_re,NT,qi,pre=[].splice;CT=10;vre=5;qi=ca();yre=mee();PT=Aee();mre=Cee();bre=Bee();IT=Ps();_re=Vee();NT=Xee();gre=(function(){var r=/*#__PURE__*/function(){function r(){var _this=this;var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};for(var _len=arguments.length,n=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++){n[_key-1]=arguments[_key]}_class_call_check(this,r);var i,a;this._addToQueue=this._addToQueue.bind(this),this._validateOptions(t,n),qi.load(t,this.instanceDefaults,this),this._queues=new yre(CT),this._scheduled={},this._states=new _re(["RECEIVED","QUEUED","RUNNING","EXECUTING"].concat(this.trackDoneStatus?["DONE"]:[])),this._limiter=null,this.Events=new IT(this),this._submitLock=new NT("submit",this.Promise),this._registerLock=new NT("register",this.Promise),a=qi.load(t,this.storeDefaults,{}),this._store=(function(){if(this.datastore==="redis"||this.datastore==="ioredis"||this.connection!=null)return i=qi.load(t,this.redisStoreDefaults,{}),new bre(this,a,i);if(this.datastore==="local")return i=qi.load(t,this.localStoreDefaults,{}),new mre(this,a,i);throw new r.prototype.BottleneckError("Invalid datastore type: ".concat(this.datastore))}).call(this),this._queues.on("leftzero",function(){var o;return(o=_this._store.heartbeat)!=null&&typeof o.ref=="function"?o.ref():void 0}),this._queues.on("zero",function(){var o;return(o=_this._store.heartbeat)!=null&&typeof o.unref=="function"?o.unref():void 0})}_create_class(r,[{key:"_validateOptions",value:function _validateOptions(t,n){if(!(t!=null&&(typeof t==="undefined"?"undefined":_type_of(t))=="object"&&n.length===0))throw new r.prototype.BottleneckError("Bottleneck v2 takes a single object argument. Refer to https://github.com/SGrondin/bottleneck#upgrading-to-v2 if you're upgrading from Bottleneck v1.")}},{key:"ready",value:function ready(){return this._store.ready}},{key:"clients",value:function clients(){return this._store.clients}},{key:"channel",value:function channel(){return"b_".concat(this.id)}},{key:"channel_client",value:function channel_client(){return"b_".concat(this.id,"_").concat(this._store.clientId)}},{key:"publish",value:function publish(t){return this._store.__publish__(t)}},{key:"disconnect",value:function disconnect(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return this._store.__disconnect__(t)}},{key:"chain",value:function chain(t){return this._limiter=t,this}},{key:"queued",value:function queued(t){return this._queues.queued(t)}},{key:"clusterQueued",value:function clusterQueued(){return this._store.__queued__()}},{key:"empty",value:function empty(){return this.queued()===0&&this._submitLock.isEmpty()}},{key:"running",value:function running(){return this._store.__running__()}},{key:"done",value:function done(){return this._store.__done__()}},{key:"jobStatus",value:function jobStatus(t){return this._states.jobStatus(t)}},{key:"jobs",value:function jobs(t){return this._states.statusJobs(t)}},{key:"counts",value:function counts(){return this._states.statusCounts()}},{key:"_randomIndex",value:function _randomIndex(){return Math.random().toString(36).slice(2)}},{key:"check",value:function check(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;return this._store.__check__(t)}},{key:"_clearGlobalState",value:function _clearGlobalState(t){return this._scheduled[t]!=null?(clearTimeout(this._scheduled[t].expiration),delete this._scheduled[t],!0):!1}},{key:"_free",value:function _free(t,n,i,a){var o=this;return RT(function(){var s,u,c,l;return _ts_generator(this,function(_state){switch(_state.label){case 0:_state.trys.push([0,2,,3]);return[4,o._store.__free__(t,i.weight)];case 1:c=_state.sent();if(u=c.running,o.Events.trigger("debug","Freed ".concat(i.id),a),u===0&&o.empty())return[2,o.Events.trigger("idle")];return[3,3];case 2:l=_state.sent();return[2,(s=l,o.Events.trigger("error",s))];case 3:return[2]}})})()}},{key:"_run",value:function _run(t,n,i){var _this=this;var a,o,s;return n.doRun(),a=this._clearGlobalState.bind(this,t),s=this._run.bind(this,t,n),o=this._free.bind(this,t,n),this._scheduled[t]={timeout:setTimeout(function(){return n.doExecute(_this._limiter,a,s,o)},i),expiration:n.options.expiration!=null?setTimeout(function(){return n.doExpire(a,s,o)},i+n.options.expiration):void 0,job:n}}},{key:"_drainOne",value:function _drainOne(t){var _this=this;return this._registerLock.schedule(function(){var n,i,a,o,s;if(_this.queued()===0)return _this.Promise.resolve(null);s=_this._queues.getFirst();var u=a=s.first();return o=u.options,n=u.args,t!=null&&o.weight>t?_this.Promise.resolve(null):(_this.Events.trigger("debug","Draining ".concat(o.id),{args:n,options:o}),i=_this._randomIndex(),_this._store.__register__(i,o.weight,o.expiration).then(function(param){var c=param.success,l=param.wait,f=param.reservoir;var d;return _this.Events.trigger("debug","Drained ".concat(o.id),{success:c,args:n,options:o}),c?(s.shift(),d=_this.empty(),d&&_this.Events.trigger("empty"),f===0&&_this.Events.trigger("depleted",d),_this._run(i,a,l),_this.Promise.resolve(o.weight)):_this.Promise.resolve(null)}))})}},{key:"_drainAll",value:function _drainAll(t){var _this=this;var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return this._drainOne(t).then(function(i){var a;return i!=null?(a=t!=null?t-i:t,_this._drainAll(a,n+i)):_this.Promise.resolve(n)}).catch(function(i){return _this.Events.trigger("error",i)})}},{key:"_dropAllQueued",value:function _dropAllQueued(t){return this._queues.shiftAll(function(n){return n.doDrop({message:t})})}},{key:"stop",value:function stop(){var _this=this;var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};var n,i;return t=qi.load(t,this.stopDefaults),i=function(a){var o;return o=function(){var s;return s=_this._states.counts,s[0]+s[1]+s[2]+s[3]===a},new _this.Promise(function(s,u){return o()?s():_this.on("done",function(){if(o())return _this.removeAllListeners("done"),s()})})},n=t.dropWaitingJobs?(this._run=function n(a,o){return o.doDrop({message:t.dropErrorMessage})},this._drainOne=function(){return _this.Promise.resolve(null)},this._registerLock.schedule(function(){return _this._submitLock.schedule(function(){var a,o,s;o=_this._scheduled;for(a in o)s=o[a],_this.jobStatus(s.job.options.id)==="RUNNING"&&(clearTimeout(s.timeout),clearTimeout(s.expiration),s.job.doDrop({message:t.dropErrorMessage}));return _this._dropAllQueued(t.dropErrorMessage),i(0)})})):this.schedule({priority:CT-1,weight:0},function(){return i(1)}),this._receive=function(a){return a._reject(new r.prototype.BottleneckError(t.enqueueErrorMessage))},this.stop=function(){return _this.Promise.reject(new r.prototype.BottleneckError("stop() has already been called"))},n}},{key:"_addToQueue",value:function _addToQueue(t){var n=this;return RT(function(){var i,a,o,s,u,c,l,f,d,_tmp,_tmp1;return _ts_generator(this,function(_state){switch(_state.label){case 0:i=t.args,s=t.options;_state.label=1;case 1:_state.trys.push([1,3,,4]);return[4,n._store.__submit__(n.queued(),s.weight)];case 2:f=_state.sent();u=f.reachedHWM,a=f.blocked,l=f.strategy;return[3,4];case 3:d=_state.sent();return[2,(o=d,n.Events.trigger("debug","Could not queue ".concat(s.id),{args:i,options:s,error:o}),t.doDrop({error:o}),!1)];case 4:if(!a)return[3,5];_tmp=(t.doDrop(),!0);return[3,9];case 5:if(!(u&&(c=l===r.prototype.strategy.LEAK?n._queues.shiftLastFrom(s.priority):l===r.prototype.strategy.OVERFLOW_PRIORITY?n._queues.shiftLastFrom(s.priority+1):l===r.prototype.strategy.OVERFLOW?t:void 0,c!=null&&c.doDrop(),c==null||l===r.prototype.strategy.OVERFLOW)))return[3,6];_tmp1=(c==null&&t.doDrop(),u);return[3,8];case 6:t.doQueue(u,a),n._queues.push(t);return[4,n._drainAll()];case 7:_tmp1=(_state.sent(),u);_state.label=8;case 8:_tmp=_tmp1;_state.label=9;case 9:return[2,_tmp]}})})()}},{key:"_receive",value:function _receive(t){return this._states.jobStatus(t.options.id)!=null?(t._reject(new r.prototype.BottleneckError("A job with the same id already exists (id=".concat(t.options.id,")"))),!1):(t.doReceive(),this._submitLock.schedule(this._addToQueue,t))}},{key:"submit",value:function submit(){for(var _len=arguments.length,t=new Array(_len),_key=0;_key<_len;_key++){t[_key]=arguments[_key]}var _this=this;var n,i,a,o,s,u,c;if(typeof t[0]=="function"){var l,f,d,p;s=t,l=s,f=Fv(l),i=f[0],t=f.slice(1),d=pre.call(t,-1),p=fre(d,1),n=p[0],o=qi.load({},this.jobDefaults)}else{var x,h,v,y;u=t,x=u,h=Fv(x),o=h[0],i=h[1],t=h.slice(2),v=pre.call(t,-1),y=fre(v,1),n=y[0],o=qi.load(o,this.jobDefaults)}return c=function(){for(var _len=arguments.length,m=new Array(_len),_key=0;_key<_len;_key++){m[_key]=arguments[_key]}return new _this.Promise(function(b,S){return i.apply(void 0,_to_consumable_array(m).concat([function(){for(var _len=arguments.length,T=new Array(_len),_key=0;_key<_len;_key++){T[_key]=arguments[_key]}return(T[0]!=null?S:b)(T)}]))})},a=new PT(c,t,o,this.jobDefaults,this.rejectOnDrop,this.Events,this._states,this.Promise),a.promise.then(function(m){return typeof n=="function"?n.apply(void 0,_to_consumable_array(m)):void 0}).catch(function(m){return Array.isArray(m)?typeof n=="function"?n.apply(void 0,_to_consumable_array(m)):void 0:typeof n=="function"?n(m):void 0}),this._receive(a)}},{key:"schedule",value:function schedule(){for(var _len=arguments.length,t=new Array(_len),_key=0;_key<_len;_key++){t[_key]=arguments[_key]}var n,i,a;if(typeof t[0]=="function"){var o=t,s=Fv(o);a=s[0],t=s.slice(1),i={}}else{var u=t,c=Fv(u);i=c[0],a=c[1],t=c.slice(2)}return n=new PT(a,t,i,this.jobDefaults,this.rejectOnDrop,this.Events,this._states,this.Promise),this._receive(n),n.promise}},{key:"wrap",value:function wrap(t){var n,i;return n=this.schedule.bind(this),i=function i(){for(var _len=arguments.length,o=new Array(_len),_key=0;_key<_len;_key++){o[_key]=arguments[_key]}return n.apply(void 0,[t.bind(this)].concat(_to_consumable_array(o)))},i.withOptions=function(a){for(var _len=arguments.length,o=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++){o[_key-1]=arguments[_key]}return n.apply(void 0,[a,t].concat(_to_consumable_array(o)))},i}},{key:"updateSettings",value:function updateSettings(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};var n=this;return RT(function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,n._store.__updateSettings__(qi.overwrite(t,n.storeDefaults))];case 1:return[2,(_state.sent(),qi.overwrite(t,n.instanceDefaults,n),n)]}})})()}},{key:"currentReservoir",value:function currentReservoir(){return this._store.__currentReservoir__()}},{key:"incrementReservoir",value:function incrementReservoir(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return this._store.__incrementReservoir__(t)}}]);return r}();return r.default=r,r.Events=IT,r.version=r.prototype.version=Yee().version,r.strategy=r.prototype.strategy={LEAK:1,OVERFLOW:2,OVERFLOW_PRIORITY:4,BLOCK:3},r.BottleneckError=r.prototype.BottleneckError=Zc(),r.Group=r.prototype.Group=are(),r.RedisConnection=r.prototype.RedisConnection=Lv(),r.IORedisConnection=r.prototype.IORedisConnection=Dv(),r.Batcher=r.prototype.Batcher=lre(),r.prototype.jobDefaults={priority:vre,weight:1,expiration:null,id:"<no-id>"},r.prototype.storeDefaults={maxConcurrent:null,minTime:0,highWater:null,strategy:r.prototype.strategy.LEAK,penalty:null,reservoir:null,reservoirRefreshInterval:null,reservoirRefreshAmount:null,reservoirIncreaseInterval:null,reservoirIncreaseAmount:null,reservoirIncreaseMaximum:null},r.prototype.localStoreDefaults={Promise:Promise,timeout:null,heartbeatInterval:250},r.prototype.redisStoreDefaults={Promise:Promise,timeout:null,heartbeatInterval:5e3,clientTimeout:1e4,Redis:null,clientOptions:{},clusterNodes:null,clearDatastore:!1,connection:null},r.prototype.instanceDefaults={datastore:"local",connection:null,id:"<no-id>",rejectOnDrop:!0,trackDoneStatus:!1,Promise:Promise},r.prototype.stopDefaults={enqueueErrorMessage:"This limiter has been stopped and cannot accept new jobs.",dropWaitingJobs:!0,dropErrorMessage:"This limiter has been stopped."},r}).call(void 0);wre.exports=gre});var Ere=g(function(HNr,Sre){"use strict";Sre.exports=OT()});var Lre=g(function(V7r,kre){"use strict";var DT=function DT(r){for(var e=[],t=0;t<r.length;t++){var n=r[t];e.push(rl[n])}return e.sort(function(a,o){return o.val-a.val}),e};var WT=function WT(r){if(r=="compatibility"&&(r="jedec"),r=="decimal"&&(r="metric"),!/^(binary|metric|jedec)/.test(r))throw Error("bytes.js: invalid mode passed in: "+r);return r};var Wrr=function Wrr(r,e){return typeof r=="string"?Nre(r,e):typeof r=="number"?Cre(r,e):null};var Cre=function Cre(r,e){if(!Number.isFinite(r))return null;var t=Math.abs(r),n=e&&e.thousandsSeparator||"",i=e&&e.unitSeparator||"",a=e&&e.decimalPlaces!==void 0?e.decimalPlaces:2,o=Boolean(e&&e.fixedDecimals),s=e&&e.unit,u=e&&e.mode||"metric";u=WT(e.mode);var c=Mrr(u),l;s!==void 0?l=Frr(rl,s,u):l=Brr(c,t);var f=r/l.val,d=f.toFixed(a),p=l.name;return o||(d=d.replace(Crr,"$1")),n&&(d=d.replace(Prr,n)),d+i+p};var Mrr=function Mrr(r){if(r=="metric")return Nrr;if(r=="jedec")return Lrr;if(r=="binary")return krr};var Frr=function Frr(r,e,t){var n;if(e=e.toLowerCase(),(t=="compatibility"||t=="jedec")&&(n=rl["_"+e]),n===void 0&&(n=rl[e]),n===void 0)throw Error("byte.js: unit not found: "+e);return n};var Brr=function Brr(r,e){for(var t=0;t<r.length;t++){var n=r[t];if(e>=n.val||t>=r.length-1)return n}};var Nre=function Nre(r,e){if(typeof r=="number"&&!isNaN(r))return r;if(typeof r!="string")return null;var t=e&&e.mode||"metric";t=WT(t);var n=Drr.exec(r),i,a;if(!n)return null;i=parseFloat(n[1]),a=n[4],a===void 0&&(a="b"),a=a.toLowerCase();var o;return t=="jedec"&&(o=rl["_"+a]),o===void 0&&(o=rl[a]),Math.floor(o.val*i)};kre.exports=Pre("metric");var Prr=/\B(?=(\d{3})+(?!\d))/g,Crr=/(?:\.0*|(\.[^0]+)0+)$/,rl={b:{val:1,longName:"byte",name:"B"},kb:{val:Math.pow(1e3,1),longName:"kilobyte",name:"kB"},mb:{val:Math.pow(1e3,2),longName:"megabyte",name:"MB"},gb:{val:Math.pow(1e3,3),longName:"gigabyte",name:"GB"},tb:{val:Math.pow(1e3,4),longName:"terabyte",name:"TB"},pb:{val:Math.pow(1e3,5),longName:"petabyte",name:"PB"},eb:{val:Math.pow(1e3,6),longName:"exabyte",name:"EB"},zb:{val:Math.pow(1e3,7),longName:"zettabyte",name:"ZB"},yb:{val:Math.pow(1e3,8),longName:"yottabyte",name:"YB"},kib:{val:Math.pow(1024,1),longName:"kibibyte",name:"KiB"},mib:{val:Math.pow(1024,2),longName:"mebibyte",name:"MiB"},gib:{val:Math.pow(1024,3),longName:"gibibyte",name:"GiB"},tib:{val:Math.pow(1024,4),longName:"tebibyte",name:"TiB"},pib:{val:Math.pow(1024,5),longName:"pebibyte",name:"PiB"},eib:{val:Math.pow(1024,6),longName:"exbibyte",name:"EiB"},zib:{val:Math.pow(1024,7),longName:"zebibyte",name:"ZiB"},yib:{val:Math.pow(1024,8),longName:"yobibyte",name:"YiB"},_kb:{val:Math.pow(1024,1),longName:"kilobyte",name:"kB"},_mb:{val:Math.pow(1024,2),longName:"megabyte",name:"MB"},_gb:{val:Math.pow(1024,3),longName:"gigabyte",name:"GB"},_tb:{val:Math.pow(1024,4),longName:"terabyte",name:"TB"}};var Nrr=DT(["b","kb","mb","gb","tb","pb","eb","zb","yb"]),krr=DT(["b","kib","mib","gib","tib","pib","eib","zib","yib"]),Lrr=DT(["b","_kb","_mb","_gb","_tb"]),Drr=/^((-|\+)?(\d+(?:\.\d+)?)) *((k|m|g|t|p|e|z|y)?i?(b))?$/i;function Pre(r){r=WT(r);function e(n){return n=n!==void 0?n:{},n.mode===void 0&&(n.mode=r),n}function t(n,i){return Wrr(n,e(i))}return t.format=function(i,a){return Cre(i,e(a))},t.parse=function(i,a){return Nre(i,e(a))},t.withDefaultMode=Pre,t}});var Urr={};Bte(Urr,{default:function(){return Xv}});module.exports=Ute(Urr);var JDr=ze(s3()),ZDr=ze(xz());var gz,zUe=(gz=globalThis.process)!=null?gz:{cwd:function cwd(){return"/"}};globalThis.process=zUe;var r9r=ze(yK());var UE=typeof Buffer=="function",myr=typeof TextDecoder=="function"?new TextDecoder:void 0,bK=typeof TextEncoder=="function"?new TextEncoder:void 0,m$e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",xd=Array.prototype.slice.call(m$e),yyr=function(r){var e={};return r.forEach(function(t,n){return e[t]=n}),e}(xd);var pi=String.fromCharCode.bind(String),byr=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):function(r){return new Uint8Array(Array.prototype.slice.call(r,0))},wK=function(r){return r.replace(/=/g,"").replace(/[+\/]/g,function(e){return e=="+"?"-":"_"})};var y$e=function(r){var e,t,n,i,a="",o=r.length%3;for(var s=0;s<r.length;){if((t=r.charCodeAt(s++))>255||(n=r.charCodeAt(s++))>255||(i=r.charCodeAt(s++))>255)throw new TypeError("invalid character found");e=t<<16|n<<8|i,a+=xd[e>>18&63]+xd[e>>12&63]+xd[e>>6&63]+xd[e&63]}return o?a.slice(0,o-3)+"===".substring(o):a},SK=typeof btoa=="function"?function(r){return btoa(r)}:UE?function(r){return Buffer.from(r,"binary").toString("base64")}:y$e,BE=UE?function(r){return Buffer.from(r).toString("base64")}:function(r){var t=[];for(var n=0,i=r.length;n<i;n+=4096)t.push(pi.apply(null,r.subarray(n,n+4096)));return SK(t.join(""))},EK=function(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return e?wK(BE(r)):BE(r)},b$e=function(r){if(r.length<2){var e=r.charCodeAt(0);return e<128?r:e<2048?pi(192|e>>>6)+pi(128|e&63):pi(224|e>>>12&15)+pi(128|e>>>6&63)+pi(128|e&63)}else{var e=65536+(r.charCodeAt(0)-55296)*1024+(r.charCodeAt(1)-56320);return pi(240|e>>>18&7)+pi(128|e>>>12&63)+pi(128|e>>>6&63)+pi(128|e&63)}},_$e=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,w$e=function(r){return r.replace(_$e,b$e)},_K=UE?function(r){return Buffer.from(r,"utf8").toString("base64")}:bK?function(r){return BE(bK.encode(r))}:function(r){return SK(w$e(r))},qK=function(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return e?wK(_K(r)):_K(r)};var il=require("obsidian");var jE=function jE1(r,e){return jE=Object.setPrototypeOf||_instanceof({__proto__:[]},Array)&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])},jE(r,e)};function Xu(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");jE(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}function gd(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],n=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function next(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Yu(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var n=t.call(r),i,a=[],o;try{for(;(e===void 0||e-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(o)throw o.error}}return a}function Ju(r,e,t){if(t||arguments.length===2)for(var n=0,i=e.length,a;n<i;n++)(a||!(n in e))&&(a||(a=Array.prototype.slice.call(e,0,n)),a[n]=e[n]);return r.concat(a||Array.prototype.slice.call(e))}function Tn(r){return typeof r=="function"}function Ux(r){var e=function e(n){Error.call(n),n.stack=new Error().stack},t=r(e);return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var jx=Ux(function(r){return function(t){r(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map(function(n,i){return i+1+") "+n.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}});function vd(r,e){if(r){var t=r.indexOf(e);0<=t&&r.splice(t,1)}}var Zu=function(){function r(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return r.prototype.unsubscribe=function(){var e,t,n,i,a;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var s=gd(o),u=s.next();!u.done;u=s.next()){var c=u.value;c.remove(this)}}catch(h){e={error:h}}finally{try{u&&!u.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}else o.remove(this);var l=this.initialTeardown;if(Tn(l))try{l()}catch(h){a=_instanceof(h,jx)?h.errors:[h]}var f=this._finalizers;if(f){this._finalizers=null;try{for(var d=gd(f),p=d.next();!p.done;p=d.next()){var x=p.value;try{TK(x)}catch(h){a=a!=null?a:[],_instanceof(h,jx)?a=Ju(Ju([],Yu(a)),Yu(h.errors)):a.push(h)}}}catch(h){n={error:h}}finally{try{p&&!p.done&&(i=d.return)&&i.call(d)}finally{if(n)throw n.error}}}if(a)throw new jx(a)}},r.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)TK(e);else{if(_instanceof(e,r)){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(t=this._finalizers)!==null&&t!==void 0?t:[]).push(e)}},r.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},r.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},r.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&vd(t,e)},r.prototype.remove=function(e){var t=this._finalizers;t&&vd(t,e),_instanceof(e,r)&&e._removeParent(this)},r.EMPTY=function(){var e=new r;return e.closed=!0,e}(),r}();var $E=Zu.EMPTY;function $x(r){return _instanceof(r,Zu)||r&&"closed"in r&&Tn(r.remove)&&Tn(r.add)&&Tn(r.unsubscribe)}function TK(r){Tn(r)?r():r.unsubscribe()}var Un={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var ec={setTimeout:function setTimeout1(r,e){for(var t=[],n=2;n<arguments.length;n++)t[n-2]=arguments[n];var i=ec.delegate;return i!=null&&i.setTimeout?i.setTimeout.apply(i,Ju([r,e],Yu(t))):setTimeout.apply(void 0,Ju([r,e],Yu(t)))},clearTimeout:function clearTimeout1(r){var e=ec.delegate;return((e==null?void 0:e.clearTimeout)||clearTimeout)(r)},delegate:void 0};function AK(r){ec.setTimeout(function(){var e=Un.onUnhandledError;if(e)e(r);else throw r})}function VE(){}var OK=function(){return GE("C",void 0,void 0)}();function RK(r){return GE("E",void 0,r)}function IK(r){return GE("N",r,void 0)}function GE(r,e,t){return{kind:r,value:e,error:t}}var ls=null;function rc(r){if(Un.useDeprecatedSynchronousErrorHandling){var e=!ls;if(e&&(ls={errorThrown:!1,error:null}),r(),e){var t=ls,n=t.errorThrown,i=t.error;if(ls=null,n)throw i}}else r()}function PK(r){Un.useDeprecatedSynchronousErrorHandling&&ls&&(ls.errorThrown=!0,ls.error=r)}var HE=function(r){Xu(e,r);function e(t){var n=r.call(this)||this;return n.isStopped=!1,t?(n.destination=t,$x(t)&&t.add(n)):n.destination=T$e,n}return e.create=function(t,n,i){return new Gx(t,n,i)},e.prototype.next=function(t){this.isStopped?KE(IK(t),this):this._next(t)},e.prototype.error=function(t){this.isStopped?KE(RK(t),this):(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped?KE(OK,this):(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,r.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(Zu);var S$e=Function.prototype.bind;function zE(r,e){return S$e.call(r,e)}var E$e=function(){function r(e){this.partialObserver=e}return r.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(n){Vx(n)}},r.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(n){Vx(n)}else Vx(e)},r.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(t){Vx(t)}},r}(),Gx=function(r){Xu(e,r);function e(t,n,i){var a=r.call(this)||this,o;if(Tn(t)||!t)o={next:t!=null?t:void 0,error:n!=null?n:void 0,complete:i!=null?i:void 0};else{var s;a&&Un.useDeprecatedNextContext?(s=Object.create(t),s.unsubscribe=function(){return a.unsubscribe()},o={next:t.next&&zE(t.next,s),error:t.error&&zE(t.error,s),complete:t.complete&&zE(t.complete,s)}):o=t}return a.destination=new E$e(o),a}return e}(HE);function Vx(r){Un.useDeprecatedSynchronousErrorHandling?PK(r):AK(r)}function q$e(r){throw r}function KE(r,e){var t=Un.onStoppedNotification;t&&ec.setTimeout(function(){return t(r,e)})}var T$e={closed:!0,next:VE,error:q$e,complete:VE};var CK=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function NK(r){return r}function kK(r){return r.length===0?NK:r.length===1?r[0]:function(t){return r.reduce(function(n,i){return i(n)},t)}}var QE=function(){function r(e){e&&(this._subscribe=e)}return r.prototype.lift=function(e){var t=new r;return t.source=this,t.operator=e,t},r.prototype.subscribe=function(e,t,n){var i=this,a=O$e(e)?e:new Gx(e,t,n);return rc(function(){var o=i,s=o.operator,u=o.source;a.add(s?s.call(a,u):u?i._subscribe(a):i._trySubscribe(a))}),a},r.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},r.prototype.forEach=function(e,t){var n=this;return t=LK(t),new t(function(i,a){var o=new Gx({next:function next(s){try{e(s)}catch(u){a(u),o.unsubscribe()}},error:a,complete:i});n.subscribe(o)})},r.prototype._subscribe=function(e){var t;return(t=this.source)===null||t===void 0?void 0:t.subscribe(e)},r.prototype[CK]=function(){return this},r.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return kK(e)(this)},r.prototype.toPromise=function(e){var t=this;return e=LK(e),new e(function(n,i){var a;t.subscribe(function(o){return a=o},function(o){return i(o)},function(){return n(a)})})},r.create=function(e){return new r(e)},r}();function LK(r){var e;return(e=r!=null?r:Un.Promise)!==null&&e!==void 0?e:Promise}function A$e(r){return r&&Tn(r.next)&&Tn(r.error)&&Tn(r.complete)}function O$e(r){return r&&_instanceof(r,HE)||A$e(r)&&$x(r)}var DK=Ux(function(r){return function(){r(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}});var it=function(r){Xu(e,r);function e(){var t=r.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return e.prototype.lift=function(t){var n=new WK(this,this);return n.operator=t,n},e.prototype._throwIfClosed=function(){if(this.closed)throw new DK},e.prototype.next=function(t){var n=this;rc(function(){var i,a;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var o=gd(n.currentObservers),s=o.next();!s.done;s=o.next()){var u=s.value;u.next(t)}}catch(c){i={error:c}}finally{try{s&&!s.done&&(a=o.return)&&a.call(o)}finally{if(i)throw i.error}}}})},e.prototype.error=function(t){var n=this;rc(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=t;for(var i=n.observers;i.length;)i.shift().error(t)}})},e.prototype.complete=function(){var t=this;rc(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var n=t.observers;n.length;)n.shift().complete()}})},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.prototype,"observed",{get:function get(){var t;return((t=this.observers)===null||t===void 0?void 0:t.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(t){return this._throwIfClosed(),r.prototype._trySubscribe.call(this,t)},e.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},e.prototype._innerSubscribe=function(t){var n=this,i=this,a=i.hasError,o=i.isStopped,s=i.observers;return a||o?$E:(this.currentObservers=null,s.push(t),new Zu(function(){n.currentObservers=null,vd(s,t)}))},e.prototype._checkFinalizedStatuses=function(t){var n=this,i=n.hasError,a=n.thrownError,o=n.isStopped;i?t.error(a):o&&t.complete()},e.prototype.asObservable=function(){var t=new QE;return t.source=this,t},e.create=function(t,n){return new WK(t,n)},e}(QE);var WK=function(r){Xu(e,r);function e(t,n){var i=r.call(this)||this;return i.destination=t,i.source=n,i}return e.prototype.next=function(t){var n,i;(i=(n=this.destination)===null||n===void 0?void 0:n.next)===null||i===void 0||i.call(n,t)},e.prototype.error=function(t){var n,i;(i=(n=this.destination)===null||n===void 0?void 0:n.error)===null||i===void 0||i.call(n,t)},e.prototype.complete=function(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t)},e.prototype._subscribe=function(t){var n,i;return(i=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&i!==void 0?i:$E},e}(it);var MK=new it,md=function(){return MK.asObservable()},Xa=function(){return MK.next()};var FK=new it,zx=function(){return FK.asObservable()},XE=function(r){return FK.next(r)};var BK=new it,UK=function(){return BK.asObservable()},tc=function(r){return BK.next(r)};var jK=new it,Kx=function(){return jK.asObservable()},$K=function(r,e){return jK.next({total:r,completed:e})};var VK=new it,Hx=function(){return VK.asObservable()},GK=function(r){return VK.next(r)};var zK=new it,KK=function(){return zK.asObservable()},HK=function(r,e){return zK.next({total:r,completed:e})};var Dbr=new it;var Re=function(r){return typeof r=="string"},yd=function(){var r,e,t=new Promise(function(n,i){r=n,e=i});return t.resolve=r,t.reject=e,t},QK=function(r){return r==null?"":""+r},R$e=function(r,e,t){r.forEach(function(n){e[n]&&(t[n]=e[n])})},I$e=/###/g,XK=function(r){return r&&r.indexOf("###")>-1?r.replace(I$e,"."):r},YK=function(r){return!r||Re(r)},bd=function(r,e,t){var n=Re(e)?e.split("."):e,i=0;for(;i<n.length-1;){if(YK(r))return{};var a=XK(n[i]);!r[a]&&t&&(r[a]=new t),Object.prototype.hasOwnProperty.call(r,a)?r=r[a]:r={},++i}return YK(r)?{}:{obj:r,k:XK(n[i])}},JK=function(r,e,t){var _bd=bd(r,e,Object),n=_bd.obj,i=_bd.k;if(n!==void 0||e.length===1){n[i]=t;return}var a=e[e.length-1],o=e.slice(0,e.length-1),s=bd(r,o,Object);for(;s.obj===void 0&&o.length;)a="".concat(o[o.length-1],".").concat(a),o=o.slice(0,o.length-1),s=bd(r,o,Object),s!=null&&s.obj&&typeof s.obj["".concat(s.k,".").concat(a)]!="undefined"&&(s.obj=void 0);s.obj["".concat(s.k,".").concat(a)]=t},P$e=function(r,e,t,n){var _bd=bd(r,e,Object),i=_bd.obj,a=_bd.k;i[a]=i[a]||[],i[a].push(t)},Xx=function(r,e){var _bd=bd(r,e),t=_bd.obj,n=_bd.k;if(t&&Object.prototype.hasOwnProperty.call(t,n))return t[n]},C$e=function(r,e,t){var n=Xx(r,t);return n!==void 0?n:Xx(e,t)},oH=function(r,e,t){for(var n in e)n!=="__proto__"&&n!=="constructor"&&(n in r?Re(r[n])||_instanceof(r[n],String)||Re(e[n])||_instanceof(e[n],String)?t&&(r[n]=e[n]):oH(r[n],e[n],t):r[n]=e[n]);return r},nc=function(r){return r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},N$e={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"},k$e=function(r){return Re(r)?r.replace(/[&<>"'\/]/g,function(e){return N$e[e]}):r},JE=/*#__PURE__*/function(){"use strict";function JE1(e){_class_call_check(this,JE1);this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}_create_class(JE1,[{key:"getRegExp",value:function getRegExp(e){var t=this.regExpMap.get(e);if(t!==void 0)return t;var n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}}]);return JE1}(),L$e=[" ",",","?","!",";"],D$e=new JE(20),W$e=function(r,e,t){e=e||"",t=t||"";var n=L$e.filter(function(o){return e.indexOf(o)<0&&t.indexOf(o)<0});if(n.length===0)return!0;var i=D$e.getRegExp("(".concat(n.map(function(o){return o==="?"?"\\?":o}).join("|"),")")),a=!i.test(r);if(!a){var o=r.indexOf(t);o>0&&!i.test(r.substring(0,o))&&(a=!0)}return a},ZE=function ZE1(r,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!r)return;if(r[e])return Object.prototype.hasOwnProperty.call(r,e)?r[e]:void 0;var n=e.split(t),i=r;for(var a=0;a<n.length;){if(!i||(typeof i==="undefined"?"undefined":_type_of(i))!="object")return;var o=void 0,s="";for(var u=a;u<n.length;++u)if(u!==a&&(s+=t),s+=n[u],o=i[s],o!==void 0){if(["string","number","boolean"].indexOf(typeof o==="undefined"?"undefined":_type_of(o))>-1&&u<n.length-1)continue;a+=u-a+1;break}i=o}return i},Yx=function(r){return r==null?void 0:r.replace("_","-")},M$e={type:"logger",log:function log(r){this.output("log",r)},warn:function warn(r){this.output("warn",r)},error:function error(r){this.output("error",r)},output:function output(r,e){var t,n;(n=(t=console==null?void 0:console[r])==null?void 0:t.apply)==null||n.call(t,console,e)}},ac=/*#__PURE__*/function(){"use strict";function ac1(e){_class_call_check(this,ac1);var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(e,t)}_create_class(ac1,[{key:"init",value:function init(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||M$e,this.options=t,this.debug=t.debug}},{key:"log",value:function log(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}},{key:"warn",value:function warn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}},{key:"error",value:function error(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}},{key:"deprecate",value:function deprecate(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function forward(e,t,n,i){return i&&!this.debug?null:(Re(e[0])&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function create(e){return new ac(this.logger,j({prefix:"".concat(this.prefix,":").concat(e,":")},this.options))}},{key:"clone",value:function clone(e){return e=e||this.options,e.prefix=e.prefix||this.prefix,new ac(this.logger,e)}}]);return ac1}(),hi=new ac,oc=/*#__PURE__*/function(){"use strict";function oc1(){_class_call_check(this,oc1);this.observers={}}_create_class(oc1,[{key:"on",value:function on1(e,t){var _this=this;return e.split(" ").forEach(function(n){_this.observers[n]||(_this.observers[n]=new Map);var i=_this.observers[n].get(t)||0;_this.observers[n].set(t,i+1)}),this}},{key:"off",value:function off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e].delete(t)}}},{key:"emit",value:function emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];this.observers[e]&&Array.from(this.observers[e].entries()).forEach(function(o){var _o1=_sliced_to_array(o,2),s=_o1[0],u=_o1[1];for(var c=0;c<u;c++)s.apply(void 0,_to_consumable_array(n))}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(function(o){var _o1=_sliced_to_array(o,2),s=_o1[0],u=_o1[1];for(var c=0;c<u;c++)s.apply(s,[e].concat(_to_consumable_array(n)))})}}]);return oc1}(),Jx=/*#__PURE__*/function(oc1){"use strict";_inherits(Jx1,oc1);function Jx1(e){_class_call_check(this,Jx1);var _this;var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};_this=_call_super(this,Jx1),_this.data=e||{},_this.options=t,_this.options.keySeparator===void 0&&(_this.options.keySeparator="."),_this.options.ignoreJSONStructure===void 0&&(_this.options.ignoreJSONStructure=!0);return _this}_create_class(Jx1,[{key:"addNamespaces",value:function addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function removeNamespaces(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function getResource(e,t,n){var _s1,_s2;var c,l;var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,o=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure,s;e.indexOf(".")>-1?s=e.split("."):(s=[e,t],n&&(Array.isArray(n)?(_s1=s).push.apply(_s1,_to_consumable_array(n)):Re(n)&&a?(_s2=s).push.apply(_s2,_to_consumable_array(n.split(a))):s.push(n)));var u=Xx(this.data,s);return!u&&!t&&!n&&e.indexOf(".")>-1&&(e=s[0],t=s[1],n=s.slice(2).join(".")),u||!o||!Re(n)?u:ZE((l=(c=this.data)==null?void 0:c[e])==null?void 0:l[t],n,a)}},{key:"addResource",value:function addResource(e,t,n,i){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},o=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,s=[e,t];n&&(s=s.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(s=e.split("."),i=t,t=s[1]),this.addNamespaces(t),JK(this.data,s,i),a.silent||this.emit("added",e,t,n,i)}},{key:"addResources",value:function addResources(e,t,n){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var a in n)(Re(n[a])||Array.isArray(n[a]))&&this.addResource(e,t,a,n[a],{silent:!0});i.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function addResourceBundle(e,t,n,i,a){var o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},s=[e,t];e.indexOf(".")>-1&&(s=e.split("."),i=n,n=t,t=s[1]),this.addNamespaces(t);var u=Xx(this.data,s)||{};o.skipCopy||(n=JSON.parse(JSON.stringify(n))),i?oH(u,n,a):u=j(j({},u),n),JK(this.data,s,u),o.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function hasResourceBundle(e,t){return this.getResource(e,t)!==void 0}},{key:"getResourceBundle",value:function getResourceBundle(e,t){return t||(t=this.options.defaultNS),this.getResource(e,t)}},{key:"getDataByLanguage",value:function getDataByLanguage(e){return this.data[e]}},{key:"hasLanguageSomeTranslations",value:function hasLanguageSomeTranslations(e){var t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(function(i){return t[i]&&Object.keys(t[i]).length>0})}},{key:"toJSON",value:function toJSON(){return this.data}}]);return Jx1}(oc),sH={processors:{},addPostProcessor:function addPostProcessor(r){this.processors[r.name]=r},handle:function handle(r,e,t,n,i){var _this=this;return r.forEach(function(a){var o,s;e=(s=(o=_this.processors[a])==null?void 0:o.process(e,t,n,i))!=null?s:e}),e}},ZK={},eH=function(r){return!Re(r)&&typeof r!="boolean"&&typeof r!="number"},sc=/*#__PURE__*/function(oc1){"use strict";_inherits(sc1,oc1);function sc1(e){_class_call_check(this,sc1);var _this;var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};_this=_call_super(this,sc1),R$e(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,_this),_this.options=t,_this.options.keySeparator===void 0&&(_this.options.keySeparator="."),_this.logger=hi.create("translator");return _this}_create_class(sc1,[{key:"changeLanguage",value:function changeLanguage(e){e&&(this.language=e)}},{key:"exists",value:function exists(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(e==null)return!1;var n=this.resolve(e,t);return(n==null?void 0:n.res)!==void 0}},{key:"extractFromKey",value:function extractFromKey(e,t){var n=t.nsSeparator!==void 0?t.nsSeparator:this.options.nsSeparator;n===void 0&&(n=":");var i=t.keySeparator!==void 0?t.keySeparator:this.options.keySeparator,a=t.ns||this.options.defaultNS||[],o=n&&e.indexOf(n)>-1,s=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!W$e(e,n,i);if(o&&!s){var u=e.match(this.interpolator.nestingRegexp);if(u&&u.length>0)return{key:e,namespaces:Re(a)?[a]:a};var c=e.split(n);(n!==i||n===i&&this.options.ns.indexOf(c[0])>-1)&&(a=c.shift()),e=c.join(i)}return{key:e,namespaces:Re(a)?[a]:a}}},{key:"translate",value:function translate(e,t,n){var _this=this;if((typeof t==="undefined"?"undefined":_type_of(t))!="object"&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),(typeof t==="undefined"?"undefined":_type_of(t))=="object"&&(t=j({},t)),t||(t={}),e==null)return"";Array.isArray(e)||(e=[String(e)]);var i=t.returnDetails!==void 0?t.returnDetails:this.options.returnDetails,a=t.keySeparator!==void 0?t.keySeparator:this.options.keySeparator,_this_extractFromKey=this.extractFromKey(e[e.length-1],t),o=_this_extractFromKey.key,s=_this_extractFromKey.namespaces,u=s[s.length-1],c=t.lng||this.language,l=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((c==null?void 0:c.toLowerCase())==="cimode"){if(l){var I=t.nsSeparator||this.options.nsSeparator;return i?{res:"".concat(u).concat(I).concat(o),usedKey:o,exactUsedKey:o,usedLng:c,usedNS:u,usedParams:this.getUsedParamsDetails(t)}:"".concat(u).concat(I).concat(o)}return i?{res:o,usedKey:o,exactUsedKey:o,usedLng:c,usedNS:u,usedParams:this.getUsedParamsDetails(t)}:o}var f=this.resolve(e,t),d=f==null?void 0:f.res,p=(f==null?void 0:f.usedKey)||o,x=(f==null?void 0:f.exactUsedKey)||o,h=["[object Number]","[object Function]","[object RegExp]"],v=t.joinArrays!==void 0?t.joinArrays:this.options.joinArrays,y=!this.i18nFormat||this.i18nFormat.handleAsObject,m=t.count!==void 0&&!Re(t.count),b=sc.hasDefaultValue(t),S=m?this.pluralResolver.getSuffix(c,t.count,t):"",T=t.ordinal&&m?this.pluralResolver.getSuffix(c,t.count,{ordinal:!1}):"",w=m&&!t.ordinal&&t.count===0,R=w&&t["defaultValue".concat(this.options.pluralSeparator,"zero")]||t["defaultValue".concat(S)]||t["defaultValue".concat(T)]||t.defaultValue,_=d;y&&!d&&b&&(_=R);var E=eH(_),O=Object.prototype.toString.apply(_);if(y&&_&&E&&h.indexOf(O)<0&&!(Re(v)&&Array.isArray(_))){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var I2=this.options.returnedObjectHandler?this.options.returnedObjectHandler(p,_,Se(j({},t),{ns:s})):"key '".concat(o," (").concat(this.language,")' returned an object instead of string.");return i?(f.res=I2,f.usedParams=this.getUsedParamsDetails(t),f):I2}if(a){var I3=Array.isArray(_),N=I3?[]:{},k=I3?x:p;for(var B in _)if(Object.prototype.hasOwnProperty.call(_,B)){var U="".concat(k).concat(a).concat(B);b&&!d?N[B]=this.translate(U,Se(j({},t),{defaultValue:eH(R)?R[B]:void 0,joinArrays:!1,ns:s})):N[B]=this.translate(U,Se(j({},t),{joinArrays:!1,ns:s})),N[B]===U&&(N[B]=_[B])}d=N}}else if(y&&Re(v)&&Array.isArray(d))d=d.join(v),d&&(d=this.extendTranslation(d,e,t,n));else{var I4=!1,N1=!1;!this.isValidLookup(d)&&b&&(I4=!0,d=R),this.isValidLookup(d)||(N1=!0,d=o);var B1=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&N1?void 0:d,U1=b&&R!==d&&this.options.updateMissing;if(N1||I4||U1){if(this.logger.log(U1?"updateKey":"missingKey",c,u,o,U1?R:d),a){var K=this.resolve(o,Se(j({},t),{keySeparator:!1}));K&&K.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var $=[],X=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if(this.options.saveMissingTo==="fallback"&&X&&X[0])for(var K1=0;K1<X.length;K1++)$.push(X[K1]);else this.options.saveMissingTo==="all"?$=this.languageUtils.toResolveHierarchy(t.lng||this.language):$.push(t.lng||this.language);var le=function(K,qe,V){var me;var fe=b&&V!==d?V:B1;_this.options.missingKeyHandler?_this.options.missingKeyHandler(K,u,qe,fe,U1,t):(me=_this.backendConnector)!=null&&me.saveMissing&&_this.backendConnector.saveMissing(K,u,qe,fe,U1,t),_this.emit("missingKey",K,u,qe,d)};this.options.saveMissing&&(this.options.saveMissingPlurals&&m?$.forEach(function(K){var qe=_this.pluralResolver.getSuffixes(K,t);w&&t["defaultValue".concat(_this.options.pluralSeparator,"zero")]&&qe.indexOf("".concat(_this.options.pluralSeparator,"zero"))<0&&qe.push("".concat(_this.options.pluralSeparator,"zero")),qe.forEach(function(V){le([K],o+V,t["defaultValue".concat(V)]||R)})}):le($,o,R))}d=this.extendTranslation(d,e,t,f,n),N1&&d===o&&this.options.appendNamespaceToMissingKey&&(d="".concat(u,":").concat(o)),(N1||I4)&&this.options.parseMissingKeyHandler&&(d=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(u,":").concat(o):o,I4?d:void 0))}return i?(f.res=d,f.usedParams=this.getUsedParamsDetails(t),f):d}},{key:"extendTranslation",value:function extendTranslation(e,t,n,i,a){var c,l;var o=this;if((c=this.i18nFormat)!=null&&c.parse)e=this.i18nFormat.parse(e,j(j({},this.options.interpolation.defaultVariables),n),n.lng||this.language||i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(Se(j({},n),{interpolation:j(j({},this.options.interpolation),n.interpolation)}));var f=Re(e)&&(((l=n==null?void 0:n.interpolation)==null?void 0:l.skipOnVariables)!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),d;if(f){var x=e.match(this.interpolator.nestingRegexp);d=x&&x.length}var p=n.replace&&!Re(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(p=j(j({},this.options.interpolation.defaultVariables),p)),e=this.interpolator.interpolate(e,p,n.lng||this.language||i.usedLng,n),f){var x2=e.match(this.interpolator.nestingRegexp),h=x2&&x2.length;d<h&&(n.nest=!1)}!n.lng&&i&&i.res&&(n.lng=this.language||i.usedLng),n.nest!==!1&&(e=this.interpolator.nest(e,function(){var _o1;for(var x=arguments.length,h=new Array(x),v=0;v<x;v++)h[v]=arguments[v];return(a==null?void 0:a[0])===h[0]&&!n.context?(o.logger.warn("It seems you are nesting recursively key: ".concat(h[0]," in key: ").concat(t[0])),null):(_o1=o).translate.apply(_o1,_to_consumable_array(h).concat([t]))},n)),n.interpolation&&this.interpolator.reset()}var s=n.postProcess||this.options.postProcess,u=Re(s)?[s]:s;return e!=null&&u!=null&&u.length&&n.applyPostProcessor!==!1&&(e=sH.handle(u,e,t,this.options&&this.options.postProcessPassResolved?j({i18nResolved:Se(j({},i),{usedParams:this.getUsedParamsDetails(n)})},n):n,this)),e}},{key:"resolve",value:function resolve(e){var _this=this;var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n,i,a,o,s;return Re(e)&&(e=[e]),e.forEach(function(u){if(_this.isValidLookup(n))return;var c=_this.extractFromKey(u,t),l=c.key;i=l;var f=c.namespaces;_this.options.fallbackNS&&(f=f.concat(_this.options.fallbackNS));var d=t.count!==void 0&&!Re(t.count),p=d&&!t.ordinal&&t.count===0,x=t.context!==void 0&&(Re(t.context)||typeof t.context=="number")&&t.context!=="",h=t.lngs?t.lngs:_this.languageUtils.toResolveHierarchy(t.lng||_this.language,t.fallbackLng);f.forEach(function(v){var y,m;_this.isValidLookup(n)||(s=v,!ZK["".concat(h[0],"-").concat(v)]&&(y=_this.utils)!=null&&y.hasLoadedNamespace&&!((m=_this.utils)!=null&&m.hasLoadedNamespace(s))&&(ZK["".concat(h[0],"-").concat(v)]=!0,_this.logger.warn('key "'.concat(i,'" for languages "').concat(h.join(", "),'" won\'t get resolved as namespace "').concat(s,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),h.forEach(function(b){var w;if(_this.isValidLookup(n))return;o=b;var S=[l];if((w=_this.i18nFormat)!=null&&w.addLookupKeys)_this.i18nFormat.addLookupKeys(S,l,b,v,t);else{var R;d&&(R=_this.pluralResolver.getSuffix(b,t.count,t));var _="".concat(_this.options.pluralSeparator,"zero"),E="".concat(_this.options.pluralSeparator,"ordinal").concat(_this.options.pluralSeparator);if(d&&(S.push(l+R),t.ordinal&&R.indexOf(E)===0&&S.push(l+R.replace(E,_this.options.pluralSeparator)),p&&S.push(l+_)),x){var O="".concat(l).concat(_this.options.contextSeparator).concat(t.context);S.push(O),d&&(S.push(O+R),t.ordinal&&R.indexOf(E)===0&&S.push(O+R.replace(E,_this.options.pluralSeparator)),p&&S.push(O+_))}}var T;for(;T=S.pop();)_this.isValidLookup(n)||(a=T,n=_this.getResource(b,v,T,t))}))})}),{res:n,usedKey:i,exactUsedKey:a,usedLng:o,usedNS:s}}},{key:"isValidLookup",value:function isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e==="")}},{key:"getResource",value:function getResource(e,t,n){var a;var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return(a=this.i18nFormat)!=null&&a.getResource?this.i18nFormat.getResource(e,t,n,i):this.resourceStore.getResource(e,t,n,i)}},{key:"getUsedParamsDetails",value:function getUsedParamsDetails(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=e.replace&&!Re(e.replace),i=n?e.replace:e;if(n&&typeof e.count!="undefined"&&(i.count=e.count),this.options.interpolation.defaultVariables&&(i=j(j({},this.options.interpolation.defaultVariables),i)),!n){i=j({},i);var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;try{for(var _iterator=t[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var a=_step.value;delete i[a]}}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}}return i}}],[{key:"hasDefaultValue",value:function hasDefaultValue(e){var t="defaultValue";for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,t.length)&&e[n]!==void 0)return!0;return!1}}]);return sc1}(oc),Zx=/*#__PURE__*/function(){"use strict";function Zx1(e){_class_call_check(this,Zx1);this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=hi.create("languageUtils")}_create_class(Zx1,[{key:"getScriptPartFromCode",value:function getScriptPartFromCode(e){if(e=Yx(e),!e||e.indexOf("-")<0)return null;var t=e.split("-");return t.length===2||(t.pop(),t[t.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(t.join("-"))}},{key:"getLanguagePartFromCode",value:function getLanguagePartFromCode(e){if(e=Yx(e),!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function formatLanguageCode(e){if(Re(e)&&e.indexOf("-")>-1){var t;try{t=Intl.getCanonicalLocales(e)[0]}catch(n){}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isSupportedCode",value:function isSupportedCode(e){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function getBestMatchFromCodes(e){var _this=this;if(!e)return null;var t;return e.forEach(function(n){if(t)return;var i=_this.formatLanguageCode(n);(!_this.options.supportedLngs||_this.isSupportedCode(i))&&(t=i)}),!t&&this.options.supportedLngs&&e.forEach(function(n){if(t)return;var i=_this.getLanguagePartFromCode(n);if(_this.isSupportedCode(i))return t=i;t=_this.options.supportedLngs.find(function(a){if(a===i)return a;if(!(a.indexOf("-")<0&&i.indexOf("-")<0)&&(a.indexOf("-")>0&&i.indexOf("-")<0&&a.substring(0,a.indexOf("-"))===i||a.indexOf(i)===0&&i.length>1))return a})}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}},{key:"getFallbackCodes",value:function getFallbackCodes(e,t){if(!e)return[];if(typeof e=="function"&&(e=e(t)),Re(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function toResolveHierarchy(e,t){var _this=this;var n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),i=[],a=function(o){o&&(_this.isSupportedCode(o)?i.push(o):_this.logger.warn("rejecting language code not found in supportedLngs: ".concat(o)))};return Re(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(e)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(e)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(e))):Re(e)&&a(this.formatLanguageCode(e)),n.forEach(function(o){i.indexOf(o)<0&&a(_this.formatLanguageCode(o))}),i}}]);return Zx1}(),rH={zero:0,one:1,two:2,few:3,many:4,other:5},tH={select:function(r){return r===1?"one":"other"},resolvedOptions:function(){return{pluralCategories:["one","other"]}}},eq=/*#__PURE__*/function(){"use strict";function eq1(e){_class_call_check(this,eq1);var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=hi.create("pluralResolver"),this.pluralRulesCache={}}_create_class(eq1,[{key:"addRule",value:function addRule(e,t){this.rules[e]=t}},{key:"clearCache",value:function clearCache(){this.pluralRulesCache={}}},{key:"getRule",value:function getRule(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Yx(e==="dev"?"en":e),i=t.ordinal?"ordinal":"cardinal",a=JSON.stringify({cleanedCode:n,type:i});if(a in this.pluralRulesCache)return this.pluralRulesCache[a];var o;try{o=new Intl.PluralRules(n,{type:i})}catch(s){if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),tH;if(!e.match(/-|_/))return tH;var u=this.languageUtils.getLanguagePartFromCode(e);o=this.getRule(u,t)}return this.pluralRulesCache[a]=o,o}},{key:"needsPlural",value:function needsPlural(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=this.getRule(e,t);return n||(n=this.getRule("dev",t)),(n==null?void 0:n.resolvedOptions().pluralCategories.length)>1}},{key:"getPluralFormsOfKey",value:function getPluralFormsOfKey(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(e,n).map(function(i){return"".concat(t).concat(i)})}},{key:"getSuffixes",value:function getSuffixes(e){var _this=this;var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=this.getRule(e,t);return n||(n=this.getRule("dev",t)),n?n.resolvedOptions().pluralCategories.sort(function(i,a){return rH[i]-rH[a]}).map(function(i){return"".concat(_this.options.prepend).concat(t.ordinal?"ordinal".concat(_this.options.prepend):"").concat(i)}):[]}},{key:"getSuffix",value:function getSuffix(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=this.getRule(e,n);return i?"".concat(this.options.prepend).concat(n.ordinal?"ordinal".concat(this.options.prepend):"").concat(i.select(t)):(this.logger.warn("no plural rule found for: ".concat(e)),this.getSuffix("dev",t,n))}}]);return eq1}(),nH=function nH1(r,e,t){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=C$e(r,e,t);return!a&&i&&Re(t)&&(a=ZE(r,t,n),a===void 0&&(a=ZE(e,t,n))),a},YE=function(r){return r.replace(/\$/g,"$$$$")},rq=/*#__PURE__*/function(){"use strict";function rq1(){_class_call_check(this,rq1);var t;var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=hi.create("interpolator"),this.options=e,this.format=((t=e==null?void 0:e.interpolation)==null?void 0:t.format)||function(n){return n},this.init(e)}_create_class(rq1,[{key:"init",value:function init(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var _e_interpolation=e.interpolation,t=_e_interpolation.escape,n=_e_interpolation.escapeValue,i=_e_interpolation.useRawValueToEscape,a=_e_interpolation.prefix,o=_e_interpolation.prefixEscaped,s=_e_interpolation.suffix,u=_e_interpolation.suffixEscaped,c=_e_interpolation.formatSeparator,l=_e_interpolation.unescapeSuffix,f=_e_interpolation.unescapePrefix,d=_e_interpolation.nestingPrefix,p=_e_interpolation.nestingPrefixEscaped,x=_e_interpolation.nestingSuffix,h=_e_interpolation.nestingSuffixEscaped,v=_e_interpolation.nestingOptionsSeparator,y=_e_interpolation.maxReplaces,m=_e_interpolation.alwaysFormat;this.escape=t!==void 0?t:k$e,this.escapeValue=n!==void 0?n:!0,this.useRawValueToEscape=i!==void 0?i:!1,this.prefix=a?nc(a):o||"{{",this.suffix=s?nc(s):u||"}}",this.formatSeparator=c||",",this.unescapePrefix=l?"":f||"-",this.unescapeSuffix=this.unescapePrefix?"":l||"",this.nestingPrefix=d?nc(d):p||nc("$t("),this.nestingSuffix=x?nc(x):h||nc(")"),this.nestingOptionsSeparator=v||",",this.maxReplaces=y||1e3,this.alwaysFormat=m!==void 0?m:!1,this.resetRegExp()}},{key:"reset",value:function reset(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function resetRegExp(){var e=function(t,n){return(t==null?void 0:t.source)===n?(t.lastIndex=0,t):new RegExp(n,"g")};this.regexp=e(this.regexp,"".concat(this.prefix,"(.+?)").concat(this.suffix)),this.regexpUnescape=e(this.regexpUnescape,"".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix)),this.nestingRegexp=e(this.nestingRegexp,"".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix))}},{key:"interpolate",value:function interpolate(e,t,n,i){var _this=this;var p;var a,o,s,u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=function(x){if(x.indexOf(_this.formatSeparator)<0){var m=nH(t,u,x,_this.options.keySeparator,_this.options.ignoreJSONStructure);return _this.alwaysFormat?_this.format(m,void 0,n,Se(j(j({},i),t),{interpolationkey:x})):m}var h=x.split(_this.formatSeparator),v=h.shift().trim(),y=h.join(_this.formatSeparator).trim();return _this.format(nH(t,u,v,_this.options.keySeparator,_this.options.ignoreJSONStructure),y,n,Se(j(j({},i),t),{interpolationkey:v}))};this.resetRegExp();var l=(i==null?void 0:i.missingInterpolationHandler)||this.options.missingInterpolationHandler,f=((p=i==null?void 0:i.interpolation)==null?void 0:p.skipOnVariables)!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(x){return YE(x)}},{regex:this.regexp,safeValue:function(x){return _this.escapeValue?YE(_this.escape(x)):YE(x)}}].forEach(function(x){for(s=0;a=x.regex.exec(e);){var h=a[1].trim();if(o=c(h),o===void 0)if(typeof l=="function"){var y=l(e,a,i);o=Re(y)?y:""}else if(i&&Object.prototype.hasOwnProperty.call(i,h))o="";else if(f){o=a[0];continue}else _this.logger.warn("missed to pass in variable ".concat(h," for interpolating ").concat(e)),o="";else!Re(o)&&!_this.useRawValueToEscape&&(o=QK(o));var v=x.safeValue(o);if(e=e.replace(a[0],v),f?(x.regex.lastIndex+=o.length,x.regex.lastIndex-=a[0].length):x.regex.lastIndex=0,s++,s>=_this.maxReplaces)break}}),e}},{key:"nest",value:function nest(e,t){var _this=this;var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i,a,o,s=function(u,c){var h;var l=_this.nestingOptionsSeparator;if(u.indexOf(l)<0)return u;var f=u.split(new RegExp("".concat(l,"[ ]*{"))),d="{".concat(f[1]);u=f[0],d=_this.interpolate(d,o);var p=d.match(/'/g),x=d.match(/"/g);(((h=p==null?void 0:p.length)!=null?h:0)%2===0&&!x||x.length%2!==0)&&(d=d.replace(/'/g,'"'));try{o=JSON.parse(d),c&&(o=j(j({},c),o))}catch(v){return _this.logger.warn("failed parsing options string in nesting for key ".concat(u),v),"".concat(u).concat(l).concat(d)}return o.defaultValue&&o.defaultValue.indexOf(_this.prefix)>-1&&delete o.defaultValue,u};for(;i=this.nestingRegexp.exec(e);){var u=[];o=j({},n),o=o.replace&&!Re(o.replace)?o.replace:o,o.applyPostProcessor=!1,delete o.defaultValue;var c=!1;if(i[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(i[1])){var l=i[1].split(this.formatSeparator).map(function(f){return f.trim()});i[1]=l.shift(),u=l,c=!0}if(a=t(s.call(this,i[1].trim(),o),o),a&&i[0]===e&&!Re(a))return a;Re(a)||(a=QK(a)),a||(this.logger.warn("missed to resolve ".concat(i[1]," for nesting ").concat(e)),a=""),c&&(a=u.reduce(function(l,f){return _this.format(l,f,n.lng,Se(j({},n),{interpolationkey:i[1].trim()}))},a.trim())),e=e.replace(i[0],a),this.regexp.lastIndex=0}return e}}]);return rq1}(),F$e=function(r){var e=r.toLowerCase().trim(),t={};if(r.indexOf("(")>-1){var n=r.split("(");e=n[0].toLowerCase().trim();var i=n[1].substring(0,n[1].length-1);e==="currency"&&i.indexOf(":")<0?t.currency||(t.currency=i.trim()):e==="relativetime"&&i.indexOf(":")<0?t.range||(t.range=i.trim()):i.split(";").forEach(function(o){if(o){var _o_split=_to_array(o.split(":")),s=_o_split[0],u=_o_split.slice(1),c=u.join(":").trim().replace(/^'+|'+$/g,""),l=s.trim();t[l]||(t[l]=c),c==="false"&&(t[l]=!1),c==="true"&&(t[l]=!0),isNaN(c)||(t[l]=parseInt(c,10))}})}return{formatName:e,formatOptions:t}},ic=function(r){var e={};return function(t,n,i){var a=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(a=Se(j({},a),_define_property({},i.interpolationkey,void 0)));var o=n+JSON.stringify(a),s=e[o];return s||(s=r(Yx(n),i),e[o]=s),s(t)}},tq=/*#__PURE__*/function(){"use strict";function tq1(){_class_call_check(this,tq1);var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=hi.create("formatter"),this.options=e,this.formats={number:ic(function(t,n){var i=new Intl.NumberFormat(t,j({},n));return function(a){return i.format(a)}}),currency:ic(function(t,n){var i=new Intl.NumberFormat(t,Se(j({},n),{style:"currency"}));return function(a){return i.format(a)}}),datetime:ic(function(t,n){var i=new Intl.DateTimeFormat(t,j({},n));return function(a){return i.format(a)}}),relativetime:ic(function(t,n){var i=new Intl.RelativeTimeFormat(t,j({},n));return function(a){return i.format(a,n.range||"day")}}),list:ic(function(t,n){var i=new Intl.ListFormat(t,j({},n));return function(a){return i.format(a)}})},this.init(e)}_create_class(tq1,[{key:"init",value:function init(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=t.interpolation.formatSeparator||","}},{key:"add",value:function add(e,t){this.formats[e.toLowerCase().trim()]=t}},{key:"addCached",value:function addCached(e,t){this.formats[e.toLowerCase().trim()]=ic(t)}},{key:"format",value:function format(e,t,n){var _this=this;var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=t.split(this.formatSeparator);if(a.length>1&&a[0].indexOf("(")>1&&a[0].indexOf(")")<0&&a.find(function(s){return s.indexOf(")")>-1})){var s=a.findIndex(function(u){return u.indexOf(")")>-1});a[0]=[a[0]].concat(_to_consumable_array(a.splice(1,s))).join(this.formatSeparator)}return a.reduce(function(s,u){var f;var _F$e=F$e(u),c=_F$e.formatName,l=_F$e.formatOptions;if(_this.formats[c]){var d=s;try{var _$p=((f=i==null?void 0:i.formatParams)==null?void 0:f[i.interpolationkey])||{},x=_$p.locale||_$p.lng||i.locale||i.lng||n;d=_this.formats[c](s,x,j(j(j({},l),i),_$p))}catch(p){_this.logger.warn(p)}return d}else _this.logger.warn("there was no format function for ".concat(c));return s},e)}}]);return tq1}(),B$e=function(r,e){r.pending[e]!==void 0&&(delete r.pending[e],r.pendingCount--)},nq=/*#__PURE__*/function(oc1){"use strict";_inherits(nq1,oc1);function nq1(e,t,n){_class_call_check(this,nq1);var _this;var a,o;var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};_this=_call_super(this,nq1),_this.backend=e,_this.store=t,_this.services=n,_this.languageUtils=n.languageUtils,_this.options=i,_this.logger=hi.create("backendConnector"),_this.waitingReads=[],_this.maxParallelReads=i.maxParallelReads||10,_this.readingCalls=0,_this.maxRetries=i.maxRetries>=0?i.maxRetries:5,_this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,_this.state={},_this.queue=[],(o=(a=_this.backend)==null?void 0:a.init)==null||o.call(a,n,i.backend,i);return _this}_create_class(nq1,[{key:"queueLoad",value:function queueLoad(e,t,n,i){var _this=this;var a={},o={},s={},u={};return e.forEach(function(c){var l=!0;t.forEach(function(f){var d="".concat(c,"|").concat(f);!n.reload&&_this.store.hasResourceBundle(c,f)?_this.state[d]=2:_this.state[d]<0||(_this.state[d]===1?o[d]===void 0&&(o[d]=!0):(_this.state[d]=1,l=!1,o[d]===void 0&&(o[d]=!0),a[d]===void 0&&(a[d]=!0),u[f]===void 0&&(u[f]=!0)))}),l||(s[c]=!0)}),(Object.keys(a).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(a),pending:Object.keys(o),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(u)}}},{key:"loaded",value:function loaded(e,t,n){var i=e.split("|"),a=i[0],o=i[1];t&&this.emit("failedLoading",a,o,t),!t&&n&&this.store.addResourceBundle(a,o,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);var s={};this.queue.forEach(function(u){P$e(u.loaded,[a],o),B$e(u,e),t&&u.errors.push(t),u.pendingCount===0&&!u.done&&(Object.keys(u.loaded).forEach(function(c){s[c]||(s[c]={});var l=u.loaded[c];l.length&&l.forEach(function(f){s[c][f]===void 0&&(s[c][f]=!0)})}),u.done=!0,u.errors.length?u.callback(u.errors):u.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(function(u){return!u.done})}},{key:"read",value:function read(e,t,n){var _this=this;var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,o=arguments.length>5?arguments[5]:void 0;if(!e.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:n,tried:i,wait:a,callback:o});return}this.readingCalls++;var s=function(c,l){if(_this.readingCalls--,_this.waitingReads.length>0){var f=_this.waitingReads.shift();_this.read(f.lng,f.ns,f.fcName,f.tried,f.wait,f.callback)}if(c&&l&&i<_this.maxRetries){setTimeout(function(){_this.read.call(_this,e,t,n,i+1,a*2,o)},a);return}o(c,l)},u=this.backend[n].bind(this.backend);if(u.length===2){try{var _$c=u(e,t);_$c&&typeof _$c.then=="function"?_$c.then(function(l){return s(null,l)}).catch(s):s(null,_$c)}catch(c){s(c)}return}return u(e,t,s)}},{key:"prepareLoading",value:function prepareLoading(e,t){var _this=this;var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();Re(e)&&(e=this.languageUtils.toResolveHierarchy(e)),Re(t)&&(t=[t]);var a=this.queueLoad(e,t,n,i);if(!a.toLoad.length)return a.pending.length||i(),null;a.toLoad.forEach(function(o){_this.loadOne(o)})}},{key:"load",value:function load(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function loadOne(e){var _this=this;var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",n=e.split("|"),i=n[0],a=n[1];this.read(i,a,"read",void 0,void 0,function(o,s){o&&_this.logger.warn("".concat(t,"loading namespace ").concat(a," for language ").concat(i," failed"),o),!o&&s&&_this.logger.log("".concat(t,"loaded namespace ").concat(a," for language ").concat(i),s),_this.loaded(e,o,s)})}},{key:"saveMissing",value:function saveMissing(e,t,n,i,a){var u,c,l,f,d;var o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},s=arguments.length>6&&arguments[6]!==void 0?arguments[6]:function(){};if((c=(u=this.services)==null?void 0:u.utils)!=null&&c.hasLoadedNamespace&&!((f=(l=this.services)==null?void 0:l.utils)!=null&&f.hasLoadedNamespace(t))){this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(n==null||n==="")){if((d=this.backend)!=null&&d.create){var p=Se(j({},o),{isUpdate:a}),x=this.backend.create.bind(this.backend);if(x.length<6)try{var _$h;x.length===5?_$h=x(e,t,n,i,p):_$h=x(e,t,n,i),_$h&&typeof _$h.then=="function"?_$h.then(function(v){return s(null,v)}).catch(s):s(null,_$h)}catch(h){s(h)}else x(e,t,n,i,s,p)}!e||!e[0]||this.store.addResource(e[0],t,n,i)}}}]);return nq1}(oc),iH=function(){return{debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(r){var e={};if(_type_of(r[1])=="object"&&(e=r[1]),Re(r[1])&&(e.defaultValue=r[1]),Re(r[2])&&(e.tDescription=r[2]),_type_of(r[2])=="object"||_type_of(r[3])=="object"){var t=r[3]||r[2];Object.keys(t).forEach(function(n){e[n]=t[n]})}return e},interpolation:{escapeValue:!0,format:function(r){return r},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}},aH=function(r){var e,t;return Re(r.ns)&&(r.ns=[r.ns]),Re(r.fallbackLng)&&(r.fallbackLng=[r.fallbackLng]),Re(r.fallbackNS)&&(r.fallbackNS=[r.fallbackNS]),((t=(e=r.supportedLngs)==null?void 0:e.indexOf)==null?void 0:t.call(e,"cimode"))<0&&(r.supportedLngs=r.supportedLngs.concat(["cimode"])),typeof r.initImmediate=="boolean"&&(r.initAsync=r.initImmediate),r},Qx=function(){},U$e=function(r){Object.getOwnPropertyNames(Object.getPrototypeOf(r)).forEach(function(t){typeof r[t]=="function"&&(r[t]=r[t].bind(r))})},fs=/*#__PURE__*/function(oc1){"use strict";_inherits(fs1,oc1);function fs1(){_class_call_check(this,fs1);var _this;var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(_this=_call_super(this,fs1),_this.options=aH(e),_this.services={},_this.logger=hi,_this.modules={external:[]},U$e(_this),t&&!_this.isInitialized&&!e.isClone){if(!_this.options.initAsync)return _possible_constructor_return(_this,(_this.init(e,t),_this));setTimeout(function(){_this.init(e,t)},0)}return _this}_create_class(fs1,[{key:"init",value:function init(){var _this=this;var e=this;var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof t=="function"&&(n=t,t={}),t.defaultNS==null&&t.ns&&(Re(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));var i=iH();this.options=j(j(j({},i),this.options),aH(t)),this.options.interpolation=j(j({},i.interpolation),this.options.interpolation),t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator);var a=function(l){return l?typeof l=="function"?new l:l:null};if(!this.options.isClone){this.modules.logger?hi.init(a(this.modules.logger),this.options):hi.init(null,this.options);var l;this.modules.formatter?l=this.modules.formatter:l=tq;var f=new Zx(this.options);this.store=new Jx(this.options.resources,this.options);var d=this.services;d.logger=hi,d.resourceStore=this.store,d.languageUtils=f,d.pluralResolver=new eq(f,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),l&&(!this.options.interpolation.format||this.options.interpolation.format===i.interpolation.format)&&(d.formatter=a(l),d.formatter.init(d,this.options),this.options.interpolation.format=d.formatter.format.bind(d.formatter)),d.interpolator=new rq(this.options),d.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},d.backendConnector=new nq(a(this.modules.backend),d.resourceStore,d,this.options),d.backendConnector.on("*",function(p){var _e;for(var x=arguments.length,h=new Array(x>1?x-1:0),v=1;v<x;v++)h[v-1]=arguments[v];(_e=e).emit.apply(_e,[p].concat(_to_consumable_array(h)))}),this.modules.languageDetector&&(d.languageDetector=a(this.modules.languageDetector),d.languageDetector.init&&d.languageDetector.init(d,this.options.detection,this.options)),this.modules.i18nFormat&&(d.i18nFormat=a(this.modules.i18nFormat),d.i18nFormat.init&&d.i18nFormat.init(this)),this.translator=new sc(this.services,this.options),this.translator.on("*",function(p){var _e;for(var x=arguments.length,h=new Array(x>1?x-1:0),v=1;v<x;v++)h[v-1]=arguments[v];(_e=e).emit.apply(_e,[p].concat(_to_consumable_array(h)))}),this.modules.external.forEach(function(p){p.init&&p.init(_this)})}if(this.format=this.options.interpolation.format,n||(n=Qx),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var l1=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);l1.length>0&&l1[0]!=="dev"&&(this.options.lng=l1[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(function(l){_this[l]=function(){var _e_store;return(_e_store=e.store)[l].apply(_e_store,arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(function(l){_this[l]=function(){var _e_store;return(_e_store=e.store)[l].apply(_e_store,arguments),e}});var u=yd(),c=function(){var l=function(f,d){_this.isInitializing=!1,_this.isInitialized&&!_this.initializedStoreOnce&&_this.logger.warn("init: i18next is already initialized. You should call init just once!"),_this.isInitialized=!0,_this.options.isClone||_this.logger.log("initialized",_this.options),_this.emit("initialized",_this.options),u.resolve(d),n(f,d)};if(_this.languages&&!_this.isInitialized)return l(null,_this.t.bind(_this));_this.changeLanguage(_this.options.lng,l)};return this.options.resources||!this.options.initAsync?c():setTimeout(c,0),u}},{key:"loadResources",value:function loadResources(e){var _this=this;var a,o;var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Qx,i=Re(e)?e:this.language;if(typeof e=="function"&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if((i==null?void 0:i.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return n();var s=[],u=function(c){if(!c||c==="cimode")return;_this.services.languageUtils.toResolveHierarchy(c).forEach(function(f){f!=="cimode"&&s.indexOf(f)<0&&s.push(f)})};i?u(i):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(function(l){return u(l)}),(o=(a=this.options.preload)==null?void 0:a.forEach)==null||o.call(a,function(c){return u(c)}),this.services.backendConnector.load(s,this.options.ns,function(c){!c&&!_this.resolvedLanguage&&_this.language&&_this.setResolvedLanguage(_this.language),n(c)})}else n(null)}},{key:"reloadResources",value:function reloadResources(e,t,n){var i=yd();return typeof e=="function"&&(n=e,e=void 0),typeof t=="function"&&(n=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),n||(n=Qx),this.services.backendConnector.reload(e,t,function(a){i.resolve(),n(a)}),i}},{key:"use",value:function use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return e.type==="backend"&&(this.modules.backend=e),(e.type==="logger"||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type==="languageDetector"&&(this.modules.languageDetector=e),e.type==="i18nFormat"&&(this.modules.i18nFormat=e),e.type==="postProcessor"&&sH.addPostProcessor(e),e.type==="formatter"&&(this.modules.formatter=e),e.type==="3rdParty"&&this.modules.external.push(e),this}},{key:"setResolvedLanguage",value:function setResolvedLanguage(e){if(!(!e||!this.languages)&&!(["cimode","dev"].indexOf(e)>-1))for(var t=0;t<this.languages.length;t++){var n=this.languages[t];if(!(["cimode","dev"].indexOf(n)>-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}}},{key:"changeLanguage",value:function changeLanguage(e,t){var _this=this;var n=this;this.isLanguageChangingTo=e;var i=yd();this.emit("languageChanging",e);var a=function(u){_this.language=u,_this.languages=_this.services.languageUtils.toResolveHierarchy(u),_this.resolvedLanguage=void 0,_this.setResolvedLanguage(u)},o=function(u,c){c?(a(c),_this.translator.changeLanguage(c),_this.isLanguageChangingTo=void 0,_this.emit("languageChanged",c),_this.logger.log("languageChanged",c)):_this.isLanguageChangingTo=void 0,i.resolve(function(){var _n;return(_n=n).t.apply(_n,arguments)}),t&&t(u,function(){var _n;return(_n=n).t.apply(_n,arguments)})},s=function(u){var l,f;!e&&!u&&_this.services.languageDetector&&(u=[]);var c=Re(u)?u:_this.services.languageUtils.getBestMatchFromCodes(u);c&&(_this.language||a(c),_this.translator.language||_this.translator.changeLanguage(c),(f=(l=_this.services.languageDetector)==null?void 0:l.cacheUserLanguage)==null||f.call(l,c)),_this.loadResources(c,function(d){o(d,c)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?s(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(s):this.services.languageDetector.detect(s):s(e),i}},{key:"getFixedT",value:function getFixedT(e,t,n){var i=this;var a=function a2(o,s){var u;if((typeof s==="undefined"?"undefined":_type_of(s))!="object"){for(var c=arguments.length,l=new Array(c>2?c-2:0),f=2;f<c;f++)l[f-2]=arguments[f];u=i.options.overloadTranslationOptionHandler([o,s].concat(l))}else u=j({},s);u.lng=u.lng||a.lng,u.lngs=u.lngs||a.lngs,u.ns=u.ns||a.ns,u.keyPrefix!==""&&(u.keyPrefix=u.keyPrefix||n||a.keyPrefix);var d=i.options.keySeparator||".",p;return u.keyPrefix&&Array.isArray(o)?p=o.map(function(x){return"".concat(u.keyPrefix).concat(d).concat(x)}):p=u.keyPrefix?"".concat(u.keyPrefix).concat(d).concat(o):o,i.t(p,u)};return Re(e)?a.lng=e:a.lngs=e,a.ns=t,a.keyPrefix=n,a}},{key:"t",value:function t(){var _i1;var i;for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(i=this.translator)==null?void 0:(_i1=i).translate.apply(_i1,_to_consumable_array(t))}},{key:"exists",value:function exists(){var _i1;var i;for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(i=this.translator)==null?void 0:(_i1=i).exists.apply(_i1,_to_consumable_array(t))}},{key:"setDefaultNamespace",value:function setDefaultNamespace(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function hasLoadedNamespace(e){var _this=this;var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var n=t.lng||this.resolvedLanguage||this.languages[0],i=this.options?this.options.fallbackLng:!1,a=this.languages[this.languages.length-1];if(n.toLowerCase()==="cimode")return!0;var o=function(s,u){var c=_this.services.backendConnector.state["".concat(s,"|").concat(u)];return c===-1||c===0||c===2};if(t.precheck){var s=t.precheck(this,o);if(s!==void 0)return s}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||o(n,e)&&(!i||o(a,e)))}},{key:"loadNamespaces",value:function loadNamespaces(e,t){var _this=this;var n=yd();return this.options.ns?(Re(e)&&(e=[e]),e.forEach(function(i){_this.options.ns.indexOf(i)<0&&_this.options.ns.push(i)}),this.loadResources(function(i){n.resolve(),t&&t(i)}),n):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function loadLanguages(e,t){var _this=this;var n=yd();Re(e)&&(e=[e]);var i=this.options.preload||[],a=e.filter(function(o){return i.indexOf(o)<0&&_this.services.languageUtils.isSupportedCode(o)});return a.length?(this.options.preload=i.concat(a),this.loadResources(function(o){n.resolve(),t&&t(o)}),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function dir(e){var i,a;if(e||(e=this.resolvedLanguage||(((i=this.languages)==null?void 0:i.length)>0?this.languages[0]:this.language)),!e)return"rtl";var t=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],n=((a=this.services)==null?void 0:a.languageUtils)||new Zx(iH());return t.indexOf(n.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function cloneInstance(){var _this=this;var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Qx,n=e.forkResourceStore;n&&delete e.forkResourceStore;var i=Se(j(j({},this.options),e),{isClone:!0}),a=new fs(i);if((e.debug!==void 0||e.prefix!==void 0)&&(a.logger=a.logger.clone(e)),["store","services","language"].forEach(function(s){a[s]=_this[s]}),a.services=j({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},n){var s=Object.keys(this.store.data).reduce(function(u,c){return u[c]=j({},_this.store.data[c]),Object.keys(u[c]).reduce(function(l,f){return l[f]=j({},u[c][f]),l},{})},{});a.store=new Jx(s,i),a.services.resourceStore=a.store}return a.translator=new sc(a.services,i),a.translator.on("*",function(s){var _a;for(var u=arguments.length,c=new Array(u>1?u-1:0),l=1;l<u;l++)c[l-1]=arguments[l];(_a=a).emit.apply(_a,[s].concat(_to_consumable_array(c)))}),a.init(i,t),a.translator.options=i,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}},{key:"toJSON",value:function toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}],[{key:"createInstance",value:function createInstance(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new fs(e,t)}}]);return fs1}(oc),at=fs.createInstance();at.createInstance=fs.createInstance;var zbr=at.createInstance,Kbr=at.dir,Hbr=at.init,Qbr=at.loadResources,Xbr=at.reloadResources,Ybr=at.use,Jbr=at.changeLanguage,Zbr=at.getFixedT,e_r=at.t,r_r=at.exists,t_r=at.setDefaultNamespace,n_r=at.hasLoadedNamespace,i_r=at.loadNamespaces,a_r=at.loadLanguages;var uH={settings:{account:{name:"Account",desc:"Enter your WebDAV account",placeholder:"Enter your account"},credential:{name:"Credential",desc:"Enter your WebDAV credential",placeholder:"Enter your credential"},checkConnection:{name:"Check connection",desc:"Click to check WebDAV connection",success:"WebDAV connection successful",failure:"WebDAV connection failed",successButton:"Connected ✓",failureButton:"Failed \xd7"},remoteDir:{name:"Remote directory",desc:"Enter the remote directory",placeholder:"Enter the remote directory",edit:"Edit"},login:{name:"Login",desc:"Click to login",success:"Login successful",failure:"Login failed, please try again"},loginMode:{name:"Login mode",manual:"Manual input",sso:"Single sign-on"},ssoStatus:{loggedIn:"Logged in",notLoggedIn:"Not logged in",logout:"Logout",logoutSuccess:"Logged out successfully"},useGitStyle:{name:"Use git-style conflict markers",desc:"Use <<<<<<< and >>>>>>> markers for conflicts instead of HTML tags"},backupWarning:{name:"Backup warning",desc:"⚠️ Note: Sync process will modify or delete local files. Please backup important files before syncing."},conflictStrategy:{name:"Conflict resolution strategy",desc:"Choose how to resolve file conflicts. \nNote: We recommend backing up important files before using auto-merge to prevent data loss.",diffMatchPatch:"Smart merge (recommended)",latestTimestamp:"Use latest version",skip:"Skip conflicts"},confirmBeforeSync:{name:"Confirm before sync",desc:"Show pending tasks and execute after confirmation"},realtimeSync:{name:"Real-time sync",desc:"Automatically sync changes as soon as files are modified"},syncMode:{name:"Sync mode",desc:"Choose between strict or loose sync mode. Loose mode is recommended for users with many files for faster syncing. In loose mode, files with the same name and equal size that have no sync record will be ignored.",strict:"Strict",loose:"Loose"},startupSyncDelay:{name:"Auto-sync on startup",desc:"Set the number of seconds after startup to automatically perform a sync. Set to 0 to disable auto-sync on startup.",placeholder:"Enter seconds (e.g., 5, 0 to disable)"},autoSyncInterval:{name:"Auto-sync interval",desc:"Set the interval for automatic background synchronization (in minutes). Set to 0 to disable automatic sync.",placeholder:"Enter minutes (e.g., 5, 0 to disable)"},sections:{account:"Account",common:"General",filters:"Filter rules"},logout:{confirmTitle:"Confirm logout",confirmMessage:"Are you sure you want to log out? You will need to log in again to continue syncing.",confirm:"Confirm logout",cancel:"Cancel"},help:{name:"How to get WebDAV account and credential?",desc:"Click to view help documentation"},filters:{name:"Sync filters",desc:"Add paths to filter files or folders, e.g.: .DS_Store, .git",add:"Add rule",remove:"Remove",confirmRemove:"Confirm remove",edit:"Edit rules",save:"Save",cancel:"Cancel",placeholder:"e.g.: .DS_Store, *.pdf",description:"Files or folders matching these patterns will be ignored during sync. Use * for wildcard matching.",exclude:{name:"Exclusion rules",desc:"Files/folders matching these patterns will NOT be synced."},include:{name:"Inclusion rules",desc:"Files/folders matching these patterns WILL be synced (if defined)."}},skipLargeFiles:{name:"Skip large files",desc:"Files exceeding this size will be skipped during synchronization. If sync issues occur, try lowering this value. Leave empty for no limit.",placeholder:"e.g., 10 MiB or 500 KiB"},log:{title:"Debug logs",name:"Console logs",desc:"View console output and debug information",button:"View logs",saveToNote:"Save to note",savedToNote:"Logs saved to note: {{fileName}}",saveError:"Failed to save logs",clear:"Clear",cleared:"Console logs cleared",clearName:"Clear logs",clearDesc:"Delete all console output records"},cache:{title:"Cache management",dump:"Export",dumpName:"Cache management",dumpDesc:"The plugin stores remote folder information locally. When switching devices, this data is lost and must be rebuilt before syncing. With many files, rebuilding can be slow due to rate limits. Export saves this data to Nutstore; Import retrieves it, allowing immediate syncing on new devices.",restoreName:"Import cache",restoreDesc:"Import previously exported cache data from Nutstore to your device. This lets you sync immediately on a new device without the long waiting time normally needed to scan all your files.",restore:"Import",clearName:"Clear local cache",clearDesc:"Delete local cache data stored on this device only. This action cannot be undone and will require rebuilding the cache before the next sync. Your Nutstore data remains intact.",clear:"Clear",confirm:"Confirm clear",cleared:"Cache cleared successfully",clearModal:{title:"Clear cache",description:"Select which cache types to clear. This action cannot be undone.",cancel:"Cancel",confirm:"Confirm clear",deltaCache:{name:"Delta cache",desc:"Stores information about incremental file changes."},syncRecordCache:{name:"Sync record cache",desc:"Tracks synchronization status for each file."},blobCache:{name:"File snapshot cache",desc:"Stores file snapshots needed for comparing changes during sync."},clearedType:"Cleared: {{types}}",nothingSelected:"Please select at least one cache type to clear."},exportSuccess:"Cache saved to plugin data file successfully",exportError:"Error saving cache: {{message}}",noDataToRestore:"No saved cache data found",restoreSuccess:"Cache restored successfully",restoreError:"Error restoring cache: {{message}}",remoteCacheDir:{name:"Remote cache directory",desc:"Enter the remote directory for cache storage",placeholder:"Enter the remote cache directory",edit:"Edit"},saveModal:{title:"Save cache",description:"Enter a filename to save the current cache state. The file will be saved in the remote cache directory.",filename:"Filename",save:"Save",cancel:"Cancel",success:"Cache saved successfully",error:"Error saving cache: {{message}}"},restoreModal:{title:"Restore cache",description:"Select a cache file to restore from or delete.",restore:"Restore",delete:"Delete",deleteConfirm:"Confirm delete",close:"Close",refresh:"Refresh",noFiles:"No cache files found",fileNotFound:"Cache file not found",success:"Cache restored successfully",error:"Error restoring cache: {{message}}",loadError:"Error loading file list: {{message}}",deleteSuccess:"Cache file deleted successfully",deleteError:"Error deleting cache file: {{message}}"}}},sync:{failed:"Sync failed!",error:{folderButFile:"Expected folder but found file: {{path}}",notFound:"Not found: {{path}}",localPathNotFound:"Local path not found: {{path}}",cannotMergeBinary:"Cannot merge binary file",failedToAutoMerge:"Failed to auto merge",failedToUploadMerged:"Failed to upload merged content",conflictsMarkedInFile:"Conflicts found and marked in file",requestsTooFrequent:"Requests too frequent, please wait a few minutes and try again"},requestsTooFrequent:"Requests too frequent, plugin will resume sync at {{time}}",start:"⌛️ Sync started",complete:"✅ Sync completed",completeWithFailed:"❌ Sync completed with {{failedCount}} failed tasks",failedWithError:"Sync failed with error: {{error}}",progress:"Sync progress: {{percent}}%",startButton:"Start sync",stopButton:"Stop sync",hideButton:"Hide",closeButton:"Close",showProgressButton:"Show sync progress",notSyncing:"No sync currently in progress",percentComplete:"{{percent}}%",currentFile:"{{path}}",filePath:"{{path}}",progressTitle:"Sync progress",progressStats:"Completed: {{completed}} / {{total}} tasks",completedFilesTitle:"Completed tasks",syncingFiles:"Syncing files...",updatingCache:"Updating local cache...",cacheUpdated:"Local cache updated.",failedStatus:"Sync failed",cancelled:"Sync cancelled",suggestUseClientForManyTasks:"Tip: When there are many sync tasks, we recommend using the Nutstore client for better performance and stability. The plugin is more suitable for mobile use!",modalTitle:"Syncing",cancelButton:"Cancel sync",progressText:"Syncing files",fileOp:{createLocalDir:"Create local directory",createRemoteDir:"Create remote directory",createRemoteDirs:"Create multi-level directories",download:"Download",filenameError:"Invalid path characters",merge:"Merge",removeLocal:"Remove local",removeRemote:"Remove remote",removeRemoteRecursively:"Remove remote recursively",rename:"Rename",sync:"Sync",upload:"Upload",noop:"Skip",cleanRecord:"Clean record",skip:"Skip"},confirmModal:{title:"Sync confirmation",message:"⚠️ Please note:\n\n1. Sync operation may modify or delete local files\n2. We recommend backing up important files before syncing\n3. In case of file conflicts, manual resolution may be required\n4. Initial sync will process all files and may take longer, please be patient\n\nAre you sure you want to start syncing?",confirm:"Confirm sync",cancel:"Cancel",remoteDir:"Remote directory: {{dir}}",strategy:"Sync strategy: {{strategy}}"}},taskList:{title:"Sync task list",instruction:'Please review the tasks below. Click "Continue" to execute the selected tasks, or "Cancel" to skip this sync.',execute:"Execute",action:"Action",localPath:"Local path",remotePath:"Remote path",continue:"Continue",cancel:"Cancel"},deleteConfirm:{title:"Confirm local file deletion",instruction:"⚠️ The following local files will be deleted during auto-sync (because they were deleted remotely).\n\nCheck files to delete; unchecked files will be re-uploaded:",warningNotice:"Local files will be deleted, please confirm",select:"Select",filePath:"File path",deleteAndReupload:"Delete selected, re-upload unchecked",skipForNow:"Skip for now"},textAreaModal:{copy:"Copy",close:"Close",copied:"Text copied to clipboard"}};var cH={settings:{title:"WebDAV 设置",account:{name:"账号",desc:"输入你的 WebDAV 账号",placeholder:"输入你的账号"},credential:{name:"凭证",desc:"输入你的 WebDAV 凭证",placeholder:"输入你的凭证"},remoteDir:{name:"远程目录",desc:"输入远程目录",placeholder:"输入远程目录",edit:"编辑"},checkConnection:{name:"检查连接",desc:"点击检查 WebDAV 连接",success:"WebDAV 连接成功",failure:"WebDAV 连接失败",successButton:"连接成功 ✓",failureButton:"连接失败 \xd7"},login:{name:"登录",desc:"点击登录",success:"登录成功",failure:"登录失败,请重试"},useGitStyle:{name:"使用 Git 样式的冲突标记",desc:"启用后将使用 <<<<<<< 和 >>>>>>> 等标记来显示冲突,而不是 HTML 标记"},backupWarning:{name:"备份提醒",desc:"⚠️ 请注意:同步过程会修改或删除本地文件,建议在同步前备份重要文件。"},conflictStrategy:{name:"冲突解决策略",desc:"选择解决文件冲突的方式。\n注意建议在使用自动合并功能前先手动备份重要文件以防数据丢失。",diffMatchPatch:"智能合并(推荐)",latestTimestamp:"使用最新版本",skip:"跳过冲突"},loginMode:{name:"登录方式",manual:"手动输入",sso:"单点登录"},ssoStatus:{loggedIn:"已登录",notLoggedIn:"未登录",logout:"退出登录",logoutSuccess:"已退出登录"},logout:{confirmTitle:"确认退出",confirmMessage:"确定要退出登录吗?退出后需要重新登录才能继续同步。",confirm:"确认退出",cancel:"取消"},help:{name:"如何获取 WebDAV 账号和凭证?",desc:"点击查看帮助文档"},sections:{account:"账号设置",common:"通用设置",filters:"过滤规则"},confirmBeforeSync:{name:"同步前确认",desc:"同步前显示待执行的任务列表,确认后再执行"},realtimeSync:{name:"实时同步",desc:"文件修改后自动进行同步"},syncMode:{name:"同步模式",desc:"建议在文件较多的情况下选择宽松模式,同步速度更快。宽松模式会忽略同名且大小相等但没有同步记录的文件。",strict:"严格",loose:"宽松"},startupSyncDelay:{name:"启动后自动同步",desc:"设置启动后第几秒自动执行一次同步。设置为 0 则禁用启动时自动同步。",placeholder:"输入秒数 (例如 5, 0 则禁用)"},autoSyncInterval:{name:"定时自动同步",desc:"设置每隔多长时间在后台自动执行一次同步(分钟)。设置为 0 则禁用定时自动同步。",placeholder:"输入分钟数 (例如 5, 0 则禁用)"},filters:{name:"过滤器",desc:"添加同步时需要忽略文件或文件夹路径,例如: .DS_Store, .git",add:"添加规则",remove:"删除",confirmRemove:"确认删除",edit:"编辑规则",save:"保存",cancel:"取消",placeholder:"例如: .DS_Store, *.pdf",description:"符合这些规则的文件或文件夹在同步时会被忽略。使用 * 作为通配符。",exclude:{name:"排除规则",desc:"符合规则的文件/文件夹将不会被同步"},include:{name:"包含规则",desc:"符合规则的文件/文件夹会被同步,如果和排除规则有冲突,会优先选择包含规则。"}},skipLargeFiles:{name:"跳过大文件",desc:"同步时将跳过超过此大小的文件。如遇同步崩溃,可尝试降低此值。留空表示不限制。",placeholder:"例如10 MiB 或 500 KiB"},log:{title:"调试日志",name:"控制台日志",desc:"查看控制台输出和调试信息",button:"查看",saveToNote:"保存到笔记",savedToNote:"日志已保存到笔记: {{fileName}}",saveError:"保存日志失败",clear:"清除",cleared:"控制台日志已清除",clearName:"清除日志",clearDesc:"删除所有控制台输出记录"},cache:{title:"缓存管理",dumpName:"缓存管理",dumpDesc:"插件会在您的设备上保存远程文件夹的目录信息。当您更换设备时,这些信息会丢失,需要在首次同步前重新获取。如果您的文件数量较多,可能会触发坚果云的访问频率限制,导致获取过程变慢。导出功能可将这些信息保存到坚果云,导入功能则可将数据恢复到新设备,使您无需等待即可直接同步。",dump:"导出",restoreName:"导入缓存",restoreDesc:"从坚果云导入之前导出的缓存数据到当前设备。这样可以避免在新设备上等待漫长的文件扫描过程,让您直接进行同步。",restore:"导入",clearName:"清除本地缓存",clearDesc:"删除当前设备上的本地缓存数据。此操作无法撤销,会导致下次同步前需要重新建立缓存。仅影响当前设备,不会影响您在坚果云中的数据。",clear:"清除",confirm:"确认清除",cleared:"缓存已成功清除",clearModal:{title:"清除缓存",description:"选择需要清除的缓存类型。此操作无法撤销。",cancel:"取消",confirm:"确认清除",deltaCache:{name:"增量同步缓存",desc:"存储文件增量变化的相关信息。"},syncRecordCache:{name:"同步记录缓存",desc:"跟踪每个文件的同步状态。"},blobCache:{name:"文件快照缓存",desc:"存储用于同步时对比变化的文件快照。"},clearedType:"已清除: {{types}}",nothingSelected:"请至少选择一种缓存类型进行清除。"},exportSuccess:"缓存已成功保存到插件数据文件",exportError:"保存缓存出错: {{message}}",noDataToRestore:"未找到已保存的缓存数据",restoreSuccess:"缓存恢复成功",restoreError:"恢复缓存出错: {{message}}",remoteCacheDir:{name:"远程缓存目录",desc:"输入用于存储缓存的远程目录",placeholder:"输入远程缓存目录",edit:"编辑"},saveModal:{title:"保存缓存",description:"输入文件名以保存当前缓存状态。文件将保存在远程缓存目录中。",filename:"文件名",save:"保存",cancel:"取消",success:"缓存保存成功",error:"保存缓存出错: {{message}}"},restoreModal:{title:"恢复缓存",description:"选择要恢复或删除的缓存文件。",restore:"恢复",delete:"删除",deleteConfirm:"确认删除",close:"关闭",refresh:"刷新",noFiles:"未找到缓存文件",fileNotFound:"未找到缓存文件",success:"缓存恢复成功",error:"恢复缓存出错: {{message}}",loadError:"加载文件列表出错: {{message}}",deleteSuccess:"缓存文件删除成功",deleteError:"删除缓存文件出错: {{message}}"}}},sync:{failed:"同步失败!",error:{folderButFile:"期望是文件夹,却发现是文件: {{path}}",notFound:"未找到: {{path}}",localPathNotFound:"本地路径未找到: {{path}}",cannotMergeBinary:"无法合并二进制文件",failedToAutoMerge:"自动合并失败",failedToUploadMerged:"上传合并内容失败",conflictsMarkedInFile:"发现冲突,已在文件中标记",requestsTooFrequent:"请求过于频繁,请等待几分钟后再试"},requestsTooFrequent:"请求过于频繁,插件将在 {{time}} 后自动继续同步任务",start:"⌛️ 同步开始",complete:"✅ 同步完成",completeWithFailed:"❌ 同步完成,但有 {{failedCount}} 个任务失败",failedWithError:"同步失败,错误信息: {{error}}",progress:"同步进度: {{percent}}%",startButton:"开始同步",stopButton:"停止同步",hideButton:"隐藏",closeButton:"关闭",showProgressButton:"显示同步进度",notSyncing:"尚未开始同步",percentComplete:"{{percent}}%",currentFile:"{{path}}",filePath:"{{path}}",progressTitle:"同步进度",progressStats:"已完成: {{completed}} / {{total}} 个任务",completedFilesTitle:"已完成的任务",syncingFiles:"正在同步文件...",updatingCache:"正在更新本地缓存...",cacheUpdated:"本地缓存已更新。",failedStatus:"同步失败",cancelled:"同步已取消",suggestUseClientForManyTasks:"提示:当同步任务较多时,建议使用坚果云客户端同步,可获得更好的性能和稳定性,插件更适合在移动端使用!",modalTitle:"同步进行中",cancelButton:"取消同步",progressText:"正在同步文件",fileOp:{createLocalDir:"创建本地目录",createRemoteDir:"创建远程目录",createRemoteDirs:"创建多级目录",download:"下载",filenameError:"路径含无效字符",merge:"合并",removeLocal:"删除本地",removeRemote:"删除远程",removeRemoteRecursively:"递归删除远程",rename:"重命名",sync:"同步",upload:"上传",noop:"跳过",cleanRecord:"清理记录",skip:"跳过"},confirmModal:{title:"同步确认",message:"⚠️ 请注意:\n\n1. 同步操作可能会修改或删除本地文件\n2. 建议在同步前手动备份重要文件\n3. 如果出现文件冲突,可能需要手动解决\n4. 首次同步需要处理所有文件,可能会比较慢,请耐心等待\n\n确定要开始同步吗",confirm:"确认同步",cancel:"取消",remoteDir:"远程目录:{{dir}}",strategy:"同步策略:{{strategy}}"}},taskList:{title:"同步任务列表",instruction:'请检查以下待执行的任务。点击"继续"将执行选中的任务,点击"取消"则跳过本次同步。',execute:"执行",action:"行为",localPath:"本地路径",remotePath:"远程路径",continue:"继续",cancel:"取消"},deleteConfirm:{title:"确认删除本地文件",instruction:"⚠️ 在自动同步过程中检测到以下本地文件将被删除(因远程已删除)。\n\n勾选要删除的文件未勾选的文件将重新上传到远程",warningNotice:"检测到本地文件将被删除,请确认",select:"选择",filePath:"文件路径",deleteAndReupload:"删除选中的,重新上传未选中的",skipForNow:"暂时忽略"},textAreaModal:{copy:"复制",close:"关闭",copied:"文本已复制到剪贴板"}};var j$e="translation",$$e={zh:{translation:cH},en:{translation:uH}};at.init({ns:["translation"],defaultNS:j$e,resources:$$e,fallbackLng:"en",interpolation:{escapeValue:!1}});var P=at;var V$e=(typeof global==="undefined"?"undefined":_type_of(global))=="object"&&global&&global.Object===Object&&global,eg=V$e;var G$e=(typeof self==="undefined"?"undefined":_type_of(self))=="object"&&self&&self.Object===Object&&self,z$e=eg||G$e||Function("return this")(),He=z$e;var K$e=He.Symbol,Nt=K$e;var lH=Object.prototype,H$e=lH.hasOwnProperty,Q$e=lH.toString,_d=Nt?Nt.toStringTag:void 0;function X$e(r){var e=H$e.call(r,_d),t=r[_d];try{r[_d]=void 0;var n=!0}catch(a){}var i=Q$e.call(r);return n&&(e?r[_d]=t:delete r[_d]),i}var fH=X$e;var Y$e=Object.prototype,J$e=Y$e.toString;function Z$e(r){return J$e.call(r)}var dH=Z$e;var eVe="[object Null]",rVe="[object Undefined]",pH=Nt?Nt.toStringTag:void 0;function tVe(r){return r==null?r===void 0?rVe:eVe:pH&&pH in Object(r)?fH(r):dH(r)}var yr=tVe;function nVe(r){return r!=null&&(typeof r==="undefined"?"undefined":_type_of(r))=="object"}var Xe=nVe;var iVe="[object Symbol]";function aVe(r){return(typeof r==="undefined"?"undefined":_type_of(r))=="symbol"||Xe(r)&&yr(r)==iVe}var jn=aVe;function oVe(r,e){for(var t=-1,n=r==null?0:r.length,i=Array(n);++t<n;)i[t]=e(r[t],t,r);return i}var rg=oVe;var sVe=Array.isArray,ir=sVe;var uVe=1/0,hH=Nt?Nt.prototype:void 0,xH=hH?hH.toString:void 0;function gH(r){if(typeof r=="string")return r;if(ir(r))return rg(r,gH)+"";if(jn(r))return xH?xH.call(r):"";var e=r+"";return e=="0"&&1/r==-uVe?"-0":e}var vH=gH;var cVe=/\s/;function lVe(r){for(var e=r.length;e--&&cVe.test(r.charAt(e)););return e}var mH=lVe;var fVe=/^\s+/;function dVe(r){return r&&r.slice(0,mH(r)+1).replace(fVe,"")}var yH=dVe;function pVe(r){var e=typeof r==="undefined"?"undefined":_type_of(r);return r!=null&&(e=="object"||e=="function")}var Tr=pVe;var bH=0/0,hVe=/^[-+]0x[0-9a-f]+$/i,xVe=/^0b[01]+$/i,gVe=/^0o[0-7]+$/i,vVe=parseInt;function mVe(r){if(typeof r=="number")return r;if(jn(r))return bH;if(Tr(r)){var e=typeof r.valueOf=="function"?r.valueOf():r;r=Tr(e)?e+"":e}if(typeof r!="string")return r===0?r:+r;r=yH(r);var t=xVe.test(r);return t||gVe.test(r)?vVe(r.slice(2),t?2:8):hVe.test(r)?bH:+r}var Vi=mVe;var _H=1/0,yVe=17976931348623157e292;function bVe(r){if(!r)return r===0?r:0;if(r=Vi(r),r===_H||r===-_H){var e=r<0?-1:1;return e*yVe}return r===r?r:0}var wH=bVe;function _Ve(r){var e=wH(r),t=e%1;return e===e?t?e-t:e:0}var wd=_Ve;function wVe(r){return r}var Ya=wVe;var SVe="[object AsyncFunction]",EVe="[object Function]",qVe="[object GeneratorFunction]",TVe="[object Proxy]";function AVe(r){if(!Tr(r))return!1;var e=yr(r);return e==EVe||e==qVe||e==SVe||e==TVe}var ds=AVe;var OVe=He["__core-js_shared__"],tg=OVe;var SH=function(){var r=/[^.]+$/.exec(tg&&tg.keys&&tg.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}();function RVe(r){return!!SH&&SH in r}var EH=RVe;var IVe=Function.prototype,PVe=IVe.toString;function CVe(r){if(r!=null){try{return PVe.call(r)}catch(e){}try{return r+""}catch(e){}}return""}var Gi=CVe;var NVe=/[\\^$.*+?()[\]{}|]/g,kVe=/^\[object .+?Constructor\]$/,LVe=Function.prototype,DVe=Object.prototype,WVe=LVe.toString,MVe=DVe.hasOwnProperty,FVe=RegExp("^"+WVe.call(MVe).replace(NVe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function BVe(r){if(!Tr(r)||EH(r))return!1;var e=ds(r)?FVe:kVe;return e.test(Gi(r))}var qH=BVe;function UVe(r,e){return r==null?void 0:r[e]}var TH=UVe;function jVe(r,e){var t=TH(r,e);return qH(t)?t:void 0}var Qt=jVe;var $Ve=Qt(He,"WeakMap"),ps=$Ve;var VVe=ps&&new ps,uc=VVe;var GVe=uc?function GVe1(r,e){return uc.set(r,e),r}:Ya,ng=GVe;var AH=Object.create,zVe=function(){function r(){}return function(e){if(!Tr(e))return{};if(AH)return AH(e);r.prototype=e;var t=new r;return r.prototype=void 0,t}}(),Ja=zVe;function KVe(r){return function(){var e=arguments;switch(e.length){case 0:return new r;case 1:return new r(e[0]);case 2:return new r(e[0],e[1]);case 3:return new r(e[0],e[1],e[2]);case 4:return new r(e[0],e[1],e[2],e[3]);case 5:return new r(e[0],e[1],e[2],e[3],e[4]);case 6:return new r(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new r(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var t=Ja(r.prototype),n=r.apply(t,e);return Tr(n)?n:t}}var zi=KVe;var HVe=1;function QVe(r,e,t){var n=e&HVe,i=zi(r);function a(){var o=this&&this!==He&&_instanceof(this,a)?i:r;return o.apply(n?t:this,arguments)}return a}var OH=QVe;function XVe(r,e,t){switch(t.length){case 0:return r.call(e);case 1:return r.call(e,t[0]);case 2:return r.call(e,t[0],t[1]);case 3:return r.call(e,t[0],t[1],t[2])}return r.apply(e,t)}var cc=XVe;var YVe=Math.max;function JVe(r,e,t,n){for(var i=-1,a=r.length,o=t.length,s=-1,u=e.length,c=YVe(a-o,0),l=Array(u+c),f=!n;++s<u;)l[s]=e[s];for(;++i<o;)(f||i<a)&&(l[t[i]]=r[i]);for(;c--;)l[s++]=r[i++];return l}var ig=JVe;var ZVe=Math.max;function eGe(r,e,t,n){for(var i=-1,a=r.length,o=-1,s=t.length,u=-1,c=e.length,l=ZVe(a-s,0),f=Array(l+c),d=!n;++i<l;)f[i]=r[i];for(var p=i;++u<c;)f[p+u]=e[u];for(;++o<s;)(d||i<a)&&(f[p+t[o]]=r[i++]);return f}var ag=eGe;function rGe(r,e){for(var t=r.length,n=0;t--;)r[t]===e&&++n;return n}var RH=rGe;function tGe(){}var lc=tGe;var nGe=0xffffffff;function og(r){this.__wrapped__=r,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=nGe,this.__views__=[]}og.prototype=Ja(lc.prototype);og.prototype.constructor=og;var fc=og;function iGe(){}var Sd=iGe;var aGe=uc?function aGe1(r){return uc.get(r)}:Sd,sg=aGe;var oGe={},iq=oGe;var sGe=Object.prototype,uGe=sGe.hasOwnProperty;function cGe(r){for(var e=r.name+"",t=iq[e],n=uGe.call(iq,e)?t.length:0;n--;){var i=t[n],a=i.func;if(a==null||a==r)return i.name}return e}var IH=cGe;function ug(r,e){this.__wrapped__=r,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=void 0}ug.prototype=Ja(lc.prototype);ug.prototype.constructor=ug;var Ed=ug;function lGe(r,e){var t=-1,n=r.length;for(e||(e=Array(n));++t<n;)e[t]=r[t];return e}var dc=lGe;function fGe(r){if(_instanceof(r,fc))return r.clone();var e=new Ed(r.__wrapped__,r.__chain__);return e.__actions__=dc(r.__actions__),e.__index__=r.__index__,e.__values__=r.__values__,e}var PH=fGe;var dGe=Object.prototype,pGe=dGe.hasOwnProperty;function cg(r){if(Xe(r)&&!ir(r)&&!_instanceof(r,fc)){if(_instanceof(r,Ed))return r;if(pGe.call(r,"__wrapped__"))return PH(r)}return new Ed(r)}cg.prototype=lc.prototype;cg.prototype.constructor=cg;var CH=cg;function hGe(r){var e=IH(r),t=CH[e];if(typeof t!="function"||!(e in fc.prototype))return!1;if(r===t)return!0;var n=sg(t);return!!n&&r===n[0]}var NH=hGe;var xGe=800,gGe=16,vGe=Date.now;function mGe(r){var e=0,t=0;return function(){var n=vGe(),i=gGe-(n-t);if(t=n,i>0){if(++e>=xGe)return arguments[0]}else e=0;return r.apply(void 0,arguments)}}var lg=mGe;var yGe=lg(ng),fg=yGe;var bGe=/\{\n\/\* \[wrapped with (.+)\] \*/,_Ge=/,? & /;function wGe(r){var e=r.match(bGe);return e?e[1].split(_Ge):[]}var kH=wGe;var SGe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function EGe(r,e){var t=e.length;if(!t)return r;var n=t-1;return e[n]=(t>1?"& ":"")+e[n],e=e.join(t>2?", ":" "),r.replace(SGe,"{\n/* [wrapped with "+e+"] */\n")}var LH=EGe;function qGe(r){return function(){return r}}var DH=qGe;var TGe=function(){try{var r=Qt(Object,"defineProperty");return r({},"",{}),r}catch(e){}}(),pc=TGe;var AGe=pc?function AGe1(r,e){return pc(r,"toString",{configurable:!0,enumerable:!1,value:DH(e),writable:!0})}:Ya,WH=AGe;var OGe=lg(WH),dg=OGe;function RGe(r,e){for(var t=-1,n=r==null?0:r.length;++t<n&&e(r[t],t,r)!==!1;);return r}var pg=RGe;function IGe(r,e,t,n){for(var i=r.length,a=t+(n?1:-1);n?a--:++a<i;)if(e(r[a],a,r))return a;return-1}var MH=IGe;function PGe(r){return r!==r}var FH=PGe;function CGe(r,e,t){for(var n=t-1,i=r.length;++n<i;)if(r[n]===e)return n;return-1}var BH=CGe;function NGe(r,e,t){return e===e?BH(r,e,t):MH(r,FH,t)}var UH=NGe;function kGe(r,e){var t=r==null?0:r.length;return!!t&&UH(r,e,0)>-1}var jH=kGe;var LGe=1,DGe=2,WGe=8,MGe=16,FGe=32,BGe=64,UGe=128,jGe=256,$Ge=512,VGe=[["ary",UGe],["bind",LGe],["bindKey",DGe],["curry",WGe],["curryRight",MGe],["flip",$Ge],["partial",FGe],["partialRight",BGe],["rearg",jGe]];function GGe(r,e){return pg(VGe,function(t){var n="_."+t[0];e&t[1]&&!jH(r,n)&&r.push(n)}),r.sort()}var $H=GGe;function zGe(r,e,t){var n=e+"";return dg(r,LH(n,$H(kH(n),t)))}var hg=zGe;var KGe=1,HGe=2,QGe=4,XGe=8,VH=32,GH=64;function YGe(r,e,t,n,i,a,o,s,u,c){var l=e&XGe,f=l?o:void 0,d=l?void 0:o,p=l?a:void 0,x=l?void 0:a;e|=l?VH:GH,e&=~(l?GH:VH),e&QGe||(e&=~(KGe|HGe));var h=[r,e,i,p,f,x,d,s,u,c],v=t.apply(void 0,h);return NH(r)&&fg(v,h),v.placeholder=n,hg(v,r,e)}var xg=YGe;function JGe(r){var e=r;return e.placeholder}var hc=JGe;var ZGe=0x1fffffffffffff,eze=/^(?:0|[1-9]\d*)$/;function rze(r,e){var t=typeof r==="undefined"?"undefined":_type_of(r);return e=e==null?ZGe:e,!!e&&(t=="number"||t!="symbol"&&eze.test(r))&&r>-1&&r%1==0&&r<e}var Za=rze;var tze=Math.min;function nze(r,e){for(var t=r.length,n=tze(e.length,t),i=dc(r);n--;){var a=e[n];r[n]=Za(a,t)?i[a]:void 0}return r}var zH=nze;var KH="__lodash_placeholder__";function ize(r,e){for(var t=-1,n=r.length,i=0,a=[];++t<n;){var o=r[t];(o===e||o===KH)&&(r[t]=KH,a[i++]=t)}return a}var Ki=ize;var aze=1,oze=2,sze=8,uze=16,cze=128,lze=512;function HH(r,e,t,n,i,a,o,s,u,c){var l=e&cze,f=e&aze,d=e&oze,p=e&(sze|uze),x=e&lze,h=d?void 0:zi(r);function v(){for(var y=arguments.length,m=Array(y),b=y;b--;)m[b]=arguments[b];if(p)var S=hc(v),T=RH(m,S);if(n&&(m=ig(m,n,i,p)),a&&(m=ag(m,a,o,p)),y-=T,p&&y<c){var w=Ki(m,S);return xg(r,e,HH,v.placeholder,t,m,w,s,u,c-y)}var R=f?t:this,_=d?R[r]:r;return y=m.length,s?m=zH(m,s):x&&y>1&&m.reverse(),l&&u<y&&(m.length=u),this&&this!==He&&_instanceof(this,v)&&(_=h||zi(_)),_.apply(R,m)}return v}var gg=HH;function fze(r,e,t){var n=zi(r);function i(){for(var a=arguments.length,o=Array(a),s=a,u=hc(i);s--;)o[s]=arguments[s];var c=a<3&&o[0]!==u&&o[a-1]!==u?[]:Ki(o,u);if(a-=c.length,a<t)return xg(r,e,gg,i.placeholder,void 0,o,c,void 0,void 0,t-a);var l=this&&this!==He&&_instanceof(this,i)?n:r;return cc(l,this,o)}return i}var QH=fze;var dze=1;function pze(r,e,t,n){var i=e&dze,a=zi(r);function o(){for(var s=-1,u=arguments.length,c=-1,l=n.length,f=Array(l+u),d=this&&this!==He&&_instanceof(this,o)?a:r;++c<l;)f[c]=n[c];for(;u--;)f[c++]=arguments[++s];return cc(d,i?t:this,f)}return o}var XH=pze;var YH="__lodash_placeholder__",aq=1,hze=2,xze=4,JH=8,qd=128,ZH=256,gze=Math.min;function vze(r,e){var t=r[1],n=e[1],i=t|n,a=i<(aq|hze|qd),o=n==qd&&t==JH||n==qd&&t==ZH&&r[7].length<=e[8]||n==(qd|ZH)&&e[7].length<=e[8]&&t==JH;if(!(a||o))return r;n&aq&&(r[2]=e[2],i|=t&aq?0:xze);var s=e[3];if(s){var u=r[3];r[3]=u?ig(u,s,e[4]):s,r[4]=u?Ki(r[3],YH):e[4]}return s=e[5],s&&(u=r[5],r[5]=u?ag(u,s,e[6]):s,r[6]=u?Ki(r[5],YH):e[6]),s=e[7],s&&(r[7]=s),n&qd&&(r[8]=r[8]==null?e[8]:gze(r[8],e[8])),r[9]==null&&(r[9]=e[9]),r[0]=e[0],r[1]=i,r}var eQ=vze;var mze="Expected a function",rQ=1,yze=2,oq=8,sq=16,uq=32,tQ=64,nQ=Math.max;function bze(r,e,t,n,i,a,o,s){var u=e&yze;if(!u&&typeof r!="function")throw new TypeError(mze);var c=n?n.length:0;if(c||(e&=~(uq|tQ),n=i=void 0),o=o===void 0?o:nQ(wd(o),0),s=s===void 0?s:wd(s),c-=i?i.length:0,e&tQ){var l=n,f=i;n=i=void 0}var d=u?void 0:sg(r),p=[r,e,t,n,i,l,f,a,o,s];if(d&&eQ(p,d),r=p[0],e=p[1],t=p[2],n=p[3],i=p[4],s=p[9]=p[9]===void 0?u?0:r.length:nQ(p[9]-c,0),!s&&e&(oq|sq)&&(e&=~(oq|sq)),!e||e==rQ)var x=OH(r,e,t);else e==oq||e==sq?x=QH(r,e,s):(e==uq||e==(rQ|uq))&&!i.length?x=XH(r,e,t,n):x=gg.apply(void 0,p);var h=d?ng:fg;return hg(h(x,p),r,e)}var iQ=bze;function _ze(r,e,t){e=="__proto__"&&pc?pc(r,e,{configurable:!0,enumerable:!0,value:t,writable:!0}):r[e]=t}var vg=_ze;function wze(r,e){return r===e||r!==r&&e!==e}var eo=wze;var Sze=Object.prototype,Eze=Sze.hasOwnProperty;function qze(r,e,t){var n=r[e];(!(Eze.call(r,e)&&eo(n,t))||t===void 0&&!(e in r))&&vg(r,e,t)}var mg=qze;function Tze(r,e,t,n){var i=!t;t||(t={});for(var a=-1,o=e.length;++a<o;){var s=e[a],u=n?n(t[s],r[s],s,t,r):void 0;u===void 0&&(u=r[s]),i?vg(t,s,u):mg(t,s,u)}return t}var ro=Tze;var aQ=Math.max;function Aze(r,e,t){return e=aQ(e===void 0?r.length-1:e,0),function(){for(var n=arguments,i=-1,a=aQ(n.length-e,0),o=Array(a);++i<a;)o[i]=n[e+i];i=-1;for(var s=Array(e+1);++i<e;)s[i]=n[i];return s[e]=t(o),cc(r,this,s)}}var oQ=Aze;function Oze(r,e){return dg(oQ(r,e,Ya),r+"")}var sQ=Oze;var Rze=0x1fffffffffffff;function Ize(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=Rze}var xc=Ize;function Pze(r){return r!=null&&xc(r.length)&&!ds(r)}var xi=Pze;function Cze(r,e,t){if(!Tr(t))return!1;var n=typeof e==="undefined"?"undefined":_type_of(e);return(n=="number"?xi(t)&&Za(e,t.length):n=="string"&&e in t)?eo(t[e],r):!1}var uQ=Cze;var Nze=Object.prototype;function kze(r){var e=r&&r.constructor,t=typeof e=="function"&&e.prototype||Nze;return r===t}var gc=kze;function Lze(r,e){for(var t=-1,n=Array(r);++t<r;)n[t]=e(t);return n}var cQ=Lze;var Dze="[object Arguments]";function Wze(r){return Xe(r)&&yr(r)==Dze}var cq=Wze;var lQ=Object.prototype,Mze=lQ.hasOwnProperty,Fze=lQ.propertyIsEnumerable,Bze=cq(function(){return arguments}())?cq:function Bze1(r){return Xe(r)&&Mze.call(r,"callee")&&!Fze.call(r,"callee")},yg=Bze;function Uze(){return!1}var fQ=Uze;var hQ=(typeof exports==="undefined"?"undefined":_type_of(exports))=="object"&&exports&&!exports.nodeType&&exports,dQ=hQ&&(typeof module==="undefined"?"undefined":_type_of(module))=="object"&&module&&!module.nodeType&&module,jze=dQ&&dQ.exports===hQ,pQ=jze?He.Buffer:void 0,$ze=pQ?pQ.isBuffer:void 0,Vze=$ze||fQ,hs=Vze;var Gze="[object Arguments]",zze="[object Array]",Kze="[object Boolean]",Hze="[object Date]",Qze="[object Error]",Xze="[object Function]",Yze="[object Map]",Jze="[object Number]",Zze="[object Object]",eKe="[object RegExp]",rKe="[object Set]",tKe="[object String]",nKe="[object WeakMap]",iKe="[object ArrayBuffer]",aKe="[object DataView]",oKe="[object Float32Array]",sKe="[object Float64Array]",uKe="[object Int8Array]",cKe="[object Int16Array]",lKe="[object Int32Array]",fKe="[object Uint8Array]",dKe="[object Uint8ClampedArray]",pKe="[object Uint16Array]",hKe="[object Uint32Array]",br={};br[oKe]=br[sKe]=br[uKe]=br[cKe]=br[lKe]=br[fKe]=br[dKe]=br[pKe]=br[hKe]=!0;br[Gze]=br[zze]=br[iKe]=br[Kze]=br[aKe]=br[Hze]=br[Qze]=br[Xze]=br[Yze]=br[Jze]=br[Zze]=br[eKe]=br[rKe]=br[tKe]=br[nKe]=!1;function xKe(r){return Xe(r)&&xc(r.length)&&!!br[yr(r)]}var xQ=xKe;function gKe(r){return function(e){return r(e)}}var gi=gKe;var gQ=(typeof exports==="undefined"?"undefined":_type_of(exports))=="object"&&exports&&!exports.nodeType&&exports,Td=gQ&&(typeof module==="undefined"?"undefined":_type_of(module))=="object"&&module&&!module.nodeType&&module,vKe=Td&&Td.exports===gQ,lq=vKe&&eg.process,mKe=function(){try{var r=Td&&Td.require&&Td.require("util").types;return r||lq&&lq.binding&&lq.binding("util")}catch(e){}}(),kt=mKe;var vQ=kt&&kt.isTypedArray,yKe=vQ?gi(vQ):xQ,bg=yKe;var bKe=Object.prototype,_Ke=bKe.hasOwnProperty;function wKe(r,e){var t=ir(r),n=!t&&yg(r),i=!t&&!n&&hs(r),a=!t&&!n&&!i&&bg(r),o=t||n||i||a,s=o?cQ(r.length,String):[],u=s.length;for(var c in r)(e||_Ke.call(r,c))&&!(o&&(c=="length"||i&&(c=="offset"||c=="parent")||a&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Za(c,u)))&&s.push(c);return s}var _g=wKe;function SKe(r,e){return function(t){return r(e(t))}}var wg=SKe;var EKe=wg(Object.keys,Object),mQ=EKe;var qKe=Object.prototype,TKe=qKe.hasOwnProperty;function AKe(r){if(!gc(r))return mQ(r);var e=[];for(var t in Object(r))TKe.call(r,t)&&t!="constructor"&&e.push(t);return e}var yQ=AKe;function OKe(r){return xi(r)?_g(r):yQ(r)}var vi=OKe;function RKe(r){var e=[];if(r!=null)for(var t in Object(r))e.push(t);return e}var bQ=RKe;var IKe=Object.prototype,PKe=IKe.hasOwnProperty;function CKe(r){if(!Tr(r))return bQ(r);var e=gc(r),t=[];for(var n in r)n=="constructor"&&(e||!PKe.call(r,n))||t.push(n);return t}var _Q=CKe;function NKe(r){return xi(r)?_g(r,!0):_Q(r)}var vc=NKe;var kKe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,LKe=/^\w*$/;function DKe(r,e){if(ir(r))return!1;var t=typeof r==="undefined"?"undefined":_type_of(r);return t=="number"||t=="symbol"||t=="boolean"||r==null||jn(r)?!0:LKe.test(r)||!kKe.test(r)||e!=null&&r in Object(e)}var mc=DKe;var WKe=Qt(Object,"create"),Hi=WKe;function MKe(){this.__data__=Hi?Hi(null):{},this.size=0}var wQ=MKe;function FKe(r){var e=this.has(r)&&delete this.__data__[r];return this.size-=e?1:0,e}var SQ=FKe;var BKe="__lodash_hash_undefined__",UKe=Object.prototype,jKe=UKe.hasOwnProperty;function $Ke(r){var e=this.__data__;if(Hi){var t=e[r];return t===BKe?void 0:t}return jKe.call(e,r)?e[r]:void 0}var EQ=$Ke;var VKe=Object.prototype,GKe=VKe.hasOwnProperty;function zKe(r){var e=this.__data__;return Hi?e[r]!==void 0:GKe.call(e,r)}var qQ=zKe;var KKe="__lodash_hash_undefined__";function HKe(r,e){var t=this.__data__;return this.size+=this.has(r)?0:1,t[r]=Hi&&e===void 0?KKe:e,this}var TQ=HKe;function yc(r){var e=-1,t=r==null?0:r.length;for(this.clear();++e<t;){var n=r[e];this.set(n[0],n[1])}}yc.prototype.clear=wQ;yc.prototype.delete=SQ;yc.prototype.get=EQ;yc.prototype.has=qQ;yc.prototype.set=TQ;var fq=yc;function QKe(){this.__data__=[],this.size=0}var AQ=QKe;function XKe(r,e){for(var t=r.length;t--;)if(eo(r[t][0],e))return t;return-1}var to=XKe;var YKe=Array.prototype,JKe=YKe.splice;function ZKe(r){var e=this.__data__,t=to(e,r);if(t<0)return!1;var n=e.length-1;return t==n?e.pop():JKe.call(e,t,1),--this.size,!0}var OQ=ZKe;function eHe(r){var e=this.__data__,t=to(e,r);return t<0?void 0:e[t][1]}var RQ=eHe;function rHe(r){return to(this.__data__,r)>-1}var IQ=rHe;function tHe(r,e){var t=this.__data__,n=to(t,r);return n<0?(++this.size,t.push([r,e])):t[n][1]=e,this}var PQ=tHe;function bc(r){var e=-1,t=r==null?0:r.length;for(this.clear();++e<t;){var n=r[e];this.set(n[0],n[1])}}bc.prototype.clear=AQ;bc.prototype.delete=OQ;bc.prototype.get=RQ;bc.prototype.has=IQ;bc.prototype.set=PQ;var no=bc;var nHe=Qt(He,"Map"),io=nHe;function iHe(){this.size=0,this.__data__={hash:new fq,map:new(io||no),string:new fq}}var CQ=iHe;function aHe(r){var e=typeof r==="undefined"?"undefined":_type_of(r);return e=="string"||e=="number"||e=="symbol"||e=="boolean"?r!=="__proto__":r===null}var NQ=aHe;function oHe(r,e){var t=r.__data__;return NQ(e)?t[typeof e=="string"?"string":"hash"]:t.map}var ao=oHe;function sHe(r){var e=ao(this,r).delete(r);return this.size-=e?1:0,e}var kQ=sHe;function uHe(r){return ao(this,r).get(r)}var LQ=uHe;function cHe(r){return ao(this,r).has(r)}var DQ=cHe;function lHe(r,e){var t=ao(this,r),n=t.size;return t.set(r,e),this.size+=t.size==n?0:1,this}var WQ=lHe;function _c(r){var e=-1,t=r==null?0:r.length;for(this.clear();++e<t;){var n=r[e];this.set(n[0],n[1])}}_c.prototype.clear=CQ;_c.prototype.delete=kQ;_c.prototype.get=LQ;_c.prototype.has=DQ;_c.prototype.set=WQ;var xs=_c;var fHe="Expected a function";function dq(r,e){if(typeof r!="function"||e!=null&&typeof e!="function")throw new TypeError(fHe);var t=function t1(){var n=arguments,i=e?e.apply(this,n):n[0],a=t.cache;if(a.has(i))return a.get(i);var o=r.apply(this,n);return t.cache=a.set(i,o)||a,o};return t.cache=new(dq.Cache||xs),t}dq.Cache=xs;var MQ=dq;var dHe=500;function pHe(r){var e=MQ(r,function(n){return t.size===dHe&&t.clear(),n}),t=e.cache;return e}var FQ=pHe;var hHe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,xHe=/\\(\\)?/g,gHe=FQ(function(r){var e=[];return r.charCodeAt(0)===46&&e.push(""),r.replace(hHe,function(t,n,i,a){e.push(i?a.replace(xHe,"$1"):n||t)}),e}),BQ=gHe;function vHe(r){return r==null?"":vH(r)}var UQ=vHe;function mHe(r,e){return ir(r)?r:mc(r,e)?[r]:BQ(UQ(r))}var Sg=mHe;var yHe=1/0;function bHe(r){if(typeof r=="string"||jn(r))return r;var e=r+"";return e=="0"&&1/r==-yHe?"-0":e}var oo=bHe;function _He(r,e){e=Sg(e,r);for(var t=0,n=e.length;r!=null&&t<n;)r=r[oo(e[t++])];return t&&t==n?r:void 0}var Eg=_He;function wHe(r,e,t){var n=r==null?void 0:Eg(r,e);return n===void 0?t:n}var jQ=wHe;function SHe(r,e){for(var t=-1,n=e.length,i=r.length;++t<n;)r[i+t]=e[t];return r}var qg=SHe;var EHe=wg(Object.getPrototypeOf,Object),wc=EHe;var qHe="[object Object]",THe=Function.prototype,AHe=Object.prototype,$Q=THe.toString,OHe=AHe.hasOwnProperty,RHe=$Q.call(Object);function IHe(r){if(!Xe(r)||yr(r)!=qHe)return!1;var e=wc(r);if(e===null)return!0;var t=OHe.call(e,"constructor")&&e.constructor;return typeof t=="function"&&_instanceof(t,t)&&$Q.call(t)==RHe}var VQ=IHe;var PHe="[object DOMException]",CHe="[object Error]";function NHe(r){if(!Xe(r))return!1;var e=yr(r);return e==CHe||e==PHe||typeof r.message=="string"&&typeof r.name=="string"&&!VQ(r)}var pq=NHe;function kHe(r,e,t){var n=-1,i=r.length;e<0&&(e=-e>i?0:i+e),t=t>i?i:t,t<0&&(t+=i),i=e>t?0:t-e>>>0,e>>>=0;for(var a=Array(i);++n<i;)a[n]=r[n+e];return a}var GQ=kHe;var LHe=Math.ceil,DHe=Math.max;function WHe(r,e,t){(t?uQ(r,e,t):e===void 0)?e=1:e=DHe(wd(e),0);var n=r==null?0:r.length;if(!n||e<1)return[];for(var i=0,a=0,o=Array(LHe(n/e));i<n;)o[a++]=GQ(r,i,i+=e);return o}var Ad=WHe;function MHe(r,e,t){return r===r&&(t!==void 0&&(r=r<=t?r:t),e!==void 0&&(r=r>=e?r:e)),r}var zQ=MHe;function FHe(r,e,t){return t===void 0&&(t=e,e=void 0),t!==void 0&&(t=Vi(t),t=t===t?t:0),e!==void 0&&(e=Vi(e),e=e===e?e:0),zQ(Vi(r),e,t)}var so=FHe;function BHe(){this.__data__=new no,this.size=0}var KQ=BHe;function UHe(r){var e=this.__data__,t=e.delete(r);return this.size=e.size,t}var HQ=UHe;function jHe(r){return this.__data__.get(r)}var QQ=jHe;function $He(r){return this.__data__.has(r)}var XQ=$He;var VHe=200;function GHe(r,e){var t=this.__data__;if(_instanceof(t,no)){var n=t.__data__;if(!io||n.length<VHe-1)return n.push([r,e]),this.size=++t.size,this;t=this.__data__=new xs(n)}return t.set(r,e),this.size=t.size,this}var YQ=GHe;function Sc(r){var e=this.__data__=new no(r);this.size=e.size}Sc.prototype.clear=KQ;Sc.prototype.delete=HQ;Sc.prototype.get=QQ;Sc.prototype.has=XQ;Sc.prototype.set=YQ;var uo=Sc;function zHe(r,e){return r&&ro(e,vi(e),r)}var JQ=zHe;function KHe(r,e){return r&&ro(e,vc(e),r)}var ZQ=KHe;var nX=(typeof exports==="undefined"?"undefined":_type_of(exports))=="object"&&exports&&!exports.nodeType&&exports,eX=nX&&(typeof module==="undefined"?"undefined":_type_of(module))=="object"&&module&&!module.nodeType&&module,HHe=eX&&eX.exports===nX,rX=HHe?He.Buffer:void 0,tX=rX?rX.allocUnsafe:void 0;function QHe(r,e){if(e)return r.slice();var t=r.length,n=tX?tX(t):new r.constructor(t);return r.copy(n),n}var iX=QHe;function XHe(r,e){for(var t=-1,n=r==null?0:r.length,i=0,a=[];++t<n;){var o=r[t];e(o,t,r)&&(a[i++]=o)}return a}var aX=XHe;function YHe(){return[]}var Tg=YHe;var JHe=Object.prototype,ZHe=JHe.propertyIsEnumerable,oX=Object.getOwnPropertySymbols,eQe=oX?function eQe1(r){return r==null?[]:(r=Object(r),aX(oX(r),function(e){return ZHe.call(r,e)}))}:Tg,Ec=eQe;function rQe(r,e){return ro(r,Ec(r),e)}var sX=rQe;var tQe=Object.getOwnPropertySymbols,nQe=tQe?function nQe1(r){for(var e=[];r;)qg(e,Ec(r)),r=wc(r);return e}:Tg,Ag=nQe;function iQe(r,e){return ro(r,Ag(r),e)}var uX=iQe;function aQe(r,e,t){var n=e(r);return ir(r)?n:qg(n,t(r))}var Og=aQe;function oQe(r){return Og(r,vi,Ec)}var Od=oQe;function sQe(r){return Og(r,vc,Ag)}var cX=sQe;var uQe=Qt(He,"DataView"),Rg=uQe;var cQe=Qt(He,"Promise"),Ig=cQe;var lQe=Qt(He,"Set"),Pg=lQe;var lX="[object Map]",fQe="[object Object]",fX="[object Promise]",dX="[object Set]",pX="[object WeakMap]",hX="[object DataView]",dQe=Gi(Rg),pQe=Gi(io),hQe=Gi(Ig),xQe=Gi(Pg),gQe=Gi(ps),gs=yr;(Rg&&gs(new Rg(new ArrayBuffer(1)))!=hX||io&&gs(new io)!=lX||Ig&&gs(Ig.resolve())!=fX||Pg&&gs(new Pg)!=dX||ps&&gs(new ps)!=pX)&&(gs=function gs1(r){var e=yr(r),t=e==fQe?r.constructor:void 0,n=t?Gi(t):"";if(n)switch(n){case dQe:return hX;case pQe:return lX;case hQe:return fX;case xQe:return dX;case gQe:return pX}return e});var Qi=gs;var vQe=Object.prototype,mQe=vQe.hasOwnProperty;function yQe(r){var e=r.length,t=new r.constructor(e);return e&&typeof r[0]=="string"&&mQe.call(r,"index")&&(t.index=r.index,t.input=r.input),t}var xX=yQe;var bQe=He.Uint8Array,qc=bQe;function _Qe(r){var e=new r.constructor(r.byteLength);return new qc(e).set(new qc(r)),e}var Tc=_Qe;function wQe(r,e){var t=e?Tc(r.buffer):r.buffer;return new r.constructor(t,r.byteOffset,r.byteLength)}var gX=wQe;var SQe=/\w*$/;function EQe(r){var e=new r.constructor(r.source,SQe.exec(r));return e.lastIndex=r.lastIndex,e}var vX=EQe;var mX=Nt?Nt.prototype:void 0,yX=mX?mX.valueOf:void 0;function qQe(r){return yX?Object(yX.call(r)):{}}var bX=qQe;function TQe(r,e){var t=e?Tc(r.buffer):r.buffer;return new r.constructor(t,r.byteOffset,r.length)}var _X=TQe;var AQe="[object Boolean]",OQe="[object Date]",RQe="[object Map]",IQe="[object Number]",PQe="[object RegExp]",CQe="[object Set]",NQe="[object String]",kQe="[object Symbol]",LQe="[object ArrayBuffer]",DQe="[object DataView]",WQe="[object Float32Array]",MQe="[object Float64Array]",FQe="[object Int8Array]",BQe="[object Int16Array]",UQe="[object Int32Array]",jQe="[object Uint8Array]",$Qe="[object Uint8ClampedArray]",VQe="[object Uint16Array]",GQe="[object Uint32Array]";function zQe(r,e,t){var n=r.constructor;switch(e){case LQe:return Tc(r);case AQe:case OQe:return new n(+r);case DQe:return gX(r,t);case WQe:case MQe:case FQe:case BQe:case UQe:case jQe:case $Qe:case VQe:case GQe:return _X(r,t);case RQe:return new n;case IQe:case NQe:return new n(r);case PQe:return vX(r);case CQe:return new n;case kQe:return bX(r)}}var wX=zQe;function KQe(r){return typeof r.constructor=="function"&&!gc(r)?Ja(wc(r)):{}}var SX=KQe;var HQe="[object Map]";function QQe(r){return Xe(r)&&Qi(r)==HQe}var EX=QQe;var qX=kt&&kt.isMap,XQe=qX?gi(qX):EX,TX=XQe;var YQe="[object Set]";function JQe(r){return Xe(r)&&Qi(r)==YQe}var AX=JQe;var OX=kt&&kt.isSet,ZQe=OX?gi(OX):AX,RX=ZQe;var eXe=1,rXe=2,tXe=4,IX="[object Arguments]",nXe="[object Array]",iXe="[object Boolean]",aXe="[object Date]",oXe="[object Error]",PX="[object Function]",sXe="[object GeneratorFunction]",uXe="[object Map]",cXe="[object Number]",CX="[object Object]",lXe="[object RegExp]",fXe="[object Set]",dXe="[object String]",pXe="[object Symbol]",hXe="[object WeakMap]",xXe="[object ArrayBuffer]",gXe="[object DataView]",vXe="[object Float32Array]",mXe="[object Float64Array]",yXe="[object Int8Array]",bXe="[object Int16Array]",_Xe="[object Int32Array]",wXe="[object Uint8Array]",SXe="[object Uint8ClampedArray]",EXe="[object Uint16Array]",qXe="[object Uint32Array]",xr={};xr[IX]=xr[nXe]=xr[xXe]=xr[gXe]=xr[iXe]=xr[aXe]=xr[vXe]=xr[mXe]=xr[yXe]=xr[bXe]=xr[_Xe]=xr[uXe]=xr[cXe]=xr[CX]=xr[lXe]=xr[fXe]=xr[dXe]=xr[pXe]=xr[wXe]=xr[SXe]=xr[EXe]=xr[qXe]=!0;xr[oXe]=xr[PX]=xr[hXe]=!1;function Cg(r,e,t,n,i,a){var o,s=e&eXe,u=e&rXe,c=e&tXe;if(t&&(o=i?t(r,n,i,a):t(r)),o!==void 0)return o;if(!Tr(r))return r;var l=ir(r);if(l){if(o=xX(r),!s)return dc(r,o)}else{var f=Qi(r),d=f==PX||f==sXe;if(hs(r))return iX(r,s);if(f==CX||f==IX||d&&!i){if(o=u||d?{}:SX(r),!s)return u?uX(r,ZQ(o,r)):sX(r,JQ(o,r))}else{if(!xr[f])return i?r:{};o=wX(r,f,s)}}a||(a=new uo);var p=a.get(r);if(p)return p;a.set(r,o),RX(r)?r.forEach(function(v){o.add(Cg(v,e,t,v,r,a))}):TX(r)&&r.forEach(function(v,y){o.set(y,Cg(v,e,t,y,r,a))});var x=c?u?cX:Od:u?vc:vi,h=l?void 0:x(r);return pg(h||r,function(v,y){h&&(y=v,v=r[y]),mg(o,y,Cg(v,e,t,y,r,a))}),o}var NX=Cg;var TXe=1,AXe=4;function OXe(r){return NX(r,TXe|AXe)}var Ac=OXe;var RXe="__lodash_hash_undefined__";function IXe(r){return this.__data__.set(r,RXe),this}var kX=IXe;function PXe(r){return this.__data__.has(r)}var LX=PXe;function Ng(r){var e=-1,t=r==null?0:r.length;for(this.__data__=new xs;++e<t;)this.add(r[e])}Ng.prototype.add=Ng.prototype.push=kX;Ng.prototype.has=LX;var DX=Ng;function CXe(r,e){for(var t=-1,n=r==null?0:r.length;++t<n;)if(e(r[t],t,r))return!0;return!1}var WX=CXe;function NXe(r,e){return r.has(e)}var MX=NXe;var kXe=1,LXe=2;function DXe(r,e,t,n,i,a){var o=t&kXe,s=r.length,u=e.length;if(s!=u&&!(o&&u>s))return!1;var c=a.get(r),l=a.get(e);if(c&&l)return c==e&&l==r;var f=-1,d=!0,p=t&LXe?new DX:void 0;for(a.set(r,e),a.set(e,r);++f<s;){var x=r[f],h=e[f];if(n)var v=o?n(h,x,f,e,r,a):n(x,h,f,r,e,a);if(v!==void 0){if(v)continue;d=!1;break}if(p){if(!WX(e,function(y,m){if(!MX(p,m)&&(x===y||i(x,y,t,n,a)))return p.push(m)})){d=!1;break}}else if(!(x===h||i(x,h,t,n,a))){d=!1;break}}return a.delete(r),a.delete(e),d}var kg=DXe;function WXe(r){var e=-1,t=Array(r.size);return r.forEach(function(n,i){t[++e]=[i,n]}),t}var FX=WXe;function MXe(r){var e=-1,t=Array(r.size);return r.forEach(function(n){t[++e]=n}),t}var BX=MXe;var FXe=1,BXe=2,UXe="[object Boolean]",jXe="[object Date]",$Xe="[object Error]",VXe="[object Map]",GXe="[object Number]",zXe="[object RegExp]",KXe="[object Set]",HXe="[object String]",QXe="[object Symbol]",XXe="[object ArrayBuffer]",YXe="[object DataView]",UX=Nt?Nt.prototype:void 0,hq=UX?UX.valueOf:void 0;function JXe(r,e,t,n,i,a,o){switch(t){case YXe:if(r.byteLength!=e.byteLength||r.byteOffset!=e.byteOffset)return!1;r=r.buffer,e=e.buffer;case XXe:return!(r.byteLength!=e.byteLength||!a(new qc(r),new qc(e)));case UXe:case jXe:case GXe:return eo(+r,+e);case $Xe:return r.name==e.name&&r.message==e.message;case zXe:case HXe:return r==e+"";case VXe:var s=FX;case KXe:var u=n&FXe;if(s||(s=BX),r.size!=e.size&&!u)return!1;var c=o.get(r);if(c)return c==e;n|=BXe,o.set(r,e);var l=kg(s(r),s(e),n,i,a,o);return o.delete(r),l;case QXe:if(hq)return hq.call(r)==hq.call(e)}return!1}var jX=JXe;var ZXe=1,eYe=Object.prototype,rYe=eYe.hasOwnProperty;function tYe(r,e,t,n,i,a){var o=t&ZXe,s=Od(r),u=s.length,c=Od(e),l=c.length;if(u!=l&&!o)return!1;for(var f=u;f--;){var d=s[f];if(!(o?d in e:rYe.call(e,d)))return!1}var p=a.get(r),x=a.get(e);if(p&&x)return p==e&&x==r;var h=!0;a.set(r,e),a.set(e,r);for(var v=o;++f<u;){d=s[f];var y=r[d],m=e[d];if(n)var b=o?n(m,y,d,e,r,a):n(y,m,d,r,e,a);if(!(b===void 0?y===m||i(y,m,t,n,a):b)){h=!1;break}v||(v=d=="constructor")}if(h&&!v){var S=r.constructor,T=e.constructor;S!=T&&"constructor"in r&&"constructor"in e&&!(typeof S=="function"&&_instanceof(S,S)&&typeof T=="function"&&_instanceof(T,T))&&(h=!1)}return a.delete(r),a.delete(e),h}var $X=tYe;var nYe=1,VX="[object Arguments]",GX="[object Array]",Lg="[object Object]",iYe=Object.prototype,zX=iYe.hasOwnProperty;function aYe(r,e,t,n,i,a){var o=ir(r),s=ir(e),u=o?GX:Qi(r),c=s?GX:Qi(e);u=u==VX?Lg:u,c=c==VX?Lg:c;var l=u==Lg,f=c==Lg,d=u==c;if(d&&hs(r)){if(!hs(e))return!1;o=!0,l=!1}if(d&&!l)return a||(a=new uo),o||bg(r)?kg(r,e,t,n,i,a):jX(r,e,u,t,n,i,a);if(!(t&nYe)){var p=l&&zX.call(r,"__wrapped__"),x=f&&zX.call(e,"__wrapped__");if(p||x){var h=p?r.value():r,v=x?e.value():e;return a||(a=new uo),i(h,v,t,n,a)}}return d?(a||(a=new uo),$X(r,e,t,n,i,a)):!1}var KX=aYe;function HX(r,e,t,n,i){return r===e?!0:r==null||e==null||!Xe(r)&&!Xe(e)?r!==r&&e!==e:KX(r,e,t,n,HX,i)}var Oc=HX;var oYe=1,sYe=2;function uYe(r,e,t,n){var i=t.length,a=i,o=!n;if(r==null)return!a;for(r=Object(r);i--;){var s=t[i];if(o&&s[2]?s[1]!==r[s[0]]:!(s[0]in r))return!1}for(;++i<a;){s=t[i];var u=s[0],c=r[u],l=s[1];if(o&&s[2]){if(c===void 0&&!(u in r))return!1}else{var f=new uo;if(n)var d=n(c,l,u,r,e,f);if(!(d===void 0?Oc(l,c,oYe|sYe,n,f):d))return!1}}return!0}var QX=uYe;function cYe(r){return r===r&&!Tr(r)}var Dg=cYe;function lYe(r){for(var e=vi(r),t=e.length;t--;){var n=e[t],i=r[n];e[t]=[n,i,Dg(i)]}return e}var XX=lYe;function fYe(r,e){return function(t){return t==null?!1:t[r]===e&&(e!==void 0||r in Object(t))}}var Wg=fYe;function dYe(r){var e=XX(r);return e.length==1&&e[0][2]?Wg(e[0][0],e[0][1]):function(t){return t===r||QX(t,r,e)}}var YX=dYe;function pYe(r,e){return r!=null&&e in Object(r)}var JX=pYe;function hYe(r,e,t){e=Sg(e,r);for(var n=-1,i=e.length,a=!1;++n<i;){var o=oo(e[n]);if(!(a=r!=null&&t(r,o)))break;r=r[o]}return a||++n!=i?a:(i=r==null?0:r.length,!!i&&xc(i)&&Za(o,i)&&(ir(r)||yg(r)))}var ZX=hYe;function xYe(r,e){return r!=null&&ZX(r,e,JX)}var eY=xYe;var gYe=1,vYe=2;function mYe(r,e){return mc(r)&&Dg(e)?Wg(oo(r),e):function(t){var n=jQ(t,r);return n===void 0&&n===e?eY(t,r):Oc(e,n,gYe|vYe)}}var rY=mYe;function yYe(r){return function(e){return e==null?void 0:e[r]}}var tY=yYe;function bYe(r){return function(e){return Eg(e,r)}}var nY=bYe;function _Ye(r){return mc(r)?tY(oo(r)):nY(r)}var iY=_Ye;function wYe(r){return typeof r=="function"?r:r==null?Ya:(typeof r==="undefined"?"undefined":_type_of(r))=="object"?ir(r)?rY(r[0],r[1]):YX(r):iY(r)}var aY=wYe;function SYe(r){return function(e,t,n){for(var i=-1,a=Object(e),o=n(e),s=o.length;s--;){var u=o[r?s:++i];if(t(a[u],u,a)===!1)break}return e}}var oY=SYe;var EYe=oY(),sY=EYe;function qYe(r,e){return r&&sY(r,e,vi)}var uY=qYe;function TYe(r,e){return function(t,n){if(t==null)return t;if(!xi(t))return r(t,n);for(var i=t.length,a=e?i:-1,o=Object(t);(e?a--:++a<i)&&n(o[a],a,o)!==!1;);return t}}var cY=TYe;var AYe=cY(uY),lY=AYe;var OYe=function OYe1(){return He.Date.now()},Mg=OYe;var RYe="Expected a function",IYe=Math.max,PYe=Math.min;function CYe(r,e,t){var n,i,a,o,s,u,c=0,l=!1,f=!1,d=!0;if(typeof r!="function")throw new TypeError(RYe);e=Vi(e)||0,Tr(t)&&(l=!!t.leading,f="maxWait"in t,a=f?IYe(Vi(t.maxWait)||0,e):a,d="trailing"in t?!!t.trailing:d);function p(w){var R=n,_=i;return n=i=void 0,c=w,o=r.apply(_,R),o}function x(w){return c=w,s=setTimeout(y,e),l?p(w):o}function h(w){var R=w-u,_=w-c,E=e-R;return f?PYe(E,a-_):E}function v(w){var R=w-u,_=w-c;return u===void 0||R>=e||R<0||f&&_>=a}function y(){var w=Mg();if(v(w))return m(w);s=setTimeout(y,h(w))}function m(w){return s=void 0,d&&n?p(w):(n=i=void 0,o)}function b(){s!==void 0&&clearTimeout(s),c=0,n=u=i=s=void 0}function S(){return s===void 0?o:m(Mg())}function T(){var w=Mg(),R=v(w);if(n=arguments,i=this,u=w,R){if(s===void 0)return x(u);if(f)return clearTimeout(s),s=setTimeout(y,e),p(u)}return s===void 0&&(s=setTimeout(y,e)),o}return T.cancel=b,T.flush=S,T}var vs=CYe;function NYe(r,e){var t=-1,n=xi(r)?Array(r.length):[];return lY(r,function(i,a,o){n[++t]=e(i,a,o)}),n}var fY=NYe;function kYe(r,e){var t=ir(r)?rg:fY;return t(r,aY(e,3))}var xq=kYe;var LYe="[object String]";function DYe(r){return typeof r=="string"||!ir(r)&&Xe(r)&&yr(r)==LYe}var gq=DYe;var WYe="[object Boolean]";function MYe(r){return r===!0||r===!1||Xe(r)&&yr(r)==WYe}var vq=MYe;var FYe="[object Date]";function BYe(r){return Xe(r)&&yr(r)==FYe}var dY=BYe;var pY=kt&&kt.isDate,UYe=pY?gi(pY):dY,mq=UYe;function jYe(r,e){return Oc(r,e)}var Rc=jYe;var $Ye=He.isFinite;function VYe(r){return typeof r=="number"&&$Ye(r)}var Fg=VYe;var GYe="[object Number]";function zYe(r){return typeof r=="number"||Xe(r)&&yr(r)==GYe}var yq=zYe;function KYe(r){return r==null}var $n=KYe;function HYe(r){return r===null}var bq=HYe;var QYe="[object RegExp]";function XYe(r){return Xe(r)&&yr(r)==QYe}var hY=XYe;var xY=kt&&kt.isRegExp,YYe=xY?gi(xY):hY,_q=YYe;function JYe(r){return r===void 0}var wq=JYe;var ZYe=32,Sq=sQ(function(r,e){var t=Ki(e,hc(Sq));return iQ(r,ZYe,void 0,e,t)});Sq.placeholder={};var Rd=Sq;var eJe="Expected a function";function rJe(r,e,t){var n=!0,i=!0;if(typeof r!="function")throw new TypeError(eJe);return Tr(t)&&(n="leading"in t?!!t.leading:n,i="trailing"in t?!!t.trailing:i),vs(r,e,{leading:n,maxWait:e,trailing:i})}var Eq=rJe;var In=require("obsidian"),ip=ze(Qr());var Bg=require("obsidian");var ms=/*#__PURE__*/function(_Bg_Modal){"use strict";_inherits(ms1,_Bg_Modal);function ms1(t,n){_class_call_check(this,ms1);var _this;_this=_call_super(this,ms1,[t]);_this.tasks=n;_this.confirmed=!1;_this.selectedTasks=[];_this.selectedTasks=new Array(n.length).fill(!0);return _this}_create_class(ms1,[{key:"onOpen",value:function onOpen(){var _this=this;this.setTitle(P.t("deleteConfirm.title"));var _this1=this,t=_this1.contentEl;t.empty();var n=t.createEl("p",{cls:"delete-confirm-instruction"});n.style.whiteSpace="pre-wrap",n.setText(P.t("deleteConfirm.instruction"));var a=t.createDiv({cls:"max-h-50vh overflow-y-auto"}).createEl("table",{cls:"task-list-table"}),s=a.createEl("thead").createEl("tr"),u=s.createEl("th",{text:P.t("deleteConfirm.select")});u.style.textAlign="center",s.createEl("th",{text:P.t("deleteConfirm.filePath")});var c=a.createEl("tbody");this.tasks.forEach(function(f,d){var p=c.createEl("tr"),x=p.createEl("td");x.style.textAlign="center";var h=x.createEl("input");h.type="checkbox",h.checked=_this.selectedTasks[d],h.addEventListener("change",function(v){_this.selectedTasks[d]=h.checked,v.stopPropagation()}),p.addEventListener("click",function(v){v.target!==h&&(h.checked=!h.checked,_this.selectedTasks[d]=h.checked,v.stopPropagation())}),p.createEl("td",{text:f.localPath})});var l=t.createDiv();l.style.marginTop="1rem",new Bg.Setting(l).addButton(function(f){f.setButtonText(P.t("deleteConfirm.deleteAndReupload")).setCta().onClick(function(){_this.confirmed=!0,_this.close()})}).addButton(function(f){f.setButtonText(P.t("deleteConfirm.skipForNow")).onClick(function(){_this.confirmed=!1,_this.close()})})}},{key:"open",value:function open(){return D(this,null,function(){var _this;return _ts_generator(this,function(_state){_this=this;return[2,(hp(ms.prototype,this,"open").call(this),new Promise(function(t){_this.onClose=function(){if(!_this.confirmed){t({tasksToDelete:[],tasksToReupload:[]});return}var n=_this.tasks.filter(function(a,o){return _this.selectedTasks[o]}),i=_this.tasks.filter(function(a,o){return!_this.selectedTasks[o]});t({tasksToDelete:n,tasksToReupload:i})}}))]})})}}]);return ms1}(Bg.Modal);var zg=require("obsidian");Pr();var mY=require("obsidian"),Ug=ze(Qr());var cr=/*#__PURE__*/function(){"use strict";function cr1(e){_class_call_check(this,cr1);this.options=e}_create_class(cr1,[{key:"vault",get:function get(){return this.options.vault}},{key:"syncRecord",get:function get(){return this.options.syncRecord}},{key:"webdav",get:function get(){return this.options.webdav}},{key:"remoteBaseDir",get:function get(){return this.options.remoteBaseDir}},{key:"remotePath",get:function get(){return(0,Ug.isAbsolute)(this.options.remotePath)?this.options.remotePath:(0,Ug.join)(this.remoteBaseDir,this.options.remotePath)}},{key:"localPath",get:function get(){return(0,mY.normalizePath)(this.options.localPath)}},{key:"toJSON",value:function toJSON(){var _this=this,e=_this.localPath,t=_this.remoteBaseDir,n=_this.remotePath;return{taskName:yi(this),localPath:e,remoteBaseDir:t,remotePath:n}}}]);return cr1}(),co=/*#__PURE__*/function(Error1){"use strict";_inherits(co1,Error1);function co1(t,n,i){_class_call_check(this,co1);var _this;_this=_call_super(this,co1,[t]);_this.task=n;_this.cause=i;_this.name="TaskError";return _this}return co1}(_wrap_native_super(Error));function Ar(r,e){if(_instanceof(r,co))return r;var t=_instanceof(r,Error)?r.message:String(r);return new co(t,e,_instanceof(r,Error)?r:void 0)}var an=/*#__PURE__*/function(cr1){"use strict";_inherits(an1,cr1);function an1(){_class_call_check(this,an1);return _call_super(this,an1,arguments)}_create_class(an1,[{key:"exec",value:function exec(){return D(this,null,function(){var e;return _ts_generator(this,function(_state){switch(_state.label){case 0:_state.trys.push([0,2,,3]);return[4,this.syncRecord.deleteFileRecord(this.localPath)];case 1:return[2,(_state.sent(),{success:!0,skipRecord:!0})];case 2:e=_state.sent();return[2,(ce.error(this,e),{success:!1,error:Ar(e,this)})];case 3:return[2]}})})}}]);return an1}(cr);function nJe(r){return D(this,null,function(){return _ts_generator(this,function(_state){return[2,crypto.subtle.digest("SHA-256",r)]})})}function qq(r){return D(this,null,function(){var e;return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,nJe(r)];case 1:e=_state.sent();return[2,EK(new Uint8Array(e),!1)]}})})}var jg=ze(bY());function Id(r){function e(s,u){return r.setItem(s,u)}function t(s){return r.getItem(s)}function n(s){return r.removeItem(s)}function i(){return r.clear()}function a(){return D(this,null,function(){var s,u,_iteratorNormalCompletion,_didIteratorError,_iteratorError,_iterator,_step,c,l,err1;return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,r.keys()];case 1:s=_state.sent(),u={};_iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;_state.label=2;case 2:_state.trys.push([2,7,8,9]);_iterator=s[Symbol.iterator]();_state.label=3;case 3:if(!!(_iteratorNormalCompletion=(_step=_iterator.next()).done))return[3,6];c=_step.value;return[4,r.getItem(c)];case 4:l=_state.sent();l&&(u[c]=l);_state.label=5;case 5:_iteratorNormalCompletion=true;return[3,3];case 6:return[3,9];case 7:err1=_state.sent();_didIteratorError=true;_iteratorError=err1;return[3,9];case 8:try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}return[7];case 9:return[2,u]}})})}function o(s){return D(this,null,function(){var u,_tmp,_tmp1,_tmp2,_i1,c,c1,_tmp3,_tmp4,_tmp5,_i2,l;return _ts_generator(this,function(_state){switch(_state.label){case 0:if(!s||(typeof s==="undefined"?"undefined":_type_of(s))!="object")throw new Error("Invalid data format for restore");return[4,a()];case 1:u=_state.sent();_state.label=2;case 2:_state.trys.push([2,8,,14]);return[4,r.clear()];case 3:_state.sent();_tmp=s;_tmp1=[];for(_tmp2 in _tmp)_tmp1.push(_tmp2);_i1=0;_state.label=4;case 4:if(!(_i1<_tmp1.length))return[3,7];_tmp2=_tmp1[_i1];if(!(_tmp2 in _tmp))return[3,6];c=_tmp2;return[4,r.setItem(c,s[c])];case 5:_state.sent();_state.label=6;case 6:_i1++;return[3,4];case 7:return[3,14];case 8:c1=_state.sent();return[4,r.clear()];case 9:_state.sent();_tmp3=u;_tmp4=[];for(_tmp5 in _tmp3)_tmp4.push(_tmp5);_i2=0;_state.label=10;case 10:if(!(_i2<_tmp4.length))return[3,13];_tmp5=_tmp4[_i2];if(!(_tmp5 in _tmp3))return[3,12];l=_tmp5;return[4,r.setItem(l,u[l])];case 11:_state.sent();_state.label=12;case 12:_i2++;return[3,10];case 13:return[3,14];case 14:return[2]}})})}return{set:e,get:t,unset:n,clear:i,dump:a,restore:o}}var Aq="Nutstore_Plugin_Cache",bi=Id(jg.default.createInstance({name:Aq,storeName:"delta_cache"})),Vn=Id(jg.default.createInstance({name:Aq,storeName:"sync_record"})),ys=Id(jg.default.createInstance({name:Aq,storeName:"base_blob_store"}));function iJe(){function r(t){return ys.get(t)}function e(t){return D(this,null,function(){var n,i,_tmp,_tmp1;return _ts_generator(this,function(_state){switch(_state.label){case 0:if(!_instanceof(t,Blob))return[3,3];return[4,t.arrayBuffer()];case 1:return[4,qq.apply(void 0,[_state.sent()])];case 2:_tmp=(n=_state.sent(),i=t);return[3,5];case 3:return[4,qq(t)];case 4:_tmp=(n=_state.sent(),i=new Blob([t]));_state.label=5;case 5:_tmp;_tmp1={key:n};return[4,ys.set(n,i)];case 6:return[2,(_tmp1.value=_state.sent(),_tmp1)]}})})}return{get:r,store:e}}var Pc=iJe();function _Y(r){return r=r.trim().toLowerCase(),r.endsWith(".md")||r.endsWith(".markdown")}function Pd(r){return _Y(r)}Pr();function SY(r,e){var t={};for(var a=0;a<e.length;a++){var o=e[a];t[o]?t[o].push(a):t[o]=[a]}var i=[{buffer1index:-1,buffer2index:-1,chain:null}];for(var a2=0;a2<r.length;a2++){var o1=r[a2],s=t[o1]||[],u=0,c=i[0];for(var l=0;l<s.length;l++){var f=s[l],d=void 0;for(d=u;d<i.length&&!(i[d].buffer2index<f&&(d===i.length-1||i[d+1].buffer2index>f));d++);if(d<i.length){var p={buffer1index:a2,buffer2index:f,chain:i[d]};if(u===i.length?i.push(c):i[u]=c,u=d+1,c=p,u===i.length)break}}i[u]=c}return i[i.length-1]}function EY(r,e){var t=SY(r,e),n=[],i=r.length,a=e.length,o={common:[]};function s(){o.common.length&&(o.common.reverse(),n.push(o),o={common:[]})}for(var u=t;u!==null;u=u.chain){var c={buffer1:[],buffer2:[]};for(;--i>u.buffer1index;)c.buffer1.push(r[i]);for(;--a>u.buffer2index;)c.buffer2.push(e[a]);(c.buffer1.length||c.buffer2.length)&&(s(),c.buffer1.reverse(),c.buffer2.reverse(),n.push(c)),i>=0&&o.common.push(r[i])}return s(),n.reverse(),n}function wY(r,e){var t=SY(r,e),n=[],i=r.length,a=e.length;for(var o=t;o!==null;o=o.chain){var s=i-o.buffer1index-1,u=a-o.buffer2index-1;i=o.buffer1index,a=o.buffer2index,(s||u)&&n.push({buffer1:[i+1,s],buffer1Content:r.slice(i+1,i+1+s),buffer2:[a+1,u],buffer2Content:e.slice(a+1,a+1+u)})}return n.reverse(),n}function aJe(r,e,t){var n=[];function i(u,c){n.push({ab:c,oStart:u.buffer1[0],oLength:u.buffer1[1],abStart:u.buffer2[0],abLength:u.buffer2[1]})}wY(e,r).forEach(function(u){return i(u,"a")}),wY(e,t).forEach(function(u){return i(u,"b")}),n.sort(function(u,c){return u.oStart-c.oStart});var a=[],o=0;function s(u){u>o&&(a.push({stable:!0,buffer:"o",bufferStart:o,bufferLength:u-o,bufferContent:e.slice(o,u)}),o=u)}for(;n.length;){var u=n.shift(),c=u.oStart,l=u.oStart+u.oLength,f=[u];for(s(c);n.length;){var d=n[0],p=d.oStart;if(p>l)break;l=Math.max(l,p+d.oLength),f.push(n.shift())}if(f.length===1){if(u.abLength>0){var d2=u.ab==="a"?r:t;a.push({stable:!0,buffer:u.ab,bufferStart:u.abStart,bufferLength:u.abLength,bufferContent:d2.slice(u.abStart,u.abStart+u.abLength)})}}else{var d3={a:[r.length,-1,e.length,-1],b:[t.length,-1,e.length,-1]};for(;f.length;){u=f.shift();var m=u.oStart,b=m+u.oLength,S=u.abStart,T=S+u.abLength,w=d3[u.ab];w[0]=Math.min(S,w[0]),w[1]=Math.max(T,w[1]),w[2]=Math.min(m,w[2]),w[3]=Math.max(b,w[3])}var p2=d3.a[0]+(c-d3.a[2]),x=d3.a[1]+(l-d3.a[3]),h=d3.b[0]+(c-d3.b[2]),v=d3.b[1]+(l-d3.b[3]),y={stable:!1,aStart:p2,aLength:x-p2,aContent:r.slice(p2,x),oStart:c,oLength:l-c,oContent:e.slice(c,l),bStart:h,bLength:v-h,bContent:t.slice(h,v)};a.push(y)}o=l}return s(e.length),a}function $g(r,e,t,n){n=Object.assign({excludeFalseConflicts:!0,stringSeparator:/\s+/},n),typeof r=="string"&&(r=r.split(n.stringSeparator)),typeof e=="string"&&(e=e.split(n.stringSeparator)),typeof t=="string"&&(t=t.split(n.stringSeparator));var a=[],o=aJe(r,e,t),s=[];function u(){s.length&&a.push({ok:s}),s=[]}function c(l,f){if(l.length!==f.length)return!1;for(var d=0;d<l.length;d++)if(l[d]!==f[d])return!1;return!0}return o.forEach(function(l){var _s1,_s2;l.stable?(_s1=s).push.apply(_s1,_to_consumable_array(l.bufferContent)):n.excludeFalseConflicts&&c(l.aContent,l.bContent)?(_s2=s).push.apply(_s2,_to_consumable_array(l.aContent)):(u(),a.push({conflict:{a:l.aContent,aIndex:l.aStart,o:l.oContent,oIndex:l.oStart,b:l.bContent,bIndex:l.bStart}}))}),u(),a}function qY(r,e,t,n){n=Object.assign({excludeFalseConflicts:!0,stringSeparator:/\s+/,label:{},useGitStyle:!1},n);var a=n.useGitStyle?"<<<<<<<":'<mark class="conflict ours">',o=n.useGitStyle?"=======":'</mark><mark class="conflict theirs">',s=n.useGitStyle?">>>>>>>":"</mark>",u=$g(r,e,t,n),c=!1,l=[];return u.forEach(function(f){if(f.ok)l=l.concat(f.ok);else{var d=EY(f.conflict.a,f.conflict.b);for(var p=0;p<d.length;p++){var x=d[p];x.common?l=l.concat(x.common):(c=!0,l=l.concat([a],x.buffer1,[o],x.buffer2,[s]))}}}),{conflict:c,result:l}}var Cc=require("obsidian"),Oq=ze(Qr());function Xt(r,e){return D(this,null,function(){var t;return _ts_generator(this,function(_state){e=(0,Cc.normalizePath)(e);t=r.getAbstractFileByPath(e);if(t){if(_instanceof(t,Cc.TFolder))return[2,{path:e,basename:(0,Oq.basename)(e),isDir:!0,isDeleted:!1}];if(_instanceof(t,Cc.TFile))return[2,{path:e,basename:(0,Oq.basename)(e),isDir:!1,isDeleted:!1,mtime:t.stat.mtime,size:t.stat.size}]}return[2]})})}var TY=ze(Qr());function lo(r){return{path:r.filename,basename:r.basename,isDir:r.type==="directory",isDeleted:!1,mtime:new Date(r.lastmod).valueOf(),size:r.size}}function AY(r,e){return D(this,null,function(){var t;return _ts_generator(this,function(_state){switch(_state.label){case 0:if(!(0,TY.isAbsolute)(e))throw new Error("stat WebDAV item, path must be absolute: "+e);return[4,r.stat(e,{details:!1})];case 1:t=_state.sent();return[2,lo(t)]}})})}var RY=ze(OY());function IY(r){var e=r.localMtime,t=r.remoteMtime,n=r.localContent,i=r.remoteContent;return t===e?{status:0}:t>e?Rc(n,i)?{status:0}:{status:1,content:i}:Rc(n,i)?{status:0}:{status:2,content:n}}function oJe(r,e,t){var n=$g(e,r,t,{excludeFalseConflicts:!0,stringSeparator:"\n"});if(n.some(function(a){return!a.ok}))return!1;var i=[];var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;try{for(var _iterator=n[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var a=_step.value;a.ok&&i.push(a.ok)}}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}return i.flat().join("\n")}function PY(r){return D(this,null,function(){var e,t,n,i,a,o,s,_a_patch_apply,u,c;return _ts_generator(this,function(_state){e=r.localContentText,t=r.remoteContentText,n=r.baseContentText;if(e===t)return[2,{success:!0,isIdentical:!0}];i=oJe(n,e,t);if(i!==!1)return[2,{success:!0,mergedText:i}];a=new RY.diff_match_patch;a.Match_Threshold=.2,a.Patch_Margin=2;o=a.diff_main(n,t),s=a.patch_make(n,o),_a_patch_apply=_sliced_to_array(a.patch_apply(s,e),2),u=_a_patch_apply[0],c=_a_patch_apply[1];return[2,c.includes(!1)?{success:!1}:{success:!0,mergedText:u}]})})}var Xi=/*#__PURE__*/function(cr1){"use strict";_inherits(Xi1,cr1);function Xi1(t){_class_call_check(this,Xi1);var _this;_this=_call_super(this,Xi1,[t]);_this.options=t;return _this}_create_class(Xi1,[{key:"exec",value:function exec(){return D(this,null,function(){var t,n,_$i,_tmp,a,_tmp1,_,i;return _ts_generator(this,function(_state){switch(_state.label){case 0:_state.trys.push([0,13,,14]);if(!((t=this.options.localStat)!=null))return[3,1];_tmp=t;return[3,3];case 1:return[4,Xt(this.vault,this.localPath)];case 2:_tmp=_state.sent();_state.label=3;case 3:_$i=_tmp;if(!_$i)throw new Error("Local file not found: "+this.localPath);if(!((n=this.options.remoteStat)!=null))return[3,4];_tmp1=n;return[3,6];case 4:return[4,AY(this.webdav,this.remotePath)];case 5:_tmp1=_state.sent();_state.label=6;case 6:a=_tmp1;if(a.isDir)throw new Error("Remote path is a directory: "+this.remotePath);if(_$i.isDir)throw new Error("Local path is a directory: "+this.localPath);if(_$i.size===0&&a.size===0)return[2,{success:!0}];_=this.options.strategy;switch(_){case"diff-match-patch":return[3,7];case"latest-timestamp":return[3,9];case"skip":return[3,11]}return[3,12];case 7:return[4,this.execIntelligentMerge()];case 8:return[2,_state.sent()];case 9:return[4,this.execLatestTimeStamp(_$i,a)];case 10:return[2,_state.sent()];case 11:return[2,{success:!0,skipRecord:!0}];case 12:return[3,14];case 13:i=_state.sent();return[2,(ce.error(this,i),{success:!1,error:Ar(i,this)})];case 14:return[2]}})})}},{key:"execLatestTimeStamp",value:function execLatestTimeStamp(t,n){return D(this,null,function(){var _$i,a,o,s,u,c,_,l,i;return _ts_generator(this,function(_state){switch(_state.label){case 0:_state.trys.push([0,9,,10]);_$i=t.mtime,a=n.mtime;if(a===_$i)return[2,{success:!0}];o=this.vault.getFileByPath(this.localPath);if(!o)return[2,{success:!1,error:Ar(new Error("cannot find file in local fs: "+this.localPath),this)}];return[4,this.vault.readBinary(o)];case 1:s=_state.sent();return[4,this.webdav.getFileContents(this.remotePath,{details:!1,format:"binary"})];case 2:u=_state.sent(),c=IY({localMtime:_$i,remoteMtime:a,localContent:s,remoteContent:u});_=c.status;switch(_){case 1:return[3,3];case 2:return[3,5];case 0:return[3,7]}return[3,8];case 3:l=_instanceof(c.content,ArrayBuffer)?c.content:new Uint8Array(c.content).buffer;return[4,this.vault.modifyBinary(o,l)];case 4:_state.sent();return[3,8];case 5:return[4,this.webdav.putFileContents(this.remotePath,c.content,{overwrite:!0})];case 6:_state.sent();return[3,8];case 7:Sd();return[3,8];case 8:return[2,{success:!0}];case 9:i=_state.sent();return[2,(ce.error(this,i),{success:!1,error:Ar(i,this)})];case 10:return[2]}})})}},{key:"execIntelligentMerge",value:function execIntelligentMerge(){return D(this,null,function(){var t,n,_$i,a,o,_this_options,s,u,c,_tmp,l,f,d,p,x,h,b,v,_tmp1,_tmp2,i;return _ts_generator(this,function(_state){switch(_state.label){case 0:_state.trys.push([0,19,,20]);_$i=this.vault.getFileByPath(this.localPath);if(!_$i)throw new Error("cannot find file in local fs: "+this.localPath);return[4,this.vault.readBinary(_$i)];case 1:a=_state.sent();return[4,this.webdav.getFileContents(this.remotePath,{format:"binary",details:!1})];case 2:o=_state.sent();if(Rc(a,o))return[2,{success:!0}];_this_options=this.options,s=_this_options.record,u=null,c=(t=s==null?void 0:s.base)==null?void 0:t.key;_tmp=c;if(!_tmp)return[3,4];return[4,Pc.get(c)];case 3:_tmp=u=_state.sent();_state.label=4;case 4:_tmp;l=Pd(_$i.path),f=Pd(this.remotePath);if(!(l&&f))throw new Error(P.t("sync.error.cannotMergeBinary"));return[4,new Blob([new Uint8Array(a)]).text()];case 5:d=_state.sent();return[4,new Blob([new Uint8Array(o)]).text()];case 6:p=_state.sent();return[4,u==null?void 0:u.text()];case 7:x=(n=_state.sent())!=null?n:d;return[4,PY({localContentText:d,remoteContentText:p,baseContentText:x})];case 8:h=_state.sent();if(!!h.success)return[3,12];b=qY(d,x,p,{stringSeparator:"\n",useGitStyle:this.options.useGitStyle}).result.join("\n");return[4,this.webdav.putFileContents(this.remotePath,b,{overwrite:!0})];case 9:if(!_state.sent())return[3,11];return[4,this.vault.modify(_$i,b)];case 10:return[2,(_state.sent(),{success:!0})];case 11:throw new Error(P.t("sync.error.failedToUploadMerged"));case 12:if(h.isIdentical)return[2,{success:!0}];v=h.mergedText;if(!(v===p))return[3,15];_tmp1=v!==d;if(!_tmp1)return[3,14];return[4,this.vault.modify(_$i,v)];case 13:_tmp1=_state.sent();_state.label=14;case 14:return[2,(_tmp1,{success:!0})];case 15:return[4,this.webdav.putFileContents(this.remotePath,v,{overwrite:!0})];case 16:if(!_state.sent())throw new Error(P.t("sync.error.failedToUploadMerged"));_tmp2=d!==v;if(!_tmp2)return[3,18];return[4,this.vault.modify(_$i,v)];case 17:_tmp2=_state.sent();_state.label=18;case 18:return[2,(_tmp2,{success:!0})];case 19:i=_state.sent();return[2,(ce.error(this,i),{success:!1,error:Ar(i,this)})];case 20:return[2]}})})}}]);return Xi1}(cr);var bs=/*#__PURE__*/function(cr1){"use strict";_inherits(bs1,cr1);function bs1(){_class_call_check(this,bs1);return _call_super(this,bs1,arguments)}_create_class(bs1,[{key:"exec",value:function exec(){return{success:!1}}}]);return bs1}(cr);Pr();var Vg=ze(Qr());function Gg(r,e){return D(this,null,function(){var t,n,i,_tmp;return _ts_generator(this,function(_state){switch(_state.label){case 0:t=[],n=(0,Vg.normalize)(e);if(!(!(n==="/"||n===".")&&!r.getAbstractFileByPath(n)))return[3,5];for(;n!==""&&n!=="/"&&n!=="."&&$n(r.getAbstractFileByPath(n));)t.push(n),n=(0,Vg.dirname)(n);_state.label=1;case 1:if(!t.length)return[3,5];i=t.pop();_tmp=i;if(!_tmp)return[3,3];return[4,r.createFolder(i)];case 2:_tmp=_state.sent();_state.label=3;case 3:_tmp;_state.label=4;case 4:return[3,1];case 5:return[2]}})})}var Yi=/*#__PURE__*/function(cr1){"use strict";_inherits(Yi1,cr1);function Yi1(){_class_call_check(this,Yi1);return _call_super(this,Yi1,arguments)}_create_class(Yi1,[{key:"exec",value:function exec(){return D(this,null,function(){var e;return _ts_generator(this,function(_state){switch(_state.label){case 0:_state.trys.push([0,2,,3]);return[4,Gg(this.vault,this.localPath)];case 1:return[2,(_state.sent(),{success:!0})];case 2:e=_state.sent();return[2,(ce.error(this,e),{success:!1,error:Ar(e,this)})];case 3:return[2]}})})}}]);return Yi1}(cr);Pr();var wt=/*#__PURE__*/function(cr1){"use strict";_inherits(wt1,cr1);function wt1(){_class_call_check(this,wt1);return _call_super(this,wt1,arguments)}_create_class(wt1,[{key:"exec",value:function exec(){return D(this,null,function(){var e;return _ts_generator(this,function(_state){switch(_state.label){case 0:_state.trys.push([0,3,,4]);return[4,Xt(this.vault,this.localPath)];case 1:if(!_state.sent())throw ce.debug("PullTask: local path:",this.localPath),ce.debug("PullTask: local stat is null"),new Error(P.t("sync.error.localPathNotFound",{path:this.localPath}));return[4,this.webdav.createDirectory(this.remotePath,{recursive:!0})];case 2:return[2,(_state.sent(),{success:!0})];case 3:e=_state.sent();return[2,(ce.error(this,e),{success:!1,error:Ar(e,this)})];case 4:return[2]}})})}}]);return wt1}(cr);Pr();var Ji=/*#__PURE__*/function(cr1){"use strict";_inherits(Ji1,cr1);function Ji1(t){_class_call_check(this,Ji1);var _this;_this=_call_super(this,Ji1,[t]);_this.additionalPaths=t.additionalPaths;return _this}_create_class(Ji1,[{key:"exec",value:function exec(){return D(this,null,function(){var t;return _ts_generator(this,function(_state){switch(_state.label){case 0:_state.trys.push([0,3,,4]);return[4,Xt(this.vault,this.localPath)];case 1:if(!_state.sent())throw ce.debug("MkdirsRemoteTask: local path:",this.localPath),ce.debug("MkdirsRemoteTask: local stat is null"),new Error(P.t("sync.error.localPathNotFound",{path:this.localPath}));return[4,this.webdav.createDirectory(this.remotePath,{recursive:!0})];case 2:return[2,(_state.sent(),{success:!0})];case 3:t=_state.sent();return[2,(ce.error(this,t),{success:!1,error:Ar(t,this)})];case 4:return[2]}})})}},{key:"getAllPaths",value:function getAllPaths(){return[{localPath:this.localPath,remotePath:this.remotePath}].concat(_to_consumable_array(this.additionalPaths))}},{key:"toJSON",value:function toJSON(){var t=_get(_get_prototype_of(Ji1.prototype),"toJSON",this).call(this);return Se(j({},t),{additionalPaths:this.additionalPaths,totalDirs:this.getAllPaths().length})}}]);return Ji1}(cr);var Yt=/*#__PURE__*/function(cr1){"use strict";_inherits(Yt1,cr1);function Yt1(){_class_call_check(this,Yt1);return _call_super(this,Yt1,arguments)}_create_class(Yt1,[{key:"exec",value:function exec(){return{success:!0}}}]);return Yt1}(cr);var CY=ze(Qr());Pr();var Zi=/*#__PURE__*/function(cr1){"use strict";_inherits(Zi1,cr1);function Zi1(t){_class_call_check(this,Zi1);var _this;_this=_call_super(this,Zi1,[t]);_this.options=t;return _this}_create_class(Zi1,[{key:"remoteSize",get:function get(){return this.options.remoteSize}},{key:"exec",value:function exec(){return D(this,null,function(){var t,_$n,i,_tmp,n;return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,this.vault.getFileByPath(this.localPath)];case 1:t=_state.sent();_state.label=2;case 2:_state.trys.push([2,9,,10]);return[4,this.webdav.getFileContents(this.remotePath,{format:"binary",details:!1})];case 3:_$n=_state.sent(),i=sJe(_$n);if(i.byteLength!==this.remoteSize)throw new Error("Remote Size Not Match!");if(!t)return[3,5];return[4,this.vault.modifyBinary(t,i)];case 4:_tmp=_state.sent();return[3,8];case 5:return[4,Gg(this.vault,(0,CY.dirname)(this.localPath))];case 6:_state.sent();return[4,this.vault.createBinary(this.localPath,i)];case 7:_tmp=_state.sent();_state.label=8;case 8:return[2,(_tmp,{success:!0})];case 9:n=_state.sent();return[2,(ce.error(this,n),{success:!1,error:Ar(n,this)})];case 10:return[2]}})})}}]);return Zi1}(cr);function sJe(r){return _instanceof(r,ArrayBuffer)?r:uJe(r)}function uJe(r){if(_instanceof(r.buffer,SharedArrayBuffer)){var e=new ArrayBuffer(r.byteLength);return new Uint8Array(e).set(r),e}return r.buffer.slice(r.byteOffset,r.byteOffset+r.byteLength)}Pr();var Gn=/*#__PURE__*/function(cr1){"use strict";_inherits(Gn1,cr1);function Gn1(){_class_call_check(this,Gn1);return _call_super(this,Gn1,arguments)}_create_class(Gn1,[{key:"exec",value:function exec(){return D(this,null,function(){var _$e1,t,n,e;return _ts_generator(this,function(_state){switch(_state.label){case 0:_state.trys.push([0,3,,4]);_$e1=this.vault.getFileByPath(this.localPath);if(!_$e1)throw new Error("cannot find file in local fs: "+this.localPath);return[4,this.vault.readBinary(_$e1)];case 1:t=_state.sent();return[4,this.webdav.putFileContents(this.remotePath,t,{overwrite:!0})];case 2:n=_state.sent();if(!n)throw new Error("Upload failed");return[2,{success:n}];case 3:e=_state.sent();return[2,(ce.error(this,e),{success:!1,error:Ar(e,this)})];case 4:return[2]}})})}}]);return Gn1}(cr);Pr();var An=/*#__PURE__*/function(cr1){"use strict";_inherits(An1,cr1);function An1(t){_class_call_check(this,An1);var _this;_this=_call_super(this,An1,[t]);_this.options=t;return _this}_create_class(An1,[{key:"exec",value:function exec(){return D(this,null,function(){var n,t;return _ts_generator(this,function(_state){switch(_state.label){case 0:_state.trys.push([0,3,,4]);return[4,Xt(this.vault,this.localPath)];case 1:if(!_state.sent())return[2,{success:!0}];n=this.vault.getAbstractFileByPath(this.localPath);if(!n)throw new Error("cannot find file in local fs: "+this.localPath);return[4,this.vault.trash(n,!1)];case 2:return[2,(_state.sent(),{success:!0})];case 3:t=_state.sent();return[2,(ce.error(t),{success:!1,error:Ar(t,this)})];case 4:return[2]}})})}}]);return An1}(cr);Pr();var On=/*#__PURE__*/function(cr1){"use strict";_inherits(On1,cr1);function On1(){_class_call_check(this,On1);return _call_super(this,On1,arguments)}_create_class(On1,[{key:"exec",value:function exec(){return D(this,null,function(){var e;return _ts_generator(this,function(_state){switch(_state.label){case 0:_state.trys.push([0,2,,3]);return[4,this.webdav.deleteFile(this.remotePath)];case 1:return[2,(_state.sent(),{success:!0})];case 2:e=_state.sent();return[2,(ce.error(e),{success:!1,error:Ar(e,this)})];case 3:return[2]}})})}}]);return On1}(cr);Pr();var ea=/*#__PURE__*/function(cr1){"use strict";_inherits(ea1,cr1);function ea1(){_class_call_check(this,ea1);return _call_super(this,ea1,arguments)}_create_class(ea1,[{key:"exec",value:function exec(){return D(this,null,function(){var e;return _ts_generator(this,function(_state){switch(_state.label){case 0:_state.trys.push([0,2,,3]);return[4,this.webdav.deleteFile(this.remotePath)];case 1:return[2,(_state.sent(),{success:!0})];case 2:e=_state.sent();return[2,(ce.error(e),{success:!1,error:Ar(e,this)})];case 3:return[2]}})})}}]);return ea1}(cr);var zn=/*#__PURE__*/function(cr1){"use strict";_inherits(zn1,cr1);function zn1(t){_class_call_check(this,zn1);var _this;_this=_call_super(this,zn1,[t]);_this.options=t;return _this}_create_class(zn1,[{key:"exec",value:function exec(){return{success:!0,skipRecord:!0}}}]);return zn1}(cr);function yi(r){return _instanceof(r,an)?P.t("sync.fileOp.cleanRecord"):_instanceof(r,Xi)?P.t("sync.fileOp.merge"):_instanceof(r,bs)?P.t("sync.fileOp.filenameError"):_instanceof(r,Yi)?P.t("sync.fileOp.createLocalDir"):_instanceof(r,wt)?P.t("sync.fileOp.createRemoteDir"):_instanceof(r,Ji)?P.t("sync.fileOp.createRemoteDirs"):_instanceof(r,Yt)?P.t("sync.fileOp.noop"):_instanceof(r,Zi)?P.t("sync.fileOp.download"):_instanceof(r,Gn)?P.t("sync.fileOp.upload"):_instanceof(r,An)?P.t("sync.fileOp.removeLocal"):_instanceof(r,On)?P.t("sync.fileOp.removeRemote"):_instanceof(r,ea)?P.t("sync.fileOp.removeRemoteRecursively"):_instanceof(r,zn)?P.t("sync.fileOp.skip"):P.t("sync.fileOp.sync")}var _s=/*#__PURE__*/function(_zg_Modal){"use strict";_inherits(_s1,_zg_Modal);function _s1(t,n){_class_call_check(this,_s1);var _this;_this=_call_super(this,_s1,[t]);_this.tasks=n;_this.result=!1;_this.selectedTasks=[];_this.selectedTasks=new Array(n.length).fill(!0);return _this}_create_class(_s1,[{key:"onOpen",value:function onOpen(){var _this=this;this.setTitle(P.t("taskList.title"));var _this1=this,t=_this1.contentEl;t.empty(),t.createEl("p").setText(P.t("taskList.instruction"));var a=t.createDiv({cls:"max-h-50vh overflow-y-auto"}).createEl("table",{cls:"task-list-table"}),s=a.createEl("thead").createEl("tr");s.createEl("th",{text:P.t("taskList.execute")}),s.createEl("th",{text:P.t("taskList.action")}),s.createEl("th",{text:P.t("taskList.localPath")}),s.createEl("th",{text:P.t("taskList.remotePath")});var u=a.createEl("tbody");this.tasks.forEach(function(l,f){var d=u.createEl("tr"),x=d.createEl("td").createEl("input");x.type="checkbox",x.checked=_this.selectedTasks[f],x.addEventListener("change",function(h){_this.selectedTasks[f]=x.checked,h.stopPropagation()}),d.addEventListener("click",function(h){h.target!==x&&(x.checked=!x.checked,_this.selectedTasks[f]=x.checked,h.stopPropagation())}),d.createEl("td",{text:yi(l)}),d.createEl("td",{text:l.localPath}),d.createEl("td",{text:l.remotePath})});var c=t.createDiv();c.style.marginTop="1rem",new zg.Setting(c).addButton(function(l){l.setButtonText(P.t("taskList.continue")).setCta().onClick(function(){_this.result=!0,_this.close()})}).addButton(function(l){l.setButtonText(P.t("taskList.cancel")).onClick(function(){_this.result=!1,_this.close()})})}},{key:"open",value:function open(){return D(this,null,function(){var _this;return _ts_generator(this,function(_state){_this=this;return[2,(hp(_s.prototype,this,"open").call(this),new Promise(function(t){_this.onClose=function(){var n=_this.tasks.filter(function(i,a){return _this.selectedTasks[a]});t({confirm:_this.result,tasks:n})}}))]})})}}]);return _s1}(zg.Modal);var Ov=require("obsidian");var NY=new it,kY=function(){return NY.asObservable()},LY=function(r){return NY.next(r)};function Rq(r){return D(this,null,function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,new Promise(function(e){return window.setTimeout(e,r)})];case 1:_state.sent();return[2]}})})}function ws(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100;return D(this,null,function(){var t;return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,Promise.resolve(r())];case 1:t=_state.sent();if(t)return[2,t];return[4,Rq(e)];case 2:_state.sent();_state.label=3;case 3:return[3,0];case 4:return[2]}})})}(function(r,e){var t={_0x5cf91e:1609,_0x3faf49:1377,_0x5120ac:1289,_0x2f5ef4:"ejE(",_0x2cd6cc:1094,_0x2c966b:1717,_0x17ae12:1758,_0x51b4:1193,_0x3bcad0:481,_0x5df4d4:638,_0x8ba02:645,_0x1f3ae4:438,_0x30de76:501,_0x587f8e:495,_0x2efe7b:"o)FD",_0xf40806:1523,_0x126189:"N0Iq",_0x5ea1cb:644,_0x374dff:485,_0x4969c8:454,_0x578a1c:"Iozt",_0x562047:934,_0x1160b4:295,_0x4cb40b:838,_0x55f294:"iqpp",_0x3e2c3e:1084,_0x1b8ae4:1210,_0x3058bd:"RtOR",_0x377b2a:1191,_0x4ea89d:320,_0x33694f:83},n={_0x2ccfe8:417},i={_0xfad580:312},a={_0x3df5d1:14};function o(p,x,h,v,y){return ve(v- -a._0x3df5d1,h)}function s(p,x,h,v,y){return ve(h-199,v)}function u(p,x,h,v,y){return ve(v- -35,x)}function c(p,x,h,v,y){return ve(v-i._0xfad580,y)}function l(p,x,h,v,y){return ve(x- -n._0x2ccfe8,p)}for(var f=r();[];)try{var d=parseInt(c(1461,t._0x5cf91e,t._0x3faf49,t._0x5120ac,t._0x2f5ef4))/1+parseInt(c(t._0x2cd6cc,t._0x2c966b,t._0x17ae12,1356,"DLFC"))/2*(parseInt(c(t._0x51b4,1126,t._0x3bcad0,825,"ejE("))/3)+parseInt(c(t._0x5df4d4,t._0x8ba02,t._0x1f3ae4,792,"o)FD"))/4+parseInt(c(1119,t._0x30de76,t._0x587f8e,845,t._0x2efe7b))/5*(parseInt(c(1108,t._0xf40806,1296,1305,"V&B%"))/6)+parseInt(l(t._0x126189,t._0x5ea1cb,t._0x374dff,593,391))/7*(-parseInt(u(t._0x4969c8,t._0x578a1c,t._0x562047,575,t._0x1160b4))/8)+parseInt(s(t._0x4cb40b,645,989,t._0x55f294,1130))/9+parseInt(s(1588,t._0x3e2c3e,t._0x1b8ae4,t._0x3058bd,t._0x377b2a))/10*(-parseInt(l("s!LQ",t._0x4ea89d,-t._0x33694f,119,265))/11);if(d===e)break;f.push(f.shift())}catch(p){f.push(f.shift())}})(Kg,624791);var cJe=Object[Y("wS8$",553,212,371,8)+"e"],WY=Object[Y("r^O1",507,120,124,-69)+Y("fdfK",300,672,280,465)+Z(1093,1435,1838,"o5uN",1474)],lJe=Object[Y("N0Iq",-207,-111,-266,-345)+ae("QwuZ",1462,1571,1840,1821)+ue(-31,"V&B%",-408,-314,152)+Z(1710,2056,1416,"QwuZ",1724)+ue(-177,"XKg0",-537,-317,-92)],fJe=Object[Y("Iozt",79,-650,-307,-363)+te("bVi3",1108,1698,1572,1488)+ae("bVi3",1211,1244,845,1246)+Y("N0Iq",-259,-65,-20,102)],dJe=Object[Y("SAMA",226,-484,-112,24)+Y("V&B%",749,722,429,795)+Z(1236,1161,1700,"s!LQ",1505)],pJe=Object[te("o5uN",1353,1418,1505,1524)+ue(-342,"*YWj",-685,-563,-424)][Z(1152,641,745,"7r4f",989)+Z(1180,1573,1080,"848R",1330)+te("N2PL",1608,1749,1038,1359)],MY={};MY[ae("Zr4y",1522,1236,1729,1220)+"ts"]={};var hJe=function(r,e){return function(){return e||r((e=MY)[Y("DLFC",-19,439,183,173)+"ts"],e),e[Y("ejE(",394,129,225,612)+"ts"]}},xJe=function(r,e,t,n){var l=function l(h,v,y,m,b){return ae(v,h-c._0x13b464,y-c._0x164e32,m-270,b-66)};var f=function f(h,v,y,m,b){return Y(y,v-426,y-u._0x56d95e,b-1330,b-u._0x3916e9)};var d=function d(h,v,y,m,b){return Y(b,v-s._0x139304,y-298,v-1252,b-343)};var p=function p(h,v,y,m,b){return te(y,v-o._0x2f79ff,y-o._0x3fb4a0,m-145,h- -297)};var x=function x(h,v,y,m,b){return Z(h-10,v-a._0x4f2c85,y-436,v,h-40)};var i={_0x46dc05:1288,_0x2cf1ec:"JNeN",_0x3f78c5:1300,_0x5c298e:1563,_0x1627f1:1527,_0x5de1c1:1305,_0x1bd299:1430,_0x23642d:"N2PL",_0x4e3302:"7r4f",_0x2d5b51:1246,_0x40363a:1008,_0xf3d49a:1005,_0x134dd5:981,_0x210600:"AQmA",_0x3cda24:867,_0x4f040c:1088},a={_0x4f2c85:153},o={_0x2f79ff:53,_0x3fb4a0:259},s={_0x139304:292},u={_0x56d95e:204,_0x3916e9:234},c={_0x13b464:533,_0x164e32:339};var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;if(e&&(typeof e==="undefined"?"undefined":_type_of(e))==f(1811,i._0x46dc05,i._0x2cf1ec,i._0x3f78c5,1632)+"t"||(typeof e==="undefined"?"undefined":_type_of(e))==f(i._0x5c298e,i._0x1627f1,"X@hs",1383,i._0x5de1c1)+p(1195,i._0x1bd299,i._0x23642d,1207,914))try{var _loop=function(){var h=_step.value;!pJe[f(1602,1630,i._0x4e3302,1406,1626)](r,h)&&h!==t&&WY(r,h,{get:function(){return e[h]},enumerable:!(n=lJe(e,h))||n[p(i._0x2d5b51,i._0x40363a,"QdMv",1545,i._0xf3d49a)+f(i._0x134dd5,911,i._0x210600,i._0x3cda24,i._0x4f040c)]})};for(var _iterator=fJe(e)[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true)_loop()}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}return r},Hg=function(r,e,t){return t=r!=null?cJe(dJe(r)):{},xJe(e||!r||!r[Z(1461,1565,1550,"Td@a",1498)+Y("*YWj",57,458,136,470)]?WY(t,Z(1264,1334,1552,"V&B%",1516)+"lt",{value:r,enumerable:!0}):t,r)},Lc=function(r,e,t){return new Promise(function(n,i){var v=function v(T,w,R,_,E){return ue(w-1636,_,R-c._0x1816fc,_-c._0x39f5e0,E-232)};var y=function y(T,w,R,_,E){return te(w,w-u._0x5d5dfe,R-452,_-497,E- -1382)};var m=function m(T,w,R,_,E){return ue(T-s._0x3eff3f,_,R-s._0x12fd2d,_-177,E-49)};var b=function b(T,w,R,_,E){return ue(w-1348,R,R-412,_-330,E-44)};var S=function S(T,w,R,_,E){return Y(w,w-o._0x64f9da,R-o._0x3a440f,T-52,E-o._0x5e0269)};var a={_0x1e13d3:"wS8$",_0x401b9f:329,_0x59665c:461},o={_0x64f9da:161,_0x3a440f:410,_0x5e0269:460},s={_0x3eff3f:1355,_0x12fd2d:364},u={_0x5d5dfe:164},c={_0x1816fc:279,_0x39f5e0:110},l={_0x5b7525:88,_0xc3ebd5:477,_0x5c4429:159,_0x3356bc:"ix8k",_0x18415e:83,_0x519845:207,_0x176fe4:128,_0x2a03e9:20,_0x329d56:"Zr4y",_0x601cab:155,_0x835e94:1276,_0x2afa5a:1602,_0x49af3c:1891,_0x34e983:2153,_0x437779:"Iozt",_0x42b754:2148,_0x1c95c2:2226,_0x2cf41b:1527,_0x43d1e0:1465,_0x1a8771:753,_0xef95ff:537,_0x524270:19,_0x428fe1:343,_0x5a5724:1657,_0x4cd4cd:1764,_0x5e5d57:1486,_0x14ddfe:"JNeN",_0x41b554:1546,_0xc4c2e:"tghG",_0xe231e2:402,_0xf62f63:292},f={_0x91c602:136},d={_0xd08b04:296,_0x22ee44:20,_0x436e99:212,_0x4e7849:105,_0x2ae8bc:355,_0x39c870:142,_0x308e10:1301,_0x395f66:"MVwD",_0x540eff:1756,_0x59acbf:1363,_0x1044b3:1099,_0x5005e7:"SAMA",_0x1930ce:865,_0x19a896:932,_0x4a313d:1358,_0x5bd2e2:1711,_0x28f913:1048,_0x5df361:91,_0x12f5cb:9,_0x1c9436:1361,_0x157474:"848R",_0x1827e7:1362,_0x3578fd:1230,_0x46fff8:1148,_0x23664a:1229,_0x4ace64:"s!LQ",_0x150da1:540,_0x20d8e9:1427,_0x1915fe:1213,_0x2ddf10:1335,_0x2dc58c:"fdfK",_0x4cd2fc:1286,_0x460c5b:285,_0xde2caa:217,_0x9367d3:"ix8k",_0x2ec30c:252,_0x1fb50a:398,_0x53b334:116,_0x4d6f00:"DgfB",_0x5ec534:187,_0x5376ed:1226,_0x41cb1b:1324,_0x1e7f85:"*YWj",_0x2541ce:707,_0xa87ac3:205,_0x58d686:86,_0x26cdb9:1346,_0x25054a:1134,_0x145b9a:1231,_0x20ee3b:"AQmA"},p=function(T){var R=function R(qe,V,fe,me,be){return ve(be-257,V)};var _=function _(qe,V,fe,me,be){return ve(be- -892,V)};var E=function E(qe,V,fe,me,be){return ve(be- -806,me)};var O=function O(qe,V,fe,me,be){return ve(qe-672,be)};var I=function I(qe,V,fe,me,be){return ve(be-w._0x7b60e4,me)};var w={_0x7b60e4:790};try{if(_(-d._0xd08b04,"Z(VR",-34,-232,-3)!==_(321,"ejE(",74,-d._0x22ee44,-18)){var N,k=_0x158a46(_0x59c9e7),B=k[0],U=k[1],$=new _0x3fea05(_0x198db1(_0x5dbfd8,B,U)),X=0,le=U>0?B-4:B,K;for(K=0;K<le;K+=4)N=_0x571da1[_0x3b9e76[_(-d._0x436e99,"XKg0",d._0x4e7849,-d._0x2ae8bc,-d._0x39c870)+R(d._0x308e10,d._0x395f66,d._0x540eff,1442,d._0x59acbf)](K)]<<18|_0x3ca8ca[_0x4ad1fa[O(1427,1611,1156,d._0x1044b3,d._0x5005e7)+R(d._0x1930ce,"QDD]",d._0x19a896,1077,860)](K+1)]<<12|_0x2d28dd[_0x3c5ef2[O(d._0x4a313d,d._0x5bd2e2,1202,d._0x28f913,"fdfK")+_(-287,"Iozt",40,d._0x5df361,-d._0x12f5cb)](K+2)]<<6|_0x9ab02e[_0x84d8bf[O(d._0x1c9436,1502,1341,1168,d._0x157474)+O(1141,1380,d._0x1827e7,d._0x3578fd,"848R")](K+3)],$[X++]=N>>16&255,$[X++]=N>>8&255,$[X++]=N&255;return U===2&&(N=_0x2ffce1[_0x225df2[I(1433,1353,d._0x46fff8,"848R",1479)+O(1490,1164,d._0x23664a,1649,d._0x4ace64)](K)]<<2|_0x2eba17[_0x4429bb[_(7,"7r4f",-d._0x150da1,17,-232)+I(d._0x20d8e9,d._0x1915fe,d._0x2ddf10,d._0x2dc58c,d._0x4cd2fc)](K+1)]>>4,$[X++]=N&255),U===1&&(N=_0x407cd4[_0x3d93e2[E(d._0x460c5b,375,d._0xde2caa,d._0x9367d3,d._0x2ec30c)+E(-d._0x1fb50a,-511,-d._0x53b334,d._0x4d6f00,-d._0x5ec534)](K)]<<10|_0x14ba3f[_0x2c26e7[O(d._0x5376ed,1221,d._0x41cb1b,1088,d._0x1e7f85)+R(1213,"s!LQ",1383,d._0x2541ce,1075)](K+1)]<<4|_0x3bca79[_0x566379[E(-d._0xa87ac3,142,-123,"(uUF",d._0x58d686)+O(1251,1270,d._0x26cdb9,d._0x25054a,")u!k")](K+2)]>>2,$[X++]=N>>8&255,$[X++]=N&255),$}else h(t[O(d._0x145b9a,1552,1285,1483,d._0x20ee3b)](T))}catch(qe){i(qe)}},x=function(T){var _=function _(k,B,U,$,X){return ve(B-R._0x5bcf6d,$)};var E=function E(k,B,U,$,X){return ve(U- -999,$)};var O=function O(k,B,U,$,X){return ve(B- -689,X)};var I=function I(k,B,U,$,X){return ve($- -f._0x91c602,k)};var N=function N(k,B,U,$,X){return ve(U-w._0x1a2d3e,$)};var w={_0x1a2d3e:490},R={_0x5bcf6d:681};if(E(-l._0x5b7525,l._0xc3ebd5,l._0x5c4429,l._0x3356bc,l._0x18415e)===E(l._0x519845,l._0x176fe4,l._0x2a03e9,l._0x329d56,-l._0x601cab))_0x1b5cd6(_0x3d1fbb);else try{h(t[_(1007,1349,1546,"fdfK",l._0x835e94)](T))}catch(k){if(_(l._0x2afa5a,l._0x49af3c,l._0x34e983,l._0x437779,1871)!==_(l._0x42b754,1891,1919,"Iozt",l._0x1c95c2)){var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;if(_0x4bc1a4&&(typeof _0x3b5b16==="undefined"?"undefined":_type_of(_0x3b5b16))==_(1534,l._0x2cf41b,l._0x43d1e0,"#I1X",1213)+"t"||(typeof _0x1f1777==="undefined"?"undefined":_type_of(_0x1f1777))==E(-831,-453,-483,"RzAx",-l._0x1a8771)+O(176,-205,-l._0xef95ff,-345,"QwuZ"))try{var _loop=function(){var B=_step.value;!_0x5dedf0[O(-399,-l._0x524270,-l._0x428fe1,-84,l._0x3356bc)](_0x391987,B)&&B!==_0x143cd7&&_0x18d15a(_0x3f7921,B,{get:function(){return _0x9e6ea0[B]},enumerable:!(_0x2e5242=_0xab3389(_0x5469f2,B))||_0x45dbdb[_(l._0x5a5724,l._0x4cd4cd,l._0x5e5d57,l._0x14ddfe,l._0x41b554)+I(l._0xc4c2e,480,542,l._0xe231e2,l._0xf62f63)]})};for(var _iterator=_0xd71512(_0x6fc4f8)[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true)_loop()}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}return _0x297e62}else i(k)}},h=function(T){return T[v(1490,1883,2008,"SAMA",1587)]?n(T[y(868,"*qL$",912,918,539)]):Promise[y(64,"Iozt",-134,-54,-99)+"ve"](T[m(1232,1253,928,"JNeN",1073)])[y(-232,"JMc^",61,223,32)](p,x)};h((t=t[b(1278,1068,"N0Iq",932,1039)](r,e))[y(775,a._0x1e13d3,846,a._0x401b9f,a._0x59665c)]())})},Qg=hJe(function(r){"use strict";var E=function E(de,_e,Ae,Qe,Ie){return Z(de-288,_e-427,Ae-_._0x414496,Ie,de- -_._0x258feb)};var B=function B(de,_e,Ae,Qe,Ie){return ue(Ie-726,Ae,Ae-R._0x516e4d,Qe-98,Ie-R._0x4cc1fa)};var X=function X(de,_e,Ae,Qe,Ie){return Z(de-157,_e-w._0x16c8e1,Ae-18,Ae,de-78)};var le=function le(de){var _e={_0x2f7fab:47,_0x1c12b3:45},Ae={_0x4a6b59:522,_0x1d7e12:172},Qe=de[or(1427,"o)FD",b._0x2e397c,1269,1503)+"h"];if(Qe%4>0)throw new Error(Ie("Td@a",-b._0x3abc68,-8,128,-117)+Be(b._0x387d9a,"*YWj",b._0x41a9d3,103,649)+Be(369,"DLFC",120,-18,494)+Ze(801,b._0x1c02f9,398,484,"Z[fC")+Ie(b._0x2f8f88,b._0x143e7e,b._0x104046,-102,-b._0x2f36da)+Ze(467,822,741,758,b._0x58236d)+Be(809,"6xFd",1134,1124,b._0x44583d)+Cr(b._0x180965,b._0x3322e5,b._0x529e6b,1427,b._0x4cee35)+Ze(236,b._0x52e965,380,b._0x397350,b._0xd227db)+"4");function Ie(je,Ge,ur,Rr,$e){return E($e- -777,Ge-T._0x312a23,ur-T._0x4d89c5,Rr-140,je)}function or(je,Ge,ur,Rr,$e){return K(je-347,Ge-496,Ge,Rr-133,ur-336)}function Be(je,Ge,ur,Rr,$e){return V(je-107,Ge,je-Ae._0x4a6b59,Rr-Ae._0x1d7e12,$e-188)}function Ze(je,Ge,ur,Rr,$e){return K(je-_e._0x2f7fab,Ge-468,$e,Rr-_e._0x1c12b3,je- -333)}var vr=de[Ze(b._0x1a7997,621,398,613,b._0x2bf5ff)+"Of"]("=");vr===-1&&(vr=Qe);var Le=vr===Qe?0:4-vr%4;function Cr(je,Ge,ur,Rr,$e){return X(je- -S._0xf29e97,Ge-S._0x1380de,$e,Rr-S._0x3b13ab,$e-424)}return[vr,Le]};var K=function K(de,_e,Ae,Qe,Ie){return Z(de-246,_e-m._0x55cf92,Ae-399,Ae,Ie- -m._0x579771)};var qe=function qe(de){var _e={_0x331676:76,_0x3210c7:1595,_0x21642f:238,_0x5e1d23:118};function Ae(vr,Le,Cr,je,Ge){return X(Le- -615,Le-y._0x1f73ed,Ge,je-y._0x1c2ee9,Ge-449)}function Qe(vr,Le,Cr,je,Ge){return B(vr-491,Le-v._0x7161e1,vr,je-64,Cr-v._0x125f47)}function Ie(vr,Le,Cr,je,Ge){return V(vr-_e._0x331676,Cr,vr-_e._0x3210c7,je-_e._0x21642f,Ge-_e._0x5e1d23)}if(Qe("DLFC",h._0x535bfd,h._0x375cb5,h._0x555c92,h._0x3d7583)===Qe("DgfB",511,872,h._0x3530d2,766)){var or=le(de),Be=or[0],Ze=or[1];return(Be+Ze)*3/4-Ze}else _0x34391a(_0x8c7a4c[Ie(1322,h._0x5c786d,h._0x2b270a,1215,1342)](_0x3357dd))};var V=function V(de,_e,Ae,Qe,Ie){return Z(de-x._0x5596aa,_e-65,Ae-494,_e,Ae- -x._0x52205e)};var fe=function fe(de,_e,Ae){return(_e+Ae)*3/4-Ae};var me=function me(de){var _e={_0x14bc78:359,_0x2edd8c:169,_0x40bf02:30},Ae,Qe=le(de),Ie=Qe[0],or=Qe[1],Be=new N(fe(de,Ie,or)),Ze=0,vr=or>0?Ie-4:Ie,Le;function Cr($e,dr,gt,_r,Wr){return V($e-222,Wr,$e-91,_r-p._0xa39208,Wr-427)}function je($e,dr,gt,_r,Wr){return E(dr- -d._0x321801,dr-d._0x2f5466,gt-d._0x4f5ad9,_r-496,gt)}function Ge($e,dr,gt,_r,Wr){return B($e-136,dr-260,dr,_r-f._0x52027e,gt- -f._0x51356d)}function ur($e,dr,gt,_r,Wr){return X(_r- -l._0x5a6e02,dr-l._0x9ea0b4,Wr,_r-l._0x5e9047,Wr-212)}for(Le=0;Le<vr;Le+=4)Ae=I[de[Cr(412,c._0x4782a9,12,c._0x3be910,"JNeN")+Cr(417,130,c._0x212e1c,703,"bVi3")](Le)]<<18|I[de[je(c._0x819dab,360,"Iozt",479,140)+Ge(429,"[3cA",c._0x1427b8,c._0x297a9d,0)](Le+1)]<<12|I[de[ur(c._0x51a484,842,375,c._0x1cef05,c._0x333843)+Cr(-166,-566,-c._0xc6a43c,-c._0x13f6c6,"X@hs")](Le+2)]<<6|I[de[Cr(c._0xdea3fa,363,c._0x55c9d0,c._0x5e2cd1,c._0x1a631a)+ur(c._0x5e2cd1,738,719,c._0x1df41c,"Zr4y")](Le+3)],Be[Ze++]=Ae>>16&255,Be[Ze++]=Ae>>8&255,Be[Ze++]=Ae&255;function Rr($e,dr,gt,_r,Wr){return V($e-_e._0x14bc78,dr,$e-29,_r-_e._0x2edd8c,Wr-_e._0x40bf02)}return or===2&&(Ae=I[de[ur(c._0x2dd05e,1505,c._0x2d3a10,c._0x3c42e1,c._0x19892d)+ur(c._0x34f435,528,504,c._0x49b080,"848R")](Le)]<<2|I[de[Rr(325,c._0xd84e5,c._0x352693,c._0x2d3535,347)+je(c._0x4a30cd,c._0x2d1d21,"AQmA",c._0x460234,471)](Le+1)]>>4,Be[Ze++]=Ae&255),or===1&&(Ae=I[de[ur(c._0x1fde8e,1055,c._0x5a62b0,1207,c._0x129560)+je(c._0xe8ca7,c._0x1c13cd,c._0x5e4c33,764,541)](Le)]<<10|I[de[Ge(147,c._0x52ad0b,c._0x228330,c._0x138f0d,-210)+ur(792,661,427,c._0x4ff894,c._0x570bb4)](Le+1)]<<4|I[de[ur(c._0x4c5cfa,c._0x5237a2,1557,1276,"ejE(")+je(47,419,"RzAx",102,c._0x550cbc)](Le+2)]>>2,Be[Ze++]=Ae>>8&255,Be[Ze++]=Ae&255),Be};var be=function be(de){function _e(Qe,Ie,or,Be,Ze){return E(or-824,Ie-u._0x15e21e,or-476,Be-422,Be)}function Ae(Qe,Ie,or,Be,Ze){return K(Qe-205,Ie-s._0x3da765,Ze,Be-425,Be-s._0x21b925)}return Ae(o._0x2517ff,1768,2225,o._0x22b8af,"iqpp")!==_e(o._0x10d98f,o._0x514ef7,o._0x8bea9b,"AQmA",o._0x41a417)?O[de>>18&63]+O[de>>12&63]+O[de>>6&63]+O[de&63]:(_0x4c31f9+_0x36f058)*3/4-_0x436c60};var pe=function pe(de,_e,Ae){for(var Qe={_0x249212:135,_0x855680:451,_0x141d4d:431},Ie={_0xec8bdb:334,_0x57ac78:222},or,Be=[],Ze=_e;Ze<Ae;Ze+=3)or=(de[Ze]<<16&0xff0000)+(de[Ze+1]<<8&65280)+(de[Ze+2]&255),Be[Le(a._0x435b41,32,a._0x1f46ab,400,-a._0x3b03ea)](be(or));function vr(Cr,je,Ge,ur,Rr){return B(Cr-117,je-223,Ge,ur-Ie._0xec8bdb,je- -Ie._0x57ac78)}function Le(Cr,je,Ge,ur,Rr){return V(Cr-Qe._0x249212,Ge,je-Qe._0x855680,ur-Qe._0x141d4d,Rr-281)}return Be[Le(a._0x3ad9f8,258,a._0x30b7a0,a._0x3d7250,a._0x27fb0b)]("")};var Te=function Te(de){var _e={_0x88c7eb:156,_0x12b1a7:491,_0x1cbb35:57},Ae={_0x35b23f:1111,_0x289d5d:253};function Qe($e,dr,gt,_r,Wr){return E(dr- -Ae._0x35b23f,dr-38,gt-Ae._0x289d5d,_r-216,$e)}function Ie($e,dr,gt,_r,Wr){return B($e-105,dr-315,_r,_r-i._0x1c5e7a,$e-i._0x5936e5)}function or($e,dr,gt,_r,Wr){return X(Wr- -288,dr-97,dr,_r-n._0x5bada5,Wr-n._0x4a52b5)}function Be($e,dr,gt,_r,Wr){return V($e-170,$e,dr-1254,_r-184,Wr-205)}function Ze($e,dr,gt,_r,Wr){return B($e-_e._0x88c7eb,dr-_e._0x12b1a7,dr,_r-_e._0x1cbb35,$e-885)}if(Be("wS8$",924,t._0x139e10,t._0x1512d5,645)!==Be(t._0x5c38d8,1432,1421,1650,t._0x496d7f))return _0x372688[_0x171277>>18&63]+_0x21f90c[_0x350463>>12&63]+_0x1f9cfc[_0x3c9f4d>>6&63]+_0x25a1e0[_0x2ccba5&63];for(var vr,Le=de[Be(t._0x1f658f,t._0x53b1b7,t._0xc66d6e,1261,t._0x32a185)+"h"],Cr=Le%3,je=[],Ge=16383,ur=0,Rr=Le-Cr;ur<Rr;ur+=Ge)je[or(t._0x5bd1cf,"JNeN",t._0x49d4e4,1057,t._0x39fdfd)](pe(de,ur,ur+Ge>Rr?Rr:ur+Ge));return Cr===1?(vr=de[Le-1],je[or(1048,"6xFd",1480,1469,1433)](O[vr>>2]+O[vr<<4&63]+"==")):Cr===2&&(vr=(de[Le-2]<<8)+de[Le-1],je[Be(t._0x1457f7,995,t._0x286066,954,t._0xc92eb3)](O[vr>>10]+O[vr>>4&63]+O[vr<<2&63]+"=")),je[Ie(889,667,t._0x3a4450,"MVwD",t._0x19ed01)]("")};var e={_0x1a9dac:811,_0x48fce4:220,_0x33ef30:758,_0x1fc95b:482,_0x5b3dfe:878,_0x5af859:643,_0x121ff2:"(uUF",_0x32f9c5:677,_0x491ee3:1267,_0x3547c5:1127,_0x5d3d69:"qSP&",_0x44ca64:4,_0x3b555e:1149,_0x660270:618,_0x3ae20a:1443,_0x168f72:676,_0x44b16a:"wS8$",_0x451558:1735,_0x67db47:1104,_0x828b49:1655,_0x85a533:"o)FD",_0x33f8d9:769,_0x4137bb:740,_0x46d4fd:554,_0x580dd8:170,_0x11410a:50,_0x164866:"QdMv",_0x1a56ba:323,_0x4300be:288,_0x589f42:298,_0x18912c:"V&B%",_0xb417d8:329,_0x20f367:377,_0x2081b2:525,_0x5f0b79:1020,_0x34fb0a:1263,_0x1e9fb3:1619,_0x2aca60:71,_0x328675:1315,_0x558f45:1118,_0x2c27ab:1311,_0x3ae91a:768,_0x4a89ac:275,_0x4b1367:1208,_0x59596f:"6xFd",_0x3aa75a:1334,_0x1b7023:"JMc^",_0x1a1aa6:1037,_0xc52709:1773,_0x30a606:1791,_0x4b063b:"RzAx",_0x91078c:1406,_0x284da0:1321,_0x14ca07:"V&B%"},t={_0x139e10:902,_0x1512d5:1194,_0x5c38d8:"tghG",_0x496d7f:1750,_0x1f658f:"Td@a",_0x53b1b7:1413,_0xc66d6e:1467,_0x32a185:1544,_0x5bd1cf:1556,_0x49d4e4:1148,_0x39fdfd:1226,_0x1457f7:"QdMv",_0x286066:847,_0xc92eb3:1273,_0x3a4450:1001,_0x19ed01:1004},n={_0x5bada5:149,_0x4a52b5:244},i={_0x1c5e7a:350,_0x5936e5:308},a={_0x435b41:227,_0x1f46ab:"[3cA",_0x3b03ea:204,_0x3ad9f8:303,_0x30b7a0:"848R",_0x3d7250:46,_0x27fb0b:220},o={_0x2517ff:1968,_0x22b8af:1863,_0x10d98f:1918,_0x514ef7:1486,_0x8bea9b:1790,_0x41a417:1744},s={_0x3da765:104,_0x21b925:974},u={_0x15e21e:447},c={_0x4782a9:193,_0x3be910:39,_0x212e1c:643,_0x819dab:42,_0x1427b8:242,_0x297a9d:633,_0x51a484:500,_0x1cef05:754,_0x333843:"V&B%",_0xc6a43c:322,_0x13f6c6:193,_0xdea3fa:424,_0x55c9d0:455,_0x5e2cd1:522,_0x1a631a:"dT8K",_0x1df41c:706,_0x2dd05e:1466,_0x2d3a10:1571,_0x3c42e1:1344,_0x19892d:"X@hs",_0x34f435:484,_0x49b080:618,_0xd84e5:"Z[fC",_0x352693:143,_0x2d3535:61,_0x4a30cd:242,_0x2d1d21:264,_0x460234:383,_0x1fde8e:1529,_0x5a62b0:1162,_0x129560:"ix8k",_0xe8ca7:868,_0x1c13cd:571,_0x5e4c33:"qSP&",_0x52ad0b:"s!LQ",_0x228330:55,_0x138f0d:202,_0x4ff894:618,_0x570bb4:"848R",_0x4c5cfa:875,_0x5237a2:1462,_0x550cbc:358},l={_0x5a6e02:378,_0x9ea0b4:268,_0x5e9047:454},f={_0x52027e:159,_0x51356d:470},d={_0x321801:643,_0x2f5466:242,_0x4f5ad9:177},p={_0xa39208:281},x={_0x5596aa:266,_0x52205e:1361},h={_0x535bfd:767,_0x375cb5:677,_0x555c92:284,_0x3d7583:980,_0x3530d2:1035,_0x5c786d:1483,_0x2b270a:"rAUW"},v={_0x7161e1:33,_0x125f47:224},y={_0x1f73ed:239,_0x1c2ee9:500},m={_0x55cf92:59,_0x579771:477},b={_0x2e397c:1227,_0x3abc68:208,_0x387d9a:431,_0x41a9d3:55,_0x1c02f9:806,_0x2f8f88:"Td@a",_0x143e7e:150,_0x104046:93,_0x2f36da:60,_0x58236d:"XKg0",_0x44583d:468,_0x180965:1350,_0x3322e5:1532,_0x529e6b:1290,_0x4cee35:"r^O1",_0x52e965:231,_0x397350:350,_0xd227db:"848R",_0x1a7997:426,_0x2bf5ff:"fdfK"},S={_0xf29e97:232,_0x1380de:119,_0x3b13ab:182},T={_0x312a23:473,_0x4d89c5:28},w={_0x16c8e1:9},R={_0x516e4d:443,_0x4cc1fa:89},_={_0x414496:12,_0x258feb:312};r[B(538,e._0x1a9dac,"SAMA",e._0x48fce4,522)+K(1203,e._0x33ef30,"o)FD",e._0x1fc95b,e._0x5b3dfe)]=qe,r[B(e._0x5af859,414,e._0x121ff2,e._0x32f9c5,351)+E(1015,1175,e._0x491ee3,e._0x3547c5,e._0x5d3d69)+"y"]=me;r[V(-84,"AQmA",-384,-e._0x44ca64,-476)+B(e._0x3b555e,e._0x660270,"DLFC",703,798)+X(1051,713,"wS8$",e._0x3ae20a,e._0x168f72)]=Te;var O=[],I=[],N=(typeof Uint8Array==="undefined"?"undefined":_type_of(Uint8Array))!=X(1428,1681,e._0x44b16a,e._0x451558,e._0x67db47)+V(-39,"QDD]",216,510,169)?Uint8Array:Array,k=X(1699,e._0x828b49,e._0x85a533,1991,1604)+B(e._0x33f8d9,743,"7r4f",494,e._0x4137bb)+V(115,"6xFd",-158,-339,-436)+V(e._0x46d4fd,"qSP&",e._0x580dd8,201,108)+V(e._0x11410a,e._0x164866,e._0x1a56ba,e._0x4300be,127)+B(e._0x589f42,279,e._0x18912c,e._0xb417d8,e._0x20f367)+K(e._0x2081b2,684,e._0x85a533,e._0x5f0b79,682)+E(e._0x34fb0a,1488,1622,e._0x1e9fb3,"o5uN")+V(139,"QDD]",-e._0x2aca60,-136,-273)+E(e._0x328675,e._0x558f45,1616,1325,"r^O1")+X(1145,973,"ix8k",e._0x2c27ab,e._0x3ae91a)+E(607,e._0x4a89ac,724,427,"DLFC")+B(e._0x4b1367,644,e._0x59596f,532,857);for(U=0,$=k[K(e._0x3aa75a,991,e._0x1b7023,1126,e._0x1a1aa6)+"h"];U<$;++U)O[U]=k[U],I[k[X(e._0xc52709,e._0x30a606,e._0x4b063b,1913,e._0x91078c)+E(e._0x284da0,1215,1371,1350,e._0x14ca07)](U)]=U;var U,$;I[45]=62,I[95]=63}),gJe=Hg(Qg()),xt=[];for(var r=0;r<256;++r)xt[Y("r^O1",28,-80,-69,318)]((r+256)[te("wS8$",1470,1225,1485,1304)+ae("(uUF",901,1233,641,1195)](16)[Z(1258,1284,1282,"bVi3",1389)](1));function ae(r,e,t,n,i){return ve(e-399,r)}function vJe(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;var t={_0x129a7c:1486,_0xee1c0b:1538,_0x5629e1:"s!LQ",_0x86aab1:"*YWj",_0x140bf7:1477,_0x3a81f2:984},n={_0x308d8b:1277,_0x37ef9d:62};function i(o,s,u,c,l){return ue(c-n._0x308d8b,s,u-n._0x37ef9d,c-207,l-323)}function a(o,s,u,c,l){return Y(l,s-161,u-339,o-1552,l-489)}return(xt[r[e+0]]+xt[r[e+1]]+xt[r[e+2]]+xt[r[e+3]]+"-"+xt[r[e+4]]+xt[r[e+5]]+"-"+xt[r[e+6]]+xt[r[e+7]]+"-"+xt[r[e+8]]+xt[r[e+9]]+"-"+xt[r[e+10]]+xt[r[e+11]]+xt[r[e+12]]+xt[r[e+13]]+xt[r[e+14]]+xt[r[e+15]])[a(t._0x129a7c,1632,1205,t._0xee1c0b,t._0x5629e1)+i(1406,t._0x86aab1,t._0x140bf7,1241,t._0x3a81f2)+"e"]()}function ve(r,e){var t=Kg();return ve=function(n,i){n=n-465;var a=t[n];if(ve.tmMvFG===void 0){var o=function o(f){for(var d="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=",p="",x="",h=0,v,y,m=0;y=f.charAt(m++);~y&&(v=h%4?v*64+y:y,h++%4)?p+=String.fromCharCode(255&v>>(-2*h&6)):0)y=d.indexOf(y);for(var b=0,S=p.length;b<S;b++)x+="%"+("00"+p.charCodeAt(b).toString(16)).slice(-2);return decodeURIComponent(x)},s=function s(f,d){var p=[],x=0,h,v="";f=o(f);var y;for(y=0;y<256;y++)p[y]=y;for(y=0;y<256;y++)x=(x+p[y]+d.charCodeAt(y%d.length))%256,h=p[y],p[y]=p[x],p[x]=h;y=0,x=0;for(var m=0;m<f.length;m++)y=(y+1)%256,x=(x+p[y])%256,h=p[y],p[y]=p[x],p[x]=h,v+=String.fromCharCode(f.charCodeAt(m)^p[(p[y]+p[x])%256]);return v};ve.jKINWI=s,r=arguments,ve.tmMvFG=!![]}var u=t[0],c=n+u,l=r[c];return l?a=l:(ve.pZvLXO===void 0&&(ve.pZvLXO=!![]),a=ve.jKINWI(a,i),r[c]=a),a},ve(r,e)}var Iq,mJe=new Uint8Array(16);function yJe(){var r={_0x32d940:1151,_0xea23c0:1239,_0x5044e8:"*qL$",_0x12345f:561,_0x21f690:364,_0xc31a3d:214,_0x76f73a:1183,_0x3a0197:"SAMA",_0x5295ea:617,_0x5e7335:770,_0x2dab3a:713,_0x52f92e:1001,_0x112acb:1420,_0x4acfa2:1674,_0x356f81:703,_0x362047:403,_0x9fe35d:"6xFd",_0x212057:1115,_0x4b1e18:1517,_0x15d5cf:1008,_0x5757c4:888,_0xb0d7e6:1017,_0x53ad6d:1202,_0xf32360:1820,_0x32adaa:1754,_0x169830:"Z(VR",_0x383484:1734,_0x18763f:1521,_0x5e95d7:721,_0x4ac63b:384,_0x38b915:630,_0x142cdd:1370,_0x10e419:1732,_0x4604b7:"RtOR",_0x1ce82f:1472,_0x1383b5:1387,_0x186353:592,_0x57fb98:"T4sb",_0x248325:758,_0x47d4f8:732,_0x19fe75:"6xFd",_0x487a9a:518,_0x1a7f1e:467,_0x3e3bed:382,_0x363794:1577,_0x5bb5b7:"X@hs",_0x29b9d9:1190,_0x52819f:352,_0x24a8d1:542,_0x2be754:875,_0x4a88bf:497,_0x23003c:386,_0x2c5298:"ix8k",_0x1ac04f:65,_0x54815d:1856,_0x2c8d7a:1600,_0x11cc88:1641,_0x5ff608:1400,_0x4a8daf:638,_0x253e95:"DLFC",_0x2c0a97:600,_0x2f8325:180,_0x3bade8:1060,_0x30be66:805,_0x24374a:1312,_0x53fe0f:10,_0x21d771:216,_0x2d02bf:311},e={_0x2b3486:349,_0x3a69df:401},t={_0x5c67d7:1318},n={_0x5ecfae:352,_0x57c1c3:222},i={_0x29e1de:171},a={_0x4f6b99:354,_0x155025:151,_0x5b3aa5:22,_0x35e9f7:379};function o(f,d,p,x,h){return ae(p,f- -a._0x4f6b99,p-a._0x155025,x-a._0x5b3aa5,h-a._0x35e9f7)}function s(f,d,p,x,h){return Y(f,d-428,p-i._0x29e1de,d-707,h-499)}function u(f,d,p,x,h){return ae(x,p- -1156,p-408,x-n._0x5ecfae,h-n._0x57c1c3)}function c(f,d,p,x,h){return Y(p,d-367,p-434,x-t._0x5c67d7,h-264)}if(!Iq){if((typeof crypto==="undefined"?"undefined":_type_of(crypto))==l(r._0x32d940,935,r._0xea23c0,r._0x5044e8,1278)+o(600,r._0x12345f,"RzAx",r._0x21f690,r._0xc31a3d)||!crypto[l(r._0x76f73a,1050,1505,r._0x3a0197,1314)+l(r._0x5295ea,220,249,"V&B%",925)+l(876,r._0x5e7335,914,"o)FD",536)])throw new Error(o(597,r._0x2dab3a,"DgfB",r._0x52f92e,624)+c(1558,r._0x112acb,"QwuZ",r._0x4acfa2,1800)+s("X@hs",437,r._0x356f81,694,r._0x362047)+s(r._0x9fe35d,r._0x212057,r._0x4b1e18,1313,1001)+l(1313,1045,1358,"X@hs",r._0x15d5cf)+o(1095,1468,"tghG",r._0x5757c4,768)+s("V&B%",r._0xb0d7e6,r._0x53ad6d,1278,1197)+c(r._0xf32360,r._0x32adaa,r._0x169830,r._0x383484,r._0x18763f)+u(452,r._0x5e95d7,r._0x4ac63b,"iqpp",r._0x38b915)+o(1074,1426,"T4sb",779,r._0x142cdd)+c(r._0x10e419,1108,r._0x4604b7,r._0x1ce82f,r._0x1383b5)+o(r._0x186353,511,r._0x57fb98,290,r._0x248325)+l(r._0x47d4f8,409,367,r._0x19fe75,527)+l(585,r._0x487a9a,r._0x1a7f1e,"Z(VR",r._0x3e3bed)+c(r._0x363794,1768,r._0x5bb5b7,1437,r._0x29b9d9)+o(725,1049,"^I18",883,r._0x52819f)+o(r._0x24a8d1,r._0x2be754,")u!k",640,836)+u(526,r._0x4a88bf,r._0x23003c,r._0x2c5298,r._0x1ac04f)+c(r._0x54815d,r._0x2c8d7a,"dT8K",r._0x11cc88,r._0x5ff608)+u(r._0x4a8daf,340,290,r._0x253e95,r._0x2c0a97)+u(-418,-294,-121,"*qL$",r._0x2f8325));Iq=crypto[o(678,827,"m5Ud",935,931)+l(r._0x3bade8,r._0x30be66,1178,"XKg0",r._0x24374a)+u(-r._0x53fe0f,-596,-r._0x21d771,"T4sb",-r._0x2d02bf)][o(1261,1581,"o5uN",1630,1213)](crypto)}function l(f,d,p,x,h){return ae(x,f- -e._0x2b3486,p-331,x-62,h-e._0x3a69df)}return Iq(mJe)}var bJe=(typeof crypto==="undefined"?"undefined":_type_of(crypto))!=ue(-165,"N0Iq",-133,-400,-367)+ae("N2PL",1152,1103,968,971)&&crypto[te("DLFC",1630,1205,1843,1439)+Z(1967,1549,1521,"o)FD",1591)]&&crypto[ue(-353,"o5uN",-263,-449,-103)+Y("#I1X",607,211,282,-96)][te("DgfB",1604,2082,1969,1798)](crypto),DY={randomUUID:bJe};function _Je(r,e,t){var n={_0x29e6cd:1063,_0x141e5f:1032,_0x1a3c8f:949,_0x30ef51:"*YWj",_0x275148:1174,_0x7cc276:"SAMA",_0x5c6d0c:1251,_0x2b1a4d:943,_0xa74665:1148,_0x506cc5:1199,_0x5bf20c:"*qL$",_0x38c209:1650,_0x5978bc:1900,_0x411dcb:2012,_0x1e2379:"o)FD",_0x33af11:367,_0x4f2cd6:61,_0x18cf02:1639,_0x57d24f:1819,_0xfaf042:1595,_0xf6f761:1619,_0x2c4d35:924,_0x1ac134:"X@hs",_0x367b00:1055,_0x3b081f:"JMc^",_0x13d005:1449,_0xa2dc96:1699,_0x576f0d:"qSP&",_0x45635c:1160,_0x1cab33:"QDD]",_0x4656d5:2127,_0x4fee04:"s!LQ",_0x1fec75:1913,_0x3a5453:1853,_0x1fc00f:1138,_0x19406f:1204,_0x4ec4c3:")u!k",_0xf71656:1002,_0x3bd16b:972,_0x35a6a9:658,_0x667392:1530,_0x1d6c8c:1839,_0x418ea8:"RtOR",_0x35be3b:437,_0x4ec5b2:344,_0x4fcf6d:115,_0x5ee30f:2117,_0x5d8f6a:525,_0x22f022:"MVwD",_0x1deef1:1335,_0x4ca36a:1497,_0x2e7c9b:1435,_0x184b8e:2016,_0x162001:1463,_0x5f3276:306,_0x31155e:138,_0x4d23a9:127,_0x57a738:136,_0x43858d:82,_0x3f09b9:"Td@a",_0x21e9fc:1699,_0x2aa80b:1513,_0x631af1:454,_0x223c13:279,_0x1e1ae2:261,_0x250e9b:1489,_0x46ec2b:1277,_0x3ba566:"m5Ud"},i={_0x3d52dd:40,_0x565c87:162,_0x19c1c4:319},a={_0x252cf5:462},o={_0x4de97f:329,_0x54eb79:318},s={_0x54d544:417,_0x41199b:43},u,c,l;if(DY[f(n._0x29e6cd,n._0x141e5f,n._0x1a3c8f,1255,n._0x30ef51)+f(1161,730,1027,n._0x275148,n._0x7cc276)]&&!e&&!r)return DY[f(n._0x5c6d0c,n._0x2b1a4d,n._0xa74665,n._0x506cc5,n._0x5bf20c)+p(n._0x38c209,n._0x5978bc,"MVwD",1680,n._0x411dcb)]();r=r||{};function f(y,m,b,S,T){return Z(y-257,m-32,b-s._0x54d544,T,b- -s._0x41199b)}var d=(l=(c=r[v(n._0x1e2379,n._0x33af11,183,276,n._0x4f2cd6)+"m"])!=null?c:(u=r[f(n._0x18cf02,n._0x57d24f,n._0xfaf042,n._0xf6f761,"(uUF")])==null?void 0:u[f(1093,682,n._0x2c4d35,1209,n._0x1ac134)](r))!=null?l:yJe();function p(y,m,b,S,T){return te(b,m-86,b-357,S-274,m-185)}if(d[x(n._0x367b00,1125,n._0x3b081f,768,1242)+"h"]<16)throw new Error(f(1843,1083,n._0x13d005,n._0xa2dc96,n._0x576f0d)+h(n._0x45635c,1053,n._0x1cab33,1448,1839)+p(n._0x4656d5,2068,n._0x4fee04,n._0x1fec75,n._0x3a5453)+f(n._0x1fc00f,1302,1231,n._0x19406f,"JNeN")+x(756,713,n._0x4ec4c3,878,421)+f(n._0xf71656,957,n._0x3bd16b,n._0x35a6a9,"N0Iq")+p(1152,n._0x667392,"QdMv",n._0x1d6c8c,1497));function x(y,m,b,S,T){return te(b,m-o._0x4de97f,b-o._0x54eb79,S-74,y- -703)}function h(y,m,b,S,T){return te(b,m-500,b-a._0x252cf5,S-248,S- -198)}if(d[6]=d[6]&15|64,d[8]=d[8]&63|128,e)if(v(n._0x418ea8,n._0x35be3b,n._0x4ec5b2,n._0x4fcf6d,193)!==p(1803,2075,"s!LQ",1875,n._0x5ee30f))try{_0x15ce9b(_0x17e252[x(683,n._0x5d8f6a,n._0x22f022,394,768)](_0x47c339))}catch(y){_0xcc486e(y)}else{if(t=t||0,t<0||t+16>e[p(n._0x1deef1,1683,"o5uN",n._0x4ca36a,1751)+"h"])throw new RangeError(p(n._0x2e7c9b,1705,n._0x418ea8,n._0x38c209,n._0x184b8e)+x(1094,1264,"fdfK",n._0x162001,1178)+v("Z[fC",-n._0x5f3276,-n._0x31155e,-n._0x4d23a9,-92)+" "+t+":"+(t+15)+(v("JMc^",89,-353,-n._0x57a738,n._0x43858d)+p(1919,1866,n._0x3f09b9,2267,n._0x21e9fc)+h(1634,1755,"r^O1",n._0x2aa80b,1603)+v("qSP&",535,n._0x631af1,n._0x223c13,n._0x1e1ae2)+f(n._0x250e9b,976,n._0x46ec2b,924,n._0x3ba566)));for(var _$y=0;_$y<16;++_$y)e[t+_$y]=d[_$y];return e}function v(y,m,b,S,T){return Y(y,m-255,b-i._0x3d52dd,S- -i._0x565c87,T-i._0x19c1c4)}return vJe(d)}var wJe=_Je,SJe=Z(1397,1571,1832,"(uUF",1667)+te("Z(VR",1957,1707,1585,1554)+Y("Zr4y",442,780,440,290)+ue(-124,"N2PL",-78,-24,-452)+Z(1001,1262,1465,"m5Ud",1179)+ae("7r4f",1097,921,1132,991)+ue(-411,"AQmA",-165,-677,-243)+Y("rAUW",171,132,284,224),HIr=te("r^O1",1575,1622,2039,1954)+ae("r^O1",1381,1676,1298,1293)+ae("(uUF",1045,1444,1274,1079)+ue(88,"QdMv",-155,309,-275)+Z(1677,1345,1039,"bVi3",1376)+Z(1502,1520,1888,"bVi3",1584)+ue(-43,"AQmA",148,-82,-437),QIr=ae(")u!k",984,851,1123,779)+Y("AQmA",39,-285,-306,-604)+ue(-356,"Zr4y",-123,-649,-63)+Y("#I1X",429,-238,55,148)+te("*qL$",1905,1687,1491,1512)+Z(1206,1132,1289,"ejE(",1466)+ue(176,"Z[fC",179,-186,482)+Y("Td@a",791,815,454,719),EJe=ae("AQmA",1040,908,768,1271)+te("Z(VR",1685,1489,1404,1495)+te("N2PL",1485,2019,1899,1730)+Z(1119,1368,1463,"6xFd",1342)+ae("Td@a",864,1063,894,1252)+ae("Z(VR",1491,1782,1163,1495)+"23",qJe=ae("RtOR",876,890,888,842)+Z(1361,1472,1469,"X@hs",1445)+Z(1420,988,1059,"N0Iq",1182)+ae("(uUF",991,645,1074,587)+te("6xFd",1584,1849,1792,1632)+ue(-252,"JNeN",-648,-269,-44)+te("dT8K",1685,1547,1432,1636)+te("ejE(",1021,1655,1015,1368)+te("ejE(",1255,1308,1282,1316)+Z(1058,1341,991,"m5Ud",1137)+Y("m5Ud",113,279,306,642)+te("MVwD",1111,1533,1113,1204)+ae("Z[fC",1250,1515,1105,922)+ue(-23,"DLFC",-256,-392,164)+Z(1692,1220,1453,"s!LQ",1546)+Z(1280,1444,1542,"Z[fC",1598)+te("QdMv",944,1473,1306,1330)+Z(1122,1433,1237,"m5Ud",1482)+ue(-373,"XKg0",-36,-701,-327)+ae("bVi3",1364,1301,1639,1245)+Y("Zr4y",-505,-512,-287,-155)+ue(-330,"7r4f",-597,-151,-240)+te("tghG",2053,1418,1995,1765)+te("uw*n",1867,1718,1857,1822)+ue(144,"6xFd",258,1,-251)+Y("JNeN",129,-131,254,312)+Y("bVi3",17,395,149,-114)+Z(695,903,734,"XKg0",1027)+ue(215,"T4sb",335,418,565)+Z(1073,1401,1094,"QDD]",1395)+Y("Td@a",300,163,16,-288)+ue(-322,"uw*n",-295,-100,-171)+Z(1242,1701,997,"RtOR",1333)+ae("Z(VR",1639,1248,1324,1772)+ue(-434,"N0Iq",-680,-481,-596)+ae("XKg0",1440,1109,1274,1486)+Y("Z[fC",664,40,365,247)+te("[3cA",1643,1803,2112,1795)+te("Zr4y",1478,858,874,1249)+Z(1287,913,1117,"AQmA",944)+Z(1761,1868,1190,"bVi3",1506)+ae("Zr4y",1135,825,1388,1261)+ue(53,"MVwD",112,97,331)+ue(130,"XKg0",514,512,-33)+ue(-506,")u!k",-719,-739,-412)+ae("Td@a",1203,974,1309,926)+ae("MVwD",1259,1591,1198,1381)+te("r^O1",1610,2054,2026,1652)+Z(1314,1120,1044,"RzAx",1009)+te("JNeN",1320,1365,1301,1445)+ae("o5uN",1246,1545,866,989)+te("iqpp",1455,1355,1345,1196)+Z(1148,871,1558,"dT8K",1187)+te("SAMA",1245,1682,1359,1385)+Y("^I18",334,51,20,407)+ue(25,"MVwD",-8,-167,-129)+Y("s!LQ",689,144,307,135)+Y("(uUF",200,41,295,249)+ae("QdMv",1306,1589,1003,1560)+ae("*qL$",1538,1355,1670,1226)+ae("Td@a",1322,1143,1324,1101)+Z(1136,902,1127,"bVi3",1073)+Y("[3cA",107,282,148,-83)+ue(280,"7r4f",-101,437,-64)+Y("JMc^",-335,-205,-88,2)+ae("N2PL",1423,1470,1268,1177)+ue(189,"wS8$",-20,382,414)+ue(-84,"^I18",-344,-374,294)+Y("wS8$",-357,421,24,286)+ue(166,"(uUF",475,61,349)+ae("AQmA",1333,1458,1355,1282)+te("o)FD",1165,1879,1652,1499)+Z(1588,1553,1518,"#I1X",1448)+te("XKg0",1602,1100,1206,1501)+Z(642,643,934,"DgfB",1023)+Y("Iozt",-289,-509,-342,-145)+Z(1417,891,856,"QDD]",1065)+te("tghG",1176,972,1358,1257)+ue(-212,"T4sb",72,-382,-112)+ae("T4sb",1412,1475,1556,1309)+ue(238,"V&B%",-59,260,603)+ae("o5uN",1605,1878,1568,1279)+te("^I18",1965,1402,1472,1678)+ue(-8,"qSP&",196,245,156)+te("r^O1",1222,1306,1738,1605)+te("iqpp",1716,1523,1357,1425)+te("s!LQ",1465,1357,1214,1508)+Z(997,1588,997,"JMc^",1273)+ue(-286,"wS8$",-116,-373,-518)+ue(-448,"s!LQ",-697,-293,-252)+te("X@hs",1120,1339,1138,1164)+ue(-320,"QwuZ",-706,-178,-261)+Y("ix8k",-6,184,181,40)+Y("tghG",536,-92,237,387)+ae("#I1X",1399,1481,1608,1218)+Z(999,992,1567,"V&B%",1281)+ae("wS8$",1551,1636,1869,1228)+Z(1677,1424,1570,"m5Ud",1626)+te("r^O1",1898,2219,2107,1910)+ue(-99,"fdfK",88,-328,211)+Y("ejE(",164,385,177,-213)+te("Z(VR",2058,1575,1902,1914)+Z(1227,1395,1846,"AQmA",1613)+Z(1185,1170,1422,"6xFd",1556)+Y("o)FD",-379,-7,2,-106)+Z(1605,1276,1759,"N2PL",1672)+ue(-132,"Z[fC",269,-505,233)+Z(815,912,1302,"rAUW",1190)+ae("uw*n",1290,979,1429,1471)+ae("^I18",921,985,776,950)+Y("848R",-194,-159,138,172)+Y("#I1X",362,236,141,-115)+Z(1869,1955,1340,"V&B%",1574)+ae("bVi3",1294,1692,1468,1526)+ue(224,"QwuZ",381,85,2)+ae("wS8$",1592,1218,1271,1312)+ue(227,"bP5x",28,623,-16)+Y("[3cA",90,500,382,498)+Y("fdfK",136,187,30,-105)+Z(1533,1847,1580,"fdfK",1519)+ae(")u!k",1477,1429,1134,1115)+ue(-315,"N0Iq",-117,-40,87)+te("DLFC",1006,959,1225,1207)+Y("iqpp",-246,-492,-322,-373)+Z(850,1295,1323,"iqpp",1213)+ae("RzAx",1293,1381,1659,1602)+Z(1286,1352,1586,"SAMA",1635)+Y("QwuZ",12,275,-90,-371)+te("o5uN",1379,1886,1614,1621)+Y("rAUW",38,145,-3,-143)+ue(-296,"Iozt",-349,-416,-517)+ue(184,"MVwD",418,130,223)+ue(112,"MVwD",255,-84,-138)+ue(161,"QwuZ",233,377,-56)+te("wS8$",1507,1623,1587,1769)+Z(978,1153,1273,"wS8$",1284)+ae("rAUW",1244,950,890,1508)+ae("V&B%",875,1009,583,677)+Z(1213,1484,1509,"s!LQ",1609)+Y("RzAx",20,410,162,-37)+te("Iozt",1007,1566,1625,1354)+Z(1097,789,1164,"wS8$",1171)+te("DgfB",1231,1297,1536,1580)+Z(1422,1283,1236,"XKg0",1079)+Z(1517,1379,1729,"7r4f",1423)+Y("dT8K",790,562,393,656)+Z(739,1176,527,"fdfK",923)+te("ix8k",1931,1421,1197,1578)+Y("6xFd",-345,-495,-129,240)+ae("Zr4y",1419,1508,1182,1149)+Z(823,994,1191,"s!LQ",1049)+Y("XKg0",-99,592,252,404)+Y("o)FD",-314,138,-109,-209)+Z(1075,1436,995,"s!LQ",1108)+ue(-225,"848R",-276,-266,-376)+Y("AQmA",329,469,147,345)+Z(1819,1604,2043,"RzAx",1691)+te("s!LQ",1649,2071,1912,1719)+te("s!LQ",1581,1465,1339,1210)+Y("T4sb",154,585,458,185)+te("#I1X",2325,1750,2327,1925)+te("RzAx",1134,1363,1402,1458)+Z(1153,754,1214,"848R",978)+ae("JMc^",874,1172,974,933)+ue(159,"bVi3",265,-213,346)+te("dT8K",1017,970,1281,1160)+ae("JMc^",1107,1465,1127,1422)+ue(-39,"DLFC",104,174,272)+te("r^O1",1225,1566,1070,1473)+te("(uUF",1352,1112,1148,1179)+Y("X@hs",-10,-13,-110,-68)+Y("MVwD",-24,-109,172,482)+Z(1272,728,1291,"r^O1",975)+ae("ejE(",1247,910,1054,873)+ae("uw*n",1655,1628,2001,1697)+te("XKg0",980,1358,1027,1218)+Y("#I1X",-147,-506,-314,-79)+ue(-514,"DLFC",-521,-728,-493)+Y("XKg0",457,111,395,718)+Z(786,1522,1048,"fdfK",1127)+Z(1958,1979,1844,"848R",1669)+te("ix8k",1552,1178,1149,1287)+te("bVi3",1774,1808,1524,1624)+Z(1604,1932,1479,"Iozt",1690)+Y("ejE(",341,621,274,453)+Z(1518,1082,1482,"bVi3",1146)+te("bVi3",1200,1367,998,1199)+Z(1143,1256,1245,"rAUW",1396)+te("o)FD",1546,1883,2094,1805)+te("Zr4y",1599,1559,1572,1467)+ae("*qL$",1580,1388,1451,1899)+ue(-91,"DLFC",-444,-419,223)+ue(-67,"848R",-460,-7,21)+Y("V&B%",188,331,83,415)+ae("r^O1",1256,948,1389,996)+te("AQmA",1525,1877,2052,1876)+Z(1756,1644,1457,"o)FD",1538)+ae("DLFC",1110,1003,973,1115)+ue(3,"rAUW",290,-197,-40)+te("RzAx",2029,2011,1778,1880)+(te("bP5x",1779,1387,1803,1723)+Y("uw*n",-50,-253,-17,188)+ue(272,"QDD]",347,89,-41)+ae("XKg0",893,597,638,1151)+Z(1579,1212,1448,"QdMv",1317)+ae("fdfK",986,844,664,1111)+te("MVwD",1303,1784,2105,1702)+ue(-129,"uw*n",55,-477,-63)+te("Z(VR",1565,1742,1992,1897)+Z(1266,902,928,"#I1X",1227)+te("r^O1",1498,1862,1629,1663)+ae("wS8$",1236,908,1039,1468)+ae("uw*n",995,839,1129,689)+ue(214,"^I18",130,-61,344)+te("DgfB",1155,1380,1553,1161)+Z(1668,1716,1185,"tghG",1585)+te("6xFd",1785,1819,1767,1691)+ae("^I18",1251,1417,1494,947)+Y("[3cA",685,186,289,462)+Y("s!LQ",-214,-279,-231,-501)+Y("Z(VR",354,252,157,140)+ue(242,"N0Iq",603,-8,324)+ue(-128,"dT8K",-110,-17,-355)+Y("QDD]",-138,214,88,344)+te("DgfB",1925,1986,1397,1628)+ue(-151,"qSP&",-551,3,-15)+ae("rAUW",1155,1150,1151,1329)+Z(1319,1479,1685,"Zr4y",1491)+ae("DLFC",944,1064,870,754)+Y("s!LQ",809,248,423,716)+Z(1481,1100,1471,"wS8$",1128)+Z(688,925,1174,"XKg0",1007)+ue(-406,"o5uN",-707,-728,-678)+ae("JMc^",1021,1383,1307,683)+Y("uw*n",253,-232,-98,256)+Z(913,1252,1512,"Zr4y",1252)+ae("RzAx",1126,1232,973,1005)+Y("QdMv",165,455,146,329)+ue(40,"RzAx",-356,-13,385)+Y("N2PL",129,-50,167,-49)+ae("MVwD",1278,1650,1506,1291)+Z(1351,1465,1287,"m5Ud",1335)+ae("QwuZ",1356,1202,1586,1486)+Y("uw*n",101,-399,-23,-3)+ae("#I1X",1479,1467,1381,1148)+Z(1628,1782,1553,"fdfK",1456)+Z(1994,1706,1864,"6xFd",1662)+te("dT8K",1857,1766,2216,1862)+te("qSP&",1745,1053,1748,1364)+Y("ejE(",296,74,232,49)+Y("DgfB",-389,82,-309,-639)+Y("QdMv",-344,-345,-114,-231)+ae("fdfK",1253,1134,1041,1481)+ue(151,"DLFC",376,30,44)+ue(92,"Iozt",-210,94,-212)+ae("o)FD",1672,1438,1893,1538)+Y("AQmA",639,565,401,627)+te("*qL$",923,892,1655,1262)+ae("V&B%",961,892,1002,890)+te("QdMv",1918,1923,1207,1546)+ue(75,"#I1X",73,-22,422)+ae("bP5x",972,1249,993,1007)+Z(1335,1492,1088,"JNeN",1183)+ue(-379,"#I1X",-659,-356,-399)+ue(283,"SAMA",-51,-48,75)+ue(-51,"fdfK",-322,44,60)+ae("RzAx",1105,856,1167,1156)+ue(-191,"ejE(",-51,-93,-467)+ue(160,"RzAx",-36,154,5)+ue(-58,"wS8$",189,298,-19)+Y("DLFC",-155,-64,-201,-281)+ae("*YWj",1320,1162,1003,1637)+Z(1452,1581,1149,"AQmA",1509)+Y("m5Ud",-47,554,294,-66)+te("o5uN",2035,1415,1801,1696)+te("RtOR",1845,1689,1604,1500)+te("7r4f",1605,1246,1624,1536)+Z(1285,1411,1782,"ix8k",1623)+ue(5,"#I1X",36,-149,-306)+Z(750,1226,1432,"*qL$",1075)+ue(-12,"wS8$",87,321,-188)+Z(2011,1744,1595,"QwuZ",1668)+ae("T4sb",1366,1500,1212,1303)+ae("DgfB",1031,1240,1376,1104)+Y("Iozt",755,216,386,559)+Z(1401,924,1334,"7r4f",1217)+ue(-187,"(uUF",-28,-389,88)+Y("JMc^",-219,-152,-280,-116)+ae("X@hs",1650,1975,1594,1720)+Y("DgfB",-205,-263,-56,158)+te("7r4f",1643,1751,1525,1762)+Z(1060,1341,1045,"AQmA",1319)+te("JNeN",1149,1129,1803,1486)+Y("DgfB",-194,-122,-97,-118)+ae("QwuZ",878,684,1198,829)+te("848R",1798,1801,1451,1491)+ae("MVwD",1264,1569,1433,1081)+Y("QwuZ",-195,-131,-315,-24)+te("DgfB",1234,1885,1904,1570)+ae("(uUF",1184,1284,921,1472)+te("848R",1277,1395,1424,1341)+ue(170,"ejE(",-163,346,352)+Y("JMc^",175,723,391,469)+Z(1529,1704,1238,"Iozt",1371)+Y("#I1X",-385,-203,-310,-460)+Y("o)FD",590,660,305,475)+Z(1107,1437,936,"N2PL",1206)+ae("QDD]",1014,1119,827,1221)+ae("DLFC",1486,1787,1592,1731)+ae("o)FD",1080,1151,769,1226)+Z(830,1365,1326,"AQmA",1074)+te("dT8K",2093,1953,1670,1859)+ae("bVi3",1379,1289,1741,1558)+ue(-21,"T4sb",-21,12,332)+Z(896,1307,926,"wS8$",1178)+Z(1549,1447,971,"r^O1",1177)+ae("o)FD",974,1267,711,1196)+ae("QDD]",1143,1347,1288,777)+Y("JNeN",184,34,-130,-206)+te("rAUW",1232,1420,1291,1635)+ue(-380,"fdfK",-519,-212,-159)+ae("JNeN",994,1130,732,1062)+te("N0Iq",1544,1756,1646,1609)+ue(-325,"#I1X",-372,-246,-339)+te("QdMv",1457,1949,1406,1727)+Y("DgfB",737,611,439,447)+ue(-170,"dT8K",50,-118,-394)+te("dT8K",1996,1475,1807,1671)+te("DLFC",1386,1253,1320,1337)+Y("XKg0",-285,294,-43,54)+ae("848R",1026,1107,958,629)+ae("Zr4y",1297,1174,1186,1686)),TJe=Hg(Qg()),AJe=globalThis[Z(1264,826,1350,"fdfK",991)+"o"],kc=AJe[Y("DLFC",318,160,300,531)+"e"];function Kg(){var r=["W7HpqWTf","uSkObx0","WQ4bg8kSFG","WQxdLSkNW5vl","Ec0RW5aw","WRSKWOTX","WQK7jSk8qq","bc4wwH0","WOtdVmk5zI8","WRVcLtFdIWa","WRKnW6FdQmkU","W5BcISkGWPfK","WQpcGfm3WPG","smkIcCoTva","jmkXWOVcJrm","WQ4yg8k7FG","WR8cW7xcT8oJ","WR1bW7C4fa","W4JdVg0xW4W","W6FdGsW","WQCzdmogWO4","vCkJWQLNWRq","WQ8FW7yqBW","WOZcSgrTWO8","WQZcLCoaWRO","mXpdQmoEWOa","oqxdNSotWPy","s8k3nhj5","BmoqWQn6WRe","a8kOdSoXtG","WRhcL8otWPxdHq","a8oFWR3cMWy","W48WWQhcLmkM","vuldGuhcMG","rSk/omobAa","ESkcWOndW6S","WR3cGwNdTXi","W4xdNNdcOu4","WRaIqmkAlG","WRxcKaLSWQO","WQ4JkmktvG","uCk+W75GvG","uCoCW4PDaa","CSoxW7NdUMa","WQijWPldSCk7","g8kGrmo9CW","reJcLg7cTa","WRSHWPbOWQa","WPldT0xdLwa","sHHxW57dTG","rbSDWPa3","W78FdrSc","W65cWRJdTSkNWPZcOI03W5VcOKW","W5tcNfeTW5C","u8kJWOdcSt0","WRi7pmk0Bq","WO3dJNbrdW","a8oOa8oRwq","frxcMG0","W6NcTINcImkD","WQ4hn8kzW5G","WOe7WQ9EWQi","qhdcRSoZ","WPxcRI8lW6O","W7RcGqe","WPDCW7a4zW","WQKQW4pcKSoU","WRNcLSoeW7xdPq","umo/WRVcTbVdLCox","eSocWOVcMZy","h8kNW7VcQmo1","WRJdJmk0zvO","WQdcIKW1WQG","bSk0WOtcRfa","WR/cUmoeWPVdKW","WR3cUmktWPFcTa","zauNW6BdKG","pqqWWOHU","W6pcK8kJWQzV","W77dJSo4W7HC","WQtdVt1OWOpdVH3dPGZdLCoruq","WOWWW4FdTCkZ","WQ3cVSk7WQ98","WQRdQvO","WQuUW5H7W7G","W67cOmkEW7/cLa","BmokWQJcQY3dVSoHnSk7fCk1hSoS","WOOqWRfGWQ4","DCk9W6XHzW","WObUzSkhDq","zSk6WONcQI4","kbJdKCoDWPi","WRSfW6pcVSoI","dmkLgSoIxa","itdcNWmZ","kHpdMI1a","W7dcQMy5W4i","WQubWRvrWOS","W5bYW7FdTrK","WRldHevLpa","W7ldKCo8W64","r8o9z0PB","W41XtXKh","j8oJW5xcO8od","vCkzW5rbcq","W4rwW53dLcq","WRNdV0S4eq","Cc8VwXW","W4LVW4GqW6e","b8k6WPihW6G","WR0HWOL8W6W","W4WUWP/cQmkW","W5NdJJmHAW","WQKrfSo2oW","WRKiW7ZcQmoL","WObTWQKUWQ0","W7JcPSkNW4JcKW","ds3cGI84","BCkSWQNcRYy","W7tdGNCyWOVcQW3dGa","W4SNgq","WQ8FWRNdV8o5","WRBcH0WQWRu","WRNcNMS","WR/cHwOxW4e","WQFcHCoFlcm","WPJcV8o8FaC","tCk5WQlcRW","WQSzW7VcT8kg","WQKlWPbTWQ0","qmkZbSo0vG","tSolFeS","W64dhCkwkG","kSo4W6VcO8oZ","WRZcHLKBWQG","W67cOv3cNrW","DSoTWR3dISoyqeOBWQRcU1bS","WONcLmolWPFdRG","W4qsWOlcQmkY","zxHSceZcKmoGW4jrwfKS","W5uJdSkIWPa","W5tcSCoiW4hdSq","aSoiWQ/cGZC","yw3cKCkUkW","fXfeW5xdTq","W7xcLmkCW6PI","WOZcV2edW7G","WRhcSSo4xYu","WRJcImouWQRdRq","WQD6WOD9WRS","q8o8WQCAWPG","Ds0wWO5X","umkPWQlcIJ0","W6fnW5hdOmoz","WOZdKu/dHCoT","WO/cI8okWQxdGG","WOKyW4W","B8kCWPxcMb0","vwVcQmo2na","W7TcrrvA","WRyyoSoa","q8kXa3bP","WQBcKg4SW6K","WQutW73cRCoZ","WOX3mX43","WPdcKSorFJK","gCkwW4ZdKwC","ogJcKbldUa","W7NcJNOSW5C","W7RcL8kcWQ5a","W4fFW449W4S","WQBcQCoZWORdHW","ECoFbgfK","WOidWPuHuq","WQWUWPyQWQy","W5bLW4VdOWu","jsm+wbW","WOFdKeZdHf4","WQxcObtcOLa","W73cVSkeWQqq","WQ8CW7RcVa","WQCWWOvzWRS","kCojWPtcRbe","W4aRW64bW50","W6ekW5RdOIi","qsmdW4m","wmkZh8o3aa","WPD1eWSa","WOZcS2W7W6C","WRBcH14UWRy","W67cOrZcICob","x2FcT8o+mG","W7pdTmkwW5FcHq","sCk9W4RdUG","WRruBHyT","W5KXW4aSW60","tmkCqKXi","WPGXWRNcQG","abJcMqOg","e8oDWRNcJta","mCoDWQZcOde","W73dImoKW7Pa","WR8yW63cTCou","AmkEWQrN","W5hcPIZcR8kf","W6VcRbxcPCkf","bCocWO7cPLu","cSoeWQRcVsK","W4HKySkWEG","WQO9W5FcT8kq","W7mxhmoIiG","WO7cJmojz2K","WRhcOwCQWPS","W7pcPqKZWQ8","eqSCsba","WQtcHw7dMXy","WP8FWQJcO8kG","WPHUddON","kmo8W7/cTmod","WPpdOh/dPMC","AsJdSmk2Fa","WR8mbSkxsq","WQfXxcny","WOf6W5VcTCki","ECk3sx/dOG","Fa0KWPe","cmk6W5ldMLC","CtOYWQe0","W54YW4BdUr8","W7ldKmkGWR4o","w8k7WQeQW4e","W4tdG2TGkG","WRnBW5VcJSoz","jCo4W7VcG8oK","W6nGqZm","CCoIDwbQ","AqGnW6ldGa","lmkdzwFdKa","ySoHBMZdGW","WQpcIv3dHY4","r8kZfxP+","W7RdU0K7W4m","emoOWPtcSbi","w8kOWQtcUta","W7xcPLKgW4e","W4vSWPFcOSk2","W78nWQvRWRK","WRr5gJCM","ACkfWQmTWQy","imosW7/dOSo5","WPpcTMyhW6K","vJGuWQCL","WRz5W5LcWQO","wmkYgCoZqG","q8kgnKBdHW","WR5PWOlcM0P4jXKTWO7cKtK","mZqrraW","W6zOW4OvW7y","WOlcQ0JdOHy","cCojWQZcOZy","CrO5WOq3","WPyYl8oxuq","WQfrqqTz","WONcVJaxWRe","W741W5e","w8oDe0fS","WPnxnHWr","W6ShWQa","wbKwWQeU","aCoXWPlcVq","WPldOCkXCe8","WRVcP0pdL20","ESoayw96","CayFzfC","uCoLW4hcUbq","WPldTbxdRSoL","WReYa8ooWQy","w8kPW55Ova","W4VcP3pdP0jaW6lcPG","tKtdOKBcIq","W7HXoCkaWPq","W57dT8oSW4rR","W47cVLi4WO4","B8kNyxVdTa","W6VcHCk8W7NdSa","WQldKxhdKCoh","W4T0WRFdRmkv","qSkMaSoH","kmo2WQ3cNs4","WOaRW6BdIci","WPxcN2tcGqi","W7xdISoMW7m","E8kEgCoktW","W6qVW4ldMGK","W4iOWRBcISkq","rSoLo2r+","DuVdOGxcNa","hmosWOdcUrq","WOddIenKpa","dSkWW5/cVIy","mCoAWQ3dJty","W5KUWPNcPmkN","WPnjnH4H","jIW2sb8","ESoQW5RcUSk8","EgNdGqtdRG","WOFcS2KD","WPlcTmkEWQZdHq","u23cVmoPeG","W4TUEmkh","ySkeWPuTW7m","W50Ja8k3WP0","A8kCzr5U","WRiqf8kzBW","WOSEW5GDva","oMJdR0BcVq","WQhdPXFdG8op","W7GBqa14","cCozWQBcLJS","WRSGWPjXWQe","W7/cP2KSW7u","W7rdrZHY","zmk9WQFdVmkD","W783W5/dIr8","W7n4W7ldOG","W5f5W7FdQaq","WQlcOSkOw2e","WODAnXCm","WOjeW67cRSkb","bWtcIbnz","wSk/W6FcQsy","W4BcSIFdJCkN","WQhcK8opWQ0","WRFdISo7WRDb","nSoFWRbZW7e","WR7dQupdGmoL","rmkZg8o0aa","W6T2W6W","WPtdUSo4kYW","j8o/W70","W6BcMGBcJ8km","W6xdHSo4W7Tp","uGCEWPFdJq","W47cUwe","WRSvW7JcLCo2","W7HrCmkbFq","WPtdVuxdSa","wmkQW6D/ua","WPjUkduQ","vNFcSSo2eW","W48XWPpcTCkR","W5FdRw5xW6K","W6BcTSkEW7/cGa","W7/cReWBW4q","WOjmW6BcNmof","tCk5e1rU","W7BdHGLSW60","WR7cUmkMzxG","WRldRbldM8o/","W67cSv0cWPW","WQ/cICkzW7Kb","W7uKkmkdWPa","kSozWRNcOZC","BConW5/cOsy","W6BcS8kvWObc","W48HW4hdTCkJ","W4ejAKTAW4XkWORdPxTQbSod","WQ56WQNdMSkP","W7BdJ8o9W7jD","WQhdSCo6W4f3cbm","W4mTWP4","mGtdGSoaWPy","W6GvW6BdScO","oXldQCoGWOq","W5nWW7VdQbi","WRGAeCk3FW","W6jfW7KbW6C","WPmyW7K7sW","WQidWR/dUSkq","WO3dPLpdVa","W5pcS8k7W5xcKq","WRpcP0RdUea","W7dcO8kvWObe","W7DZW7tdOCoM","pSk+W7RcJ8ki","W7jPWOFdTCk3","WPJcNCoqWQldPa","qmkYW5rhuq","W6u1W5e","WOicWOVdSCoN","WPZcU8ktWOVdMG","WPPaW4hcSSon","WQrag8koDa","WQddUfldJSoG","W63dNJpdKXe","iCk+W73cImkf","W5nUW7VdQIi","WQOLWRrTWR8","W7hcQmkh","W6TaWRVdSSkHWPZcTrypW5dcOuO","WQFdGv8pWOO","jqpdUmoZWPC","W7fEscLf","r8oFrgi+","WPldQmk8BG","pCkRW7RcLCkd","WRpdLKpdUa","W4T2W7xdQmo/","WQuLpSogWQu","WQNcThKfW6a","yaKL","W4pdSSoaW7ZcQW","ymoOgSosEW","iqlcS04D","WRhcG3pdNZO","ESkNfvHz","cWtcHGGI","W6jfqJK","W4PYW77cRmo4","W4aoB0zvW4a/WR3dOvbZjG","WOeGgmklWRy","zwJdJ1NdOq","wCoEW7q","aWZcHGOg","WRVcI8ojydu","umoazrvV","sImCW6ddRW","qmkbW5fxqa","W7ZcTCkjWRfe","lHBdS8owWOO","WQpdQmk+zMm","W7lcI1ytWO4","W7RcQCktWQ5u","sCkyW4yCua","kCk6W7ZcS8kA","k8kMW5FcMmki","FaKXWOa","WP4vW7xcJ8oJ","WQ4hW63cQmka","dCkEW5ZdISoC","pX/dVmoaWQy","W75fqY4","lstcVt0D","cGtcJcqa","W5hcK8oeW5FcQa","WRNcLgtdHG","W7H9tYGA","W7mFW63cSSoJ","uCocW6BdLWC","kmkmWR7dVhi","WPNdN8ohpMe","WQ43WQrzWQG","lmk6WQJdGSoq","cmojWQBcJXq","dSksWRRdNW","oJqyAs4","ucmw","W4fUyq","WQxcKh7dNH0","W71nW5NdHsu","WO8ZWQZdQ8kS","WOzHAHuj","WQ7cHhlcNby","nCkzW63dUW","W6tcSCodW5RdTq","W7zZW77dJCoK","WPtcSI8jW7K","WQBdR8k/W58B","sXaMWPCQ","FmoQux9J","WRr+cL4K","W7fJW6/dVmoJ","hbtcJcqg","W5ddQmoFWOXG","WOKrWRm1WOG","W7FcOuNdSdq","WRxdUfxdRSo7","W4xdSmojWRPH","W7uOW4pdJKK","W4SYWOdcMmkJ","c8oZW4xcICka","gZtcL8oFoW","W4NcHYhdGSke","r8o9gxm6","WRtdSu/dOSoY","W4OzW5q2eG","tSoKsH44","WPNdTKpdU3a","f8o2WO7cUcm","BSkuWQrcWRe","WQ/cMmoeyri","bCofWQJcKae","WQFcHCoC","W6VcO8oBWQ0j","WQJcS8owWQJdLa","W4HOCmkB","W7hcQxxdSSobWRjCWQO","zGCpWPeX","W7G0W7tdKW4","WQRcU3SlWPC","W6xcL8kDW6VcTG","nSkyWQHtWOS","D8kdWRb6WQG","WO/dSK7dS3e","mmoQWRRdOmkc","WQirW7hcMCka","uvRcRCoUmW","W4juq8kRxW","W4a2t8khWQG","WQWyW6VcImo4","WOCnf8kmuW","WRJcVLtcGse","jZuoDZm","ASkqo3X5","W6hcQrNcLCkC","gCk7WPldQa","W6BcVmkGW6FcJW","sahcMHyD","WOemW5FcU8kH","W6r/W70MW6q","W6xdGSoMW7nb","W54jWPxcVG","iJK/wq","qCk6WOawW6K","pmomWQVcGsy","WPmFW4KTsa","qSk8WQyqW4W","W6ldHYZcG0a","WO7cSSoIW6pdKW","W5T4W7VdQJy","WQRdGqWCWPu","ka7dRCox","W603W57dHqK","FM3dNa","fCkjo1z1","EmkeWQrcWRC","W78uvxC","W6nezdnf","f8oJW7q","r8kNWReD","WRpdRmkPsNG","WP7dRCk1q3G","W6u/WONdMuC","AcSMWP3dTa","W7JcQMSXW5i","BmoLuhTX","qsOoW53dMW","W7hdPbldLCof","WOxcHmoTW6ZdQa","imkWW78","lmk2W6BcMa","W5xcGH7cSCk9","WO7dNN5S","W4aOWPRcICk0","W6VcR8kcWQ5h","zwhdLuxcVa","kSoXW6BcVq","c8oMWP7dUx0","cmkoW4ZcTCkv","iIWJ","tSkMWQC0W5G","WRq0W4lcICoM","smkaW5rDqq","W7ldOSo6W6vp","W7dcISktWOvi","scm/WRao","WQupj8oFWOO","W4n4ar0P","hSoPW47cObq","W40RWPBcVG","v13cMmolma","kmofWPBdOHy","W7ZcR8krWRnZ","pIiUhqK","W7jOW55nW6q","qCk1f2Dz","WPlcU3y","WPFcQg7cS8oU","W7D4w8kYiG","WQyXWPHS","W77dMSkCowyUWO9bscupWPa","W5foWOH2d8klhK96W41YW7ddUG","WRJdJmo4W7ja","WOuqaSkDkq","qYWiW5RdTW","W5O3WOpcRW","CmoIWRqWW6q","rY0rWRaM","W4HKySkYAq","tCkOWRFcPYG","W4xdU8k9Cv8","WP9/hbSB","W4nGsN9q","l8kVW7JcKmku","WOa3fSk3WPC","W4fYsCkqAa","WPbDpHSk","WOhcVhixWPi","WRKEW6/cTCoU","WRG1amkQEG","WOFcVu0qWO4","lWpdR8oBWOS","WRxcJ0lcTmkG","WPSGWQhcJCk+","jCo5W6NcJSoB","smkYh3S","WPqdW4KRuq","W40UbCkR","rZ9KW5mn","aXlcHGG2","W4CqW5VcHmk1","W4fGE8kh","W4eEjCkOWOW","W4qFfMvD","wCo2bmo2FW","xt1QWRv7","W6bUWQCEW6W","F8oTWR7dHmours4cWPlcIvPleW","WOHkW7VdU8o9","omoWW6BcN8kk","sdxcJCothq","agFcTCo9hG","pbpcQaLb","d8kBb0rhW5WaWQVdUW","W7lcQfagW5G","W4qJWP3cOG","x8oXq1HR","WOaIWO4atq","iIW0wru","iIWT","s8kuWO1SW7e","xmkYhmoS","WRFcK1i+WRu","tCkiW4PvrW","sSobF0j+","W7Pux8kMoW","W6pcRmkqW6dcGq","W5L5W7RdObq","sMhdQ8o9cW","WOldGM9X","oSoiWQZcMY4","W4XPD8kqwa","W5jpW6f6uq","WOBdH2bfkW","WP0XWQxcISk/","WRFcM1i9W7q","vCkRWRyqWOO","WQhcL18OWQm","rmk5bh4X","WO7dLvvXoW","WP8OWRNcTmkJ","W795uIvd","W7rIW6JdUmkW","WRxdUfBdRCo2","zqOeW6RdRq","WQudnCou","WRJcLxNdSWW","W4JdTmkeWQpcPW","W7bcqdm","WRSEnSoSWPK","kGJcHsqm","vmkmWPDyCq","gmo9WQuCW54","a8kRa8oPfW","WOdcQSktW7VdRG","b8oYWRNcLYa","g8k1rmoEAG","fmo2W4hcTW4","WQatWQ7dNmkJ","W414ySkhvW","W7iBe8kTBW","W68XW6ddI0W","xCoguL9k","W7BcQCkuWQri","gq56DJ8","WPFdVmk+yxG","W7PdW77cT8o4vWlcQJRcVHXkW4W","W4NcGGFcSSoy","zSkzWQD6","DvBdQmosya","l8kYW63cJW","WRmKamk3AW","W6uEW7BcT8oY","WQZcPbFcSmkP","fCkriLzw","WOldG2q","W4aIW7JdRJm","W7vCW4G+W6W","BJVcKrpdVq","xfpcSZ0r","WPpcQwefW6a","W7VdHSoMW7bA","WRX2nHeX","zmkYW4JdI1e","W6ZcImkiW7/cTa","W7BcRw3dG8ogWO56WQ4","W7dcSmkEW6a","WRfhW4GUuW","WRGgbSkHvq","mXRcSSohWPa","j8o0W6xcVmog","B8ocq0v/","WRrVlJqV","W4tcTKyeWOa","uCokvMX9","FICZxbq","W67cRNe","nrpcVCobWPe","o8kXW6ZcMCkl","WQaJW7xcTmkb","W54qt8kUWRW","xMlcQCoZCq","WPrxlbyq","cmkTW5FdLZq","W7pcSmorW7dcPW","WQpcOf/dIc4","WQNcRvG1W5u","W6FdKCoNW6nb","cSo9WRpcHaq","W6tdL8o6W75a","W60EgCoUWPi","ureWWQmq","sCo5WP/dVNK","ELfOW5uq","AYiSWPn2","xvRdOgpcNG","WPKVe8oLWOS","BSkaWRbXWRy","WQi7WOL2","zNuvW6NdMq","W4/cGSkHWPDY","WOa1W7C7Aa","WQtcNSomWQBdOa","W47cLSoCW59k","WOKBW6dcGCov","FSkUBM7dKG","uSk8WRCyW48","y8o+mtNdJG","W7OhASoLWOu","DmkFWRCmW70","W4xdV8kBWPCd","ymo2AgpdNa","W73cKhGRW5q","a8kHpmkRqG","WR7cPHZcK8kD","W5pdT21NW74","WPOKWO5PW7S","nIpcIL3cQW","WQWzdmoFWPG","WOJdG2r7oW","rMtcSCoUna","WO49WQvAWOW","WQtdTuFdS8ou","WRFcK0u","xSk/W7a+W6e","WRJcImohWQ3dTW","WQ7dNNJdGKa","W7z0W60h","jmkNW7RdTMi","WPBdOmk2EW","WQ0HW47cJCoF","D8k2WObjWQW","WO/cU3OqW6q","WPWuW5FcM8oB","wSkmWRxcUsG","WRe7WRrWWPy","W7pcSmkdW7VcRa","tmknbhPQ","oCkDW73dOw0","WQJdUupdGmoJ","eSooW7xdM3m","hmo9WRNcP8oi","W7D0W54HW4m","WRGuW5VcQ8kF","W7pcGSocW6PJ","Fv3dP2dcHG","WPRdM2pdU3a","W5dcJtJcUCkT","W68ZW5FdMdK","qCoLW5FdOfu","W7jYtc5J","WOSLmmkaka","WQNdG3i7WPy","l8oaWPJcJZi","uclcPq5j","WPNcTSkJpW","WQhdP3b2jG","zWy4WOaL","D8ocWQ1zWOq","WPfty8o+WR8","WQNdRNNdS8oK","WQhdSuNdRSoL","WPbvpGCl","CCkHWO5EW6q","u8kmW50","WO86W6xcKSkG","W63cOSkaWQ1r","w8kPe1rO","FSkax8owaW","WQKaW7ZcQmoL","ACokWQ3cQY3dTCoNdmkLlSkeo8oH","WPlcV38iW60","bCkxW5/cUCky","WPGxWOhdGCkk","WPjElqec","WPLEnXqx","vSkuehOI","BdhcTSoKWPy","WQ3dNbpdLmoN","WRBcUwGLWRG","BulcQCoBWQVcRmolW5JdOa"];return Kg=function Kg1(){return r},Kg()}function FY(){var r={_0x237192:1220,_0x325b3e:1019,_0x526cd3:565,_0x22f2df:1497,_0x35e3a1:1443,_0x1306bb:"JNeN",_0x409720:1235,_0x5da6c9:"848R",_0x49e786:17,_0x562098:932,_0x4e89e6:904,_0x39efd1:465,_0x4bf6f9:1481,_0xfa9524:1089,_0x49bfa3:1248,_0x12ef2e:1314,_0x15adf0:1629,_0x564aab:"[3cA",_0x3f0af5:1550,_0x4fd3de:666,_0x3c4dc5:547};return Lc(this,null,function(){var e,t,n,c,l,f,d,p,x,h,v,y,m;function i(v,y,m,b,S){return ve(m- -753,b)}function a(v,y,m,b,S){return ve(y-713,b)}function o(v,y,m,b,S){return ve(v-n._0x42be11,b)}function s(v,y,m,b,S){return ve(y- -t._0x5dbcea,S)}function u(v,y,m,b,S){return ve(S-e._0x2a527,v)}return _ts_generator(this,function(_state){switch(_state.label){case 0:e={_0x2a527:4},t={_0x5dbcea:792},n={_0x42be11:168};if(!(u("qSP&",1188,r._0x237192,932,r._0x325b3e)===u("Z(VR",1087,r._0x526cd3,1003,843)))return[3,1];for(l=_0x45e779[a(r._0x22f2df,1734,1599,"dT8K",r._0x35e3a1)+"h"],f=l%3,d=[],p=16383,x=0,h=l-f;x<h;x+=p)d[u(r._0x1306bb,r._0x409720,1383,984,991)](_0xe2e5d9(_0x1cc380,x,x+p>h?h:x+p));return[2,(f===1?(c=_0x1a0a1c[l-1],d[i(470,503,173,r._0x5da6c9,-r._0x49e786)](_0x5da273[c>>2]+_0x4e3fdd[c<<4&63]+"==")):f===2&&(c=(_0x1ba850[l-2]<<8)+_0x2547c0[l-1],d[o(1151,1526,r._0x562098,"Zr4y",r._0x4e89e6)](_0x59056a[c>>10]+_0x2c527f[c>>4&63]+_0x58a32f[c<<2&63]+"=")),d[s(155,r._0x39efd1,233,205,"#I1X")](""))];case 1:v=qJe[u("^I18",1485,r._0x4bf6f9,1435,r._0xfa9524)]();return[4,OJe(EJe,v)];case 2:y=_state.sent(),m=new TextDecoder()[a(r._0x49bfa3,r._0x12ef2e,r._0x15adf0,r._0x564aab,r._0x3f0af5)+"e"](y);return[2,JSON[o(r._0x4fd3de,r._0x3c4dc5,641,"N0Iq",494)](m)];case 3:return[2]}})})}function te(r,e,t,n,i){return ve(i-693,r)}function OJe(r,e){var t={_0x2127ed:1313,_0x13700c:1421,_0x515434:2020,_0x4686d8:"DgfB",_0x439168:542,_0x39ffcb:"T4sb",_0x1f5793:148,_0x8fcff1:1983,_0x87046:1331,_0x396b50:1436,_0x4a8900:1117,_0x2d9a52:1260,_0x7ecd30:981,_0xd620e1:522,_0x55910f:1707,_0x213ce6:1570,_0x401815:2e3,_0x27a8f3:1465,_0x5327be:1152,_0xd58797:1628,_0x3db9d3:1775,_0x3ee9c8:"dT8K",_0xa83efd:"Iozt",_0x411e32:1069,_0x41dd65:999,_0x4de2aa:"MVwD",_0x20b50e:1059,_0x4cae74:956,_0x197297:1259,_0xaa0a9b:1256,_0xd6a61:1467},n={_0x48808f:528},i={_0x240861:471};return Lc(this,null,function(){var a,u,f,d,p,x,h;function o(y,m,b,S,T){return ve(m-374,y)}function s(y,m,b,S,T){return ve(m-i._0x240861,y)}function c(y,m,b,S,T){return ve(b-682,T)}function l(y,m,b,S,T){return ve(T-a._0x41c126,b)}function v(y,m,b,S,T){return ve(T- -n._0x48808f,S)}return _ts_generator(this,function(_state){switch(_state.label){case 0:a={_0x41c126:33};u={};u[c(1300,t._0x2127ed,t._0x13700c,1465,"QwuZ")]=c(t._0x515434,1393,1688,1986,t._0x4686d8)+"CM";f=new TextEncoder;return[4,kc[v(t._0x439168,-155,5,t._0x39ffcb,t._0x1f5793)+s("RzAx",1630,t._0x8fcff1,t._0x87046,t._0x396b50)](o("*qL$",t._0x4a8900,t._0x2d9a52,834,t._0x7ecd30),f[l(684,793,"bVi3",688,t._0xd620e1)+"e"](r),u,!1,[s("JMc^",t._0x55910f,t._0x213ce6,t._0x401815,1544)+"pt"])];case 1:d=_state.sent(),p=(0,TJe[s("V&B%",t._0x27a8f3,1202,1225,t._0x5327be)+c(t._0xd58797,2153,t._0x3db9d3,1963,t._0x3ee9c8)+"y"])(e),x=p[s(t._0xa83efd,t._0x411e32,844,1309,t._0x41dd65)](12),h={name:s(t._0x4de2aa,t._0x20b50e,t._0x4cae74,898,1191)+"CM",iv:p[l(1652,1119,"QwuZ",931,t._0x197297)](0,12)};return[2,kc[o("RtOR",t._0xaa0a9b,1554,912,t._0xd6a61)+"pt"](h,d,x)]}})})}function Z(r,e,t,n,i){return ve(i-449,n)}function Y(r,e,t,n,i){var a={_0x12047d:814};return ve(n- -a._0x12047d,r)}var RJe=Hg(Qg()),IJe=te("ix8k",2172,1646,1798,1940)+ae("m5Ud",1494,1277,1837,1616)+Y("AQmA",-229,-459,-225,-392)+Z(1219,894,926,"*qL$",1237)+Z(1247,1536,1526,"JNeN",1594)+"-",PJe=ue(-422,"m5Ud",-509,-460,-761)+ue(-345,"#I1X",-269,-164,-223)+Y("RtOR",319,-47,337,-29)+ue(211,"*qL$",509,96,124)+te("bP5x",1964,1892,1643,1815);function CJe(r,e){var t={_0xc8c20e:"Td@a",_0x1775bf:1246,_0x18d183:1869,_0x2fae98:1803,_0x16c77f:1806,_0xdd9b38:960,_0x4a7ed5:750,_0xb90100:1436,_0x4a3690:1607,_0x133e43:2319,_0xa4c373:1919,_0x1f9e7b:281,_0x41a9ae:385,_0x12eddb:156,_0xf220d5:"N2PL",_0x2fa6ee:289,_0x3a152e:"RtOR",_0x566c43:1773,_0x2e3f71:2121,_0x5ca700:"r^O1",_0x3748e4:1487,_0x56bfcc:"o5uN",_0x2c375b:2051,_0x4fc997:1732,_0x541953:893,_0x3c91ae:1261,_0x51f6a0:1305,_0x35ff5a:1220,_0x2f7b8f:1816,_0x57b76e:1814,_0x7ef534:117,_0x24996c:348,_0x466a92:63,_0x2f8117:"ejE(",_0xe09706:158,_0x48f8bb:101,_0x583201:215,_0x4a8b23:1789,_0x293a50:1644,_0x8b4251:1911,_0x4988a4:"848R"},n={_0x57c9fa:611};return Lc(this,null,function(){var i,o,s,d,p,x;function a(h,v,y,m,b){return ve(m-888,y)}function u(h,v,y,m,b){return ve(b-i._0x29345d,m)}function c(h,v,y,m,b){return ve(h- -939,b)}function l(h,v,y,m,b){return ve(y-375,h)}function f(h,v,y,m,b){return ve(m- -n._0x57c9fa,h)}return _ts_generator(this,function(_state){switch(_state.label){case 0:i={_0x29345d:540};o=new TextEncoder;r=r[l(t._0xc8c20e,1377,1290,1589,t._0x1775bf)+"ce"](IJe,""),r=r[u(t._0x18d183,1842,t._0x2fae98,"o5uN",t._0x16c77f)+"ce"](PJe,""),r=r[l("Iozt",1537,1142,t._0xdd9b38,t._0x4a7ed5)+"ce"](/\n/g,"");s={};s[l("SAMA",1391,1100,1340,t._0xb90100)]=a(t._0x4a3690,t._0x133e43,"N2PL",t._0xa4c373,1785)+c(69,t._0x1f9e7b,t._0x41a9ae,t._0x12eddb,t._0xf220d5),s[f("RtOR",13,309,-34,-t._0x2fa6ee)]=l(t._0x3a152e,1680,1599,1696,1315)+"56";d={};d[u(t._0x566c43,1785,t._0x2e3f71,t._0x5ca700,1752)]=u(1388,t._0x3748e4,845,t._0x56bfcc,1131)+u(1703,t._0x2c375b,1634,"QwuZ",t._0x4fc997);return[4,kc[a(1696,1253,"Z(VR",1557,1879)+u(t._0x541953,903,t._0x3c91ae,"Iozt",1060)](l("MVwD",1521,t._0x51f6a0,t._0x35ff5a,1599),(0,RJe[a(1584,t._0x2f7b8f,"RzAx",1539,t._0x57b76e)+f("o5uN",t._0x7ef534,t._0x24996c,66,-t._0x466a92)+"y"])(r),s,!1,[f(t._0x2f8117,503,-t._0xe09706,t._0x48f8bb,-t._0x583201)+"pt"])];case 1:p=_state.sent(),x=d;return[2,kc[a(t._0x4a8b23,t._0x293a50,"bP5x",t._0x8b4251,2046)+"pt"](x,p,o[f(t._0x4988a4,t._0x12eddb,220,554,940)+"e"](e))]}})})}function Pq(r){var e={_0x170fcf:736,_0x484a2d:171,_0x14c288:"ejE(",_0x2c2fce:144,_0x518ced:254,_0x34c29d:"QdMv",_0x4bb8de:"[3cA",_0x3740ee:862,_0x4a2372:"*YWj",_0x2cc4e3:1421,_0x49afcd:"bP5x",_0x130a4d:1497,_0xb2ff3e:1569,_0x8b2308:1482,_0x449535:358,_0x1a9f62:804,_0x4c18ff:532,_0x11a177:"ejE(",_0x2015c3:1439,_0x49f967:523,_0x11cd97:601,_0x476301:642,_0x52d7b8:301,_0x207733:")u!k",_0x441bd3:177,_0x439b50:"DgfB",_0x1f5d22:455,_0x35e08b:"o5uN",_0x5163df:1188,_0x24f160:1781,_0x161411:1513,_0x49bb48:1465,_0x90e03b:2040,_0x306b06:1708,_0x58a903:1292,_0x4ae733:"bVi3",_0x2ef314:1681,_0x14428b:253,_0x25ab94:1688,_0xfedcfa:"r^O1",_0x18e56b:2037,_0x58801c:2287,_0x3eaa52:309,_0x20f4c5:272,_0x49ff4c:528,_0x3a3e3c:451,_0xfd0cf7:737,_0x17d278:616,_0x524f8d:848,_0xcf59c8:1458,_0x28b4c0:"*YWj",_0xa1c935:1125,_0x9593bf:1149,_0x40abf8:783,_0x6656a1:538,_0x76e559:"MVwD",_0x4ff9f6:705,_0xcebbe1:763,_0x2b9631:"o)FD",_0x5c0533:593,_0x23fdb0:398,_0x3da1d4:"ix8k",_0x2011c5:489,_0x17511e:1384,_0x503aad:1076,_0x1255b6:1680,_0x1be01c:160,_0x411624:"rAUW",_0x3470ac:36,_0xfe72ed:378,_0x102563:2356,_0xc98e89:"qSP&",_0xff353e:1965,_0x1d4d3a:1978,_0x4f0bb5:2376,_0x2cbed4:1971,_0x494fad:2271,_0x5a5a96:2184,_0x479295:"Zr4y",_0x38d389:555,_0x58cbbe:1584,_0x5f100f:1245,_0xdfcdae:"N0Iq",_0xfb3695:646,_0x57f0c8:894,_0x4d8b13:827,_0x54af54:"m5Ud",_0x2e6ce0:668,_0x4acd68:467,_0xa2e76a:979,_0x3561c4:830,_0x48449d:1472,_0x5ac397:29,_0x54f0e6:64,_0x337b95:942,_0x18ecb0:387,_0x1d399c:303,_0x1e5459:157,_0x33e410:1500,_0x50d904:"tghG",_0x5d397a:1495,_0x2f4bc4:1018,_0x30bf9e:928,_0x30f67b:1118,_0xec5dc7:"dT8K",_0x1dd7f4:1182,_0x35871b:563,_0x1ac935:280,_0x19235c:"6xFd",_0x11d502:321,_0x348098:304};return Lc(this,arguments,function(param){var t,n,i,l,f,d,p;function a(l,f,d,p,x){return ve(x- -i._0x54d788,d)}function o(l,f,d,p,x){return ve(x- -635,d)}function s(l,f,d,p,x){return ve(l-n._0x4c69a8,d)}function u(l,f,d,p,x){return ve(f-254,d)}function c(l,f,d,p,x){return ve(p-926,f)}return _ts_generator(this,function(_state){switch(_state.label){case 0:t=param.app;n={_0x4c69a8:298},i={_0x54d788:325};if(!(s(952,675,"X@hs",941,e._0x170fcf)!==o(e._0x484a2d,-179,e._0x14c288,-e._0x2c2fce,-84)))return[3,1];if(!_0x264a75){if((typeof _0x46253f==="undefined"?"undefined":_type_of(_0x46253f))==o(326,-e._0x518ced,e._0x34c29d,74,5)+a(1132,971,e._0x4bb8de,1096,946)||!_0x1135e2[s(785,e._0x3740ee,e._0x4a2372,933,1157)+c(e._0x2cc4e3,e._0x49afcd,e._0x130a4d,e._0xb2ff3e,e._0x8b2308)+o(e._0x449535,e._0x1a9f62,"6xFd",933,e._0x4c18ff)])throw new _0x17290f(s(1239,1343,e._0x11a177,1348,e._0x2015c3)+a(e._0x49f967,e._0x11cd97,"MVwD",e._0x476301,749)+a(400,e._0x52d7b8,e._0x207733,-27,196)+o(-e._0x441bd3,31,e._0x439b50,e._0x1f5d22,188)+u(1071,1408,e._0x35e08b,e._0x5163df,e._0x24f160)+c(1589,"*qL$",e._0x161411,1613,e._0x49bb48)+c(2241,"ejE(",e._0x90e03b,1839,e._0x306b06)+u(1268,e._0x58a903,e._0x4ae733,1301,e._0x2ef314)+o(-234,255,")u!k",-e._0x14428b,-103)+c(e._0x25ab94,e._0xfedcfa,2301,e._0x18e56b,e._0x58801c)+a(e._0x3eaa52,e._0x20f4c5,"QdMv",e._0x49ff4c,e._0x3a3e3c)+a(e._0xfd0cf7,e._0x17d278,"QDD]",876,e._0x524f8d)+u(e._0xcf59c8,1067,e._0x28b4c0,e._0xa1c935,947)+s(1413,1109,"uw*n",1157,e._0x9593bf)+o(e._0x40abf8,e._0x6656a1,e._0x76e559,147,400)+a(e._0x4ff9f6,e._0xcebbe1,e._0x2b9631,647,e._0x5c0533)+a(e._0x23fdb0,517,e._0x3da1d4,818,e._0x2011c5)+s(e._0x17511e,e._0x503aad,"848R",1767,e._0x1255b6)+o(-e._0x1be01c,10,e._0x411624,-320,-e._0x3470ac)+a(e._0xfe72ed,797,"MVwD",919,647)+c(e._0x102563,e._0xc98e89,e._0xff353e,e._0x1d4d3a,e._0x4f0bb5));_0x562620=_0x40d0ca[c(e._0x2cbed4,"ejE(",e._0x494fad,2195,e._0x5a5a96)+s(828,468,e._0x479295,933,e._0x38d389)+c(1066,e._0x35e08b,e._0x58cbbe,1408,1760)][s(962,e._0x5f100f,e._0xdfcdae,e._0xfb3695,791)](_0x23dbef)}return[2,_0x10c472(_0x1f4f07)];case 1:return[4,FY()];case 2:l=_state.sent()[a(1041,e._0x57f0c8,"[3cA",e._0x4d8b13,819)+u(1144,744,e._0x54af54,e._0x2e6ce0,1081)+a(e._0x4acd68,761,e._0x34c29d,e._0xa2e76a,e._0x3561c4)+"ey"],f={timestamp:Math[s(1203,e._0x48449d,"Iozt",1575,979)](Date[o(-6,e._0x5ac397,"SAMA",59,-e._0x54f0e6)]()/1e3),ticket:wJe(),app:t};return[4,CJe(l,JSON[s(817,1102,"N0Iq",e._0x337b95,673)+o(e._0x18ecb0,e._0x1d399c,"QDD]",133,e._0x1e5459)](f))];case 3:d=_state.sent(),p=(0,gJe[c(e._0x33e410,e._0x50d904,e._0x5d397a,1530,1170)+u(e._0x2f4bc4,e._0x30bf9e,e._0x34c29d,917,1229)+s(e._0x30f67b,977,e._0xec5dc7,1187,1133)])(new Uint8Array(d));return[2,SJe+"/"+t+(s(859,e._0x1dd7f4,e._0x11a177,1223,e._0x35871b)+a(265,e._0x1ac935,e._0x19235c,e._0x11d502,e._0x348098))+encodeURIComponent(p)];case 4:return[2]}})})}function ue(r,e,t,n,i){var a={_0x28a316:987};return ve(r- -a._0x28a316,e)}var NJe=Hg(Qg());function kJe(r){var e={_0xa30ea1:207,_0x41a13f:"bP5x",_0x466507:351,_0x4422d1:246,_0x540726:326,_0x530cab:741,_0x2db7b8:"fdfK",_0x309279:446,_0x14bb3e:485,_0x18df3d:204,_0x2f265a:88,_0x33062e:2},t={_0x21273a:221},n={_0x13cb51:356,_0x3e5ddc:275},i={_0x5bd479:344};function a(c,l,f,d,p){return Y(f,l-165,f-419,c-i._0x5bd479,p-370)}function o(c,l,f,d,p){return Z(c-56,l-n._0x13cb51,f-n._0x3e5ddc,l,p- -874)}var s=4-r[o(e._0xa30ea1,e._0x41a13f,e._0x466507,e._0x4422d1,e._0x540726)+"h"]%4;if(s<4)for(var c=0;c<s;c++)r+="=";function u(c,l,f,d,p){return Y(l,l-t._0x21273a,f-29,c-315,p-93)}return r[o(e._0x530cab,e._0x2db7b8,539,e._0x309279,e._0x14bb3e)+"ce"](/-/g,"+")[u(e._0x18df3d,"qSP&",-e._0x2f265a,-e._0x33062e,195)+"ce"](/_/g,"/")}function LJe(r,e){var t={_0x350949:256,_0x533afb:392,_0xbf130f:108,_0x33daae:"DgfB",_0x236f9f:592,_0x3ff196:564,_0x269984:1911,_0x342b9c:1883,_0x13f8e1:"QwuZ",_0x130adb:529,_0x506b9d:205,_0x84d212:587,_0x2839d8:2358,_0x22d34b:1378,_0x5d21b9:1428,_0x3dfde1:1492,_0x13f74d:"qSP&",_0x4e7173:962,_0x369503:1165,_0x181226:1204,_0x27f211:1315,_0x31e49e:1363,_0xb480f6:1554,_0x4f5105:2155,_0x241c06:"(uUF",_0x4e7b63:1143,_0x3398f2:"o)FD",_0x51796b:1456,_0x393f4c:2029,_0x1a8fe6:1835,_0x302ec5:1839,_0x1b857f:"Td@a",_0x755e5b:1865,_0x566646:1633};return Lc(this,null,function(){var n,i,o,f,d,p,x,h;function a(v,y,m,b,S){return ve(v-907,m)}function s(v,y,m,b,S){return ve(m- -3,v)}function u(v,y,m,b,S){return ve(S- -i._0x34b7b3,v)}function c(v,y,m,b,S){return ve(m-750,S)}function l(v,y,m,b,S){return ve(S-n._0x2058c4,b)}return _ts_generator(this,function(_state){switch(_state.label){case 0:n={_0x2058c4:872},i={_0x34b7b3:442};o={};o[u("wS8$",-131,-t._0x350949,t._0x533afb,t._0xbf130f)]=u(t._0x33daae,263,823,t._0x236f9f,t._0x3ff196)+"CM";f=new TextEncoder;return[4,kc[a(t._0x269984,2284,"o5uN",t._0x342b9c,1613)+u(t._0x13f8e1,t._0x130adb,t._0x506b9d,t._0x84d212,193)](c(2135,2069,2012,t._0x2839d8,")u!k"),f[l(t._0x22d34b,t._0x5d21b9,t._0x3dfde1,"fdfK",1418)+"e"](r),o,!1,[s(t._0x13f74d,t._0x4e7173,t._0x369503,1292,t._0x181226)+"pt"])];case 1:d=_state.sent(),p=(0,NJe[l(1419,t._0x27f211,1691,"rAUW",t._0x31e49e)+a(1620,t._0xb480f6,"bVi3",1336,1340)+"y"])(kJe(e)),x=p[a(t._0x4f5105,1818,t._0x241c06,2515,2297)](12),h={name:l(1707,1110,t._0x4e7b63,t._0x3398f2,t._0x51796b)+"CM",iv:p[l(t._0x393f4c,t._0x1a8fe6,t._0x302ec5,t._0x1b857f,2047)](0,12)};return[2,kc[l(1678,1994,t._0x755e5b,"DLFC",t._0x566646)+"pt"](h,d,x)]}})})}function BY(r){var e={_0x240207:370,_0x2dcf8d:418,_0x108491:705,_0x4799cb:835,_0x49c1bb:"QDD]",_0x21cc7e:819,_0x5f2f92:"bP5x",_0x14cba4:453,_0x1e8c54:807,_0x509784:"T4sb",_0x19779f:762,_0x9366b8:360,_0x126632:"SAMA",_0x53455c:202,_0x48eaaa:58,_0x5e19a7:437,_0x1a9a81:91,_0x88d008:"QdMv",_0x5b1fa6:143,_0x585173:181,_0xf395ee:393,_0x21c5a4:589,_0x36b552:"o5uN",_0x3d6bd0:281,_0x473138:623,_0x46ad5c:510,_0xbca73e:"RtOR",_0x2dc3a3:393,_0x356c1:741,_0x1bfec0:1117,_0x3ae8d5:1020,_0x19b456:"6xFd",_0x10d80a:691,_0xced079:498,_0xa1ebdc:249,_0x245a98:"RzAx",_0x3dc4d6:673,_0x1eebd4:441,_0x5d9506:596};return Lc(this,arguments,function(param){var t,n,i,l,f,l1;function a(l,f,d,p,x){return ve(d-178,l)}function o(l,f,d,p,x){return ve(p- -i._0x3756c1,f)}function s(l,f,d,p,x){return ve(f- -820,d)}function u(l,f,d,p,x){return ve(l- -669,f)}function c(l,f,d,p,x){return ve(l- -431,d)}return _ts_generator(this,function(_state){switch(_state.label){case 0:t=param.app,n=param.s;i={_0x3756c1:90};if(!(c(e._0x240207,e._0x2dcf8d,"m5Ud",657,e._0x108491)===c(444,e._0x4799cb,e._0x49c1bb,42,419)))return[3,3];return[4,FY()];case 1:l=_state.sent()[t];return[4,LJe(l,n)];case 2:f=_state.sent();return[2,new TextDecoder()[c(e._0x21cc7e,884,e._0x5f2f92,e._0x14cba4,677)+"e"](f)];case 3:if(_0x23c9f0=_0x41bf74||0,_0x40bd82<0||_0x599b52+16>_0x26908a[o(e._0x1e8c54,e._0x509784,e._0x19779f,657,e._0x9366b8)+"h"])throw new _0x561855(u(80,e._0x126632,e._0x53455c,e._0x48eaaa,e._0x5e19a7)+u(e._0x1a9a81,e._0x88d008,e._0x5b1fa6,e._0x585173,266)+o(e._0xf395ee,"[3cA",689,527,156)+" "+_0x4e8d06+":"+(_0x1c6802+15)+(u(e._0x21c5a4,e._0x36b552,e._0x3d6bd0,e._0x473138,e._0x46ad5c)+a(e._0xbca73e,e._0x2dc3a3,e._0x356c1,364,378)+o(930,"*qL$",e._0x1bfec0,942,e._0x3ae8d5)+o(787,e._0x19b456,888,e._0x10d80a,e._0xced079)+o(e._0xa1ebdc,e._0x245a98,e._0x3dc4d6,e._0x1eebd4,e._0x5d9506)));for(l1=0;l1<16;++l1)_0x460ef7[_0x2cd408+l1]=_0x466072[l1];return[2,_0x228b07];case 4:return[2]}})})}var Lt=require("obsidian");var Xg=require("obsidian");var Cd=/*#__PURE__*/function(_Xg_Modal){"use strict";_inherits(Cd1,_Xg_Modal);function Cd1(t,n){_class_call_check(this,Cd1);var _this;_this=_call_super(this,Cd1,[t]);_this.onConfirm=n;return _this}_create_class(Cd1,[{key:"onOpen",value:function onOpen(){var _this=this;var _this1=this,t=_this1.contentEl;t.createEl("h2",{text:P.t("settings.logout.confirmTitle")}),t.createEl("p",{text:P.t("settings.logout.confirmMessage")}),new Xg.Setting(t).addButton(function(n){return n.setButtonText(P.t("settings.logout.cancel")).onClick(function(){return _this.close()})}).addButton(function(n){return n.setButtonText(P.t("settings.logout.confirm")).setWarning().onClick(function(){_this.close(),_this.onConfirm()})})}},{key:"onClose",value:function onClose(){var _this=this,t=_this.contentEl;t.empty()}}]);return Cd1}(Xg.Modal);var UY="Invalid response: 503 Service Unavailable";function ra(r){return _instanceof(r,Error)?r.message===UY:r===UY}Pr();var on=function on1(e,t,n,i){"use strict";_class_call_check(this,on1);this.app=e;this.plugin=t;this.settings=n;this.containerEl=i};var Nd=/*#__PURE__*/function(on1){"use strict";_inherits(Nd1,on1);function Nd1(){_class_call_check(this,Nd1);var _this;_this=_call_super(this,Nd1,arguments);_this.updateOAuthUrlTimer=null;return _this}_create_class(Nd1,[{key:"display",value:function display(){return D(this,null,function(){var _this,_tmp;return _ts_generator(this,function(_state){switch(_state.label){case 0:_this=this;this.containerEl.empty(),new Lt.Setting(this.containerEl).setName(P.t("settings.sections.account")).setHeading(),new Lt.Setting(this.containerEl).setName(P.t("settings.loginMode.name")).addDropdown(function(t){return t.addOption("manual",P.t("settings.loginMode.manual")).addOption("sso",P.t("settings.loginMode.sso")).setValue(_this.plugin.settings.loginMode).onChange(function(n){return D(_this,null,function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:this.plugin.settings.loginMode=n;return[4,this.plugin.saveSettings()];case 1:_state.sent(),this.display();return[2]}})})})});if(!this.settings.isSSO)return[3,2];return[4,this.displaySSOLoginSettings()];case 1:_tmp=_state.sent();return[3,4];case 2:return[4,this.displayManualLoginSettings()];case 3:_tmp=_state.sent();_state.label=4;case 4:_tmp;return[2]}})})}},{key:"hide",value:function hide(){return D(this,null,function(){return _ts_generator(this,function(_state){this.updateOAuthUrlTimer!==null&&(window.clearInterval(this.updateOAuthUrlTimer),this.updateOAuthUrlTimer=null);return[2]})})}},{key:"displayManualLoginSettings",value:function displayManualLoginSettings(){var _this=this;var n=new Lt.Setting(this.containerEl).descEl.createEl("a",{href:"https://help.jianguoyun.com/?p=2064",cls:"no-underline",text:P.t("settings.help.name")});n.target="_blank",new Lt.Setting(this.containerEl).setName(P.t("settings.account.name")).setDesc(P.t("settings.account.desc")).addText(function(i){return i.setPlaceholder(P.t("settings.account.placeholder")).setValue(_this.plugin.settings.account).onChange(function(a){return D(_this,null,function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:this.plugin.settings.account=a;return[4,this.plugin.saveSettings()];case 1:_state.sent();return[2]}})})})}),new Lt.Setting(this.containerEl).setName(P.t("settings.credential.name")).setDesc(P.t("settings.credential.desc")).addText(function(i){i.setPlaceholder(P.t("settings.credential.placeholder")).setValue(_this.plugin.settings.credential).onChange(function(a){return D(_this,null,function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:this.plugin.settings.credential=a;return[4,this.plugin.saveSettings()];case 1:_state.sent();return[2]}})})}),i.inputEl.type="password"}),this.displayCheckConnection()}},{key:"displaySSOLoginSettings",value:function displaySSOLoginSettings(){return D(this,null,function(){var _this,t,n,i,_$i;return _ts_generator(this,function(_state){switch(_state.label){case 0:_this=this;t=this.plugin.settings.oauthResponseText.length>0;if(!t)return[3,4];_state.label=1;case 1:_state.trys.push([1,3,,4]);return[4,this.plugin.getDecryptedOAuthInfo()];case 2:n=_state.sent();return[3,4];case 3:i=_state.sent();ce.error(i),t=!1;return[3,4];case 4:if(t&&n!=null&&n.username){_$i=new Lt.Setting(this.containerEl).setName(P.t("settings.ssoStatus.loggedIn")).setDesc(n.username).addButton(function(a){a.setWarning().setButtonText(P.t("settings.ssoStatus.logout")).onClick(function(){new Cd(_this.app,function(){return D(_this,null,function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:this.plugin.settings.oauthResponseText="";return[4,this.plugin.saveSettings()];case 1:_state.sent(),new Lt.Notice(P.t("settings.ssoStatus.logoutSuccess")),this.display();return[2]}})})}).open()})});_$i.descEl.classList.add("max-w-full","truncate"),_$i.infoEl.classList.add("max-w-full"),this.displayCheckConnection()}else new Lt.Setting(this.containerEl).setName(P.t("settings.ssoStatus.notLoggedIn")).addButton(function(i){return D(_this,null,function(){var _this,o,a;return _ts_generator(this,function(_state){switch(_state.label){case 0:_this=this;i.setButtonText(P.t("settings.login.name"));a=document.createElement("a");a.target="_blank",(o=i.buttonEl.parentElement)==null||o.appendChild(a),a.appendChild(i.buttonEl);return[4,Pq({app:"obsidian"})];case 1:a.href=_state.sent(),this.updateOAuthUrlTimer=window.setInterval(function(){return D(_this,null,function(){var _tmp;return _ts_generator(this,function(_state){switch(_state.label){case 0:if(!document.contains(a))return[3,2];return[4,Pq({app:"obsidian"})];case 1:_tmp=a.href=_state.sent();return[3,3];case 2:_tmp=(window.clearInterval(this.updateOAuthUrlTimer),this.updateOAuthUrlTimer=null);_state.label=3;case 3:_tmp;return[2]}})})},60*1e3);return[2]}})})});return[2]}})})}},{key:"displayCheckConnection",value:function displayCheckConnection(){var _this=this;new Lt.Setting(this.containerEl).setName(P.t("settings.checkConnection.name")).setDesc(P.t("settings.checkConnection.desc")).addButton(function(t){t.setButtonText(P.t("settings.checkConnection.name")).onClick(function(n){return D(_this,null,function(){var i,_ref,a,o,a2;return _ts_generator(this,function(_state){switch(_state.label){case 0:i=n.target;i.classList.add("connection-button","loading"),i.classList.remove("success","error"),i.textContent=P.t("settings.checkConnection.name");_state.label=1;case 1:_state.trys.push([1,3,,4]);return[4,this.plugin.webDAVService.checkWebDAVConnection()];case 2:_ref=_state.sent(),a=_ref.success,o=_ref.error;i.classList.remove("loading"),a?(i.classList.add("success"),i.textContent=P.t("settings.checkConnection.successButton"),new Lt.Notice(P.t("settings.checkConnection.success"))):o&&ra(o)?(i.classList.add("error"),i.textContent=P.t("sync.error.requestsTooFrequent"),new Lt.Notice(P.t("sync.error.requestsTooFrequent"))):(i.classList.add("error"),i.textContent=P.t("settings.checkConnection.failureButton"),new Lt.Notice(P.t("settings.checkConnection.failure")));return[3,4];case 3:a2=_state.sent();i.classList.remove("loading"),i.classList.add("error"),i.textContent=P.t("settings.checkConnection.failureButton"),new Lt.Notice(P.t("settings.checkConnection.failure"));return[3,4];case 4:return[2]}})})})})}}]);return Nd1}(on);var ua=require("obsidian"),zZ=ze(Qr());var fo=require("obsidian");Pr();var Dc=/*#__PURE__*/function(_fo_Modal){"use strict";_inherits(Dc1,_fo_Modal);function Dc1(t,n){_class_call_check(this,Dc1);var _this;_this=_call_super(this,Dc1,[t.app]);_this.plugin=t;_this.onSuccess=n;_this.options={deltaCacheEnabled:!1,syncRecordEnabled:!1,blobEnabled:!1};return _this}_create_class(Dc1,[{key:"onOpen",value:function onOpen(){var _this=this;var _this1=this,t=_this1.contentEl;new fo.Setting(t).setName(P.t("settings.cache.clearModal.title")).setDesc(P.t("settings.cache.clearModal.description"));var n=t.createDiv({cls:"py-2"});new fo.Setting(n).setName(P.t("settings.cache.clearModal.deltaCache.name")).setDesc(P.t("settings.cache.clearModal.deltaCache.desc")).addToggle(function(i){i.setValue(_this.options.deltaCacheEnabled).onChange(function(a){_this.options.deltaCacheEnabled=a})}),new fo.Setting(n).setName(P.t("settings.cache.clearModal.syncRecordCache.name")).setDesc(P.t("settings.cache.clearModal.syncRecordCache.desc")).addToggle(function(i){i.setValue(_this.options.syncRecordEnabled).onChange(function(a){_this.options.syncRecordEnabled=a})}),new fo.Setting(n).setName(P.t("settings.cache.clearModal.blobCache.name")).setDesc(P.t("settings.cache.clearModal.blobCache.desc")).addToggle(function(i){i.setValue(_this.options.blobEnabled).onChange(function(a){_this.options.blobEnabled=a})}),new fo.Setting(t).addButton(function(i){i.setButtonText(P.t("settings.cache.clearModal.cancel")).onClick(function(){_this.close()})}).addButton(function(i){var a=!1;i.setButtonText(P.t("settings.cache.clear")).onClick(function(){return D(_this,null,function(){return _ts_generator(this,function(_state){if(a)try{this.onSuccess&&this.onSuccess(this.options),this.close()}catch(o){ce.error("Error clearing cache:",o)}finally{i.setButtonText(P.t("settings.cache.clearModal.confirm")),i.buttonEl.classList.remove("mod-warning"),a=!1}else a=!0,i.setButtonText(P.t("settings.cache.confirm")).setWarning();return[2]})})}),i.buttonEl.addEventListener("blur",function(){a&&(a=!1,i.setButtonText(P.t("settings.cache.clear")),i.buttonEl.classList.remove("mod-warning"))})})}},{key:"onClose",value:function onClose(){var _this=this,t=_this.contentEl;t.empty()}}],[{key:"clearSelectedCaches",value:function clearSelectedCaches(t){return D(this,null,function(){var n,i,a,o,_tmp,_tmp1,_tmp2,s;return _ts_generator(this,function(_state){switch(_state.label){case 0:n=t.deltaCacheEnabled,i=t.syncRecordEnabled,a=t.blobEnabled,o=[];_state.label=1;case 1:_state.trys.push([1,8,,9]);_tmp=n;if(!_tmp)return[3,3];return[4,bi.clear()];case 2:_tmp=(_state.sent(),o.push(P.t("settings.cache.clearModal.deltaCache.name")));_state.label=3;case 3:_tmp;_tmp1=i;if(!_tmp1)return[3,5];return[4,Vn.clear()];case 4:_tmp1=(_state.sent(),o.push(P.t("settings.cache.clearModal.syncRecordCache.name")));_state.label=5;case 5:_tmp1;_tmp2=a;if(!_tmp2)return[3,7];return[4,ys.clear()];case 6:_tmp2=(_state.sent(),o.push(P.t("settings.cache.clearModal.blobCache.name")));_state.label=7;case 7:return[2,(_tmp2,o)];case 8:s=_state.sent();throw ce.error("Error clearing caches:",s),s;case 9:return[2]}})})}}]);return Dc1}(fo.Modal);var Bd=require("obsidian");var St=Uint8Array,sn=Uint16Array,Fq=Int32Array,Yg=new St([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Jg=new St([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Lq=new St([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),GY=function GY1(r,e){for(var t=new sn(31),n=0;n<31;++n)t[n]=e+=1<<r[n-1];for(var i=new Fq(t[30]),n=1;n<30;++n)for(var a=t[n];a<t[n+1];++a)i[a]=a-t[n]<<5|n;return{b:t,r:i}},zY=GY(Yg,2),KY=zY.b,Dq=zY.r;KY[28]=258,Dq[258]=28;var HY=GY(Jg,0),DJe=HY.b,jY=HY.r,Wq=new sn(32768);for(Ye=0;Ye<32768;++Ye)ta=(Ye&43690)>>1|(Ye&21845)<<1,ta=(ta&52428)>>2|(ta&13107)<<2,ta=(ta&61680)>>4|(ta&3855)<<4,Wq[Ye]=((ta&65280)>>8|(ta&255)<<8)>>1;var ta,Ye,_i=function _i1(r,e,t){for(var n=r.length,i=0,a=new sn(e);i<n;++i)r[i]&&++a[r[i]-1];var o=new sn(e);for(i=1;i<e;++i)o[i]=o[i-1]+a[i-1]<<1;var s;if(t){s=new sn(1<<e);var u=15-e;for(i=0;i<n;++i)if(r[i])for(var c=i<<4|r[i],l=e-r[i],f=o[r[i]-1]++<<l,d=f|(1<<l)-1;f<=d;++f)s[Wq[f]>>u]=c}else for(s=new sn(n),i=0;i<n;++i)r[i]&&(s[i]=Wq[o[r[i]-1]++]>>15-r[i]);return s},po=new St(288);for(Ye=0;Ye<144;++Ye)po[Ye]=8;var Ye;for(Ye=144;Ye<256;++Ye)po[Ye]=9;var Ye;for(Ye=256;Ye<280;++Ye)po[Ye]=7;var Ye;for(Ye=280;Ye<288;++Ye)po[Ye]=8;var Ye,Dd=new St(32);for(Ye=0;Ye<32;++Ye)Dd[Ye]=5;var Ye,WJe=_i(po,9,0),MJe=_i(po,9,1),FJe=_i(Dd,5,0),BJe=_i(Dd,5,1),Cq=function Cq1(r){for(var e=r[0],t=1;t<r.length;++t)r[t]>e&&(e=r[t]);return e},Kn=function Kn1(r,e,t){var n=e/8|0;return(r[n]|r[n+1]<<8)>>(e&7)&t},Nq=function Nq1(r,e){var t=e/8|0;return(r[t]|r[t+1]<<8|r[t+2]<<16)>>(e&7)},Bq=function Bq1(r){return(r+7)/8|0},QY=function QY1(r,e,t){return(e==null||e<0)&&(e=0),(t==null||t>r.length)&&(t=r.length),new St(r.subarray(e,t))};var UJe=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],ia=function ia1(r,e,t){var n=new Error(e||UJe[r]);if(n.code=r,Error.captureStackTrace&&Error.captureStackTrace(n,ia),!t)throw n;return n},jJe=function jJe1(r,e,t,n){var i=r.length,a=n?n.length:0;if(!i||e.f&&!e.l)return t||new St(0);var o=!t,s=o||e.i!=2,u=e.i;o&&(t=new St(i*3));var c=function c(Ie){var or=t.length;if(Ie>or){var Be=new St(Math.max(or*2,Ie));Be.set(t),t=Be}},l=e.f||0,f=e.p||0,d=e.b||0,p=e.l,x=e.d,h=e.m,v=e.n,y=i*8;do{if(!p){l=Kn(r,f,1);var m=Kn(r,f+1,3);if(f+=3,m)if(m==1)p=MJe,x=BJe,h=9,v=5;else if(m==2){var w=Kn(r,f,31)+257,R=Kn(r,f+10,15)+4,_=w+Kn(r,f+5,31)+1;f+=14;for(var E=new St(_),O=new St(19),I=0;I<R;++I)O[Lq[I]]=Kn(r,f+I*3,7);f+=R*3;for(var N=Cq(O),k=(1<<N)-1,B=_i(O,N,1),I=0;I<_;){var U=B[Kn(r,f,k)];f+=U&15;var b=U>>4;if(b<16)E[I++]=b;else{var $=0,X=0;for(b==16?(X=3+Kn(r,f,3),f+=2,$=E[I-1]):b==17?(X=3+Kn(r,f,7),f+=3):b==18&&(X=11+Kn(r,f,127),f+=7);X--;)E[I++]=$}}var le=E.subarray(0,w),K=E.subarray(w);h=Cq(le),v=Cq(K),p=_i(le,h,1),x=_i(K,v,1)}else ia(1);else{var b=Bq(f)+4,S=r[b-4]|r[b-3]<<8,T=b+S;if(T>i){u&&ia(0);break}s&&c(d+S),t.set(r.subarray(b,T),d),e.b=d+=S,e.p=f=T*8,e.f=l;continue}if(f>y){u&&ia(0);break}}s&&c(d+131072);for(var qe=(1<<h)-1,V=(1<<v)-1,fe=f;;fe=f){var $=p[Nq(r,f)&qe],me=$>>4;if(f+=$&15,f>y){u&&ia(0);break}if($||ia(2),me<256)t[d++]=me;else if(me==256){fe=f,p=null;break}else{var be=me-254;if(me>264){var I=me-257,pe=Yg[I];be=Kn(r,f,(1<<pe)-1)+KY[I],f+=pe}var Te=x[Nq(r,f)&V],de=Te>>4;Te||ia(3),f+=Te&15;var K=DJe[de];if(de>3){var pe=Jg[de];K+=Nq(r,f)&(1<<pe)-1,f+=pe}if(f>y){u&&ia(0);break}s&&c(d+131072);var _e=d+be;if(d<K){var Ae=a-K,Qe=Math.min(K,_e);for(Ae+d<0&&ia(3);d<Qe;++d)t[d]=n[Ae+d]}for(;d<_e;++d)t[d]=t[d-K]}}e.l=p,e.p=fe,e.b=d,e.f=l,p&&(l=1,e.m=h,e.d=x,e.n=v)}while(!l);return d!=t.length&&o?QY(t,0,d):t.subarray(0,d)},na=function na1(r,e,t){t<<=e&7;var n=e/8|0;r[n]|=t,r[n+1]|=t>>8},kd=function kd1(r,e,t){t<<=e&7;var n=e/8|0;r[n]|=t,r[n+1]|=t>>8,r[n+2]|=t>>16},kq=function kq1(r,e){for(var t=[],n=0;n<r.length;++n)r[n]&&t.push({s:n,f:r[n]});var i=t.length,a=t.slice();if(!i)return{t:YY,l:0};if(i==1){var o=new St(t[0].s+1);return o[t[0].s]=1,{t:o,l:1}}t.sort(function(T,w){return T.f-w.f}),t.push({s:-1,f:25001});var s=t[0],u=t[1],c=0,l=1,f=2;for(t[0]={s:-1,f:s.f+u.f,l:s,r:u};l!=i-1;)s=t[t[c].f<t[f].f?c++:f++],u=t[c!=l&&t[c].f<t[f].f?c++:f++],t[l++]={s:-1,f:s.f+u.f,l:s,r:u};for(var d=a[0].s,n=1;n<i;++n)a[n].s>d&&(d=a[n].s);var p=new sn(d+1),x=Mq(t[l-1],p,0);if(x>e){var n=0,h=0,v=x-e,y=1<<v;for(a.sort(function(w,R){return p[R.s]-p[w.s]||w.f-R.f});n<i;++n){var m=a[n].s;if(p[m]>e)h+=y-(1<<x-p[m]),p[m]=e;else break}for(h>>=v;h>0;){var b=a[n].s;p[b]<e?h-=1<<e-p[b]++-1:++n}for(;n>=0&&h;--n){var S=a[n].s;p[S]==e&&(--p[S],++h)}x=e}return{t:new St(p),l:x}},Mq=function Mq1(r,e,t){return r.s==-1?Math.max(Mq(r.l,e,t+1),Mq(r.r,e,t+1)):e[r.s]=t},$Y=function $Y1(r){for(var e=r.length;e&&!r[--e];);for(var t=new sn(++e),n=0,i=r[0],a=1,o=function o(u){t[n++]=u},s=1;s<=e;++s)if(r[s]==i&&s!=e)++a;else{if(!i&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(i),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(i);a=1,i=r[s]}return{c:t.subarray(0,n),n:e}},Ld=function Ld1(r,e){for(var t=0,n=0;n<e.length;++n)t+=r[n]*e[n];return t},XY=function XY1(r,e,t){var n=t.length,i=Bq(e+2);r[i]=n&255,r[i+1]=n>>8,r[i+2]=r[i]^255,r[i+3]=r[i+1]^255;for(var a=0;a<n;++a)r[i+a+4]=t[a];return(i+4+n)*8},VY=function VY1(r,e,t,n,i,a,o,s,u,c,l){na(e,l++,t),++i[256];for(var f=kq(i,15),d=f.t,p=f.l,x=kq(a,15),h=x.t,v=x.l,y=$Y(d),m=y.c,b=y.n,S=$Y(h),T=S.c,w=S.n,R=new sn(19),_=0;_<m.length;++_)++R[m[_]&31];for(var _=0;_<T.length;++_)++R[T[_]&31];for(var E=kq(R,7),O=E.t,I=E.l,N=19;N>4&&!O[Lq[N-1]];--N);var k=c+5<<3,B=Ld(i,po)+Ld(a,Dd)+o,U=Ld(i,d)+Ld(a,h)+o+14+3*N+Ld(R,O)+2*R[16]+3*R[17]+7*R[18];if(u>=0&&k<=B&&k<=U)return XY(e,l,r.subarray(u,u+c));var $,X,le,K;if(na(e,l,1+(U<B)),l+=2,U<B){$=_i(d,p,0),X=d,le=_i(h,v,0),K=h;var qe=_i(O,I,0);na(e,l,b-257),na(e,l+5,w-1),na(e,l+10,N-4),l+=14;for(var _=0;_<N;++_)na(e,l+3*_,O[Lq[_]]);l+=3*N;for(var V=[m,T],fe=0;fe<2;++fe)for(var me=V[fe],_=0;_<me.length;++_){var be=me[_]&31;na(e,l,qe[be]),l+=O[be],be>15&&(na(e,l,me[_]>>5&127),l+=me[_]>>12)}}else $=WJe,X=po,le=FJe,K=Dd;for(var _=0;_<s;++_){var pe=n[_];if(pe>255){var be=pe>>18&31;kd(e,l,$[be+257]),l+=X[be+257],be>7&&(na(e,l,pe>>23&31),l+=Yg[be]);var Te=pe&31;kd(e,l,le[Te]),l+=K[Te],Te>3&&(kd(e,l,pe>>5&8191),l+=Jg[Te])}else kd(e,l,$[pe]),l+=X[pe]}return kd(e,l,$[256]),l+X[256]},$Je=new Fq([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),YY=new St(0),VJe=function VJe1(r,e,t,n,i,a){var o=a.z||r.length,s=new St(n+o+5*(1+Math.ceil(o/7e3))+i),u=s.subarray(n,s.length-i),c=a.l,l=(a.r||0)&7;if(e){l&&(u[0]=a.r>>3);for(var f=$Je[e-1],d=f>>13,p=f&8191,x=(1<<t)-1,h=a.p||new sn(32768),v=a.h||new sn(x+1),y=Math.ceil(t/3),m=2*y,b=function b(Ze){return(r[Ze]^r[Ze+1]<<y^r[Ze+2]<<m)&x},S=new Fq(25e3),T=new sn(288),w=new sn(32),R=0,_=0,E=a.i||0,O=0,I=a.w||0,N=0;E+2<o;++E){var k=b(E),B=E&32767,U=v[k];if(h[B]=U,v[k]=B,I<=E){var $=o-E;if((R>7e3||O>24576)&&($>423||!c)){l=VY(r,u,0,S,T,w,_,O,N,E-N,l),O=R=_=0,N=E;for(var X=0;X<286;++X)T[X]=0;for(var X=0;X<30;++X)w[X]=0}var le=2,K=0,qe=p,V=B-U&32767;if($>2&&k==b(E-V))for(var fe=Math.min(d,$)-1,me=Math.min(32767,E),be=Math.min(258,$);V<=me&&--qe&&B!=U;){if(r[E+le]==r[E+le-V]){for(var pe=0;pe<be&&r[E+pe]==r[E+pe-V];++pe);if(pe>le){if(le=pe,K=V,pe>fe)break;for(var Te=Math.min(V,pe-2),de=0,X=0;X<Te;++X){var _e=E-V+X&32767,Ae=h[_e],Qe=_e-Ae&32767;Qe>de&&(de=Qe,U=_e)}}}B=U,U=h[B],V+=B-U&32767}if(K){S[O++]=0x10000000|Dq[le]<<18|jY[K];var Ie=Dq[le]&31,or=jY[K]&31;_+=Yg[Ie]+Jg[or],++T[257+Ie],++w[or],I=E+le,++R}else S[O++]=r[E],++T[r[E]]}}for(E=Math.max(E,I);E<o;++E)S[O++]=r[E],++T[r[E]];l=VY(r,u,c,S,T,w,_,O,N,E-N,l),c||(a.r=l&7|u[l/8|0]<<3,l-=7,a.h=v,a.p=h,a.i=E,a.w=I)}else{for(var E=a.w||0;E<o+c;E+=65535){var Be=E+65535;Be>=o&&(u[l/8|0]=c,Be=o),l=XY(u,l+1,r.subarray(E,Be))}a.i=o}return QY(s,0,n+Bq(l)+i)};var GJe=function GJe1(r,e,t,n,i){if(!i&&(i={l:1},e.dictionary)){var a=e.dictionary.subarray(-32768),o=new St(a.length+r.length);o.set(a),o.set(r,a.length),r=o,i.w=a.length}return VJe(r,e.level==null?6:e.level,e.mem==null?i.l?Math.ceil(Math.max(8,Math.min(13,Math.log(r.length)))*1.5):20:12+e.mem,t,n,i)};function JY(r,e){return GJe(r,e||{},0,0)}function ZY(r,e){return jJe(r,{i:2},e&&e.out,e&&e.dictionary)}var zJe=typeof TextDecoder!="undefined"&&new TextDecoder,KJe=0;try{zJe.decode(YY,{stream:!0}),KJe=1}catch(r){}var mo=require("obsidian"),hv=ze(Qr());var Zg=/*#__PURE__*/function(){"use strict";function Zg1(){_class_call_check(this,Zg1);this.keyToValue=new Map,this.valueToKey=new Map}_create_class(Zg1,[{key:"set",value:function set(e,t){this.keyToValue.set(e,t),this.valueToKey.set(t,e)}},{key:"getByKey",value:function getByKey(e){return this.keyToValue.get(e)}},{key:"getByValue",value:function getByValue(e){return this.valueToKey.get(e)}},{key:"clear",value:function clear(){this.keyToValue.clear(),this.valueToKey.clear()}}]);return Zg1}();var Wc=/*#__PURE__*/function(){"use strict";function Wc1(e){_class_call_check(this,Wc1);this.generateIdentifier=e,this.kv=new Zg}_create_class(Wc1,[{key:"register",value:function register(e,t){this.kv.getByValue(e)||(t||(t=this.generateIdentifier(e)),this.kv.set(t,e))}},{key:"clear",value:function clear(){this.kv.clear()}},{key:"getIdentifier",value:function getIdentifier(e){return this.kv.getByValue(e)}},{key:"getValue",value:function getValue(e){return this.kv.getByKey(e)}}]);return Wc1}();var ev=/*#__PURE__*/function(Wc1){"use strict";_inherits(ev1,Wc1);function ev1(){_class_call_check(this,ev1);var _this;_this=_call_super(this,ev1,[function(e){return e.name}]),_this.classToAllowedProps=new Map;return _this}_create_class(ev1,[{key:"register",value:function register(e,t){(typeof t==="undefined"?"undefined":_type_of(t))=="object"?(t.allowProps&&this.classToAllowedProps.set(e,t.allowProps),_get(_get_prototype_of(ev1.prototype),"register",this).call(this,e,t.identifier)):_get(_get_prototype_of(ev1.prototype),"register",this).call(this,e,t)}},{key:"getAllowedProps",value:function getAllowedProps(e){return this.classToAllowedProps.get(e)}}]);return ev1}(Wc);function HJe(r){if("values"in Object)return Object.values(r);var e=[];for(var t in r)r.hasOwnProperty(t)&&e.push(r[t]);return e}function eJ(r,e){var t=HJe(r);if("find"in t)return t.find(e);var n=t;for(var i=0;i<n.length;i++){var a=n[i];if(e(a))return a}}function Ss(r,e){Object.entries(r).forEach(function(param){var _param=_sliced_to_array(param,2),t=_param[0],n=_param[1];return e(n,t)})}function Mc(r,e){return r.indexOf(e)!==-1}function Uq(r,e){for(var t=0;t<r.length;t++){var n=r[t];if(e(n))return n}}var rv=/*#__PURE__*/function(){"use strict";function rv1(){_class_call_check(this,rv1);this.transfomers={}}_create_class(rv1,[{key:"register",value:function register(e){this.transfomers[e.name]=e}},{key:"findApplicable",value:function findApplicable(e){return eJ(this.transfomers,function(t){return t.isApplicable(e)})}},{key:"findByName",value:function findByName(e){return this.transfomers[e]}}]);return rv1}();var QJe=function(r){return Object.prototype.toString.call(r).slice(8,-1)},jq=function(r){return typeof r=="undefined"},XJe=function(r){return r===null},Es=function(r){return(typeof r==="undefined"?"undefined":_type_of(r))!="object"||r===null||r===Object.prototype?!1:Object.getPrototypeOf(r)===null?!0:Object.getPrototypeOf(r)===Object.prototype},tv=function(r){return Es(r)&&Object.keys(r).length===0},Hn=function(r){return Array.isArray(r)},YJe=function(r){return typeof r=="string"},JJe=function(r){return typeof r=="number"&&!isNaN(r)},ZJe=function(r){return typeof r=="boolean"},rJ=function(r){return _instanceof(r,RegExp)},ho=function(r){return _instanceof(r,Map)},xo=function(r){return _instanceof(r,Set)},$q=function(r){return QJe(r)==="Symbol"},tJ=function(r){return _instanceof(r,Date)&&!isNaN(r.valueOf())},nv=function(r){return _instanceof(r,Error)},Vq=function(r){return typeof r=="number"&&isNaN(r)},nJ=function(r){return ZJe(r)||XJe(r)||jq(r)||JJe(r)||YJe(r)||$q(r)},iJ=function(r){return(typeof r==="undefined"?"undefined":_type_of(r))=="bigint"},aJ=function(r){return r===1/0||r===-1/0},oJ=function(r){return ArrayBuffer.isView(r)&&!_instanceof(r,DataView)},sJ=function(r){return _instanceof(r,URL)};var iv=function(r){return r.replace(/\\/g,"\\\\").replace(/\./g,"\\.")},av=function(r){return r.map(String).map(iv).join(".")},Fc=function(r,e){var t=[],n="";for(var a=0;a<r.length;a++){var o=r.charAt(a);if(!e&&o==="\\"){var c=r.charAt(a+1);if(c==="\\"){n+="\\",a++;continue}else if(c!==".")throw Error("invalid path")}if(o==="\\"&&r.charAt(a+1)==="."){n+=".",a++;continue}if(o==="."){t.push(n),n="";continue}n+=o}var i=n;return t.push(i),t};function wi(r,e,t,n){return{isApplicable:r,annotation:e,transform:t,untransform:n}}var uJ=[wi(jq,"undefined",function(){return null},function(){}),wi(iJ,"bigint",function(r){return r.toString()},function(r){return typeof BigInt!="undefined"?BigInt(r):(console.error("Please add a BigInt polyfill."),r)}),wi(tJ,"Date",function(r){return r.toISOString()},function(r){return new Date(r)}),wi(nv,"Error",function(r,e){var t={name:r.name,message:r.message};return"cause"in r&&(t.cause=r.cause),e.allowedErrorProps.forEach(function(n){t[n]=r[n]}),t},function(r,e){var t=new Error(r.message,{cause:r.cause});return t.name=r.name,t.stack=r.stack,e.allowedErrorProps.forEach(function(n){t[n]=r[n]}),t}),wi(rJ,"regexp",function(r){return""+r},function(r){var e=r.slice(1,r.lastIndexOf("/")),t=r.slice(r.lastIndexOf("/")+1);return new RegExp(e,t)}),wi(xo,"set",function(r){return _to_consumable_array(r.values())},function(r){return new Set(r)}),wi(ho,"map",function(r){return _to_consumable_array(r.entries())},function(r){return new Map(r)}),wi(function(r){return Vq(r)||aJ(r)},"number",function(r){return Vq(r)?"NaN":r>0?"Infinity":"-Infinity"},Number),wi(function(r){return r===0&&1/r===-1/0},"number",function(){return"-0"},Number),wi(sJ,"URL",function(r){return r.toString()},function(r){return new URL(r)})];function ov(r,e,t,n){return{isApplicable:r,annotation:e,transform:t,untransform:n}}var cJ=ov(function(r,e){return $q(r)?!!e.symbolRegistry.getIdentifier(r):!1},function(r,e){return["symbol",e.symbolRegistry.getIdentifier(r)]},function(r){return r.description},function(r,e,t){var n=t.symbolRegistry.getValue(e[1]);if(!n)throw new Error("Trying to deserialize unknown symbol");return n}),eZe=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce(function(r,e){return r[e.name]=e,r},{}),lJ=ov(oJ,function(r){return["typed-array",r.constructor.name]},function(r){return _to_consumable_array(r)},function(r,e){var t=eZe[e[1]];if(!t)throw new Error("Trying to deserialize unknown typed array");return new t(r)});function Gq(r,e){return r!=null&&r.constructor?!!e.classRegistry.getIdentifier(r.constructor):!1}var fJ=ov(Gq,function(r,e){return["class",e.classRegistry.getIdentifier(r.constructor)]},function(r,e){var t=e.classRegistry.getAllowedProps(r.constructor);if(!t)return j({},r);var n={};return t.forEach(function(i){n[i]=r[i]}),n},function(r,e,t){var n=t.classRegistry.getValue(e[1]);if(!n)throw new Error("Trying to deserialize unknown class '".concat(e[1],"' - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564"));return Object.assign(Object.create(n.prototype),r)}),dJ=ov(function(r,e){return!!e.customTransformerRegistry.findApplicable(r)},function(r,e){return["custom",e.customTransformerRegistry.findApplicable(r).name]},function(r,e){return e.customTransformerRegistry.findApplicable(r).serialize(r)},function(r,e,t){var n=t.customTransformerRegistry.findByName(e[1]);if(!n)throw new Error("Trying to deserialize unknown custom value");return n.deserialize(r)}),rZe=[fJ,cJ,dJ,lJ],zq=function(r,e){var t=Uq(rZe,function(i){return i.isApplicable(r,e)});if(t)return{value:t.transform(r,e),type:t.annotation(r,e)};var n=Uq(uJ,function(i){return i.isApplicable(r,e)});if(n)return{value:n.transform(r,e),type:n.annotation}},pJ={};uJ.forEach(function(r){pJ[r.annotation]=r});var hJ=function(r,e,t){if(Hn(e))switch(e[0]){case"symbol":return cJ.untransform(r,e,t);case"class":return fJ.untransform(r,e,t);case"custom":return dJ.untransform(r,e,t);case"typed-array":return lJ.untransform(r,e,t);default:throw new Error("Unknown transformation: "+e)}else{var n=pJ[e];if(!n)throw new Error("Unknown transformation: "+e);return n.untransform(r,t)}};var Bc=function(r,e){if(e>r.size)throw new Error("index out of bounds");var t=r.keys();for(;e>0;)t.next(),e--;return t.next().value};function xJ(r){if(Mc(r,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(Mc(r,"prototype"))throw new Error("prototype is not allowed as a property");if(Mc(r,"constructor"))throw new Error("constructor is not allowed as a property")}var gJ=function(r,e){xJ(e);for(var t=0;t<e.length;t++){var n=e[t];if(xo(r))r=Bc(r,+n);else if(ho(r)){var i=+n,a=+e[++t]==0?"key":"value",o=Bc(r,i);switch(a){case"key":r=o;break;case"value":r=r.get(o);break}}else r=r[n]}return r},sv=function(r,e,t){if(xJ(e),e.length===0)return t(r);var n=r;for(var a=0;a<e.length-1;a++){var o=e[a];if(Hn(n)){var s=+o;n=n[s]}else if(Es(n))n=n[o];else if(xo(n)){var s1=+o;n=Bc(n,s1)}else if(ho(n)){if(a===e.length-2)break;var u=+o,c=+e[++a]==0?"key":"value",l=Bc(n,u);switch(c){case"key":n=l;break;case"value":n=n.get(l);break}}}var i=e[e.length-1];if(Hn(n)?n[+i]=t(n[+i]):Es(n)&&(n[i]=t(n[i])),xo(n)){var a2=Bc(n,+i),o1=t(a2);a2!==o1&&(n.delete(a2),n.add(o1))}if(ho(n)){var a4=+e[e.length-2],o2=Bc(n,a4);switch(+i==0?"key":"value"){case"key":{var u1=t(o2);n.set(u1,n.get(o2)),u1!==o2&&n.delete(o2);break}case"value":{n.set(o2,t(n.get(o2)));break}}}return r};var vJ=function(r){return r<1};function Kq(r,e,t){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[];if(!r)return;var i=vJ(t);if(!Hn(r)){Ss(r,function(s,u){return Kq(s,e,t,_to_consumable_array(n).concat(_to_consumable_array(Fc(u,i))))});return}var _r=_sliced_to_array(r,2),a=_r[0],o=_r[1];o&&Ss(o,function(s,u){Kq(s,e,t,_to_consumable_array(n).concat(_to_consumable_array(Fc(u,i))))}),e(a,n)}function mJ(r,e,t,n){return Kq(e,function(i,a){r=sv(r,a,function(o){return hJ(o,i,n)})},t),r}function yJ(r,e,t){var n=vJ(t);function i(a,o){var s=gJ(r,Fc(o,n));a.map(function(u){return Fc(u,n)}).forEach(function(u){r=sv(r,u,function(){return s})})}if(Hn(e)){var _e=_sliced_to_array(e,2),a=_e[0],o=_e[1];a.forEach(function(s){r=sv(r,Fc(s,n),function(){return r})}),o&&Ss(o,i)}else Ss(e,i);return r}var tZe=function(r,e){return Es(r)||Hn(r)||ho(r)||xo(r)||nv(r)||Gq(r,e)};function nZe(r,e,t){var n=t.get(r);n?n.push(e):t.set(r,[e])}function bJ(r,e){var t={},n;return r.forEach(function(i){if(i.length<=1)return;e||(i=i.map(function(s){return s.map(String)}).sort(function(s,u){return s.length-u.length}));var _i1=_to_array(i),a=_i1[0],o=_i1.slice(1);a.length===0?n=o.map(av):t[av(a)]=o.map(av)}),n?tv(t)?[n]:[n,t]:tv(t)?void 0:t}var Hq=function(r,e,t,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:[],o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:new Map;var p;var s=nJ(r);if(!s){nZe(r,i,e);var x=o.get(r);if(x)return n?{transformedValue:null}:x}if(!tZe(r,t)){var x2=zq(r,t),h=x2?{transformedValue:x2.value,annotations:[x2.type]}:{transformedValue:r};return s||o.set(r,h),h}if(Mc(a,r))return{transformedValue:null};var u=zq(r,t),c=(p=u==null?void 0:u.value)!=null?p:r,l=Hn(c)?[]:{},f={};Ss(c,function(x,h){if(h==="__proto__"||h==="constructor"||h==="prototype")throw new Error("Detected property ".concat(h,". This is a prototype pollution risk, please remove it from your object."));var v=Hq(x,e,t,n,_to_consumable_array(i).concat([h]),_to_consumable_array(a).concat([r]),o);l[h]=v.transformedValue,Hn(v.annotations)?f[iv(h)]=v.annotations:Es(v.annotations)&&Ss(v.annotations,function(y,m){f[iv(h)+"."+m]=y})});var d=tv(f)?{transformedValue:l,annotations:u?[u.type]:void 0}:{transformedValue:l,annotations:u?[u.type,f]:f};return s||o.set(r,d),d};function uv(r){return Object.prototype.toString.call(r).slice(8,-1)}function cv(r){return uv(r)==="Array"}function Qq(r){if(uv(r)!=="Object")return!1;var e=Object.getPrototypeOf(r);return!!e&&e.constructor===Object&&e===Object.prototype}function iZe(r,e,t,n,i){var a=({}).propertyIsEnumerable.call(n,e)?"enumerable":"nonenumerable";a==="enumerable"&&(r[e]=t),i&&a==="nonenumerable"&&Object.defineProperty(r,e,{value:t,enumerable:!1,writable:!0,configurable:!0})}function lv(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(cv(r))return r.map(function(i){return lv(i,e)});if(!Qq(r))return r;var t=Object.getOwnPropertyNames(r),n=Object.getOwnPropertySymbols(r);return _to_consumable_array(t).concat(_to_consumable_array(n)).reduce(function(i,a){if(a==="__proto__"||cv(e.props)&&!e.props.includes(a))return i;var o=r[a],s=lv(o,e);return iZe(i,a,s,r,e.nonenumerable),i},{})}var Fe=/*#__PURE__*/function(){"use strict";function Fe1(){var _ref=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},tmp=_ref.dedupe,e=tmp===void 0?!1:tmp;_class_call_check(this,Fe1);this.classRegistry=new ev,this.symbolRegistry=new Wc(function(t){var n;return(n=t.description)!=null?n:""}),this.customTransformerRegistry=new rv,this.allowedErrorProps=[],this.dedupe=e}_create_class(Fe1,[{key:"serialize",value:function serialize(e){var t=new Map,n=Hq(e,t,this,this.dedupe),i={json:n.transformedValue};n.annotations&&(i.meta=Se(j({},i.meta),{values:n.annotations}));var a=bJ(t,this.dedupe);return a&&(i.meta=Se(j({},i.meta),{referentialEqualities:a})),i.meta&&(i.meta.v=1),i}},{key:"deserialize",value:function deserialize(e,t){var o,s;var n=e.json,i=e.meta,a=t!=null&&t.inPlace?n:lv(n);return i!=null&&i.values&&(a=mJ(a,i.values,(o=i.v)!=null?o:0,this)),i!=null&&i.referentialEqualities&&(a=yJ(a,i.referentialEqualities,(s=i.v)!=null?s:0)),a}},{key:"stringify",value:function stringify(e){return JSON.stringify(this.serialize(e))}},{key:"parse",value:function parse(e){return this.deserialize(JSON.parse(e),{inPlace:!0})}},{key:"registerClass",value:function registerClass(e,t){this.classRegistry.register(e,t)}},{key:"registerSymbol",value:function registerSymbol(e,t){this.symbolRegistry.register(e,t)}},{key:"registerCustom",value:function registerCustom(e,t){this.customTransformerRegistry.register(j({name:t},e))}},{key:"allowErrorProps",value:function allowErrorProps(){for(var _len=arguments.length,e=new Array(_len),_key=0;_key<_len;_key++){e[_key]=arguments[_key]}var _this_allowedErrorProps;(_this_allowedErrorProps=this.allowedErrorProps).push.apply(_this_allowedErrorProps,_to_consumable_array(e))}}]);return Fe1}();Fe.defaultInstance=new Fe;Fe.serialize=Fe.defaultInstance.serialize.bind(Fe.defaultInstance);Fe.deserialize=Fe.defaultInstance.deserialize.bind(Fe.defaultInstance);Fe.stringify=Fe.defaultInstance.stringify.bind(Fe.defaultInstance);Fe.parse=Fe.defaultInstance.parse.bind(Fe.defaultInstance);Fe.registerClass=Fe.defaultInstance.registerClass.bind(Fe.defaultInstance);Fe.registerSymbol=Fe.defaultInstance.registerSymbol.bind(Fe.defaultInstance);Fe.registerCustom=Fe.defaultInstance.registerCustom.bind(Fe.defaultInstance);Fe.allowErrorProps=Fe.defaultInstance.allowErrorProps.bind(Fe.defaultInstance);var Xq=Fe;var rCr=Fe.serialize,tCr=Fe.deserialize,nCr=Fe.stringify,iCr=Fe.parse,aCr=Fe.registerClass,oCr=Fe.registerCustom,sCr=Fe.registerSymbol,uCr=Fe.allowErrorProps;var ZJ=ze(dv());var pv=ze(Qr());cs();Pr();id();function ver(r){var e=r.match(/<([^>]+)>;\s*rel="next"/);return e?e[1]:null}function mer(r,e){var o;var t=e.propstat.prop,n=!$n((o=t.resourcetype)==null?void 0:o.collection),i=decodeURIComponent(e.href),a=r==="/"?i:(0,pv.join)("/",i.replace(r,""));return{filename:a,basename:(0,pv.basename)(a),lastmod:t.getlastmodified||"",size:t.getcontentlength?parseInt(t.getcontentlength,10):0,type:n?"directory":"file",etag:null,mime:t.getcontenttype}}function Uc(r,e){return D(this,null,function(){var t,n,_t1,_$i,o,s,u,c,l,i;return _ts_generator(this,function(_state){switch(_state.label){case 0:t=[];e=e.split("/").map(encodeURIComponent).join("/"),e.startsWith("/")||(e="/"+e);n="".concat(us).concat(e);_state.label=1;case 1:_state.trys.push([1,3,,6]);return[4,fi({url:n,method:"PROPFIND",headers:{Authorization:"Basic ".concat(r),"Content-Type":"application/xml",Depth:"1"},body:'<?xml version="1.0" encoding="utf-8"?>\n <propfind xmlns="DAV:">\n <prop>\n <displayname/>\n <resourcetype/>\n <getlastmodified/>\n <getcontentlength/>\n <getcontenttype/>\n </prop>\n </propfind>'})];case 2:_$i=_state.sent(),o=new ZJ.XMLParser({attributeNamePrefix:"",removeNSPrefix:!0,parseTagValue:!1,numberParseOptions:{eNotation:!1,hex:!0,leadingZeros:!0}}).parse(_$i.text),s=Array.isArray(o.multistatus.response)?o.multistatus.response:[o.multistatus.response];(_t1=t).push.apply(_t1,_to_consumable_array(s.slice(1).map(Rd(mer,"/dav"))));u=_$i.headers.link||_$i.headers.Link;if(!u)return[3,7];c=ver(u);if(!c)return[3,7];l=new URL(c);l.pathname=decodeURI(l.pathname),n=l.toString();return[3,6];case 3:i=_state.sent();if(!ra(i))return[3,5];ce.error("503 error, retrying...");return[4,sleep(6e4)];case 4:_state.sent();return[3,6];case 5:throw i;case 6:return[3,1];case 7:return[2,t]}})})}var eZ=Object.freeze({ignoreUnknown:!1,respectType:!1,respectFunctionNames:!1,respectFunctionProperties:!1,unorderedObjects:!0,unorderedArrays:!1,unorderedSets:!1,excludeKeys:void 0,excludeValues:void 0,replacer:void 0});function Fd(r,e){e?e=j(j({},eZ),e):e=eZ;var t=tZ(e);return t.dispatch(r),t.toString()}var yer=Object.freeze(["prototype","__proto__","constructor"]);function tZ(r){var e="",t=new Map,n=function(i){e+=i};return{toString:function toString(){return e},getContext:function getContext(){return t},dispatch:function dispatch(i){return r.replacer&&(i=r.replacer(i)),this[i===null?"null":typeof i==="undefined"?"undefined":_type_of(i)](i)},object:function object(i){var _this=this;if(i&&typeof i.toJSON=="function")return this.object(i.toJSON());var a=Object.prototype.toString.call(i),o="",s=a.length;s<10?o="unknown:["+a+"]":o=a.slice(8,s-1),o=o.toLowerCase();var u=null;if((u=t.get(i))===void 0)t.set(i,t.size);else return this.dispatch("[CIRCULAR:"+u+"]");if(typeof Buffer!="undefined"&&Buffer.isBuffer&&Buffer.isBuffer(i))return n("buffer:"),n(i.toString("utf8"));if(o!=="object"&&o!=="function"&&o!=="asyncfunction")this[o]?this[o](i):r.ignoreUnknown||this.unkown(i,o);else{var c=Object.keys(i);r.unorderedObjects&&(c=c.sort());var l=[];r.respectType!==!1&&!rZ(i)&&(l=yer),r.excludeKeys&&(c=c.filter(function(d){return!r.excludeKeys(d)}),l=l.filter(function(d){return!r.excludeKeys(d)})),n("object:"+(c.length+l.length)+":");var f=function(d){_this.dispatch(d),n(":"),r.excludeValues||_this.dispatch(i[d]),n(",")};var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;try{for(var _iterator=c[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var d=_step.value;f(d)}}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}var _iteratorNormalCompletion1=true,_didIteratorError1=false,_iteratorError1=undefined;try{for(var _iterator1=l[Symbol.iterator](),_step1;!(_iteratorNormalCompletion1=(_step1=_iterator1.next()).done);_iteratorNormalCompletion1=true){var d2=_step1.value;f(d2)}}catch(err1){_didIteratorError1=true;_iteratorError1=err1}finally{try{if(!_iteratorNormalCompletion1&&_iterator1.return!=null){_iterator1.return()}}finally{if(_didIteratorError1){throw _iteratorError1}}}}},array:function array(i,a){if(a=a===void 0?r.unorderedArrays!==!1:a,n("array:"+i.length+":"),!a||i.length<=1){var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;try{for(var _iterator=i[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var u=_step.value;this.dispatch(u)}}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}return}var o=new Map,s=i.map(function(u){var c=tZ(r);c.dispatch(u);var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;try{for(var _iterator=c.getContext()[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var _step_value=_sliced_to_array(_step.value,2),l=_step_value[0],f=_step_value[1];o.set(l,f)}}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}return c.toString()});return t=o,s.sort(),this.array(s,!1)},date:function date(i){return n("date:"+i.toJSON())},symbol:function symbol(i){return n("symbol:"+i.toString())},unkown:function unkown(i,a){if(n(a),!!i&&(n(":"),i&&typeof i.entries=="function"))return this.array(Array.from(i.entries()),!0)},error:function error(i){return n("error:"+i.toString())},boolean:function boolean(i){return n("bool:"+i)},string:function string(i){n("string:"+i.length+":"),n(i)},function:function _function(i){n("fn:"),rZ(i)?this.dispatch("[native]"):this.dispatch(i.toString()),r.respectFunctionNames!==!1&&this.dispatch("function-name:"+String(i.name)),r.respectFunctionProperties&&this.object(i)},number:function number(i){return n("number:"+i)},xml:function xml(i){return n("xml:"+i.toString())},null:function _null(){return n("Null")},undefined:function undefined1(){return n("Undefined")},regexp:function regexp(i){return n("regex:"+i.toString())},uint8array:function uint8array(i){return n("uint8array:"),this.dispatch(Array.prototype.slice.call(i))},uint8clampedarray:function uint8clampedarray(i){return n("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(i))},int8array:function int8array(i){return n("int8array:"),this.dispatch(Array.prototype.slice.call(i))},uint16array:function uint16array(i){return n("uint16array:"),this.dispatch(Array.prototype.slice.call(i))},int16array:function int16array(i){return n("int16array:"),this.dispatch(Array.prototype.slice.call(i))},uint32array:function uint32array(i){return n("uint32array:"),this.dispatch(Array.prototype.slice.call(i))},int32array:function int32array(i){return n("int32array:"),this.dispatch(Array.prototype.slice.call(i))},float32array:function float32array(i){return n("float32array:"),this.dispatch(Array.prototype.slice.call(i))},float64array:function float64array(i){return n("float64array:"),this.dispatch(Array.prototype.slice.call(i))},arraybuffer:function arraybuffer(i){return n("arraybuffer:"),this.dispatch(new Uint8Array(i))},url:function url(i){return n("url:"+i.toString())},map:function map(i){n("map:");var a=_to_consumable_array(i);return this.array(a,r.unorderedSets!==!1)},set:function set(i){n("set:");var a=_to_consumable_array(i);return this.array(a,r.unorderedSets!==!1)},file:function file(i){return n("file:"),this.dispatch([i.name,i.size,i.type,i.lastModfied])},blob:function blob(){if(r.ignoreUnknown)return n("[blob]");throw new Error('Hashing Blob objects is currently not supported\nUse "options.replacer" or "options.ignoreUnknown"\n')},domwindow:function domwindow(){return n("domwindow")},bigint:function bigint(i){return n("bigint:"+i.toString())},process:function process1(){return n("process")},timer:function timer(){return n("timer")},pipe:function pipe(){return n("pipe")},tcp:function tcp(){return n("tcp")},udp:function udp(){return n("udp")},tty:function tty(){return n("tty")},statwatcher:function statwatcher(){return n("statwatcher")},securecontext:function securecontext(){return n("securecontext")},connection:function connection(){return n("connection")},zlib:function zlib(){return n("zlib")},context:function context(){return n("context")},nodescript:function nodescript(){return n("nodescript")},httpparser:function httpparser(){return n("httpparser")},dataview:function dataview(){return n("dataview")},signal:function signal(){return n("signal")},fsevent:function fsevent(){return n("fsevent")},tlswrap:function tlswrap(){return n("tlswrap")}}}var nZ="[native code] }",ber=nZ.length;function rZ(r){return typeof r!="function"?!1:Function.prototype.toString.call(r).slice(-ber)===nZ}function oT(r,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return r===e||Fd(r,t)===Fd(e,t)}var iZ=ze(Qr());function Et(r){return r.startsWith("/")||(r="/".concat(r)),r.endsWith("/")||(r="".concat(r,"/")),(0,iZ.normalize)(r)}function vo(r,e){return Fd({vaultName:r,remoteBaseDir:Et(e)})}Pr();function aZ(r){return r.buffer.byteLength===r.byteLength&&r.byteOffset===0?r.buffer:r.buffer.slice(r.byteOffset,r.byteOffset+r.byteLength)}var Ts=/*#__PURE__*/function(){"use strict";function Ts1(e,t){_class_call_check(this,Ts1);this.plugin=e;this.remoteCacheDir=t}_create_class(Ts1,[{key:"key",get:function get(){return vo(this.plugin.app.vault.getName(),this.plugin.remoteBaseDir)}},{key:"saveCache",value:function saveCache(e){return D(this,null,function(){var _$t,n,i,a,o,s,u,t;return _ts_generator(this,function(_state){switch(_state.label){case 0:_state.trys.push([0,5,,6]);return[4,this.plugin.webDAVService.createWebDAVClient()];case 1:_$t=_state.sent();return[4,bi.get(this.key)];case 2:n=_state.sent();if(!n)throw new Error("No cache data to save");i={deltaCache:n,exportedAt:new Date().toISOString()},a=Xq.stringify(i);if(!a||a.length===0)throw new Error("Cache data serialization failed");o=new TextEncoder,s=JY(o.encode(a),{level:9}),u=(0,hv.join)(this.remoteCacheDir,e);return[4,_$t.createDirectory(this.remoteCacheDir,{recursive:!0})];case 3:_state.sent();return[4,_$t.putFileContents(u,aZ(s),{overwrite:!0})];case 4:return[2,(_state.sent(),new mo.Notice(P.t("settings.cache.saveModal.success")),Promise.resolve())];case 5:t=_state.sent();return[2,(ce.error("Error saving cache:",t),new mo.Notice(P.t("settings.cache.saveModal.error",{message:t.message})),Promise.reject(t))];case 6:return[2]}})})}},{key:"restoreCache",value:function restoreCache(e){return D(this,null,function(){var _$t,n,a,o,u,c,l,t;return _ts_generator(this,function(_state){switch(_state.label){case 0:_state.trys.push([0,5,,6]);return[4,this.plugin.webDAVService.createWebDAVClient()];case 1:_$t=_state.sent(),n=(0,hv.join)(this.remoteCacheDir,e);return[4,_$t.exists(n).catch(function(){return!1})];case 2:if(!_state.sent())return[2,(new mo.Notice(P.t("settings.cache.restoreModal.fileNotFound")),Promise.reject(new Error("File not found")))];return[4,_$t.getFileContents(n,{format:"binary"})];case 3:a=_state.sent();if(!a||a.byteLength===0)throw new Error("Cache file is empty");o=ZY(new Uint8Array(a));if(!o||o.length===0)throw new Error("Inflate failed or resulted in empty content");u=new TextDecoder().decode(o);if(!u||u.trim()==="")throw new Error("Cache file content is invalid or empty");c=Xq.parse(u);if(!c||!c.deltaCache)throw new Error("Invalid cache file format");l=c.deltaCache;return[4,bi.set(this.key,l)];case 4:return[2,(_state.sent(),new mo.Notice(P.t("settings.cache.restoreModal.success")),Promise.resolve())];case 5:t=_state.sent();return[2,(ce.error("Error restoring cache:",t),new mo.Notice(P.t("settings.cache.restoreModal.error",{message:t.message})),Promise.reject(t))];case 6:return[2]}})})}},{key:"deleteCache",value:function deleteCache(e){return D(this,null,function(){var _$t,n,t;return _ts_generator(this,function(_state){switch(_state.label){case 0:_state.trys.push([0,3,,4]);return[4,this.plugin.webDAVService.createWebDAVClient()];case 1:_$t=_state.sent(),n=(0,hv.join)(this.remoteCacheDir,e);return[4,_$t.deleteFile(n)];case 2:return[2,(_state.sent(),new mo.Notice(P.t("settings.cache.restoreModal.deleteSuccess")),Promise.resolve())];case 3:t=_state.sent();return[2,(ce.error("Error deleting cache file:",t),new mo.Notice(P.t("settings.cache.restoreModal.deleteError",{message:t.message})),Promise.reject(t))];case 4:return[2]}})})}},{key:"loadCacheFileList",value:function loadCacheFileList(){return D(this,null,function(){var _$e1,_tmp,e;return _ts_generator(this,function(_state){switch(_state.label){case 0:_state.trys.push([0,8,,9]);return[4,this.plugin.webDAVService.createWebDAVClient()];case 1:_$e1=_state.sent();return[4,_$e1.exists(this.remoteCacheDir).catch(function(){return!1})];case 2:if(!_state.sent())return[3,5];return[4,this.plugin.getToken()];case 3:return[4,Uc.apply(void 0,[_state.sent(),this.remoteCacheDir])];case 4:_tmp=_state.sent().map(lo);return[3,7];case 5:return[4,_$e1.createDirectory(this.remoteCacheDir,{recursive:!0})];case 6:_tmp=(_state.sent(),[]);_state.label=7;case 7:return[2,_tmp];case 8:e=_state.sent();throw ce.error("Error loading cache file list:",e),e;case 9:return[2]}})})}}]);return Ts1}();Pr();var Ud=/*#__PURE__*/function(_Bd_Modal){"use strict";_inherits(Ud1,_Bd_Modal);function Ud1(t,n,i){_class_call_check(this,Ud1);var _this;_this=_call_super(this,Ud1,[t.app]);_this.plugin=t;_this.remoteCacheDir=n;_this.onSuccess=i;_this.files=[];_this.cacheService=new Ts(t,n);return _this}_create_class(Ud1,[{key:"onOpen",value:function onOpen(){return D(this,null,function(){var _this,_this1,t;return _ts_generator(this,function(_state){switch(_state.label){case 0:_this=this;_this1=this,t=_this1.contentEl;new Bd.Setting(t).setName(P.t("settings.cache.restoreModal.title")).setDesc(P.t("settings.cache.restoreModal.description")),this.fileList=t.createDiv({cls:"max-h-50vh overflow-y-auto pb-2 flex flex-col"});return[4,this.loadFileList()];case 1:_state.sent(),new Bd.Setting(t).addButton(function(n){n.setButtonText(P.t("settings.cache.restoreModal.refresh")).onClick(function(){return D(_this,null,function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,this.loadFileList()];case 1:_state.sent();return[2]}})})})}).addButton(function(n){n.setButtonText(P.t("settings.cache.restoreModal.close")).onClick(function(){_this.close()})});return[2]}})})}},{key:"loadFileList",value:function loadFileList(){return D(this,null,function(){var _this,_,t;return _ts_generator(this,function(_state){switch(_state.label){case 0:_this=this;_state.label=1;case 1:_state.trys.push([1,3,,4]);_=this;return[4,this.cacheService.loadCacheFileList()];case 2:if(_.files=_state.sent(),this.files.length===0){this.renderEmptyList();return[2]}this.fileList.empty(),this.files.forEach(function(param){var _$t=param.basename;var n=_this.fileList.createDiv({cls:"flex justify-between items-center py-2"});n.createSpan({text:_$t,cls:"flex-1 break-all mr-2"});var i=n.createDiv({cls:"flex gap-2"});i.createEl("button",{text:P.t("settings.cache.restoreModal.restore"),cls:"mod-cta"}).addEventListener("click",function(){return D(_this,null,function(){var u,c;return _ts_generator(this,function(_state){switch(_state.label){case 0:_state.trys.push([0,2,,3]);return[4,this.cacheService.restoreCache(_$t)];case 1:_state.sent(),(u=this.onSuccess)==null||u.call(this),this.close();return[3,3];case 2:c=_state.sent();return[3,3];case 3:return[2]}})})});var o=!1,s=i.createEl("button",{text:P.t("settings.cache.restoreModal.delete"),cls:"transition"});s.addEventListener("click",function(){return D(_this,null,function(){var u;return _ts_generator(this,function(_state){switch(_state.label){case 0:if(!o)return[3,6];_state.label=1;case 1:_state.trys.push([1,4,,5]);return[4,this.cacheService.deleteCache(_$t)];case 2:_state.sent();return[4,this.loadFileList()];case 3:_state.sent();return[3,5];case 4:u=_state.sent();return[3,5];case 5:return[3,7];case 6:o=!0,s.setText(P.t("settings.cache.restoreModal.deleteConfirm")),s.classList.add("mod-warning");_state.label=7;case 7:return[2]}})})}),s.addEventListener("blur",function(){o=!1,s.setText(P.t("settings.cache.restoreModal.delete")),s.classList.remove("mod-warning")})});return[3,4];case 3:t=_state.sent();ce.error("Error loading cache file list:",t),this.fileList.empty(),this.fileList.createEl("p",{text:P.t("settings.cache.restoreModal.loadError",{message:t.message}),cls:"p-12px text-center text-[var(--text-error)]"});return[3,4];case 4:return[2]}})})}},{key:"renderEmptyList",value:function renderEmptyList(){this.fileList.empty(),this.fileList.createEl("p",{text:P.t("settings.cache.restoreModal.noFiles"),cls:"p-12px text-center"})}},{key:"onClose",value:function onClose(){var _this=this,t=_this.contentEl;t.empty()}}]);return Ud1}(Bd.Modal);var jc=require("obsidian");var jd=/*#__PURE__*/function(_jc_Modal){"use strict";_inherits(jd1,_jc_Modal);function jd1(t,n,i){_class_call_check(this,jd1);var _this;_this=_call_super(this,jd1,[t.app]);_this.plugin=t;_this.remoteCacheDir=n;_this.onSuccess=i;_this.cacheService=new Ts(t,n);return _this}_create_class(jd1,[{key:"onOpen",value:function onOpen(){var _this=this;var _this1=this,t=_this1.contentEl;t.createEl("h2",{text:P.t("settings.cache.saveModal.title")}),t.createEl("p",{text:P.t("settings.cache.saveModal.description"),cls:"setting-item-description"});var n="".concat(this.plugin.app.vault.getName(),".").concat((0,jc.moment)().format("YYYY-MM-DD HH_mm_ss"),".SyncCache"),a=t.createDiv().createEl("input",{cls:"w-full",type:"text",value:n});new jc.Setting(t).addButton(function(o){o.setButtonText(P.t("settings.cache.saveModal.save")).setCta().onClick(function(){return D(_this,null,function(){var s,u,u1;return _ts_generator(this,function(_state){switch(_state.label){case 0:_state.trys.push([0,2,,3]);u=a.value;u.endsWith(".v1")||(u+=".v1");return[4,this.cacheService.saveCache(u)];case 1:_state.sent(),(s=this.onSuccess)==null||s.call(this),this.close();return[3,3];case 2:u1=_state.sent();return[3,3];case 3:return[2]}})})})}).addButton(function(o){o.setButtonText(P.t("settings.cache.saveModal.cancel")).onClick(function(){_this.close()})})}},{key:"onClose",value:function onClose(){var _this=this,t=_this.contentEl;t.empty()}}]);return jd1}(jc.Modal);var GZ=require("obsidian");var Je={context:void 0,registry:void 0,effects:void 0,done:!1,getContextId:function getContextId(){return oZ(this.context.count)},getNextContextId:function getNextContextId(){return oZ(this.context.count++)}};function oZ(r){var e=String(r),t=e.length-1;return Je.context.id+(t?String.fromCharCode(96+t):"")+e}function uT(r){Je.context=r}function _er(){return Se(j({},Je.context),{id:Je.getNextContextId(),count:0})}var wer=!1,Ser=function(r,e){return r===e},c6r=Symbol("solid-proxy");var Eer=Symbol("solid-track"),l6r=Symbol("solid-dev-component"),gv={equals:Ser},sZ=null,pZ=bZ,cn=1,Vd=2,hZ={owned:null,cleanups:null,context:null,owner:null},sT={},Ue=null,ie=null,Gc=null,$c=null,ar=null,jr=null,qt=null,mv=0;function $d(r,e){var t=ar,n=Ue,i=r.length===0,a=e===void 0?n:e,o=i?hZ:{owned:null,cleanups:null,context:a?a.context:null,owner:a},s=i?r:function(){return r(function(){return Rn(function(){return yo(o)})})};Ue=o,ar=null;try{return un(s,!0)}finally{ar=t,Ue=n}}function ot(r,e){e=e?Object.assign({},gv,e):gv;var t={value:r,observers:null,observerSlots:null,comparator:e.equals||void 0},n=function(i){return typeof i=="function"&&(ie&&ie.running&&ie.sources.has(t)?i=i(t.tValue):i=i(t.value)),yZ(t,i)};return[mZ.bind(t),n]}function uZ(r,e,t){var n=yv(r,e,!0,cn);Gc&&ie&&ie.running?jr.push(n):zc(n)}function bo(r,e,t){var n=yv(r,e,!1,cn);Gc&&ie&&ie.running?jr.push(n):zc(n)}function cT(r,e,t){pZ=Rer;var n=yv(r,e,!1,cn),i=Gd&&vZ(Gd);i&&(n.suspense=i),(!t||!t.render)&&(n.user=!0),qt?qt.push(n):zc(n)}function Vc(r,e,t){t=t?Object.assign({},gv,t):gv;var n=yv(r,e,!0,0);return n.observers=null,n.observerSlots=null,n.comparator=t.equals||void 0,Gc&&ie&&ie.running?(n.tState=cn,jr.push(n)):zc(n),mZ.bind(n)}function qer(r){return r&&(typeof r==="undefined"?"undefined":_type_of(r))=="object"&&"then"in r}function xZ(r,e,t){var n,i,a;typeof e=="function"?(n=r,i=e,a=t||{}):(n=!0,i=r,a=e||{});var o=null,s=sT,u=null,c=!1,l=!1,f="initialValue"in a,d=typeof n=="function"&&Vc(n),p=new Set,_ref=_sliced_to_array((a.storage||ot)(a.initialValue),2),x=_ref[0],h=_ref[1],_ot=_sliced_to_array(ot(void 0),2),v=_ot[0],y=_ot[1],_ot1=_sliced_to_array(ot(void 0,{equals:!1}),2),m=_ot1[0],b=_ot1[1],_ot2=_sliced_to_array(ot(f?"ready":"unresolved"),2),S=_ot2[0],T=_ot2[1];Je.context&&(u=Je.getNextContextId(),a.ssrLoadFrom==="initial"?s=a.initialValue:Je.load&&Je.has(u)&&(s=Je.load(u)));function w(I,N,k,B){return o===I&&(o=null,B!==void 0&&(f=!0),(I===s||N===s)&&a.onHydrated&&queueMicrotask(function(){return a.onHydrated(B,{value:N})}),s=sT,ie&&I&&c?(ie.promises.delete(I),c=!1,un(function(){ie.running=!0,R(N,k)},!1)):R(N,k)),N}function R(I,N){un(function(){N===void 0&&h(function(){return I}),T(N!==void 0?"errored":f?"ready":"unresolved"),y(N);var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;try{for(var _iterator=p.keys()[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var k=_step.value;k.decrement()}}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}p.clear()},!1)}function _(){var I=Gd&&vZ(Gd),N=x(),k=v();if(k!==void 0&&!o)throw k;return ar&&!ar.user&&I&&uZ(function(){m(),o&&(I.resolved&&ie&&c?ie.promises.add(o):p.has(I)||(I.increment(),p.add(I)))}),N}function E(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;if(I!==!1&&l)return;l=!1;var N=d?d():n;if(c=ie&&ie.running,N==null||N===!1){w(o,Rn(x));return}ie&&o&&ie.promises.delete(o);var k,B=s!==sT?s:Rn(function(){try{return i(N,{value:x(),refetching:I})}catch(U){k=U}});if(k!==void 0){w(o,void 0,xv(k),N);return}else if(!qer(B))return w(o,B,void 0,N),B;return o=B,"v"in B?(B.s===1?w(o,B.v,void 0,N):w(o,void 0,xv(B.v),N),B):(l=!0,queueMicrotask(function(){return l=!1}),un(function(){T(f?"refreshing":"pending"),b()},!1),B.then(function(U){return w(B,U,void 0,N)},function(U){return w(B,void 0,xv(U),N)}))}Object.defineProperties(_,{state:{get:function(){return S()}},error:{get:function(){return v()}},loading:{get:function get(){var I=S();return I==="pending"||I==="refreshing"}},latest:{get:function get(){if(!f)return _();var I=v();if(I&&!o)throw I;return x()}}});var O=Ue;return d?uZ(function(){return O=Ue,E(!1)}):E(!1),[_,{refetch:function(I){return gZ(O,function(){return E(I)})},mutate:h}]}function Rn(r){if(!$c&&ar===null)return r();var e=ar;ar=null;try{return $c?$c.untrack(r):r()}finally{ar=e}}function lT(r){return Ue===null||(Ue.cleanups===null?Ue.cleanups=[r]:Ue.cleanups.push(r)),r}function gZ(r,e){var t=Ue,n=ar;Ue=r,ar=null;try{return un(e,!0)}catch(i){bv(i)}finally{Ue=t,ar=n}}function Ter(r){if(ie&&ie.running)return r(),ie.done;var e=ar,t=Ue;return Promise.resolve().then(function(){ar=e,Ue=t;var n;return(Gc||Gd)&&(n=ie||(ie={sources:new Set,effects:[],promises:new Set,disposed:new Set,queue:new Set,running:!0}),n.done||(n.done=new Promise(function(i){return n.resolve=i})),n.running=!0),un(r,!1),ar=Ue=null,n?n.done:void 0})}var _ot=_sliced_to_array(ot(!1),2),f6r=_ot[0],cZ=_ot[1];function vZ(r){var e;return Ue&&Ue.context&&(e=Ue.context[r.id])!==void 0?e:r.defaultValue}var Gd;function mZ(){var _this=this;var r=ie&&ie.running;if(this.sources&&(r?this.tState:this.state))if((r?this.tState:this.state)===cn)zc(this);else{var e=jr;jr=null,un(function(){return vv(_this)},!1),jr=e}if(ar){var e1=this.observers?this.observers.length:0;ar.sources?(ar.sources.push(this),ar.sourceSlots.push(e1)):(ar.sources=[this],ar.sourceSlots=[e1]),this.observers?(this.observers.push(ar),this.observerSlots.push(ar.sources.length-1)):(this.observers=[ar],this.observerSlots=[ar.sources.length-1])}return r&&ie.sources.has(this)?this.tValue:this.value}function yZ(r,e,t){var n=ie&&ie.running&&ie.sources.has(r)?r.tValue:r.value;if(!r.comparator||!r.comparator(n,e)){if(ie){var i=ie.running;(i||!t&&ie.sources.has(r))&&(ie.sources.add(r),r.tValue=e),i||(r.value=e)}else r.value=e;r.observers&&r.observers.length&&un(function(){for(var i=0;i<r.observers.length;i+=1){var a=r.observers[i],o=ie&&ie.running;o&&ie.disposed.has(a)||((o?!a.tState:!a.state)&&(a.pure?jr.push(a):qt.push(a),a.observers&&_Z(a)),o?a.tState=cn:a.state=cn)}if(jr.length>1e6)throw jr=[],new Error},!1)}return e}function zc(r){if(!r.fn)return;yo(r);var e=mv;lZ(r,ie&&ie.running&&ie.sources.has(r)?r.tValue:r.value,e),ie&&!ie.running&&ie.sources.has(r)&&queueMicrotask(function(){un(function(){ie&&(ie.running=!0),ar=Ue=r,lZ(r,r.tValue,e),ar=Ue=null},!1)})}function lZ(r,e,t){var n,i=Ue,a=ar;ar=Ue=r;try{n=r.fn(e)}catch(o){return r.pure&&(ie&&ie.running?(r.tState=cn,r.tOwned&&r.tOwned.forEach(yo),r.tOwned=void 0):(r.state=cn,r.owned&&r.owned.forEach(yo),r.owned=null)),r.updatedAt=t+1,bv(o)}finally{ar=a,Ue=i}(!r.updatedAt||r.updatedAt<=t)&&(r.updatedAt!=null&&"observers"in r?yZ(r,n,!0):ie&&ie.running&&r.pure?(ie.sources.add(r),r.tValue=n):r.value=n,r.updatedAt=t)}function yv(r,e,t){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:cn,i=arguments.length>4?arguments[4]:void 0;var a={fn:r,state:n,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:e,owner:Ue,context:Ue?Ue.context:null,pure:t};if(ie&&ie.running&&(a.state=0,a.tState=n),Ue===null||Ue!==hZ&&(ie&&ie.running&&Ue.pure?Ue.tOwned?Ue.tOwned.push(a):Ue.tOwned=[a]:Ue.owned?Ue.owned.push(a):Ue.owned=[a]),$c&&a.fn){var _ot=_sliced_to_array(ot(void 0,{equals:!1}),2),o=_ot[0],s=_ot[1],u=$c.factory(a.fn,s);lT(function(){return u.dispose()});var c=function(){return Ter(s).then(function(){return l.dispose()})},l=$c.factory(a.fn,c);a.fn=function(f){return o(),ie&&ie.running?l.track(f):u.track(f)}}return a}function zd(r){var e=ie&&ie.running;if((e?r.tState:r.state)===0)return;if((e?r.tState:r.state)===Vd)return vv(r);if(r.suspense&&Rn(r.suspense.inFallback))return r.suspense.effects.push(r);var t=[r];for(;(r=r.owner)&&(!r.updatedAt||r.updatedAt<mv);){if(e&&ie.disposed.has(r))return;(e?r.tState:r.state)&&t.push(r)}for(var n=t.length-1;n>=0;n--){if(r=t[n],e){var i=r,a=t[n+1];for(;(i=i.owner)&&i!==a;)if(ie.disposed.has(i))return}if((e?r.tState:r.state)===cn)zc(r);else if((e?r.tState:r.state)===Vd){var i2=jr;jr=null,un(function(){return vv(r,t[0])},!1),jr=i2}}}function un(r,e){if(jr)return r();var t=!1;e||(jr=[]),qt?t=!0:qt=[],mv++;try{var _$n=r();return Aer(t),_$n}catch(n){t||(qt=null),jr=null,bv(n)}}function Aer(r){if(jr&&(Gc&&ie&&ie.running?Oer(jr):bZ(jr),jr=null),r)return;var e;if(ie){if(!ie.promises.size&&!ie.queue.size){var n=ie.sources,i=ie.disposed;qt.push.apply(qt,ie.effects),e=ie.resolve;var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;try{for(var _iterator=qt[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var a=_step.value;"tState"in a&&(a.state=a.tState),delete a.tState}}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}ie=null,un(function(){var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;try{for(var _iterator=i[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var a=_step.value;yo(a)}}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}var _iteratorNormalCompletion1=true,_didIteratorError1=false,_iteratorError1=undefined;try{for(var _iterator1=n[Symbol.iterator](),_step1;!(_iteratorNormalCompletion1=(_step1=_iterator1.next()).done);_iteratorNormalCompletion1=true){var a2=_step1.value;if(a2.value=a2.tValue,a2.owned)for(var o=0,s=a2.owned.length;o<s;o++)yo(a2.owned[o]);a2.tOwned&&(a2.owned=a2.tOwned),delete a2.tValue,delete a2.tOwned,a2.tState=0}}catch(err1){_didIteratorError1=true;_iteratorError1=err1}finally{try{if(!_iteratorNormalCompletion1&&_iterator1.return!=null){_iterator1.return()}}finally{if(_didIteratorError1){throw _iteratorError1}}}cZ(!1)},!1)}else if(ie.running){ie.running=!1,ie.effects.push.apply(ie.effects,qt),qt=null,cZ(!0);return}}var t=qt;qt=null,t.length&&un(function(){return pZ(t)},!1),e&&e()}function bZ(r){for(var e=0;e<r.length;e++)zd(r[e])}function Oer(r){var _loop=function(e){var t=r[e],n=ie.queue;n.has(t)||(n.add(t),Gc(function(){n.delete(t),un(function(){ie.running=!0,zd(t)},!1),ie&&(ie.running=!1)}))};for(var e=0;e<r.length;e++)_loop(e)}function Rer(r){var e,t=0;for(e=0;e<r.length;e++){var n=r[e];n.user?r[t++]=n:zd(n)}if(Je.context){if(Je.count){var _Je_effects;Je.effects||(Je.effects=[]),(_Je_effects=Je.effects).push.apply(_Je_effects,_to_consumable_array(r.slice(0,t)));return}uT()}for(Je.effects&&(Je.done||!Je.count)&&(r=_to_consumable_array(Je.effects).concat(_to_consumable_array(r)),t+=Je.effects.length,delete Je.effects),e=0;e<t;e++)zd(r[e])}function vv(r,e){var t=ie&&ie.running;t?r.tState=0:r.state=0;for(var n=0;n<r.sources.length;n+=1){var i=r.sources[n];if(i.sources){var a=t?i.tState:i.state;a===cn?i!==e&&(!i.updatedAt||i.updatedAt<mv)&&zd(i):a===Vd&&vv(i,e)}}}function _Z(r){var e=ie&&ie.running;for(var t=0;t<r.observers.length;t+=1){var n=r.observers[t];(e?!n.tState:!n.state)&&(e?n.tState=Vd:n.state=Vd,n.pure?jr.push(n):qt.push(n),n.observers&&_Z(n))}}function yo(r){var e;if(r.sources)for(;r.sources.length;){var t=r.sources.pop(),n=r.sourceSlots.pop(),i=t.observers;if(i&&i.length){var a=i.pop(),o=t.observerSlots.pop();n<i.length&&(a.sourceSlots[o]=n,i[n]=a,t.observerSlots[n]=o)}}if(r.tOwned){for(e=r.tOwned.length-1;e>=0;e--)yo(r.tOwned[e]);delete r.tOwned}if(ie&&ie.running&&r.pure)wZ(r,!0);else if(r.owned){for(e=r.owned.length-1;e>=0;e--)yo(r.owned[e]);r.owned=null}if(r.cleanups){for(e=r.cleanups.length-1;e>=0;e--)r.cleanups[e]();r.cleanups=null}ie&&ie.running?r.tState=0:r.state=0}function wZ(r,e){if(e||(r.tState=0,ie.disposed.add(r)),r.owned)for(var t=0;t<r.owned.length;t++)wZ(r.owned[t])}function xv(r){return _instanceof(r,Error)?r:new Error(typeof r=="string"?r:"Unknown error",{cause:r})}function fZ(r,e,t){try{var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;try{for(var _iterator=e[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var _$n=_step.value;_$n(r)}}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}}catch(n){bv(n,t&&t.owner||null)}}function bv(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ue;var t=sZ&&e&&e.context&&e.context[sZ],n=xv(r);if(!t)throw n;qt?qt.push({fn:function fn(){fZ(n,t,e)},state:cn}):fZ(n,t,e)}var Ier=Symbol("fallback");function dZ(r){for(var e=0;e<r.length;e++)r[e]()}function Per(r,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var n=[],i=[],a=[],o=0,s=e.length>1?[]:null;return lT(function(){return dZ(a)}),function(){var d=function d(p){if(a[f]=p,s){var _ot=_sliced_to_array(ot(f),2),x=_ot[0],h=_ot[1];return s[f]=h,e(u[f],x)}return e(u[f])};var u=r()||[],c=u.length,l,f;return u[Eer],Rn(function(){var p,x,h,v,y,m,b,S,T;if(c===0)o!==0&&(dZ(a),a=[],n=[],i=[],o=0,s&&(s=[])),t.fallback&&(n=[Ier],i[0]=$d(function(w){return a[0]=w,t.fallback()}),o=1);else if(o===0){for(i=new Array(c),f=0;f<c;f++)n[f]=u[f],i[f]=$d(d);o=c}else{for(h=new Array(c),v=new Array(c),s&&(y=new Array(c)),m=0,b=Math.min(o,c);m<b&&n[m]===u[m];m++);for(b=o-1,S=c-1;b>=m&&S>=m&&n[b]===u[S];b--,S--)h[S]=i[b],v[S]=a[b],s&&(y[S]=s[b]);for(p=new Map,x=new Array(S+1),f=S;f>=m;f--)T=u[f],l=p.get(T),x[f]=l===void 0?-1:l,p.set(T,f);for(l=m;l<=b;l++)T=n[l],f=p.get(T),f!==void 0&&f!==-1?(h[f]=i[l],v[f]=a[l],s&&(y[f]=s[l]),f=x[f],p.set(T,f)):a[l]();for(f=m;f<c;f++)f in h?(i[f]=h[f],a[f]=v[f],s&&(s[f]=y[f],s[f](f))):i[f]=$d(d);i=i.slice(0,o=c),n=u.slice(0)}return i})}}var Cer=!1;function ln(r,e){if(Cer&&Je.context){var t=Je.context;uT(_er());var n=Rn(function(){return r(e||{})});return uT(t),n}return Rn(function(){return r(e||{})})}var Ner=function(r){return"Stale read from <".concat(r,">.")};function fT(r){var e="fallback"in r&&{fallback:function(){return r.fallback}};return Vc(Per(function(){return r.each},r.children,e||void 0))}function Kd(r){var e=r.keyed,t=Vc(function(){return r.when},void 0,void 0),n=e?t:Vc(t,void 0,{equals:function(i,a){return!i==!a}});return Vc(function(){var i=n();if(i){var a=r.children;return typeof a=="function"&&a.length>0?Rn(function(){return a(e?i:function(){if(!Rn(n))throw Ner("Show");return t()})}):a}return r.fallback},void 0,void 0)}var Ler=["allowfullscreen","async","alpha","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected","adauctionheaders","browsingtopics","credentialless","defaultchecked","defaultmuted","defaultselected","defer","disablepictureinpicture","disableremoteplayback","preservespitch","shadowrootclonable","shadowrootcustomelementregistry","shadowrootdelegatesfocus","shadowrootserializable","sharedstoragewritable"],S6r=new Set(["className","value","readOnly","noValidate","formNoValidate","isMap","noModule","playsInline","adAuctionHeaders","allowFullscreen","browsingTopics","defaultChecked","defaultMuted","defaultSelected","disablePictureInPicture","disableRemotePlayback","preservesPitch","shadowRootClonable","shadowRootCustomElementRegistry","shadowRootDelegatesFocus","shadowRootSerializable","sharedStorageWritable"].concat(_to_consumable_array(Ler)));function Der(r,e,t){var n=t.length,i=e.length,a=n,o=0,s=0,u=e[i-1].nextSibling,c=null;for(;o<i||s<a;){if(e[o]===t[s]){o++,s++;continue}for(;e[i-1]===t[a-1];)i--,a--;if(i===o){var l=a<n?s?t[s-1].nextSibling:t[a-s]:u;for(;s<a;)r.insertBefore(t[s++],l)}else if(a===s)for(;o<i;)(!c||!c.has(e[o]))&&e[o].remove(),o++;else if(e[o]===t[a-1]&&t[s]===e[i-1]){var l1=e[--i].nextSibling;r.insertBefore(t[s++],e[o++].nextSibling),r.insertBefore(t[--a],l1),e[i]=t[a]}else{if(!c){c=new Map;var f=s;for(;f<a;)c.set(t[f],f++)}var l2=c.get(e[o]);if(l2!=null)if(s<l2&&l2<a){var f1=o,d=1,p=void 0;for(;++f1<i&&f1<a&&!((p=c.get(e[f1]))==null||p!==l2+d);)d++;if(d>l2-s){var x=e[o];for(;s<l2;)r.insertBefore(t[s++],x)}else r.replaceChild(t[s++],e[o++])}else o++;else e[o++].remove()}}}var SZ="_$DX_DELEGATE";function qZ(r,e,t){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};var i;return $d(function(a){i=a,e===document?r():st(e,r(),e.firstChild?null:void 0,t)},n.owner),function(){i(),e.textContent=""}}function oa(r,e,t,n){var i,a=function(){var s=n?document.createElementNS("http://www.w3.org/1998/Math/MathML","template"):document.createElement("template");return s.innerHTML=r,t?s.content.firstChild.firstChild:n?s.firstChild:s.content.firstChild},o=e?function(){return Rn(function(){return document.importNode(i||(i=a()),!0)})}:function(){return(i||(i=a())).cloneNode(!0)};return o.cloneNode=o,o}function Hc(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:window.document;var t=e[SZ]||(e[SZ]=new Set);for(var n=0,i=r.length;n<i;n++){var a=r[n];t.has(a)||(t.add(a),e.addEventListener(a,Wer))}}function TZ(r,e){OZ(r)||(e==null?r.removeAttribute("class"):r.className=e)}function AZ(r,e,t,n){if(n)Array.isArray(t)?(r["$$".concat(e)]=t[0],r["$$".concat(e,"Data")]=t[1]):r["$$".concat(e)]=t;else if(Array.isArray(t)){var i=t[0];r.addEventListener(e,t[0]=function(a){return i.call(r,t[1],a)})}else r.addEventListener(e,t,typeof t!="function"&&t)}function st(r,e,t,n){if(t!==void 0&&!n&&(n=[]),typeof e!="function")return wv(r,e,n,t);bo(function(i){return wv(r,e(),i,t)},n)}function OZ(r){return!!Je.context&&!Je.done&&(!r||r.isConnected)}function Wer(r){if(Je.registry&&Je.events&&Je.events.find(function(param){var _param=_sliced_to_array(param,2),u=_param[0],c=_param[1];return c===r}))return;var e=r.target,t="$$".concat(r.type),n=r.target,i=r.currentTarget,a=function(u){return Object.defineProperty(r,"target",{configurable:!0,value:u})},o=function(){var u=e[t];if(u&&!e.disabled){var c=e["".concat(t,"Data")];if(c!==void 0?u.call(e,c,r):u.call(e,r),r.cancelBubble)return}return e.host&&typeof e.host!="string"&&!e.host._$host&&e.contains(r.target)&&a(e.host),!0},s=function(){for(;o()&&(e=e._$host||e.parentNode||e.host););};if(Object.defineProperty(r,"currentTarget",{configurable:!0,get:function get(){return e||document}}),Je.registry&&!Je.done&&(Je.done=_$HY.done=!0),r.composedPath){var u=r.composedPath();a(u[0]);for(var c=0;c<u.length-2&&(e=u[c],!!o());c++){if(e._$host){e=e._$host,s();break}if(e.parentNode===i)break}}else s();a(n)}function wv(r,e,t,n,i){var a=OZ(r);if(a){!t&&(t=_to_consumable_array(r.childNodes));var u=[];for(var c=0;c<t.length;c++){var l=t[c];l.nodeType===8&&l.data.slice(0,2)==="!$"?l.remove():u.push(l)}t=u}for(;typeof t=="function";)t=t();if(e===t)return t;var o=typeof e==="undefined"?"undefined":_type_of(e),s=n!==void 0;if(r=s&&t[0]&&t[0].parentNode||r,o==="string"||o==="number"){if(a||o==="number"&&(e=e.toString(),e===t))return t;if(s){var u1=t[0];u1&&u1.nodeType===3?u1.data!==e&&(u1.data=e):u1=document.createTextNode(e),t=Kc(r,t,n,u1)}else t!==""&&typeof t=="string"?t=r.firstChild.data=e:t=r.textContent=e}else if(e==null||o==="boolean"){if(a)return t;t=Kc(r,t,n)}else{if(o==="function")return bo(function(){var u=e();for(;typeof u=="function";)u=u();t=wv(r,u,t,n)}),function(){return t};if(Array.isArray(e)){var u2=[],c1=t&&Array.isArray(t);if(dT(u2,e,t,i))return bo(function(){return t=wv(r,u2,t,n,!0)}),function(){return t};if(a){if(!u2.length)return t;if(n===void 0)return t=_to_consumable_array(r.childNodes);var l1=u2[0];if(l1.parentNode!==r)return t;var f=[l1];for(;(l1=l1.nextSibling)!==n;)f.push(l1);return t=f}if(u2.length===0){if(t=Kc(r,t,n),s)return t}else c1?t.length===0?EZ(r,u2,n):Der(r,t,u2):(t&&Kc(r),EZ(r,u2));t=u2}else if(e.nodeType){if(a&&e.parentNode)return t=s?[e]:e;if(Array.isArray(t)){if(s)return t=Kc(r,t,n,e);Kc(r,t,null,e)}else t==null||t===""||!r.firstChild?r.appendChild(e):r.replaceChild(e,r.firstChild);t=e}}return t}function dT(r,e,t,n){var i=!1;for(var a=0,o=e.length;a<o;a++){var s=e[a],u=t&&t[r.length],c=void 0;if(!(s==null||s===!0||s===!1))if((c=typeof s==="undefined"?"undefined":_type_of(s))=="object"&&s.nodeType)r.push(s);else if(Array.isArray(s))i=dT(r,s,u)||i;else if(c==="function")if(n){for(;typeof s=="function";)s=s();i=dT(r,Array.isArray(s)?s:[s],Array.isArray(u)?u:[u])||i}else r.push(s),i=!0;else{var l=String(s);u&&u.nodeType===3&&u.data===l?r.push(u):r.push(document.createTextNode(l))}}return i}function EZ(r,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;for(var n=0,i=e.length;n<i;n++)r.insertBefore(e[n],t)}function Kc(r,e,t,n){if(t===void 0)return r.textContent="";var i=n||document.createTextNode("");if(e.length){var a=!1;for(var o=e.length-1;o>=0;o--){var s=e[o];if(i!==s){var u=s.parentNode===r;!a&&!o?u?r.replaceChild(i,s):r.insertBefore(i,t):u&&s.remove()}else a=!0}}else r.insertBefore(i,t);return[i]}var E6r=Symbol();var BZ=ze(require("obsidian"),1),UZ=ze(Qr(),1);var PZ=ze(require("obsidian"),1);var Mer=oa('<div class="flex gap-2 items-center max-w-full border-rounded px-1 hover:cursor-not-allowed opacity-20"><div class="i-custom:file size-10"></div><span class="truncate flex-1">');function Fer(r){return function(){var e=Mer(),t=e.firstChild,n=t.nextSibling;return st(n,function(){return r.name}),e}()}var RZ=Fer;var Uer=oa('<div class="flex gap-2 items-center max-w-full hover:bg-[var(--interactive-accent)] border-rounded px-1"><div class="i-custom:folder size-10"></div><span class="truncate flex-1">');function jer(r){return function(){var e=Uer(),t=e.firstChild,n=t.nextSibling;return e.$$click=function(){return r.onClick(r.path)},st(n,function(){return r.name}),e}()}var IZ=jer;Hc(["click"]);function CZ(){var _ot=_sliced_to_array(ot(0),2),r=_ot[0],e=_ot[1];return{refresh:function refresh(){e(function(t){return++t})},FileList:function FileList(t){var _this=this;var _ot=_sliced_to_array(ot([]),2),n=_ot[0],i=_ot[1],a=function(){return n().sort(function(s,u){return s.isDir===u.isDir?s.basename.localeCompare(u.basename,["zh"]):s.isDir&&!u.isDir?-1:1})};function o(){return D(this,null,function(){var _$s,s;return _ts_generator(this,function(_state){switch(_state.label){case 0:_state.trys.push([0,2,,3]);return[4,t.fs.ls(t.path)];case 1:_$s=_state.sent();i(_$s);return[3,3];case 2:s=_state.sent();_instanceof(s,Error)&&new PZ.Notice(s.message);return[3,3];case 3:return[2]}})})}return cT(function(){return D(_this,null,function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:if(!(r()===0))return[3,2];return[4,o()];case 1:_state.sent();return[2];case 2:e(0);return[2]}})})}),ln(fT,{get each(){return a()},children:function(s){return ln(Kd,{get when(){return s.isDir},get fallback(){return ln(RZ,{get name(){return s.basename}})},get children(){return ln(IZ,{get name(){return s.basename},get path(){return s.path},onClick:function(){return t.onClick(s)}})}})}})}}}var NZ=function(r){return r!=null&&(r=Object.getPrototypeOf(r),r===Array.prototype||r===Object.prototype)};function kZ(r,e,t){var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;try{for(var _iterator=Object.entries(e)[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var _step_value=_sliced_to_array(_step.value,2),n=_step_value[0],i=_step_value[1];var a="".concat(t,".").concat(n);r[a]=i,NZ(i)&&kZ(r,i,a)}}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}}function pT(r){var e=j({},r);var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;try{for(var _iterator=Object.entries(r)[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var _step_value=_sliced_to_array(_step.value,2),t=_step_value[0],n=_step_value[1];NZ(n)&&kZ(e,n,t)}}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}return e}var Ger=function(r){return r};function LZ(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ger;return function(t){for(var _len=arguments.length,n=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++){n[_key-1]=arguments[_key]}var a;t[0]==="."&&(t=t.slice(1));var i=(a=r())==null?void 0:a[t];switch(typeof i==="undefined"?"undefined":_type_of(i)){case"function":return i.apply(void 0,_to_consumable_array(n));case"string":return e(i,n[0]);default:return i}}}var Ker={newFolder:"New Folder",goBack:"Go Back",confirm:"Confirm",cancel:"Cancel",currentPath:"Current Path"},DZ=Ker;var Qer={newFolder:"新建文件夹",goBack:"返回上一层",confirm:"确定",cancel:"取消",currentPath:"当前路径"},WZ=Qer;function Yer(r){switch(r.split("-")[0].toLowerCase()){case"zh":return"zh";default:return"en"}}var _ot1=_sliced_to_array(ot(Yer(navigator.language)),2),Jer=_ot1[0],I6r=_ot1[1],_xZ=_sliced_to_array(xZ(Jer,function(r){switch(r){case"zh":return pT(WZ);default:return pT(DZ)}}),1),Zer=_xZ[0],sa=LZ(Zer);var err=oa('<div><div class="i-custom:folder size-10"></div><input type=text class=flex-1 autofocus><button></button><button>');function rrr(r){var _ot=_sliced_to_array(ot(""),2),e=_ot[0],t=_ot[1],n=function(){return"flex items-center gap-2 px-1 ".concat(r.class)};return function(){var i=err(),a=i.firstChild,o=a.nextSibling,s=o.nextSibling,u=s.nextSibling;return o.$$input=function(c){return t(c.target.value)},s.$$click=function(){return r.onConfirm(e())},st(s,function(){return sa("confirm")}),u.$$click=function(){return r.onCancel()},st(u,function(){return sa("cancel")}),bo(function(){return TZ(i,n())}),bo(function(){return o.value=e()}),i}()}var FZ=rrr;Hc(["input","click"]);var nrr=oa('<div class="flex-1 flex flex-col overflow-y-auto scrollbar-hide">'),irr=oa('<div class="flex flex-col gap-4 h-50vh"><div class="flex gap-2 text-xs"><span>:</span><span class=break-all></span></div><div class="flex items-center gap-2"><button></button><a class=no-underline></a><div class=flex-1></div><button></button><button>');function arr(r){var _ot=_sliced_to_array(ot(["/"]),2),e=_ot[0],t=_ot[1],_ot1=_sliced_to_array(ot(!1),2),n=_ot1[0],i=_ot1[1],a=function(){return e().at(-1)};function o(c){t(function(l){return _to_consumable_array(l).concat([c])})}function s(){t(function(c){return c.length>1?c.slice(0,c.length-1):c})}var u=function(){var c=CZ();return function(){var l=nrr();return st(l,ln(Kd,{get when(){return n()},get children(){var _this=this;return ln(FZ,{class:"mt-1",onCancel:function(){return i(!1)},onConfirm:function(f){return D(_this,null,function(){var p,d;return _ts_generator(this,function(_state){switch(_state.label){case 0:d=UZ.default.join((p=a())!=null?p:"/",f);return[4,Promise.resolve(r.fs.mkdirs(d)).then(function(){i(!1),c.refresh()}).catch(function(x){_instanceof(x,Error)&&new BZ.Notice(x.message)})];case 1:_state.sent();return[2]}})})}})}}),null),st(l,ln(c.FileList,{get fs(){return r.fs},get path(){var f;return(f=a())!=null?f:""},onClick:function(f){return o(f.path)}}),null),l}()};return function(){var c=irr(),l=c.firstChild,f=l.firstChild,d=f.firstChild,p=f.nextSibling,x=l.nextSibling,h=x.firstChild,v=h.nextSibling,y=v.nextSibling,m=y.nextSibling,b=m.nextSibling;return st(c,ln(u,{}),l),st(f,function(){return sa("currentPath")},d),st(p,function(){var S;return(S=a())!=null?S:"/"}),h.$$click=s,st(h,function(){return sa("goBack")}),v.$$click=function(){return i(!0)},st(v,function(){return sa("newFolder")}),AZ(m,"click",r.onClose,!0),st(m,function(){return sa("cancel")}),b.$$click=function(){var S;return r.onConfirm((S=a())!=null?S:"/")},st(b,function(){return sa("confirm")}),c}()}var jZ=arr;Hc(["click"]);function $Z(r,e){return qZ(function(){return ln(jZ,e)},r)}function VZ(r,e){return r.createDirectory(e,{recursive:!0})}var As=/*#__PURE__*/function(_GZ_Modal){"use strict";_inherits(As1,_GZ_Modal);function As1(t,n,i){_class_call_check(this,As1);var _this;_this=_call_super(this,As1,[t]);_this.plugin=n;_this.onConfirm=i;return _this}_create_class(As1,[{key:"onOpen",value:function onOpen(){return D(this,null,function(){var _this,_this1,t,n,i;return _ts_generator(this,function(_state){switch(_state.label){case 0:_this=this;_this1=this,t=_this1.contentEl,n=document.createElement("div");t.appendChild(n);return[4,this.plugin.webDAVService.createWebDAVClient()];case 1:i=_state.sent();$Z(n,{fs:{ls:function(a){return D(_this,null,function(){var o;return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,this.plugin.getToken()];case 1:o=_state.sent();return[4,Uc(o,a)];case 2:return[2,_state.sent().map(lo)]}})})},mkdirs:function(a){return D(_this,null,function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,VZ(i,a)];case 1:_state.sent();return[2]}})})}},onClose:function(){n.remove(),_this.close()},onConfirm:function(a){return D(_this,null,function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,Promise.resolve(this.onConfirm(Et(a)))];case 1:_state.sent(),n.remove(),this.close();return[2]}})})}});return[2]}})})}},{key:"onClose",value:function onClose(){var _this=this,t=_this.contentEl;t.empty()}}]);return As1}(GZ.Modal);Pr();var Hd=/*#__PURE__*/function(on1){"use strict";_inherits(Hd1,on1);function Hd1(){_class_call_check(this,Hd1);return _call_super(this,Hd1,arguments)}_create_class(Hd1,[{key:"display",value:function display(){return D(this,null,function(){var _this;return _ts_generator(this,function(_state){_this=this;this.containerEl.empty(),new ua.Setting(this.containerEl).setName(P.t("settings.cache.title")).setHeading(),new ua.Setting(this.containerEl).setName(P.t("settings.cache.remoteCacheDir.name")).setDesc(P.t("settings.cache.remoteCacheDir.desc")).addText(function(e){e.setPlaceholder(P.t("settings.cache.remoteCacheDir.placeholder")).setValue(_this.remoteCacheDir).onChange(function(t){return D(_this,null,function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:this.plugin.settings.remoteCacheDir=t;return[4,this.plugin.saveSettings()];case 1:_state.sent();return[2]}})})}),e.inputEl.addEventListener("blur",function(){return D(_this,null,function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:this.plugin.settings.remoteCacheDir=this.remoteCacheDir;return[4,this.plugin.saveSettings()];case 1:_state.sent(),this.display();return[2]}})})})}).addButton(function(e){e.setIcon("folder").onClick(function(){new As(_this.app,_this.plugin,function(t){return D(_this,null,function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:this.plugin.settings.remoteCacheDir=t;return[4,this.plugin.saveSettings()];case 1:_state.sent(),this.display();return[2]}})})}).open()})}),new ua.Setting(this.containerEl).setName(P.t("settings.cache.dumpName")).setDesc(P.t("settings.cache.dumpDesc")).addButton(function(e){e.setButtonText(P.t("settings.cache.dump")).onClick(function(){new jd(_this.plugin,_this.remoteCacheDir,function(){return _this.display()}).open()})}).addButton(function(e){e.setButtonText(P.t("settings.cache.restore")).onClick(function(){new Ud(_this.plugin,_this.remoteCacheDir,function(){return _this.display()}).open()})}),new ua.Setting(this.containerEl).setName(P.t("settings.cache.clearName")).setDesc(P.t("settings.cache.clearDesc")).addButton(function(e){e.setButtonText(P.t("settings.cache.clear")).onClick(function(){return D(_this,null,function(){var _this;return _ts_generator(this,function(_state){_this=this;new Dc(this.plugin,function(t){return D(_this,null,function(){var n;return _ts_generator(this,function(_state){switch(_state.label){case 0:_state.trys.push([0,2,,3]);return[4,Dc.clearSelectedCaches(t)];case 1:_state.sent().length>0?new ua.Notice(P.t("settings.cache.cleared")):new ua.Notice(P.t("settings.cache.clearModal.nothingSelected"));return[3,3];case 2:n=_state.sent();ce.error("Error clearing cache:",n),new ua.Notice("Error clearing cache: ".concat(n.message));return[3,3];case 3:return[2]}})})}).open();return[2]})})})});return[2]})})}},{key:"remoteCacheDir",get:function get(){var e;return Et(((e=this.plugin.settings.remoteCacheDir)==null?void 0:e.trim())||this.plugin.manifest.name.trim())}},{key:"remoteCachePath",get:function get(){var e=vo(this.app.vault.getName(),this.plugin.settings.remoteDir);return(0,zZ.join)(this.remoteCacheDir,e+".json")}},{key:"createRemoteCacheDir",value:function createRemoteCacheDir(){return D(this,null,function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,this.plugin.webDAVService.createWebDAVClient()];case 1:return[4,_state.sent().createDirectory(this.remoteCacheDir,{recursive:!0})];case 2:return[2,_state.sent()]}})})}},{key:"clearCache",value:function clearCache(){return D(this,arguments,function(){var _ref,tmp,e,tmp1,t,tmp2,n,_tmp,_tmp1,_tmp2;var _arguments=arguments;return _ts_generator(this,function(_state){switch(_state.label){case 0:_ref=_arguments.length>0&&_arguments[0]!==void 0?_arguments[0]:{},tmp=_ref.deltaCacheEnabled,e=tmp===void 0?!0:tmp,tmp1=_ref.syncRecordEnabled,t=tmp1===void 0?!0:tmp1,tmp2=_ref.blobEnabled,n=tmp2===void 0?!0:tmp2;_tmp=e;if(!_tmp)return[3,2];return[4,bi.clear()];case 1:_tmp=_state.sent();_state.label=2;case 2:_tmp;_tmp1=t;if(!_tmp1)return[3,4];return[4,Vn.clear()];case 3:_tmp1=_state.sent();_state.label=4;case 4:_tmp1;_tmp2=n;if(!_tmp2)return[3,6];return[4,ys.clear()];case 5:_tmp2=_state.sent();_state.label=6;case 6:_tmp2;return[2]}})})}}]);return Hd1}(on);var Qn=require("obsidian");var Qd=/*#__PURE__*/function(on1){"use strict";_inherits(Qd1,on1);function Qd1(){_class_call_check(this,Qd1);return _call_super(this,Qd1,arguments)}_create_class(Qd1,[{key:"display",value:function display(){return D(this,null,function(){var _this;return _ts_generator(this,function(_state){_this=this;this.containerEl.empty(),new Qn.Setting(this.containerEl).setName(P.t("settings.sections.common")).setHeading(),new Qn.Setting(this.containerEl).setName(P.t("settings.remoteDir.name")).setDesc(P.t("settings.remoteDir.desc")).addText(function(e){e.setPlaceholder(P.t("settings.remoteDir.placeholder")).setValue(_this.plugin.remoteBaseDir).onChange(function(t){return D(_this,null,function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:this.plugin.settings.remoteDir=t;return[4,this.plugin.saveSettings()];case 1:_state.sent();return[2]}})})}),e.inputEl.addEventListener("blur",function(){_this.plugin.settings.remoteDir=_this.plugin.remoteBaseDir,_this.display()})}).addButton(function(e){e.setIcon("folder").onClick(function(){new As(_this.app,_this.plugin,function(t){return D(_this,null,function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:this.plugin.settings.remoteDir=t;return[4,this.plugin.saveSettings()];case 1:_state.sent(),this.display();return[2]}})})}).open()})}),new Qn.Setting(this.containerEl).setName(P.t("settings.skipLargeFiles.name")).setDesc(P.t("settings.skipLargeFiles.desc")).addText(function(e){var t=_this.plugin.settings.skipLargeFiles.maxSize.trim();e.setPlaceholder(P.t("settings.skipLargeFiles.placeholder")).setValue(t).onChange(function(n){return D(_this,null,function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:this.plugin.settings.skipLargeFiles.maxSize=n.trim();return[4,this.plugin.saveSettings()];case 1:_state.sent();return[2]}})})})}),new Qn.Setting(this.containerEl).setName(P.t("settings.conflictStrategy.name")).setDesc(P.t("settings.conflictStrategy.desc")).addDropdown(function(e){return e.addOption("diff-match-patch",P.t("settings.conflictStrategy.diffMatchPatch")).addOption("latest-timestamp",P.t("settings.conflictStrategy.latestTimestamp")).addOption("skip",P.t("settings.conflictStrategy.skip")).setValue(_this.plugin.settings.conflictStrategy).onChange(function(t){return D(_this,null,function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:this.plugin.settings.conflictStrategy=t;return[4,this.plugin.saveSettings()];case 1:_state.sent();return[2]}})})})}),new Qn.Setting(this.containerEl).setName(P.t("settings.useGitStyle.name")).setDesc(P.t("settings.useGitStyle.desc")).addToggle(function(e){return e.setValue(_this.plugin.settings.useGitStyle).onChange(function(t){return D(_this,null,function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:this.plugin.settings.useGitStyle=t;return[4,this.plugin.saveSettings()];case 1:_state.sent();return[2]}})})})}),new Qn.Setting(this.containerEl).setName(P.t("settings.confirmBeforeSync.name")).setDesc(P.t("settings.confirmBeforeSync.desc")).addToggle(function(e){return e.setValue(_this.plugin.settings.confirmBeforeSync).onChange(function(t){return D(_this,null,function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:this.plugin.settings.confirmBeforeSync=t;return[4,this.plugin.saveSettings()];case 1:_state.sent();return[2]}})})})}),new Qn.Setting(this.containerEl).setName(P.t("settings.realtimeSync.name")).setDesc(P.t("settings.realtimeSync.desc")).addToggle(function(e){return e.setValue(_this.plugin.settings.realtimeSync).onChange(function(t){return D(_this,null,function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:this.plugin.settings.realtimeSync=t;return[4,this.plugin.saveSettings()];case 1:_state.sent();return[2]}})})})}),new Qn.Setting(this.containerEl).setName(P.t("settings.startupSyncDelay.name")).setDesc(P.t("settings.startupSyncDelay.desc")).addText(function(e){e.setPlaceholder(P.t("settings.startupSyncDelay.placeholder")).setValue(_this.plugin.settings.startupSyncDelaySeconds.toString()).onChange(function(n){return D(_this,null,function(){var i,a;return _ts_generator(this,function(_state){switch(_state.label){case 0:i=parseFloat(n);if(!!isNaN(i))return[3,2];a=so(i,0,86400);this.plugin.settings.startupSyncDelaySeconds=a;return[4,this.plugin.saveSettings()];case 1:_state.sent(),a!==i&&e.setValue(a.toString());_state.label=2;case 2:return[2]}})})}),e.inputEl.addEventListener("blur",function(){return D(_this,null,function(){var n,i;return _ts_generator(this,function(_state){switch(_state.label){case 0:n=parseFloat(e.getValue()),i=isNaN(n)?0:so(n,0,86400);e.setValue(i.toString()),this.plugin.settings.startupSyncDelaySeconds=i;return[4,this.plugin.saveSettings()];case 1:_state.sent();return[2]}})})}),e.inputEl.type="number",e.inputEl.min="0",e.inputEl.max=86400..toString()}),new Qn.Setting(this.containerEl).setName(P.t("settings.syncMode.name")).setDesc(P.t("settings.syncMode.desc")).addDropdown(function(e){return e.addOption("strict",P.t("settings.syncMode.strict")).addOption("loose",P.t("settings.syncMode.loose")).setValue(_this.plugin.settings.syncMode).onChange(function(t){return D(_this,null,function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:this.plugin.settings.syncMode=t;return[4,this.plugin.saveSettings()];case 1:_state.sent();return[2]}})})})}),new Qn.Setting(this.containerEl).setName(P.t("settings.autoSyncInterval.name")).setDesc(P.t("settings.autoSyncInterval.desc")).addText(function(e){e.setPlaceholder(P.t("settings.autoSyncInterval.placeholder")).setValue(Math.round(_this.plugin.settings.autoSyncIntervalSeconds/60).toString()).onChange(function(n){return D(_this,null,function(){var i,a;return _ts_generator(this,function(_state){switch(_state.label){case 0:i=parseFloat(n);if(!!isNaN(i))return[3,3];a=so(i,0,1440);this.plugin.settings.autoSyncIntervalSeconds=a*60;return[4,this.plugin.saveSettings()];case 1:_state.sent();return[4,this.plugin.scheduledSyncService.updateInterval()];case 2:_state.sent(),a!==i&&e.setValue(a.toString());_state.label=3;case 3:return[2]}})})}),e.inputEl.addEventListener("blur",function(){return D(_this,null,function(){var n,i;return _ts_generator(this,function(_state){switch(_state.label){case 0:n=parseFloat(e.getValue()),i=isNaN(n)?0:Math.round(so(n,0,1440));e.setValue(i.toString()),this.plugin.settings.autoSyncIntervalSeconds=i*60;return[4,this.plugin.saveSettings()];case 1:_state.sent();return[4,this.plugin.scheduledSyncService.updateInterval()];case 2:_state.sent();return[2]}})})}),e.inputEl.type="number",e.inputEl.min="0",e.inputEl.max=1440..toString(),e.inputEl.step="1"});return[2]})})}}]);return Qd1}(on);var Tv=require("obsidian");var Xd=require("obsidian");var JZ=ze(XZ());var YZ={caseSensitive:!1};function Sv(r){return r.expr.trim()===""}function srr(r){var e="";return r.caseSensitive||(e+="i"),e}var Si=/*#__PURE__*/function(){"use strict";function Si1(e,t){_class_call_check(this,Si1);this.expr=e;this.options=t;this.re=(0,JZ.default)(this.expr,{flags:srr(t),extended:!0,globstar:!0})}_create_class(Si1,[{key:"test",value:function test(e){return!!(e===this.expr||this.re.test(e))}}]);return Si1}();function ZZ(r){var e;return typeof r=="string"?Ac(YZ):(e=r.options)!=null?e:Ac(YZ)}function Ev(r,e,t){var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;try{for(var _iterator=e[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var n=_step.value;if(n.test(r))return!0}}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}var _iteratorNormalCompletion1=true,_didIteratorError1=false,_iteratorError1=undefined;try{for(var _iterator1=t[Symbol.iterator](),_step1;!(_iteratorNormalCompletion1=(_step1=_iterator1.next()).done);_iteratorNormalCompletion1=true){var n1=_step1.value;if(n1.test(r))return!1}}catch(err1){_didIteratorError1=true;_iteratorError1=err1}finally{try{if(!_iteratorNormalCompletion1&&_iterator1.return!=null){_iterator1.return()}}finally{if(_didIteratorError1){throw _iteratorError1}}}return!0}function qv(r){r=_to_consumable_array(r);var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;try{for(var _iterator=r[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var _step_value=_step.value,e=_step_value.expr,t=_step_value.options;if(e.startsWith("!")||e.includes("*")||e.endsWith("**"))continue;var n=new Si("".concat(e.endsWith("/")?e:e+"/","**"),t);r.push(n)}}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}return r}var Xc=/*#__PURE__*/function(_Xd_Modal){"use strict";_inherits(Xc1,_Xd_Modal);function Xc1(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0;_class_call_check(this,Xc1);var _this;_this=_call_super(this,Xc1,[t.app]);_this.plugin=t;_this.onSave=i;_this.filters=Ac(n);return _this}_create_class(Xc1,[{key:"onOpen",value:function onOpen(){var _this=this;var _this1=this,t=_this1.contentEl;t.empty(),t.createEl("h2",{text:P.t("settings.filters.edit")}),t.createEl("p",{text:P.t("settings.filters.description"),cls:"setting-item-description"});var n=t.createDiv({cls:"flex flex-col gap-2 pb-2"}),i=function(){n.empty(),_this.filters.forEach(function(a,o){var l=function l(){var _c_classList,_c_classList1,_c_classList2,_c_classList3;var p=ZZ(a),x=["bg-[var(--interactive-accent)]!"],h=["background-none!","hover:bg-[--interactive-normal]!"];p.caseSensitive?((_c_classList=c.classList).add.apply(_c_classList,_to_consumable_array(x)),(_c_classList1=c.classList).remove.apply(_c_classList1,_to_consumable_array(h))):((_c_classList2=c.classList).remove.apply(_c_classList2,_to_consumable_array(x)),(_c_classList3=c.classList).add.apply(_c_classList3,_to_consumable_array(h)))};var s=n.createDiv({cls:"flex gap-2"}),u=n.createEl("input",{type:"text",cls:"flex-1",placeholder:P.t("settings.filters.placeholder"),value:a.expr});u.spellcheck=!1,u.addEventListener("input",function(){a.expr=u.value,_this.filters[o]=a});var c=n.createEl("button",{text:"Aa",cls:"shadow-none!"});l(),c.addEventListener("click",function(){a.options.caseSensitive=!a.options.caseSensitive,l()});var f=n.createEl("button",{text:P.t("settings.filters.remove")}),d=!1;f.addEventListener("click",function(){d?(_this.filters.splice(o,1),i()):(d=!0,f.setText(P.t("settings.filters.confirmRemove")),f.addClass("mod-warning"))}),f.addEventListener("blur",function(){d=!1,f.setText(P.t("settings.filters.remove")),f.removeClass("mod-warning")}),s.appendChild(u),s.appendChild(c),s.appendChild(f)})};i(),new Xd.Setting(t).addButton(function(a){a.setButtonText(P.t("settings.filters.add")).onClick(function(){_this.filters.push({expr:"",options:{caseSensitive:!1}}),i()})}),new Xd.Setting(t).addButton(function(a){a.setButtonText(P.t("settings.filters.save")).setCta().onClick(function(){_this.onSave(_this.filters),_this.close()})}).addButton(function(a){a.setButtonText(P.t("settings.filters.cancel")).onClick(function(){_this.close()})})}},{key:"onClose",value:function onClose(){var _this=this,t=_this.contentEl;t.empty()}}]);return Xc1}(Xd.Modal);var Yd=/*#__PURE__*/function(on1){"use strict";_inherits(Yd1,on1);function Yd1(){_class_call_check(this,Yd1);return _call_super(this,Yd1,arguments)}_create_class(Yd1,[{key:"display",value:function display(){return D(this,null,function(){var _this;return _ts_generator(this,function(_state){_this=this;this.containerEl.empty(),new Tv.Setting(this.containerEl).setName(P.t("settings.sections.filters")).setHeading(),new Tv.Setting(this.containerEl).setName(P.t("settings.filters.include.name")).setDesc(P.t("settings.filters.include.desc")).addButton(function(e){e.setButtonText(P.t("settings.filters.edit")).onClick(function(){new Xc(_this.plugin,_this.plugin.settings.filterRules.inclusionRules,function(t){return D(_this,null,function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:this.plugin.settings.filterRules.inclusionRules=t;return[4,this.plugin.saveSettings()];case 1:_state.sent(),this.display();return[2]}})})}).open()})}),new Tv.Setting(this.containerEl).setName(P.t("settings.filters.exclude.name")).setDesc(P.t("settings.filters.exclude.desc")).addButton(function(e){e.setButtonText(P.t("settings.filters.edit")).onClick(function(){new Xc(_this.plugin,_this.plugin.settings.filterRules.exclusionRules,function(t){return D(_this,null,function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:this.plugin.settings.filterRules.exclusionRules=t;return[4,this.plugin.saveSettings()];case 1:_state.sent(),this.display();return[2]}})})}).open()})});return[2]})})}}]);return Yd1}(on);var _o=require("obsidian");function hT(r){return r!=null&&(typeof r==="undefined"?"undefined":_type_of(r))=="object"&&r["@@functional/placeholder"]===!0}function Jd(r){return function e(t){return arguments.length===0||hT(t)?e:r.apply(this,arguments)}}var urr=Jd(function(e){return e==null}),eee=urr;var crr=Jd(function(e){return!eee(e)}),Os=crr;function Zd(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new Set;var n;if(bq(r))return"null";if(vq(r))return String(r);if(gq(r))return JSON.stringify(r);if(yq(r))return Fg(r)?String(r):"null";if(wq(r)||ds(r)||jn(r))return;if((typeof r==="undefined"?"undefined":_type_of(r))=="bigint")throw new TypeError("Do not know how to serialize a BigInt");if(_q(r))return JSON.stringify(String(r));if(mq(r))return Fg(r.getTime())?JSON.stringify(r.toISOString()):"null";if(pq(r))return JSON.stringify({type:"Error",value:(n=r==null?void 0:r.toString())!=null?n:{name:r.name,message:r.message}});if((typeof r==="undefined"?"undefined":_type_of(r))!="object"||r===null)throw new Error("Internal error: Unexpected non-object type: ".concat(typeof r==="undefined"?"undefined":_type_of(r)));if(e.has(r))throw new TypeError("Converting circular structure to JSON");e.add(r);var t;try{if(ir(r))t="[".concat(xq(r,function(a){var o=Zd(a,e);return o===void 0?"null":o}).join(","),"]");else{var i=Object.keys(r),a=[];i.forEach(function(o){var s;try{var _$u=r[o];s=Zd(_$u,e)}catch(u){var c="Error accessing property";if(_instanceof(u,Error))c=u.message;else if((typeof u==="undefined"?"undefined":_type_of(u))=="object"&&u!==null&&"message"in u&&typeof u.message=="string")c=u.message;else try{c=String(u)}catch(l){}s=JSON.stringify(c)}if(s!==void 0){var _$u1=JSON.stringify(o);a.push("".concat(_$u1,":").concat(s))}}),t="{".concat(a.join(","),"}")}}finally{e.delete(r)}return t}function ree(r){if(typeof r=="string")return r;try{return JSON.stringify(r)}catch(e){try{return Zd(r)}catch(t){}}}var ep=/*#__PURE__*/function(on1){"use strict";_inherits(ep1,on1);function ep1(){_class_call_check(this,ep1);return _call_super(this,ep1,arguments)}_create_class(ep1,[{key:"display",value:function display(){return D(this,null,function(){var _this;return _ts_generator(this,function(_state){_this=this;this.containerEl.empty(),new _o.Setting(this.containerEl).setName(P.t("settings.log.title")).setHeading(),new _o.Setting(this.containerEl).setName(P.t("settings.log.name")).setDesc(P.t("settings.log.desc")).addButton(function(e){e.setButtonText(P.t("settings.log.saveToNote")).onClick(function(){return D(_this,null,function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,this.saveLogsToNote()];case 1:_state.sent();return[2]}})})})}),new _o.Setting(this.containerEl).setName(P.t("settings.log.clearName")).setDesc(P.t("settings.log.clearDesc")).addButton(function(e){e.setButtonText(P.t("settings.log.clear")).onClick(function(){_this.plugin.loggerService.clear(),new _o.Notice(P.t("settings.log.cleared"))})});return[2]})})}},{key:"logs",get:function get(){return this.plugin.loggerService.logs.map(ree).filter(Os).join("\n\n")}},{key:"saveLogsToNote",value:function saveLogsToNote(){return D(this,null,function(){var t,n,i,a,_tmp,s,e;return _ts_generator(this,function(_state){switch(_state.label){case 0:_state.trys.push([0,6,,7]);t="nutstore-logs-".concat(new Date().toISOString().replace(/[:.]/g,"-"),".md"),n="nutstore-sync/logs",i="".concat(n,"/").concat(t),a="# Nutstore Plugin Logs\n\nGenerated at: ".concat(new Date().toLocaleString(),"\n\n---\n\n").concat(this.logs);return[4,this.app.vault.adapter.exists(n)];case 1:_tmp=_state.sent();if(_tmp)return[3,3];return[4,this.app.vault.createFolder(n)];case 2:_tmp=_state.sent();_state.label=3;case 3:_tmp;return[4,this.app.vault.create(i,a)];case 4:s=_state.sent();new _o.Notice(P.t("settings.log.savedToNote",{fileName:i}));return[4,this.app.workspace.getLeaf().openFile(s)];case 5:_state.sent();return[3,7];case 6:e=_state.sent();new _o.Notice(P.t("settings.log.saveError")),console.error("Failed to save logs to note:",e);return[3,7];case 7:return[2]}})})}}]);return ep1}(on);var xT=null;function gT(r){xT=r}function lrr(){return ws(function(){return!!xT},100)}function Jt(){return D(this,null,function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,lrr()];case 1:return[2,(_state.sent(),xT.settings)]}})})}var Av=/*#__PURE__*/function(_Ov_PluginSettingTab){"use strict";_inherits(Av1,_Ov_PluginSettingTab);function Av1(t,n){_class_call_check(this,Av1);var _this;_this=_call_super(this,Av1,[t,n]);_this.subSso=kY().subscribe(function(){_this.display()});_this.plugin=n,new Ov.Setting(_this.containerEl).setName(P.t("settings.backupWarning.name")).setDesc(P.t("settings.backupWarning.desc")),_this.accountSettings=new Nd(_this.app,_this.plugin,_this,_this.containerEl.createDiv()),_this.commonSettings=new Qd(_this.app,_this.plugin,_this,_this.containerEl.createDiv()),_this.filterSettings=new Yd(_this.app,_this.plugin,_this,_this.containerEl.createDiv()),_this.cacheSettings=new Hd(_this.app,_this.plugin,_this,_this.containerEl.createDiv()),_this.logSettings=new ep(_this.app,_this.plugin,_this,_this.containerEl.createDiv());return _this}_create_class(Av1,[{key:"display",value:function display(){return D(this,null,function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,this.accountSettings.display()];case 1:_state.sent();return[4,this.commonSettings.display()];case 2:_state.sent();return[4,this.filterSettings.display()];case 3:_state.sent();return[4,this.cacheSettings.display()];case 4:_state.sent();return[4,this.logSettings.display()];case 5:_state.sent();return[2]}})})}},{key:"isSSO",get:function get(){return this.plugin.settings.loginMode==="sso"}},{key:"hide",value:function hide(){return D(this,null,function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,this.accountSettings.hide()];case 1:_state.sent();return[2]}})})}}]);return Av1}(Ov.PluginSettingTab);var Rs=require("obsidian");function tee(r,e){return D(this,null,function(){var t,n,i,_n,_t1,o,s,u,c,l;function a(o){return o=(0,Rs.normalizePath)(o),!i.some(function(s){return s.test(o)})}return _ts_generator(this,function(_state){switch(_state.label){case 0:t=[],n=[e],i=[new Si("".concat(r.configDir,"/plugins/*/node_modules"),{caseSensitive:!0})];_state.label=1;case 1:if(!(n.length>0))return[3,4];o=n.shift();if($n(o))return[3,3];s=r.getAbstractFileByPath((0,Rs.normalizePath)(o));if(!s||!_instanceof(s,Rs.TFolder))return[3,3];u=s.children.filter(function(f){return!_instanceof(f,Rs.TFolder)}).map(function(f){return f.path}),c=s.children.filter(function(f){return _instanceof(f,Rs.TFolder)}).map(function(f){return f.path});c=c.filter(a),(_n=n).push.apply(_n,_to_consumable_array(c));return[4,Promise.all(_to_consumable_array(u).concat(_to_consumable_array(c)).map(Rd(Xt,r))).then(function(f){return f.filter(Os)})];case 2:l=_state.sent();(_t1=t).push.apply(_t1,_to_consumable_array(l));_state.label=3;case 3:return[3,1];case 4:return[2,t]}})})}var nee=ze(Qr());function vT(r){return r==="/"||r==="."||r===""}function rp(r,e){var t=new Set(e),n=new Map(r.map(function(a){return[a.path,a]})),i=new Map(_to_consumable_array(t).filter(function(a){return a.isDir}).map(function(a){return[a.path,a]}));var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;try{for(var _iterator=e[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var _step_value=_step.value,a=_step_value.path;for(;a=(0,nee.dirname)(a),!vT(a);){if(i.has(a))continue;var o=n.get(a);!o||!o.isDir||(i.set(a,o),t.add(o))}}}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}return _to_consumable_array(t)}var Rv=/*#__PURE__*/function(){"use strict";function Rv1(e){_class_call_check(this,Rv1);this.options=e}_create_class(Rv1,[{key:"walk",value:function walk(){return D(this,null,function(){var e,t,n,i,a,o,s;return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,Jt()];case 1:e=_state.sent(),t=this.buildRules(e==null?void 0:e.filterRules.exclusionRules),n=this.buildRules(e==null?void 0:e.filterRules.inclusionRules);return[4,tee(this.options.vault,this.options.vault.getRoot().path)];case 2:i=_state.sent(),a=i.filter(function(u){return Ev(u.path,n,t)}),o=rp(i,a),s=new Set(o.map(function(u){return u.path}));return[2,i.map(function(u){return{stat:u,ignored:!s.has(u.path)}})]}})})}},{key:"buildRules",value:function buildRules(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return qv(e.filter(function(t){return!Sv(t)}).map(function(param){var t=param.expr,n=param.options;return new Si(t,n)}))}}]);return Rv1}();var Yc=function Yc1(){return Yc=Object.assign||function(r){for(var e,t=1,n=arguments.length;t<n;t++){e=arguments[t];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i])}return r},Yc.apply(this,arguments)},frr="~",drr="~~";function mT(r,e){for(var t={},n={},i=r.split(drr),a=!1,o=0;i.length>o;o++){for(var s=i[o].split(frr),u=0;u<s.length;u+=2){var c=s[u],l=s[u+1],f="&"+c+";";t[f]=l,a&&(t["&"+c]=l),n[l]=f}a=!0}return e?{entities:Yc(Yc({},t),e.entities),characters:Yc(Yc({},n),e.characters)}:{entities:t,characters:n}}var Iv={xml:/&(?:#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+);?/g,html4:/&notin;|&(?:nbsp|iexcl|cent|pound|curren|yen|brvbar|sect|uml|copy|ordf|laquo|not|shy|reg|macr|deg|plusmn|sup2|sup3|acute|micro|para|middot|cedil|sup1|ordm|raquo|frac14|frac12|frac34|iquest|Agrave|Aacute|Acirc|Atilde|Auml|Aring|AElig|Ccedil|Egrave|Eacute|Ecirc|Euml|Igrave|Iacute|Icirc|Iuml|ETH|Ntilde|Ograve|Oacute|Ocirc|Otilde|Ouml|times|Oslash|Ugrave|Uacute|Ucirc|Uuml|Yacute|THORN|szlig|agrave|aacute|acirc|atilde|auml|aring|aelig|ccedil|egrave|eacute|ecirc|euml|igrave|iacute|icirc|iuml|eth|ntilde|ograve|oacute|ocirc|otilde|ouml|divide|oslash|ugrave|uacute|ucirc|uuml|yacute|thorn|yuml|quot|amp|lt|gt|#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+);?/g,html5:/&centerdot;|&copysr;|&divideontimes;|&gtcc;|&gtcir;|&gtdot;|&gtlPar;|&gtquest;|&gtrapprox;|&gtrarr;|&gtrdot;|&gtreqless;|&gtreqqless;|&gtrless;|&gtrsim;|&ltcc;|&ltcir;|&ltdot;|&lthree;|&ltimes;|&ltlarr;|&ltquest;|&ltrPar;|&ltri;|&ltrie;|&ltrif;|&notin;|&notinE;|&notindot;|&notinva;|&notinvb;|&notinvc;|&notni;|&notniva;|&notnivb;|&notnivc;|&parallel;|&timesb;|&timesbar;|&timesd;|&(?:AElig|AMP|Aacute|Acirc|Agrave|Aring|Atilde|Auml|COPY|Ccedil|ETH|Eacute|Ecirc|Egrave|Euml|GT|Iacute|Icirc|Igrave|Iuml|LT|Ntilde|Oacute|Ocirc|Ograve|Oslash|Otilde|Ouml|QUOT|REG|THORN|Uacute|Ucirc|Ugrave|Uuml|Yacute|aacute|acirc|acute|aelig|agrave|amp|aring|atilde|auml|brvbar|ccedil|cedil|cent|copy|curren|deg|divide|eacute|ecirc|egrave|eth|euml|frac12|frac14|frac34|gt|iacute|icirc|iexcl|igrave|iquest|iuml|laquo|lt|macr|micro|middot|nbsp|not|ntilde|oacute|ocirc|ograve|ordf|ordm|oslash|otilde|ouml|para|plusmn|pound|quot|raquo|reg|sect|shy|sup1|sup2|sup3|szlig|thorn|times|uacute|ucirc|ugrave|uml|uuml|yacute|yen|yuml|#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+);?/g},Is={};Is.xml=mT("lt~<~gt~>~quot~\"~apos~'~amp~&");Is.html4=mT("apos~'~OElig~Œ~oelig~œ~Scaron~Š~scaron~š~Yuml~Ÿ~circ~ˆ~tilde~˜~ensp~~emsp~~thinsp~~zwnj~~zwj~~lrm~~rlm~~ndash~~mdash~—~lsquo~~rsquo~~sbquo~~ldquo~“~rdquo~”~bdquo~„~dagger~†~Dagger~‡~permil~‰~lsaquo~~rsaquo~~euro~€~fnof~ƒ~Alpha~Α~Beta~Β~Gamma~Γ~Delta~Δ~Epsilon~Ε~Zeta~Ζ~Eta~Η~Theta~Θ~Iota~Ι~Kappa~Κ~Lambda~Λ~Mu~Μ~Nu~Ν~Xi~Ξ~Omicron~Ο~Pi~Π~Rho~Ρ~Sigma~Σ~Tau~Τ~Upsilon~Υ~Phi~Φ~Chi~Χ~Psi~Ψ~Omega~Ω~alpha~α~beta~β~gamma~γ~delta~δ~epsilon~ε~zeta~ζ~eta~η~theta~θ~iota~ι~kappa~κ~lambda~λ~mu~μ~nu~ν~xi~ξ~omicron~ο~pi~π~rho~ρ~sigmaf~ς~sigma~σ~tau~τ~upsilon~υ~phi~φ~chi~χ~psi~ψ~omega~ω~thetasym~ϑ~upsih~ϒ~piv~ϖ~bull~•~hellip~…~prime~~Prime~″~oline~‾~frasl~~weierp~℘~image~~real~~trade~™~alefsym~ℵ~larr~←~uarr~↑~rarr~→~darr~↓~harr~↔~crarr~↵~lArr~⇐~uArr~⇑~rArr~⇒~dArr~⇓~hArr~⇔~forall~∀~part~∂~exist~∃~empty~∅~nabla~∇~isin~∈~notin~∉~ni~∋~prod~∏~sum~∑~minus~~lowast~~radic~√~prop~∝~infin~∞~ang~∠~and~∧~or~~cap~∩~cup~~int~∫~there4~∴~sim~~cong~≅~asymp~≈~ne~≠~equiv~≡~le~≤~ge~≥~sub~⊂~sup~⊃~nsub~⊄~sube~⊆~supe~⊇~oplus~⊕~otimes~⊗~perp~⊥~sdot~⋅~lceil~⌈~rceil~⌉~lfloor~⌊~rfloor~⌋~lang~〈~rang~〉~loz~◊~spades~♠~clubs~♣~hearts~♥~diams~♦~~nbsp~\xa0~iexcl~\xa1~cent~\xa2~pound~\xa3~curren~\xa4~yen~\xa5~brvbar~\xa6~sect~\xa7~uml~\xa8~copy~\xa9~ordf~\xaa~laquo~\xab~not~\xac~shy~\xad~reg~\xae~macr~\xaf~deg~\xb0~plusmn~\xb1~sup2~\xb2~sup3~\xb3~acute~\xb4~micro~\xb5~para~\xb6~middot~\xb7~cedil~\xb8~sup1~\xb9~ordm~\xba~raquo~\xbb~frac14~\xbc~frac12~\xbd~frac34~\xbe~iquest~\xbf~Agrave~\xc0~Aacute~\xc1~Acirc~\xc2~Atilde~\xc3~Auml~\xc4~Aring~\xc5~AElig~\xc6~Ccedil~\xc7~Egrave~\xc8~Eacute~\xc9~Ecirc~\xca~Euml~\xcb~Igrave~\xcc~Iacute~\xcd~Icirc~\xce~Iuml~\xcf~ETH~\xd0~Ntilde~\xd1~Ograve~\xd2~Oacute~\xd3~Ocirc~\xd4~Otilde~\xd5~Ouml~\xd6~times~\xd7~Oslash~\xd8~Ugrave~\xd9~Uacute~\xda~Ucirc~\xdb~Uuml~\xdc~Yacute~\xdd~THORN~\xde~szlig~\xdf~agrave~\xe0~aacute~\xe1~acirc~\xe2~atilde~\xe3~auml~\xe4~aring~\xe5~aelig~\xe6~ccedil~\xe7~egrave~\xe8~eacute~\xe9~ecirc~\xea~euml~\xeb~igrave~\xec~iacute~\xed~icirc~\xee~iuml~\xef~eth~\xf0~ntilde~\xf1~ograve~\xf2~oacute~\xf3~ocirc~\xf4~otilde~\xf5~ouml~\xf6~divide~\xf7~oslash~\xf8~ugrave~\xf9~uacute~\xfa~ucirc~\xfb~uuml~\xfc~yacute~\xfd~thorn~\xfe~yuml~\xff~quot~\"~amp~&~lt~<~gt~>");Is.html5=mT('Abreve~Ă~Acy~А~Afr~\uD835\uDD04~Amacr~Ā~And~⩓~Aogon~Ą~Aopf~\uD835\uDD38~ApplyFunction~~Ascr~\uD835\uDC9C~Assign~≔~Backslash~~Barv~⫧~Barwed~⌆~Bcy~Б~Because~∵~Bernoullis~~Bfr~\uD835\uDD05~Bopf~\uD835\uDD39~Breve~˘~Bscr~~Bumpeq~≎~CHcy~Ч~Cacute~Ć~Cap~⋒~CapitalDifferentialD~~Cayleys~~Ccaron~Č~Ccirc~Ĉ~Cconint~∰~Cdot~Ċ~Cedilla~\xb8~CenterDot~\xb7~Cfr~~CircleDot~⊙~CircleMinus~⊖~CirclePlus~⊕~CircleTimes~⊗~ClockwiseContourIntegral~∲~CloseCurlyDoubleQuote~”~CloseCurlyQuote~~Colon~∷~Colone~⩴~Congruent~≡~Conint~∯~ContourIntegral~∮~Copf~~Coproduct~∐~CounterClockwiseContourIntegral~∳~Cross~~Cscr~\uD835\uDC9E~Cup~⋓~CupCap~≍~DD~~DDotrahd~⤑~DJcy~Ђ~DScy~Ѕ~DZcy~Џ~Darr~↡~Dashv~⫤~Dcaron~Ď~Dcy~Д~Del~∇~Dfr~\uD835\uDD07~DiacriticalAcute~\xb4~DiacriticalDot~˙~DiacriticalDoubleAcute~˝~DiacriticalGrave~`~DiacriticalTilde~˜~Diamond~⋄~DifferentialD~~Dopf~\uD835\uDD3B~Dot~\xa8~DotDot~⃜~DotEqual~≐~DoubleContourIntegral~∯~DoubleDot~\xa8~DoubleDownArrow~⇓~DoubleLeftArrow~⇐~DoubleLeftRightArrow~⇔~DoubleLeftTee~⫤~DoubleLongLeftArrow~⟸~DoubleLongLeftRightArrow~⟺~DoubleLongRightArrow~⟹~DoubleRightArrow~⇒~DoubleRightTee~⊨~DoubleUpArrow~⇑~DoubleUpDownArrow~⇕~DoubleVerticalBar~∥~DownArrow~↓~DownArrowBar~⤓~DownArrowUpArrow~⇵~DownBreve~̑~DownLeftRightVector~⥐~DownLeftTeeVector~⥞~DownLeftVector~↽~DownLeftVectorBar~⥖~DownRightTeeVector~⥟~DownRightVector~⇁~DownRightVectorBar~⥗~DownTee~~DownTeeArrow~↧~Downarrow~⇓~Dscr~\uD835\uDC9F~Dstrok~Đ~ENG~Ŋ~Ecaron~Ě~Ecy~Э~Edot~Ė~Efr~\uD835\uDD08~Element~∈~Emacr~Ē~EmptySmallSquare~◻~EmptyVerySmallSquare~▫~Eogon~Ę~Eopf~\uD835\uDD3C~Equal~⩵~EqualTilde~≂~Equilibrium~⇌~Escr~~Esim~⩳~Exists~∃~ExponentialE~~Fcy~Ф~Ffr~\uD835\uDD09~FilledSmallSquare~◼~FilledVerySmallSquare~▪~Fopf~\uD835\uDD3D~ForAll~∀~Fouriertrf~~Fscr~~GJcy~Ѓ~Gammad~Ϝ~Gbreve~Ğ~Gcedil~Ģ~Gcirc~Ĝ~Gcy~Г~Gdot~Ġ~Gfr~\uD835\uDD0A~Gg~⋙~Gopf~\uD835\uDD3E~GreaterEqual~≥~GreaterEqualLess~⋛~GreaterFullEqual~≧~GreaterGreater~⪢~GreaterLess~≷~GreaterSlantEqual~⩾~GreaterTilde~≳~Gscr~\uD835\uDCA2~Gt~≫~HARDcy~Ъ~Hacek~ˇ~Hat~^~Hcirc~Ĥ~Hfr~~HilbertSpace~~Hopf~~HorizontalLine~─~Hscr~~Hstrok~Ħ~HumpDownHump~≎~HumpEqual~≏~IEcy~Е~IJlig~IJ~IOcy~Ё~Icy~И~Idot~İ~Ifr~~Im~~Imacr~Ī~ImaginaryI~~Implies~⇒~Int~∬~Integral~∫~Intersection~⋂~InvisibleComma~~InvisibleTimes~~Iogon~Į~Iopf~\uD835\uDD40~Iscr~~Itilde~Ĩ~Iukcy~І~Jcirc~Ĵ~Jcy~Й~Jfr~\uD835\uDD0D~Jopf~\uD835\uDD41~Jscr~\uD835\uDCA5~Jsercy~Ј~Jukcy~Є~KHcy~Х~KJcy~Ќ~Kcedil~Ķ~Kcy~К~Kfr~\uD835\uDD0E~Kopf~\uD835\uDD42~Kscr~\uD835\uDCA6~LJcy~Љ~Lacute~Ĺ~Lang~⟪~Laplacetrf~~Larr~↞~Lcaron~Ľ~Lcedil~Ļ~Lcy~Л~LeftAngleBracket~⟨~LeftArrow~←~LeftArrowBar~⇤~LeftArrowRightArrow~⇆~LeftCeiling~⌈~LeftDoubleBracket~⟦~LeftDownTeeVector~⥡~LeftDownVector~⇃~LeftDownVectorBar~⥙~LeftFloor~⌊~LeftRightArrow~↔~LeftRightVector~⥎~LeftTee~⊣~LeftTeeArrow~↤~LeftTeeVector~⥚~LeftTriangle~⊲~LeftTriangleBar~⧏~LeftTriangleEqual~⊴~LeftUpDownVector~⥑~LeftUpTeeVector~⥠~LeftUpVector~↿~LeftUpVectorBar~⥘~LeftVector~↼~LeftVectorBar~⥒~Leftarrow~⇐~Leftrightarrow~⇔~LessEqualGreater~⋚~LessFullEqual~≦~LessGreater~≶~LessLess~⪡~LessSlantEqual~⩽~LessTilde~≲~Lfr~\uD835\uDD0F~Ll~⋘~Lleftarrow~⇚~Lmidot~Ŀ~LongLeftArrow~⟵~LongLeftRightArrow~⟷~LongRightArrow~⟶~Longleftarrow~⟸~Longleftrightarrow~⟺~Longrightarrow~⟹~Lopf~\uD835\uDD43~LowerLeftArrow~↙~LowerRightArrow~↘~Lscr~~Lsh~↰~Lstrok~Ł~Lt~≪~Map~⤅~Mcy~М~MediumSpace~~Mellintrf~~Mfr~\uD835\uDD10~MinusPlus~∓~Mopf~\uD835\uDD44~Mscr~~NJcy~Њ~Nacute~Ń~Ncaron~Ň~Ncedil~Ņ~Ncy~Н~NegativeMediumSpace~~NegativeThickSpace~~NegativeThinSpace~~NegativeVeryThinSpace~~NestedGreaterGreater~≫~NestedLessLess~≪~NewLine~\n~Nfr~\uD835\uDD11~NoBreak~~NonBreakingSpace~\xa0~Nopf~~Not~⫬~NotCongruent~≢~NotCupCap~≭~NotDoubleVerticalBar~∦~NotElement~∉~NotEqual~≠~NotEqualTilde~≂̸~NotExists~∄~NotGreater~≯~NotGreaterEqual~≱~NotGreaterFullEqual~≧̸~NotGreaterGreater~≫̸~NotGreaterLess~≹~NotGreaterSlantEqual~⩾̸~NotGreaterTilde~≵~NotHumpDownHump~≎̸~NotHumpEqual~≏̸~NotLeftTriangle~⋪~NotLeftTriangleBar~⧏̸~NotLeftTriangleEqual~⋬~NotLess~≮~NotLessEqual~≰~NotLessGreater~≸~NotLessLess~≪̸~NotLessSlantEqual~⩽̸~NotLessTilde~≴~NotNestedGreaterGreater~⪢̸~NotNestedLessLess~⪡̸~NotPrecedes~⊀~NotPrecedesEqual~⪯̸~NotPrecedesSlantEqual~⋠~NotReverseElement~∌~NotRightTriangle~⋫~NotRightTriangleBar~⧐̸~NotRightTriangleEqual~⋭~NotSquareSubset~⊏̸~NotSquareSubsetEqual~⋢~NotSquareSuperset~⊐̸~NotSquareSupersetEqual~⋣~NotSubset~⊂⃒~NotSubsetEqual~⊈~NotSucceeds~⊁~NotSucceedsEqual~⪰̸~NotSucceedsSlantEqual~⋡~NotSucceedsTilde~≿̸~NotSuperset~⊃⃒~NotSupersetEqual~⊉~NotTilde~≁~NotTildeEqual~≄~NotTildeFullEqual~≇~NotTildeTilde~≉~NotVerticalBar~∤~Nscr~\uD835\uDCA9~Ocy~О~Odblac~Ő~Ofr~\uD835\uDD12~Omacr~Ō~Oopf~\uD835\uDD46~OpenCurlyDoubleQuote~“~OpenCurlyQuote~~Or~⩔~Oscr~\uD835\uDCAA~Otimes~⨷~OverBar~‾~OverBrace~⏞~OverBracket~⎴~OverParenthesis~⏜~PartialD~∂~Pcy~П~Pfr~\uD835\uDD13~PlusMinus~\xb1~Poincareplane~~Popf~~Pr~⪻~Precedes~≺~PrecedesEqual~⪯~PrecedesSlantEqual~≼~PrecedesTilde~≾~Product~∏~Proportion~∷~Proportional~∝~Pscr~\uD835\uDCAB~Qfr~\uD835\uDD14~Qopf~~Qscr~\uD835\uDCAC~RBarr~⤐~Racute~Ŕ~Rang~⟫~Rarr~↠~Rarrtl~⤖~Rcaron~Ř~Rcedil~Ŗ~Rcy~Р~Re~~ReverseElement~∋~ReverseEquilibrium~⇋~ReverseUpEquilibrium~⥯~Rfr~~RightAngleBracket~⟩~RightArrow~→~RightArrowBar~⇥~RightArrowLeftArrow~⇄~RightCeiling~⌉~RightDoubleBracket~⟧~RightDownTeeVector~⥝~RightDownVector~⇂~RightDownVectorBar~⥕~RightFloor~⌋~RightTee~⊢~RightTeeArrow~↦~RightTeeVector~⥛~RightTriangle~⊳~RightTriangleBar~⧐~RightTriangleEqual~⊵~RightUpDownVector~⥏~RightUpTeeVector~⥜~RightUpVector~↾~RightUpVectorBar~⥔~RightVector~⇀~RightVectorBar~⥓~Rightarrow~⇒~Ropf~~RoundImplies~⥰~Rrightarrow~⇛~Rscr~~Rsh~↱~RuleDelayed~⧴~SHCHcy~Щ~SHcy~Ш~SOFTcy~Ь~Sacute~Ś~Sc~⪼~Scedil~Ş~Scirc~Ŝ~Scy~С~Sfr~\uD835\uDD16~ShortDownArrow~↓~ShortLeftArrow~←~ShortRightArrow~→~ShortUpArrow~↑~SmallCircle~∘~Sopf~\uD835\uDD4A~Sqrt~√~Square~□~SquareIntersection~⊓~SquareSubset~⊏~SquareSubsetEqual~⊑~SquareSuperset~⊐~SquareSupersetEqual~⊒~SquareUnion~⊔~Sscr~\uD835\uDCAE~Star~⋆~Sub~⋐~Subset~⋐~SubsetEqual~⊆~Succeeds~≻~SucceedsEqual~⪰~SucceedsSlantEqual~≽~SucceedsTilde~≿~SuchThat~∋~Sum~∑~Sup~⋑~Superset~⊃~SupersetEqual~⊇~Supset~⋑~TRADE~™~TSHcy~Ћ~TScy~Ц~Tab~ ~Tcaron~Ť~Tcedil~Ţ~Tcy~Т~Tfr~\uD835\uDD17~Therefore~∴~ThickSpace~~ThinSpace~~Tilde~~TildeEqual~≃~TildeFullEqual~≅~TildeTilde~≈~Topf~\uD835\uDD4B~TripleDot~⃛~Tscr~\uD835\uDCAF~Tstrok~Ŧ~Uarr~↟~Uarrocir~⥉~Ubrcy~Ў~Ubreve~Ŭ~Ucy~У~Udblac~Ű~Ufr~\uD835\uDD18~Umacr~Ū~UnderBar~_~UnderBrace~⏟~UnderBracket~⎵~UnderParenthesis~⏝~Union~~UnionPlus~⊎~Uogon~Ų~Uopf~\uD835\uDD4C~UpArrow~↑~UpArrowBar~⤒~UpArrowDownArrow~⇅~UpDownArrow~↕~UpEquilibrium~⥮~UpTee~⊥~UpTeeArrow~↥~Uparrow~⇑~Updownarrow~⇕~UpperLeftArrow~↖~UpperRightArrow~↗~Upsi~ϒ~Uring~Ů~Uscr~\uD835\uDCB0~Utilde~Ũ~VDash~⊫~Vbar~⫫~Vcy~В~Vdash~⊩~Vdashl~⫦~Vee~~Verbar~‖~Vert~‖~VerticalBar~~VerticalLine~|~VerticalSeparator~❘~VerticalTilde~≀~VeryThinSpace~~Vfr~\uD835\uDD19~Vopf~\uD835\uDD4D~Vscr~\uD835\uDCB1~Vvdash~⊪~Wcirc~Ŵ~Wedge~⋀~Wfr~\uD835\uDD1A~Wopf~\uD835\uDD4E~Wscr~\uD835\uDCB2~Xfr~\uD835\uDD1B~Xopf~\uD835\uDD4F~Xscr~\uD835\uDCB3~YAcy~Я~YIcy~Ї~YUcy~Ю~Ycirc~Ŷ~Ycy~Ы~Yfr~\uD835\uDD1C~Yopf~\uD835\uDD50~Yscr~\uD835\uDCB4~ZHcy~Ж~Zacute~Ź~Zcaron~Ž~Zcy~З~Zdot~Ż~ZeroWidthSpace~~Zfr~~Zopf~~Zscr~\uD835\uDCB5~abreve~ă~ac~∾~acE~∾̳~acd~∿~acy~а~af~~afr~\uD835\uDD1E~aleph~ℵ~amacr~ā~amalg~⨿~andand~⩕~andd~⩜~andslope~⩘~andv~⩚~ange~⦤~angle~∠~angmsd~∡~angmsdaa~⦨~angmsdab~⦩~angmsdac~⦪~angmsdad~⦫~angmsdae~⦬~angmsdaf~⦭~angmsdag~⦮~angmsdah~⦯~angrt~∟~angrtvb~⊾~angrtvbd~⦝~angsph~∢~angst~\xc5~angzarr~⍼~aogon~ą~aopf~\uD835\uDD52~ap~≈~apE~⩰~apacir~⩯~ape~≊~apid~≋~approx~≈~approxeq~≊~ascr~\uD835\uDCB6~ast~*~asympeq~≍~awconint~∳~awint~⨑~bNot~⫭~backcong~≌~backepsilon~϶~backprime~~backsim~∽~backsimeq~⋍~barvee~⊽~barwed~⌅~barwedge~⌅~bbrk~⎵~bbrktbrk~⎶~bcong~≌~bcy~б~becaus~∵~because~∵~bemptyv~⦰~bepsi~϶~bernou~~beth~ℶ~between~≬~bfr~\uD835\uDD1F~bigcap~⋂~bigcirc~◯~bigcup~~bigodot~⨀~bigoplus~⨁~bigotimes~⨂~bigsqcup~⨆~bigstar~★~bigtriangledown~▽~bigtriangleup~△~biguplus~⨄~bigvee~~bigwedge~⋀~bkarow~⤍~blacklozenge~⧫~blacksquare~▪~blacktriangle~▴~blacktriangledown~▾~blacktriangleleft~◂~blacktriangleright~▸~blank~␣~blk12~▒~blk14~░~blk34~▓~block~█~bne~=⃥~bnequiv~≡⃥~bnot~⌐~bopf~\uD835\uDD53~bot~⊥~bottom~⊥~bowtie~⋈~boxDL~╗~boxDR~╔~boxDl~╖~boxDr~╓~boxH~═~boxHD~╦~boxHU~╩~boxHd~╤~boxHu~╧~boxUL~╝~boxUR~╚~boxUl~╜~boxUr~╙~boxV~║~boxVH~╬~boxVL~╣~boxVR~╠~boxVh~╫~boxVl~╢~boxVr~╟~boxbox~⧉~boxdL~╕~boxdR~╒~boxdl~┐~boxdr~┌~boxh~─~boxhD~╥~boxhU~╨~boxhd~┬~boxhu~┴~boxminus~⊟~boxplus~⊞~boxtimes~⊠~boxuL~╛~boxuR~╘~boxul~┘~boxur~└~boxv~│~boxvH~╪~boxvL~╡~boxvR~╞~boxvh~┼~boxvl~┤~boxvr~├~bprime~~breve~˘~bscr~\uD835\uDCB7~bsemi~⁏~bsim~∽~bsime~⋍~bsol~\\~bsolb~⧅~bsolhsub~⟈~bullet~•~bump~≎~bumpE~⪮~bumpe~≏~bumpeq~≏~cacute~ć~capand~⩄~capbrcup~⩉~capcap~⩋~capcup~⩇~capdot~⩀~caps~∩︀~caret~~caron~ˇ~ccaps~⩍~ccaron~č~ccirc~ĉ~ccups~⩌~ccupssm~⩐~cdot~ċ~cemptyv~⦲~centerdot~\xb7~cfr~\uD835\uDD20~chcy~ч~check~✓~checkmark~✓~cir~○~cirE~⧃~circeq~≗~circlearrowleft~↺~circlearrowright~↻~circledR~\xae~circledS~Ⓢ~circledast~⊛~circledcirc~⊚~circleddash~⊝~cire~≗~cirfnint~⨐~cirmid~⫯~cirscir~⧂~clubsuit~♣~colon~:~colone~≔~coloneq~≔~comma~,~commat~@~comp~∁~compfn~∘~complement~∁~complexes~~congdot~⩭~conint~∮~copf~\uD835\uDD54~coprod~∐~copysr~℗~cross~✗~cscr~\uD835\uDCB8~csub~⫏~csube~⫑~csup~⫐~csupe~⫒~ctdot~⋯~cudarrl~⤸~cudarrr~⤵~cuepr~⋞~cuesc~⋟~cularr~↶~cularrp~⤽~cupbrcap~⩈~cupcap~⩆~cupcup~⩊~cupdot~⊍~cupor~⩅~cups~~curarr~↷~curarrm~⤼~curlyeqprec~⋞~curlyeqsucc~⋟~curlyvee~⋎~curlywedge~⋏~curvearrowleft~↶~curvearrowright~↷~cuvee~⋎~cuwed~⋏~cwconint~∲~cwint~∱~cylcty~⌭~dHar~⥥~daleth~ℸ~dash~~dashv~⊣~dbkarow~⤏~dblac~˝~dcaron~ď~dcy~д~dd~~ddagger~‡~ddarr~⇊~ddotseq~⩷~demptyv~⦱~dfisht~⥿~dfr~\uD835\uDD21~dharl~⇃~dharr~⇂~diam~⋄~diamond~⋄~diamondsuit~♦~die~\xa8~digamma~ϝ~disin~⋲~div~\xf7~divideontimes~⋇~divonx~⋇~djcy~ђ~dlcorn~⌞~dlcrop~⌍~dollar~$~dopf~\uD835\uDD55~dot~˙~doteq~≐~doteqdot~≑~dotminus~∸~dotplus~∔~dotsquare~⊡~doublebarwedge~⌆~downarrow~↓~downdownarrows~⇊~downharpoonleft~⇃~downharpoonright~⇂~drbkarow~⤐~drcorn~⌟~drcrop~⌌~dscr~\uD835\uDCB9~dscy~ѕ~dsol~⧶~dstrok~đ~dtdot~⋱~dtri~▿~dtrif~▾~duarr~⇵~duhar~⥯~dwangle~⦦~dzcy~џ~dzigrarr~⟿~eDDot~⩷~eDot~≑~easter~⩮~ecaron~ě~ecir~≖~ecolon~≕~ecy~э~edot~ė~ee~~efDot~≒~efr~\uD835\uDD22~eg~⪚~egs~⪖~egsdot~⪘~el~⪙~elinters~⏧~ell~~els~⪕~elsdot~⪗~emacr~ē~emptyset~∅~emptyv~∅~emsp13~~emsp14~~eng~ŋ~eogon~ę~eopf~\uD835\uDD56~epar~⋕~eparsl~⧣~eplus~⩱~epsi~ε~epsiv~ϵ~eqcirc~≖~eqcolon~≕~eqsim~≂~eqslantgtr~⪖~eqslantless~⪕~equals~=~equest~≟~equivDD~⩸~eqvparsl~⧥~erDot~≓~erarr~⥱~escr~~esdot~≐~esim~≂~excl~!~expectation~~exponentiale~~fallingdotseq~≒~fcy~ф~female~♀~ffilig~ffi~fflig~ff~ffllig~ffl~ffr~\uD835\uDD23~filig~fi~fjlig~fj~flat~♭~fllig~fl~fltns~▱~fopf~\uD835\uDD57~fork~⋔~forkv~⫙~fpartint~⨍~frac13~⅓~frac15~⅕~frac16~⅙~frac18~⅛~frac23~⅔~frac25~⅖~frac35~⅗~frac38~⅜~frac45~⅘~frac56~⅚~frac58~⅝~frac78~⅞~frown~⌢~fscr~\uD835\uDCBB~gE~≧~gEl~⪌~gacute~ǵ~gammad~ϝ~gap~⪆~gbreve~ğ~gcirc~ĝ~gcy~г~gdot~ġ~gel~⋛~geq~≥~geqq~≧~geqslant~⩾~ges~⩾~gescc~⪩~gesdot~⪀~gesdoto~⪂~gesdotol~⪄~gesl~⋛︀~gesles~⪔~gfr~\uD835\uDD24~gg~≫~ggg~⋙~gimel~ℷ~gjcy~ѓ~gl~≷~glE~⪒~gla~⪥~glj~⪤~gnE~≩~gnap~⪊~gnapprox~⪊~gne~⪈~gneq~⪈~gneqq~≩~gnsim~⋧~gopf~\uD835\uDD58~grave~`~gscr~~gsim~≳~gsime~⪎~gsiml~⪐~gtcc~⪧~gtcir~⩺~gtdot~⋗~gtlPar~⦕~gtquest~⩼~gtrapprox~⪆~gtrarr~⥸~gtrdot~⋗~gtreqless~⋛~gtreqqless~⪌~gtrless~≷~gtrsim~≳~gvertneqq~≩︀~gvnE~≩︀~hairsp~~half~\xbd~hamilt~~hardcy~ъ~harrcir~⥈~harrw~↭~hbar~ℏ~hcirc~ĥ~heartsuit~♥~hercon~⊹~hfr~\uD835\uDD25~hksearow~⤥~hkswarow~⤦~hoarr~⇿~homtht~∻~hookleftarrow~↩~hookrightarrow~↪~hopf~\uD835\uDD59~horbar~―~hscr~\uD835\uDCBD~hslash~ℏ~hstrok~ħ~hybull~~hyphen~~ic~~icy~и~iecy~е~iff~⇔~ifr~\uD835\uDD26~ii~~iiiint~⨌~iiint~∭~iinfin~⧜~iiota~℩~ijlig~ij~imacr~ī~imagline~~imagpart~~imath~ı~imof~⊷~imped~Ƶ~in~∈~incare~℅~infintie~⧝~inodot~ı~intcal~⊺~integers~~intercal~⊺~intlarhk~⨗~intprod~⨼~iocy~ё~iogon~į~iopf~\uD835\uDD5A~iprod~⨼~iscr~\uD835\uDCBE~isinE~⋹~isindot~⋵~isins~⋴~isinsv~⋳~isinv~∈~it~~itilde~ĩ~iukcy~і~jcirc~ĵ~jcy~й~jfr~\uD835\uDD27~jmath~ȷ~jopf~\uD835\uDD5B~jscr~\uD835\uDCBF~jsercy~ј~jukcy~є~kappav~ϰ~kcedil~ķ~kcy~к~kfr~\uD835\uDD28~kgreen~ĸ~khcy~х~kjcy~ќ~kopf~\uD835\uDD5C~kscr~\uD835\uDCC0~lAarr~⇚~lAtail~⤛~lBarr~⤎~lE~≦~lEg~⪋~lHar~⥢~lacute~ĺ~laemptyv~⦴~lagran~~langd~⦑~langle~⟨~lap~⪅~larrb~⇤~larrbfs~⤟~larrfs~⤝~larrhk~↩~larrlp~↫~larrpl~⤹~larrsim~⥳~larrtl~↢~lat~⪫~latail~⤙~late~⪭~lates~⪭︀~lbarr~⤌~lbbrk~~lbrace~{~lbrack~[~lbrke~⦋~lbrksld~⦏~lbrkslu~⦍~lcaron~ľ~lcedil~ļ~lcub~{~lcy~л~ldca~⤶~ldquor~„~ldrdhar~⥧~ldrushar~⥋~ldsh~↲~leftarrow~←~leftarrowtail~↢~leftharpoondown~↽~leftharpoonup~↼~leftleftarrows~⇇~leftrightarrow~↔~leftrightarrows~⇆~leftrightharpoons~⇋~leftrightsquigarrow~↭~leftthreetimes~⋋~leg~⋚~leq~≤~leqq~≦~leqslant~⩽~les~⩽~lescc~⪨~lesdot~⩿~lesdoto~⪁~lesdotor~⪃~lesg~⋚︀~lesges~⪓~lessapprox~⪅~lessdot~⋖~lesseqgtr~⋚~lesseqqgtr~⪋~lessgtr~≶~lesssim~≲~lfisht~⥼~lfr~\uD835\uDD29~lg~≶~lgE~⪑~lhard~↽~lharu~↼~lharul~⥪~lhblk~▄~ljcy~љ~ll~≪~llarr~⇇~llcorner~⌞~llhard~⥫~lltri~◺~lmidot~ŀ~lmoust~⎰~lmoustache~⎰~lnE~≨~lnap~⪉~lnapprox~⪉~lne~⪇~lneq~⪇~lneqq~≨~lnsim~⋦~loang~⟬~loarr~⇽~lobrk~⟦~longleftarrow~⟵~longleftrightarrow~⟷~longmapsto~⟼~longrightarrow~⟶~looparrowleft~↫~looparrowright~↬~lopar~⦅~lopf~\uD835\uDD5D~loplus~⨭~lotimes~⨴~lowbar~_~lozenge~◊~lozf~⧫~lpar~(~lparlt~⦓~lrarr~⇆~lrcorner~⌟~lrhar~⇋~lrhard~⥭~lrtri~⊿~lscr~\uD835\uDCC1~lsh~↰~lsim~≲~lsime~⪍~lsimg~⪏~lsqb~[~lsquor~~lstrok~ł~ltcc~⪦~ltcir~⩹~ltdot~⋖~lthree~⋋~ltimes~⋉~ltlarr~⥶~ltquest~⩻~ltrPar~⦖~ltri~◃~ltrie~⊴~ltrif~◂~lurdshar~⥊~luruhar~⥦~lvertneqq~≨︀~lvnE~≨︀~mDDot~∺~male~♂~malt~✠~maltese~✠~map~↦~mapsto~↦~mapstodown~↧~mapstoleft~↤~mapstoup~↥~marker~▮~mcomma~⨩~mcy~м~measuredangle~∡~mfr~\uD835\uDD2A~mho~℧~mid~~midast~*~midcir~⫰~minusb~⊟~minusd~∸~minusdu~⨪~mlcp~⫛~mldr~…~mnplus~∓~models~⊧~mopf~\uD835\uDD5E~mp~∓~mscr~\uD835\uDCC2~mstpos~∾~multimap~⊸~mumap~⊸~nGg~⋙̸~nGt~≫⃒~nGtv~≫̸~nLeftarrow~⇍~nLeftrightarrow~⇎~nLl~⋘̸~nLt~≪⃒~nLtv~≪̸~nRightarrow~⇏~nVDash~⊯~nVdash~⊮~nacute~ń~nang~∠⃒~nap~≉~napE~⩰̸~napid~≋̸~napos~ʼn~napprox~≉~natur~♮~natural~♮~naturals~~nbump~≎̸~nbumpe~≏̸~ncap~⩃~ncaron~ň~ncedil~ņ~ncong~≇~ncongdot~⩭̸~ncup~⩂~ncy~н~neArr~⇗~nearhk~⤤~nearr~↗~nearrow~↗~nedot~≐̸~nequiv~≢~nesear~⤨~nesim~≂̸~nexist~∄~nexists~∄~nfr~\uD835\uDD2B~ngE~≧̸~nge~≱~ngeq~≱~ngeqq~≧̸~ngeqslant~⩾̸~nges~⩾̸~ngsim~≵~ngt~≯~ngtr~≯~nhArr~⇎~nharr~↮~nhpar~⫲~nis~⋼~nisd~⋺~niv~∋~njcy~њ~nlArr~⇍~nlE~≦̸~nlarr~↚~nldr~‥~nle~≰~nleftarrow~↚~nleftrightarrow~↮~nleq~≰~nleqq~≦̸~nleqslant~⩽̸~nles~⩽̸~nless~≮~nlsim~≴~nlt~≮~nltri~⋪~nltrie~⋬~nmid~∤~nopf~\uD835\uDD5F~notinE~⋹̸~notindot~⋵̸~notinva~∉~notinvb~⋷~notinvc~⋶~notni~∌~notniva~∌~notnivb~⋾~notnivc~⋽~npar~∦~nparallel~∦~nparsl~⫽⃥~npart~∂̸~npolint~⨔~npr~⊀~nprcue~⋠~npre~⪯̸~nprec~⊀~npreceq~⪯̸~nrArr~⇏~nrarr~↛~nrarrc~⤳̸~nrarrw~↝̸~nrightarrow~↛~nrtri~⋫~nrtrie~⋭~nsc~⊁~nsccue~⋡~nsce~⪰̸~nscr~\uD835\uDCC3~nshortmid~∤~nshortparallel~∦~nsim~≁~nsime~≄~nsimeq~≄~nsmid~∤~nspar~∦~nsqsube~⋢~nsqsupe~⋣~nsubE~⫅̸~nsube~⊈~nsubset~⊂⃒~nsubseteq~⊈~nsubseteqq~⫅̸~nsucc~⊁~nsucceq~⪰̸~nsup~⊅~nsupE~⫆̸~nsupe~⊉~nsupset~⊃⃒~nsupseteq~⊉~nsupseteqq~⫆̸~ntgl~≹~ntlg~≸~ntriangleleft~⋪~ntrianglelefteq~⋬~ntriangleright~⋫~ntrianglerighteq~⋭~num~#~numero~№~numsp~~nvDash~⊭~nvHarr~⤄~nvap~≍⃒~nvdash~⊬~nvge~≥⃒~nvgt~>⃒~nvinfin~⧞~nvlArr~⤂~nvle~≤⃒~nvlt~<⃒~nvltrie~⊴⃒~nvrArr~⤃~nvrtrie~⊵⃒~nvsim~∼⃒~nwArr~⇖~nwarhk~⤣~nwarr~↖~nwarrow~↖~nwnear~⤧~oS~Ⓢ~oast~⊛~ocir~⊚~ocy~о~odash~⊝~odblac~ő~odiv~⨸~odot~⊙~odsold~⦼~ofcir~⦿~ofr~\uD835\uDD2C~ogon~˛~ogt~⧁~ohbar~⦵~ohm~Ω~oint~∮~olarr~↺~olcir~⦾~olcross~⦻~olt~⧀~omacr~ō~omid~⦶~ominus~⊖~oopf~\uD835\uDD60~opar~⦷~operp~⦹~orarr~↻~ord~⩝~order~~orderof~~origof~⊶~oror~⩖~orslope~⩗~orv~⩛~oscr~~osol~⊘~otimesas~⨶~ovbar~⌽~par~∥~parallel~∥~parsim~⫳~parsl~⫽~pcy~п~percnt~%~period~.~pertenk~‱~pfr~\uD835\uDD2D~phiv~ϕ~phmmat~~phone~☎~pitchfork~⋔~planck~ℏ~planckh~~plankv~ℏ~plus~+~plusacir~⨣~plusb~⊞~pluscir~⨢~plusdo~∔~plusdu~⨥~pluse~⩲~plussim~⨦~plustwo~⨧~pm~\xb1~pointint~⨕~popf~\uD835\uDD61~pr~≺~prE~⪳~prap~⪷~prcue~≼~pre~⪯~prec~≺~precapprox~⪷~preccurlyeq~≼~preceq~⪯~precnapprox~⪹~precneqq~⪵~precnsim~⋨~precsim~≾~primes~~prnE~⪵~prnap~⪹~prnsim~⋨~profalar~⌮~profline~⌒~profsurf~⌓~propto~∝~prsim~≾~prurel~⊰~pscr~\uD835\uDCC5~puncsp~~qfr~\uD835\uDD2E~qint~⨌~qopf~\uD835\uDD62~qprime~⁗~qscr~\uD835\uDCC6~quaternions~~quatint~⨖~quest~?~questeq~≟~rAarr~⇛~rAtail~⤜~rBarr~⤏~rHar~⥤~race~∽̱~racute~ŕ~raemptyv~⦳~rangd~⦒~range~⦥~rangle~⟩~rarrap~⥵~rarrb~⇥~rarrbfs~⤠~rarrc~⤳~rarrfs~⤞~rarrhk~↪~rarrlp~↬~rarrpl~⥅~rarrsim~⥴~rarrtl~↣~rarrw~↝~ratail~⤚~ratio~~rationals~~rbarr~⤍~rbbrk~~rbrace~}~rbrack~]~rbrke~⦌~rbrksld~⦎~rbrkslu~⦐~rcaron~ř~rcedil~ŗ~rcub~}~rcy~р~rdca~⤷~rdldhar~⥩~rdquor~”~rdsh~↳~realine~~realpart~~reals~~rect~▭~rfisht~⥽~rfr~\uD835\uDD2F~rhard~⇁~rharu~⇀~rharul~⥬~rhov~ϱ~rightarrow~→~rightarrowtail~↣~rightharpoondown~⇁~rightharpoonup~⇀~rightleftarrows~⇄~rightleftharpoons~⇌~rightrightarrows~⇉~rightsquigarrow~↝~rightthreetimes~⋌~ring~˚~risingdotseq~≓~rlarr~⇄~rlhar~⇌~rmoust~⎱~rmoustache~⎱~rnmid~⫮~roang~⟭~roarr~⇾~robrk~⟧~ropar~⦆~ropf~\uD835\uDD63~roplus~⨮~rotimes~⨵~rpar~)~rpargt~⦔~rppolint~⨒~rrarr~⇉~rscr~\uD835\uDCC7~rsh~↱~rsqb~]~rsquor~~rthree~⋌~rtimes~⋊~rtri~▹~rtrie~⊵~rtrif~▸~rtriltri~⧎~ruluhar~⥨~rx~℞~sacute~ś~sc~≻~scE~⪴~scap~⪸~sccue~≽~sce~⪰~scedil~ş~scirc~ŝ~scnE~⪶~scnap~⪺~scnsim~⋩~scpolint~⨓~scsim~≿~scy~с~sdotb~⊡~sdote~⩦~seArr~⇘~searhk~⤥~searr~↘~searrow~↘~semi~;~seswar~⤩~setminus~~setmn~~sext~✶~sfr~\uD835\uDD30~sfrown~⌢~sharp~♯~shchcy~щ~shcy~ш~shortmid~~shortparallel~∥~sigmav~ς~simdot~⩪~sime~≃~simeq~≃~simg~⪞~simgE~⪠~siml~⪝~simlE~⪟~simne~≆~simplus~⨤~simrarr~⥲~slarr~←~smallsetminus~~smashp~⨳~smeparsl~⧤~smid~~smile~⌣~smt~⪪~smte~⪬~smtes~⪬︀~softcy~ь~sol~/~solb~⧄~solbar~⌿~sopf~\uD835\uDD64~spadesuit~♠~spar~∥~sqcap~⊓~sqcaps~⊓︀~sqcup~⊔~sqcups~⊔︀~sqsub~⊏~sqsube~⊑~sqsubset~⊏~sqsubseteq~⊑~sqsup~⊐~sqsupe~⊒~sqsupset~⊐~sqsupseteq~⊒~squ~□~square~□~squarf~▪~squf~▪~srarr~→~sscr~\uD835\uDCC8~ssetmn~~ssmile~⌣~sstarf~⋆~star~☆~starf~★~straightepsilon~ϵ~straightphi~ϕ~strns~\xaf~subE~⫅~subdot~⪽~subedot~⫃~submult~⫁~subnE~⫋~subne~⊊~subplus~⪿~subrarr~⥹~subset~⊂~subseteq~⊆~subseteqq~⫅~subsetneq~⊊~subsetneqq~⫋~subsim~⫇~subsub~⫕~subsup~⫓~succ~≻~succapprox~⪸~succcurlyeq~≽~succeq~⪰~succnapprox~⪺~succneqq~⪶~succnsim~⋩~succsim~≿~sung~♪~supE~⫆~supdot~⪾~supdsub~⫘~supedot~⫄~suphsol~⟉~suphsub~⫗~suplarr~⥻~supmult~⫂~supnE~⫌~supne~⊋~supplus~⫀~supset~⊃~supseteq~⊇~supseteqq~⫆~supsetneq~⊋~supsetneqq~⫌~supsim~⫈~supsub~⫔~supsup~⫖~swArr~⇙~swarhk~⤦~swarr~↙~swarrow~↙~swnwar~⤪~target~⌖~tbrk~⎴~tcaron~ť~tcedil~ţ~tcy~т~tdot~⃛~telrec~⌕~tfr~\uD835\uDD31~therefore~∴~thetav~ϑ~thickapprox~≈~thicksim~~thkap~≈~thksim~~timesb~⊠~timesbar~⨱~timesd~⨰~tint~∭~toea~⤨~top~~topbot~⌶~topcir~⫱~topf~\uD835\uDD65~topfork~⫚~tosa~⤩~tprime~‴~triangle~▵~triangledown~▿~triangleleft~◃~trianglelefteq~⊴~triangleq~≜~triangleright~▹~trianglerighteq~⊵~tridot~◬~trie~≜~triminus~⨺~triplus~⨹~trisb~⧍~tritime~⨻~trpezium~⏢~tscr~\uD835\uDCC9~tscy~ц~tshcy~ћ~tstrok~ŧ~twixt~≬~twoheadleftarrow~↞~twoheadrightarrow~↠~uHar~⥣~ubrcy~ў~ubreve~ŭ~ucy~у~udarr~⇅~udblac~ű~udhar~⥮~ufisht~⥾~ufr~\uD835\uDD32~uharl~↿~uharr~↾~uhblk~▀~ulcorn~⌜~ulcorner~⌜~ulcrop~⌏~ultri~◸~umacr~ū~uogon~ų~uopf~\uD835\uDD66~uparrow~↑~updownarrow~↕~upharpoonleft~↿~upharpoonright~↾~uplus~⊎~upsi~υ~upuparrows~⇈~urcorn~⌝~urcorner~⌝~urcrop~⌎~uring~ů~urtri~◹~uscr~\uD835\uDCCA~utdot~⋰~utilde~ũ~utri~▵~utrif~▴~uuarr~⇈~uwangle~⦧~vArr~⇕~vBar~⫨~vBarv~⫩~vDash~⊨~vangrt~⦜~varepsilon~ϵ~varkappa~ϰ~varnothing~∅~varphi~ϕ~varpi~ϖ~varpropto~∝~varr~↕~varrho~ϱ~varsigma~ς~varsubsetneq~⊊︀~varsubsetneqq~⫋︀~varsupsetneq~⊋︀~varsupsetneqq~⫌︀~vartheta~ϑ~vartriangleleft~⊲~vartriangleright~⊳~vcy~в~vdash~⊢~vee~~veebar~⊻~veeeq~≚~vellip~⋮~verbar~|~vert~|~vfr~\uD835\uDD33~vltri~⊲~vnsub~⊂⃒~vnsup~⊃⃒~vopf~\uD835\uDD67~vprop~∝~vrtri~⊳~vscr~\uD835\uDCCB~vsubnE~⫋︀~vsubne~⊊︀~vsupnE~⫌︀~vsupne~⊋︀~vzigzag~⦚~wcirc~ŵ~wedbar~⩟~wedge~∧~wedgeq~≙~wfr~\uD835\uDD34~wopf~\uD835\uDD68~wp~℘~wr~≀~wreath~≀~wscr~\uD835\uDCCC~xcap~⋂~xcirc~◯~xcup~~xdtri~▽~xfr~\uD835\uDD35~xhArr~⟺~xharr~⟷~xlArr~⟸~xlarr~⟵~xmap~⟼~xnis~⋻~xodot~⨀~xopf~\uD835\uDD69~xoplus~⨁~xotime~⨂~xrArr~⟹~xrarr~⟶~xscr~\uD835\uDCCD~xsqcup~⨆~xuplus~⨄~xutri~△~xvee~~xwedge~⋀~yacy~я~ycirc~ŷ~ycy~ы~yfr~\uD835\uDD36~yicy~ї~yopf~\uD835\uDD6A~yscr~\uD835\uDCCE~yucy~ю~zacute~ź~zcaron~ž~zcy~з~zdot~ż~zeetrf~~zfr~\uD835\uDD37~zhcy~ж~zigrarr~⇝~zopf~\uD835\uDD6B~zscr~\uD835\uDCCF~~AMP~&~COPY~\xa9~GT~>~LT~<~QUOT~"~REG~\xae',Is.html4);var iee={0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376};var aee=String.fromCodePoint||function(r){return String.fromCharCode(Math.floor((r-65536)/1024)+55296,(r-65536)%1024+56320)},prr=String.prototype.codePointAt?function prr1(r,e){return r.codePointAt(e)}:function(r,e){return(r.charCodeAt(e)-55296)*1024+r.charCodeAt(e+1)-56320+65536};var Jc=function Jc1(){return Jc=Object.assign||function(r){for(var e,t=1,n=arguments.length;t<n;t++){e=arguments[t];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i])}return r},Jc.apply(this,arguments)},hrr=Jc(Jc({},Is),{all:Is.html5});var xrr={scope:"body",level:"all"},yT=/&(?:#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+);/g,bT=/&(?:#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+)[;=]?/g,oee={xml:{strict:yT,attribute:bT,body:Iv.xml},html4:{strict:yT,attribute:bT,body:Iv.html4},html5:{strict:yT,attribute:bT,body:Iv.html5}},grr=Jc(Jc({},oee),{all:oee.html5}),see=String.fromCharCode,vrr=see(65533);function mrr(r,e,t,n){var i=r,a=r[r.length-1];if(t&&a==="=")i=r;else if(n&&a!==";")i=r;else{var o=e[r];if(o)i=o;else if(r[0]==="&"&&r[1]==="#"){var s=r[2],u=s=="x"||s=="X"?parseInt(r.substr(3),16):parseInt(r.substr(2));i=u>=1114111?vrr:u>65535?aee(u):see(iee[u]||u)}}return i}function _T(r,e){var t=e===void 0?xrr:e,n=t.level,i=n===void 0?"all":n,a=t.scope,o=a===void 0?i==="xml"?"strict":"body":a;if(!r)return"";var s=grr[i][o],u=hrr[i].entities,c=o==="attribute",l=o==="strict";return r.replace(s,function(f){return mrr(f,u,c,l)})}var $v=ze(Qr());Bx();var Tre=ze(dv());var qre=ze(Ere()),wo=new qre.default({maxConcurrent:1,minTime:200});cs();function Bv(r){return"".concat(dK,"/").concat(r)}id();var Are=wo.wrap(function(n){return D(void 0,[n],function(param){var r,e,t,u,i,a,s,c;return _ts_generator(this,function(_state){switch(_state.label){case 0:r=param.folderName,e=param.cursor,t=param.token;i='<?xml version="1.0" encoding="utf-8"?>\n <s:delta xmlns:s="http://ns.jianguoyun.com">\n <s:folderName>'.concat(r,"</s:folderName>\n <s:cursor>").concat(e!=null?e:"","</s:cursor>\n </s:delta>");return[4,fi({url:Bv("delta"),method:"POST",headers:{Authorization:"Basic ".concat(t),"Content-Type":"application/xml"},body:i})];case 1:a=_state.sent(),s=new Tre.XMLParser({attributeNamePrefix:"",removeNSPrefix:!0,numberParseOptions:{eNotation:!1,hex:!0,leadingZeros:!0}}).parse(a.text);if($n((u=s==null?void 0:s.response)==null?void 0:u.cursor)||(s.response.cursor=s.response.cursor.toString()),s.response.delta){c=s.response.delta.entry;Array.isArray(c)||(s.response.delta.entry=[c])}else s.response.delta={entry:[]};return[2,s]}})})});var Ore=ze(dv());id();var kT=wo.wrap(function(t){return D(void 0,[t],function(param){var r,e,n,i,a;return _ts_generator(this,function(_state){switch(_state.label){case 0:r=param.folderName,e=param.token;n='<?xml version="1.0" encoding="utf-8"?>\n <s:delta xmlns:s="http://ns.jianguoyun.com">\n <s:folderName>'.concat(r,"</s:folderName>\n </s:delta>"),i={Authorization:"Basic ".concat(e),"Content-Type":"application/xml"};return[4,fi({url:Bv("latestDeltaCursor"),method:"POST",headers:i,body:n})];case 1:a=_state.sent();return[2,new Ore.XMLParser({attributeNamePrefix:"",removeNSPrefix:!0,parseTagValue:!1,numberParseOptions:{eNotation:!1,hex:!0,leadingZeros:!0}}).parse(a.text)]}})})});cs();var Rre=ze(Qr());function Uv(r){return r=(0,Rre.normalize)(r),r.startsWith("/")&&(r=r.slice(1)),r.split("/")[0]}var LT=ze(Qr());function Ti(r,e){return r=(0,LT.normalize)(r),e=(0,LT.normalize)(e),r.endsWith("/")||(r+="/"),e.endsWith("/")||(e+="/"),e===r?!1:e.startsWith(r)}var Irr=wo.wrap(Uc);function jv(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return D(this,null,function(){var t,_tmp;return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,Irr(r,e)];case 1:t=_state.sent();_tmp=[t.map(lo)];return[4,Promise.all(t.filter(function(n){return n.type==="directory"}).map(function(n){return jv(r,n.filename)}))];case 2:return[2,_tmp.concat([_state.sent()]).flat(2)]}})})}var el=/*#__PURE__*/function(){"use strict";function el1(e){_class_call_check(this,el1);this.options=e;this.webdav=hd(us,{headers:{Authorization:"Basic ".concat(this.options.token)}})}_create_class(el1,[{key:"walk",value:function walk(){return D(this,null,function(){var x,h,e,t,v,_ref,y,v1,_ref1,_ref_response,y1,n,i,_iteratorNormalCompletion,_didIteratorError,_iteratorError,_iterator,_step,v2,a,o,s,_iteratorNormalCompletion1,_didIteratorError1,_iteratorError1,_iterator1,_step1,_step_value,v3,_iteratorNormalCompletion2,_didIteratorError2,_iteratorError2,_iterator2,_step2,v4,u,c,l,f,d,p;return _ts_generator(this,function(_state){switch(_state.label){case 0:e=vo(this.options.vault.getName(),this.options.remoteBaseDir);return[4,bi.get(e)];case 1:t=_state.sent();if(!t)return[3,9];v=(h=(x=t.deltas.at(-1))==null?void 0:x.cursor)!=null?h:t.originCursor;_state.label=2;case 2:return[4,Are({token:this.options.token,cursor:v,folderName:Uv(this.options.remoteBaseDir)})];case 3:_ref=_state.sent(),y=_ref.response;if(y.cursor===v)return[3,8];if(!y.reset)return[3,6];t.deltas=[];return[4,jv(this.options.token,this.options.remoteBaseDir)];case 4:t.files=_state.sent();return[4,kT({token:this.options.token,folderName:Uv(this.options.remoteBaseDir)}).then(function(m){var b;return(b=m==null?void 0:m.response)==null?void 0:b.cursor})];case 5:v=_state.sent(),t.originCursor=v;return[3,7];case 6:if(y.delta.entry)if(ir(y.delta.entry)||(y.delta.entry=[y.delta.entry]),y.delta.entry.length>0&&t.deltas.push(y),y.hasMore)v=y.cursor;else return[3,8];else return[3,8];_state.label=7;case 7:return[3,2];case 8:return[3,12];case 9:return[4,jv(this.options.token,this.options.remoteBaseDir)];case 10:v1=_state.sent();return[4,kT({token:this.options.token,folderName:Uv(this.options.remoteBaseDir)})];case 11:_ref1=_state.sent(),_ref_response=_ref1.response,y1=_ref_response.cursor;t={files:v1,originCursor:y1,deltas:[]};_state.label=12;case 12:return[4,bi.set(e,t)];case 13:_state.sent(),t.deltas.forEach(function(v){v.delta.entry.forEach(function(y){y.path=_T(y.path)})}),t.files.forEach(function(v){v.path=_T(v.path)});n=new Map(t.deltas.flatMap(function(v){return v.delta.entry.map(function(y){return[y.path,y]})})),i=new Map(t.files.map(function(v){return[v.path,v]}));_iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;try{for(_iterator=n.values()[Symbol.iterator]();!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){v2=_step.value;if(v2.isDeleted){i.delete(v2.path);continue}i.set(v2.path,{path:v2.path,basename:(0,$v.basename)(v2.path),isDir:v2.isDir,isDeleted:v2.isDeleted,mtime:new Date(v2.modified).valueOf(),size:v2.size})}}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}a=Array.from(i.values());if(a.length===0)return[2,[]];o=Et(this.options.remoteBaseDir),s=new Set;_iteratorNormalCompletion1=true,_didIteratorError1=false,_iteratorError1=undefined;try{for(_iterator1=a[Symbol.iterator]();!(_iteratorNormalCompletion1=(_step1=_iterator1.next()).done);_iteratorNormalCompletion1=true){_step_value=_step1.value,v3=_step_value.path;v3.endsWith("/")&&(v3=v3.slice(0,v3.length-1)),v3.startsWith("/")||(v3="/".concat(v3)),Ti(o,v3)&&s.add(v3)}}catch(err1){_didIteratorError1=true;_iteratorError1=err1}finally{try{if(!_iteratorNormalCompletion1&&_iterator1.return!=null){_iterator1.return()}}finally{if(_didIteratorError1){throw _iteratorError1}}}a=_to_consumable_array(s).map(function(v){return i.get(v)}).filter(Os);_iteratorNormalCompletion2=true,_didIteratorError2=false,_iteratorError2=undefined;try{for(_iterator2=a[Symbol.iterator]();!(_iteratorNormalCompletion2=(_step2=_iterator2.next()).done);_iteratorNormalCompletion2=true){v4=_step2.value;(0,$v.isAbsolute)(v4.path)&&(v4.path=v4.path.replace(this.options.remoteBaseDir,""),v4.path.startsWith("/")&&(v4.path=v4.path.slice(1)))}}catch(err1){_didIteratorError2=true;_iteratorError2=err1}finally{try{if(!_iteratorNormalCompletion2&&_iterator2.return!=null){_iterator2.return()}}finally{if(_didIteratorError2){throw _iteratorError2}}}return[4,Jt()];case 14:u=_state.sent(),c=this.buildRules(u==null?void 0:u.filterRules.exclusionRules),l=this.buildRules(u==null?void 0:u.filterRules.inclusionRules),f=a.filter(function(v){return Ev(v.path,l,c)}),d=rp(a,f),p=new Set(d.map(function(v){return v.path}));return[2,a.map(function(v){return{stat:v,ignored:!p.has(v.path)}})]}})})}},{key:"buildRules",value:function buildRules(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return qv(e.filter(function(t){return!Sv(t)}).map(function(param){var t=param.expr,n=param.options;return new Si(t,n)}))}}]);return el1}();var la=/*#__PURE__*/function(){"use strict";function la1(e,t){_class_call_check(this,la1);this.namespace=e;this.storage=t}_create_class(la1,[{key:"updateFileRecord",value:function updateFileRecord(e,t){return D(this,null,function(){var n,_tmp;return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,this.storage.get(this.namespace)];case 1:n=_state.sent();if(!n)return[3,3];n.set(e,t);return[4,this.storage.set(this.namespace,n)];case 2:_tmp=_state.sent();return[3,5];case 3:return[4,this.storage.set(this.namespace,new Map([[e,t]]))];case 4:_tmp=_state.sent();_state.label=5;case 5:_tmp;return[2]}})})}},{key:"deleteFileRecord",value:function deleteFileRecord(e){return D(this,null,function(){var t,_tmp;return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,this.storage.get(this.namespace)];case 1:t=_state.sent();_tmp=t&&t.has(e);if(!_tmp)return[3,3];t.delete(e);return[4,this.storage.set(this.namespace,t)];case 2:_tmp=_state.sent();_state.label=3;case 3:_tmp;return[2]}})})}},{key:"getRecords",value:function getRecords(){return D(this,null,function(){var e;return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,this.storage.get(this.namespace)];case 1:e=_state.sent();return[2,e!=null?e:new Map]}})})}},{key:"setRecords",value:function setRecords(e){return D(this,null,function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,this.storage.set(this.namespace,e)];case 1:_state.sent();return[2]}})})}},{key:"getRecord",value:function getRecord(e){return D(this,null,function(){var t;return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,this.storage.get(this.namespace)];case 1:t=_state.sent();if(t)return[2,t.get(e)];return[2]}})})}},{key:"drop",value:function drop(){return D(this,null,function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,this.storage.unset(this.namespace)];case 1:_state.sent();return[2]}})})}},{key:"exists",value:function exists(e){return D(this,null,function(){var t;return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,this.storage.get(this.namespace)];case 1:t=_state.sent();return[2,t?t.has(e):!1]}})})}},{key:"batchUpdate",value:function batchUpdate(e){return D(this,null,function(){var t,_iteratorNormalCompletion,_didIteratorError,_iteratorError,_iterator,_step,_step_value,n,i;return _ts_generator(this,function(_state){switch(_state.label){case 0:if(e.length===0)return[2];return[4,this.storage.get(this.namespace)];case 1:t=_state.sent();if(!t)return[3,3];_iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;try{for(_iterator=e[Symbol.iterator]();!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){_step_value=_sliced_to_array(_step.value,2),n=_step_value[0],i=_step_value[1];t.set(n,i)}}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}return[4,this.storage.set(this.namespace,t)];case 2:_state.sent();return[3,5];case 3:return[4,this.storage.set(this.namespace,new Map(e))];case 4:_state.sent();_state.label=5;case 5:return[2]}})})}}]);return la1}();function Ire(r,e){return new Promise(function(t,n){var a=function a(){window.clearTimeout(o),i.unsubscribe(),t()};var i=r.subscribe({next:function(){return a()},error:function(s){window.clearTimeout(o),i.unsubscribe(),n(s)}});var o=window.setTimeout(function(){a()},e)})}function Cs(r,e){return vo(r,e)}Pr();var tp=/*#__PURE__*/function(){"use strict";function tp1(e,t){_class_call_check(this,tp1);this.sync=e;this.syncRecordStorage=t}_create_class(tp1,[{key:"getSyncRecordStorage",value:function getSyncRecordStorage(){return this.syncRecordStorage}},{key:"webdav",get:function get(){return this.sync.webdav}},{key:"settings",get:function get(){return this.sync.settings}},{key:"vault",get:function get(){return this.sync.vault}},{key:"remoteBaseDir",get:function get(){return this.sync.remoteBaseDir}}]);return tp1}();var Wre=ze(Lre());function So(r){return':*?"<>|'.split("").some(function(e){return r.includes(e)})}function tl(r,e){if(r===void 0||e===void 0)return!1;var t=typeof r=="number"?r:r.getTime(),n=typeof e=="number"?e:e.getTime();return t===n}Pr();var Vv=ze(Qr());function Dr(r,e){return(0,Vv.isAbsolute)(e)?e:(0,Vv.join)(r,e)}var nl=ze(Qr());function Dre(r,e){return r=(0,nl.normalize)(r),e=(0,nl.normalize)(e),e=(0,nl.isAbsolute)(e)&&e.startsWith(r)?e.replace(r,""):e,(0,nl.normalize)(e)}function MT(r,e){var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;try{for(var _iterator=e[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var t=_step.value;if((Ti(r,t.stat.path)||t.stat.path===r)&&t.ignored)return!0}}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}return!1}function FT(r,e,t,n){var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;try{for(var _iterator=e[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var i=_step.value;if(!Ti(r,i.path))continue;var a=t.get(i.path);if(!a)return!0;if(!i.isDir){var o=n==="local"?a.local.mtime:a.remote.mtime;if(i.mtime&&o&&!tl(i.mtime,o))return!0}}}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}return!1}function Mre(r){return D(this,null,function(){var _h,w,R,e,t,n,i,a,o,s,u,c,l,f,d,p,x,h,v,y,m,b,S,_iteratorNormalCompletion,_didIteratorError,_iteratorError,_iterator,_step,_,E,O,I,N,k,B,U,$,k1,err1,_iteratorNormalCompletion1,_didIteratorError1,_iteratorError1,_iterator1,_step1,_step_value,_1,E1,O1,I2,_iteratorNormalCompletion2,_didIteratorError2,_iteratorError2,_iterator2,_step2,_2,E2,O2,I3,N1,_iteratorNormalCompletion3,_didIteratorError3,_iteratorError3,_iterator3,_step3,_3,E3,O3,I4,T;return _ts_generator(this,function(_state){switch(_state.label){case 0:e=r.settings,t=r.localStats,n=r.remoteStats,i=r.syncRecords,a=r.remoteBaseDir,o=r.compareFileContent,s=r.taskFactory,u=1/0,c=e.skipLargeFiles.maxSize.trim();c!==""&&(u=(w=(0,Wre.parse)(c))!=null?w:1/0);l=t.filter(function(_){return!_.ignored}).map(function(_){return _.stat}),f=n.filter(function(_){return!_.ignored}).map(function(_){return _.stat}),d=new Map(l.map(function(_){return[_.path,_]})),p=new Map(f.map(function(_){return[_.path,_]})),x=new Set(_to_consumable_array(d.keys()).concat(_to_consumable_array(p.keys())));ce.debug("local Stats",l.map(function(_){return{path:_.path,size:_.isDir?void 0:_.size,isDir:_.isDir}})),ce.debug("remote Stats",f.map(function(_){return{path:_.path,size:_.isDir?void 0:_.size,isDir:_.isDir}}));h=[],v=[],y=[],m=[],b=[],S=[];_iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;_state.label=1;case 1:_state.trys.push([1,14,15,16]);_iterator=x[Symbol.iterator]();_state.label=2;case 2:if(!!(_iteratorNormalCompletion=(_step=_iterator.next()).done))return[3,13];_=_step.value;E=p.get(_),O=d.get(_),I=i.get(_),N={remotePath:_,localPath:_,remoteBaseDir:a};if(!!(O!=null&&O.isDir||E!=null&&E.isDir))return[3,12];if(!I)return[3,11];if(!E)return[3,9];k=!tl(E.mtime,I.remote.mtime);if(!O)return[3,7];B=!tl(O.mtime,I.local.mtime);if(!(B&&(R=I.base)!=null&&R.key))return[3,6];return[4,Pc.get(I.base.key)];case 3:U=_state.sent();if(!U)return[3,6];return[4,U.arrayBuffer()];case 4:$=_state.sent();return[4,o(O.path,$)];case 5:B=!_state.sent();_state.label=6;case 6:if(k)if(B){if(ce.debug({reason:"both local and remote files changed",remotePath:Dr(a,_),localPath:_,conditions:{remoteChanged:k,localChanged:B,recordExists:!!I,remoteExists:!!E,localExists:!!O}}),E.size>u||O.size>u){h.push(s.createSkippedTask(Se(j({},N),{reason:"file-too-large",maxSize:u,remoteSize:E.size,localSize:O.size})));return[3,12]}So(O.path)?h.push(s.createFilenameErrorTask(N)):h.push(s.createConflictResolveTask(Se(j({},N),{record:I,strategy:e.conflictStrategy==="latest-timestamp"?"latest-timestamp":"diff-match-patch",localStat:O,remoteStat:E,useGitStyle:e.useGitStyle})));return[3,12]}else{if(ce.debug({reason:"remote file changed",remotePath:Dr(a,_),localPath:_,conditions:{remoteChanged:k,recordExists:!!I,remoteExists:!!E,localExists:!!O}}),E.size>u){h.push(s.createSkippedTask(Se(j({},N),{reason:"file-too-large",maxSize:u,remoteSize:E.size,localSize:O.size})));return[3,12]}h.push(s.createPullTask(Se(j({},N),{remoteSize:E.size})));return[3,12]}else if(B){if(ce.debug({reason:"local file changed",remotePath:Dr(a,_),localPath:_,conditions:{localChanged:B,recordExists:!!I,remoteExists:!!E,localExists:!!O}}),O.size>u){h.push(s.createSkippedTask(Se(j({},N),{reason:"file-too-large",maxSize:u,remoteSize:E.size,localSize:O.size})));return[3,12]}So(O.path)?h.push(s.createFilenameErrorTask(N)):h.push(s.createPushTask(N));return[3,12]}return[3,8];case 7:if(k){if(ce.debug({reason:"remote file changed and local file does not exist",remotePath:Dr(a,_),localPath:_,conditions:{remoteChanged:k,recordExists:!!I,remoteExists:!!E,localExists:!!O}}),E.size>u){h.push(s.createSkippedTask(Se(j({},N),{reason:"file-too-large",maxSize:u,remoteSize:E.size})));return[3,12]}h.push(s.createPullTask(Se(j({},N),{remoteSize:E.size})));return[3,12]}else{ce.debug({reason:"remote file is removable",remotePath:Dr(a,_),localPath:_,conditions:{recordExists:!!I,remoteExists:!!E,localExists:!!O}}),h.push(s.createRemoveRemoteTask(N));return[3,12]}_state.label=8;case 8:return[3,10];case 9:if(O){k1=!tl(O.mtime,I.local.mtime);if(k1){if(ce.debug({reason:"local file changed and remote file does not exist",remotePath:Dr(a,_),localPath:_,conditions:{localChanged:k1,recordExists:!!I,remoteExists:!!E,localExists:!!O}}),O.size>u){h.push(s.createSkippedTask(Se(j({},N),{reason:"file-too-large",localSize:O.size,maxSize:u})));return[3,12]}So(O.path)?h.push(s.createFilenameErrorTask(N)):h.push(s.createPushTask(N));return[3,12]}else{ce.debug({reason:"local file is removable",remotePath:Dr(a,_),localPath:_,conditions:{recordExists:!!I,remoteExists:!!E,localExists:!!O}}),h.push(s.createRemoveLocalTask(N));return[3,12]}}_state.label=10;case 10:return[3,12];case 11:if(E)if(O){if(e.syncMode==="loose"&&!E.isDeleted&&!E.isDir&&E.size===O.size){h.push(s.createNoopTask(j({},N)));return[3,12]}if(ce.debug({reason:"both local and remote files exist without a record",remotePath:Dr(a,_),localPath:_,conditions:{recordExists:!!I,remoteExists:!!E,localExists:!!O}}),E.size>u||O.size>u){h.push(s.createSkippedTask(Se(j({},N),{reason:"file-too-large",remoteSize:E.size,localSize:O.size,maxSize:u})));return[3,12]}So(O.path)?h.push(s.createFilenameErrorTask(N)):h.push(s.createConflictResolveTask(Se(j({},N),{strategy:"diff-match-patch",localStat:O,remoteStat:E,useGitStyle:e.useGitStyle})));return[3,12]}else{if(ce.debug({reason:"remote file exists without a local file",remotePath:Dr(a,_),localPath:_,conditions:{recordExists:!!I,remoteExists:!!E,localExists:!!O}}),E.size>u){h.push(s.createSkippedTask(Se(j({},N),{reason:"file-too-large",remoteSize:E.size,maxSize:u})));return[3,12]}h.push(s.createPullTask(Se(j({},N),{remoteSize:E.size})));return[3,12]}else if(O){if(ce.debug({reason:"local file exists without a remote file",remotePath:Dr(a,_),localPath:_,conditions:{recordExists:!!I,remoteExists:!!E,localExists:!!O}}),O.size>u){h.push(s.createSkippedTask(Se(j({},N),{reason:"file-too-large",localSize:O.size,maxSize:u})));return[3,12]}So(O.path)?h.push(s.createFilenameErrorTask(N)):h.push(s.createPushTask(N));return[3,12]}_state.label=12;case 12:_iteratorNormalCompletion=true;return[3,2];case 13:return[3,16];case 14:err1=_state.sent();_didIteratorError=true;_iteratorError=err1;return[3,16];case 15:try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}return[7];case 16:_iteratorNormalCompletion1=true,_didIteratorError1=false,_iteratorError1=undefined;try{for(_iterator1=i[Symbol.iterator]();!(_iteratorNormalCompletion1=(_step1=_iterator1.next()).done);_iteratorNormalCompletion1=true){_step_value=_sliced_to_array(_step1.value,2),_1=_step_value[0],E1=_step_value[1];O1=d.get(_1),I2=p.get(_1);!O1&&!I2&&(ce.debug({reason:"cleaning orphaned sync record (both local and remote deleted)",remotePath:Dr(a,_1),localPath:_1,conditions:{localExists:!!O1,remoteExists:!!I2,recordExists:!!E1}}),h.push(s.createCleanRecordTask({remotePath:_1,localPath:_1,remoteBaseDir:a})))}}catch(err1){_didIteratorError1=true;_iteratorError1=err1}finally{try{if(!_iteratorNormalCompletion1&&_iterator1.return!=null){_iterator1.return()}}finally{if(_didIteratorError1){throw _iteratorError1}}}_iteratorNormalCompletion2=true,_didIteratorError2=false,_iteratorError2=undefined;try{for(_iterator2=f[Symbol.iterator]();!(_iteratorNormalCompletion2=(_step2=_iterator2.next()).done);_iteratorNormalCompletion2=true){_2=_step2.value;if(!_2.isDir)continue;E2=Dre(a,_2.path),O2=d.get(E2),I3=i.get(E2);if(O2){if(!O2.isDir)throw new Error("Folder conflict: remote path ".concat(_2.path," is a folder but local path ").concat(E2," is a file"));if(!I3){S.push(s.createNoopTask({localPath:E2,remotePath:_2.path,remoteBaseDir:a}));continue}}else if(I3){N1=FT(_2.path,f,i,"remote");if(N1){ce.debug({reason:"remote folder content changed",remotePath:Dr(a,_2.path),localPath:E2,conditions:{remoteChanged:N1,localExists:!!O2,recordExists:!!I3}}),So(E2)?h.push(s.createFilenameErrorTask({localPath:E2,remotePath:_2.path,remoteBaseDir:a})):m.push(s.createMkdirLocalTask({localPath:E2,remotePath:_2.path,remoteBaseDir:a}));continue}if(MT(_2.path,n)){ce.debug({reason:"skip removing remote folder (contains ignored items)",remotePath:Dr(a,_2.path),localPath:E2,conditions:{hasIgnoredItems:!0,localExists:!!O2,recordExists:!!I3}});continue}ce.debug({reason:"remote folder is removable (no content changes)",remotePath:Dr(a,_2.path),localPath:E2,conditions:{removable:!0,localExists:!!O2,recordExists:!!I3}}),v.push(s.createRemoveRemoteTask({localPath:_2.path,remotePath:_2.path,remoteBaseDir:a}));continue}else{ce.debug({reason:"remote folder does not exist locally",remotePath:Dr(a,_2.path),localPath:E2,conditions:{localExists:!!O2,recordExists:!!I3}}),So(E2)?h.push(s.createFilenameErrorTask({localPath:E2,remotePath:_2.path,remoteBaseDir:a})):m.push(s.createMkdirLocalTask({localPath:E2,remotePath:_2.path,remoteBaseDir:a}));continue}}}catch(err1){_didIteratorError2=true;_iteratorError2=err1}finally{try{if(!_iteratorNormalCompletion2&&_iterator2.return!=null){_iterator2.return()}}finally{if(_didIteratorError2){throw _iteratorError2}}}_iteratorNormalCompletion3=true,_didIteratorError3=false,_iteratorError3=undefined;try{for(_iterator3=l[Symbol.iterator]();!(_iteratorNormalCompletion3=(_step3=_iterator3.next()).done);_iteratorNormalCompletion3=true){_3=_step3.value;if(!_3.isDir)continue;E3=p.get(_3.path),O3=i.get(_3.path);if(E3){if(!O3){S.push(s.createNoopTask({localPath:_3.path,remotePath:E3.path,remoteBaseDir:a}));continue}}else{if(O3){I4=FT(_3.path,l,i,"local");if(I4){ce.debug({reason:"local folder content changed",remotePath:Dr(a,_3.path),localPath:_3.path,conditions:{localChanged:I4,remoteExists:!!E3,recordExists:!!O3}}),b.push(s.createMkdirRemoteTask({localPath:_3.path,remotePath:_3.path,remoteBaseDir:a}));continue}if(MT(_3.path,t)){ce.debug({reason:"skip removing local folder (contains ignored items)",remotePath:Dr(a,_3.path),localPath:_3.path,conditions:{hasIgnoredItems:!0,remoteExists:!!E3,recordExists:!!O3}});continue}ce.debug({reason:"local folder is removable (no content changes)",remotePath:Dr(a,_3.path),localPath:_3.path,conditions:{removable:!0,remoteExists:!!E3,recordExists:!!O3}}),y.push(s.createRemoveLocalTask({localPath:_3.path,remotePath:_3.path,remoteBaseDir:a}))}else{ce.debug({reason:"local folder does not exist remotely",remotePath:Dr(a,_3.path),localPath:_3.path,conditions:{remoteExists:!!E3,recordExists:!!O3}}),b.push(s.createMkdirRemoteTask({localPath:_3.path,remotePath:_3.path,remoteBaseDir:a}));continue}continue}if(!E3.isDir)throw new Error("Folder conflict: local path ".concat(_3.path," is a folder but remote path ").concat(E3.path," is a file"))}}catch(err1){_didIteratorError3=true;_iteratorError3=err1}finally{try{if(!_iteratorNormalCompletion3&&_iterator3.return!=null){_iterator3.return()}}finally{if(_didIteratorError3){throw _iteratorError3}}}v.sort(function(_,E){return E.remotePath.length-_.remotePath.length}),y.sort(function(_,E){return E.localPath.length-_.localPath.length});T=_to_consumable_array(v).concat(_to_consumable_array(y),_to_consumable_array(m),_to_consumable_array(b),_to_consumable_array(S));return[2,((_h=h).splice.apply(_h,[0,0].concat(_to_consumable_array(T))),h)]}})})}var Ns=/*#__PURE__*/function(tp1){"use strict";_inherits(Ns1,tp1);function Ns1(){_class_call_check(this,Ns1);return _call_super(this,Ns1,arguments)}_create_class(Ns1,[{key:"decide",value:function decide(){return D(this,null,function(){var _this,e,_ref,t,n,i,a,o,s;return _ts_generator(this,function(_state){switch(_state.label){case 0:_this=this;e=this.getSyncRecordStorage();return[4,Promise.all([e.getRecords(),this.sync.localFS.walk(),this.sync.remoteFs.walk()])];case 1:_ref=_sliced_to_array.apply(void 0,[_state.sent(),3]),t=_ref[0],n=_ref[1],i=_ref[2],a={webdav:this.webdav,vault:this.vault,remoteBaseDir:this.remoteBaseDir,syncRecord:e},o={createPullTask:function(u){return new Zi(j(j({},a),u))},createPushTask:function(u){return new Gn(j(j({},a),u))},createConflictResolveTask:function(u){return new Xi(j(j({},a),u))},createNoopTask:function(u){return new Yt(j(j({},a),u))},createRemoveLocalTask:function(u){return new An(j(j({},a),u))},createRemoveRemoteTask:function(u){return new On(j(j({},a),u))},createMkdirLocalTask:function(u){return new Yi(j(j({},a),u))},createMkdirRemoteTask:function(u){return new wt(j(j({},a),u))},createCleanRecordTask:function(u){return new an(j(j({},a),u))},createFilenameErrorTask:function(u){return new bs(j(j({},a),u))},createSkippedTask:function(u){return new zn(j(j({},a),u))}},s=function(u,c){return D(_this,null,function(){var l,f;return _ts_generator(this,function(_state){switch(_state.label){case 0:l=this.vault.getFileByPath(u);if(!l)return[2,!1];return[4,this.vault.readBinary(l)];case 1:f=_state.sent();return[2,oT(c,f)]}})})};return[4,Mre({settings:{skipLargeFiles:this.settings.skipLargeFiles,conflictStrategy:this.settings.conflictStrategy,useGitStyle:this.settings.useGitStyle,syncMode:this.settings.syncMode},localStats:n,remoteStats:i,syncRecords:t,remoteBaseDir:this.remoteBaseDir,compareFileContent:s,taskFactory:o})];case 2:return[2,_state.sent()]}})})}}]);return Ns1}(tp);function Fre(r){if(r.length===0)return[];var e=new Map;var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;try{for(var _iterator=r[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var n=_step.value;var i=n.remotePath,a=!1;var _iteratorNormalCompletion1=true,_didIteratorError1=false,_iteratorError1=undefined;try{for(var _iterator1=e.entries()[Symbol.iterator](),_step1;!(_iteratorNormalCompletion1=(_step1=_iterator1.next()).done);_iteratorNormalCompletion1=true){var _step_value=_sliced_to_array(_step1.value,2),o=_step_value[0],s=_step_value[1];if(i.startsWith(o+"/")){e.delete(o),s.push({task:n,remotePath:i}),e.set(i,s),a=!0;break}}}catch(err1){_didIteratorError1=true;_iteratorError1=err1}finally{try{if(!_iteratorNormalCompletion1&&_iterator1.return!=null){_iterator1.return()}}finally{if(_didIteratorError1){throw _iteratorError1}}}if(!a){var o1=[],s1=[];var _iteratorNormalCompletion2=true,_didIteratorError2=false,_iteratorError2=undefined;try{for(var _iterator2=e.entries()[Symbol.iterator](),_step2;!(_iteratorNormalCompletion2=(_step2=_iterator2.next()).done);_iteratorNormalCompletion2=true){var _step_value1=_sliced_to_array(_step2.value,2),u=_step_value1[0],c=_step_value1[1];u.startsWith(i+"/")&&(o1=o1.concat(c),s1.push(u))}}catch(err1){_didIteratorError2=true;_iteratorError2=err1}finally{try{if(!_iteratorNormalCompletion2&&_iterator2.return!=null){_iterator2.return()}}finally{if(_didIteratorError2){throw _iteratorError2}}}var _iteratorNormalCompletion3=true,_didIteratorError3=false,_iteratorError3=undefined;try{for(var _iterator3=s1[Symbol.iterator](),_step3;!(_iteratorNormalCompletion3=(_step3=_iterator3.next()).done);_iteratorNormalCompletion3=true){var u1=_step3.value;e.delete(u1)}}catch(err1){_didIteratorError3=true;_iteratorError3=err1}finally{try{if(!_iteratorNormalCompletion3&&_iterator3.return!=null){_iterator3.return()}}finally{if(_didIteratorError3){throw _iteratorError3}}}if(o1.length>0){o1.push({task:n,remotePath:i});var u2=o1.reduce(function(c,l){return l.remotePath.length>c.remotePath.length?l:c});e.set(u2.remotePath,o1)}else e.set(i,[{task:n,remotePath:i}])}}}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}var t=[];var _iteratorNormalCompletion4=true,_didIteratorError4=false,_iteratorError4=undefined;try{var _loop=function(){var n=_step4.value;var i=n.reduce(function(s,u){return u.remotePath.length>s.remotePath.length?u:s}),a=n.filter(function(s){return s!==i}).map(function(s){return{localPath:s.task.localPath,remotePath:s.task.remotePath}}),o=new Ji(Se(j({},i.task.options),{additionalPaths:a}));t.push(o)};for(var _iterator4=e.values()[Symbol.iterator](),_step4;!(_iteratorNormalCompletion4=(_step4=_iterator4.next()).done);_iteratorNormalCompletion4=true)_loop()}catch(err1){_didIteratorError4=true;_iteratorError4=err1}finally{try{if(!_iteratorNormalCompletion4&&_iterator4.return!=null){_iterator4.return()}}finally{if(_didIteratorError4){throw _iteratorError4}}}return t}var np=ze(Qr());function Bre(r){if(r.length===0)return[];var e=r.filter(function(a){var o=(0,np.normalize)(a.remotePath);return o!==""&&o!=="."});if(e.length===0)return[];var t=_to_consumable_array(e).sort(function(a,o){var s=(0,np.normalize)(a.remotePath),u=(0,np.normalize)(o.remotePath);return s.length!==u.length?s.length-u.length:s.localeCompare(u)}),n=[],i=[];var _iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;try{var _loop=function(){var a=_step.value;var o=(0,np.normalize)(a.remotePath);i.some(function(u){return o===u?!0:Ti(u,o)})||(i.push(o),n.push(new ea(a.options)))};for(var _iterator=t[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true)_loop()}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}return n}Pr();function Ure(r,e,t,n,i,a){return D(this,null,function(){var _this,o,s,c,l,f,d,p,x,h,v,y,_iteratorNormalCompletion,_didIteratorError,_iteratorError,_iterator,_step,b,S,_iteratorNormalCompletion1,_didIteratorError1,_iteratorError1,_iterator1,_step1,T,m,_iteratorNormalCompletion2,_didIteratorError2,_iteratorError2,_iterator2,_step2,b2,S1,err1;return _ts_generator(this,function(_state){switch(_state.label){case 0:_this=this;if(n.length===0)return[2];o=n.filter(function(b,S){var T,w;return((T=i[S])==null?void 0:T.success)&&!((w=i[S])!=null&&w.skipRecord)});if(o.length===0)return[2];return[4,r.getToken()];case 1:s=_state.sent();return[4,new el({vault:e,token:s,remoteBaseDir:Et(t)}).walk()];case 2:c=_state.sent(),l=new Map(c.map(function(b){return[b.stat.path,b]})),f=new la(Cs(e.getName(),t),Vn);return[4,f.getRecords()];case 3:d=_state.sent(),p=Date.now(),x=0,h=0,v=vs(function(b){return f.setRecords(b)},3e3,{trailing:!0,leading:!1}),y=[];_iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;try{for(_iterator=o[Symbol.iterator]();!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){b=_step.value;if(_instanceof(b,Ji)){S=b.getAllPaths();_iteratorNormalCompletion1=true,_didIteratorError1=false,_iteratorError1=undefined;try{for(_iterator1=S[Symbol.iterator]();!(_iteratorNormalCompletion1=(_step1=_iterator1.next()).done);_iteratorNormalCompletion1=true){T=_step1.value;y.push({task:b,localPath:T.localPath})}}catch(err1){_didIteratorError1=true;_iteratorError1=err1}finally{try{if(!_iteratorNormalCompletion1&&_iterator1.return!=null){_iterator1.return()}}finally{if(_didIteratorError1){throw _iteratorError1}}}}else y.push({task:b,localPath:b.localPath})}}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}m=Ad(y,a);_iteratorNormalCompletion2=true,_didIteratorError2=false,_iteratorError2=undefined;_state.label=4;case 4:_state.trys.push([4,9,10,11]);_iterator2=m[Symbol.iterator]();_state.label=5;case 5:if(!!(_iteratorNormalCompletion2=(_step2=_iterator2.next()).done))return[3,8];b2=_step2.value;S1=b2.map(function(R){return D(_this,[R],function(param){var T,w,_$_,E,_iteratorNormalCompletion,_didIteratorError,_iteratorError,_iterator,_step,N,O,I,N1,k,_ref,U,_;return _ts_generator(this,function(_state){switch(_state.label){case 0:T=param.task,w=param.localPath;_state.label=1;case 1:_state.trys.push([1,7,8,9]);_$_=l.get(w);return[4,Xt(e,w)];case 2:E=_state.sent();if(_instanceof(T,ea)){_iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;try{for(_iterator=d.keys()[Symbol.iterator]();!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){N=_step.value;Ti(w,N)&&d.delete(N)}}catch(err1){_didIteratorError=true;_iteratorError=err1}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}d.delete(w);return[2]}if(!E&&!_$_){d.delete(w);return[2]}if(!E||!_$_)return[2];if(!!E.isDir)return[3,6];N1=e.getFileByPath(w);if(!N1)return[2];return[4,e.readBinary(N1)];case 3:k=_state.sent();if(!!Pd(N1.path))return[3,4];I=void 0;return[3,6];case 4:return[4,Pc.store(k)];case 5:_ref=_state.sent(),U=_ref.key;I=U;_state.label=6;case 6:O=$n(I)?void 0:{key:I},d.set(w,{remote:_$_.stat,local:E,base:O}),h++;return[3,9];case 7:_=_state.sent();ce.error("updateMtimeInRecord",{errorName:_.name,errorMsg:_.message},T.toJSON());return[3,9];case 8:x++;return[7];case 9:return[2]}})})});return[4,Promise.all(S1)];case 6:_state.sent(),HK(y.length,x),v(d);_state.label=7;case 7:_iteratorNormalCompletion2=true;return[3,5];case 8:return[3,11];case 9:err1=_state.sent();_didIteratorError2=true;_iteratorError2=err1;return[3,11];case 10:try{if(!_iteratorNormalCompletion2&&_iterator2.return!=null){_iterator2.return()}}finally{if(_didIteratorError2){throw _iteratorError2}}return[7];case 11:return[4,v.flush()];case 12:_state.sent(),ce.debug("Records saving completed",{recordsSize:d.size,elapsedMs:Date.now()-p});return[2]}})})}var Eo=/*#__PURE__*/function(){"use strict";function Eo1(e,t){var _this=this;_class_call_check(this,Eo1);this.plugin=e;this.options=t;this.isCancelled=!1;this.subscriptions=[];this.options=Object.freeze(this.options),this.remoteFs=new el(this.options),this.localFS=new Rv({vault:this.options.vault,syncRecord:new la(Cs(this.vault.getName(),this.remoteBaseDir),Vn)}),this.subscriptions.push(md().subscribe(function(){_this.isCancelled=!0}))}_create_class(Eo1,[{key:"start",value:function start(t){return D(this,arguments,function(param){var _this,e,_$n,i,a,o,s,u,_tmp,N,c,l,f,d,p,_$N,_$N1,_ref,k,B,U,$,X,le,K,qe,_iteratorNormalCompletion,_didIteratorError,_iteratorError,_iterator,_step,pe,Te,de,de1,err1,V,fe,_iteratorNormalCompletion1,_didIteratorError1,_iteratorError1,_iterator1,_step1,pe1,Te1,_iteratorNormalCompletion2,_didIteratorError2,_iteratorError2,_iterator2,_step2,de2,me,be,_iteratorNormalCompletion3,_didIteratorError3,_iteratorError3,_iterator3,_step3,pe2,x,h,v,y,m,S,T,R,_,E,O,_iteratorNormalCompletion4,_didIteratorError4,_iteratorError4,_iterator4,_step4,_$N2,_1,k1,err1,I,n;return _ts_generator(this,function(_state){switch(_state.label){case 0:_this=this;e=param.mode;_state.label=1;case 1:_state.trys.push([1,38,39,40]);_$n=e==="manual_sync";GK({showNotice:_$n});i=this.settings,a=this.webdav,o=Et(this.options.remoteBaseDir),s=new la(Cs(this.vault.getName(),this.remoteBaseDir),Vn);return[4,a.exists(o)];case 2:u=_state.sent();_tmp=u;if(_tmp)return[3,4];return[4,s.drop()];case 3:_tmp=_state.sent();_state.label=4;case 4:_tmp;_state.label=5;case 5:if(!!u)return[3,14];if(this.isCancelled){tc(new Error(P.t("sync.cancelled")));return[2]}_state.label=6;case 6:_state.trys.push([6,8,,13]);return[4,a.createDirectory(this.options.remoteBaseDir,{recursive:!0})];case 7:_state.sent();return[3,14];case 8:N=_state.sent();if(!ra(N))return[3,11];return[4,this.handle503Error(6e4)];case 9:if(_state.sent(),this.isCancelled){tc(new Error(P.t("sync.cancelled")));return[2]}return[4,a.exists(o)];case 10:u=_state.sent();return[3,12];case 11:throw N;case 12:return[3,13];case 13:return[3,5];case 14:return[4,new Ns(this,s).decide()];case 15:c=_state.sent();if(c.length===0){XE({showNotice:_$n,failedCount:0});return[2]}l=c.filter(function(N){return _instanceof(N,Yt)}),f=c.filter(function(N){return _instanceof(N,zn)}),d=c.filter(function(N){return!(_instanceof(N,Yt)||_instanceof(N,zn))}),p=d.findIndex(function(N){return!_instanceof(N,an)});if(!(_$n&&i.confirmBeforeSync&&p>-1))return[3,17];return[4,new _s(this.app,d).open()];case 16:_$N=_state.sent();if(_$N.confirm)d=_$N.tasks;else{tc(new Error(P.t("sync.cancelled")));return[2]}_state.label=17;case 17:if(!(e==="auto_sync"))return[3,28];_$N1=d.filter(function(k){return _instanceof(k,An)});if(!(_$N1.length>0))return[3,28];new In.Notice(P.t("deleteConfirm.warningNotice"),3e3);return[4,new ms(this.app,_$N1).open()];case 18:_ref=_state.sent(),k=_ref.tasksToDelete,B=_ref.tasksToReupload,U=new Map,$=new Map,X=[],le=new Set,K=function(pe){var Te=pe;for(;Te&&Te!=="."&&Te!==""&&Te!=="/"&&!le.has(Te);)le.add(Te),Te=Et((0,ip.dirname)(Te))},qe=function(pe,Te){return D(_this,null,function(){var de,_e,Ie,or;return _ts_generator(this,function(_state){switch(_state.label){case 0:de=(0,In.normalizePath)((0,ip.dirname)(pe)),_e=Et((0,ip.dirname)(Te));if(!(!(de==="."||de===""||de==="/"||$.has(_e)||c.some(function(Ie){return _instanceof(Ie,wt)&&Ie.remotePath===_e})||d.some(function(Ie){return _instanceof(Ie,wt)&&Ie.remotePath===_e}))&&!le.has(_e)))return[3,4];_state.label=1;case 1:_state.trys.push([1,3,,4]);return[4,a.stat(_e)];case 2:_state.sent(),K(_e);return[3,4];case 3:Ie=_state.sent();or=new wt({vault:this.vault,webdav:a,remoteBaseDir:this.remoteBaseDir,remotePath:_e,localPath:de,syncRecord:s});$.set(_e,or);return[3,4];case 4:return[2]}})})};_iteratorNormalCompletion=true,_didIteratorError=false,_iteratorError=undefined;_state.label=19;case 19:_state.trys.push([19,25,26,27]);_iterator=B[Symbol.iterator]();_state.label=20;case 20:if(!!(_iteratorNormalCompletion=(_step=_iterator.next()).done))return[3,24];pe=_step.value;return[4,Xt(this.vault,pe.localPath)];case 21:Te=_state.sent();if(!Te)return[3,23];return[4,qe(pe.localPath,pe.remotePath)];case 22:if(_state.sent(),Te.isDir){de=new wt(pe.options);U.set(pe,de),$.set(pe.remotePath,de)}else{de1=new Gn(pe.options);U.set(pe,de1),X.push(de1)}_state.label=23;case 23:_iteratorNormalCompletion=true;return[3,20];case 24:return[3,27];case 25:err1=_state.sent();_didIteratorError=true;_iteratorError=err1;return[3,27];case 26:try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}return[7];case 27:V=Array.from($.values()),fe=new Set(k);_iteratorNormalCompletion1=true,_didIteratorError1=false,_iteratorError1=undefined;try{for(_iterator1=B[Symbol.iterator]();!(_iteratorNormalCompletion1=(_step1=_iterator1.next()).done);_iteratorNormalCompletion1=true){pe1=_step1.value;Te1=(0,In.normalizePath)(pe1.localPath);_iteratorNormalCompletion2=true,_didIteratorError2=false,_iteratorError2=undefined;for(;Te1&&Te1!=="."&&Te1!==""&&Te1!=="/"&&(Te1=(0,In.normalizePath)((0,ip.dirname)(Te1)),!(Te1==="."||Te1===""||Te1==="/"));)try{for(_iterator2=fe[Symbol.iterator]();!(_iteratorNormalCompletion2=(_step2=_iterator2.next()).done);_iteratorNormalCompletion2=true){de2=_step2.value;if(de2.localPath===Te1){fe.delete(de2);break}}}catch(err1){_didIteratorError2=true;_iteratorError2=err1}finally{try{if(!_iteratorNormalCompletion2&&_iterator2.return!=null){_iterator2.return()}}finally{if(_didIteratorError2){throw _iteratorError2}}}}}catch(err1){_didIteratorError1=true;_iteratorError1=err1}finally{try{if(!_iteratorNormalCompletion1&&_iterator1.return!=null){_iterator1.return()}}finally{if(_didIteratorError1){throw _iteratorError1}}}me=[],be=[];_iteratorNormalCompletion3=true,_didIteratorError3=false,_iteratorError3=undefined;try{for(_iterator3=d[Symbol.iterator]();!(_iteratorNormalCompletion3=(_step3=_iterator3.next()).done);_iteratorNormalCompletion3=true){pe2=_step3.value;if(!_instanceof(pe2,An)){me.push(pe2);continue}if(fe.has(pe2)){be.push(pe2);continue}}}catch(err1){_didIteratorError3=true;_iteratorError3=err1}finally{try{if(!_iteratorNormalCompletion3&&_iterator3.return!=null){_iterator3.return()}}finally{if(_didIteratorError3){throw _iteratorError3}}}d=_to_consumable_array(V).concat(_to_consumable_array(me),_to_consumable_array(X),_to_consumable_array(be));_state.label=28;case 28:x=Array.from(new Set(_to_consumable_array(d).concat(_to_consumable_array(l),_to_consumable_array(f)))),h=x.filter(function(N){return _instanceof(N,wt)}),v=x.filter(function(N){return _instanceof(N,On)}),y=x.filter(function(N){return!(_instanceof(N,wt)||_instanceof(N,On))}),m=Fre(h),S=_to_consumable_array(Bre(v)).concat(_to_consumable_array(m),_to_consumable_array(y));d.length>500&&In.Platform.isDesktopApp&&new In.Notice(P.t("sync.suggestUseClientForManyTasks"),5e3);T=S.some(function(N){return!(_instanceof(N,Yt)||_instanceof(N,an)||_instanceof(N,zn))});_$n&&T&&this.plugin.progressService.showProgressModal();R=Ad(S,200),_=[],E=S.filter(function(N){return!(_instanceof(N,Yt)||_instanceof(N,an))}),O=[];_iteratorNormalCompletion4=true,_didIteratorError4=false,_iteratorError4=undefined;_state.label=29;case 29:_state.trys.push([29,35,36,37]);_iterator4=R[Symbol.iterator]();_state.label=30;case 30:if(!!(_iteratorNormalCompletion4=(_step4=_iterator4.next()).done))return[3,34];_$N2=_step4.value;return[4,this.execTasks(_$N2,E,O)];case 31:k1=_state.sent();(_1=_).push.apply(_1,_to_consumable_array(k1));return[4,this.updateMtimeInRecord(_$N2,k1)];case 32:if(_state.sent(),this.isCancelled)return[3,34];_state.label=33;case 33:_iteratorNormalCompletion4=true;return[3,30];case 34:return[3,37];case 35:err1=_state.sent();_didIteratorError4=true;_iteratorError4=err1;return[3,37];case 36:try{if(!_iteratorNormalCompletion4&&_iterator4.return!=null){_iterator4.return()}}finally{if(_didIteratorError4){throw _iteratorError4}}return[7];case 37:I=_.filter(function(N){return!N.success}).length;ce.debug("tasks result",_,"failed:",I),XE({failedCount:I,showNotice:_$n});return[3,40];case 38:n=_state.sent();tc(n),ce.error("Sync error:",n);return[3,40];case 39:this.subscriptions.forEach(function(n){return n.unsubscribe()});return[7];case 40:return[2]}})})}},{key:"execTasks",value:function execTasks(e,t,n){return D(this,null,function(){var i,a,s,u,c,o;return _ts_generator(this,function(_state){switch(_state.label){case 0:i=[],a=e.filter(function(s){return!(_instanceof(s,Yt)||_instanceof(s,an))});ce.debug("Starting to execute sync tasks",{totalTasks:e.length,displayedTasks:a.length,totalDisplayableTasks:t.length,alreadyCompleted:n.length});s=0;_state.label=1;case 1:if(!(s<e.length))return[3,4];u=e[s];if(this.isCancelled){tc(new co(P.t("sync.cancelled"),u));return[3,4]}ce.debug("Executing task [".concat(s+1,"/").concat(e.length,"] ").concat(u.localPath),{taskName:yi(u),taskPath:u.localPath});return[4,this.executeWithRetry(u)];case 2:c=_state.sent();ce.debug("Task completed [".concat(s+1,"/").concat(e.length,"] ").concat(u.localPath),{taskName:yi(u),taskPath:u.localPath,result:c}),i[s]=c,_instanceof(u,Yt)||_instanceof(u,an)||(n.push(u),$K(t.length,n));_state.label=3;case 3:++s;return[3,1];case 4:o=i.filter(function(s){return s.success}).length;return[2,(ce.debug("All tasks execution completed",{totalTasks:e.length,successCount:o,failedCount:e.length-o}),i)]}})})}},{key:"executeWithRetry",value:function executeWithRetry(e){return D(this,null,function(){var t;return _ts_generator(this,function(_state){switch(_state.label){case 0:if(this.isCancelled)return[2,{success:!1,error:new co(P.t("sync.cancelled"),e)}];return[4,e.exec()];case 1:t=_state.sent();if(!(t.error&&ra(t.error)))return[3,3];return[4,this.handle503Error(6e4)];case 2:if(_state.sent(),this.isCancelled)return[2,{success:!1,error:new co(P.t("sync.cancelled"),e)}];return[3,4];case 3:return[2,t];case 4:return[3,0];case 5:return[2]}})})}},{key:"updateMtimeInRecord",value:function updateMtimeInRecord(e,t){return D(this,null,function(){return _ts_generator(this,function(_state){return[2,Ure(this.plugin,this.vault,this.remoteBaseDir,e,t,10)]})})}},{key:"handle503Error",value:function handle503Error(e){return D(this,null,function(){var t,n;return _ts_generator(this,function(_state){switch(_state.label){case 0:t=Date.now(),n=t+e;new In.Notice(P.t("sync.requestsTooFrequent",{time:(0,In.moment)(n).format("HH:mm:ss")}));return[4,Ire(md(),n-t)];case 1:_state.sent();return[2]}})})}},{key:"app",get:function get(){return this.plugin.app}},{key:"webdav",get:function get(){return this.options.webdav}},{key:"vault",get:function get(){return this.options.vault}},{key:"remoteBaseDir",get:function get(){return this.options.remoteBaseDir}},{key:"settings",get:function get(){return this.plugin.settings}}]);return Eo1}();var Gv=require("obsidian");var ks=/*#__PURE__*/function(_Gv_Modal){"use strict";_inherits(ks1,_Gv_Modal);function ks1(t,n){_class_call_check(this,ks1);var _this;_this=_call_super(this,ks1,[t]);_this.onConfirm=n;return _this}_create_class(ks1,[{key:"onOpen",value:function onOpen(){return D(this,null,function(){var _this,_this1,t,n,i;return _ts_generator(this,function(_state){switch(_state.label){case 0:_this=this;_this1=this,t=_this1.contentEl;return[4,Jt()];case 1:n=_state.sent();t.createEl("h2",{text:P.t("sync.confirmModal.title")});i=t.createDiv({cls:"sync-info"});i.createEl("p",{text:P.t("sync.confirmModal.remoteDir",{dir:n.remoteDir})}),i.createEl("p",{text:P.t("sync.confirmModal.strategy",{strategy:P.t("settings.conflictStrategy.".concat(n.conflictStrategy==="diff-match-patch"?"diffMatchPatch":"latestTimestamp"))})}),t.createEl("pre",{text:P.t("sync.confirmModal.message")}),new Gv.Setting(t).addButton(function(a){return a.setButtonText(P.t("sync.confirmModal.cancel")).onClick(function(){return _this.close()})}).addButton(function(a){return a.setButtonText(P.t("sync.confirmModal.confirm")).setCta().onClick(function(){_this.close(),_this.onConfirm()})});return[2]}})})}},{key:"onClose",value:function onClose(){var _this=this,t=_this.contentEl;t.empty()}}]);return ks1}(Gv.Modal);var zv=/*#__PURE__*/function(){"use strict";function zv1(e){var _this=this;_class_call_check(this,zv1);this.plugin=e;this.startRibbonEl=this.plugin.addRibbonIcon("refresh-ccw",P.t("sync.startButton"),function(){return D(_this,null,function(){var _this,t;return _ts_generator(this,function(_state){_this=this;if(this.plugin.isSyncing)return[2];t=function(){return D(_this,null,function(){var _,_tmp,_tmp1;return _ts_generator(this,function(_state){switch(_state.label){case 0:_=Eo.bind;_tmp=[void 0,this.plugin];_tmp1={};return[4,this.plugin.webDAVService.createWebDAVClient()];case 1:_tmp1.webdav=_state.sent(),_tmp1.vault=this.plugin.app.vault;return[4,this.plugin.getToken()];case 2:return[4,(new(_.apply(Eo,_tmp.concat([(_tmp1.token=_state.sent(),_tmp1.remoteBaseDir=this.plugin.remoteBaseDir,_tmp1)])))).start({mode:"manual_sync"})];case 3:_state.sent();return[2]}})})};e.settings.confirmBeforeSync?new ks(this.plugin.app,t).open():t();return[2]})})}),this.stopRibbonEl=this.plugin.addRibbonIcon("square",P.t("sync.stopButton"),function(){return Xa()}),this.stopRibbonEl.classList.add("hidden")}_create_class(zv1,[{key:"update",value:function update(){this.plugin.isSyncing?(this.startRibbonEl.setAttr("aria-disabled","true"),this.startRibbonEl.addClass("nutstore-sync-spinning"),this.stopRibbonEl.classList.remove("hidden")):(this.startRibbonEl.removeAttribute("aria-disabled"),this.startRibbonEl.removeClass("nutstore-sync-spinning"),this.stopRibbonEl.classList.add("hidden"))}}]);return zv1}();var ap=/*#__PURE__*/function(){"use strict";function ap1(e,t){_class_call_check(this,ap1);this.plugin=e;this.syncExecutor=t;this.autoSyncTimer=null;this.startupSyncTimer=null}_create_class(ap1,[{key:"start",value:function start(){return D(this,null,function(){var _this,e;return _ts_generator(this,function(_state){switch(_state.label){case 0:_this=this;return[4,Jt()];case 1:e=_state.sent();e.startupSyncDelaySeconds>0?this.startupSyncTimer=window.setTimeout(function(){return D(_this,null,function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:_state.trys.push([0,,2,3]);return[4,this.syncExecutor.executeSync({mode:"auto_sync"})];case 1:_state.sent();return[3,3];case 2:this.startTimer(e.autoSyncIntervalSeconds);return[7];case 3:return[2]}})})},e.startupSyncDelaySeconds*1e3):this.startTimer(e.autoSyncIntervalSeconds);return[2]}})})}},{key:"startTimer",value:function startTimer(e){var _this=this;this.stopTimer();var t=e*1e3,n=so(t,0,i3(2,31)-1);n>0&&(this.autoSyncTimer=window.setInterval(function(){return D(_this,null,function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,this.syncExecutor.executeSync({mode:"auto_sync"})];case 1:_state.sent();return[2]}})})},n))}},{key:"stopTimer",value:function stopTimer(){this.autoSyncTimer!==null&&(window.clearInterval(this.autoSyncTimer),this.autoSyncTimer=null)}},{key:"updateInterval",value:function updateInterval(){return D(this,null,function(){var e;return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,Jt()];case 1:e=_state.sent();this.startTimer(e.autoSyncIntervalSeconds);return[2]}})})}},{key:"unload",value:function unload(){this.stopTimer(),this.startupSyncTimer!==null&&(window.clearTimeout(this.startupSyncTimer),this.startupSyncTimer=null)}}]);return ap1}();var op=function op1(e){"use strict";var _this=this;_class_call_check(this,op1);e.addCommand({id:"start-sync",name:P.t("sync.startButton"),checkCallback:function(t){if(e.isSyncing)return!1;if(t)return!0;var n=function(){return D(_this,null,function(){var _,_tmp,_tmp1;return _ts_generator(this,function(_state){switch(_state.label){case 0:_=Eo.bind;_tmp=[void 0,e];_tmp1={};return[4,e.webDAVService.createWebDAVClient()];case 1:_tmp1.webdav=_state.sent(),_tmp1.vault=e.app.vault;return[4,e.getToken()];case 2:return[4,(new(_.apply(Eo,_tmp.concat([(_tmp1.token=_state.sent(),_tmp1.remoteBaseDir=e.remoteBaseDir,_tmp1)])))).start({mode:"manual_sync"})];case 3:_state.sent();return[2]}})})};e.settings.confirmBeforeSync?new ks(e.app,n).open():n()}}),e.addCommand({id:"stop-sync",name:P.t("sync.stopButton"),checkCallback:function(t){return e.isSyncing?(t||Xa(),!0):!1}}),e.addCommand({id:"show-sync-progress",name:P.t("sync.showProgressButton"),callback:function(){e.progressService.showProgressModal()}})};var jre=require("obsidian");var sp=/*#__PURE__*/function(){"use strict";function sp1(e){var _this=this;_class_call_check(this,sp1);this.plugin=e;this.subscriptions=[Hx().subscribe(function(param){var t=param.showNotice;e.toggleSyncUI(!0),e.statusService.updateSyncStatus({text:P.t("sync.start"),showNotice:t})}),Kx().subscribe(function(t){var n=Math.round(t.completed.length/t.total*1e4)/100;e.statusService.updateSyncStatus({text:P.t("sync.progress",{percent:n})})}),zx().subscribe(function(i){return D(_this,[i],function(param){var t,n;return _ts_generator(this,function(_state){t=param.failedCount,n=param.showNotice;e.toggleSyncUI(!1),e.statusService.updateSyncStatus({text:t>0?P.t("sync.completeWithFailed",{failedCount:t}):P.t("sync.complete"),showNotice:n});return[2]})})}),UK().subscribe(function(t){e.toggleSyncUI(!1),e.statusService.updateSyncStatus({text:P.t("sync.failedStatus"),isError:!0,showNotice:!1}),new jre.Notice(P.t("sync.failedWithError",{error:ra(t)?P.t("sync.error.requestsTooFrequent"):t.message}))})]}_create_class(sp1,[{key:"unload",value:function unload(){this.subscriptions.forEach(function(e){return e.unsubscribe()})}}]);return sp1}();var $re=require("obsidian");var up=function up1(e){"use strict";_class_call_check(this,up1);this.plugin=e;this.update=function(){var t;var _$e1=navigator.language.split("-")[0];try{_$e1=(t=$re.getLanguage)==null?void 0:t().split("-")[0]}finally{P.changeLanguage(_$e1.toLowerCase())}};this.update(),this.plugin.registerInterval(window.setInterval(this.update,6e4))};var Vre=require("obsidian");cs();Pr();var cp=/*#__PURE__*/function(){"use strict";function cp1(e){var _this=this;_class_call_check(this,cp1);this.plugin=e;this.logs=[];hK?ce.addReporter({log:function(t){var n=[(0,Vre.moment)(t.date).format("YYYY-MM-DD HH:mm:ss"),t.type,t.args];_this.logs.push(n)}}):ce.setReporters([{log:function(t){_this.logs.push(t)}}])}_create_class(cp1,[{key:"clear",value:function clear(){this.logs=[]}}]);return cp1}();var Gre=require("obsidian");var Xn=require("obsidian");var lp=/*#__PURE__*/function(_Xn_Modal){"use strict";_inherits(lp1,_Xn_Modal);function lp1(t,n){_class_call_check(this,lp1);var _this;_this=_call_super(this,lp1,[t.app]);_this.plugin=t;_this.closeCallback=n;_this.syncCancelled=!1;_this.cancelSubscription=md().subscribe(function(){_this.syncCancelled=!0,_this.update()}),_this.updateMtimeSubscription=KK().subscribe(function(i){_this.updateCacheProgress(i.total,i.completed)});return _this}_create_class(lp1,[{key:"update",value:function update(){var _this=this;if(!this.progressBar||!this.progressText||!this.progressStats||!this.currentFile||!this.filesList)return;var t=this.plugin.progressService.syncProgress,n=Math.round(t.completed.length/t.total*100)||0;if(this.progressBar.style.width="".concat(n,"%"),this.progressText.setText(P.t("sync.percentComplete",{percent:n})),this.progressStats.setText(P.t("sync.progressStats",{completed:t.completed.length,total:t.total})),t.completed.length>0)if(this.plugin.progressService.syncEnd)this.stopButtonComponent.buttonEl.addClass("hidden"),this.hideButtonComponent.setButtonText(P.t("sync.closeButton")),this.currentFile.setText(P.t("sync.complete"));else if(this.syncCancelled)this.stopButtonComponent.buttonEl.addClass("hidden"),this.hideButtonComponent.setButtonText(P.t("sync.closeButton")),this.currentFile.setText(P.t("sync.cancelled"));else{var a=t.completed.at(-1);a&&this.currentFile.setText(P.t("sync.currentFile",{path:a.localPath}))}this.filesList.empty(),t.completed.slice().reverse().forEach(function(a){var o=_this.filesList.createDiv({cls:"flex items-center p-1 rounded text-3 gap-2 hover:bg-[var(--background-secondary)]"}),s=o.createSpan({cls:"text-[var(--text-muted)]"});_instanceof(a,Zi)?(0,Xn.setIcon)(s,"arrow-down-narrow-wide"):_instanceof(a,Gn)?(0,Xn.setIcon)(s,"arrow-up-narrow-wide"):_instanceof(a,Yi)||_instanceof(a,wt)?(0,Xn.setIcon)(s,"folder-plus"):_instanceof(a,An)||_instanceof(a,On)?(0,Xn.setIcon)(s,"trash"):_instanceof(a,Xi)?(0,Xn.setIcon)(s,"git-merge"):(0,Xn.setIcon)(s,"arrow-left-right"),o.createSpan({cls:"flex-none w-15 text-[var(--text-normal)] font-500"}).setText(yi(a)),o.createSpan({cls:"flex-1 truncate overflow-hidden whitespace-nowrap"}).setText(P.t("sync.filePath",{path:a.localPath}))})}},{key:"onOpen",value:function onOpen(){var _this=this;var _this1=this,t=_this1.contentEl;t.empty();var n=t.createDiv({cls:"flex flex-col gap-4 h-50vh max-h-50vh"});n.createDiv({cls:"border-b border-[var(--background-modifier-border)]"}).createEl("h2",{cls:"m-0"}).setText(P.t("sync.progressTitle"));var o=n.createDiv({cls:"flex flex-col gap-1"});o.createDiv().setText(P.t("sync.syncingFiles"));var u=o.createDiv({cls:"text-3 text-[var(--text-muted)] truncate overflow-hidden whitespace-nowrap"}),c=n.createDiv({cls:"flex flex-col gap-2"}),l=c.createDiv({cls:"text-3.25"}),f=c.createDiv({cls:"relative h-5 bg-[var(--background-secondary)] rounded overflow-hidden"}),d=f.createDiv({cls:"absolute h-full bg-[var(--interactive-accent)] w-0 transition-width"}),p=f.createDiv({cls:"absolute w-full text-center text-3 leading-5 text-[var(--text-on-accent)] mix-blend-difference"}),x=n.createDiv({cls:"flex flex-col gap-1"});this.cacheCurrentOperation=x.createDiv(),this.cacheCurrentOperation.setText(P.t("sync.updatingCache")),this.cacheCurrentOperation.hide();var h=x.createDiv({cls:"text-3.25"});this.cacheProgressStats=h,this.cacheProgressStats.hide();var v=x.createDiv({cls:"relative h-5 bg-[var(--background-secondary)] rounded overflow-hidden"});v.hide(),this.cacheProgressBar=v.createDiv({cls:"absolute h-full bg-[var(--interactive-accent)] w-0 transition-width"}),this.cacheProgressText=v.createDiv({cls:"absolute w-full text-center text-3 leading-5 text-[var(--text-on-accent)] mix-blend-difference"});var y=n.createDiv({cls:"flex flex-col flex-1 gap-2 mt-2 overflow-y-auto"});y.createDiv({cls:"font-500 text-3.5 pb-1 border-b border-[var(--background-modifier-border)]"}).setText(P.t("sync.completedFilesTitle"));var b=y.createDiv({cls:"flex-1 overflow-y-auto border border-[var(--background-modifier-border)] border-solid rounded p-1"});this.progressBar=d,this.progressText=p,this.progressStats=l,this.currentFile=u,this.filesList=b,this.update();var S=n.createDiv({cls:"border-t border-[var(--background-modifier-border)]"});new Xn.Setting(S).addButton(function(T){T.setButtonText(P.t("sync.hideButton")).onClick(function(){return _this.close()}),_this.hideButtonComponent=T}).addButton(function(T){T.setButtonText(P.t("sync.stopButton")).setWarning().onClick(function(){Xa()}),_this.stopButtonComponent=T})}},{key:"onClose",value:function onClose(){this.cancelSubscription.unsubscribe(),this.updateMtimeSubscription.unsubscribe();var _this=this,t=_this.contentEl;t.empty(),this.closeCallback&&this.closeCallback()}},{key:"updateCacheProgress",value:function updateCacheProgress(t,n){var a;if(!this.cacheProgressBar||!this.cacheProgressText||!this.cacheProgressStats)return;this.cacheCurrentOperation.show(),this.cacheProgressStats.show(),(a=this.cacheProgressBar.parentElement)==null||a.show();var i=Math.round(n/t*100)||0;this.cacheProgressBar.style.width="".concat(i,"%"),this.cacheProgressText.setText(P.t("sync.percentComplete",{percent:i})),this.cacheProgressStats.setText(P.t("sync.progressStats",{completed:n,total:t})),n===t&&this.cacheCurrentOperation.setText(P.t("sync.cacheUpdated"))}}]);return lp1}(Xn.Modal);var Kv=/*#__PURE__*/function(){"use strict";function Kv1(e){var _this=this;_class_call_check(this,Kv1);this.plugin=e;this.progressModal=null;this.syncProgress={total:0,completed:[]};this.syncEnd=!1;this.subscriptions=[Hx().subscribe(function(){_this.syncEnd=!1,_this.resetProgress()}),zx().subscribe(function(){_this.syncEnd=!0,_this.updateModal()}),Kx().subscribe(function(e){_this.syncProgress=e,_this.updateModal()})];this.updateModal=Eq(function(){_this.progressModal&&_this.progressModal.update()},200)}_create_class(Kv1,[{key:"resetProgress",value:function resetProgress(){this.syncProgress={total:0,completed:[]}}},{key:"showProgressModal",value:function showProgressModal(){if(!this.plugin.isSyncing){new Gre.Notice(P.t("sync.notSyncing"));return}this.closeProgressModal(),this.progressModal=new lp(this.plugin),this.progressModal.open()}},{key:"closeProgressModal",value:function closeProgressModal(){this.progressModal&&(this.progressModal.close(),this.progressModal=null)}},{key:"unload",value:function unload(){this.subscriptions.forEach(function(e){return e.unsubscribe()}),this.closeProgressModal()}}]);return Kv1}();var fp=/*#__PURE__*/function(){"use strict";function fp1(e,t){var _this=this;_class_call_check(this,fp1);this.plugin=e;this.syncExecutor=t;this.waiting=!1;this.submitDirectly=function(){return D(_this,null,function(){var _this,_tmp;return _ts_generator(this,function(_state){switch(_state.label){case 0:_this=this;_tmp=this.waiting;if(_tmp)return[3,3];this.waiting=!0;return[4,ws(function(){return _this.plugin.isSyncing===!1},500)];case 1:_state.sent(),this.waiting=!1;return[4,this.syncExecutor.executeSync({mode:"auto_sync"})];case 2:_tmp=_state.sent();_state.label=3;case 3:_tmp;return[2]}})})};this.submitSyncRequest=vs(this.submitDirectly,8e3);this.plugin.registerEvent(this.vault.on("create",function(){return D(_this,null,function(){var _tmp;return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,Jt()];case 1:_tmp=_state.sent().realtimeSync;if(!_tmp)return[3,3];return[4,this.submitSyncRequest()];case 2:_tmp=_state.sent();_state.label=3;case 3:_tmp;return[2]}})})})),this.plugin.registerEvent(this.vault.on("delete",function(){return D(_this,null,function(){var _tmp;return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,Jt()];case 1:_tmp=_state.sent().realtimeSync;if(!_tmp)return[3,3];return[4,this.submitSyncRequest()];case 2:_tmp=_state.sent();_state.label=3;case 3:_tmp;return[2]}})})})),this.plugin.registerEvent(this.vault.on("modify",function(){return D(_this,null,function(){var _tmp;return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,Jt()];case 1:_tmp=_state.sent().realtimeSync;if(!_tmp)return[3,3];return[4,this.submitSyncRequest()];case 2:_tmp=_state.sent();_state.label=3;case 3:_tmp;return[2]}})})})),this.plugin.registerEvent(this.vault.on("rename",function(){return D(_this,null,function(){var _tmp;return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,Jt()];case 1:_tmp=_state.sent().realtimeSync;if(!_tmp)return[3,3];return[4,this.submitSyncRequest()];case 2:_tmp=_state.sent();_state.label=3;case 3:_tmp;return[2]}})})}))}_create_class(fp1,[{key:"vault",get:function get(){return this.plugin.app.vault}},{key:"unload",value:function unload(){this.submitSyncRequest.cancel()}}]);return fp1}();var zre=require("obsidian"),Hv=/*#__PURE__*/function(){"use strict";function Hv1(e){_class_call_check(this,Hv1);this.plugin=e;this.syncStatusBar=e.addStatusBarItem()}_create_class(Hv1,[{key:"updateSyncStatus",value:function updateSyncStatus(e){this.syncStatusBar.setText(e.text),e.showNotice&&new zre.Notice(e.text)}}]);return Hv1}();var dp=/*#__PURE__*/function(){"use strict";function dp1(e){_class_call_check(this,dp1);this.plugin=e}_create_class(dp1,[{key:"executeSync",value:function executeSync(e){return D(this,null,function(){var _this,t,_tmp,i,a,_,_tmp1,_tmp2,_tmp3;return _ts_generator(this,function(_state){switch(_state.label){case 0:_this=this;if(this.plugin.isSyncing)return[2,!1];return[4,ws(function(){return _this.plugin.isSyncing===!1},500)];case 1:_state.sent();t=this.plugin.app.vault.configDir;_tmp=this.plugin.settings.filterRules.exclusionRules.some(function(u){return u.expr===t});if(_tmp)return[3,3];this.plugin.settings.filterRules.exclusionRules.push({expr:t,options:{caseSensitive:!1}});return[4,this.plugin.saveSettings()];case 2:_tmp=_state.sent();_state.label=3;case 3:_tmp;_=Eo.bind;_tmp1=[void 0,this.plugin];_tmp2={vault:this.plugin.app.vault};return[4,this.plugin.getToken()];case 4:_tmp2.token=_state.sent(),_tmp2.remoteBaseDir=this.plugin.remoteBaseDir;return[4,this.plugin.webDAVService.createWebDAVClient()];case 5:i=new(_.apply(Eo,_tmp1.concat([(_tmp2.webdav=_state.sent(),_tmp2)]))),a=new la(Cs(this.plugin.app.vault.getName(),this.plugin.remoteBaseDir),Vn);return[4,new Ns(i,a).decide()];case 6:if(!(_state.sent().length===0))return[3,7];_tmp3=!1;return[3,9];case 7:return[4,i.start({mode:e.mode})];case 8:_tmp3=(_state.sent(),!0);_state.label=9;case 9:return[2,_tmp3]}})})}}]);return dp1}();Bx();cs();function Kre(r){return new Proxy(r,{get:function get(e,t,n){var i=Reflect.get(e,t,n);return typeof i=="function"?function(){for(var _len=arguments.length,a=new Array(_len),_key=0;_key<_len;_key++){a[_key]=arguments[_key]}return wo.schedule(function(){return i.apply(e,a)})}:i}})}var Qv=/*#__PURE__*/function(){"use strict";function Qv1(e){_class_call_check(this,Qv1);this.plugin=e}_create_class(Qv1,[{key:"createWebDAVClient",value:function createWebDAVClient(){return D(this,null,function(){var e,t;return _ts_generator(this,function(_state){switch(_state.label){case 0:if(!(this.plugin.settings.loginMode==="manual"))return[3,1];e=hd(us,{username:this.plugin.settings.account,password:this.plugin.settings.credential});return[3,3];case 1:return[4,this.plugin.getDecryptedOAuthInfo()];case 2:t=_state.sent();e=hd(us,{username:t.username,password:t.access_token});_state.label=3;case 3:return[2,Kre(e)]}})})}},{key:"checkWebDAVConnection",value:function checkWebDAVConnection(){return D(this,null,function(){var _tmp,e;return _ts_generator(this,function(_state){switch(_state.label){case 0:_state.trys.push([0,3,,4]);_tmp={};return[4,this.createWebDAVClient()];case 1:return[4,_state.sent().exists("/")];case 2:return[2,(_tmp.success=_state.sent(),_tmp)];case 3:e=_state.sent();return[2,{error:e,success:!1}];case 4:return[2]}})})}}]);return Qv1}();function Hre(r){return D(this,null,function(){var e;return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,BY({app:"obsidian",s:r})];case 1:e=_state.sent();return[2,JSON.parse(e)]}})})}var Xv=/*#__PURE__*/function(_il_Plugin){"use strict";_inherits(Xv1,_il_Plugin);function Xv1(){_class_call_check(this,Xv1);var _this;_this=_call_super(this,Xv1,arguments);_this.isSyncing=!1;_this.commandService=new op(_this);_this.eventsService=new sp(_this);_this.i18nService=new up(_this);_this.loggerService=new cp(_this);_this.progressService=new Kv(_this);_this.ribbonManager=new zv(_this);_this.statusService=new Hv(_this);_this.webDAVService=new Qv(_this);_this.syncExecutorService=new dp(_this);_this.realtimeSyncService=new fp(_this,_this.syncExecutorService);_this.scheduledSyncService=new ap(_this,_this.syncExecutorService);return _this}_create_class(Xv1,[{key:"onload",value:function onload(){return D(this,null,function(){var _this;return _ts_generator(this,function(_state){switch(_state.label){case 0:_this=this;return[4,this.loadSettings()];case 1:_state.sent(),this.addSettingTab(new Av(this.app,this)),this.registerObsidianProtocolHandler("nutstore-sync/sso",function(t){return D(_this,null,function(){var _tmp;return _ts_generator(this,function(_state){switch(_state.label){case 0:_tmp=t!=null&&t.s;if(!_tmp)return[3,2];this.settings.oauthResponseText=t.s;return[4,this.saveSettings()];case 1:_tmp=(_state.sent(),new il.Notice(P.t("settings.login.success"),5e3));_state.label=2;case 2:_tmp,LY({token:t==null?void 0:t.s});return[2]}})})}),gT(this);return[4,this.scheduledSyncService.start()];case 2:_state.sent();return[2]}})})}},{key:"onunload",value:function onunload(){return D(this,null,function(){return _ts_generator(this,function(_state){gT(null),Xa(),this.scheduledSyncService.unload(),this.progressService.unload(),this.eventsService.unload(),this.realtimeSyncService.unload();return[2]})})}},{key:"loadSettings",value:function loadSettings(){return D(this,null,function(){var n,_,_1,_tmp;function t(i){return{expr:i,options:{caseSensitive:!1}}}return _ts_generator(this,function(_state){switch(_state.label){case 0:n={account:"",credential:"",remoteDir:"",remoteCacheDir:"",useGitStyle:!1,conflictStrategy:"diff-match-patch",oauthResponseText:"",loginMode:"sso",confirmBeforeSync:!0,syncMode:"loose",filterRules:{exclusionRules:["**/.git","**/.DS_Store","**/.trash",this.app.vault.configDir].map(t),inclusionRules:[]},skipLargeFiles:{maxSize:"30 MB"},realtimeSync:!1,startupSyncDelaySeconds:0,autoSyncIntervalSeconds:300};_=this;_1=Object.assign;_tmp=[{},n];return[4,this.loadData()];case 1:_.settings=_1.apply(Object,_tmp.concat([_state.sent()]));return[2]}})})}},{key:"saveSettings",value:function saveSettings(){return D(this,null,function(){return _ts_generator(this,function(_state){switch(_state.label){case 0:return[4,this.saveData(this.settings)];case 1:_state.sent();return[2]}})})}},{key:"toggleSyncUI",value:function toggleSyncUI(t){this.isSyncing=t,this.ribbonManager.update()}},{key:"getDecryptedOAuthInfo",value:function getDecryptedOAuthInfo(){return D(this,null,function(){return _ts_generator(this,function(_state){return[2,Hre(this.settings.oauthResponseText)]})})}},{key:"getToken",value:function getToken(){return D(this,null,function(){var t,n;return _ts_generator(this,function(_state){switch(_state.label){case 0:if(!(this.settings.loginMode==="sso"))return[3,2];return[4,this.getDecryptedOAuthInfo()];case 1:n=_state.sent();t="".concat(n.username,":").concat(n.access_token);return[3,3];case 2:t="".concat(this.settings.account,":").concat(this.settings.credential);_state.label=3;case 3:return[2,qK(t)]}})})}},{key:"remoteBaseDir",get:function get(){var t=(0,il.normalizePath)(this.settings.remoteDir.trim());return(t===""||t==="/")&&(t=this.app.vault.getName()),Et(t)}}]);return Xv1}(il.Plugin);/*! Bundled license information:
webdav/dist/web/index.js:
(*! For license information please see index.js.LICENSE.txt *)
localforage/dist/localforage.js:
(*!
localForage -- Offline Storage, Improved
Version 1.10.0
https://localforage.github.io/localForage
(c) 2013-2017 Mozilla, Apache License 2.0
*)
bytes-iec/index.js:
(*!
* bytes
* Copyright(c) 2012-2014 TJ Holowaychuk
* Copyright(c) 2015 Jed Watson
* MIT Licensed
*)
lodash-es/lodash.js:
(**
* @license
* Lodash (Custom Build) <https://lodash.com/>
* Build: `lodash modularize exports="es" -o ./`
* 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
*)
*/
/* nosourcemap */