dlsjs 1.0.5 → 1.0.6

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
+ "use strict";function t(t,e){return function(){return t.apply(e,arguments)}}Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const{toString:e}=Object.prototype,{getPrototypeOf:n}=Object,{iterator:r,toStringTag:o}=Symbol,i=(t=>n=>{const r=e.call(n);return t[r]||(t[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),u=t=>(t=t.toLowerCase(),e=>i(e)===t),s=t=>e=>typeof e===t,{isArray:a}=Array,c=s("undefined");function l(t){return null!==t&&!c(t)&&null!==t.constructor&&!c(t.constructor)&&h(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const f=u("ArrayBuffer");const p=s("string"),h=s("function"),d=s("number"),y=t=>null!==t&&"object"==typeof t,g=t=>{if("object"!==i(t))return!1;const e=n(t);return!(null!==e&&e!==Object.prototype&&null!==Object.getPrototypeOf(e)||o in t||r in t)},m=u("Date"),v=u("File"),b=u("Blob"),w=u("FileList"),x=u("URLSearchParams"),[O,S,A,j]=["ReadableStream","Request","Response","Headers"].map(u);function E(t,e,{allOwnKeys:n=!1}={}){if(null==t)return;let r,o;if("object"!=typeof t&&(t=[t]),a(t))for(r=0,o=t.length;r<o;r++)e.call(null,t[r],r,t);else{if(l(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 R(t,e){if(l(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 T="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,P=t=>!c(t)&&t!==T;const N=(t=>e=>t&&e instanceof t)("undefined"!=typeof Uint8Array&&n(Uint8Array)),C=u("HTMLFormElement"),F=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),_=u("RegExp"),k=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};E(n,(n,o)=>{let i;!1!==(i=e(n,o,t))&&(r[o]=i||n)}),Object.defineProperties(t,r)};const D=u("AsyncFunction"),I=(M="function"==typeof setImmediate,U=h(T.postMessage),M?setImmediate:U?(L=`axios@${Math.random()}`,$=[],T.addEventListener("message",({source:t,data:e})=>{t===T&&e===L&&$.length&&$.shift()()},!1),t=>{$.push(t),T.postMessage(L,"*")}):t=>setTimeout(t));var M,U,L,$;const B="undefined"!=typeof queueMicrotask?queueMicrotask.bind(T):"undefined"!=typeof process&&process.nextTick||I,q={isArray:a,isArrayBuffer:f,isBuffer:l,isFormData:t=>{let e;return t&&("function"==typeof FormData&&t instanceof FormData||h(t.append)&&("formdata"===(e=i(t))||"object"===e&&h(t.toString)&&"[object FormData]"===t.toString()))},isArrayBufferView:function(t){let e;return e="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&f(t.buffer),e},isString:p,isNumber:d,isBoolean:t=>!0===t||!1===t,isObject:y,isPlainObject:g,isEmptyObject:t=>{if(!y(t)||l(t))return!1;try{return 0===Object.keys(t).length&&Object.getPrototypeOf(t)===Object.prototype}catch(e){return!1}},isReadableStream:O,isRequest:S,isResponse:A,isHeaders:j,isUndefined:c,isDate:m,isFile:v,isBlob:b,isRegExp:_,isFunction:h,isStream:t=>y(t)&&h(t.pipe),isURLSearchParams:x,isTypedArray:N,isFileList:w,forEach:E,merge:function t(){const{caseless:e,skipUndefined:n}=P(this)&&this||{},r={},o=(o,i)=>{const u=e&&R(r,i)||i;g(r[u])&&g(o)?r[u]=t(r[u],o):g(o)?r[u]=t({},o):a(o)?r[u]=o.slice():n&&c(o)||(r[u]=o)};for(let i=0,u=arguments.length;i<u;i++)arguments[i]&&E(arguments[i],o);return r},extend:(e,n,r,{allOwnKeys:o}={})=>(E(n,(n,o)=>{r&&h(n)?e[o]=t(n,r):e[o]=n},{allOwnKeys:o}),e),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,r,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!==r&&n(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},kindOf:i,kindOfTest:u,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(a(t))return t;let e=t.length;if(!d(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},forEachEntry:(t,e)=>{const n=(t&&t[r]).call(t);let o;for(;(o=n.next())&&!o.done;){const n=o.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:C,hasOwnProperty:F,hasOwnProp:F,reduceDescriptors:k,freezeMethods:t=>{k(t,(e,n)=>{if(h(t)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=t[n];h(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 a(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:R,global:T,isContextDefined:P,isSpecCompliantForm:function(t){return!!(t&&h(t.append)&&"FormData"===t[o]&&t[r])},toJSONObject:t=>{const e=new Array(10),n=(t,r)=>{if(y(t)){if(e.indexOf(t)>=0)return;if(l(t))return t;if(!("toJSON"in t)){e[r]=t;const o=a(t)?[]:{};return E(t,(t,e)=>{const i=n(t,r+1);!c(i)&&(o[e]=i)}),e[r]=void 0,o}}return t};return n(t,0)},isAsyncFn:D,isThenable:t=>t&&(y(t)||h(t))&&h(t.then)&&h(t.catch),setImmediate:I,asap:B,isIterable:t=>null!=t&&h(t[r])};function W(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)}q.inherits(W,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:q.toJSONObject(this.config),code:this.code,status:this.status}}});const z=W.prototype,H={};["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=>{H[t]={value:t}}),Object.defineProperties(W,H),Object.defineProperty(z,"isAxiosError",{value:!0}),W.from=(t,e,n,r,o,i)=>{const u=Object.create(z);q.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 W.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 J(t){return q.isPlainObject(t)||q.isArray(t)}function K(t){return q.endsWith(t,"[]")?t.slice(0,-2):t}function V(t,e,n){return t?t.concat(e).map(function(t,e){return t=K(t),!n&&e?"["+t+"]":t}).join(n?".":""):e}const Y=q.toFlatObject(q,{},null,function(t){return/^is[A-Z]/.test(t)});function X(t,e,n){if(!q.isObject(t))throw new TypeError("target must be an object");e=e||new FormData;const r=(n=q.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(t,e){return!q.isUndefined(e[t])})).metaTokens,o=n.visitor||c,i=n.dots,u=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&q.isSpecCompliantForm(e);if(!q.isFunction(o))throw new TypeError("visitor must be a function");function a(t){if(null===t)return"";if(q.isDate(t))return t.toISOString();if(q.isBoolean(t))return t.toString();if(!s&&q.isBlob(t))throw new W("Blob is not supported. Use a Buffer instead.");return q.isArrayBuffer(t)||q.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(q.endsWith(n,"{}"))n=r?n:n.slice(0,-2),t=JSON.stringify(t);else if(q.isArray(t)&&function(t){return q.isArray(t)&&!t.some(J)}(t)||(q.isFileList(t)||q.endsWith(n,"[]"))&&(s=q.toArray(t)))return n=K(n),s.forEach(function(t,r){!q.isUndefined(t)&&null!==t&&e.append(!0===u?V([n],r,i):null===u?n:n+"[]",a(t))}),!1;return!!J(t)||(e.append(V(o,n,i),a(t)),!1)}const l=[],f=Object.assign(Y,{defaultVisitor:c,convertValue:a,isVisitable:J});if(!q.isObject(t))throw new TypeError("data must be an object");return function t(n,r){if(!q.isUndefined(n)){if(-1!==l.indexOf(n))throw Error("Circular reference detected in "+r.join("."));l.push(n),q.forEach(n,function(n,i){!0===(!(q.isUndefined(n)||null===n)&&o.call(e,n,q.isString(i)?i.trim():i,r,f))&&t(n,r?r.concat(i):[i])}),l.pop()}}(t),e}function Z(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(t){return e[t]})}function G(t,e){this._pairs=[],t&&X(t,this,e)}const Q=G.prototype;function tt(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function et(t,e,n){if(!e)return t;const r=n&&n.encode||tt;q.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(i=o?o(e,n):q.isURLSearchParams(e)?e.toString():new G(e,n).toString(r),i){const e=t.indexOf("#");-1!==e&&(t=t.slice(0,e)),t+=(-1===t.indexOf("?")?"?":"&")+i}return t}Q.append=function(t,e){this._pairs.push([t,e])},Q.toString=function(t){const e=t?function(e){return t.call(this,e,Z)}:Z;return this._pairs.map(function(t){return e(t[0])+"="+e(t[1])},"").join("&")};class nt{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){q.forEach(this.handlers,function(e){null!==e&&t(e)})}}const rt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ot={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:G,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},it="undefined"!=typeof window&&"undefined"!=typeof document,ut="object"==typeof navigator&&navigator||void 0,st=it&&(!ut||["ReactNative","NativeScript","NS"].indexOf(ut.product)<0),at="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,ct=it&&window.location.href||"http://localhost",lt={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:it,hasStandardBrowserEnv:st,hasStandardBrowserWebWorkerEnv:at,navigator:ut,origin:ct},Symbol.toStringTag,{value:"Module"})),...ot};function ft(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&&q.isArray(r)?r.length:i,s)return q.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!u;r[i]&&q.isObject(r[i])||(r[i]=[]);return e(t,n,r[i],o)&&q.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(q.isFormData(t)&&q.isFunction(t.entries)){const n={};return q.forEachEntry(t,(t,r)=>{e(function(t){return q.matchAll(/\w+|\[(\w*)]/g,t).map(t=>"[]"===t[0]?"":t[1]||t[0])}(t),r,n,0)}),n}return null}const pt={transitional:rt,adapter:["xhr","http","fetch"],transformRequest:[function(t,e){const n=e.getContentType()||"",r=n.indexOf("application/json")>-1,o=q.isObject(t);o&&q.isHTMLForm(t)&&(t=new FormData(t));if(q.isFormData(t))return r?JSON.stringify(ft(t)):t;if(q.isArrayBuffer(t)||q.isBuffer(t)||q.isStream(t)||q.isFile(t)||q.isBlob(t)||q.isReadableStream(t))return t;if(q.isArrayBufferView(t))return t.buffer;if(q.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 X(t,new lt.classes.URLSearchParams,{visitor:function(t,e,n,r){return lt.isNode&&q.isBuffer(t)?(this.append(e,t.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...e})}(t,this.formSerializer).toString();if((i=q.isFileList(t))||n.indexOf("multipart/form-data")>-1){const e=this.env&&this.env.FormData;return X(i?{"files[]":t}:t,e&&new e,this.formSerializer)}}return o||r?(e.setContentType("application/json",!1),function(t,e,n){if(q.isString(t))try{return(e||JSON.parse)(t),q.trim(t)}catch(r){if("SyntaxError"!==r.name)throw r}return(n||JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){const e=this.transitional||pt.transitional,n=e&&e.forcedJSONParsing,r="json"===this.responseType;if(q.isResponse(t)||q.isReadableStream(t))return t;if(t&&q.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 W.from(o,W.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:lt.classes.FormData,Blob:lt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};q.forEach(["delete","get","head","post","put","patch"],t=>{pt.headers[t]={}});const ht=q.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"]),dt=Symbol("internals");function yt(t){return t&&String(t).trim().toLowerCase()}function gt(t){return!1===t||null==t?t:q.isArray(t)?t.map(gt):String(t)}function mt(t,e,n,r,o){return q.isFunction(r)?r.call(this,e,n):(o&&(e=n),q.isString(e)?q.isString(r)?-1!==e.indexOf(r):q.isRegExp(r)?r.test(e):void 0:void 0)}let vt=class{constructor(t){t&&this.set(t)}set(t,e,n){const r=this;function o(t,e,n){const o=yt(e);if(!o)throw new Error("header name must be a non-empty string");const i=q.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||e]=gt(t))}const i=(t,e)=>q.forEach(t,(t,n)=>o(t,n,e));if(q.isPlainObject(t)||t instanceof this.constructor)i(t,e);else if(q.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]&&ht[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(q.isObject(t)&&q.isIterable(t)){let n,r,o={};for(const e of t){if(!q.isArray(e))throw TypeError("Object iterator must return a key-value pair");o[r=e[0]]=(n=o[r])?q.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=yt(t)){const n=q.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(q.isFunction(e))return e.call(this,t,n);if(q.isRegExp(e))return e.exec(t);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=yt(t)){const n=q.findKey(this,t);return!(!n||void 0===this[n]||e&&!mt(0,this[n],n,e))}return!1}delete(t,e){const n=this;let r=!1;function o(t){if(t=yt(t)){const o=q.findKey(n,t);!o||e&&!mt(0,n[o],o,e)||(delete n[o],r=!0)}}return q.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&&!mt(0,this[o],o,t,!0)||(delete this[o],r=!0)}return r}normalize(t){const e=this,n={};return q.forEach(this,(r,o)=>{const i=q.findKey(n,o);if(i)return e[i]=gt(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]=gt(r),n[u]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return q.forEach(this,(n,r)=>{null!=n&&!1!==n&&(e[r]=t&&q.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[dt]=this[dt]={accessors:{}}).accessors,n=this.prototype;function r(t){const r=yt(t);e[r]||(!function(t,e){const n=q.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 q.isArray(t)?t.forEach(r):r(t),this}};function bt(t,e){const n=this||pt,r=e||n,o=vt.from(r.headers);let i=r.data;return q.forEach(t,function(t){i=t.call(n,i,o.normalize(),e?e.status:void 0)}),o.normalize(),i}function wt(t){return!(!t||!t.__CANCEL__)}function xt(t,e,n){W.call(this,null==t?"canceled":t,W.ERR_CANCELED,e,n),this.name="CanceledError"}function Ot(t,e,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?e(new W("Request failed with status code "+n.status,[W.ERR_BAD_REQUEST,W.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):t(n)}vt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),q.reduceDescriptors(vt.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(t){this[n]=t}}}),q.freezeMethods(vt),q.inherits(xt,W,{__CANCEL__:!0});const St=(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)},At=(t,e)=>{const n=null!=t;return[r=>e[0]({lengthComputable:n,total:t,loaded:r}),e[1]]},jt=t=>(...e)=>q.asap(()=>t(...e)),Et=lt.hasStandardBrowserEnv?((t,e)=>n=>(n=new URL(n,lt.origin),t.protocol===n.protocol&&t.host===n.host&&(e||t.port===n.port)))(new URL(lt.origin),lt.navigator&&/(msie|trident)/i.test(lt.navigator.userAgent)):()=>!0,Rt=lt.hasStandardBrowserEnv?{write(t,e,n,r,o,i,u){if("undefined"==typeof document)return;const s=[`${t}=${encodeURIComponent(e)}`];q.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),q.isString(r)&&s.push(`path=${r}`),q.isString(o)&&s.push(`domain=${o}`),!0===i&&s.push("secure"),q.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 Tt(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 Pt=t=>t instanceof vt?{...t}:t;function Nt(t,e){e=e||{};const n={};function r(t,e,n,r){return q.isPlainObject(t)&&q.isPlainObject(e)?q.merge.call({caseless:r},t,e):q.isPlainObject(e)?q.merge({},e):q.isArray(e)?e.slice():e}function o(t,e,n,o){return q.isUndefined(e)?q.isUndefined(t)?void 0:r(void 0,t,0,o):r(t,e,0,o)}function i(t,e){if(!q.isUndefined(e))return r(void 0,e)}function u(t,e){return q.isUndefined(e)?q.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(Pt(t),Pt(e),0,!0)};return q.forEach(Object.keys({...t,...e}),function(r){const i=a[r]||o,u=i(t[r],e[r],r);q.isUndefined(u)&&i!==s||(n[r]=u)}),n}const Ct=t=>{const e=Nt({},t);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:u,auth:s}=e;if(e.headers=u=vt.from(u),e.url=et(Tt(e.baseURL,e.url,e.allowAbsoluteUrls),t.params,t.paramsSerializer),s&&u.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),q.isFormData(n))if(lt.hasStandardBrowserEnv||lt.hasStandardBrowserWebWorkerEnv)u.setContentType(void 0);else if(q.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(lt.hasStandardBrowserEnv&&(r&&q.isFunction(r)&&(r=r(e)),r||!1!==r&&Et(e.url))){const t=o&&i&&Rt.read(i);t&&u.set(o,t)}return e},Ft="undefined"!=typeof XMLHttpRequest&&function(t){return new Promise(function(e,n){const r=Ct(t);let o=r.data;const i=vt.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=vt.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders());Ot(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 W("Request aborted",W.ECONNABORTED,t,y)),y=null)},y.onerror=function(e){const r=new W(e&&e.message?e.message:"Network Error",W.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||rt;r.timeoutErrorMessage&&(e=r.timeoutErrorMessage),n(new W(e,o.clarifyTimeoutError?W.ETIMEDOUT:W.ECONNABORTED,t,y)),y=null},void 0===o&&i.setContentType(null),"setRequestHeader"in y&&q.forEach(i.toJSON(),function(t,e){y.setRequestHeader(e,t)}),q.isUndefined(r.withCredentials)||(y.withCredentials=!!r.withCredentials),f&&"json"!==f&&(y.responseType=r.responseType),h&&([a,l]=St(h,!0),y.addEventListener("progress",a)),p&&y.upload&&([s,c]=St(p),y.upload.addEventListener("progress",s),y.upload.addEventListener("loadend",c)),(r.cancelToken||r.signal)&&(u=e=>{y&&(n(!e||e.type?new xt(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===lt.protocols.indexOf(m)?n(new W("Unsupported protocol "+m+":",W.ERR_BAD_REQUEST,t)):y.send(o||null)})},_t=(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 W?e:new xt(e instanceof Error?e.message:e))}};let i=e&&setTimeout(()=>{i=null,o(new W(`timeout ${e} of ms exceeded`,W.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=()=>q.asap(u),s}},kt=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},Dt=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()}},It=(t,e,n,r)=>{const o=async function*(t,e){for await(const n of Dt(t))yield*kt(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:Mt}=q,Ut=(({Request:t,Response:e})=>({Request:t,Response:e}))(q.global),{ReadableStream:Lt,TextEncoder:$t}=q.global,Bt=(t,...e)=>{try{return!!t(...e)}catch(n){return!1}},qt=t=>{t=q.merge.call({skipUndefined:!0},Ut,t);const{fetch:e,Request:n,Response:r}=t,o=e?Mt(e):"function"==typeof fetch,i=Mt(n),u=Mt(r);if(!o)return!1;const s=o&&Mt(Lt),a=o&&("function"==typeof $t?(t=>e=>t.encode(e))(new $t):async t=>new Uint8Array(await new n(t).arrayBuffer())),c=i&&s&&Bt(()=>{let t=!1;const e=new n(lt.origin,{body:new Lt,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),l=u&&s&&Bt(()=>q.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 W(`Response type '${t}' is not supported`,W.ERR_NOT_SUPPORT,n)})});const p=async(t,e)=>{const r=q.toFiniteNumber(t.getContentLength());return null==r?(async t=>{if(null==t)return 0;if(q.isBlob(t))return t.size;if(q.isSpecCompliantForm(t)){const e=new n(lt.origin,{method:"POST",body:t});return(await e.arrayBuffer()).byteLength}return q.isArrayBufferView(t)||q.isArrayBuffer(t)?t.byteLength:(q.isURLSearchParams(t)&&(t+=""),q.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}=Ct(t),x=e||fetch;m=m?(m+"").toLowerCase():"text";let O=_t([a,h&&h.toAbortSignal()],d),S=null;const A=O&&O.unsubscribe&&(()=>{O.unsubscribe()});let j;try{if(g&&c&&"get"!==u&&"head"!==u&&0!==(j=await p(v,s))){let t,e=new n(o,{method:"POST",body:s,duplex:"half"});if(q.isFormData(s)&&(t=e.headers.get("content-type"))&&v.setContentType(t),e.body){const[t,n]=At(j,St(jt(g)));s=It(e.body,65536,t,n)}}q.isString(b)||(b=b?"include":"omit");const e=i&&"credentials"in n.prototype,a={...w,signal:O,method:u.toUpperCase(),headers:v.normalize().toJSON(),body:s,duplex:"half",credentials:e?b:void 0};S=i&&new n(o,a);let h=await(i?x(S,w):x(o,a));const d=l&&("stream"===m||"response"===m);if(l&&(y||d&&A)){const t={};["status","statusText","headers"].forEach(e=>{t[e]=h[e]});const e=q.toFiniteNumber(h.headers.get("content-length")),[n,o]=y&&At(e,St(jt(y),!0))||[];h=new r(It(h.body,65536,n,()=>{o&&o(),A&&A()}),t)}m=m||"text";let E=await f[q.findKey(f,m)||"text"](h,t);return!d&&A&&A(),await new Promise((e,n)=>{Ot(e,n,{data:E,headers:vt.from(h.headers),status:h.status,statusText:h.statusText,config:t,request:S})})}catch(E){if(A&&A(),E&&"TypeError"===E.name&&/Load failed|fetch/i.test(E.message))throw Object.assign(new W("Network Error",W.ERR_NETWORK,t,S),{cause:E.cause||E});throw W.from(E,E&&E.code,t,S)}}},Wt=new Map,zt=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=Wt;for(;a--;)u=i[a],s=c.get(u),void 0===s&&c.set(u,s=a?new Map:qt(e)),c=s;return s};zt();const Ht={http:null,xhr:Ft,fetch:{get:zt}};q.forEach(Ht,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(n){}Object.defineProperty(t,"adapterName",{value:e})}});const Jt=t=>`- ${t}`,Kt=t=>q.isFunction(t)||null===t||!1===t;const Vt={getAdapter:function(t,e){t=q.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,!Kt(r)&&(o=Ht[(n=String(r)).toLowerCase()],void 0===o))throw new W(`Unknown adapter '${n}'`);if(o&&(q.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 W("There is no suitable adapter to dispatch the request "+(n?t.length>1?"since :\n"+t.map(Jt).join("\n"):" "+Jt(t[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return o},adapters:Ht};function Yt(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new xt(null,t)}function Xt(t){Yt(t),t.headers=vt.from(t.headers),t.data=bt.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1);return Vt.getAdapter(t.adapter||pt.adapter,t)(t).then(function(e){return Yt(t),e.data=bt.call(t,t.transformResponse,e),e.headers=vt.from(e.headers),e},function(e){return wt(e)||(Yt(t),e&&e.response&&(e.response.data=bt.call(t,t.transformResponse,e.response),e.response.headers=vt.from(e.response.headers))),Promise.reject(e)})}const Zt="1.13.2",Gt={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{Gt[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});const Qt={};Gt.transitional=function(t,e,n){function r(t,e){return"[Axios v"+Zt+"] Transitional option '"+t+"'"+e+(n?". "+n:"")}return(n,o,i)=>{if(!1===t)throw new W(r(o," has been removed"+(e?" in "+e:"")),W.ERR_DEPRECATED);return e&&!Qt[o]&&(Qt[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)}},Gt.spelling=function(t){return(e,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};const te={assertOptions:function(t,e,n){if("object"!=typeof t)throw new W("options must be an object",W.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 W("option "+i+" must be "+n,W.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new W("Unknown option "+i,W.ERR_BAD_OPTION)}},validators:Gt},ee=te.validators;let ne=class{constructor(t){this.defaults=t||{},this.interceptors={request:new nt,response:new nt}}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=Nt(this.defaults,e);const{transitional:n,paramsSerializer:r,headers:o}=e;void 0!==n&&te.assertOptions(n,{silentJSONParsing:ee.transitional(ee.boolean),forcedJSONParsing:ee.transitional(ee.boolean),clarifyTimeoutError:ee.transitional(ee.boolean)},!1),null!=r&&(q.isFunction(r)?e.paramsSerializer={serialize:r}:te.assertOptions(r,{encode:ee.function,serialize:ee.function},!0)),void 0!==e.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?e.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:e.allowAbsoluteUrls=!0),te.assertOptions(e,{baseUrl:ee.spelling("baseURL"),withXsrfToken:ee.spelling("withXSRFToken")},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase();let i=o&&q.merge(o.common,o[e.method]);o&&q.forEach(["delete","get","head","post","put","patch","common"],t=>{delete o[t]}),e.headers=vt.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=[Xt.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=Xt.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 et(Tt((t=Nt(this.defaults,t)).baseURL,t.url,t.allowAbsoluteUrls),t.params,t.paramsSerializer)}};q.forEach(["delete","get","head","options"],function(t){ne.prototype[t]=function(e,n){return this.request(Nt(n||{},{method:t,url:e,data:(n||{}).data}))}}),q.forEach(["post","put","patch"],function(t){function e(e){return function(n,r,o){return this.request(Nt(o||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}ne.prototype[t]=e(),ne.prototype[t+"Form"]=e(!0)});const re={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(re).forEach(([t,e])=>{re[e]=t});const oe=function e(n){const r=new ne(n),o=t(ne.prototype.request,r);return q.extend(o,ne.prototype,r,{allOwnKeys:!0}),q.extend(o,r,null,{allOwnKeys:!0}),o.create=function(t){return e(Nt(n,t))},o}(pt);oe.Axios=ne,oe.CanceledError=xt,oe.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 xt(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}}},oe.isCancel=wt,oe.VERSION=Zt,oe.toFormData=X,oe.AxiosError=W,oe.Cancel=oe.CanceledError,oe.all=function(t){return Promise.all(t)},oe.spread=function(t){return function(e){return t.apply(null,e)}},oe.isAxiosError=function(t){return q.isObject(t)&&!0===t.isAxiosError},oe.mergeConfig=Nt,oe.AxiosHeaders=vt,oe.formToJSON=t=>ft(q.isHTMLForm(t)?new FormData(t):t),oe.getAdapter=Vt.getAdapter,oe.HttpStatusCode=re,oe.default=oe;const{Axios:ie,AxiosError:ue,CanceledError:se,isCancel:ae,CancelToken:ce,VERSION:le,all:fe,Cancel:pe,isAxiosError:he,spread:de,toFormData:ye,AxiosHeaders:ge,HttpStatusCode:me,formToJSON:ve,getAdapter:be,mergeConfig:we}=oe;function xe(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 Oe(t,e){if(!e){const n=t.split("/");e=n[n.length-1]}return new Promise((n,r)=>{oe({method:"get",url:t,responseType:"arraybuffer"}).then(t=>{n(new File([t.data],e))}).catch(t=>{r(t.toString())})})}function Se(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 Ae(t){return new Promise(e=>{const n=new FileReader;n.readAsText(t),n.onload=function(t){e(t.target.result)}})}function je(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 Ee(){return!(!navigator.clipboard||!window.isSecureContext)}function Re(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 Te(){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 Pe(){return!!(document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement)}const Ne={"@@functional/placeholder":!0};function Ce(t){return null!=t&&"object"==typeof t&&!0===t["@@functional/placeholder"]}function Fe(t){return function e(n){return 0===arguments.length||Ce(n)?e:t.apply(this,arguments)}}function _e(t){return function e(n,r){switch(arguments.length){case 0:return e;case 1:return Ce(n)?e:Fe(function(e){return t(n,e)});default:return Ce(n)&&Ce(r)?e:Ce(n)?Fe(function(e){return t(e,r)}):Ce(r)?Fe(function(e){return t(n,e)}):t(n,r)}}}var ke=_e(function(t,e){return Number(t)+Number(e)});function De(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 Ie(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 Me(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&&(!Ce(e[u])||o>=arguments.length)?a=e[u]:(a=arguments[o],o+=1),r[u]=a,Ce(a)?s=!0:i-=1,u+=1}return!s&&i<=0?n.apply(this,r):Ie(Math.max(0,i),Me(t,r,n))}}var Ue=_e(function(t,e){return 1===t?Fe(e):Ie(t,Me(t,[],e))}),Le=Fe(function(t){return Ue(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,De(arguments,[e,r]));return e+=1,t},t.apply(this,o)})}),$e=Fe(function(t){return Ue(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,De(arguments,[r,n]));return r-=1,t},t.apply(this,o)})});function Be(t){return function e(n,r,o){switch(arguments.length){case 0:return e;case 1:return Ce(n)?e:_e(function(e,r){return t(n,e,r)});case 2:return Ce(n)&&Ce(r)?e:Ce(n)?_e(function(e,n){return t(e,r,n)}):Ce(r)?_e(function(e,r){return t(n,e,r)}):Fe(function(e){return t(n,r,e)});default:return Ce(n)&&Ce(r)&&Ce(o)?e:Ce(n)&&Ce(r)?_e(function(e,n){return t(e,n,o)}):Ce(n)&&Ce(o)?_e(function(e,n){return t(e,r,n)}):Ce(r)&&Ce(o)?_e(function(e,r){return t(n,e,r)}):Ce(n)?Fe(function(e){return t(e,r,o)}):Ce(r)?Fe(function(e){return t(n,e,o)}):Ce(o)?Fe(function(e){return t(n,r,e)}):t(n,r,o)}}}var qe=Be(function(t,e,n){var r=n.length;if(t>=r||t<-r)return n;var o=(r+t)%r,i=De(n);return i[o]=e(n[o]),i});const We=Array.isArray||function(t){return null!=t&&t.length>=0&&"[object Array]"===Object.prototype.toString.call(t)};function ze(t){return null!=t&&"function"==typeof t["@@transducer/step"]}function He(t,e,n){return function(){if(0===arguments.length)return n();var r=arguments[arguments.length-1];if(!We(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(ze(r))return e.apply(null,Array.prototype.slice.call(arguments,0,-1))(r)}return n.apply(this,arguments)}}function Je(t){return t&&t["@@transducer/reduced"]?t:{"@@transducer/value":t,"@@transducer/reduced":!0}}const Ke=function(){return this.xf["@@transducer/init"]()},Ve=function(t){return this.xf["@@transducer/result"](t)};var Ye=function(){function t(t,e){this.xf=e,this.f=t,this.all=!0}return t.prototype["@@transducer/init"]=Ke,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=Je(this.xf["@@transducer/step"](t,!1))),t},t}();function Xe(t){return function(e){return new Ye(t,e)}}var Ze=_e(He(["all"],Xe,function(t,e){for(var n=0;n<e.length;){if(!t(e[n]))return!1;n+=1}return!0}));function Ge(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}function Qe(t,e,n){for(var r=0,o=n.length;r<o;){if(t(e,n[r]))return!0;r+=1}return!1}function tn(t,e){return Object.prototype.hasOwnProperty.call(e,t)}const en="function"==typeof Object.is?Object.is:function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e};var nn=Object.prototype.toString,rn=function(){return"[object Arguments]"===nn.call(arguments)?function(t){return"[object Arguments]"===nn.call(t)}:function(t){return tn("callee",t)}}(),on=!{toString:null}.propertyIsEnumerable("toString"),un=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],sn=function(){return arguments.propertyIsEnumerable("length")}(),an=function(t,e){for(var n=0;n<t.length;){if(t[n]===e)return!0;n+=1}return!1},cn="function"!=typeof Object.keys||sn?Fe(function(t){if(Object(t)!==t)return[];var e,n,r=[],o=sn&&rn(t);for(e in t)!tn(e,t)||o&&"length"===e||(r[r.length]=e);if(on)for(n=un.length-1;n>=0;)tn(e=un[n],t)&&!an(r,e)&&(r[r.length]=e),n-=1;return r}):Fe(function(t){return Object(t)!==t?[]:Object.keys(t)}),ln=Fe(function(t){return null===t?"Null":void 0===t?"Undefined":Object.prototype.toString.call(t).slice(8,-1)});function fn(t,e,n,r){var o=Ge(t);function i(t,e){return pn(t,e,n.slice(),r.slice())}return!Qe(function(t,e){return!Qe(i,e,t)},Ge(e),o)}function pn(t,e,n,r){if(en(t,e))return!0;var o,i,u=ln(t);if(u!==ln(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||!en(t.valueOf(),e.valueOf()))return!1;break;case"Date":if(!en(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&&fn(t.entries(),e.entries(),n.concat([t]),r.concat([e]));case"Set":return t.size===e.size&&fn(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=cn(t);if(a.length!==cn(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(!tn(f,e)||!pn(e[f],t[f],c,l))return!1;s-=1}return!0}var hn=_e(function(t,e){return pn(t,e,[],[])});function dn(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(hn(t[n],e))return n;n+=1}return-1}function yn(t,e){return dn(e,t,0)>=0}function gn(t,e){for(var n=0,r=e.length,o=Array(r);n<r;)o[n]=t(e[n]),n+=1;return o}function mn(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 vn=function(t){return(t<10?"0":"")+t},bn="function"==typeof Date.prototype.toISOString?function(t){return t.toISOString()}:function(t){return t.getUTCFullYear()+"-"+vn(t.getUTCMonth()+1)+"-"+vn(t.getUTCDate())+"T"+vn(t.getUTCHours())+":"+vn(t.getUTCMinutes())+":"+vn(t.getUTCSeconds())+"."+(t.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function wn(t){return function(){return!t.apply(this,arguments)}}function xn(t,e,n){for(var r=0,o=n.length;r<o;)e=t(e,n[r]),r+=1;return e}function On(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 Sn(t){return"[object Object]"===Object.prototype.toString.call(t)}var An=function(){function t(t,e){this.xf=e,this.f=t}return t.prototype["@@transducer/init"]=Ke,t.prototype["@@transducer/result"]=Ve,t.prototype["@@transducer/step"]=function(t,e){return this.f(e)?this.xf["@@transducer/step"](t,e):t},t}();function jn(t){return function(e){return new An(t,e)}}var En=_e(He(["fantasy-land/filter","filter"],jn,function(t,e){return Sn(e)?xn(function(n,r){return t(e[r])&&(n[r]=e[r]),n},{},cn(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):On(t,e));var n})),Rn=_e(function(t,e){return En(wn(t),e)});function Tn(t,e){var n=function(n){var r=e.concat([t]);return yn(n,r)?"<Circular>":Tn(n,r)},r=function(t,e){return gn(function(e){return mn(e)+": "+n(t[e])},e.slice().sort())};switch(Object.prototype.toString.call(t)){case"[object Arguments]":return"(function() { return arguments; }("+gn(n,t).join(", ")+"))";case"[object Array]":return"["+gn(n,t).concat(r(t,Rn(function(t){return/^\d+$/.test(t)},cn(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):mn(bn(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())+")":mn(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,cn(t)).join(", ")+"}"}}var Pn=Fe(function(t){return Tn(t,[])}),Nn=_e(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=Pn(t),u=n(i,Pn(e));return void 0!==u&&u===i?t:e}),Cn=function(){function t(t,e){this.xf=e,this.f=t}return t.prototype["@@transducer/init"]=Ke,t.prototype["@@transducer/result"]=Ve,t.prototype["@@transducer/step"]=function(t,e){return this.xf["@@transducer/step"](t,this.f(e))},t}(),Fn=function(t){return function(e){return new Cn(t,e)}},_n=_e(He(["fantasy-land/map","map"],Fn,function(t,e){switch(Object.prototype.toString.call(e)){case"[object Function]":return Ue(e.length,function(){return t.call(this,e.apply(this,arguments))});case"[object Object]":return xn(function(n,r){return n[r]=t(e[r]),n},{},cn(e));default:return gn(t,e)}}));const kn=Number.isInteger||function(t){return(t|0)===t};function Dn(t,e){return e[t<0?e.length+t:t]}function In(t,e){if(null!=e)return kn(t)?Dn(t,e):e[t]}var Mn=_e(In),Un=_e(function(t,e){return _n(Mn(t),e)});function Ln(t){return"[object String]"===Object.prototype.toString.call(t)}var $n=Fe(function(t){return!!We(t)||!!t&&("object"==typeof t&&(!Ln(t)&&(0===t.length||t.length>0&&(t.hasOwnProperty(0)&&t.hasOwnProperty(t.length-1)))))}),Bn="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function qn(t,e,n){return function(r,o,i){if($n(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[Bn])return n(r,o,i[Bn]());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 Wn(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 zn=_e(function(t,e){return Ie(t.length,function(){return t.apply(e,arguments)})});function Hn(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 Jn(t,e,n,r){return t["@@transducer/result"](n[r](zn(t["@@transducer/step"],t),e))}var Kn=qn(Wn,Jn,Hn),Vn=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 Yn(t){return new Vn(t)}var Xn=Be(function(t,e,n){return Kn("function"==typeof t?Yn(t):t,e,n)}),Zn=Fe(function(t){return Ue(Xn(Nn,0,Un("length",t)),function(){for(var e=0,n=t.length;e<n;){if(!t[e].apply(this,arguments))return!1;e+=1}return!0})}),Gn=Fe(function(t){return function(){return t}}),Qn=_e(function(t,e){return t&&e}),tr=function(){function t(t,e){this.xf=e,this.f=t,this.any=!1}return t.prototype["@@transducer/init"]=Ke,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=Je(this.xf["@@transducer/step"](t,!0))),t},t}();function er(t){return function(e){return new tr(t,e)}}var nr=_e(He(["any"],er,function(t,e){for(var n=0;n<e.length;){if(t(e[n]))return!0;n+=1}return!1})),rr=Fe(function(t){return Ue(Xn(Nn,0,Un("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 or(t,e,n){for(var r=n.next();!r.done;)e=t(e,r.value),r=n.next();return e}function ir(t,e,n,r){return n[r](t,e)}var ur=qn(xn,ir,or),sr=_e(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))}:ur(function(t,n){return De(t,_n(n,e))},[],t)});function ar(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 cr=function(){function t(t,e){this.xf=e,this.pos=0,this.full=!1,this.acc=new Array(t)}return t.prototype["@@transducer/init"]=Ke,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 De(Array.prototype.slice.call(this.acc,this.pos),Array.prototype.slice.call(this.acc,0,this.pos))},t}();function lr(t){return function(e){return new cr(t,e)}}var fr=_e(He([],lr,ar)),pr=_e(function(t,e){return De(e,[t])}),hr=_e(function(t,e){return t.apply(this,e)}),dr=Fe(function(t){for(var e=cn(t),n=e.length,r=[],o=0;o<n;)r[o]=t[e[o]],o+=1;return r});function yr(t,e){return We(e)?e.map(t):cn(e).reduce(function(n,r){return n[r]=t(e[r]),n},{})}var gr=Fe(function t(e){return e=yr(function(e){return"function"==typeof e?e:t(e)},e),Ue(Xn(Nn,0,Un("length",dr(e))),function(){var t=arguments;return yr(function(e){return hr(e,t)},e)})}),mr=_e(function(t,e){return e(t)}),vr=Be(function(t,e,n){var r=t(e),o=t(n);return r<o?-1:r>o?1:0}),br=Fe(function(t){return Ue(t.length,t)}),wr=br(function(t,e,n,r){const o=e(n),i=e(r);return o.localeCompare(i,t,{numeric:!0})});function xr(t,e,n){if(kn(t)&&We(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 Or=Fe(function(t){return null==t}),Sr=Be(function t(e,n,r){if(0===e.length)return n;var o=e[0];if(e.length>1){var i=In(o,r);(Or(i)||"object"!=typeof i)&&(i=kn(e[1])?[]:{}),n=t(Array.prototype.slice.call(e,1),n,i)}return xr(o,n,r)}),Ar=Be(function(t,e,n){return Sr([t],e,n)}),jr=_e(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")}}),Er=Fe(function(t){return jr(2,t)});function Rr(t){var e=Object.prototype.toString.call(t);return"[object Function]"===e||"[object AsyncFunction]"===e||"[object GeneratorFunction]"===e||"[object AsyncGeneratorFunction]"===e}var Tr=_e(function(t,e){var n=Ue(t,e);return Ue(t,function(){return xn(sr,_n(n,arguments[0]),Array.prototype.slice.call(arguments,1))})}),Pr=Fe(function(t){return Tr(t.length,t)}),Nr=_e(function(t,e){return Rr(t)?function(){return t.apply(this,arguments)&&e.apply(this,arguments)}:Pr(Qn)(t,e)}),Cr=Fe(function(t){return t.apply(this,Array.prototype.slice.call(arguments,1))});function Fr(t){return function e(n){for(var r,o,i,u=[],s=0,a=n.length;s<a;){if($n(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 _r="@@transducer/init",kr="@@transducer/step",Dr="@@transducer/result",Ir=function(){function t(t){this.xf=t}return t.prototype[_r]=Ke,t.prototype[Dr]=Ve,t.prototype[kr]=function(t,e){var n=this.xf[kr](t,e);return n["@@transducer/reduced"]?{"@@transducer/value":n,"@@transducer/reduced":!0}:n},t}(),Mr=function(){function t(t){this.xf=new Ir(t)}return t.prototype[_r]=Ke,t.prototype[Dr]=Ve,t.prototype[kr]=function(t,e){return $n(e)?Kn(this.xf,t,e):Wn(this.xf,t,[e])},t}();function Ur(t){return function(e){return Fn(t)(function(t){return new Mr(t)}(e))}}const Lr=He(["fantasy-land/chain","chain"],Ur,function(t,e){return"function"==typeof e?function(n){return t(e(n))(n)}:Fr(!1)(_n(t,e))});var $r=_e(Lr),Br=Be(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 qr(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 Wr(t,e,n){if(n||(n=new zr),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?Wr(t[i],!0,n):t[i]);return r};switch(ln(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 qr(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 zr=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}(),Hr=Fe(function(t){return null!=t&&"function"==typeof t.clone?t.clone():Wr(t,!0)}),Jr=_e(function(t,e){var n=ur(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}),Kr=Fe(function(t){return function(e,n){return t(e,n)?-1:t(n,e)?1:0}}),Vr=Fe(function(t){return!t}),Yr=Pr(Vr);function Xr(t,e){return function(){return e.call(this,t.apply(this,arguments))}}function Zr(t,e){return function(){var n=arguments.length;if(0===n)return e();var r=arguments[n-1];return We(r)||"function"!=typeof r[t]?e.apply(this,arguments):r[t].apply(r,Array.prototype.slice.call(arguments,0,n-1))}}var Gr=Be(Zr("slice",function(t,e,n){return Array.prototype.slice.call(n,t,e)})),Qr=Fe(Zr("tail",Gr(1,1/0)));function to(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return Ie(arguments[0].length,Xn(Xr,arguments[0],Qr(arguments)))}var eo=Fe(function(t){return Ln(t)?t.split("").reverse().join(""):Array.prototype.slice.call(t,0).reverse()});function no(){if(0===arguments.length)throw new Error("compose requires at least one argument");return to.apply(this,eo(arguments))}var ro=Fe(function(t){return Dn(0,t)});function oo(t){return t}var io=Fe(oo),uo=_e(function(t,e){if(e.length<=0)return io;var n=ro(e),r=Qr(e);return Ie(n.length,function(){return ur(function(e,n){return t.call(this,n,e)},n.apply(this,arguments),r)})}),so=_e(function(t,e){return uo.apply(this,[t,eo(e)])}),ao=_e(function(t,e){if(We(t)){if(We(e))return t.concat(e);throw new TypeError(Pn(e)+" is not an array")}if(Ln(t)){if(Ln(e))return t+e;throw new TypeError(Pn(e)+" is not a string")}if(null!=t&&Rr(t["fantasy-land/concat"]))return t["fantasy-land/concat"](e);if(null!=t&&Rr(t.concat))return t.concat(e);throw new TypeError(Pn(t)+' does not have a method named "concat" or "fantasy-land/concat"')}),co=Fe(function(t){return Ie(Xn(Nn,0,_n(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}})}),lo=_e(function(t,e){if(t>10)throw new Error("Constructor with greater than ten arguments");return 0===t?function(){return new e}:br(jr(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)}}))}),fo=Fe(function(t){return lo(t.length,t)}),po=_e(function(t,e){return Ue(Xn(Nn,0,Un("length",e)),function(){var n=arguments,r=this;return t.apply(r,gn(function(t){return t.apply(r,n)},e))})}),ho=br(function(t,e){return ur(function(e,n){return t(n)?e+1:e},0,e)}),yo=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"]=Ke,t.prototype["@@transducer/result"]=function(t){var e;for(e in this.inputs)if(tn(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,Wr(this.valueAcc,!1)],this.inputs[n][1]=this.valueFn(this.inputs[n][1],e),t},t}();function go(t,e,n){return function(r){return new yo(t,e,n,r)}}var mo=Me(4,[],He([],go,function(t,e,n,r){var o=Yn(function(r,o){var i=n(o),u=t(tn(i,r)?r[i]:Wr(e,!1),o);return u&&u["@@transducer/reduced"]?Je(r):(r[i]=u,r)});return Kn(o,{},r)})),vo=mo(function(t,e){return t+1},0),bo=ke(-1),wo=_e(function(t,e){return null==e||e!=e?t:e}),xo=Be(function(t,e,n){var r=t(e),o=t(n);return r>o?-1:r<o?1:0}),Oo=br(function(t,e,n,r){const o=e(n);return e(r).localeCompare(o,t,{numeric:!0})}),So=function(){function t(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return t.prototype.add=function(t){return!Ao(t,!0,this)},t.prototype.has=function(t){return Ao(t,!1,this)},t}();function Ao(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?!!yn(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?!!yn(t,n._items[o])||(e&&n._items[o].push(t),!1):(e&&(n._items[o]=[t]),!1)}}var jo=_e(function(t,e){for(var n=[],r=0,o=t.length,i=e.length,u=new So,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}),Eo=Be(function(t,e,n){for(var r=[],o=0,i=e.length;o<i;)Qe(t,e[o],n)||Qe(t,e[o],r)||r.push(e[o]),o+=1;return r}),Ro=Be(function(t,e,n){var r=Array.prototype.slice.call(n,0);return r.splice(t,e),r});var To=_e(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(kn(t)&&We(e))return Ro(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(kn(t)&&We(e))return[].concat(e);var n={};for(var r in e)n[r]=e[r];return n}(r,n):Ar(r,t(o,n[r]),n)}}),Po=_e(function(t,e){return To([t],e)}),No=_e(function(t,e){return t/e}),Co=function(){function t(t,e){this.xf=e,this.n=t}return t.prototype["@@transducer/init"]=Ke,t.prototype["@@transducer/result"]=Ve,t.prototype["@@transducer/step"]=function(t,e){return this.n>0?(this.n-=1,t):this.xf["@@transducer/step"](t,e)},t}();function Fo(t){return function(e){return new Co(t,e)}}var _o=_e(He(["drop"],Fo,function(t,e){return Gr(Math.max(0,t),1/0,e)})),ko=function(){function t(t,e){this.xf=e,this.n=t,this.i=0}return t.prototype["@@transducer/init"]=Ke,t.prototype["@@transducer/result"]=Ve,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?Je(n):n},t}();function Do(t){return function(e){return new ko(t,e)}}var Io=_e(He(["take"],Do,function(t,e){return Gr(0,t<0?1/0:t,e)}));function Mo(t,e){return Io(t<e.length?e.length-t:0,e)}var Uo=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"]=Ke,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 Lo(t){return function(e){return new Uo(t,e)}}var $o=_e(He([],Lo,Mo));function Bo(t,e){for(var n=e.length-1;n>=0&&t(e[n]);)n-=1;return Gr(0,n+1,e)}var qo=function(){function t(t,e){this.f=t,this.retained=[],this.xf=e}return t.prototype["@@transducer/init"]=Ke,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=Kn(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 Wo(t){return function(e){return new qo(t,e)}}var zo=_e(He([],Wo,Bo)),Ho=function(){function t(t,e){this.xf=e,this.pred=t,this.lastValue=void 0,this.seenFirstValue=!1}return t.prototype["@@transducer/init"]=Ke,t.prototype["@@transducer/result"]=Ve,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 Jo(t){return function(e){return new Ho(t,e)}}var Ko=Fe(function(t){return Dn(-1,t)}),Vo=_e(He([],Jo,function(t,e){var n=[],r=1,o=e.length;if(0!==o)for(n[0]=e[0];r<o;)t(Ko(n),e[r])||(n[n.length]=e[r]),r+=1;return n})),Yo=Fe(He([],function(){return Jo(hn)},Vo(hn))),Xo=Be(function(t,e,n){return hn(t(e),t(n))}),Zo=_e(function(t,e){return He([],function(){return Jo(Xo(t))},Vo(Xo(t)))(e)}),Go=function(){function t(t,e){this.xf=e,this.f=t}return t.prototype["@@transducer/init"]=Ke,t.prototype["@@transducer/result"]=Ve,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 Qo(t){return function(e){return new Go(t,e)}}var ti=_e(He(["dropWhile"],Qo,function(t,e){for(var n=0,r=e.length;n<r&&t(e[n]);)n+=1;return Gr(n,1/0,e)})),ei=_e(function(t,e){return t||e}),ni=_e(function(t,e){return Rr(t)?function(){return t.apply(this,arguments)||e.apply(this,arguments)}:Pr(ei)(t,e)});var ri=Fe(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:We(t)?[]:Ln(t)?"":Sn(t)?{}:rn(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}),oi=_e(function(t,e){return _o(t>=0?e.length-t:0,e)}),ii=_e(function(t,e){return hn(oi(t.length,e),t)}),ui=Be(function(t,e,n){return hn(e[t],n[t])}),si=_e(function t(e,n){if(!Sn(n)&&!We(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}),ai=function(){function t(t,e){this.xf=e,this.f=t,this.found=!1}return t.prototype["@@transducer/init"]=Ke,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=Je(this.xf["@@transducer/step"](t,e))),t},t}();function ci(t){return function(e){return new ai(t,e)}}var li=_e(He(["find"],ci,function(t,e){for(var n=0,r=e.length;n<r;){if(t(e[n]))return e[n];n+=1}})),fi=function(){function t(t,e){this.xf=e,this.f=t,this.idx=-1,this.found=!1}return t.prototype["@@transducer/init"]=Ke,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=Je(this.xf["@@transducer/step"](t,this.idx))),t},t}();function pi(t){return function(e){return new fi(t,e)}}var hi=_e(He([],pi,function(t,e){for(var n=0,r=e.length;n<r;){if(t(e[n]))return n;n+=1}return-1})),di=function(){function t(t,e){this.xf=e,this.f=t}return t.prototype["@@transducer/init"]=Ke,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 yi(t){return function(e){return new di(t,e)}}var gi=_e(He([],yi,function(t,e){for(var n=e.length-1;n>=0;){if(t(e[n]))return e[n];n-=1}})),mi=function(){function t(t,e){this.xf=e,this.f=t,this.idx=-1,this.lastIdx=-1}return t.prototype["@@transducer/init"]=Ke,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 vi(t){return function(e){return new mi(t,e)}}var bi=_e(He([],vi,function(t,e){for(var n=e.length-1;n>=0;){if(t(e[n]))return n;n-=1}return-1})),wi=Fe(Fr(!0)),xi=Fe(function(t){return Ue(t.length,function(e,n){var r=Array.prototype.slice.call(arguments,0);return r[0]=n,r[1]=e,t.apply(this,r)})}),Oi=_e(function(t,e){return ur(mr,t,e)}),Si=_e(Zr("forEach",function(t,e){for(var n=e.length,r=0;r<n;)t(e[r]),r+=1;return e})),Ai=_e(function(t,e){for(var n=cn(e),r=0;r<n.length;){var o=n[r];t(e[o],o,e),r+=1}return e});function ji(t){for(var e={},n=0;n<t.length;)e[t[n][0]]=t[n][1],n+=1;return e}var Ei=Fe(ji),Ri=_e(Zr("groupBy",mo(function(t,e){return t.push(e),t},[]))),Ti=_e(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}),Pi=_e(function(t,e){return t>e}),Ni=_e(function(t,e){return t>=e}),Ci=_e(function(t,e){if(0===t.length||Or(e))return!1;for(var n=e,r=0;r<t.length;){if(Or(n)||!tn(t[r],n))return!1;n=n[t[r]],r+=1}return!0}),Fi=_e(function(t,e){return Ci([t],e)}),_i=_e(function(t,e){return!Or(e)&&t in e}),ki=function(t,e){switch(arguments.length){case 0:return ki;case 1:return function(){return function e(n){return 0===arguments.length?e:en(t,n)}}();default:return en(t,e)}},Di=Be(function(t,e,n){return Ue(Math.max(t.length,e.length,n.length),function(){return t.apply(this,arguments)?e.apply(this,arguments):n.apply(this,arguments)})}),Ii=ke(1),Mi=_e(yn),Ui=mo(function(t,e){return e},null),Li=_e(function(t,e){return"function"!=typeof e.indexOf||We(e)?dn(e,t,0):e.indexOf(t)}),$i=Gr(0,-1),Bi=Be(function(t,e,n){return On(function(e){return Qe(t,e,n)},e)}),qi=Be(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}),Wi=Be(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))}),zi=function(){function t(t,e){this.xf=e,this.f=t,this.set=new So}return t.prototype["@@transducer/init"]=Ke,t.prototype["@@transducer/result"]=Ve,t.prototype["@@transducer/step"]=function(t,e){return this.set.add(this.f(e))?this.xf["@@transducer/step"](t,e):t},t}();function Hi(t){return function(e){return new zi(t,e)}}var Ji=_e(He([],Hi,function(t,e){for(var n,r,o=new So,i=[],u=0;u<e.length;)n=t(r=e[u]),o.add(n)&&i.push(r),u+=1;return i})),Ki=Ji(io),Vi=_e(function(t,e){for(var n=new So,r=0;r<t.length;r+=1)n.add(t[r]);return Ki(On(n.has.bind(n),e))}),Yi=_e(Zr("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 Xi="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)tn(i,o)&&(e[i]=o[i]);n+=1}return e};var Zi=_e(function(t,e){var n={};return n[t]=e,n}),Gi={"@@transducer/init":Array,"@@transducer/step":function(t,e){return t.push(e),t},"@@transducer/result":oo},Qi={"@@transducer/init":String,"@@transducer/step":function(t,e){return t+e},"@@transducer/result":oo},tu={"@@transducer/init":Object,"@@transducer/step":function(t,e){return Xi(t,$n(e)?Zi(e[0],e[1]):e)},"@@transducer/result":oo};var eu=Be(function(t,e,n){var r=e(ze(t)?t:function(t){if(ze(t))return t;if($n(t))return Gi;if("string"==typeof t)return Qi;if("object"==typeof t)return tu;throw new Error("Cannot create transformer for "+t)}(t));return Kn(r,r["@@transducer/init"](),n)}),nu=Fe(function(t){for(var e=cn(t),n=e.length,r=0,o={};r<n;){var i=e[r],u=t[i],s=tn(u,o)?o[u]:o[u]=[];s[s.length]=i,r+=1}return o}),ru=Fe(function(t){for(var e=cn(t),n=e.length,r=0,o={};r<n;){var i=e[r];o[t[i]]=i,r+=1}return o}),ou=_e(function(t,e){return Ue(t+1,function(){var n=arguments[t];if(null!=n&&Rr(n[e]))return n[e].apply(n,Array.prototype.slice.call(arguments,0,t));throw new TypeError(Pn(n)+' does not have a method named "'+e+'"')})}),iu=_e(function(t,e){return e instanceof t||null!=e&&(e.constructor===t||"Object"===t.name&&"object"==typeof e)}),uu=Fe(function(t){return null!=t&&hn(t,ri(t))}),su=Fe(function(t){return!uu(t)}),au=Fe(function(t){return!Or(t)}),cu=ou(1,"join"),lu=Fe(function(t){return po(function(){return Array.prototype.slice.call(arguments,0)},t)}),fu=Fe(function(t){var e,n=[];for(e in t)n[n.length]=e;return n}),pu=_e(function(t,e){if("function"!=typeof e.lastIndexOf||We(e)){for(var n=e.length-1;n>=0;){if(hn(e[n],t))return n;n-=1}return-1}return e.lastIndexOf(t)});function hu(t){return"[object Number]"===Object.prototype.toString.call(t)}var du=Fe(function(t){return null!=t&&hu(t.length)?t.length:NaN}),yu=_e(function(t,e){return function(n){return function(r){return _n(function(t){return e(t,r)},n(t(r)))}}}),gu=Be(function(t,e,n){return qe(t,Gn(e),n)}),mu=Fe(function(t){return yu(function(e){return Dn(t,e)},gu(t))});function vu(t,e){for(var n=e,r=0;r<t.length;r+=1){if(null==n)return;var o=t[r];n=kn(o)?Dn(o,n):n[o]}return n}var bu=Fe(function(t){return yu(function(e){return vu(t,e)},Sr(t))}),wu=Fe(function(t){return yu(Mn(t),Ar(t))}),xu=_e(function(t,e){return t<e}),Ou=_e(function(t,e){return t<=e}),Su=Be(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]}),Au=Be(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 ju(t){var e=[];for(var n in t)tn(n,t)&&(e[e.length]=[n,t[n]]);return e}var Eu=function(t,e){return ji(Lr(function(e){return t(e[0],e[1])},ju(e)))},Ru=function(t,e){return Eu(function(e,n){return[[t(e),n]]},e)},Tu=_e(Ru),Pu=_e(function(t,e){return xn(function(n,r){return n[r]=t(e[r],r,e),n},{},cn(e))}),Nu=_e(function(t,e){return e.match(t)||[]}),Cu=_e(function(t,e){return kn(t)?!kn(e)||e<1?NaN:(t%e+e)%e:NaN}),Fu=Be(function(t,e,n){var r=t(n);return Nn(t(e),r)===r?n:e}),_u=Xn(ke,0),ku=Fe(function(t){return _u(t)/t.length}),Du=Fe(function(t){var e=t.length;if(0===e)return NaN;var n=2-e%2,r=(e-n)/2;return ku(Array.prototype.slice.call(t,0).sort(function(t,e){return t<e?-1:t>e?1:0}).slice(r,r+n))}),Iu=_e(function(t,e){var n={};return Ie(e.length,function(){var r=t.apply(this,arguments);return tn(r,n)||(n[r]=e.apply(this,arguments)),n[r]})}),Mu=Fe(function(t){return Xi.apply(null,[{}].concat(t))}),Uu=Be(function(t,e,n){var r,o={};for(r in n=n||{},e=e||{})tn(r,e)&&(o[r]=tn(r,n)?t(r,e[r],n[r]):e[r]);for(r in n)tn(r,n)&&!tn(r,o)&&(o[r]=n[r]);return o}),Lu=Be(function t(e,n,r){return Uu(function(n,r,o){return Sn(r)&&Sn(o)?t(e,r,o):e(n,r,o)},n,r)}),$u=_e(function(t,e){return Lu(function(t,e,n){return e},t,e)}),Bu=_e(function(t,e){return Lu(function(t,e,n){return n},t,e)}),qu=Be(function(t,e,n){return Lu(function(e,n,r){return t(n,r)},e,n)}),Wu=_e(function(t,e){return Xi({},e,t)}),zu=_e(function(t,e){return Xi({},t,e)}),Hu=Be(function(t,e,n){return Uu(function(e,n,r){return t(n,r)},e,n)}),Ju=_e(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=Pn(t),u=n(i,Pn(e));return void 0!==u?u===i?t:e:t}),Ku=Be(function(t,e,n){var r=t(n);return Ju(t(e),r)===r?n:e});var Vu=Be(function t(e,n,r){if(!Sn(r)&&!We(r))return r;if(0===e.length)return n(r);var o=e[0];if(!tn(o,r))return r;if(1===e.length)return function(t,e,n){if(kn(t)&&We(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:xr(o,i,r)}),Yu=Be(function(t,e,n){return Vu([t],e,n)}),Xu=_e(function(t,e){return t%e}),Zu=Be(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))}),Gu=_e(function(t,e){return t*e}),Qu=_e(function(t,e){return function(n){return t(Bu(e,n))}}),ts=Fe(function(t){return-t}),es=_e(function(t,e){return Ze(wn(t),e)}),ns=_e(Dn),rs=Fe(function(t){return Ue(t<0?1:t+1,function(){return Dn(t,arguments)})}),os=Be(function(t,e,n){return t(e(n))}),is=_e(function(t,e){return"function"==typeof t["fantasy-land/of"]?t["fantasy-land/of"](e):"function"==typeof t.of?t.of(e):[e]}),us=_e(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}),ss=Me(4,[],function(t,e,n,r){return t(e(n),e(r))}),as=Fe(function(t){var e,n=!1;return Ie(t.length,function(){return n?e:(n=!0,e=t.apply(this,arguments))})});function cs(t,e){if(null==e||!Rr(e.then))throw new TypeError("`"+t+"` expected a Promise, received "+Tn(e,[]))}var ls=_e(function(t,e){return cs("otherwise",e),e.then(null,t)}),fs=function(t){return{value:t,map:function(e){return fs(e(t))}}},ps=Be(function(t,e,n){return t(function(t){return fs(e(t))})(n).value}),hs=_e(function(t,e){return[t,e]});function ds(t){return _e(function(e,n){return Ie(Math.max(0,e.length-n.length),function(){return e.apply(this,t(n,arguments))})})}var ys=ds(De),gs=ds(xi(De)),ms=lu([En,Rn]),vs=_e(vu),bs=_e(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=kn(n)?Dn(n,r):r[n],o+=1}return r})}),ws=Be(function(t,e,n){return hn(vu(e,n),t)}),xs=Be(function(t,e,n){return wo(t,vu(e,n))}),Os=Be(function(t,e,n){return t(vu(e,n))}),Ss=_e(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}),As=_e(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}),js=_e(function(t,e){var n={};for(var r in e)t(e[r],r,e)&&(n[r]=e[r]);return n}),Es=_e(function(t,e){return De([t],e)}),Rs=Xn(Gu,1),Ts=_e(function(t,e){return Ue(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)))})}),Ps=Ts(gn,[As,io]);function Ns(t,e,n){return function(r){return e(n(t(r)))}}var Cs=function(){function t(t,e,n){this.xf=n,this.f=t,this.g=e}return t.prototype["@@transducer/init"]=Ke,t.prototype["@@transducer/result"]=Ve,t.prototype["@@transducer/step"]=function(t,e){return this.xf["@@transducer/step"](t,Ns(this.f,this.g,e))},t}();function Fs(t,e){return function(n){return new Cs(t,e,n)}}var _s=Be(He(["fantasy-land/promap","promap"],Fs,Ns)),ks=Be(function(t,e,n){return hn(t,Mn(e,n))}),Ds=Be(function(t,e,n){return iu(t,Mn(e,n))}),Is=Be(function(t,e,n){return wo(t,Mn(e,n))}),Ms=Be(function(t,e,n){return t(Mn(e,n))}),Us=_e(function(t,e){return t.map(function(t){return Mn(t,e)})}),Ls=_e(function(t,e){if(!hu(t)||!hu(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}),$s=_e(Eu),Bs=Be(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}),qs=Me(4,[],function(t,e,n,r){var o=Yn(function(n,r){return t(n,r)?e(n,r):Je(n)});return Kn(o,n,r)}),Ws=Fe(Je),zs=_e(function(t,e){return Ru(function(e){return tn(e,t)?t[e]:e},e)}),Hs=_e(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}),Js=_e(function(t,e){return Hs(Gn(t),e)}),Ks=Be(function(t,e,n){return n.replace(t,e)}),Vs="@@transducer/init",Ys="@@transducer/step",Xs=function(){function t(t,e,n){this.xf=n,this.f=t,this.acc=e}return t.prototype[Vs]=function(){return this.xf[Ys](this.xf[Vs](),this.acc)},t.prototype["@@transducer/result"]=Ve,t.prototype[Ys]=function(t,e){return t["@@transducer/reduced"]?t:(this.acc=this.f(this.acc,e),this.xf[Ys](t,this.acc))},t}(),Zs=Be(He([],Be(function(t,e,n){return new Xs(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})),Gs=_e(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,oo):"function"==typeof e.traverse?e.traverse(r,oo):Bs(function(t,e){return sr(_n(Es,t),e)},n([]),e)}),Qs=Be(function(t,e,n){return ps(t,Gn(e),n)}),ta=_e(function(t,e){return Array.prototype.slice.call(e,0).sort(t)}),ea=_e(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})}),na=_e(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})}),ra=ou(1,"split"),oa=_e(function(t,e){return[Gr(0,t,e),Gr(t,du(e),e)]}),ia=_e(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(Gr(r,r+=t,e));return n}),ua=_e(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)]}),sa=Me(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}),aa=_e(function(t,e){return hn(Io(t.length,e),t)}),ca=_e(function(t,e){return Number(t)-Number(e)}),la=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))},fa=Be(function(t,e,n){return We(n)?la(t,e,n):Ln(n)?function(t,e,n){var r=la(t,e,n);return We(r)?r.join(""):r}(t,e,n):function(t,e,n){var r=Hr(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)}),pa=_e(function(t,e){return ao(jo(t,e),jo(e,t))}),ha=Be(function(t,e,n){return ao(Eo(t,e,n),Eo(t,n,e))}),da=_e(function(t,e){for(var n=e.length-1;n>=0&&t(e[n]);)n-=1;return Gr(n+1,1/0,e)}),ya=function(){function t(t,e){this.xf=e,this.f=t}return t.prototype["@@transducer/init"]=Ke,t.prototype["@@transducer/result"]=Ve,t.prototype["@@transducer/step"]=function(t,e){return this.f(e)?this.xf["@@transducer/step"](t,e):Je(t)},t}();function ga(t){return function(e){return new ya(t,e)}}var ma=_e(He(["takeWhile"],ga,function(t,e){for(var n=0,r=e.length;n<r&&t(e[n]);)n+=1;return Gr(0,n,e)})),va=function(){function t(t,e){this.xf=e,this.f=t}return t.prototype["@@transducer/init"]=Ke,t.prototype["@@transducer/result"]=Ve,t.prototype["@@transducer/step"]=function(t,e){return this.f(e),this.xf["@@transducer/step"](t,e)},t}();function ba(t){return function(e){return new va(t,e)}}var wa=_e(He([],ba,function(t,e){return t(e),e}));var xa=_e(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 "+Pn(t));var n;return qr(t).test(e)}),Oa=_e(function(t,e){return cs("andThen",e),e.then(t)}),Sa=ou(0,"toLowerCase"),Aa=Fe(ju),ja=Fe(function(t){var e=[];for(var n in t)e[e.length]=[n,t[n]];return e}),Ea=ou(0,"toUpperCase"),Ra=Ue(4,function(t,e,n,r){return Kn(t("function"==typeof e?Yn(e):e),n,r)}),Ta=Fe(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}),Pa=Be(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):Gs(r,_n(e,n))}),Na="\t\n\v\f\r                 \u2028\u2029\ufeff",Ca=Fe("function"==typeof String.prototype.trim&&!Na.trim()&&"​".trim()?function(t){return t.trim()}:function(t){var e=new RegExp("^["+Na+"]["+Na+"]*"),n=new RegExp("["+Na+"]["+Na+"]*$");return t.replace(e,"").replace(n,"")}),Fa=_e(function(t,e){return Ie(t.length,function(){try{return t.apply(this,arguments)}catch(n){return e.apply(this,De([n],arguments))}})}),_a=Fe(function(t){return function(){return t(Array.prototype.slice.call(arguments,0))}}),ka=Fe(function(t){return jr(1,t)}),Da=_e(function(t,e){return Ue(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})}),Ia=_e(function(t,e){for(var n=t(e),r=[];n&&n.length;)r[r.length]=n[0],n=t(n[1]);return r}),Ma=_e(no(Ki,De)),Ua=function(){function t(t,e){this.xf=e,this.pred=t,this.items=[]}return t.prototype["@@transducer/init"]=Ke,t.prototype["@@transducer/result"]=Ve,t.prototype["@@transducer/step"]=function(t,e){return Qe(this.pred,e,this.items)?t:(this.items.push(e),this.xf["@@transducer/step"](t,e))},t}();function La(t){return function(e){return new Ua(t,e)}}var $a=_e(He([],La,function(t,e){for(var n,r=0,o=e.length,i=[];r<o;)Qe(t,n=e[r],i)||(i[i.length]=n),r+=1;return i})),Ba=Be(function(t,e,n){return $a(t,De(e,n))}),qa=Be(function(t,e,n){return t(n)?n:e(n)}),Wa=$r(oo),za=Be(function(t,e,n){for(var r=n;!t(r);)r=e(r);return r}),Ha=_e(function(t,e){return t in e&&We(e[t])?gn(function(n){return xr(t,n,e)},e[t]):[e]}),Ja=Fe(function(t){var e,n=[];for(e in t)n[n.length]=t[e];return n}),Ka=function(t){return{value:t,"fantasy-land/map":function(){return this}}},Va=_e(function(t,e){return t(Ka)(e).value}),Ya=Be(function(t,e,n){return t(n)?e(n):n}),Xa=_e(function(t,e){for(var n in t)if(tn(n,t)&&!t[n](e[n]))return!1;return!0}),Za=_e(function(t,e){for(var n in t)if(tn(n,t)&&t[n](e[n]))return!0;return!1}),Ga=_e(function(t,e){return Xa(_n(hn,t),e)}),Qa=_e(function(t,e){for(var n=new So,r=0;r<t.length;r+=1)n.add(t[r]);return Rn(n.has.bind(n),e)}),tc=_e(function(t,e){return Boolean(!t^!e)}),ec=_e(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}),nc=_e(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}),rc=_e(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}),oc=Be(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}),ic=Fe(function(t){return Ue(t.length,function(){var e=arguments;return function(){return t.apply(this,e)}})});const uc=Object.freeze(Object.defineProperty({__proto__:null,F:function(){return!1},T:function(){return!0},__:Ne,add:ke,addIndex:Le,addIndexRight:$e,adjust:qe,all:Ze,allPass:Zn,always:Gn,and:Qn,andThen:Oa,any:nr,anyPass:rr,ap:sr,aperture:fr,append:pr,apply:hr,applySpec:gr,applyTo:mr,ascend:vr,ascendNatural:wr,assoc:Ar,assocPath:Sr,binary:Er,bind:zn,both:Nr,call:Cr,chain:$r,clamp:Br,clone:Hr,collectBy:Jr,comparator:Kr,complement:Yr,compose:no,composeWith:so,concat:ao,cond:co,construct:fo,constructN:lo,converge:po,count:ho,countBy:vo,curry:br,curryN:Ue,dec:bo,defaultTo:wo,descend:xo,descendNatural:Oo,difference:jo,differenceWith:Eo,dissoc:Po,dissocPath:To,divide:No,drop:_o,dropLast:$o,dropLastWhile:zo,dropRepeats:Yo,dropRepeatsBy:Zo,dropRepeatsWith:Vo,dropWhile:ti,either:ni,empty:ri,endsWith:ii,eqBy:Xo,eqProps:ui,equals:hn,evolve:si,filter:En,find:li,findIndex:hi,findLast:gi,findLastIndex:bi,flatten:wi,flip:xi,flow:Oi,forEach:Si,forEachObjIndexed:Ai,fromPairs:Ei,groupBy:Ri,groupWith:Ti,gt:Pi,gte:Ni,has:Fi,hasIn:_i,hasPath:Ci,head:ro,identical:ki,identity:io,ifElse:Di,inc:Ii,includes:Mi,indexBy:Ui,indexOf:Li,init:$i,innerJoin:Bi,insert:qi,insertAll:Wi,intersection:Vi,intersperse:Yi,into:eu,invert:nu,invertObj:ru,invoker:ou,is:iu,isEmpty:uu,isNil:Or,isNotEmpty:su,isNotNil:au,join:cu,juxt:lu,keys:cn,keysIn:fu,last:Ko,lastIndexOf:pu,length:du,lens:yu,lensIndex:mu,lensPath:bu,lensProp:wu,lift:Pr,liftN:Tr,lt:xu,lte:Ou,map:_n,mapAccum:Su,mapAccumRight:Au,mapKeys:Tu,mapObjIndexed:Pu,match:Nu,mathMod:Cu,max:Nn,maxBy:Fu,mean:ku,median:Du,memoizeWith:Iu,mergeAll:Mu,mergeDeepLeft:$u,mergeDeepRight:Bu,mergeDeepWith:qu,mergeDeepWithKey:Lu,mergeLeft:Wu,mergeRight:zu,mergeWith:Hu,mergeWithKey:Uu,min:Ju,minBy:Ku,modify:Yu,modifyPath:Vu,modulo:Xu,move:Zu,multiply:Gu,nAry:jr,negate:ts,none:es,not:Vr,nth:ns,nthArg:rs,o:os,objOf:Zi,of:is,omit:us,on:ss,once:as,or:ei,otherwise:ls,over:ps,pair:hs,partial:ys,partialObject:Qu,partialRight:gs,partition:ms,path:vs,pathEq:ws,pathOr:xs,pathSatisfies:Os,paths:bs,pick:Ss,pickAll:As,pickBy:js,pipe:to,pipeWith:uo,pluck:Un,prepend:Es,product:Rs,project:Ps,promap:_s,prop:Mn,propEq:ks,propIs:Ds,propOr:Is,propSatisfies:Ms,props:Us,range:Ls,rebuild:$s,reduce:Xn,reduceBy:mo,reduceRight:Bs,reduceWhile:qs,reduced:Ws,reject:Rn,remove:Ro,renameKeys:zs,repeat:Js,replace:Ks,reverse:eo,scan:Zs,sequence:Gs,set:Qs,slice:Gr,sort:ta,sortBy:ea,sortWith:na,split:ra,splitAt:oa,splitEvery:ia,splitWhen:ua,splitWhenever:sa,startsWith:aa,subtract:ca,sum:_u,swap:fa,symmetricDifference:pa,symmetricDifferenceWith:ha,tail:Qr,take:Io,takeLast:oi,takeLastWhile:da,takeWhile:ma,tap:wa,test:xa,thunkify:ic,times:Hs,toLower:Sa,toPairs:Aa,toPairsIn:ja,toString:Pn,toUpper:Ea,transduce:Ra,transpose:Ta,traverse:Pa,trim:Ca,tryCatch:Fa,type:ln,unapply:_a,unary:ka,uncurryN:Da,unfold:Ia,union:Ma,unionWith:Ba,uniq:Ki,uniqBy:Ji,uniqWith:$a,unless:qa,unnest:Wa,until:za,unwind:Ha,update:gu,useWith:Ts,values:dr,valuesIn:Ja,view:Va,when:Ya,where:Xa,whereAny:Za,whereEq:Ga,without:Qa,xor:tc,xprod:ec,zip:nc,zipObj:rc,zipWith:oc},Symbol.toStringTag,{value:"Module"}));function sc(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 ac(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 cc(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 lc(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 Ji(t=>t.id,o)}function fc(t,e=[]){const n=[...pc(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 pc(t){let e=[];return Array.isArray(t)?e=t:"object"==typeof t&&null!==t&&(e=[t]),e}const hc={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++)Or(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++)Or(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]={}),Or(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)=>cc(e,n)}};function dc(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=hc[r];if(u&&u.get){o=u.get(o[t],o,t);continue}}o=o[t]}return o}function yc(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=dc(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=hc[n];i&&i.preSet&&(o=i.preSet(o,a,s))}if(n){const[t,e,r]=n;let i=hc[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 gc={get:(t,e)=>{let n;return n="string"==typeof e&&e.includes("#/")?dc(t,e):t[e],n},set:(t,e,n)=>"string"==typeof e&&e.includes("#/")?(yc(t,e,n),!0):(t[e]=n,!0)},mc={get:(t,e)=>{let n;return n="string"==typeof e&&e.includes("#/")?dc(t,e):t[e],["[object Object]","[object Array]"].includes(Object.prototype.toString.call(n))?new Proxy(n,mc):n},set:(t,e,n)=>"string"==typeof e&&e.includes("#/")?(yc(t,e,n),!0):(t[e]=n,!0)};function vc(t){return Or(t)?{}:new Proxy(t,mc)}const bc={get:function(t,e,n){if(!Or(t[e]))return iu(Function,t[e])?(...n)=>wc(t[e].call(t,...n)):wc(t[e]);if(uc[e]instanceof Function){let n;if(uc[e].length>1){const r=new Array(uc[e].length-1).fill(Ne);n=uc[e](...r,t)}else n=()=>uc[e](t);return(...t)=>wc(n(...t))}return t[e]}};function wc(t){return function(t){return["[object Object]","[object Array]"].includes(Object.prototype.toString.call(t))}(t)?new Proxy(t,bc):t}function xc(t,e,n,r){if("deep"===r(t,e))return xc(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]=xc(t[i],e,n,r);else{let u=xc(t[i],e,n,r);void 0!==u&&o.push(u)}return o}return t}function Oc(t={},e={},n=null,r=null){for(let o in e)t.hasOwnProperty(o)&&"Object"===ln(e[o])&&"Object"===ln(t[o])?Oc(t[o],e[o],n,r):t.hasOwnProperty(o)&&"Array"===ln(e[o])&&"Array"===ln(t[o])?Ac(t[o],e[o],n,r):t[o]=e[o];return t}function Sc(t={},e={},n=null){for(let r in e)t.hasOwnProperty(r)&&"Object"===ln(e[r])&&"Object"===ln(t[r])?Oc(t[r],e[r],n):t[r]=e[r];return t}function Ac(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"===ln(e[i])){if(r instanceof Function&&r(t,e)||!(n instanceof Function))Or(t[i])?t.push(e[i]):Oc(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){Oc(t[u],e[i],n,r);break}o||t.push(e[i])}}else"Array"===ln(e[i])&&"Array"===ln(t[i])?Ac(t[i],e[i],n,r):t[i]=e[i]}function jc(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=Hr(r);n.push(e.concat(t))}return n}}function Ec(t){const e=/\$\{([a-zA-Z0-9_]+)\}/g,n=[];let r;for(;null!==(r=e.exec(t));)n.push(r[1]);return n}function Rc(t,e){if(t.must)return Tc(t.must,e);if(t.should)return Pc(t.should,e);if(t.condition){let n=t.left,r=t.right;if(t.leftKey&&(n=vc(e)[t.leftKey]),t.rightKey&&(r=vc(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(ln(r))?null==r?void 0:r.includes(n):(console.error(`${r} is not String|Array`),!1);if("nin"===t.condition)return["String","Array"].includes(ln(r))?!(null==r?void 0:r.includes(n)):(console.error(`${r} is not String|Array`),!1);if("has"===t.condition)return["String","Array"].includes(ln(n))?null==n?void 0:n.includes(r):(console.error(`${n} is not String|Array`),!1);if("nhas"===t.condition)return["String","Array"].includes(ln(n))?!(null==n?void 0:n.includes(r)):(console.error(`${n} is not String|Array`),!1);if("notNull"===t.condition)return!Or(n)&&!uu(n);if("isNull"===t.condition)return Or(n)||uu(n);if("any"===t.condition)return!0}return!0}function Tc(t,e){let n=[];for(let r of t)n.push(Rc(r,e));return!n.includes(!1)}function Pc(t,e){let n=[];for(let r of t)n.push(Rc(r,e));return n.includes(!0)}class Nc{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 Cc(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Fc={exports:{}};const _c=Cc(Fc.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 x="$isDayjsObject",O=function(t){return t instanceof E||!(!t||!t[x])},S=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},A=function(t,e){if(O(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new E(n)},j=v;j.l=S,j.i=O,j.w=function(t,e){return A(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var E=function(){function g(t){this.$L=S(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[x]=!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(j.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 j},m.isValid=function(){return!(this.$d.toString()===h)},m.isSame=function(t,e){var n=A(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return A(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<A(t)},m.$g=function(t,e,n){return j.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=!!j.u(e)||e,l=j.p(t),h=function(t,e){var o=j.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 j.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=j.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[j.p(t)]()},m.add=function(r,l){var p,h=this;r=Number(r);var d=j.p(l),y=function(t){var e=A(h);return j.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 j.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=j.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 j.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 j.s(e.$y,4,"0");case"M":return s+1;case"MM":return j.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 j.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 j.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 j.s(u,2,"0");case"s":return String(e.$s);case"ss":return j.s(e.$s,2,"0");case"SSS":return j.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=j.p(p),m=A(r),v=(m.utcOffset()-this.utcOffset())*e,b=this-m,w=function(){return j.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:j.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=S(t,e,!0);return r&&(n.$L=r),n},m.clone=function(){return j.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 A.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])}}),A.extend=function(t,e){return t.$i||(t(e,E,A),t.$i=!0),A},A.locale=S,A.isDayjs=O,A.unix=function(t){return A(1e3*t)},A.en=w[b],A.Ls=w,A.p={},A}());function kc(t,e,n){return e&&e.data?vc(e.data)["#/"+n]:null}function Dc(t,e,n){return new Function("scope","RW","dayjs","return "+n)(e,vc,_c)}const Ic={"@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(Dc(0,e)(...n));"function"==typeof t&&t(...i)}if("eval"===o.type&&!1===Dc(o.value,e)(...n))return}}}(t["@step"],e)},"@json":function(t,e){return JSON.parse(t["@json"])}},Mc={},Uc={"@scope":kc,"@dataScope":kc,"@eval":Dc,"@funcEval":function(t,e,n){return new Function("scope","RW","dayjs",n)(e,vc,_c)},"@func":function(t,e,n){let r=new Function("scope","RW","dayjs","args",n);return(...t)=>r(e,vc,_c,t)},"@async":function(t,e,n){let r=new Function("scope","RW","dayjs","args",`return async function() {${n}}`);return(...t)=>r(e,vc,_c,t)()}},Lc={};const $c=Bc({});function Bc(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({},Mc,t.reservedDeepProperty),reservedKey:Object.assign({},Lc,t.reservedKey),reservedProperty:Object.assign({},Ic,t.reservedProperty),reservedWord:Object.assign({},Uc,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({},Mc,t.reservedDeepProperty),reservedKey:Object.assign({},Lc,t.reservedKey),reservedProperty:Object.assign({},Ic,t.reservedProperty),reservedWord:Object.assign({},Uc,t.reservedWord)});return(t,r)=>xc(t,r,e,n)}exports.Chain=function(t){return wc(t)},exports.DLS_CONFIG={TREE_ID:"id",TREE_PARENT_ID:"parentId",TREE_CHILDREN:"children"},exports.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}},exports.RW=vc,exports.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(Pe());return document.addEventListener(e,n),()=>{document.removeEventListener(e,n)}},exports.checkMust=Tc,exports.checkShould=Pc,exports.chooseFile=xe,exports.chooseJsonObj=async function(){let t=await xe(),e=await Ae(t[0]);return JSON.parse(e)},exports.combine=jc,exports.combineArr=function(t){const e=[];for(let o of t)e.push(o.length);const n=jc(e),r=[];for(let o of n){const e=[];for(let n in o){let r=o[n];e.push(Hr(t[n][r]))}r.push(e)}return r},exports.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),je(t))):Promise.resolve(je(t))},exports.createMyTrans=Bc,exports.createSM=function(t){const e=new Nc(t);return new Proxy(e,{get:(t,e)=>Or(t[e])?t.getSync(e):t[e]})},exports.debounceAsync=function(t,e=100){let n=null;return function(...r){n&&clearTimeout(n),n=setTimeout(()=>{t(...r)},e)}},exports.deepAssign=Oc,exports.deepAssignArr=Ac,exports.deepConvert=xc,exports.deepDiff=function(t,e){let n={};return function t(e,r,o){for(let i in e)if(i in r)if("Object"===ln(e[i])&&"Object"===ln(r[i])||"Array"===ln(e[i])&&"Array"===ln(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},exports.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)hn(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])},exports.dim2List=lc,exports.dim2Tree=function(t,e,n){return sc(lc(t,e,n))},exports.dlsjsTrans=$c,exports.downloadBlob=Se,exports.downloadByUrl=async function(t,e){Se(await Oe(t,e),e)},exports.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)},exports.exitFullscreen=Te,exports.file2Json=Ae,exports.findLeaf=cc,exports.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},exports.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}},exports.getFullscreenElement=function(){return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement||null},exports.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},exports.isClipboardSupported=Ee,exports.isFullscreenActive=Pe,exports.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},exports.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},exports.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)},exports.json2Blob=function(t){return new Blob([t])},exports.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)})},exports.list2Tree=sc,exports.localGet=function(t){const e=window.localStorage.getItem(t);try{return JSON.parse(window.localStorage.getItem(t))}catch(n){return e}},exports.localRemove=function(t){window.localStorage.removeItem(t)},exports.localSet=function(t,e){window.localStorage.setItem(t,JSON.stringify(e))},exports.matchRules=Rc,exports.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"}},exports.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"}},exports.queryDefinitionByRef=dc,exports.readClipboardText=function(){return Ee()?navigator.clipboard.readText().catch(t=>{throw console.error("dlsjs: 读取剪贴板失败:",t),t}):Promise.reject(new Error("dlsjs: 当前环境不支持剪贴板读取"))},exports.requestFile=Oe,exports.requestFullscreen=Re,exports.requestJSON=function(t){return new Promise((e,n)=>{oe({method:"get",url:t,responseType:"json"}).then(t=>{e(t.data)}).catch(t=>{n(t.toString())})})},exports.runTemplateString=function(t,e){let n,r=[...new Set([...Object.keys(e),...Ec(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},exports.sessionGet=function(t){const e=window.sessionStorage.getItem(t);try{return JSON.parse(window.sessionStorage.getItem(t))}catch(n){return e}},exports.sessionRemove=function(t){window.sessionStorage.removeItem(t)},exports.sessionSet=function(t,e){window.sessionStorage.setItem(t,JSON.stringify(e))},exports.setDefinitionByRef=yc,exports.setParentIds4List=ac,exports.shallowAssign=Sc,exports.shallowAssignArr=function t(e,n,r=null){for(let o in n)if("Object"===ln(n[o]))if(r instanceof Function){let t;for(let i=0;i<e.length;i++)if(t=r(e[i],n[o]),t){Sc(e[i],n[o],r);break}t||e.push(n[o])}else Or(e[o])?e.push(n[o]):Sc(e[o],n[o],r);else"Array"===ln(n[o])&&"Array"===ln(e[o])?t(e[o],n[o],r):e[o]=n[o]},exports.shallowRW=function(t){return new Proxy(t,gc)},exports.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)}},exports.toBase64=function(t){let e=encodeURI(t);return btoa(e)},exports.toggleFullscreen=function(t=document.documentElement){return t&&t instanceof HTMLElement?Pe()?Te():Re(t):(console.warn("dlsjs: toggleFullscreen 参数必须是有效的HTML元素"),!1)},exports.tree2List=fc,exports.treeCutLevel=function(t,e){if(t=pc(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},exports.treeDel=function(t,e){if("function"!=typeof e)return console.warn("dlsjs: treeDel函数的第二个参数必须是函数类型"),[];const n=pc(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},exports.treeFilter=function(t,e){if("function"!=typeof e)return console.warn("dlsjs: treeFilter函数的第二个参数必须是函数类型"),[];const n=pc(t);if(0===n.length)return[];const r=fc(n);ac(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 sc(r.filter(t=>i.has(t.id)))},exports.treeFind=function(t,e){const n=[...pc(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},exports.treeFindParent=function(t,e,n){const r=pc(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},exports.treeForEach=function(t,e){if("function"!=typeof e)return void console.warn("treeForEach: func 参数必须是函数类型");const n=[...pc(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])}},exports.treeMap=function t(e,n){const r=pc(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},exports.waitMS=async function(t){return new Promise(e=>{setTimeout(e,t)})},exports.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)})};
2
+ //# sourceMappingURL=dlsjs.cjs.js.map