dlsjs 0.1.26 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,2 @@
1
+ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).dlsjs={})}(this,function(t){"use strict";function e(t,e){return function(){return t.apply(e,arguments)}}const{toString:n}=Object.prototype,{getPrototypeOf:r}=Object,{iterator:o,toStringTag:i}=Symbol,u=(t=>e=>{const r=n.call(e);return t[r]||(t[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),s=t=>(t=t.toLowerCase(),e=>u(e)===t),a=t=>e=>typeof e===t,{isArray:c}=Array,l=a("undefined");function f(t){return null!==t&&!l(t)&&null!==t.constructor&&!l(t.constructor)&&d(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const p=s("ArrayBuffer");const h=a("string"),d=a("function"),y=a("number"),g=t=>null!==t&&"object"==typeof t,m=t=>{if("object"!==u(t))return!1;const e=r(t);return!(null!==e&&e!==Object.prototype&&null!==Object.getPrototypeOf(e)||i in t||o in t)},v=s("Date"),b=s("File"),w=s("Blob"),O=s("FileList"),S=s("URLSearchParams"),[A,j,x,E]=["ReadableStream","Request","Response","Headers"].map(s);function R(t,e,{allOwnKeys:n=!1}={}){if(null==t)return;let r,o;if("object"!=typeof t&&(t=[t]),c(t))for(r=0,o=t.length;r<o;r++)e.call(null,t[r],r,t);else{if(f(t))return;const o=n?Object.getOwnPropertyNames(t):Object.keys(t),i=o.length;let u;for(r=0;r<i;r++)u=o[r],e.call(null,t[u],u,t)}}function T(t,e){if(f(t))return null;e=e.toLowerCase();const n=Object.keys(t);let r,o=n.length;for(;o-- >0;)if(r=n[o],e===r.toLowerCase())return r;return null}const P="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,N=t=>!l(t)&&t!==P;const C=(t=>e=>t&&e instanceof t)("undefined"!=typeof Uint8Array&&r(Uint8Array)),F=s("HTMLFormElement"),_=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),k=s("RegExp"),D=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};R(n,(n,o)=>{let i;!1!==(i=e(n,o,t))&&(r[o]=i||n)}),Object.defineProperties(t,r)};const I=s("AsyncFunction"),M=(U="function"==typeof setImmediate,L=d(P.postMessage),U?setImmediate:L?($=`axios@${Math.random()}`,B=[],P.addEventListener("message",({source:t,data:e})=>{t===P&&e===$&&B.length&&B.shift()()},!1),t=>{B.push(t),P.postMessage($,"*")}):t=>setTimeout(t));var U,L,$,B;const q="undefined"!=typeof queueMicrotask?queueMicrotask.bind(P):"undefined"!=typeof process&&process.nextTick||M,W={isArray:c,isArrayBuffer:p,isBuffer:f,isFormData:t=>{let e;return t&&("function"==typeof FormData&&t instanceof FormData||d(t.append)&&("formdata"===(e=u(t))||"object"===e&&d(t.toString)&&"[object FormData]"===t.toString()))},isArrayBufferView:function(t){let e;return e="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&p(t.buffer),e},isString:h,isNumber:y,isBoolean:t=>!0===t||!1===t,isObject:g,isPlainObject:m,isEmptyObject:t=>{if(!g(t)||f(t))return!1;try{return 0===Object.keys(t).length&&Object.getPrototypeOf(t)===Object.prototype}catch(e){return!1}},isReadableStream:A,isRequest:j,isResponse:x,isHeaders:E,isUndefined:l,isDate:v,isFile:b,isBlob:w,isRegExp:k,isFunction:d,isStream:t=>g(t)&&d(t.pipe),isURLSearchParams:S,isTypedArray:C,isFileList:O,forEach:R,merge:function t(){const{caseless:e,skipUndefined:n}=N(this)&&this||{},r={},o=(o,i)=>{const u=e&&T(r,i)||i;m(r[u])&&m(o)?r[u]=t(r[u],o):m(o)?r[u]=t({},o):c(o)?r[u]=o.slice():n&&l(o)||(r[u]=o)};for(let i=0,u=arguments.length;i<u;i++)arguments[i]&&R(arguments[i],o);return r},extend:(t,n,r,{allOwnKeys:o}={})=>(R(n,(n,o)=>{r&&d(n)?t[o]=e(n,r):t[o]=n},{allOwnKeys:o}),t),trim:t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),inherits:(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},toFlatObject:(t,e,n,o)=>{let i,u,s;const a={};if(e=e||{},null==t)return e;do{for(i=Object.getOwnPropertyNames(t),u=i.length;u-- >0;)s=i[u],o&&!o(s,t,e)||a[s]||(e[s]=t[s],a[s]=!0);t=!1!==n&&r(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},kindOf:u,kindOfTest:s,endsWith:(t,e,n)=>{t=String(t),(void 0===n||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return-1!==r&&r===n},toArray:t=>{if(!t)return null;if(c(t))return t;let e=t.length;if(!y(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},forEachEntry:(t,e)=>{const n=(t&&t[o]).call(t);let r;for(;(r=n.next())&&!r.done;){const n=r.value;e.call(t,n[0],n[1])}},matchAll:(t,e)=>{let n;const r=[];for(;null!==(n=t.exec(e));)r.push(n);return r},isHTMLForm:F,hasOwnProperty:_,hasOwnProp:_,reduceDescriptors:D,freezeMethods:t=>{D(t,(e,n)=>{if(d(t)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=t[n];d(r)&&(e.enumerable=!1,"writable"in e?e.writable=!1:e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(t,e)=>{const n={},r=t=>{t.forEach(t=>{n[t]=!0})};return c(t)?r(t):r(String(t).split(e)),n},toCamelCase:t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,e,n){return e.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(t,e)=>null!=t&&Number.isFinite(t=+t)?t:e,findKey:T,global:P,isContextDefined:N,isSpecCompliantForm:function(t){return!!(t&&d(t.append)&&"FormData"===t[i]&&t[o])},toJSONObject:t=>{const e=new Array(10),n=(t,r)=>{if(g(t)){if(e.indexOf(t)>=0)return;if(f(t))return t;if(!("toJSON"in t)){e[r]=t;const o=c(t)?[]:{};return R(t,(t,e)=>{const i=n(t,r+1);!l(i)&&(o[e]=i)}),e[r]=void 0,o}}return t};return n(t,0)},isAsyncFn:I,isThenable:t=>t&&(g(t)||d(t))&&d(t.then)&&d(t.catch),setImmediate:M,asap:q,isIterable:t=>null!=t&&d(t[o])};function z(t,e,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}W.inherits(z,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:W.toJSONObject(this.config),code:this.code,status:this.status}}});const H=z.prototype,J={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{J[t]={value:t}}),Object.defineProperties(z,J),Object.defineProperty(H,"isAxiosError",{value:!0}),z.from=(t,e,n,r,o,i)=>{const u=Object.create(H);W.toFlatObject(t,u,function(t){return t!==Error.prototype},t=>"isAxiosError"!==t);const s=t&&t.message?t.message:"Error",a=null==e&&t?t.code:e;return z.call(u,s,a,n,r,o),t&&null==u.cause&&Object.defineProperty(u,"cause",{value:t,configurable:!0}),u.name=t&&t.name||"Error",i&&Object.assign(u,i),u};function K(t){return W.isPlainObject(t)||W.isArray(t)}function V(t){return W.endsWith(t,"[]")?t.slice(0,-2):t}function Y(t,e,n){return t?t.concat(e).map(function(t,e){return t=V(t),!n&&e?"["+t+"]":t}).join(n?".":""):e}const X=W.toFlatObject(W,{},null,function(t){return/^is[A-Z]/.test(t)});function Z(t,e,n){if(!W.isObject(t))throw new TypeError("target must be an object");e=e||new FormData;const r=(n=W.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(t,e){return!W.isUndefined(e[t])})).metaTokens,o=n.visitor||c,i=n.dots,u=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&W.isSpecCompliantForm(e);if(!W.isFunction(o))throw new TypeError("visitor must be a function");function a(t){if(null===t)return"";if(W.isDate(t))return t.toISOString();if(W.isBoolean(t))return t.toString();if(!s&&W.isBlob(t))throw new z("Blob is not supported. Use a Buffer instead.");return W.isArrayBuffer(t)||W.isTypedArray(t)?s&&"function"==typeof Blob?new Blob([t]):Buffer.from(t):t}function c(t,n,o){let s=t;if(t&&!o&&"object"==typeof t)if(W.endsWith(n,"{}"))n=r?n:n.slice(0,-2),t=JSON.stringify(t);else if(W.isArray(t)&&function(t){return W.isArray(t)&&!t.some(K)}(t)||(W.isFileList(t)||W.endsWith(n,"[]"))&&(s=W.toArray(t)))return n=V(n),s.forEach(function(t,r){!W.isUndefined(t)&&null!==t&&e.append(!0===u?Y([n],r,i):null===u?n:n+"[]",a(t))}),!1;return!!K(t)||(e.append(Y(o,n,i),a(t)),!1)}const l=[],f=Object.assign(X,{defaultVisitor:c,convertValue:a,isVisitable:K});if(!W.isObject(t))throw new TypeError("data must be an object");return function t(n,r){if(!W.isUndefined(n)){if(-1!==l.indexOf(n))throw Error("Circular reference detected in "+r.join("."));l.push(n),W.forEach(n,function(n,i){!0===(!(W.isUndefined(n)||null===n)&&o.call(e,n,W.isString(i)?i.trim():i,r,f))&&t(n,r?r.concat(i):[i])}),l.pop()}}(t),e}function G(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(t){return e[t]})}function Q(t,e){this._pairs=[],t&&Z(t,this,e)}const tt=Q.prototype;function et(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function nt(t,e,n){if(!e)return t;const r=n&&n.encode||et;W.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(i=o?o(e,n):W.isURLSearchParams(e)?e.toString():new Q(e,n).toString(r),i){const e=t.indexOf("#");-1!==e&&(t=t.slice(0,e)),t+=(-1===t.indexOf("?")?"?":"&")+i}return t}tt.append=function(t,e){this._pairs.push([t,e])},tt.toString=function(t){const e=t?function(e){return t.call(this,e,G)}:G;return this._pairs.map(function(t){return e(t[0])+"="+e(t[1])},"").join("&")};class rt{constructor(){this.handlers=[]}use(t,e,n){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){W.forEach(this.handlers,function(e){null!==e&&t(e)})}}const ot={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},it={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Q,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},ut="undefined"!=typeof window&&"undefined"!=typeof document,st="object"==typeof navigator&&navigator||void 0,at=ut&&(!st||["ReactNative","NativeScript","NS"].indexOf(st.product)<0),ct="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,lt=ut&&window.location.href||"http://localhost",ft={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ut,hasStandardBrowserEnv:at,hasStandardBrowserWebWorkerEnv:ct,navigator:st,origin:lt},Symbol.toStringTag,{value:"Module"})),...it};function pt(t){function e(t,n,r,o){let i=t[o++];if("__proto__"===i)return!0;const u=Number.isFinite(+i),s=o>=t.length;if(i=!i&&W.isArray(r)?r.length:i,s)return W.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!u;r[i]&&W.isObject(r[i])||(r[i]=[]);return e(t,n,r[i],o)&&W.isArray(r[i])&&(r[i]=function(t){const e={},n=Object.keys(t);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],e[i]=t[i];return e}(r[i])),!u}if(W.isFormData(t)&&W.isFunction(t.entries)){const n={};return W.forEachEntry(t,(t,r)=>{e(function(t){return W.matchAll(/\w+|\[(\w*)]/g,t).map(t=>"[]"===t[0]?"":t[1]||t[0])}(t),r,n,0)}),n}return null}const ht={transitional:ot,adapter:["xhr","http","fetch"],transformRequest:[function(t,e){const n=e.getContentType()||"",r=n.indexOf("application/json")>-1,o=W.isObject(t);o&&W.isHTMLForm(t)&&(t=new FormData(t));if(W.isFormData(t))return r?JSON.stringify(pt(t)):t;if(W.isArrayBuffer(t)||W.isBuffer(t)||W.isStream(t)||W.isFile(t)||W.isBlob(t)||W.isReadableStream(t))return t;if(W.isArrayBufferView(t))return t.buffer;if(W.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(t,e){return Z(t,new ft.classes.URLSearchParams,{visitor:function(t,e,n,r){return ft.isNode&&W.isBuffer(t)?(this.append(e,t.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...e})}(t,this.formSerializer).toString();if((i=W.isFileList(t))||n.indexOf("multipart/form-data")>-1){const e=this.env&&this.env.FormData;return Z(i?{"files[]":t}:t,e&&new e,this.formSerializer)}}return o||r?(e.setContentType("application/json",!1),function(t,e,n){if(W.isString(t))try{return(e||JSON.parse)(t),W.trim(t)}catch(r){if("SyntaxError"!==r.name)throw r}return(n||JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){const e=this.transitional||ht.transitional,n=e&&e.forcedJSONParsing,r="json"===this.responseType;if(W.isResponse(t)||W.isReadableStream(t))return t;if(t&&W.isString(t)&&(n&&!this.responseType||r)){const n=!(e&&e.silentJSONParsing)&&r;try{return JSON.parse(t,this.parseReviver)}catch(o){if(n){if("SyntaxError"===o.name)throw z.from(o,z.ERR_BAD_RESPONSE,this,null,this.response);throw o}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ft.classes.FormData,Blob:ft.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};W.forEach(["delete","get","head","post","put","patch"],t=>{ht.headers[t]={}});const dt=W.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),yt=Symbol("internals");function gt(t){return t&&String(t).trim().toLowerCase()}function mt(t){return!1===t||null==t?t:W.isArray(t)?t.map(mt):String(t)}function vt(t,e,n,r,o){return W.isFunction(r)?r.call(this,e,n):(o&&(e=n),W.isString(e)?W.isString(r)?-1!==e.indexOf(r):W.isRegExp(r)?r.test(e):void 0:void 0)}let bt=class{constructor(t){t&&this.set(t)}set(t,e,n){const r=this;function o(t,e,n){const o=gt(e);if(!o)throw new Error("header name must be a non-empty string");const i=W.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||e]=mt(t))}const i=(t,e)=>W.forEach(t,(t,n)=>o(t,n,e));if(W.isPlainObject(t)||t instanceof this.constructor)i(t,e);else if(W.isString(t)&&(t=t.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim()))i((t=>{const e={};let n,r,o;return t&&t.split("\n").forEach(function(t){o=t.indexOf(":"),n=t.substring(0,o).trim().toLowerCase(),r=t.substring(o+1).trim(),!n||e[n]&&dt[n]||("set-cookie"===n?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e})(t),e);else if(W.isObject(t)&&W.isIterable(t)){let n,r,o={};for(const e of t){if(!W.isArray(e))throw TypeError("Object iterator must return a key-value pair");o[r=e[0]]=(n=o[r])?W.isArray(n)?[...n,e[1]]:[n,e[1]]:e[1]}i(o,e)}else null!=t&&o(e,t,n);return this}get(t,e){if(t=gt(t)){const n=W.findKey(this,t);if(n){const t=this[n];if(!e)return t;if(!0===e)return function(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}(t);if(W.isFunction(e))return e.call(this,t,n);if(W.isRegExp(e))return e.exec(t);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=gt(t)){const n=W.findKey(this,t);return!(!n||void 0===this[n]||e&&!vt(0,this[n],n,e))}return!1}delete(t,e){const n=this;let r=!1;function o(t){if(t=gt(t)){const o=W.findKey(n,t);!o||e&&!vt(0,n[o],o,e)||(delete n[o],r=!0)}}return W.isArray(t)?t.forEach(o):o(t),r}clear(t){const e=Object.keys(this);let n=e.length,r=!1;for(;n--;){const o=e[n];t&&!vt(0,this[o],o,t,!0)||(delete this[o],r=!0)}return r}normalize(t){const e=this,n={};return W.forEach(this,(r,o)=>{const i=W.findKey(n,o);if(i)return e[i]=mt(r),void delete e[o];const u=t?function(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,e,n)=>e.toUpperCase()+n)}(o):String(o).trim();u!==o&&delete e[o],e[u]=mt(r),n[u]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return W.forEach(this,(n,r)=>{null!=n&&!1!==n&&(e[r]=t&&W.isArray(n)?n.join(", "):n)}),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,e])=>t+": "+e).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const n=new this(t);return e.forEach(t=>n.set(t)),n}static accessor(t){const e=(this[yt]=this[yt]={accessors:{}}).accessors,n=this.prototype;function r(t){const r=gt(t);e[r]||(!function(t,e){const n=W.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(t,n,o){return this[r].call(this,e,t,n,o)},configurable:!0})})}(n,t),e[r]=!0)}return W.isArray(t)?t.forEach(r):r(t),this}};function wt(t,e){const n=this||ht,r=e||n,o=bt.from(r.headers);let i=r.data;return W.forEach(t,function(t){i=t.call(n,i,o.normalize(),e?e.status:void 0)}),o.normalize(),i}function Ot(t){return!(!t||!t.__CANCEL__)}function St(t,e,n){z.call(this,null==t?"canceled":t,z.ERR_CANCELED,e,n),this.name="CanceledError"}function At(t,e,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?e(new z("Request failed with status code "+n.status,[z.ERR_BAD_REQUEST,z.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):t(n)}bt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),W.reduceDescriptors(bt.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(t){this[n]=t}}}),W.freezeMethods(bt),W.inherits(St,z,{__CANCEL__:!0});const jt=(t,e,n=3)=>{let r=0;const o=function(t,e){t=t||10;const n=new Array(t),r=new Array(t);let o,i=0,u=0;return e=void 0!==e?e:1e3,function(s){const a=Date.now(),c=r[u];o||(o=a),n[i]=s,r[i]=a;let l=u,f=0;for(;l!==i;)f+=n[l++],l%=t;if(i=(i+1)%t,i===u&&(u=(u+1)%t),a-o<e)return;const p=c&&a-c;return p?Math.round(1e3*f/p):void 0}}(50,250);return function(t,e){let n,r,o=0,i=1e3/e;const u=(e,i=Date.now())=>{o=i,n=null,r&&(clearTimeout(r),r=null),t(...e)};return[(...t)=>{const e=Date.now(),s=e-o;s>=i?u(t,e):(n=t,r||(r=setTimeout(()=>{r=null,u(n)},i-s)))},()=>n&&u(n)]}(n=>{const i=n.loaded,u=n.lengthComputable?n.total:void 0,s=i-r,a=o(s);r=i;t({loaded:i,total:u,progress:u?i/u:void 0,bytes:s,rate:a||void 0,estimated:a&&u&&i<=u?(u-i)/a:void 0,event:n,lengthComputable:null!=u,[e?"download":"upload"]:!0})},n)},xt=(t,e)=>{const n=null!=t;return[r=>e[0]({lengthComputable:n,total:t,loaded:r}),e[1]]},Et=t=>(...e)=>W.asap(()=>t(...e)),Rt=ft.hasStandardBrowserEnv?((t,e)=>n=>(n=new URL(n,ft.origin),t.protocol===n.protocol&&t.host===n.host&&(e||t.port===n.port)))(new URL(ft.origin),ft.navigator&&/(msie|trident)/i.test(ft.navigator.userAgent)):()=>!0,Tt=ft.hasStandardBrowserEnv?{write(t,e,n,r,o,i,u){if("undefined"==typeof document)return;const s=[`${t}=${encodeURIComponent(e)}`];W.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),W.isString(r)&&s.push(`path=${r}`),W.isString(o)&&s.push(`domain=${o}`),!0===i&&s.push("secure"),W.isString(u)&&s.push(`SameSite=${u}`),document.cookie=s.join("; ")},read(t){if("undefined"==typeof document)return null;const e=document.cookie.match(new RegExp("(?:^|; )"+t+"=([^;]*)"));return e?decodeURIComponent(e[1]):null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function Pt(t,e,n){let r=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);return t&&(r||0==n)?function(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}(t,e):e}const Nt=t=>t instanceof bt?{...t}:t;function Ct(t,e){e=e||{};const n={};function r(t,e,n,r){return W.isPlainObject(t)&&W.isPlainObject(e)?W.merge.call({caseless:r},t,e):W.isPlainObject(e)?W.merge({},e):W.isArray(e)?e.slice():e}function o(t,e,n,o){return W.isUndefined(e)?W.isUndefined(t)?void 0:r(void 0,t,0,o):r(t,e,0,o)}function i(t,e){if(!W.isUndefined(e))return r(void 0,e)}function u(t,e){return W.isUndefined(e)?W.isUndefined(t)?void 0:r(void 0,t):r(void 0,e)}function s(n,o,i){return i in e?r(n,o):i in t?r(void 0,n):void 0}const a={url:i,method:i,data:i,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,withXSRFToken:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,beforeRedirect:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,responseEncoding:u,validateStatus:s,headers:(t,e,n)=>o(Nt(t),Nt(e),0,!0)};return W.forEach(Object.keys({...t,...e}),function(r){const i=a[r]||o,u=i(t[r],e[r],r);W.isUndefined(u)&&i!==s||(n[r]=u)}),n}const Ft=t=>{const e=Ct({},t);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:u,auth:s}=e;if(e.headers=u=bt.from(u),e.url=nt(Pt(e.baseURL,e.url,e.allowAbsoluteUrls),t.params,t.paramsSerializer),s&&u.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),W.isFormData(n))if(ft.hasStandardBrowserEnv||ft.hasStandardBrowserWebWorkerEnv)u.setContentType(void 0);else if(W.isFunction(n.getHeaders)){const t=n.getHeaders(),e=["content-type","content-length"];Object.entries(t).forEach(([t,n])=>{e.includes(t.toLowerCase())&&u.set(t,n)})}if(ft.hasStandardBrowserEnv&&(r&&W.isFunction(r)&&(r=r(e)),r||!1!==r&&Rt(e.url))){const t=o&&i&&Tt.read(i);t&&u.set(o,t)}return e},_t="undefined"!=typeof XMLHttpRequest&&function(t){return new Promise(function(e,n){const r=Ft(t);let o=r.data;const i=bt.from(r.headers).normalize();let u,s,a,c,l,{responseType:f,onUploadProgress:p,onDownloadProgress:h}=r;function d(){c&&c(),l&&l(),r.cancelToken&&r.cancelToken.unsubscribe(u),r.signal&&r.signal.removeEventListener("abort",u)}let y=new XMLHttpRequest;function g(){if(!y)return;const r=bt.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders());At(function(t){e(t),d()},function(t){n(t),d()},{data:f&&"text"!==f&&"json"!==f?y.response:y.responseText,status:y.status,statusText:y.statusText,headers:r,config:t,request:y}),y=null}y.open(r.method.toUpperCase(),r.url,!0),y.timeout=r.timeout,"onloadend"in y?y.onloadend=g:y.onreadystatechange=function(){y&&4===y.readyState&&(0!==y.status||y.responseURL&&0===y.responseURL.indexOf("file:"))&&setTimeout(g)},y.onabort=function(){y&&(n(new z("Request aborted",z.ECONNABORTED,t,y)),y=null)},y.onerror=function(e){const r=new z(e&&e.message?e.message:"Network Error",z.ERR_NETWORK,t,y);r.event=e||null,n(r),y=null},y.ontimeout=function(){let e=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||ot;r.timeoutErrorMessage&&(e=r.timeoutErrorMessage),n(new z(e,o.clarifyTimeoutError?z.ETIMEDOUT:z.ECONNABORTED,t,y)),y=null},void 0===o&&i.setContentType(null),"setRequestHeader"in y&&W.forEach(i.toJSON(),function(t,e){y.setRequestHeader(e,t)}),W.isUndefined(r.withCredentials)||(y.withCredentials=!!r.withCredentials),f&&"json"!==f&&(y.responseType=r.responseType),h&&([a,l]=jt(h,!0),y.addEventListener("progress",a)),p&&y.upload&&([s,c]=jt(p),y.upload.addEventListener("progress",s),y.upload.addEventListener("loadend",c)),(r.cancelToken||r.signal)&&(u=e=>{y&&(n(!e||e.type?new St(null,t,y):e),y.abort(),y=null)},r.cancelToken&&r.cancelToken.subscribe(u),r.signal&&(r.signal.aborted?u():r.signal.addEventListener("abort",u)));const m=function(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}(r.url);m&&-1===ft.protocols.indexOf(m)?n(new z("Unsupported protocol "+m+":",z.ERR_BAD_REQUEST,t)):y.send(o||null)})},kt=(t,e)=>{const{length:n}=t=t?t.filter(Boolean):[];if(e||n){let n,r=new AbortController;const o=function(t){if(!n){n=!0,u();const e=t instanceof Error?t:this.reason;r.abort(e instanceof z?e:new St(e instanceof Error?e.message:e))}};let i=e&&setTimeout(()=>{i=null,o(new z(`timeout ${e} of ms exceeded`,z.ETIMEDOUT))},e);const u=()=>{t&&(i&&clearTimeout(i),i=null,t.forEach(t=>{t.unsubscribe?t.unsubscribe(o):t.removeEventListener("abort",o)}),t=null)};t.forEach(t=>t.addEventListener("abort",o));const{signal:s}=r;return s.unsubscribe=()=>W.asap(u),s}},Dt=function*(t,e){let n=t.byteLength;if(n<e)return void(yield t);let r,o=0;for(;o<n;)r=o+e,yield t.slice(o,r),o=r},It=async function*(t){if(t[Symbol.asyncIterator])return void(yield*t);const e=t.getReader();try{for(;;){const{done:t,value:n}=await e.read();if(t)break;yield n}}finally{await e.cancel()}},Mt=(t,e,n,r)=>{const o=async function*(t,e){for await(const n of It(t))yield*Dt(n,e)}(t,e);let i,u=0,s=t=>{i||(i=!0,r&&r(t))};return new ReadableStream({async pull(t){try{const{done:e,value:r}=await o.next();if(e)return s(),void t.close();let i=r.byteLength;if(n){let t=u+=i;n(t)}t.enqueue(new Uint8Array(r))}catch(e){throw s(e),e}},cancel:t=>(s(t),o.return())},{highWaterMark:2})},{isFunction:Ut}=W,Lt=(({Request:t,Response:e})=>({Request:t,Response:e}))(W.global),{ReadableStream:$t,TextEncoder:Bt}=W.global,qt=(t,...e)=>{try{return!!t(...e)}catch(n){return!1}},Wt=t=>{t=W.merge.call({skipUndefined:!0},Lt,t);const{fetch:e,Request:n,Response:r}=t,o=e?Ut(e):"function"==typeof fetch,i=Ut(n),u=Ut(r);if(!o)return!1;const s=o&&Ut($t),a=o&&("function"==typeof Bt?(t=>e=>t.encode(e))(new Bt):async t=>new Uint8Array(await new n(t).arrayBuffer())),c=i&&s&&qt(()=>{let t=!1;const e=new n(ft.origin,{body:new $t,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),l=u&&s&&qt(()=>W.isReadableStream(new r("").body)),f={stream:l&&(t=>t.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!f[t]&&(f[t]=(e,n)=>{let r=e&&e[t];if(r)return r.call(e);throw new z(`Response type '${t}' is not supported`,z.ERR_NOT_SUPPORT,n)})});const p=async(t,e)=>{const r=W.toFiniteNumber(t.getContentLength());return null==r?(async t=>{if(null==t)return 0;if(W.isBlob(t))return t.size;if(W.isSpecCompliantForm(t)){const e=new n(ft.origin,{method:"POST",body:t});return(await e.arrayBuffer()).byteLength}return W.isArrayBufferView(t)||W.isArrayBuffer(t)?t.byteLength:(W.isURLSearchParams(t)&&(t+=""),W.isString(t)?(await a(t)).byteLength:void 0)})(e):r};return async t=>{let{url:o,method:u,data:s,signal:a,cancelToken:h,timeout:d,onDownloadProgress:y,onUploadProgress:g,responseType:m,headers:v,withCredentials:b="same-origin",fetchOptions:w}=Ft(t),O=e||fetch;m=m?(m+"").toLowerCase():"text";let S=kt([a,h&&h.toAbortSignal()],d),A=null;const j=S&&S.unsubscribe&&(()=>{S.unsubscribe()});let x;try{if(g&&c&&"get"!==u&&"head"!==u&&0!==(x=await p(v,s))){let t,e=new n(o,{method:"POST",body:s,duplex:"half"});if(W.isFormData(s)&&(t=e.headers.get("content-type"))&&v.setContentType(t),e.body){const[t,n]=xt(x,jt(Et(g)));s=Mt(e.body,65536,t,n)}}W.isString(b)||(b=b?"include":"omit");const e=i&&"credentials"in n.prototype,a={...w,signal:S,method:u.toUpperCase(),headers:v.normalize().toJSON(),body:s,duplex:"half",credentials:e?b:void 0};A=i&&new n(o,a);let h=await(i?O(A,w):O(o,a));const d=l&&("stream"===m||"response"===m);if(l&&(y||d&&j)){const t={};["status","statusText","headers"].forEach(e=>{t[e]=h[e]});const e=W.toFiniteNumber(h.headers.get("content-length")),[n,o]=y&&xt(e,jt(Et(y),!0))||[];h=new r(Mt(h.body,65536,n,()=>{o&&o(),j&&j()}),t)}m=m||"text";let E=await f[W.findKey(f,m)||"text"](h,t);return!d&&j&&j(),await new Promise((e,n)=>{At(e,n,{data:E,headers:bt.from(h.headers),status:h.status,statusText:h.statusText,config:t,request:A})})}catch(E){if(j&&j(),E&&"TypeError"===E.name&&/Load failed|fetch/i.test(E.message))throw Object.assign(new z("Network Error",z.ERR_NETWORK,t,A),{cause:E.cause||E});throw z.from(E,E&&E.code,t,A)}}},zt=new Map,Ht=t=>{let e=t&&t.env||{};const{fetch:n,Request:r,Response:o}=e,i=[r,o,n];let u,s,a=i.length,c=zt;for(;a--;)u=i[a],s=c.get(u),void 0===s&&c.set(u,s=a?new Map:Wt(e)),c=s;return s};Ht();const Jt={http:null,xhr:_t,fetch:{get:Ht}};W.forEach(Jt,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(n){}Object.defineProperty(t,"adapterName",{value:e})}});const Kt=t=>`- ${t}`,Vt=t=>W.isFunction(t)||null===t||!1===t;const Yt={getAdapter:function(t,e){t=W.isArray(t)?t:[t];const{length:n}=t;let r,o;const i={};for(let u=0;u<n;u++){let n;if(r=t[u],o=r,!Vt(r)&&(o=Jt[(n=String(r)).toLowerCase()],void 0===o))throw new z(`Unknown adapter '${n}'`);if(o&&(W.isFunction(o)||(o=o.get(e))))break;i[n||"#"+u]=o}if(!o){const t=Object.entries(i).map(([t,e])=>`adapter ${t} `+(!1===e?"is not supported by the environment":"is not available in the build"));throw new z("There is no suitable adapter to dispatch the request "+(n?t.length>1?"since :\n"+t.map(Kt).join("\n"):" "+Kt(t[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return o},adapters:Jt};function Xt(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new St(null,t)}function Zt(t){Xt(t),t.headers=bt.from(t.headers),t.data=wt.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1);return Yt.getAdapter(t.adapter||ht.adapter,t)(t).then(function(e){return Xt(t),e.data=wt.call(t,t.transformResponse,e),e.headers=bt.from(e.headers),e},function(e){return Ot(e)||(Xt(t),e&&e.response&&(e.response.data=wt.call(t,t.transformResponse,e.response),e.response.headers=bt.from(e.response.headers))),Promise.reject(e)})}const Gt="1.13.2",Qt={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{Qt[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});const te={};Qt.transitional=function(t,e,n){function r(t,e){return"[Axios v"+Gt+"] Transitional option '"+t+"'"+e+(n?". "+n:"")}return(n,o,i)=>{if(!1===t)throw new z(r(o," has been removed"+(e?" in "+e:"")),z.ERR_DEPRECATED);return e&&!te[o]&&(te[o]=!0,console.warn(r(o," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(n,o,i)}},Qt.spelling=function(t){return(e,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};const ee={assertOptions:function(t,e,n){if("object"!=typeof t)throw new z("options must be an object",z.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let o=r.length;for(;o-- >0;){const i=r[o],u=e[i];if(u){const e=t[i],n=void 0===e||u(e,i,t);if(!0!==n)throw new z("option "+i+" must be "+n,z.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new z("Unknown option "+i,z.ERR_BAD_OPTION)}},validators:Qt},ne=ee.validators;let re=class{constructor(t){this.defaults=t||{},this.interceptors={request:new rt,response:new rt}}async request(t,e){try{return await this._request(t,e)}catch(n){if(n instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const e=t.stack?t.stack.replace(/^.+\n/,""):"";try{n.stack?e&&!String(n.stack).endsWith(e.replace(/^.+\n.+\n/,""))&&(n.stack+="\n"+e):n.stack=e}catch(r){}}throw n}}_request(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{},e=Ct(this.defaults,e);const{transitional:n,paramsSerializer:r,headers:o}=e;void 0!==n&&ee.assertOptions(n,{silentJSONParsing:ne.transitional(ne.boolean),forcedJSONParsing:ne.transitional(ne.boolean),clarifyTimeoutError:ne.transitional(ne.boolean)},!1),null!=r&&(W.isFunction(r)?e.paramsSerializer={serialize:r}:ee.assertOptions(r,{encode:ne.function,serialize:ne.function},!0)),void 0!==e.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?e.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:e.allowAbsoluteUrls=!0),ee.assertOptions(e,{baseUrl:ne.spelling("baseURL"),withXsrfToken:ne.spelling("withXSRFToken")},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase();let i=o&&W.merge(o.common,o[e.method]);o&&W.forEach(["delete","get","head","post","put","patch","common"],t=>{delete o[t]}),e.headers=bt.concat(i,o);const u=[];let s=!0;this.interceptors.request.forEach(function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(s=s&&t.synchronous,u.unshift(t.fulfilled,t.rejected))});const a=[];let c;this.interceptors.response.forEach(function(t){a.push(t.fulfilled,t.rejected)});let l,f=0;if(!s){const t=[Zt.bind(this),void 0];for(t.unshift(...u),t.push(...a),l=t.length,c=Promise.resolve(e);f<l;)c=c.then(t[f++],t[f++]);return c}l=u.length;let p=e;for(;f<l;){const t=u[f++],e=u[f++];try{p=t(p)}catch(h){e.call(this,h);break}}try{c=Zt.call(this,p)}catch(h){return Promise.reject(h)}for(f=0,l=a.length;f<l;)c=c.then(a[f++],a[f++]);return c}getUri(t){return nt(Pt((t=Ct(this.defaults,t)).baseURL,t.url,t.allowAbsoluteUrls),t.params,t.paramsSerializer)}};W.forEach(["delete","get","head","options"],function(t){re.prototype[t]=function(e,n){return this.request(Ct(n||{},{method:t,url:e,data:(n||{}).data}))}}),W.forEach(["post","put","patch"],function(t){function e(e){return function(n,r,o){return this.request(Ct(o||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}re.prototype[t]=e(),re.prototype[t+"Form"]=e(!0)});const oe={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(oe).forEach(([t,e])=>{oe[e]=t});const ie=function t(n){const r=new re(n),o=e(re.prototype.request,r);return W.extend(o,re.prototype,r,{allOwnKeys:!0}),W.extend(o,r,null,{allOwnKeys:!0}),o.create=function(e){return t(Ct(n,e))},o}(ht);ie.Axios=re,ie.CanceledError=St,ie.CancelToken=class t{constructor(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");let e;this.promise=new Promise(function(t){e=t});const n=this;this.promise.then(t=>{if(!n._listeners)return;let e=n._listeners.length;for(;e-- >0;)n._listeners[e](t);n._listeners=null}),this.promise.then=t=>{let e;const r=new Promise(t=>{n.subscribe(t),e=t}).then(t);return r.cancel=function(){n.unsubscribe(e)},r},t(function(t,r,o){n.reason||(n.reason=new St(t,r,o),e(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}toAbortSignal(){const t=new AbortController,e=e=>{t.abort(e)};return this.subscribe(e),t.signal.unsubscribe=()=>this.unsubscribe(e),t.signal}static source(){let e;return{token:new t(function(t){e=t}),cancel:e}}},ie.isCancel=Ot,ie.VERSION=Gt,ie.toFormData=Z,ie.AxiosError=z,ie.Cancel=ie.CanceledError,ie.all=function(t){return Promise.all(t)},ie.spread=function(t){return function(e){return t.apply(null,e)}},ie.isAxiosError=function(t){return W.isObject(t)&&!0===t.isAxiosError},ie.mergeConfig=Ct,ie.AxiosHeaders=bt,ie.formToJSON=t=>pt(W.isHTMLForm(t)?new FormData(t):t),ie.getAdapter=Yt.getAdapter,ie.HttpStatusCode=oe,ie.default=ie;const{Axios:ue,AxiosError:se,CanceledError:ae,isCancel:ce,CancelToken:le,VERSION:fe,all:pe,Cancel:he,isAxiosError:de,spread:ye,toFormData:ge,AxiosHeaders:me,HttpStatusCode:ve,formToJSON:be,getAdapter:we,mergeConfig:Oe}=ie;function Se(t,e){return new Promise(n=>{let r=document.querySelector("#lcf-choose-file-input");r||(r=document.createElement("input"),r.type="file",r.id="lcf-choose-file-input",r.style.display="none",t&&(r.accept=t),e&&(r.multiple=!0),r.onchange=function(){n(r.files),r.remove()},document.body.append(r)),r.click()})}function Ae(t,e){if(!e){const n=t.split("/");e=n[n.length-1]}return new Promise((n,r)=>{ie({method:"get",url:t,responseType:"arraybuffer"}).then(t=>{n(new File([t.data],e))}).catch(t=>{r(t.toString())})})}function je(t,e){const n=document.createElement("a");n.href=URL.createObjectURL(t),n.download=e,n.style.display="none",document.body.appendChild(n),n.click(),setTimeout(()=>{document.body.removeChild(n),URL.revokeObjectURL(n.href)},100)}async function xe(t){return new Promise(e=>{const n=new FileReader;n.readAsText(t),n.onload=function(t){e(t.target.result)}})}function Ee(t){try{const e=document.createElement("textarea");e.value=t,e.style.position="fixed",e.style.left="-9999px",e.style.top="0",e.setAttribute("readonly",""),document.body.appendChild(e),e.select?e.select():e.setSelectionRange&&e.setSelectionRange(0,e.value.length);const n=document.execCommand("copy");return document.body.removeChild(e),n||console.warn("dlsjs: 传统复制方法执行失败"),n}catch(e){return console.error("dlsjs: 传统复制方法出错:",e),!1}}function Re(){return!(!navigator.clipboard||!window.isSecureContext)}function Te(t){if(!(t&&t instanceof HTMLElement))return console.warn("dlsjs: requestFullscreen 参数必须是有效的HTML元素"),!1;try{const e=t.requestFullscreen||t.webkitRequestFullscreen||t.mozRequestFullScreen||t.msRequestFullscreen;return e?(e.call(t),!0):(console.warn("dlsjs: 当前浏览器不支持全屏API"),!1)}catch(e){return console.error("dlsjs: 全屏请求失败:",e),!1}}function Pe(){try{const t=document.exitFullscreen||document.webkitExitFullscreen||document.mozCancelFullScreen||document.msExitFullscreen;return t?(t.call(document),!0):(console.warn("dlsjs: 当前浏览器不支持退出全屏API"),!1)}catch(t){return console.error("dlsjs: 退出全屏失败:",t),!1}}function Ne(){return!!(document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement)}const Ce={"@@functional/placeholder":!0};function Fe(t){return null!=t&&"object"==typeof t&&!0===t["@@functional/placeholder"]}function _e(t){return function e(n){return 0===arguments.length||Fe(n)?e:t.apply(this,arguments)}}function ke(t){return function e(n,r){switch(arguments.length){case 0:return e;case 1:return Fe(n)?e:_e(function(e){return t(n,e)});default:return Fe(n)&&Fe(r)?e:Fe(n)?_e(function(e){return t(e,r)}):Fe(r)?_e(function(e){return t(n,e)}):t(n,r)}}}var De=ke(function(t,e){return Number(t)+Number(e)});function Ie(t,e){var n;e=e||[];var r=(t=t||[]).length,o=e.length,i=[];for(n=0;n<r;)i[i.length]=t[n],n+=1;for(n=0;n<o;)i[i.length]=e[n],n+=1;return i}function Me(t,e){switch(t){case 0:return function(){return e.apply(this,arguments)};case 1:return function(t){return e.apply(this,arguments)};case 2:return function(t,n){return e.apply(this,arguments)};case 3:return function(t,n,r){return e.apply(this,arguments)};case 4:return function(t,n,r,o){return e.apply(this,arguments)};case 5:return function(t,n,r,o,i){return e.apply(this,arguments)};case 6:return function(t,n,r,o,i,u){return e.apply(this,arguments)};case 7:return function(t,n,r,o,i,u,s){return e.apply(this,arguments)};case 8:return function(t,n,r,o,i,u,s,a){return e.apply(this,arguments)};case 9:return function(t,n,r,o,i,u,s,a,c){return e.apply(this,arguments)};case 10:return function(t,n,r,o,i,u,s,a,c,l){return e.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function Ue(t,e,n){return function(){for(var r=[],o=0,i=t,u=0,s=!1;u<e.length||o<arguments.length;){var a;u<e.length&&(!Fe(e[u])||o>=arguments.length)?a=e[u]:(a=arguments[o],o+=1),r[u]=a,Fe(a)?s=!0:i-=1,u+=1}return!s&&i<=0?n.apply(this,r):Me(Math.max(0,i),Ue(t,r,n))}}var Le=ke(function(t,e){return 1===t?_e(e):Me(t,Ue(t,[],e))}),$e=_e(function(t){return Le(t.length,function(){var e=0,n=arguments[0],r=arguments[arguments.length-1],o=Array.prototype.slice.call(arguments,0);return o[0]=function(){var t=n.apply(this,Ie(arguments,[e,r]));return e+=1,t},t.apply(this,o)})}),Be=_e(function(t){return Le(t.length,function(){var e=arguments[0],n=arguments[arguments.length-1],r=n.length-1,o=Array.prototype.slice.call(arguments,0);return o[0]=function(){var t=e.apply(this,Ie(arguments,[r,n]));return r-=1,t},t.apply(this,o)})});function qe(t){return function e(n,r,o){switch(arguments.length){case 0:return e;case 1:return Fe(n)?e:ke(function(e,r){return t(n,e,r)});case 2:return Fe(n)&&Fe(r)?e:Fe(n)?ke(function(e,n){return t(e,r,n)}):Fe(r)?ke(function(e,r){return t(n,e,r)}):_e(function(e){return t(n,r,e)});default:return Fe(n)&&Fe(r)&&Fe(o)?e:Fe(n)&&Fe(r)?ke(function(e,n){return t(e,n,o)}):Fe(n)&&Fe(o)?ke(function(e,n){return t(e,r,n)}):Fe(r)&&Fe(o)?ke(function(e,r){return t(n,e,r)}):Fe(n)?_e(function(e){return t(e,r,o)}):Fe(r)?_e(function(e){return t(n,e,o)}):Fe(o)?_e(function(e){return t(n,r,e)}):t(n,r,o)}}}var We=qe(function(t,e,n){var r=n.length;if(t>=r||t<-r)return n;var o=(r+t)%r,i=Ie(n);return i[o]=e(n[o]),i});const ze=Array.isArray||function(t){return null!=t&&t.length>=0&&"[object Array]"===Object.prototype.toString.call(t)};function He(t){return null!=t&&"function"==typeof t["@@transducer/step"]}function Je(t,e,n){return function(){if(0===arguments.length)return n();var r=arguments[arguments.length-1];if(!ze(r)){for(var o=0;o<t.length;){if("function"==typeof r[t[o]])return r[t[o]].apply(r,Array.prototype.slice.call(arguments,0,-1));o+=1}if(He(r))return e.apply(null,Array.prototype.slice.call(arguments,0,-1))(r)}return n.apply(this,arguments)}}function Ke(t){return t&&t["@@transducer/reduced"]?t:{"@@transducer/value":t,"@@transducer/reduced":!0}}const Ve=function(){return this.xf["@@transducer/init"]()},Ye=function(t){return this.xf["@@transducer/result"](t)};var Xe=function(){function t(t,e){this.xf=e,this.f=t,this.all=!0}return t.prototype["@@transducer/init"]=Ve,t.prototype["@@transducer/result"]=function(t){return this.all&&(t=this.xf["@@transducer/step"](t,!0)),this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,e){return this.f(e)||(this.all=!1,t=Ke(this.xf["@@transducer/step"](t,!1))),t},t}();function Ze(t){return function(e){return new Xe(t,e)}}var Ge=ke(Je(["all"],Ze,function(t,e){for(var n=0;n<e.length;){if(!t(e[n]))return!1;n+=1}return!0}));function Qe(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}function tn(t,e,n){for(var r=0,o=n.length;r<o;){if(t(e,n[r]))return!0;r+=1}return!1}function en(t,e){return Object.prototype.hasOwnProperty.call(e,t)}const nn="function"==typeof Object.is?Object.is:function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e};var rn=Object.prototype.toString,on=function(){return"[object Arguments]"===rn.call(arguments)?function(t){return"[object Arguments]"===rn.call(t)}:function(t){return en("callee",t)}}(),un=!{toString:null}.propertyIsEnumerable("toString"),sn=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],an=function(){return arguments.propertyIsEnumerable("length")}(),cn=function(t,e){for(var n=0;n<t.length;){if(t[n]===e)return!0;n+=1}return!1},ln="function"!=typeof Object.keys||an?_e(function(t){if(Object(t)!==t)return[];var e,n,r=[],o=an&&on(t);for(e in t)!en(e,t)||o&&"length"===e||(r[r.length]=e);if(un)for(n=sn.length-1;n>=0;)en(e=sn[n],t)&&!cn(r,e)&&(r[r.length]=e),n-=1;return r}):_e(function(t){return Object(t)!==t?[]:Object.keys(t)}),fn=_e(function(t){return null===t?"Null":void 0===t?"Undefined":Object.prototype.toString.call(t).slice(8,-1)});function pn(t,e,n,r){var o=Qe(t);function i(t,e){return hn(t,e,n.slice(),r.slice())}return!tn(function(t,e){return!tn(i,e,t)},Qe(e),o)}function hn(t,e,n,r){if(nn(t,e))return!0;var o,i,u=fn(t);if(u!==fn(e))return!1;if("function"==typeof t["fantasy-land/equals"]||"function"==typeof e["fantasy-land/equals"])return"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](e)&&"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](t);if("function"==typeof t.equals||"function"==typeof e.equals)return"function"==typeof t.equals&&t.equals(e)&&"function"==typeof e.equals&&e.equals(t);switch(u){case"Arguments":case"Array":case"Object":if("function"==typeof t.constructor&&"Promise"===(o=t.constructor,null==(i=String(o).match(/^function (\w*)/))?"":i[1]))return t===e;break;case"Boolean":case"Number":case"String":if(typeof t!=typeof e||!nn(t.valueOf(),e.valueOf()))return!1;break;case"Date":if(!nn(t.valueOf(),e.valueOf()))return!1;break;case"Error":return t.name===e.name&&t.message===e.message;case"RegExp":if(t.source!==e.source||t.global!==e.global||t.ignoreCase!==e.ignoreCase||t.multiline!==e.multiline||t.sticky!==e.sticky||t.unicode!==e.unicode)return!1}for(var s=n.length-1;s>=0;){if(n[s]===t)return r[s]===e;s-=1}switch(u){case"Map":return t.size===e.size&&pn(t.entries(),e.entries(),n.concat([t]),r.concat([e]));case"Set":return t.size===e.size&&pn(t.values(),e.values(),n.concat([t]),r.concat([e]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var a=ln(t);if(a.length!==ln(e).length)return!1;var c=n.concat([t]),l=r.concat([e]);for(s=a.length-1;s>=0;){var f=a[s];if(!en(f,e)||!hn(e[f],t[f],c,l))return!1;s-=1}return!0}var dn=ke(function(t,e){return hn(t,e,[],[])});function yn(t,e,n){var r,o;if("function"==typeof t.indexOf)switch(typeof e){case"number":if(0===e){for(r=1/e;n<t.length;){if(0===(o=t[n])&&1/o===r)return n;n+=1}return-1}if(e!=e){for(;n<t.length;){if("number"==typeof(o=t[n])&&o!=o)return n;n+=1}return-1}return t.indexOf(e,n);case"string":case"boolean":case"function":case"undefined":return t.indexOf(e,n);case"object":if(null===e)return t.indexOf(e,n)}for(;n<t.length;){if(dn(t[n],e))return n;n+=1}return-1}function gn(t,e){return yn(e,t,0)>=0}function mn(t,e){for(var n=0,r=e.length,o=Array(r);n<r;)o[n]=t(e[n]),n+=1;return o}function vn(t){return'"'+t.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0").replace(/"/g,'\\"')+'"'}var bn=function(t){return(t<10?"0":"")+t},wn="function"==typeof Date.prototype.toISOString?function(t){return t.toISOString()}:function(t){return t.getUTCFullYear()+"-"+bn(t.getUTCMonth()+1)+"-"+bn(t.getUTCDate())+"T"+bn(t.getUTCHours())+":"+bn(t.getUTCMinutes())+":"+bn(t.getUTCSeconds())+"."+(t.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function On(t){return function(){return!t.apply(this,arguments)}}function Sn(t,e,n){for(var r=0,o=n.length;r<o;)e=t(e,n[r]),r+=1;return e}function An(t,e){for(var n=0,r=e.length,o=[];n<r;)t(e[n])&&(o[o.length]=e[n]),n+=1;return o}function jn(t){return"[object Object]"===Object.prototype.toString.call(t)}var xn=function(){function t(t,e){this.xf=e,this.f=t}return t.prototype["@@transducer/init"]=Ve,t.prototype["@@transducer/result"]=Ye,t.prototype["@@transducer/step"]=function(t,e){return this.f(e)?this.xf["@@transducer/step"](t,e):t},t}();function En(t){return function(e){return new xn(t,e)}}var Rn=ke(Je(["fantasy-land/filter","filter"],En,function(t,e){return jn(e)?Sn(function(n,r){return t(e[r])&&(n[r]=e[r]),n},{},ln(e)):(n=e,"[object Map]"===Object.prototype.toString.call(n)?function(t,e){for(var n=new Map,r=e.entries(),o=r.next();!o.done;)t(o.value[1])&&n.set(o.value[0],o.value[1]),o=r.next();return n}(t,e):An(t,e));var n})),Tn=ke(function(t,e){return Rn(On(t),e)});function Pn(t,e){var n=function(n){var r=e.concat([t]);return gn(n,r)?"<Circular>":Pn(n,r)},r=function(t,e){return mn(function(e){return vn(e)+": "+n(t[e])},e.slice().sort())};switch(Object.prototype.toString.call(t)){case"[object Arguments]":return"(function() { return arguments; }("+mn(n,t).join(", ")+"))";case"[object Array]":return"["+mn(n,t).concat(r(t,Tn(function(t){return/^\d+$/.test(t)},ln(t)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof t?"new Boolean("+n(t.valueOf())+")":t.toString();case"[object Date]":return"new Date("+(isNaN(t.valueOf())?n(NaN):vn(wn(t)))+")";case"[object Map]":return"new Map("+n(Array.from(t))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof t?"new Number("+n(t.valueOf())+")":1/t==-1/0?"-0":t.toString(10);case"[object Set]":return"new Set("+n(Array.from(t).sort())+")";case"[object String]":return"object"==typeof t?"new String("+n(t.valueOf())+")":vn(t);case"[object Undefined]":return"undefined";default:if("function"==typeof t.toString){var o=t.toString();if("[object Object]"!==o)return o}return"{"+r(t,ln(t)).join(", ")+"}"}}var Nn=_e(function(t){return Pn(t,[])}),Cn=ke(function(t,e){if(t===e)return e;function n(t,e){if(t>e!=e>t)return e>t?e:t}var r=n(t,e);if(void 0!==r)return r;var o=n(typeof t,typeof e);if(void 0!==o)return o===typeof t?t:e;var i=Nn(t),u=n(i,Nn(e));return void 0!==u&&u===i?t:e}),Fn=function(){function t(t,e){this.xf=e,this.f=t}return t.prototype["@@transducer/init"]=Ve,t.prototype["@@transducer/result"]=Ye,t.prototype["@@transducer/step"]=function(t,e){return this.xf["@@transducer/step"](t,this.f(e))},t}(),_n=function(t){return function(e){return new Fn(t,e)}},kn=ke(Je(["fantasy-land/map","map"],_n,function(t,e){switch(Object.prototype.toString.call(e)){case"[object Function]":return Le(e.length,function(){return t.call(this,e.apply(this,arguments))});case"[object Object]":return Sn(function(n,r){return n[r]=t(e[r]),n},{},ln(e));default:return mn(t,e)}}));const Dn=Number.isInteger||function(t){return(t|0)===t};function In(t,e){return e[t<0?e.length+t:t]}function Mn(t,e){if(null!=e)return Dn(t)?In(t,e):e[t]}var Un=ke(Mn),Ln=ke(function(t,e){return kn(Un(t),e)});function $n(t){return"[object String]"===Object.prototype.toString.call(t)}var Bn=_e(function(t){return!!ze(t)||!!t&&("object"==typeof t&&(!$n(t)&&(0===t.length||t.length>0&&(t.hasOwnProperty(0)&&t.hasOwnProperty(t.length-1)))))}),qn="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function Wn(t,e,n){return function(r,o,i){if(Bn(i))return t(r,o,i);if(null==i)return o;if("function"==typeof i["fantasy-land/reduce"])return e(r,o,i,"fantasy-land/reduce");if(null!=i[qn])return n(r,o,i[qn]());if("function"==typeof i.next)return n(r,o,i);if("function"==typeof i.reduce)return e(r,o,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function zn(t,e,n){for(var r=0,o=n.length;r<o;){if((e=t["@@transducer/step"](e,n[r]))&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}r+=1}return t["@@transducer/result"](e)}var Hn=ke(function(t,e){return Me(t.length,function(){return t.apply(e,arguments)})});function Jn(t,e,n){for(var r=n.next();!r.done;){if((e=t["@@transducer/step"](e,r.value))&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}r=n.next()}return t["@@transducer/result"](e)}function Kn(t,e,n,r){return t["@@transducer/result"](n[r](Hn(t["@@transducer/step"],t),e))}var Vn=Wn(zn,Kn,Jn),Yn=function(){function t(t){this.f=t}return t.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},t.prototype["@@transducer/result"]=function(t){return t},t.prototype["@@transducer/step"]=function(t,e){return this.f(t,e)},t}();function Xn(t){return new Yn(t)}var Zn=qe(function(t,e,n){return Vn("function"==typeof t?Xn(t):t,e,n)}),Gn=_e(function(t){return Le(Zn(Cn,0,Ln("length",t)),function(){for(var e=0,n=t.length;e<n;){if(!t[e].apply(this,arguments))return!1;e+=1}return!0})}),Qn=_e(function(t){return function(){return t}}),tr=ke(function(t,e){return t&&e}),er=function(){function t(t,e){this.xf=e,this.f=t,this.any=!1}return t.prototype["@@transducer/init"]=Ve,t.prototype["@@transducer/result"]=function(t){return this.any||(t=this.xf["@@transducer/step"](t,!1)),this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,e){return this.f(e)&&(this.any=!0,t=Ke(this.xf["@@transducer/step"](t,!0))),t},t}();function nr(t){return function(e){return new er(t,e)}}var rr=ke(Je(["any"],nr,function(t,e){for(var n=0;n<e.length;){if(t(e[n]))return!0;n+=1}return!1})),or=_e(function(t){return Le(Zn(Cn,0,Ln("length",t)),function(){for(var e=0,n=t.length;e<n;){if(t[e].apply(this,arguments))return!0;e+=1}return!1})});function ir(t,e,n){for(var r=n.next();!r.done;)e=t(e,r.value),r=n.next();return e}function ur(t,e,n,r){return n[r](t,e)}var sr=Wn(Sn,ur,ir),ar=ke(function(t,e){return"function"==typeof e["fantasy-land/ap"]?e["fantasy-land/ap"](t):"function"==typeof t.ap?t.ap(e):"function"==typeof t?function(n){return t(n)(e(n))}:sr(function(t,n){return Ie(t,kn(n,e))},[],t)});function cr(t,e){for(var n=0,r=e.length-(t-1),o=new Array(r>=0?r:0);n<r;)o[n]=Array.prototype.slice.call(e,n,n+t),n+=1;return o}var lr=function(){function t(t,e){this.xf=e,this.pos=0,this.full=!1,this.acc=new Array(t)}return t.prototype["@@transducer/init"]=Ve,t.prototype["@@transducer/result"]=function(t){return this.acc=null,this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,e){return this.store(e),this.full?this.xf["@@transducer/step"](t,this.getCopy()):t},t.prototype.store=function(t){this.acc[this.pos]=t,this.pos+=1,this.pos===this.acc.length&&(this.pos=0,this.full=!0)},t.prototype.getCopy=function(){return Ie(Array.prototype.slice.call(this.acc,this.pos),Array.prototype.slice.call(this.acc,0,this.pos))},t}();function fr(t){return function(e){return new lr(t,e)}}var pr=ke(Je([],fr,cr)),hr=ke(function(t,e){return Ie(e,[t])}),dr=ke(function(t,e){return t.apply(this,e)}),yr=_e(function(t){for(var e=ln(t),n=e.length,r=[],o=0;o<n;)r[o]=t[e[o]],o+=1;return r});function gr(t,e){return ze(e)?e.map(t):ln(e).reduce(function(n,r){return n[r]=t(e[r]),n},{})}var mr=_e(function t(e){return e=gr(function(e){return"function"==typeof e?e:t(e)},e),Le(Zn(Cn,0,Ln("length",yr(e))),function(){var t=arguments;return gr(function(e){return dr(e,t)},e)})}),vr=ke(function(t,e){return e(t)}),br=qe(function(t,e,n){var r=t(e),o=t(n);return r<o?-1:r>o?1:0}),wr=_e(function(t){return Le(t.length,t)}),Or=wr(function(t,e,n,r){const o=e(n),i=e(r);return o.localeCompare(i,t,{numeric:!0})});function Sr(t,e,n){if(Dn(t)&&ze(n)){var r=t<0?n.length+t:t,o=[].concat(n);return o[r]=e,o}var i={};for(var u in n)i[u]=n[u];return i[t]=e,i}var Ar=_e(function(t){return null==t}),jr=qe(function t(e,n,r){if(0===e.length)return n;var o=e[0];if(e.length>1){var i=Mn(o,r);(Ar(i)||"object"!=typeof i)&&(i=Dn(e[1])?[]:{}),n=t(Array.prototype.slice.call(e,1),n,i)}return Sr(o,n,r)}),xr=qe(function(t,e,n){return jr([t],e,n)}),Er=ke(function(t,e){switch(t){case 0:return function(){return e.call(this)};case 1:return function(t){return e.call(this,t)};case 2:return function(t,n){return e.call(this,t,n)};case 3:return function(t,n,r){return e.call(this,t,n,r)};case 4:return function(t,n,r,o){return e.call(this,t,n,r,o)};case 5:return function(t,n,r,o,i){return e.call(this,t,n,r,o,i)};case 6:return function(t,n,r,o,i,u){return e.call(this,t,n,r,o,i,u)};case 7:return function(t,n,r,o,i,u,s){return e.call(this,t,n,r,o,i,u,s)};case 8:return function(t,n,r,o,i,u,s,a){return e.call(this,t,n,r,o,i,u,s,a)};case 9:return function(t,n,r,o,i,u,s,a,c){return e.call(this,t,n,r,o,i,u,s,a,c)};case 10:return function(t,n,r,o,i,u,s,a,c,l){return e.call(this,t,n,r,o,i,u,s,a,c,l)};default:throw new Error("First argument to nAry must be a non-negative integer no greater than ten")}}),Rr=_e(function(t){return Er(2,t)});function Tr(t){var e=Object.prototype.toString.call(t);return"[object Function]"===e||"[object AsyncFunction]"===e||"[object GeneratorFunction]"===e||"[object AsyncGeneratorFunction]"===e}var Pr=ke(function(t,e){var n=Le(t,e);return Le(t,function(){return Sn(ar,kn(n,arguments[0]),Array.prototype.slice.call(arguments,1))})}),Nr=_e(function(t){return Pr(t.length,t)}),Cr=ke(function(t,e){return Tr(t)?function(){return t.apply(this,arguments)&&e.apply(this,arguments)}:Nr(tr)(t,e)}),Fr=_e(function(t){return t.apply(this,Array.prototype.slice.call(arguments,1))});function _r(t){return function e(n){for(var r,o,i,u=[],s=0,a=n.length;s<a;){if(Bn(n[s]))for(i=0,o=(r=t?e(n[s]):n[s]).length;i<o;)u[u.length]=r[i],i+=1;else u[u.length]=n[s];s+=1}return u}}var kr="@@transducer/init",Dr="@@transducer/step",Ir="@@transducer/result",Mr=function(){function t(t){this.xf=t}return t.prototype[kr]=Ve,t.prototype[Ir]=Ye,t.prototype[Dr]=function(t,e){var n=this.xf[Dr](t,e);return n["@@transducer/reduced"]?{"@@transducer/value":n,"@@transducer/reduced":!0}:n},t}(),Ur=function(){function t(t){this.xf=new Mr(t)}return t.prototype[kr]=Ve,t.prototype[Ir]=Ye,t.prototype[Dr]=function(t,e){return Bn(e)?Vn(this.xf,t,e):zn(this.xf,t,[e])},t}();function Lr(t){return function(e){return _n(t)(function(t){return new Ur(t)}(e))}}const $r=Je(["fantasy-land/chain","chain"],Lr,function(t,e){return"function"==typeof e?function(n){return t(e(n))(n)}:_r(!1)(kn(t,e))});var Br=ke($r),qr=qe(function(t,e,n){if(t>e)throw new Error("min must not be greater than max in clamp(min, max, value)");return n<t?t:n>e?e:n});function Wr(t){return new RegExp(t.source,t.flags?t.flags:(t.global?"g":"")+(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.sticky?"y":"")+(t.unicode?"u":"")+(t.dotAll?"s":""))}function zr(t,e,n){if(n||(n=new Hr),o=typeof(r=t),null==r||"object"!=o&&"function"!=o)return t;var r,o,i=function(r){var o=n.get(t);if(o)return o;for(var i in n.set(t,r),t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=e?zr(t[i],!0,n):t[i]);return r};switch(fn(t)){case"Object":return i(Object.create(Object.getPrototypeOf(t)));case"Array":return i(Array(t.length));case"Date":return new Date(t.valueOf());case"RegExp":return Wr(t);case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":return t.slice();default:return t}}var Hr=function(){function t(){this.map={},this.length=0}return t.prototype.set=function(t,e){var n=this.hash(t),r=this.map[n];r||(this.map[n]=r=[]),r.push([t,e]),this.length+=1},t.prototype.hash=function(t){var e=[];for(var n in t)e.push(Object.prototype.toString.call(t[n]));return e.join()},t.prototype.get=function(t){if(this.length<=180)for(var e in this.map)for(var n=this.map[e],r=0;r<n.length;r+=1){if((i=n[r])[0]===t)return i[1]}else{var o=this.hash(t);if(n=this.map[o])for(r=0;r<n.length;r+=1){var i;if((i=n[r])[0]===t)return i[1]}}},t}(),Jr=_e(function(t){return null!=t&&"function"==typeof t.clone?t.clone():zr(t,!0)}),Kr=ke(function(t,e){var n=sr(function(e,n){var r=t(n);return void 0===e[r]&&(e[r]=[]),e[r].push(n),e},{},e),r=[];for(var o in n)r.push(n[o]);return r}),Vr=_e(function(t){return function(e,n){return t(e,n)?-1:t(n,e)?1:0}}),Yr=_e(function(t){return!t}),Xr=Nr(Yr);function Zr(t,e){return function(){return e.call(this,t.apply(this,arguments))}}function Gr(t,e){return function(){var n=arguments.length;if(0===n)return e();var r=arguments[n-1];return ze(r)||"function"!=typeof r[t]?e.apply(this,arguments):r[t].apply(r,Array.prototype.slice.call(arguments,0,n-1))}}var Qr=qe(Gr("slice",function(t,e,n){return Array.prototype.slice.call(n,t,e)})),to=_e(Gr("tail",Qr(1,1/0)));function eo(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return Me(arguments[0].length,Zn(Zr,arguments[0],to(arguments)))}var no=_e(function(t){return $n(t)?t.split("").reverse().join(""):Array.prototype.slice.call(t,0).reverse()});function ro(){if(0===arguments.length)throw new Error("compose requires at least one argument");return eo.apply(this,no(arguments))}var oo=_e(function(t){return In(0,t)});function io(t){return t}var uo=_e(io),so=ke(function(t,e){if(e.length<=0)return uo;var n=oo(e),r=to(e);return Me(n.length,function(){return sr(function(e,n){return t.call(this,n,e)},n.apply(this,arguments),r)})}),ao=ke(function(t,e){return so.apply(this,[t,no(e)])}),co=ke(function(t,e){if(ze(t)){if(ze(e))return t.concat(e);throw new TypeError(Nn(e)+" is not an array")}if($n(t)){if($n(e))return t+e;throw new TypeError(Nn(e)+" is not a string")}if(null!=t&&Tr(t["fantasy-land/concat"]))return t["fantasy-land/concat"](e);if(null!=t&&Tr(t.concat))return t.concat(e);throw new TypeError(Nn(t)+' does not have a method named "concat" or "fantasy-land/concat"')}),lo=_e(function(t){return Me(Zn(Cn,0,kn(function(t){return t[0].length},t)),function(){for(var e=0;e<t.length;){if(t[e][0].apply(this,arguments))return t[e][1].apply(this,arguments);e+=1}})}),fo=ke(function(t,e){if(t>10)throw new Error("Constructor with greater than ten arguments");return 0===t?function(){return new e}:wr(Er(t,function(n,r,o,i,u,s,a,c,l,f){switch(t){case 1:return new e(n);case 2:return new e(n,r);case 3:return new e(n,r,o);case 4:return new e(n,r,o,i);case 5:return new e(n,r,o,i,u);case 6:return new e(n,r,o,i,u,s);case 7:return new e(n,r,o,i,u,s,a);case 8:return new e(n,r,o,i,u,s,a,c);case 9:return new e(n,r,o,i,u,s,a,c,l);case 10:return new e(n,r,o,i,u,s,a,c,l,f)}}))}),po=_e(function(t){return fo(t.length,t)}),ho=ke(function(t,e){return Le(Zn(Cn,0,Ln("length",e)),function(){var n=arguments,r=this;return t.apply(r,mn(function(t){return t.apply(r,n)},e))})}),yo=wr(function(t,e){return sr(function(e,n){return t(n)?e+1:e},0,e)}),go=function(){function t(t,e,n,r){this.valueFn=t,this.valueAcc=e,this.keyFn=n,this.xf=r,this.inputs={}}return t.prototype["@@transducer/init"]=Ve,t.prototype["@@transducer/result"]=function(t){var e;for(e in this.inputs)if(en(e,this.inputs)&&(t=this.xf["@@transducer/step"](t,this.inputs[e]))["@@transducer/reduced"]){t=t["@@transducer/value"];break}return this.inputs=null,this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,e){var n=this.keyFn(e);return this.inputs[n]=this.inputs[n]||[n,zr(this.valueAcc,!1)],this.inputs[n][1]=this.valueFn(this.inputs[n][1],e),t},t}();function mo(t,e,n){return function(r){return new go(t,e,n,r)}}var vo=Ue(4,[],Je([],mo,function(t,e,n,r){var o=Xn(function(r,o){var i=n(o),u=t(en(i,r)?r[i]:zr(e,!1),o);return u&&u["@@transducer/reduced"]?Ke(r):(r[i]=u,r)});return Vn(o,{},r)})),bo=vo(function(t,e){return t+1},0),wo=De(-1),Oo=ke(function(t,e){return null==e||e!=e?t:e}),So=qe(function(t,e,n){var r=t(e),o=t(n);return r>o?-1:r<o?1:0}),Ao=wr(function(t,e,n,r){const o=e(n);return e(r).localeCompare(o,t,{numeric:!0})}),jo=function(){function t(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return t.prototype.add=function(t){return!xo(t,!0,this)},t.prototype.has=function(t){return xo(t,!1,this)},t}();function xo(t,e,n){var r,o=typeof t;switch(o){case"string":case"number":return 0===t&&1/t==-1/0?!!n._items["-0"]||(e&&(n._items["-0"]=!0),!1):null!==n._nativeSet?e?(r=n._nativeSet.size,n._nativeSet.add(t),n._nativeSet.size===r):n._nativeSet.has(t):o in n._items?t in n._items[o]||(e&&(n._items[o][t]=!0),!1):(e&&(n._items[o]={},n._items[o][t]=!0),!1);case"boolean":if(o in n._items){var i=t?1:0;return!!n._items[o][i]||(e&&(n._items[o][i]=!0),!1)}return e&&(n._items[o]=t?[!1,!0]:[!0,!1]),!1;case"function":return null!==n._nativeSet?e?(r=n._nativeSet.size,n._nativeSet.add(t),n._nativeSet.size===r):n._nativeSet.has(t):o in n._items?!!gn(t,n._items[o])||(e&&n._items[o].push(t),!1):(e&&(n._items[o]=[t]),!1);case"undefined":return!!n._items[o]||(e&&(n._items[o]=!0),!1);case"object":if(null===t)return!!n._items.null||(e&&(n._items.null=!0),!1);default:return(o=Object.prototype.toString.call(t))in n._items?!!gn(t,n._items[o])||(e&&n._items[o].push(t),!1):(e&&(n._items[o]=[t]),!1)}}var Eo=ke(function(t,e){for(var n=[],r=0,o=t.length,i=e.length,u=new jo,s=0;s<i;s+=1)u.add(e[s]);for(;r<o;)u.add(t[r])&&(n[n.length]=t[r]),r+=1;return n}),Ro=qe(function(t,e,n){for(var r=[],o=0,i=e.length;o<i;)tn(t,e[o],n)||tn(t,e[o],r)||r.push(e[o]),o+=1;return r}),To=qe(function(t,e,n){var r=Array.prototype.slice.call(n,0);return r.splice(t,e),r});var Po=ke(function t(e,n){if(null==n)return n;switch(e.length){case 0:return n;case 1:return function(t,e){if(null==e)return e;if(Dn(t)&&ze(e))return To(t,1,e);var n={};for(var r in e)n[r]=e[r];return delete n[t],n}(e[0],n);default:var r=e[0],o=Array.prototype.slice.call(e,1);return null==n[r]?function(t,e){if(Dn(t)&&ze(e))return[].concat(e);var n={};for(var r in e)n[r]=e[r];return n}(r,n):xr(r,t(o,n[r]),n)}}),No=ke(function(t,e){return Po([t],e)}),Co=ke(function(t,e){return t/e}),Fo=function(){function t(t,e){this.xf=e,this.n=t}return t.prototype["@@transducer/init"]=Ve,t.prototype["@@transducer/result"]=Ye,t.prototype["@@transducer/step"]=function(t,e){return this.n>0?(this.n-=1,t):this.xf["@@transducer/step"](t,e)},t}();function _o(t){return function(e){return new Fo(t,e)}}var ko=ke(Je(["drop"],_o,function(t,e){return Qr(Math.max(0,t),1/0,e)})),Do=function(){function t(t,e){this.xf=e,this.n=t,this.i=0}return t.prototype["@@transducer/init"]=Ve,t.prototype["@@transducer/result"]=Ye,t.prototype["@@transducer/step"]=function(t,e){this.i+=1;var n=0===this.n?t:this.xf["@@transducer/step"](t,e);return this.n>=0&&this.i>=this.n?Ke(n):n},t}();function Io(t){return function(e){return new Do(t,e)}}var Mo=ke(Je(["take"],Io,function(t,e){return Qr(0,t<0?1/0:t,e)}));function Uo(t,e){return Mo(t<e.length?e.length-t:0,e)}var Lo=function(){function t(t,e){if(t<=0)return e;this.xf=e,this.pos=0,this.full=!1,this.acc=new Array(t)}return t.prototype["@@transducer/init"]=Ve,t.prototype["@@transducer/result"]=function(t){return this.acc=null,this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,e){return this.full&&(t=this.xf["@@transducer/step"](t,this.acc[this.pos])),this.store(e),t},t.prototype.store=function(t){this.acc[this.pos]=t,this.pos+=1,this.pos===this.acc.length&&(this.pos=0,this.full=!0)},t}();function $o(t){return function(e){return new Lo(t,e)}}var Bo=ke(Je([],$o,Uo));function qo(t,e){for(var n=e.length-1;n>=0&&t(e[n]);)n-=1;return Qr(0,n+1,e)}var Wo=function(){function t(t,e){this.f=t,this.retained=[],this.xf=e}return t.prototype["@@transducer/init"]=Ve,t.prototype["@@transducer/result"]=function(t){return this.retained=null,this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,e){return this.f(e)?this.retain(t,e):this.flush(t,e)},t.prototype.flush=function(t,e){return t=Vn(this.xf,t,this.retained),this.retained=[],this.xf["@@transducer/step"](t,e)},t.prototype.retain=function(t,e){return this.retained.push(e),t},t}();function zo(t){return function(e){return new Wo(t,e)}}var Ho=ke(Je([],zo,qo)),Jo=function(){function t(t,e){this.xf=e,this.pred=t,this.lastValue=void 0,this.seenFirstValue=!1}return t.prototype["@@transducer/init"]=Ve,t.prototype["@@transducer/result"]=Ye,t.prototype["@@transducer/step"]=function(t,e){var n=!1;return this.seenFirstValue?this.pred(this.lastValue,e)&&(n=!0):this.seenFirstValue=!0,this.lastValue=e,n?t:this.xf["@@transducer/step"](t,e)},t}();function Ko(t){return function(e){return new Jo(t,e)}}var Vo=_e(function(t){return In(-1,t)}),Yo=ke(Je([],Ko,function(t,e){var n=[],r=1,o=e.length;if(0!==o)for(n[0]=e[0];r<o;)t(Vo(n),e[r])||(n[n.length]=e[r]),r+=1;return n})),Xo=_e(Je([],function(){return Ko(dn)},Yo(dn))),Zo=qe(function(t,e,n){return dn(t(e),t(n))}),Go=ke(function(t,e){return Je([],function(){return Ko(Zo(t))},Yo(Zo(t)))(e)}),Qo=function(){function t(t,e){this.xf=e,this.f=t}return t.prototype["@@transducer/init"]=Ve,t.prototype["@@transducer/result"]=Ye,t.prototype["@@transducer/step"]=function(t,e){if(this.f){if(this.f(e))return t;this.f=null}return this.xf["@@transducer/step"](t,e)},t}();function ti(t){return function(e){return new Qo(t,e)}}var ei=ke(Je(["dropWhile"],ti,function(t,e){for(var n=0,r=e.length;n<r&&t(e[n]);)n+=1;return Qr(n,1/0,e)})),ni=ke(function(t,e){return t||e}),ri=ke(function(t,e){return Tr(t)?function(){return t.apply(this,arguments)||e.apply(this,arguments)}:Nr(ni)(t,e)});var oi=_e(function(t){return null!=t&&"function"==typeof t["fantasy-land/empty"]?t["fantasy-land/empty"]():null!=t&&null!=t.constructor&&"function"==typeof t.constructor["fantasy-land/empty"]?t.constructor["fantasy-land/empty"]():null!=t&&"function"==typeof t.empty?t.empty():null!=t&&null!=t.constructor&&"function"==typeof t.constructor.empty?t.constructor.empty():t==Set||t instanceof Set?new Set:t==Map||t instanceof Map?new Map:ze(t)?[]:$n(t)?"":jn(t)?{}:on(t)?function(){return arguments}():(e=t,"[object Uint8ClampedArray]"===(n=Object.prototype.toString.call(e))||"[object Int8Array]"===n||"[object Uint8Array]"===n||"[object Int16Array]"===n||"[object Uint16Array]"===n||"[object Int32Array]"===n||"[object Uint32Array]"===n||"[object Float32Array]"===n||"[object Float64Array]"===n||"[object BigInt64Array]"===n||"[object BigUint64Array]"===n?t.constructor.from(""):void 0);var e,n}),ii=ke(function(t,e){return ko(t>=0?e.length-t:0,e)}),ui=ke(function(t,e){return dn(ii(t.length,e),t)}),si=qe(function(t,e,n){return dn(e[t],n[t])}),ai=ke(function t(e,n){if(!jn(n)&&!ze(n))return n;var r,o,i,u=n instanceof Array?[]:{};for(o in n)i=typeof(r=e[o]),u[o]="function"===i?r(n[o]):r&&"object"===i?t(r,n[o]):n[o];return u}),ci=function(){function t(t,e){this.xf=e,this.f=t,this.found=!1}return t.prototype["@@transducer/init"]=Ve,t.prototype["@@transducer/result"]=function(t){return this.found||(t=this.xf["@@transducer/step"](t,void 0)),this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,e){return this.f(e)&&(this.found=!0,t=Ke(this.xf["@@transducer/step"](t,e))),t},t}();function li(t){return function(e){return new ci(t,e)}}var fi=ke(Je(["find"],li,function(t,e){for(var n=0,r=e.length;n<r;){if(t(e[n]))return e[n];n+=1}})),pi=function(){function t(t,e){this.xf=e,this.f=t,this.idx=-1,this.found=!1}return t.prototype["@@transducer/init"]=Ve,t.prototype["@@transducer/result"]=function(t){return this.found||(t=this.xf["@@transducer/step"](t,-1)),this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,e){return this.idx+=1,this.f(e)&&(this.found=!0,t=Ke(this.xf["@@transducer/step"](t,this.idx))),t},t}();function hi(t){return function(e){return new pi(t,e)}}var di=ke(Je([],hi,function(t,e){for(var n=0,r=e.length;n<r;){if(t(e[n]))return n;n+=1}return-1})),yi=function(){function t(t,e){this.xf=e,this.f=t}return t.prototype["@@transducer/init"]=Ve,t.prototype["@@transducer/result"]=function(t){return this.xf["@@transducer/result"](this.xf["@@transducer/step"](t,this.last))},t.prototype["@@transducer/step"]=function(t,e){return this.f(e)&&(this.last=e),t},t}();function gi(t){return function(e){return new yi(t,e)}}var mi=ke(Je([],gi,function(t,e){for(var n=e.length-1;n>=0;){if(t(e[n]))return e[n];n-=1}})),vi=function(){function t(t,e){this.xf=e,this.f=t,this.idx=-1,this.lastIdx=-1}return t.prototype["@@transducer/init"]=Ve,t.prototype["@@transducer/result"]=function(t){return this.xf["@@transducer/result"](this.xf["@@transducer/step"](t,this.lastIdx))},t.prototype["@@transducer/step"]=function(t,e){return this.idx+=1,this.f(e)&&(this.lastIdx=this.idx),t},t}();function bi(t){return function(e){return new vi(t,e)}}var wi=ke(Je([],bi,function(t,e){for(var n=e.length-1;n>=0;){if(t(e[n]))return n;n-=1}return-1})),Oi=_e(_r(!0)),Si=_e(function(t){return Le(t.length,function(e,n){var r=Array.prototype.slice.call(arguments,0);return r[0]=n,r[1]=e,t.apply(this,r)})}),Ai=ke(function(t,e){return sr(vr,t,e)}),ji=ke(Gr("forEach",function(t,e){for(var n=e.length,r=0;r<n;)t(e[r]),r+=1;return e})),xi=ke(function(t,e){for(var n=ln(e),r=0;r<n.length;){var o=n[r];t(e[o],o,e),r+=1}return e});function Ei(t){for(var e={},n=0;n<t.length;)e[t[n][0]]=t[n][1],n+=1;return e}var Ri=_e(Ei),Ti=ke(Gr("groupBy",vo(function(t,e){return t.push(e),t},[]))),Pi=ke(function(t,e){for(var n=[],r=0,o=e.length;r<o;){for(var i=r+1;i<o&&t(e[i-1],e[i]);)i+=1;n.push(e.slice(r,i)),r=i}return n}),Ni=ke(function(t,e){return t>e}),Ci=ke(function(t,e){return t>=e}),Fi=ke(function(t,e){if(0===t.length||Ar(e))return!1;for(var n=e,r=0;r<t.length;){if(Ar(n)||!en(t[r],n))return!1;n=n[t[r]],r+=1}return!0}),_i=ke(function(t,e){return Fi([t],e)}),ki=ke(function(t,e){return!Ar(e)&&t in e}),Di=function(t,e){switch(arguments.length){case 0:return Di;case 1:return function(){return function e(n){return 0===arguments.length?e:nn(t,n)}}();default:return nn(t,e)}},Ii=qe(function(t,e,n){return Le(Math.max(t.length,e.length,n.length),function(){return t.apply(this,arguments)?e.apply(this,arguments):n.apply(this,arguments)})}),Mi=De(1),Ui=ke(gn),Li=vo(function(t,e){return e},null),$i=ke(function(t,e){return"function"!=typeof e.indexOf||ze(e)?yn(e,t,0):e.indexOf(t)}),Bi=Qr(0,-1),qi=qe(function(t,e,n){return An(function(e){return tn(t,e,n)},e)}),Wi=qe(function(t,e,n){t=t<n.length&&t>=0?t:n.length;var r=Array.prototype.slice.call(n,0);return r.splice(t,0,e),r}),zi=qe(function(t,e,n){return t=t<n.length&&t>=0?t:n.length,[].concat(Array.prototype.slice.call(n,0,t),e,Array.prototype.slice.call(n,t))}),Hi=function(){function t(t,e){this.xf=e,this.f=t,this.set=new jo}return t.prototype["@@transducer/init"]=Ve,t.prototype["@@transducer/result"]=Ye,t.prototype["@@transducer/step"]=function(t,e){return this.set.add(this.f(e))?this.xf["@@transducer/step"](t,e):t},t}();function Ji(t){return function(e){return new Hi(t,e)}}var Ki=ke(Je([],Ji,function(t,e){for(var n,r,o=new jo,i=[],u=0;u<e.length;)n=t(r=e[u]),o.add(n)&&i.push(r),u+=1;return i})),Vi=Ki(uo),Yi=ke(function(t,e){for(var n=new jo,r=0;r<t.length;r+=1)n.add(t[r]);return Vi(An(n.has.bind(n),e))}),Xi=ke(Gr("intersperse",function(t,e){var n=e.length;if(0===n)return[];for(var r=Array(2*n-1),o=0;o<n;){var i=2*o;o===n-1?r[i]=e[o]:(r[i]=e[o],r[i+1]=t),o+=1}return r}));const Zi="function"==typeof Object.assign?Object.assign:function(t){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1,r=arguments.length;n<r;){var o=arguments[n];if(null!=o)for(var i in o)en(i,o)&&(e[i]=o[i]);n+=1}return e};var Gi=ke(function(t,e){var n={};return n[t]=e,n}),Qi={"@@transducer/init":Array,"@@transducer/step":function(t,e){return t.push(e),t},"@@transducer/result":io},tu={"@@transducer/init":String,"@@transducer/step":function(t,e){return t+e},"@@transducer/result":io},eu={"@@transducer/init":Object,"@@transducer/step":function(t,e){return Zi(t,Bn(e)?Gi(e[0],e[1]):e)},"@@transducer/result":io};var nu=qe(function(t,e,n){var r=e(He(t)?t:function(t){if(He(t))return t;if(Bn(t))return Qi;if("string"==typeof t)return tu;if("object"==typeof t)return eu;throw new Error("Cannot create transformer for "+t)}(t));return Vn(r,r["@@transducer/init"](),n)}),ru=_e(function(t){for(var e=ln(t),n=e.length,r=0,o={};r<n;){var i=e[r],u=t[i],s=en(u,o)?o[u]:o[u]=[];s[s.length]=i,r+=1}return o}),ou=_e(function(t){for(var e=ln(t),n=e.length,r=0,o={};r<n;){var i=e[r];o[t[i]]=i,r+=1}return o}),iu=ke(function(t,e){return Le(t+1,function(){var n=arguments[t];if(null!=n&&Tr(n[e]))return n[e].apply(n,Array.prototype.slice.call(arguments,0,t));throw new TypeError(Nn(n)+' does not have a method named "'+e+'"')})}),uu=ke(function(t,e){return e instanceof t||null!=e&&(e.constructor===t||"Object"===t.name&&"object"==typeof e)}),su=_e(function(t){return null!=t&&dn(t,oi(t))}),au=_e(function(t){return!su(t)}),cu=_e(function(t){return!Ar(t)}),lu=iu(1,"join"),fu=_e(function(t){return ho(function(){return Array.prototype.slice.call(arguments,0)},t)}),pu=_e(function(t){var e,n=[];for(e in t)n[n.length]=e;return n}),hu=ke(function(t,e){if("function"!=typeof e.lastIndexOf||ze(e)){for(var n=e.length-1;n>=0;){if(dn(e[n],t))return n;n-=1}return-1}return e.lastIndexOf(t)});function du(t){return"[object Number]"===Object.prototype.toString.call(t)}var yu=_e(function(t){return null!=t&&du(t.length)?t.length:NaN}),gu=ke(function(t,e){return function(n){return function(r){return kn(function(t){return e(t,r)},n(t(r)))}}}),mu=qe(function(t,e,n){return We(t,Qn(e),n)}),vu=_e(function(t){return gu(function(e){return In(t,e)},mu(t))});function bu(t,e){for(var n=e,r=0;r<t.length;r+=1){if(null==n)return;var o=t[r];n=Dn(o)?In(o,n):n[o]}return n}var wu=_e(function(t){return gu(function(e){return bu(t,e)},jr(t))}),Ou=_e(function(t){return gu(Un(t),xr(t))}),Su=ke(function(t,e){return t<e}),Au=ke(function(t,e){return t<=e}),ju=qe(function(t,e,n){for(var r=0,o=n.length,i=Array(o),u=[e];r<o;)u=t(u[0],n[r]),i[r]=u[1],r+=1;return[u[0],i]}),xu=qe(function(t,e,n){for(var r=n.length-1,o=Array(n.length),i=[e];r>=0;)i=t(i[0],n[r]),o[r]=i[1],r-=1;return[i[0],o]});function Eu(t){var e=[];for(var n in t)en(n,t)&&(e[e.length]=[n,t[n]]);return e}var Ru=function(t,e){return Ei($r(function(e){return t(e[0],e[1])},Eu(e)))},Tu=function(t,e){return Ru(function(e,n){return[[t(e),n]]},e)},Pu=ke(Tu),Nu=ke(function(t,e){return Sn(function(n,r){return n[r]=t(e[r],r,e),n},{},ln(e))}),Cu=ke(function(t,e){return e.match(t)||[]}),Fu=ke(function(t,e){return Dn(t)?!Dn(e)||e<1?NaN:(t%e+e)%e:NaN}),_u=qe(function(t,e,n){var r=t(n);return Cn(t(e),r)===r?n:e}),ku=Zn(De,0),Du=_e(function(t){return ku(t)/t.length}),Iu=_e(function(t){var e=t.length;if(0===e)return NaN;var n=2-e%2,r=(e-n)/2;return Du(Array.prototype.slice.call(t,0).sort(function(t,e){return t<e?-1:t>e?1:0}).slice(r,r+n))}),Mu=ke(function(t,e){var n={};return Me(e.length,function(){var r=t.apply(this,arguments);return en(r,n)||(n[r]=e.apply(this,arguments)),n[r]})}),Uu=_e(function(t){return Zi.apply(null,[{}].concat(t))}),Lu=qe(function(t,e,n){var r,o={};for(r in n=n||{},e=e||{})en(r,e)&&(o[r]=en(r,n)?t(r,e[r],n[r]):e[r]);for(r in n)en(r,n)&&!en(r,o)&&(o[r]=n[r]);return o}),$u=qe(function t(e,n,r){return Lu(function(n,r,o){return jn(r)&&jn(o)?t(e,r,o):e(n,r,o)},n,r)}),Bu=ke(function(t,e){return $u(function(t,e,n){return e},t,e)}),qu=ke(function(t,e){return $u(function(t,e,n){return n},t,e)}),Wu=qe(function(t,e,n){return $u(function(e,n,r){return t(n,r)},e,n)}),zu=ke(function(t,e){return Zi({},e,t)}),Hu=ke(function(t,e){return Zi({},t,e)}),Ju=qe(function(t,e,n){return Lu(function(e,n,r){return t(n,r)},e,n)}),Ku=ke(function(t,e){if(t===e)return t;function n(t,e){if(t<e!=e<t)return e<t?e:t}var r=n(t,e);if(void 0!==r)return r;var o=n(typeof t,typeof e);if(void 0!==o)return o===typeof t?t:e;var i=Nn(t),u=n(i,Nn(e));return void 0!==u?u===i?t:e:t}),Vu=qe(function(t,e,n){var r=t(n);return Ku(t(e),r)===r?n:e});var Yu=qe(function t(e,n,r){if(!jn(r)&&!ze(r))return r;if(0===e.length)return n(r);var o=e[0];if(!en(o,r))return r;if(1===e.length)return function(t,e,n){if(Dn(t)&&ze(n)){var r=[].concat(n);return r[t]=e(r[t]),r}var o={};for(var i in n)o[i]=n[i];return o[t]=e(o[t]),o}(o,n,r);var i=t(Array.prototype.slice.call(e,1),n,r[o]);return i===r[o]?r:Sr(o,i,r)}),Xu=qe(function(t,e,n){return Yu([t],e,n)}),Zu=ke(function(t,e){return t%e}),Gu=qe(function(t,e,n){var r=n.length,o=n.slice(),i=t<0?r+t:t,u=e<0?r+e:e,s=o.splice(i,1);return i<0||i>=n.length||u<0||u>=n.length?n:[].concat(o.slice(0,u)).concat(s).concat(o.slice(u,n.length))}),Qu=ke(function(t,e){return t*e}),ts=ke(function(t,e){return function(n){return t(qu(e,n))}}),es=_e(function(t){return-t}),ns=ke(function(t,e){return Ge(On(t),e)}),rs=ke(In),os=_e(function(t){return Le(t<0?1:t+1,function(){return In(t,arguments)})}),is=qe(function(t,e,n){return t(e(n))}),us=ke(function(t,e){return"function"==typeof t["fantasy-land/of"]?t["fantasy-land/of"](e):"function"==typeof t.of?t.of(e):[e]}),ss=ke(function(t,e){for(var n={},r={},o=0,i=t.length;o<i;)r[t[o]]=1,o+=1;for(var u in e)r.hasOwnProperty(u)||(n[u]=e[u]);return n}),as=Ue(4,[],function(t,e,n,r){return t(e(n),e(r))}),cs=_e(function(t){var e,n=!1;return Me(t.length,function(){return n?e:(n=!0,e=t.apply(this,arguments))})});function ls(t,e){if(null==e||!Tr(e.then))throw new TypeError("`"+t+"` expected a Promise, received "+Pn(e,[]))}var fs=ke(function(t,e){return ls("otherwise",e),e.then(null,t)}),ps=function(t){return{value:t,map:function(e){return ps(e(t))}}},hs=qe(function(t,e,n){return t(function(t){return ps(e(t))})(n).value}),ds=ke(function(t,e){return[t,e]});function ys(t){return ke(function(e,n){return Me(Math.max(0,e.length-n.length),function(){return e.apply(this,t(n,arguments))})})}var gs=ys(Ie),ms=ys(Si(Ie)),vs=fu([Rn,Tn]),bs=ke(bu),ws=ke(function(t,e){return t.map(function(t){for(var n,r=e,o=0;o<t.length;){if(null==r)return;n=t[o],r=Dn(n)?In(n,r):r[n],o+=1}return r})}),Os=qe(function(t,e,n){return dn(bu(e,n),t)}),Ss=qe(function(t,e,n){return Oo(t,bu(e,n))}),As=qe(function(t,e,n){return t(bu(e,n))}),js=ke(function(t,e){for(var n={},r=0;r<t.length;)t[r]in e&&(n[t[r]]=e[t[r]]),r+=1;return n}),xs=ke(function(t,e){for(var n={},r=0,o=t.length;r<o;){var i=t[r];n[i]=e[i],r+=1}return n}),Es=ke(function(t,e){var n={};for(var r in e)t(e[r],r,e)&&(n[r]=e[r]);return n}),Rs=ke(function(t,e){return Ie([t],e)}),Ts=Zn(Qu,1),Ps=ke(function(t,e){return Le(e.length,function(){for(var n=[],r=0;r<e.length;)n.push(e[r].call(this,arguments[r])),r+=1;return t.apply(this,n.concat(Array.prototype.slice.call(arguments,e.length)))})}),Ns=Ps(mn,[xs,uo]);function Cs(t,e,n){return function(r){return e(n(t(r)))}}var Fs=function(){function t(t,e,n){this.xf=n,this.f=t,this.g=e}return t.prototype["@@transducer/init"]=Ve,t.prototype["@@transducer/result"]=Ye,t.prototype["@@transducer/step"]=function(t,e){return this.xf["@@transducer/step"](t,Cs(this.f,this.g,e))},t}();function _s(t,e){return function(n){return new Fs(t,e,n)}}var ks=qe(Je(["fantasy-land/promap","promap"],_s,Cs)),Ds=qe(function(t,e,n){return dn(t,Un(e,n))}),Is=qe(function(t,e,n){return uu(t,Un(e,n))}),Ms=qe(function(t,e,n){return Oo(t,Un(e,n))}),Us=qe(function(t,e,n){return t(Un(e,n))}),Ls=ke(function(t,e){return t.map(function(t){return Un(t,e)})}),$s=ke(function(t,e){if(!du(t)||!du(e))throw new TypeError("Both arguments to range must be numbers");for(var n=t<e?Math.ceil(e-t):0,r=Array(n),o=0;o<n;)r[o]=o+t,o+=1;return r}),Bs=ke(Ru),qs=qe(function(t,e,n){for(var r=n.length-1;r>=0;){if((e=t(n[r],e))&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}r-=1}return e}),Ws=Ue(4,[],function(t,e,n,r){var o=Xn(function(n,r){return t(n,r)?e(n,r):Ke(n)});return Vn(o,n,r)}),zs=_e(Ke),Hs=ke(function(t,e){return Tu(function(e){return en(e,t)?t[e]:e},e)}),Js=ke(function(t,e){var n=Number(e);if(n<0||isNaN(n))throw new RangeError("n must be a non-negative number");for(var r=0,o=Array(n);r<n;)o[r]=t(r),r+=1;return o}),Ks=ke(function(t,e){return Js(Qn(t),e)}),Vs=qe(function(t,e,n){return n.replace(t,e)}),Ys="@@transducer/init",Xs="@@transducer/step",Zs=function(){function t(t,e,n){this.xf=n,this.f=t,this.acc=e}return t.prototype[Ys]=function(){return this.xf[Xs](this.xf[Ys](),this.acc)},t.prototype["@@transducer/result"]=Ye,t.prototype[Xs]=function(t,e){return t["@@transducer/reduced"]?t:(this.acc=this.f(this.acc,e),this.xf[Xs](t,this.acc))},t}(),Gs=qe(Je([],qe(function(t,e,n){return new Zs(t,e,n)}),function(t,e,n){var r=0,o=n.length,i=Array(o+1);for(i[0]=e;r<o;)e=t(e,n[r]),i[r+1]=e,r+=1;return i})),Qs=ke(function(t,e){var n="function"==typeof t["fantasy-land/of"]?t["fantasy-land/of"]:"function"==typeof t.of?t.of:t,r={"fantasy-land/of":n};return"function"==typeof e["fantasy-land/traverse"]?e["fantasy-land/traverse"](r,io):"function"==typeof e.traverse?e.traverse(r,io):qs(function(t,e){return ar(kn(Rs,t),e)},n([]),e)}),ta=qe(function(t,e,n){return hs(t,Qn(e),n)}),ea=ke(function(t,e){return Array.prototype.slice.call(e,0).sort(t)}),na=ke(function(t,e){return Array.prototype.slice.call(e,0).sort(function(e,n){var r=t(e),o=t(n);return r<o?-1:r>o?1:0})}),ra=ke(function(t,e){return Array.prototype.slice.call(e,0).sort(function(e,n){for(var r=0,o=0;0===r&&o<t.length;)r=t[o](e,n),o+=1;return r})}),oa=iu(1,"split"),ia=ke(function(t,e){return[Qr(0,t,e),Qr(t,yu(e),e)]}),ua=ke(function(t,e){if(t<=0)throw new Error("First argument to splitEvery must be a positive integer");for(var n=[],r=0;r<e.length;)n.push(Qr(r,r+=t,e));return n}),sa=ke(function(t,e){for(var n=0,r=e.length,o=[];n<r&&!t(e[n]);)o.push(e[n]),n+=1;return[o,Array.prototype.slice.call(e,n)]}),aa=Ue(2,[],function(t,e){for(var n=[],r=[],o=0;o<e.length;o+=1)t(e[o])||r.push(e[o]),(o<e.length-1&&t(e[o+1])||o===e.length-1)&&r.length>0&&(n.push(r),r=[]);return n}),ca=ke(function(t,e){return dn(Mo(t.length,e),t)}),la=ke(function(t,e){return Number(t)-Number(e)}),fa=function(t,e,n){var r=n.length,o=n.slice(),i=t<0?r+t:t,u=e<0?r+e:e,s=Math.min(i,u),a=Math.max(i,u);return i<0||i>r||u<0||u>r||i===u?o:o=[].concat(o.slice(0,s)).concat([o[a]]).concat(o.slice(s+1,a)).concat([o[s]]).concat(o.slice(a+1,r))},pa=qe(function(t,e,n){return ze(n)?fa(t,e,n):$n(n)?function(t,e,n){var r=fa(t,e,n);return ze(r)?r.join(""):r}(t,e,n):function(t,e,n){var r=Jr(n),o=Object.getOwnPropertyNames(r);if(o.includes(t)&&o.includes(e)){var i=r[t];r[t]=r[e],r[e]=i}return r}(t,e,n)}),ha=ke(function(t,e){return co(Eo(t,e),Eo(e,t))}),da=qe(function(t,e,n){return co(Ro(t,e,n),Ro(t,n,e))}),ya=ke(function(t,e){for(var n=e.length-1;n>=0&&t(e[n]);)n-=1;return Qr(n+1,1/0,e)}),ga=function(){function t(t,e){this.xf=e,this.f=t}return t.prototype["@@transducer/init"]=Ve,t.prototype["@@transducer/result"]=Ye,t.prototype["@@transducer/step"]=function(t,e){return this.f(e)?this.xf["@@transducer/step"](t,e):Ke(t)},t}();function ma(t){return function(e){return new ga(t,e)}}var va=ke(Je(["takeWhile"],ma,function(t,e){for(var n=0,r=e.length;n<r&&t(e[n]);)n+=1;return Qr(0,n,e)})),ba=function(){function t(t,e){this.xf=e,this.f=t}return t.prototype["@@transducer/init"]=Ve,t.prototype["@@transducer/result"]=Ye,t.prototype["@@transducer/step"]=function(t,e){return this.f(e),this.xf["@@transducer/step"](t,e)},t}();function wa(t){return function(e){return new ba(t,e)}}var Oa=ke(Je([],wa,function(t,e){return t(e),e}));var Sa=ke(function(t,e){if(n=t,"[object RegExp]"!==Object.prototype.toString.call(n))throw new TypeError("‘test’ requires a value of type RegExp as its first argument; received "+Nn(t));var n;return Wr(t).test(e)}),Aa=ke(function(t,e){return ls("andThen",e),e.then(t)}),ja=iu(0,"toLowerCase"),xa=_e(Eu),Ea=_e(function(t){var e=[];for(var n in t)e[e.length]=[n,t[n]];return e}),Ra=iu(0,"toUpperCase"),Ta=Le(4,function(t,e,n,r){return Vn(t("function"==typeof e?Xn(e):e),n,r)}),Pa=_e(function(t){for(var e=0,n=[];e<t.length;){for(var r=t[e],o=0;o<r.length;)void 0===n[o]&&(n[o]=[]),n[o].push(r[o]),o+=1;e+=1}return n}),Na=qe(function(t,e,n){var r={"fantasy-land/of":"function"==typeof t["fantasy-land/of"]?t["fantasy-land/of"]:"function"==typeof t.of?t.of:t};return"function"==typeof n["fantasy-land/traverse"]?n["fantasy-land/traverse"](r,e):"function"==typeof n.traverse?n.traverse(r,e):Qs(r,kn(e,n))}),Ca="\t\n\v\f\r                 \u2028\u2029\ufeff",Fa=_e("function"==typeof String.prototype.trim&&!Ca.trim()&&"​".trim()?function(t){return t.trim()}:function(t){var e=new RegExp("^["+Ca+"]["+Ca+"]*"),n=new RegExp("["+Ca+"]["+Ca+"]*$");return t.replace(e,"").replace(n,"")}),_a=ke(function(t,e){return Me(t.length,function(){try{return t.apply(this,arguments)}catch(n){return e.apply(this,Ie([n],arguments))}})}),ka=_e(function(t){return function(){return t(Array.prototype.slice.call(arguments,0))}}),Da=_e(function(t){return Er(1,t)}),Ia=ke(function(t,e){return Le(t,function(){for(var n,r=1,o=e,i=0;r<=t&&"function"==typeof o;)n=r===t?arguments.length:i+o.length,o=o.apply(this,Array.prototype.slice.call(arguments,i,n)),r+=1,i=n;return o})}),Ma=ke(function(t,e){for(var n=t(e),r=[];n&&n.length;)r[r.length]=n[0],n=t(n[1]);return r}),Ua=ke(ro(Vi,Ie)),La=function(){function t(t,e){this.xf=e,this.pred=t,this.items=[]}return t.prototype["@@transducer/init"]=Ve,t.prototype["@@transducer/result"]=Ye,t.prototype["@@transducer/step"]=function(t,e){return tn(this.pred,e,this.items)?t:(this.items.push(e),this.xf["@@transducer/step"](t,e))},t}();function $a(t){return function(e){return new La(t,e)}}var Ba=ke(Je([],$a,function(t,e){for(var n,r=0,o=e.length,i=[];r<o;)tn(t,n=e[r],i)||(i[i.length]=n),r+=1;return i})),qa=qe(function(t,e,n){return Ba(t,Ie(e,n))}),Wa=qe(function(t,e,n){return t(n)?n:e(n)}),za=Br(io),Ha=qe(function(t,e,n){for(var r=n;!t(r);)r=e(r);return r}),Ja=ke(function(t,e){return t in e&&ze(e[t])?mn(function(n){return Sr(t,n,e)},e[t]):[e]}),Ka=_e(function(t){var e,n=[];for(e in t)n[n.length]=t[e];return n}),Va=function(t){return{value:t,"fantasy-land/map":function(){return this}}},Ya=ke(function(t,e){return t(Va)(e).value}),Xa=qe(function(t,e,n){return t(n)?e(n):n}),Za=ke(function(t,e){for(var n in t)if(en(n,t)&&!t[n](e[n]))return!1;return!0}),Ga=ke(function(t,e){for(var n in t)if(en(n,t)&&t[n](e[n]))return!0;return!1}),Qa=ke(function(t,e){return Za(kn(dn,t),e)}),tc=ke(function(t,e){for(var n=new jo,r=0;r<t.length;r+=1)n.add(t[r]);return Tn(n.has.bind(n),e)}),ec=ke(function(t,e){return Boolean(!t^!e)}),nc=ke(function(t,e){for(var n,r=0,o=t.length,i=e.length,u=Array(o*i);r<o;){for(n=0;n<i;)u[r*i+n]=[t[r],e[n]],n+=1;r+=1}return u}),rc=ke(function(t,e){for(var n=Math.min(t.length,e.length),r=Array(n),o=0;o<n;)r[o]=[t[o],e[o]],o+=1;return r}),oc=ke(function(t,e){for(var n=0,r=Math.min(t.length,e.length),o={};n<r;)o[t[n]]=e[n],n+=1;return o}),ic=qe(function(t,e,n){for(var r=Math.min(e.length,n.length),o=Array(r),i=0;i<r;)o[i]=t(e[i],n[i]),i+=1;return o}),uc=_e(function(t){return Le(t.length,function(){var e=arguments;return function(){return t.apply(this,e)}})});const sc=Object.freeze(Object.defineProperty({__proto__:null,F:function(){return!1},T:function(){return!0},__:Ce,add:De,addIndex:$e,addIndexRight:Be,adjust:We,all:Ge,allPass:Gn,always:Qn,and:tr,andThen:Aa,any:rr,anyPass:or,ap:ar,aperture:pr,append:hr,apply:dr,applySpec:mr,applyTo:vr,ascend:br,ascendNatural:Or,assoc:xr,assocPath:jr,binary:Rr,bind:Hn,both:Cr,call:Fr,chain:Br,clamp:qr,clone:Jr,collectBy:Kr,comparator:Vr,complement:Xr,compose:ro,composeWith:ao,concat:co,cond:lo,construct:po,constructN:fo,converge:ho,count:yo,countBy:bo,curry:wr,curryN:Le,dec:wo,defaultTo:Oo,descend:So,descendNatural:Ao,difference:Eo,differenceWith:Ro,dissoc:No,dissocPath:Po,divide:Co,drop:ko,dropLast:Bo,dropLastWhile:Ho,dropRepeats:Xo,dropRepeatsBy:Go,dropRepeatsWith:Yo,dropWhile:ei,either:ri,empty:oi,endsWith:ui,eqBy:Zo,eqProps:si,equals:dn,evolve:ai,filter:Rn,find:fi,findIndex:di,findLast:mi,findLastIndex:wi,flatten:Oi,flip:Si,flow:Ai,forEach:ji,forEachObjIndexed:xi,fromPairs:Ri,groupBy:Ti,groupWith:Pi,gt:Ni,gte:Ci,has:_i,hasIn:ki,hasPath:Fi,head:oo,identical:Di,identity:uo,ifElse:Ii,inc:Mi,includes:Ui,indexBy:Li,indexOf:$i,init:Bi,innerJoin:qi,insert:Wi,insertAll:zi,intersection:Yi,intersperse:Xi,into:nu,invert:ru,invertObj:ou,invoker:iu,is:uu,isEmpty:su,isNil:Ar,isNotEmpty:au,isNotNil:cu,join:lu,juxt:fu,keys:ln,keysIn:pu,last:Vo,lastIndexOf:hu,length:yu,lens:gu,lensIndex:vu,lensPath:wu,lensProp:Ou,lift:Nr,liftN:Pr,lt:Su,lte:Au,map:kn,mapAccum:ju,mapAccumRight:xu,mapKeys:Pu,mapObjIndexed:Nu,match:Cu,mathMod:Fu,max:Cn,maxBy:_u,mean:Du,median:Iu,memoizeWith:Mu,mergeAll:Uu,mergeDeepLeft:Bu,mergeDeepRight:qu,mergeDeepWith:Wu,mergeDeepWithKey:$u,mergeLeft:zu,mergeRight:Hu,mergeWith:Ju,mergeWithKey:Lu,min:Ku,minBy:Vu,modify:Xu,modifyPath:Yu,modulo:Zu,move:Gu,multiply:Qu,nAry:Er,negate:es,none:ns,not:Yr,nth:rs,nthArg:os,o:is,objOf:Gi,of:us,omit:ss,on:as,once:cs,or:ni,otherwise:fs,over:hs,pair:ds,partial:gs,partialObject:ts,partialRight:ms,partition:vs,path:bs,pathEq:Os,pathOr:Ss,pathSatisfies:As,paths:ws,pick:js,pickAll:xs,pickBy:Es,pipe:eo,pipeWith:so,pluck:Ln,prepend:Rs,product:Ts,project:Ns,promap:ks,prop:Un,propEq:Ds,propIs:Is,propOr:Ms,propSatisfies:Us,props:Ls,range:$s,rebuild:Bs,reduce:Zn,reduceBy:vo,reduceRight:qs,reduceWhile:Ws,reduced:zs,reject:Tn,remove:To,renameKeys:Hs,repeat:Ks,replace:Vs,reverse:no,scan:Gs,sequence:Qs,set:ta,slice:Qr,sort:ea,sortBy:na,sortWith:ra,split:oa,splitAt:ia,splitEvery:ua,splitWhen:sa,splitWhenever:aa,startsWith:ca,subtract:la,sum:ku,swap:pa,symmetricDifference:ha,symmetricDifferenceWith:da,tail:to,take:Mo,takeLast:ii,takeLastWhile:ya,takeWhile:va,tap:Oa,test:Sa,thunkify:uc,times:Js,toLower:ja,toPairs:xa,toPairsIn:Ea,toString:Nn,toUpper:Ra,transduce:Ta,transpose:Pa,traverse:Na,trim:Fa,tryCatch:_a,type:fn,unapply:ka,unary:Da,uncurryN:Ia,unfold:Ma,union:Ua,unionWith:qa,uniq:Vi,uniqBy:Ki,uniqWith:Ba,unless:Wa,unnest:za,until:Ha,unwind:Ja,update:mu,useWith:Ps,values:yr,valuesIn:Ka,view:Ya,when:Xa,where:Za,whereAny:Ga,whereEq:Qa,without:tc,xor:ec,xprod:nc,zip:rc,zipObj:oc,zipWith:ic},Symbol.toStringTag,{value:"Module"}));function ac(t,e={}){const n={id:"id",children:"children",parentId:"parentId",useConcat:!1,...e};if(t&&t[0]&&!t[0].hasOwnProperty(n.id))return console.warn("数据非标准,未找到唯一标识字段,直接返回"),t;const{id:r,children:o,parentId:i,useConcat:u}=n;if(!1===u)for(const c of t)delete c[o];const s=new Map,a=[];for(const c of t){const t=c[r];c[o]||(c[o]=[]),s.set(t,c)}for(const c of t){const t=c[i],e=s.get(t);e?u&&Array.isArray(e[o])?e[o]=e[o].concat(c):e[o].push(c):a.push(c)}for(const c of t)Array.isArray(c[o])&&0===c[o].length&&delete c[o];return a}function cc(t){if(!t||0===t.length)return;const e=new Map;for(const r of t)e.set(r.id,r),r._parentIds=[];function n(t){if(t._parentIds.length>0||!t.parentId)return t._parentIds;const r=e.get(t.parentId);if(!r)return t._parentIds=[],t._parentIds;const o=n(r);return t._parentIds=[...o,t.parentId],t._parentIds}for(const r of t)0===r._parentIds.length&&n(r);return t}function lc(t,e){if(null==t||"object"!=typeof t)return console.warn("dlsjs: findLeaf函数的第一个参数必须是对象类型"),null;if("string"!=typeof e||""===e.trim())return console.warn("dlsjs: findLeaf函数的第二个参数必须是有效的字符串"),null;let n=t;for(;null!==n&&"object"==typeof n&&n.hasOwnProperty(e);)n=n[e];return n}function fc(t,e,n){if(!Array.isArray(t)||!Array.isArray(e)||!n)return[];const r=[];for(let i=0;i<e.length;i++){const t=e[i];if(t){const e=n[t];e&&r.push(e)}}if(0===r.length)return[];const o=[];for(let i=0;i<t.length;i++){const e=t[i];for(let t=0;t<r.length;t++){const n=r[t],i={id:"",parentId:"",label:"",value:""};for(let o=0;o<=t;o++){const t=r[o];i.id+=e[t.propFieldName]||""}if(t>0)for(let o=0;o<t;o++){const t=r[o];i.parentId+=e[t.propFieldName]||""}else i.parentId="-1";i.label=e[n.textFieldName]||"",i.value=e[n.propFieldName]||"",o.push(i)}}return Ki(t=>t.id,o)}function pc(t,e=[]){const n=[...hc(t)];for(;n.length>0;){const t=n.pop();if(e.push(t),t.children&&Array.isArray(t.children)&&t.children.length>0)for(let e=t.children.length-1;e>=0;e--)n.push(t.children[e])}return e}function hc(t){let e=[];return Array.isArray(t)?e=t:"object"==typeof t&&null!==t&&(e=[t]),e}const dc={JSON:{get:t=>{try{return JSON.parse(t)}catch(e){return t}},set:(t,e,n)=>{try{return t[e]=JSON.stringify(n),!0}catch(r){return t[e]="{}",!0}}},Array:{get:(t,e,n)=>(t||(e[n]=[]),e[n]),preSet:(t,e,n)=>{t||(t=[]);for(let r=0;r<Number(e);r++)Ar(t[r])&&(t[r]=null);return t}},Item:{get:(t,e,n)=>Array.isArray(e)?e.map(t=>t[n]):e[n],set:(t,e,n)=>{for(let r=0;r<n.length;r++)Ar(n[r])||(t[r]||(t[r]={}),t[r][e]=n[r]);return t}},ItemString:{get:(t,e,n)=>Array.isArray(e)?e.map(t=>t[n]).toString():e[n],set:(t,e,n)=>{n=n.split(",");for(let r=0;r<n.length;r++)t[r]||(t[r]={}),Ar(n[r])||(t[r]||(t[r]={}),t[r][e]=n[r]);return t}},String:{get:t=>t.toString(),set:(t,e,n)=>(t[e]="string"!=typeof n?n.toString():n,t)},Number:{get:t=>Number(t||0),set:(t,e,n)=>(t[e]=Number(n||0),t)},Boolean:{get:t=>"true"===t||"false"!==t&&!!t,set:(t,e,n)=>(t[e]="true"===n||"false"!==n&&!!n,t)},Leaf:{get:(t,e,n)=>lc(e,n)}};function yc(t,e,n="/"){let r=null==e?void 0:e.split(n);r.shift();let o=t;for(;r.length>0;){if(!o)return o;let t=r.shift()||"";if(""===t)return o;let e=/\$([a-zA-Z0-9]+)_(.+)/.exec(t);if(e){const[n,r,i]=e;t=i;let u=dc[r];if(u&&u.get){o=u.get(o[t],o,t);continue}}o=o[t]}return o}function gc(t,e,n,r="/"){let o,i,u=null==e?void 0:e.split(r),s=n,a=u.pop()||"";for(;u.length>0;){o=yc(t,u.join("/")),i=u[u.length-1];let e=/\$([a-zA-Z0-9]+)_(.+)/.exec(i),n=/\$([a-zA-Z0-9]+)_(.+)/.exec(a);if(e){const[t,n,r]=e;let i=dc[n];i&&i.preSet&&(o=i.preSet(o,a,s))}if(n){const[t,e,r]=n;let i=dc[e];i&&i.set?s=i.set(o,r,s):(o||(o={}),o[r]=s,s=o)}else o||(o={}),o[a]=s,s=o;a=i,u.pop()}return!0}const mc={get:(t,e)=>{let n;return n="string"==typeof e&&e.includes("#/")?yc(t,e):t[e],n},set:(t,e,n)=>"string"==typeof e&&e.includes("#/")?(gc(t,e,n),!0):(t[e]=n,!0)},vc={get:(t,e)=>{let n;return n="string"==typeof e&&e.includes("#/")?yc(t,e):t[e],["[object Object]","[object Array]"].includes(Object.prototype.toString.call(n))?new Proxy(n,vc):n},set:(t,e,n)=>"string"==typeof e&&e.includes("#/")?(gc(t,e,n),!0):(t[e]=n,!0)};function bc(t){return Ar(t)?{}:new Proxy(t,vc)}const wc={get:function(t,e,n){if(!Ar(t[e]))return uu(Function,t[e])?(...n)=>Oc(t[e].call(t,...n)):Oc(t[e]);if(sc[e]instanceof Function){let n;if(sc[e].length>1){const r=new Array(sc[e].length-1).fill(Ce);n=sc[e](...r,t)}else n=()=>sc[e](t);return(...t)=>Oc(n(...t))}return t[e]}};function Oc(t){return function(t){return["[object Object]","[object Array]"].includes(Object.prototype.toString.call(t))}(t)?new Proxy(t,wc):t}function Sc(t,e,n,r){if("deep"===r(t,e))return Sc(n(t,e),e,n,r);if(r(t,e))return n(t,e);if(["[object Object]","[object Array]"].includes(Object.prototype.toString.call(t))){let o=null;"[object Array]"===Object.prototype.toString.call(t)&&(o=[]),"[object Object]"===Object.prototype.toString.call(t)&&(o={});for(let i in t)if(e.key=i,e.parent=o,"[object Object]"===Object.prototype.toString.call(o))o[i]=Sc(t[i],e,n,r);else{let u=Sc(t[i],e,n,r);void 0!==u&&o.push(u)}return o}return t}function Ac(t={},e={},n=null,r=null){for(let o in e)t.hasOwnProperty(o)&&"Object"===fn(e[o])&&"Object"===fn(t[o])?Ac(t[o],e[o],n,r):t.hasOwnProperty(o)&&"Array"===fn(e[o])&&"Array"===fn(t[o])?xc(t[o],e[o],n,r):t[o]=e[o];return t}function jc(t={},e={},n=null){for(let r in e)t.hasOwnProperty(r)&&"Object"===fn(e[r])&&"Object"===fn(t[r])?Ac(t[r],e[r],n):t[r]=e[r];return t}function xc(t,e,n=null,r=null){var o;0===(null==(o=e.filter(t=>"object"==typeof t))?void 0:o.length)&&t.splice(0,t.length);for(let i in e)if("Object"===fn(e[i])){if(r instanceof Function&&r(t,e)||!(n instanceof Function))Ar(t[i])?t.push(e[i]):Ac(t[i],e[i],n,r);else if(n instanceof Function){let o;for(let u=0;u<t.length;u++)if(o=n(t[u],e[i]),o){Ac(t[u],e[i],n,r);break}o||t.push(e[i])}}else"Array"===fn(e[i])&&"Array"===fn(t[i])?xc(t[i],e[i],n,r):t[i]=e[i]}function Ec(t){if(1===t.length)return function(t){const e=[];for(let n=0;n<t;n++)e.push([n]);return e}(t[0]);let e=function(t,e){const n=[];for(let r=0;r<t;r++)for(let t=0;t<e;t++)n.push([r,t]);return n}(t[0],t[1]);if(2===t.length)return e;for(let r=2;r<t.length;r++)e=n(e,t[r]);return e;function n(t,e){const n=[];for(let r of t)for(let t=0;t<e;t++){const e=Jr(r);n.push(e.concat(t))}return n}}function Rc(t){const e=/\$\{([a-zA-Z0-9_]+)\}/g,n=[];let r;for(;null!==(r=e.exec(t));)n.push(r[1]);return n}function Tc(t,e){if(t.must)return Pc(t.must,e);if(t.should)return Nc(t.should,e);if(t.condition){let n=t.left,r=t.right;if(t.leftKey&&(n=bc(e)[t.leftKey]),t.rightKey&&(r=bc(e)[t.rightKey]),"eq"===t.condition)return n===r;if("ne"===t.condition)return n!==r;if("lt"===t.condition)return n<r;if("le"===t.condition)return n<=r;if("gt"===t.condition)return n>r;if("ge"===t.condition)return n>=r;if("in"===t.condition)return["String","Array"].includes(fn(r))?null==r?void 0:r.includes(n):(console.error(`${r} is not String|Array`),!1);if("nin"===t.condition)return["String","Array"].includes(fn(r))?!(null==r?void 0:r.includes(n)):(console.error(`${r} is not String|Array`),!1);if("has"===t.condition)return["String","Array"].includes(fn(n))?null==n?void 0:n.includes(r):(console.error(`${n} is not String|Array`),!1);if("nhas"===t.condition)return["String","Array"].includes(fn(n))?!(null==n?void 0:n.includes(r)):(console.error(`${n} is not String|Array`),!1);if("notNull"===t.condition)return!Ar(n)&&!su(n);if("isNull"===t.condition)return Ar(n)||su(n);if("any"===t.condition)return!0}return!0}function Pc(t,e){let n=[];for(let r of t)n.push(Tc(r,e));return!n.includes(!1)}function Nc(t,e){let n=[];for(let r of t)n.push(Tc(r,e));return n.includes(!0)}class Cc{constructor(t){this.data={},this.promiseInstance={},this.option=t}async get(t){return this.data[t]?this.data[t]:this.promiseInstance[t]?(await this.promiseInstance[t],this.data[t]):this.promiseInstance[t]?void 0:this.option[t]?(this.promiseInstance[t]=this.option[t](),this.data[t]=await this.promiseInstance[t],this.promiseInstance[t]=null,this.data[t]):null}getSync(t){return this.data[t]||(this.data[t]=this.option[t]()),this.data[t]}async set(t,e){"[object Function]"===Object.prototype.toString.call(e)?this.option[t]=e:"[object AsyncFunction]"===Object.prototype.toString.call(e)&&(this.promiseInstance[t]||(this.promiseInstance[t]=e(),this.data[t]=await this.promiseInstance[t],this.promiseInstance[t]=null))}async refresh(t){return this.data[t]=null,await this.get(t)}}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function Fc(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var _c={exports:{}};_c.exports=function(){var t=1e3,e=6e4,n=36e5,r="millisecond",o="second",i="minute",u="hour",s="day",a="week",c="month",l="quarter",f="year",p="date",h="Invalid Date",d=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],n=t%100;return"["+t+(e[(n-20)%10]||e[n]||e[0])+"]"}},m=function(t,e,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},v={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),o=n%60;return(e<=0?"+":"-")+m(r,2,"0")+":"+m(o,2,"0")},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),o=e.clone().add(r,c),i=n-o<0,u=e.clone().add(r+(i?-1:1),c);return+(-(r+(n-o)/(i?o-u:u-o))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:c,y:f,w:a,d:s,D:p,h:u,m:i,s:o,ms:r,Q:l}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},b="en",w={};w[b]=g;var O="$isDayjsObject",S=function(t){return t instanceof E||!(!t||!t[O])},A=function t(e,n,r){var o;if(!e)return b;if("string"==typeof e){var i=e.toLowerCase();w[i]&&(o=i),n&&(w[i]=n,o=i);var u=e.split("-");if(!o&&u.length>1)return t(u[0])}else{var s=e.name;w[s]=e,o=s}return!r&&o&&(b=o),o||!r&&b},j=function(t,e){if(S(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new E(n)},x=v;x.l=A,x.i=S,x.w=function(t,e){return j(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var E=function(){function g(t){this.$L=A(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[O]=!0}var m=g.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(x.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match(d);if(r){var o=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(e)}(t),this.init()},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},m.$utils=function(){return x},m.isValid=function(){return!(this.$d.toString()===h)},m.isSame=function(t,e){var n=j(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return j(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<j(t)},m.$g=function(t,e,n){return x.u(t)?this[e]:this.set(n,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var n=this,r=!!x.u(e)||e,l=x.p(t),h=function(t,e){var o=x.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?o:o.endOf(s)},d=function(t,e){return x.w(n.toDate()[t].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},y=this.$W,g=this.$M,m=this.$D,v="set"+(this.$u?"UTC":"");switch(l){case f:return r?h(1,0):h(31,11);case c:return r?h(1,g):h(0,g+1);case a:var b=this.$locale().weekStart||0,w=(y<b?y+7:y)-b;return h(r?m-w:m+(6-w),g);case s:case p:return d(v+"Hours",0);case u:return d(v+"Minutes",1);case i:return d(v+"Seconds",2);case o:return d(v+"Milliseconds",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,!1)},m.$set=function(t,e){var n,a=x.p(t),l="set"+(this.$u?"UTC":""),h=(n={},n[s]=l+"Date",n[p]=l+"Date",n[c]=l+"Month",n[f]=l+"FullYear",n[u]=l+"Hours",n[i]=l+"Minutes",n[o]=l+"Seconds",n[r]=l+"Milliseconds",n)[a],d=a===s?this.$D+(e-this.$W):e;if(a===c||a===f){var y=this.clone().set(p,1);y.$d[h](d),y.init(),this.$d=y.set(p,Math.min(this.$D,y.daysInMonth())).$d}else h&&this.$d[h](d);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[x.p(t)]()},m.add=function(r,l){var p,h=this;r=Number(r);var d=x.p(l),y=function(t){var e=j(h);return x.w(e.date(e.date()+Math.round(t*r)),h)};if(d===c)return this.set(c,this.$M+r);if(d===f)return this.set(f,this.$y+r);if(d===s)return y(1);if(d===a)return y(7);var g=(p={},p[i]=e,p[u]=n,p[o]=t,p)[d]||1,m=this.$d.getTime()+r*g;return x.w(m,this)},m.subtract=function(t,e){return this.add(-1*t,e)},m.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||h;var r=t||"YYYY-MM-DDTHH:mm:ssZ",o=x.z(this),i=this.$H,u=this.$m,s=this.$M,a=n.weekdays,c=n.months,l=n.meridiem,f=function(t,n,o,i){return t&&(t[n]||t(e,r))||o[n].slice(0,i)},p=function(t){return x.s(i%12||12,t,"0")},d=l||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(y,function(t,r){return r||function(t){switch(t){case"YY":return String(e.$y).slice(-2);case"YYYY":return x.s(e.$y,4,"0");case"M":return s+1;case"MM":return x.s(s+1,2,"0");case"MMM":return f(n.monthsShort,s,c,3);case"MMMM":return f(c,s);case"D":return e.$D;case"DD":return x.s(e.$D,2,"0");case"d":return String(e.$W);case"dd":return f(n.weekdaysMin,e.$W,a,2);case"ddd":return f(n.weekdaysShort,e.$W,a,3);case"dddd":return a[e.$W];case"H":return String(i);case"HH":return x.s(i,2,"0");case"h":return p(1);case"hh":return p(2);case"a":return d(i,u,!0);case"A":return d(i,u,!1);case"m":return String(u);case"mm":return x.s(u,2,"0");case"s":return String(e.$s);case"ss":return x.s(e.$s,2,"0");case"SSS":return x.s(e.$ms,3,"0");case"Z":return o}return null}(t)||o.replace(":","")})},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(r,p,h){var d,y=this,g=x.p(p),m=j(r),v=(m.utcOffset()-this.utcOffset())*e,b=this-m,w=function(){return x.m(y,m)};switch(g){case f:d=w()/12;break;case c:d=w();break;case l:d=w()/3;break;case a:d=(b-v)/6048e5;break;case s:d=(b-v)/864e5;break;case u:d=b/n;break;case i:d=b/e;break;case o:d=b/t;break;default:d=b}return h?d:x.a(d)},m.daysInMonth=function(){return this.endOf(c).$D},m.$locale=function(){return w[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=A(t,e,!0);return r&&(n.$L=r),n},m.clone=function(){return x.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},g}(),R=E.prototype;return j.prototype=R,[["$ms",r],["$s",o],["$m",i],["$H",u],["$W",s],["$M",c],["$y",f],["$D",p]].forEach(function(t){R[t[1]]=function(e){return this.$g(e,t[0],t[1])}}),j.extend=function(t,e){return t.$i||(t(e,E,j),t.$i=!0),j},j.locale=A,j.isDayjs=S,j.unix=function(t){return j(1e3*t)},j.en=w[b],j.Ls=w,j.p={},j}();const kc=Fc(_c.exports);function Dc(t,e,n){return e&&e.data?bc(e.data)["#/"+n]:null}function Ic(t,e,n){return new Function("scope","RW","dayjs","return "+n)(e,bc,kc)}const Mc={"@step":function(t,e){return function(t,e){return async(...n)=>{var r;for(let o of t){if("custom"===o.type){let t=null==(r=e.funcScope)?void 0:r[o.funcName],i=[];if(o.params)for(let r of o.params)i.push(Ic(0,e)(...n));"function"==typeof t&&t(...i)}if("eval"===o.type&&!1===Ic(o.value,e)(...n))return}}}(t["@step"],e)},"@json":function(t,e){return JSON.parse(t["@json"])}},Uc={},Lc={"@scope":Dc,"@dataScope":Dc,"@eval":Ic,"@funcEval":function(t,e,n){return new Function("scope","RW","dayjs",n)(e,bc,kc)},"@func":function(t,e,n){let r=new Function("scope","RW","dayjs","args",n);return(...t)=>r(e,bc,kc,t)},"@async":function(t,e,n){let r=new Function("scope","RW","dayjs","args",`return async function() {${n}}`);return(...t)=>r(e,bc,kc,t)()}},$c={};const Bc=qc({});function qc(t={}){const e=(e,n)=>function(t,e,{reservedDeepProperty:n,reservedKey:r,reservedProperty:o,reservedWord:i}){if(r.hasOwnProperty(e.key))return r[e.key](t,e);if("[object Object]"===Object.prototype.toString.call(t))for(let u in t){if(o.hasOwnProperty(u))return o[u](t,e);if(n.hasOwnProperty(u))return n[u](t,e)}if("string"==typeof t){let n=/^(@[a-zA-Z0-9]+)\/(.+)/.exec(t);if(n){const[r,o,u]=n;if(i.hasOwnProperty(o))return i[o](t,e,u)}}return t}(e,n,{reservedDeepProperty:Object.assign({},Uc,t.reservedDeepProperty),reservedKey:Object.assign({},$c,t.reservedKey),reservedProperty:Object.assign({},Mc,t.reservedProperty),reservedWord:Object.assign({},Lc,t.reservedWord)}),n=(e,n)=>function(t,e,{reservedDeepProperty:n,reservedKey:r,reservedProperty:o,reservedWord:i}){if(r.hasOwnProperty(e.key))return!0;if("[object Object]"===Object.prototype.toString.call(t))for(let u in t){if(o.hasOwnProperty(u)&&!(t.hasOwnProperty("@canDeep")||t.hasOwnProperty("@json")||t.hasOwnProperty("@stepV2")))return!0;if(o.hasOwnProperty(u)&&(t.hasOwnProperty("@canDeep")||t.hasOwnProperty("@json")||t.hasOwnProperty("@stepV2")))return"deep";n.hasOwnProperty(u)&&n[u](t,e)}if("string"==typeof t){let e=/^(@[a-zA-Z0-9]+)\/(.+)/.exec(t);if(e){const[t,n,r]=e;if(i.hasOwnProperty(n))return!0}}return!1}(e,n,{reservedDeepProperty:Object.assign({},Uc,t.reservedDeepProperty),reservedKey:Object.assign({},$c,t.reservedKey),reservedProperty:Object.assign({},Mc,t.reservedProperty),reservedWord:Object.assign({},Lc,t.reservedWord)});return(t,r)=>Sc(t,r,e,n)}t.Chain=function(t){return Oc(t)},t.DLS_CONFIG={TREE_ID:"id",TREE_PARENT_ID:"parentId",TREE_CHILDREN:"children"},t.Poll=class{constructor(){this.timer=null,this.func=()=>{},this.freq=1e3}init(){this.timer||(this.func(),this.timer=setInterval(()=>{this.func()},this.freq))}destroy(){clearInterval(this.timer),this.timer=null}},t.RW=bc,t.addFullscreenChangeListener=function(t){if("function"!=typeof t)return console.warn("dlsjs: addFullscreenChangeListener 参数必须是函数"),()=>{};const e="fullscreenchange"in document?"fullscreenchange":"webkitfullscreenchange"in document?"webkitfullscreenchange":"mozfullscreenchange"in document?"mozfullscreenchange":"MSFullscreenChange"in document?"MSFullscreenChange":null;if(!e)return console.warn("dlsjs: 当前浏览器不支持全屏变化事件"),()=>{};const n=()=>t(Ne());return document.addEventListener(e,n),()=>{document.removeEventListener(e,n)}},t.checkMust=Pc,t.checkShould=Nc,t.chooseFile=Se,t.chooseJsonObj=async function(){let t=await Se(),e=await xe(t[0]);return JSON.parse(e)},t.combine=Ec,t.combineArr=function(t){const e=[];for(let o of t)e.push(o.length);const n=Ec(e),r=[];for(let o of n){const e=[];for(let n in o){let r=o[n];e.push(Jr(t[n][r]))}r.push(e)}return r},t.copyText=function(t){return"string"!=typeof t?(console.warn("dlsjs: copyText 参数必须是字符串"),Promise.resolve(!1)):""===t?(console.warn("dlsjs: copyText 不能复制空字符串"),Promise.resolve(!1)):navigator.clipboard&&window.isSecureContext?navigator.clipboard.writeText(t).then(()=>!0).catch(e=>(console.error("dlsjs: 使用Clipboard API复制失败:",e),Ee(t))):Promise.resolve(Ee(t))},t.createMyTrans=qc,t.createSM=function(t){const e=new Cc(t);return new Proxy(e,{get:(t,e)=>Ar(t[e])?t.getSync(e):t[e]})},t.debounceAsync=function(t,e=100){let n=null;return function(...r){n&&clearTimeout(n),n=setTimeout(()=>{t(...r)},e)}},t.deepAssign=Ac,t.deepAssignArr=xc,t.deepConvert=Sc,t.deepDiff=function(t,e){let n={};return function t(e,r,o){for(let i in e)if(i in r)if("Object"===fn(e[i])&&"Object"===fn(r[i])||"Array"===fn(e[i])&&"Array"===fn(r[i])){let n="";n=""===o?`#/${i}/`:o+`${i}/`,t(e[i],r[i],n)}else e[i]!==r[i]&&(n[o+i]={left:e[i],right:r[i]});else n[o+i]={left:e[i],right:void 0};for(let i in r)i in e||(n[o+i]={left:void 0,right:r[i]})}(t,e,""),n},t.deepMerge=function t(e,n){if("[object Array]"===Object.prototype.toString.call(e))return e.length=0,void e.splice(0,0,...n);for(let r in e)n.hasOwnProperty(r)||delete e[r];for(let r in e)dn(e[r],n[r])||("[object Object]"===Object.prototype.toString.call(e[r])?t(e[r],n[r]):"[object Array]"===Object.prototype.toString.call(e[r])?(e[r].length=0,e[r].splice(0,0,...n[r])):e[r]=n[r]);for(let r in n)e.hasOwnProperty(r)||(e[r]=n[r])},t.dim2List=fc,t.dim2Tree=function(t,e,n){return ac(fc(t,e,n))},t.dlsjsTrans=Bc,t.downloadBlob=je,t.downloadByUrl=async function(t,e){je(await Ae(t,e),e)},t.downloadText=function(t,e){const n=new Blob([t],{type:"text/plain"}),r=document.createElement("a");r.href=URL.createObjectURL(n),r.download=e,r.style.position="fixed",r.style.top="-1000px",document.body.appendChild(r),r.click(),setTimeout(()=>{r.parentNode&&r.parentNode.removeChild(r),URL.revokeObjectURL(r.href)},100)},t.exitFullscreen=Pe,t.file2Json=xe,t.findLeaf=lc,t.forkProp=function(t,e,n){if(null==t||"object"!=typeof t)return console.warn("dlsjs: forkProp函数的第一个参数必须是对象类型"),null;if("string"!=typeof e||""===e.trim())return console.warn("dlsjs: forkProp函数的第二个参数必须是有效的字符串"),null;if("string"!=typeof n||""===n.trim())return console.warn("dlsjs: forkProp函数的第三个参数必须是有效的字符串"),null;let r=t;for(;null!==r&&"object"==typeof r;){if(r.hasOwnProperty(n))return r[n];if(!r.hasOwnProperty(e))break;r=r[e]}return null},t.getDeviceInfo=function(){const t=navigator.userAgent.toLowerCase(),e=window.innerWidth;let n="desktop",r="unknown";return/mobile|android|iphone|ipod/.test(t)?(n="mobile",/iphone|ipod/.test(t)?r="iphone":/android/.test(t)&&(r="android")):(/ipad/.test(t)||e<=1024&&e>768)&&(n="tablet",/ipad/.test(t)&&(r="ipad")),"desktop"===n&&e<=768&&(n="mobile"),{type:n,subType:r,screenWidth:e,screenHeight:window.innerHeight,pixelRatio:window.devicePixelRatio,userAgent:navigator.userAgent}},t.getFullscreenElement=function(){return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement||null},t.getTextWidth=function(t,e="14px"){let n,r=document.createElement("span");return r.innerText=t,r.style.fontSize=e,document.documentElement.append(r),n=r.offsetWidth,document.documentElement.removeChild(r),n},t.isClipboardSupported=Re,t.isFullscreenActive=Ne,t.isMobileDevice=function(){const t=/Mobile|Android|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),e=window.innerWidth<=768,n="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;return t||e&&n},t.isRangeIn=function(t,e){if("number"==typeof e&&(e=e.toString()),!e)return!1;if(!t&&0!==t)return!1;if(isNaN(t))return console.error('isRangeIn first param "value" is NaN'),!1;t=Number(t);let n=!1,r=!1,o=!1,i=!1;if(!isNaN(Number(e)))return t===Number(e);if(e.includes("{")&&e.includes("}")){return e.replace(/\{|}/g,"").split(",").map(t=>Number(t)).includes(t)}if(e.includes("&pow")){let n=e.replace(/(&pow)/g,"");return!!(t&Math.pow(2,Number(n)-1))}if(e.includes("&")){let n=e.replace(/(&)/g,"");return!!(t&Number(n))}let u=e.split(",");u[0].includes("[")&&(n=!0),u[1].includes("]")&&(r=!0);let s=u[0].replace(/\[|]|\(|\)/g,"")||-1/0,a=u[1].replace(/\[|]|\(|\)/g,"")||1/0;return o=n?t>=s:t>s,i=r?t<=a:t<a,i&&o},t.isType=function(t,e){let n=t.split(","),r=[];for(let o of n)r.push(Object.prototype.toString.call(e)===`[object ${o}]`);return r.includes(!0)},t.json2Blob=function(t){return new Blob([t])},t.lazyChange=function(t,e=100){let n=null;return new Proxy(t,{set:(t,r,o)=>(n?clearTimeout(n):t[r]=o,n=setTimeout(()=>{t[r]=o},e),!0)})},t.list2Tree=ac,t.localGet=function(t){const e=window.localStorage.getItem(t);try{return JSON.parse(window.localStorage.getItem(t))}catch(n){return e}},t.localRemove=function(t){window.localStorage.removeItem(t)},t.localSet=function(t,e){window.localStorage.setItem(t,JSON.stringify(e))},t.matchRules=Tc,t.movePanel=(t,e,n="drag-point")=>{t.preventDefault();const r=t.layerX,o=t.layerY,i=document.querySelector(e),u=i.offsetWidth,s=i.offsetHeight;document.onmousemove=t=>{a(t)},document.onmouseup=()=>{document.onmousemove=null,document.onmouseup=null};const a=t=>{const e=document.documentElement.clientWidth,a=document.documentElement.clientHeight;let c=t.clientX-r,l=t.clientY-o;switch(n){case"full":c=Math.max(0,Math.min(c,e-u)),l=Math.max(0,Math.min(l,a-s));break;case"drag-point":const t=c+r,n=l+o;t<0&&(c=-r),n<0&&(l=-o),t>e&&(c=e-r),n>a&&(l=a-o)}i.style.top=l+"px",i.style.left=c+"px"}},t.moveRelate=(t,e)=>{t.preventDefault();let n=t.pageX,r=t.pageY,o=parseInt(document.querySelector(e).style.left||"0"),i=parseInt(document.querySelector(e).style.top||"0");document.onmousemove=t=>{u(t)},document.onmouseup=()=>{document.onmousemove=null,document.onmouseup=null};const u=t=>{let u=t.pageX-n,s=t.pageY-r;document.querySelector(e).style.top=s+i+"px",document.querySelector(e).style.left=u+o+"px"}},t.queryDefinitionByRef=yc,t.readClipboardText=function(){return Re()?navigator.clipboard.readText().catch(t=>{throw console.error("dlsjs: 读取剪贴板失败:",t),t}):Promise.reject(new Error("dlsjs: 当前环境不支持剪贴板读取"))},t.requestFile=Ae,t.requestFullscreen=Te,t.requestJSON=function(t){return new Promise((e,n)=>{ie({method:"get",url:t,responseType:"json"}).then(t=>{e(t.data)}).catch(t=>{n(t.toString())})})},t.runTemplateString=function(t,e){let n,r=[...new Set([...Object.keys(e),...Rc(t)])],o=Object.values(e);for(let s=1;r.length>=o.length;s++)o.push("");try{n=new Function(...r,`return \`${t}\``)}catch(u){return console.warn(u),""}let i="";try{i=n(...o)}catch(u){return console.warn(u),""}return i},t.sessionGet=function(t){const e=window.sessionStorage.getItem(t);try{return JSON.parse(window.sessionStorage.getItem(t))}catch(n){return e}},t.sessionRemove=function(t){window.sessionStorage.removeItem(t)},t.sessionSet=function(t,e){window.sessionStorage.setItem(t,JSON.stringify(e))},t.setDefinitionByRef=gc,t.setParentIds4List=cc,t.shallowAssign=jc,t.shallowAssignArr=function t(e,n,r=null){for(let o in n)if("Object"===fn(n[o]))if(r instanceof Function){let t;for(let i=0;i<e.length;i++)if(t=r(e[i],n[o]),t){jc(e[i],n[o],r);break}t||e.push(n[o])}else Ar(e[o])?e.push(n[o]):jc(e[o],n[o],r);else"Array"===fn(n[o])&&"Array"===fn(e[o])?t(e[o],n[o],r):e[o]=n[o]},t.shallowRW=function(t){return new Proxy(t,mc)},t.throttleAsync=function(t,e=100){let n=0;return async function(...r){const o=Date.now();if(!(o-n<e))return n=o,await t(...r)}},t.toBase64=function(t){let e=encodeURI(t);return btoa(e)},t.toggleFullscreen=function(t=document.documentElement){return t&&t instanceof HTMLElement?Ne()?Pe():Te(t):(console.warn("dlsjs: toggleFullscreen 参数必须是有效的HTML元素"),!1)},t.tree2List=pc,t.treeCutLevel=function(t,e){if(t=hc(t),e<=0)return[];if(1===e)return t.map(t=>{const e={...t};return delete e.children,e});let n=[...t],r=[];for(let o=2;o<=e;o++){const t=[];for(const i of n)if(i.children&&i.children.length>0)if(o===e){const t=i.children.map(t=>{const e={...t};return delete e.children,e});r.push(...t)}else t.push(...i.children);if(n=t,0===n.length)break}return r},t.treeDel=function(t,e){if("function"!=typeof e)return console.warn("dlsjs: treeDel函数的第二个参数必须是函数类型"),[];const n=hc(t),r=[];for(let i=n.length-1;i>=0;i--)r.push({node:n[i],parentArray:n,index:i});const o=[];for(;r.length>0;){const{node:t,parentArray:n,index:i}=r.pop();if(e(t))o.push({node:t,parentArray:n,index:i});else if(t.children&&Array.isArray(t.children)&&t.children.length>0)for(let e=t.children.length-1;e>=0;e--)r.push({node:t.children[e],parentArray:t.children,index:e})}o.sort((t,e)=>t.parentArray===e.parentArray?e.index-t.index:0);for(const i of o){const{node:t,parentArray:e,index:n}=i;e.splice(n,1)[0]}return n},t.treeFilter=function(t,e){if("function"!=typeof e)return console.warn("dlsjs: treeFilter函数的第二个参数必须是函数类型"),[];const n=hc(t);if(0===n.length)return[];const r=pc(n);cc(r);const o=r.filter(e);if(0===o.length)return[];const i=new Set;for(let u=0;u<o.length;u++)i.add(o[u].id);for(let u=0;u<o.length;u++){const t=o[u]._parentIds||[];for(let e=0;e<t.length;e++)i.add(t[e])}return ac(r.filter(t=>i.has(t.id)))},t.treeFind=function(t,e){const n=[...hc(t)];for(;n.length>0;){const t=n.pop();if(e(t))return t;if((null==t?void 0:t.children)&&Array.isArray(t.children))for(let e=t.children.length-1;e>=0;e--)n.push(t.children[e])}return null},t.treeFindParent=function(t,e,n){const r=hc(t);if("function"!=typeof e)return null;const o=r.map(t=>({node:t,parent:n}));for(;o.length>0;){const{node:t,parent:n}=o.pop();if(e(t))return n;if(t.children&&Array.isArray(t.children))for(let e=t.children.length-1;e>=0;e--)o.push({node:t.children[e],parent:t})}return null},t.treeForEach=function(t,e){if("function"!=typeof e)return void console.warn("treeForEach: func 参数必须是函数类型");const n=[...hc(t)];for(;n.length>0;){const t=n.pop();if(e(t),t.children&&Array.isArray(t.children)&&t.children.length>0)for(let e=t.children.length-1;e>=0;e--)n.push(t.children[e])}},t.treeMap=function t(e,n){const r=hc(e);if("function"!=typeof n)return console.warn("treeMap: func 参数必须是函数类型"),r;const o=[];for(let i=0;i<r.length;i++){const e=r[i],u=n(e);e.children&&Array.isArray(e.children)&&e.children.length>0?o[i]={...u,children:t(e.children,n)}:o[i]=u}return o},t.waitMS=async function(t){return new Promise(e=>{setTimeout(e,t)})},t.waitValue=function(t,e=1e4,n=100){return new Promise((r,o)=>{let i=0,u=setInterval(()=>{i*n>e&&(clearInterval(u),o("等待超时")),t()&&(clearInterval(u),r(t())),i++},n)})},Object.defineProperty(t,Symbol.toStringTag,{value:"Module"})});
2
+ //# sourceMappingURL=dlsjs.umd.cjs.map