UNPKG

@10yun/cv-js-utils

Version:

常用 js-utils 工具类库

2 lines (1 loc) 35 kB
(function(o,p){typeof exports=="object"&&typeof module<"u"?p(exports):typeof define=="function"&&define.amd?define(["exports"],p):(o=typeof globalThis<"u"?globalThis:o||self,p(o.cvUtils={}))})(this,(function(o){"use strict";function p(){for(var e=arguments.length||0,t=[],n=0;n<e;n++)t.push(...arguments[n]);return t}function te(e,t){var n=Array.prototype.slice.call(arguments),r=1,i,a=typeof n[n.length-1]=="boolean"?n.pop():!0;for(n.length===1&&(e=this,r=0);t=n[r++];)for(i in t)i in e?typeof t[i]=="object"&&typeof e[i]=="object"?e[i]=Object.assign(e[i],t[i]):typeof t[i]=="function"&&typeof e[i]=="function"&&(e[i]=t[i]):(a||!(i in e))&&(e[i]=t[i]);return e}function ne(e){for(var t=Array.prototype.slice.call(arguments,1),n=0;n<t.length;n+=1){var r=t[n];for(var i in r)r.hasOwnProperty(i)&&(e[i]=r[i])}return e}function re(e){let t=!1;return typeof e=="object"&&e.length>0&&(t=e[e.length-1]),t}function ie(e,t,n){var r=function(f){return function(d,h){var T=d[f],_=h[f];return T<_?-1:T>_?1:0}},i=e.sort(r(t));if(n=n||!1,n==!0){for(var a=[],u=0;u<26;u++){var c=String.fromCharCode(65+u),l=[];for(let f in i)c===i[f][t]&&i[f]!==void 0&&i[f]!==null&&l.push(i[f]);l!==void 0&&l.length>0&&a.push({letter:c,tree:l})}return a}else return i}function ae(e,t){var n=[];return n=e,e.forEach(function(r,i){for(var a in r){(r[a]=="true"||r[a]==!0)&&(n[i][a]=!0),(r[a]=="false"||r[a]==!1)&&(n[i][a]=!1);for(var u in initArr)a==u&&initArr[u]==="[]"&&(r[a]==""||r[a]==null)&&(n[i][a]=[])}}),n}function oe(e,t){for(s=0;s<e.length;s++)if(thisEntry=e[s].toString(),thisEntry==t)return!0;return!1}function ue(e,t,n=!1){return Array.isArray(t)?n?!!t.find(r=>r&&r.indexOf("*")&&new RegExp("^"+r.replace(/[-\/\\^$+?.()|[\]{}]/g,"\\$&").replace(/\*/g,".*")+"$","g").test(e)?!0:r==e):t.includes(e):!1}function se(e,t){return e.includes(t)}function ce(e,t){let n=[];return typeof t=="string"&&t.constructor==String&&(t=t.replace(/\s*/g,""),t=t.split(",")),e.forEach(function(r,i){n[i]={},t.map(function(a){n[i][a]="",r[a]!==void 0&&r[a]!==null&&(n[i][a]=r[a])})}),n}function le(e){return Array.from(new Set(e))}function fe(e){if(e)try{return e.length}catch{return 0}return 0}function de(e,t){return e.indexOf(t)!=-1}function he(e){if(Array.hasOwnProperty("from"))return Array.from(new Set(e));for(var t={},n=[],r=0;r<e.length;r++)t[e[r]]||(t[e[r]]=!0,n.push(e[r]));return n}function O(e=[],t={id:"id",pid:"pid",children:"children"}){let n=[],r={},i=[0,"0",void 0,"undefined",null,"null","00000000-0000-0000-0000-000000000000",""];return e.forEach(a=>{let u=e.filter(l=>l[t.pid]===a[t.id]);a[t.children]&&a[t.children]instanceof Array&&a[t.children].length>0?(a[t.children].map(l=>r[l[t.id]]=1),a[t.children].push(...u.filter(l=>r[l[t.id]]!==1))):a[t.children]=u;let c=u.length>0;(c||!c&&i.includes(a[t.pid]))&&n.push(a)}),n.every(a=>i.includes(a[t.pid]))?n:O(n,t)}function N(e=[],t="children"){return e.reduce((n,r)=>n.concat(r,r[t]?N(r[t],t):[]),[])}function $(e,t=""){return e.reduce((n,r)=>n.concat(r[t]||[],r[t]?$([r[t]],t):[]),[])}function ge(e=[]){let t=0;return(function n(r,i){++i,t=Math.max(i,t);for(let a=0;a<r.length;a++){let u=r[a];u.level=i,u.children&&u.children.length>0?n(u.children,i):delete u.children}})(e,0),t}function C(e=[],t,n="id",r="children"){return e.reduce((i,a)=>i.concat(a[n]==t?a:C(a[r]||[],t,n,r)),[])}function E(e,t,n){e[t]&&(n&&n(e[t]),E(e[t],t,n))}function I(e,t,n=1,r){let i=[];const a=Object.assign({ownPrimary:"",ownPrimaryValue:"",level:2,children:"tree"},t);return e.forEach(u=>{const c={...u};n>a.level||c[a.ownPrimary]==a.ownPrimaryValue||r===!0?c.disabled=!0:c.disabled=!1,c[a.children]&&c[a.children].length>0&&(c[a.children]=I(c[a.children],t,n*1+1,c.disabled)),i.push(c)}),i}function be(){if(P())return"edge";if(v())return"opera";if(B())return"firefox";if(R())return"weixin";if(L())return"safari";if(F())return"chrome"}function ye(e){const t=e||navigator.userAgent;return t.indexOf("MSIE")>=0&&t.indexOf("Opera")<0||t.indexOf("MSIE")>-1&&t.indexOf("compatible")>-1||t.indexOf("MSIE")>-1&&t.indexOf("Trident")>-1}function me(e){const t=e||navigator.userAgent;return t.indexOf("Trident")>-1&&t.indexOf("rv:11.0")>-1}function P(e){return(e||navigator.userAgent).indexOf("Edg")>-1}function F(e){return(e||navigator.userAgent).indexOf("Chrome")>-1}function v(e){const t=e||navigator.userAgent;return t.indexOf("Opera")>-1||t.indexOf("OPR")>-1}function B(e){return(e||navigator.userAgent).indexOf("Firefox")>-1}function L(e){const t=e||navigator.userAgent;return t.indexOf("Safari")>-1&&t.indexOf("Chrome")==-1&&t.indexOf("MicroMessenger")==-1}function pe(e){return(e||navigator.userAgent).indexOf("AppleWebKit")>-1}function R(){if(typeof window>"u"||!window)return!1;const e=window.navigator.userAgent.toLowerCase();return e.match(/MicroMessenger/i)=="micromessenger"||e.match(/MicroMessenger/i)+""=="micromessenger"||e.indexOf("MicroMessenger")>-1||e.match(/micromessenger/i)=="micromessenger"}function we(e){return(e||navigator.userAgent).match(/\sQQ/i)==" QQ"}function _e(e){const t=e||navigator.userAgent;return!!/Weibo/i.test(t)}function g(e){return e.replace(/\s+/g,"")}function Ae(e){let t=/^[0-9]{12,}$/;return e=e?g(e):"",t.test(e)}function Se(e){let t=/^[0-9]{6}$/;return e=e?g(e):"",t.test(e)}function De(e){const t=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/,n=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/;return e.length===7?n.test(e):e.length===8?t.test(e):!1}function Te(e){return/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/.test(e)}function Me(e){return e=e||"",e==""?!1:(e=e?g(e):"",e=parseInt(e),!!/^((13[0-9])|(14[5,7,9])|(15[^4])|(16[6])|(17[1,2,3,5,6,7,8])|(18[0-9])|(19[1,3,8,9]))+\d{8}$/.test(e))}function je(e){return!!/^[1-9][0-9]{4,9}$/.test(e)}function Oe(){return/<("[^"]*"|'[^']*'|[^'">])*>/.test(str)}function Ne(e){return/((?:(?:25[0-5]|2[0-4]\\d|[01]?\\d?\\d)\\.){3}(?:25[0-5]|2[0-4]\\d|[01]?\\d?\\d))/.test(e)}function $e(e){e=e?g(e):"";let t=/^([0-9]{3,4}-)?[0-9]{7,8}$/,n=/^0?1[3|4|5|8][0-9]\d{8}$/,r=/^400[0-9]{7}$/;return!!(n.test(e)||t.test(e)||r.test(e))}function Ce(e){return e=e?g(e):"",!!"/^http|https://([w-]+(.[w-]+)+(/[w-./?%@&+=一-龥]*)?)?$/".test(e)}function Ee(e){return e=e?g(e):"",!!"/^(w+://)?w+(.w+)+.*$/".test(e)}function Ie(e){return/[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF][\u200D|\uFE0F]|[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF]|[0-9|*|#]\uFE0F\u20E3|[0-9|#]\u20E3|[\u203C-\u3299]\uFE0F\u200D|[\u203C-\u3299]\uFE0F|[\u2122-\u2B55]|\u303D|[\A9|\AE]\u3030|\uA9|\uAE|\u3030/gi.test(e)}function Pe(e){return e=e?g(e):"",e.replace(/\s+/g,"")!=""}function Fe(e){switch(typeof e){case"undefined":return!0;case"string":if(e.replace(/(^[ \t\n\r]*)|([ \t\n\r]*$)/g,"").length==0)return!0;break;case"boolean":if(!e)return!0;break;case"number":if(e===0||isNaN(e))return!0;break;case"object":if(e===null||e.length===0)return!0;for(const t in e)return!1;return!0}return!1}function ve(e){return e==null||e==null||e==""}function Be(e){return/^\s*$/g.test(e.replace(/^\s+|\s+$/g,""))}function Le(e){for(let t in e)return!1;return!0}function A(e){return!!(e!==null&&e!=="null"&&e!==void 0&&e!=="undefined"&&e)}function Re(e){return!(e||typeof window<"u"&&window.navigator.userAgent).match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i)}function Ue(e){return!!(e||navigator.userAgent).match(/AppleWebKit.*Mobile.*/)}function ke(e){const t=e||navigator.userAgent;return!!t.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)||/iphone|ipad|ipod/i.test(t)}function He(e){return(e||navigator.userAgent).indexOf("iPhone")>-1}function Ze(e){return(e||navigator.userAgent).indexOf("iPad")>-1}function qe(e){const t=e||navigator.userAgent;return t.indexOf("Android")>-1||t.indexOf("android")>-1||t.indexOf("Adr")>-1}function Qe(){}function Ge(e,t=2){var n=`/^(([1-9]{1}\\d*)|(0{1}))(\\.\\d{1,${t}})?$/`;return n.test(e)}function ze(e){return/^[1-9]\d*(,\d{3})*(\.\d{1,2})?$|^0\.\d{1,2}$/.test(e)}function Je(e,t=6){var n=`/[0-9]{${t}}$/`;return n.test(e)}function Ye(e){return e.toString().search(/^[+-]?[0-9.]*$/)>=0}function We(e){let t=e.toString();return/^(?:-?\d+|-?\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(t)}function Ke(e){return Math.floor(e)===e}function Xe(e){if(e=="")return!1;var t=/^[1-9]\d*$/;return t.test(e)}function Ve(e){return/^[\d]{15}$/.test(e)||/^[\d]{17}([Xx\d]{1}$)$/.test(e)}function xe(e){var t=/^\d+(?=\.{0,1}\d+$|$)/;return!!t.test(e)}function et(e){return/[\u4e00-\u9fa5]+$/.test(e)}function tt(e){return/^[a-zA-Z\u4e00-\u9fa5]+([\u00b7\.\- ]?[a-zA-Z\u4e00-\u9fa5]+)*$/.test(e)}function nt(e){return/^[a-z0-9A-Z\u4e00-\u9fa5]+$/.test(e)}function rt(e){return/^[0-9a-zA-Z\u4e00-\u9fa5_-]+$/.test(e)}function it(e){return/^[\u4e00-\u9fa5]+[\u00b7\.]?[\u4e00-\u9fa5]+$/.test(e)}function at(e){return/^[0-9A-Za-z]+$/.test(e)}function ot(e,t){return e.charCodeAt(t)>255||e.charCodeAt(t)<0}function ut(e){return/^[a-z]+$/.test(e)}function st(e){return/^[A-Z]+$/.test(e)}function ct(e){return/^[a-zA-Z]\w{5,17}$/.test(e)}function lt(e){return Object.prototype.toString.call(e)==="[object Array]"}function ft(e){return Object.prototype.toString.call(e)==="[object Boolean]"}function dt(e){return Object.prototype.toString.call(e)==="[object Date]"}function ht(e){return!/Invalid|NaN/.test(new Date(e).toString())}function gt(e){return/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(e)}function bt(e){return Object.prototype.toString.call(e)==="[object Function]"}function yt(e){return Object.prototype.toString.call(e)==="[object Null]"}function mt(e){return Object.prototype.toString.call(e)==="[object Number]"}function pt(e){return Object.prototype.toString.call(e)==="[object Object]"}function wt(e){return Object.prototype.toString.call(e)==="[object String]"}function _t(e){return Object.prototype.toString.call(e)==="[object Symbol]"}function At(e){return Object.prototype.toString.call(e)==="[object Set]"}function St(e){return Object.prototype.toString.call(e)==="[object Error]"}function Dt(e){return Object.prototype.toString.call(e)==="[object Promise]"}function Tt(e){return Object.prototype.toString.call(e)==="[object Undefined]"}function Mt(e){return Object.prototype.toString.call(e)==="[object RegExp]"}function jt(e){try{JSON.parse(e)}catch{return!1}return!0}function Ot(e){return typeof e=="object"&&Object.prototype.toString.call(e).toLowerCase()=="[object object]"&&typeof e.length>"u"}const Nt=function(e){return{11:"北京",12:"天津",13:"河北",14:"山西",15:"内蒙古",21:"辽宁",22:"吉林",23:"黑龙江",31:"上海",32:"江苏",33:"浙江",34:"安徽",35:"福建",36:"江西",37:"山东",41:"河南",42:"湖北",43:"湖南",44:"广东",45:"广西",46:"海南",50:"重庆",51:"四川",52:"贵州",53:"云南",54:"西藏",61:"陕西",62:"甘肃",63:"青海",64:"宁夏",65:"新疆",71:"台湾",81:"香港",82:"澳门",91:"国外"}[parseInt(e.substr(0,2))]},$t=function(e){return/^\d{6}(18|19|20)?\d{2}(0[1-9]|1[012])(0[1-9]|[12]\d|3[01])\d{3}(\d|X)$/i.test(e)};function Ct(e){let t=e.split("");const n=[7,9,10,5,8,4,2,1,6,3,7,9,10,5,8,4,2,1],r=[1,0,10,9,8,7,6,5,4,3,2];let i=0;t[17].toLowerCase()=="x"&&(t[17]=10);for(let u=0;u<17;u++)i+=t[u]*n[u];let a=i%11;return t[17]==r[a]}function Et(e){let t=e.substring(6,10),n=e.substring(10,12),r=e.substring(12,14),i=new Date(t,parseFloat(n)-1,parseFloat(r));return!(i.getFullYear()!=parseFloat(t)||i.getMonth()!=parseFloat(n)-1||i.getDate()!=parseFloat(r))}function It(e){if(!e)return!1;e=(e+"").replace(/(^\s*)|(\s*$)/g,"");let t=e.match(/[^\x00-\xff]/g);return e.length+(t?t.length:0)!=18?!1:!!($t(e)&&Nt(e)&&Et(e)&&Ct(e))}function S(e){if(e instanceof Date)return e;if(typeof e!="string")return new Date(e);const t=e.trim().replace(/\//g,"-").replace(" ","T"),n=new Date(t);return isNaN(n)?new Date(e):n}function Pt(e,t,n){const r=S(t),i=S(n);if(isNaN(r)||isNaN(i))return!1;let a,u;if(typeof e=="string")if(/^\d{4}$/.test(e))a=new Date(`${e}-01-01T00:00:00`),u=new Date(`${e}-12-31T23:59:59`);else if(/^\d{4}-\d{2}$/.test(e)){const[c,l]=e.split("-").map(Number);a=new Date(c,l-1,1,0,0,0),u=new Date(c,l,0,23,59,59)}else if(/^\d{4}-\d{2}-\d{2}$/.test(e))a=new Date(`${e}T00:00:00`),u=new Date(`${e}T23:59:59`);else{const c=new Date(e);if(isNaN(c))return!1;a=c,u=c}else if(e instanceof Date)a=e,u=e;else return!1;return a>=r&&u<=i}function Ft(e,t,n){const r=S(t),i=S(n);if(isNaN(r)||isNaN(i))return!1;let a,u;if(/^\d{4}$/.test(e))a=new Date(`${e}-01-01T00:00:00`),u=new Date(`${e}-12-31T23:59:59`);else if(/^\d{4}-\d{2}$/.test(e)){const[c,l]=e.split("-").map(Number);a=new Date(c,l-1,1,0,0,0),u=new Date(c,l,0,23,59,59)}else if(/^\d{4}-\d{2}-\d{2}$/.test(e))a=new Date(`${e}T00:00:00`),u=new Date(`${e}T23:59:59`);else{const c=new Date(e);if(isNaN(c))return!1;a=c,u=c}return u>=r&&a<=i}function vt(e=""){return e?e.replace(/(^\s*)|(\s*$)/g,""):""}function Bt(e){return e?e.replace(/\s|\xA0/g,""):""}function Lt(e){return typeof e=="number"||typeof e=="string"?(e+"").length:0}function Rt(e,t,n){var r=strLen(e);return!(r<t||r>n)}function Ut(e){return e?e.replace(/↵/g,"<br/>"):""}function b(e,t,n=!1){return e+="",t+="",n!==!0&&(e=e.toLowerCase(),t=t.toLowerCase()),e.indexOf(t)!==-1}function U(e,t,n=!1){return e+="",t+="",n!==!0&&(e=e.toLowerCase(),t=t.toLowerCase()),e.substring(0,t.length)===t}function kt(e,t,n=!1){return e+="",t+="",U(e,t,n)&&(e=e.substring(t.length)),e||""}function D(e,t,n=!1){return e+="",t+="",n!==!0&&(e=e.toLowerCase(),t=t.toLowerCase()),e.substring(e.length-t.length)===t}function k(e,t,n=!1){return e+="",t+="",D(e,t,n)&&(e=e.substring(0,e.length-t.length)),e||""}function Ht(e,t){var n=e.length-t.length,r=e.substr(n,t.length);return r==t}function Zt(e){var t=parseInt(e),n=0,r=0,i=0;t>60&&(n=parseInt(t/60),t=parseInt(t%60),n>60&&(r=parseInt(n/60),n=parseInt(n%60),r>24&&(i=parseInt(r/24),r=parseInt(r%24))));var a="";return t>0&&(a=""+parseInt(t)+"秒"),n>0&&(a=""+parseInt(n)+"分"+a),r>0&&(a=""+parseInt(r)+"小时"+a),i>0&&(a=""+parseInt(i)+"天"+a),a}function qt(e,t,n){typeof t>"u"&&(t=H());let r=t-e;if(r>86400){let i=Math.floor(r/86400),a=Math.ceil((r-i*86400)/3600);return a>0?i+"天"+a+"小时":i+"天"}else return r>3600?Math.ceil(r/3600)+"小时":r>60?Math.ceil(r/60)+"分钟":r>10?r+"秒":"刚刚"}function Qt(e,t){let n=parseInt((t-e)/1e3),r=Math.floor(n/86400/365);n=n%(86400*365);let i=Math.floor(n/86400/30);n=n%(86400*30);let a=Math.floor(n/86400);n=n%86400;let u=Math.floor(n/3600);n=n%3600;let c=Math.floor(n/60);n=n%60;let l=n,f="";return r>0&&(f=r+"年"),r<=0&&i>0&&(f=i+"月"),r<=0&&i<=0&&a>0&&(f=a+"天"),r<=0&&i<=0&&a<=0&&u>0&&(f=u+"小时"),r<=0&&i<=0&&a<=0&&u<=0&&c>0&&(f=c+"分钟"),r<=0&&i<=0&&a<=0&&u<=0&&c<=0&&l>0&&(f+=l+"秒"),f+="前",f}function H(e=void 0){let t;return typeof e=="string"&&b(e,"-")?(e=e.replace(/-/g,"/"),t=new Date(e).getTime()):t=new Date().getTime(),Math.round(t/1e3)}function Gt(e=void 0,t=!0){let n;return typeof e=="string"&&b(e,"-")?(e=e.replace(/-/g,"/"),n=new Date(e).getTime(),t&&e.indexOf(".")===-1&&(n=parseInt(`${Math.round(n/1e3)}${new Date().getMilliseconds()}`))):n=new Date().getTime(),n}function Z(e,t=!1){return typeof e=="string"&&b(e,"-")&&(e=e.replace(/-/g,"/")),t===!0?Math.round(new Date(e).getTime()/1e3):new Date(e)}function w(e,t,n=!0){if(e+="",e.length>=t)return e;let r="",i="";for(let a=0;a<t;a++)r+="0";return n?(i=`${r}${e}`,i.substring(i.length-t)):(i=`${e}${r}`,i.substring(0,t))}function zt(e=void 0,t=void 0){(typeof e>"u"||e==="")&&(e="Y-m-d H:i:s");let n;if(t instanceof Date)n=t;else{if(typeof t>"u")t=new Date().getTime();else if(/^(-)?\d{1,10}$/.test(t))t=t*1e3;else if(/^(-)?\d{1,13}$/.test(t))t=t*1e3;else if(/^(-)?\d{1,14}$/.test(t))t=t*100;else if(/^(-)?\d{1,15}$/.test(t))t=t*10;else if(/^(-)?\d{1,16}$/.test(t))t=t*1;else return t;n=Z(t)}return e=e.replace(/Y/g,n.getFullYear()),e=e.replace(/m/g,w(n.getMonth()+1,2)),e=e.replace(/d/g,w(n.getDate(),2)),e=e.replace(/H/g,w(n.getHours(),2)),e=e.replace(/i/g,w(n.getMinutes(),2)),e=e.replace(/s/g,w(n.getSeconds(),2)),e}function Jt(e,t,n){return e?e.replace(new RegExp(t,"g"),n):""}function Yt(t){var t=t.toString();return t.indexOf(".")!=-1?t.replace(/(\d)(?=(\d{3})+\.)/g,function(n,r){return r+","}):t.replace(/(\d)(?=(\d{3}))/g,function(n,r){return r+","})}function Wt(e){return e?e.replace(/(\s)/g,"").replace(/(\d{4})/g,"$1 ").replace(/\s*$/,""):""}function Kt(e){return e?e.replace(/\s/g,"").replace(/(\d{4})\d+(\d{4})$/,"**** **** **** $2"):""}function Xt(e){return e?e.replace(/^(\d{3})\d{4}(\d+)/,"$1****$2"):""}function Vt(e){return e.length===11?e.replace(/^(\d{3})\d{4}(\d{4})$/,"$1****$2"):e}function xt(e){for(var t=new Array,n=0;n<e.length;n++);return e.charsArray=t,t}function en(e=""){return e.replace(/[\u4E00-\u9FA5]/g,"")}function tn(e,t,n){return e+="",A(n)||(n=e.length),e.substring(t,n)}function q(e,t=null,n=null){return e=e.toString(),A(t)&&b(e,t)&&(e=e.substring(e.indexOf(t)+t.length)),A(n)&&b(e,n)&&(e=e.substring(0,e.indexOf(n))),e}function nn(e=0){if(e=parseFloat(e),!isNaN(e)){e=Math.round(e*100);var t=e%100==0,n=["零","壹","贰","叁","肆","伍","陆","柒","捌","玖"],r=["分","角","元","拾","佰","仟","万","拾","佰","仟","亿","拾","佰","仟"],i="",a,u,c,l=0;if(e==0)return"零元整";e<0&&(i+="负",e=-e),e=e.toString(),c=e.length;for(var f=0;f<c;f++)a=parseInt(e.charAt(f)),u=c-1-f,a==0?u==2||u==6||u==11?(i+=r[u],l=0):l++:(l>0&&(i+="零",l=0),i=i+n[a]+r[u]);return t&&(i+="整"),i}}function rn(e=0){for(var t=new Array("零","一","二","三","四","五","六","七","八","九","十"),n=new Array("","十","百","仟","萬","億","点",""),r=(""+e).replace(/(^0*)/g,"").split("."),i=0,a="",u=r[0].length-1;u>=0;u--){switch(i){case 0:a=n[7]+a;break;case 4:new RegExp("0{4}//d{"+(r[0].length-u-1)+"}$").test(r[0])||(a=n[4]+a);break;case 8:a=n[5]+a,n[7]=n[5],i=0;break}i%4==2&&r[0].charAt(u+2)!=0&&r[0].charAt(u+1)==0&&(a=t[0]+a),r[0].charAt(u)!=0&&(a=t[r[0].charAt(u)]+n[i%4]+a),i++}if(r.length>1){a+=n[6];for(var u=0;u<r[1].length;u++)a+=t[r[1].charAt(u)]}return a=="一十"&&(a="十"),a.match(/^一/)&&a.length==3&&(a=a.replace("一","")),a}function an(e){return e==null?null:(typeof e=="number"&&(e=e.toString()),e.replace(/\B(?=(?:\d{3})+\b)/g,","))}function on(e){return parseFloat(e).toFixed(2).toString().split("").reverse().join("").replace(/(\d{3})/g,"$1,").replace(/\,$/,"").split("").reverse().join("")}function Q(e,t=null){let n=Number(e);if(n+""=="NaN"&&(n=0),t&&/^[0-9]*[1-9][0-9]*$/.test(t)&&(n=n.toFixed(t),n.indexOf(".")<0)){n+=".";for(let i=0;i<t;i++)n+="0"}return n}function un(e,t){let n,r=null;return t=t||500,function(){let i=this,a=arguments,u=+new Date;n&&u-n<t?(clearTimeout(r),r=setTimeout(()=>{n=u,e.apply(i,a)},t)):(n=u,e.apply(i,a))}}function sn(e,t){var n=null;return t=t||500,function(){let r=arguments,i=this;n!==null&&clearTimeout(n),n=setTimeout(()=>{n=null,e.apply(i,r)},t)}}function cn(e,t=500,n=!1){let r,i,a,u,c;const l=function(){const f=+new Date-u;f<t&&f>=0?r=setTimeout(l,t-f):(r=null,n||(c=e.apply(i,a),r||(i=a=null)))};return function(...f){i=this,a=f,u=+new Date;const d=n&&!r;return r||(r=setTimeout(l,t)),d&&(c=e.apply(i,a),i=a=null),c}}function ln(e){return typeof e!="object"||e===null?e:JSON.parse(JSON.stringify(e))}function G(e){var t=parseFloat(e[3]||1),n=Math.floor(t*parseInt(e[0])+(1-t)*255),r=Math.floor(t*parseInt(e[1])+(1-t)*255),i=Math.floor(t*parseInt(e[2])+(1-t)*255);return"#"+("0"+n.toString(16)).slice(-2)+("0"+r.toString(16)).slice(-2)+("0"+i.toString(16)).slice(-2)}function fn(){let e=Math.floor(Math.random()*256),t=Math.floor(Math.random()*256),n=Math.floor(Math.random()*256);return`rgb(${e},${t},${n})`}function dn(e,t,n){for(var r=1,i=1,a=1,u=e,c=0;c<n;c++)for(var l=0;l<t;l++)c==0?(r+=u[t*c+l],i+=u[t*c+l+1],a+=u[t*c+l+2]):(r+=u[(t*c+l)*4],i+=u[(t*c+l)*4+1],a+=u[(t*c+l)*4+2]);r/=t*n,i/=t*n,a/=t*n,r=Math.round(r),i=Math.round(i),a=Math.round(a);let f=[Math.round(r),Math.round(i),Math.round(a)];return G(f)}function z(e){var t,n;return e.indexOf("?")>-1?(t=e.split("?"),e=t[0]):e.indexOf("#")>-1&&(t=e.split("#"),e=t[0]),t=e.split("/"),e=t[t.length-1],t=e.lastIndexOf("."),n=t>-1?e.substr(t+1).toLowerCase():"",n}function hn(e){var t=e==""?"":z(e);return t=="jpg"||t=="jpeg"||t=="png"||t=="gif"||t=="bmp"?1:0}function gn(e,t,n="image/png"){return new Promise((r,i)=>{let a=new Image;a.src=e,a.onload=function(){let u=this,c=u.width,l=u.height,f=c/l;l>=t.height&&(l=t.height),c=l*f;let d=1,h=document.createElement("canvas"),T=h.getContext("2d"),_=document.createAttribute("width");_.nodeValue=c;let ee=document.createAttribute("height");ee.nodeValue=l,h.setAttributeNode(_),h.setAttributeNode(ee),T.drawImage(u,0,0,c,l),t.quality&&t.quality<=1&&t.quality>0&&(d=t.quality);let zn=h.toDataURL(n,d);r(zn)},a.onerror=()=>{i()}})}function bn(e){if(e===0)return"0 B";let t=1024,n=["B","KB","MB","GB","TB","PB","EB","ZB","YB"],r=Math.floor(Math.log(e)/Math.log(t));return typeof n[r]>"u"?"0 B":Q(e/Math.pow(t,r),2)+" "+n[r]}function J(e){for(var t=e.split(","),n=t[0].match(/:(.*?);/)[1],r=atob(t[1]),i=r.length,a=new Uint8Array(i);i--;)a[i]=r.charCodeAt(i);return new Blob([a],{type:n})}function Y(e,t){var n=new FileReader;n.onload=function(r){t(r.target.result)},n.readAsDataURL(e)}function yn({b64data:e="",contentType:t="",sliceSize:n=512}={}){return new Promise((r,i)=>{let a=atob(e),u=[];for(let l=0;l<a.length;l+=n){let f=a.slice(l,l+n),d=[];for(let h=0;h<f.length;h++)d.push(f.charCodeAt(h));u.push(new Uint8Array(d))}let c=new Blob(u,{type:t});c=Object.assign(c,{preview:URL.createObjectURL(c),name:"图片示例.png"}),r(c)})}function mn(e){var t=J(e),n="";return Y(t,function(r){n=r}),n}function pn(e,t,n,r,i=""){if(e==""||t=="")return"未知";var a=e*Math.PI/180,u=n*Math.PI/180,c=a-u,l=t*Math.PI/180-r*Math.PI/180,f=2*Math.asin(Math.sqrt(Math.pow(Math.sin(c/2),2)+Math.cos(a)*Math.cos(u)*Math.pow(Math.sin(l/2),2)));switch(f=f*6378.137,f=f.toFixed(2),i.toLowerCase()){case"km":f=f+"km";break;case"m":f=f*1e3,f=f<100?"<100m":f+"m";break;default:f>1?f=f+"km":(f=f*1e3,f=f<100?"<100m":f+"m")}return f}function wn(e,t,n){e=e||0,t=t||0;var r,i,a,u;try{r=e.toString().split(".")[1].length}catch{r=0}try{i=t.toString().split(".")[1].length}catch{i=0}if(u=Math.abs(r-i),a=Math.pow(10,Math.max(r,i)),u>0){var c=Math.pow(10,u);r>i?(e=Number(e.toString().replace(".","")),t=Number(t.toString().replace(".",""))*c):(e=Number(e.toString().replace(".",""))*c,t=Number(t.toString().replace(".","")))}else e=Number(e.toString().replace(".","")),t=Number(t.toString().replace(".",""));return n||n===0?((e+t)/a).toFixed(n):(e+t)/a}function _n(e,t,n){e=e||0,t=t||0;var r,i,a,u;try{r=e.toString().split(".")[1].length}catch{r=0}try{i=t.toString().split(".")[1].length}catch{i=0}return a=Math.pow(10,Math.max(r,i)),u=r>=i?r:i,n||n===0?((e*a-t*a)/a).toFixed(n):((e*a-t*a)/a).toFixed(u)}function An(e,t,n){e=e||0,t=t||0;var r=0,i=e.toString(),a=t.toString();try{r+=i.split(".")[1].length}catch{}try{r+=a.split(".")[1].length}catch{}return n||n===0?(Number(i.replace(".",""))*Number(a.replace(".",""))/Math.pow(10,r)).toFixed(n):Number(i.replace(".",""))*Number(a.replace(".",""))/Math.pow(10,r)}function Sn(e,t,n){var r=0,i=0,a,u;try{r=e.toString().split(".")[1].length}catch{}try{i=t.toString().split(".")[1].length}catch{}return a=Number(e.toString().replace(".","")),u=Number(t.toString().replace(".","")),n||n===0?(a/u*Math.pow(10,i-r)).toFixed(n):a/u*Math.pow(10,i-r)}function Dn(e,t){return t=t?parseInt(t):0,t<=0?Math.round(e):(e=Math.round(e*Math.pow(10,t))/Math.pow(10,t),e=Number(e).toFixed(t),e)}function Tn(e,t=[]){return Object.keys(e).sort().reduce(function(n,r){return t.includes(r)||(n[r]=e[r]),n},{})}function W(e,t){let n=e instanceof Object,r=t instanceof Object;if(!n||!r)return e===t;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let i in e)if(e.hasOwnProperty(i)){let a=e[i]instanceof Object,u=t[i]instanceof Object;if(a&&u){if(!W(e[i],t[i]))return!1}else if(e[i]!=t[i])return!1}return!0}function Mn(e,t){return t?t in e:Object.keys(e).length>0}function jn(){let e=new Date().getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(n){let r=(e+Math.random()*16)%16|0;return e=Math.floor(e/16),(n=="x"?r:r&3|8).toString(16)})}function On(e){e=e||32;let t="ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678oOLl9gqVvUuI1",n=t.length,r="";for(let i=0;i<e;i++)r+=t.charAt(Math.floor(Math.random()*n));return r}function Nn(e,t,n){let r="",i=t,a=[];e&&(i=Math.round(Math.random()*(n-t))+t);let u="";n=n||"",n==""&&(u=new Date().getTime());let c="";for(let l=0;l<i;l++)c=Math.round(Math.random()*(a.length-1)),r+=a[c];return r+u}function $n(e,t){let n=t-e,r=Math.random();return e+Math.round(r*n)}function Cn(e){let t=/http(s)?:\/\/([^\/]+)/i,n=(e+"").match(t);return n!=null&&n.length>0?n[2]:""}function En(e){let t=K();return typeof e>"u"?t:t[e]}function K(){let e=window.location.search||window.location.hash||"",t=[];b(e,"?")&&(t=q(e,"?").split("&"));let n={};for(let r=0;r<t.length;r++){let i=t[r].split("=");i.length===2&&(n[i[0]]=i[1])}return n}function M(e,t){if(t instanceof Array)return t.forEach(r=>{e=M(e,r)}),e;let n=e.split("?");if(n.length>=2){let r=encodeURIComponent(t)+"=",i=n[1].split(/[&;]/g);for(let a=i.length;a-- >0;)i[a].lastIndexOf(r,0)!==-1&&i.splice(a,1);return n[0]+(i.length>0?"?"+i.join("&"):"")}return e}function In(e,t){if(typeof t=="object"&&Object.prototype.toString.call(t).toLowerCase()=="[object object]"&&typeof t.length>"u"){e&&(e=M(e,Object.keys(t))),e+="",e+=e.indexOf("?")===-1?"?":"";for(let n in t)t.hasOwnProperty(n)&&(e+="&"+n+"="+t[n])}return k(e.replace("?&","?"),"?")}function Pn(e){var t=new RegExp("(^|&)"+e+"=([^&]*)(&|$)","i"),n=window.location.search.slice(1),r=n.match(t);if(r!=null)return decodeURIComponent(r[2]);let i=X();return i[e]?i[e]:null}function X(e){e=decodeURIComponent(e);let t={};const n=e.split("?")[1];if(!n)return{};const r=n.split("&");for(let i in r){const u=r[i].split("=");t[u[0]]=u[1]}return t}function Fn(e){return e+="",e=e.replace(/%/g,"%25").replace(/\+/g,"%2B").replace(/ /g,"%20").replace(/\//g,"%2F").replace(/\?/g,"%3F").replace(/&/g,"%26").replace(/\=/g,"%3D").replace(/#/g,"%23"),e}function vn(e,t=!1,n=!0){t=t||!1;let r=t?"?":"",i=[];for(let a in e){let u=e[a],c=`${a}=${Fn(u)}`;i.push(c)}return i.length?r+i.join("&"):""}function Bn(e,t){var n=t||{};for(var r in e){var i=e[r];i!==n&&(typeof i=="object"?n[r]=i.constructor===Array?[]:Object.create(i):n[r]=i)}return n}function V(e){let t;if(Object.prototype.toString.call(e)=="[object Array]"){t=[];for(let n in e)t.push(V(e[n]));return t}if(Object.prototype.toString.call(e)=="[object Object]"){t={};for(let n in e)t[n]=e[n];return t}}function Ln(e){if(typeof e!="object"||e===null)return e;if(typeof e.length=="number"){let[...t]=e;return t}else{let{...t}=e;return t}}function j(e){if(typeof e!="object"||e===null)return e;let t;if(Array.isArray(e)){t=[];for(let n=0;n<e.length;n++)t[n]=j(e[n])}else if(e instanceof Date)t=new Date(e.getTime());else if(e instanceof RegExp)t=new RegExp(e.source,e.flags);else{t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=j(e[n]))}return t}let y={},m={};function Rn(e){return new Promise(async(t,n)=>{let r=0;for(;m[e]==="loading";)if(await new Promise(a=>setTimeout(a,1e3)),r++,r>30)return n("加载超时");if(m[e]==="loaded")return t(!1);m[e]="loading";const i=document.createElement("link");i.readyState?i.onreadystatechange=()=>{(i.readyState=="loaded"||i.readyState=="complete")&&(i.onreadystatechange=null,m[e]="loaded",t(!0))}:(i.onload=()=>{m[e]="loaded",t(!0)},i.onerror=a=>{m[e]="error",n(a)}),i.rel="stylesheet",D(e,".css")?i.href=e+"?hash="+window.systemInfo.version:i.href=e,document.getElementsByTagName("head").item(0).appendChild(i)})}function Un(e,t){let n=document.createElement("script");n.type="text/javascript",n.readyState?n.onreadystatechange=()=>{(n.readyState==="loaded"||n.readyState==="complete")&&(n.onreadystatechange=null,t())}:n.onload=()=>{t()},n.src=e,document.body.appendChild(n)}function kn(){return!0}function Hn(e){return new Promise(async(t,n)=>{let r=0;for(;y[e]==="loading";)if(await new Promise(a=>setTimeout(a,1e3)),r++,r>30)return n("加载超时");if(y[e]==="loaded")return t(!1);y[e]="loading";const i=document.createElement("script");i.type="text/javascript",i.readyState?i.onreadystatechange=()=>{(i.readyState==="loaded"||i.readyState==="complete")&&(i.onreadystatechange=null,y[e]="loaded",t(!0))}:(i.onload=()=>{y[e]="loaded",t(!0)},i.onerror=a=>{y[e]="error",n(a)}),D(e,".js")?i.src=e+"?t="+new Date().getTime():i.src=e,document.body.appendChild(i)})}function Zn(e,t=0){return new Promise(async(n,r)=>{e=$A.originUrl(e);let i=0;for(;__load_iframe[e]==="loading";)if(await new Promise(u=>setTimeout(u,1e3)),i++,i>30)return r("加载超时");if(__load_iframe[e]==="loaded")return n(!1);__load_iframe[e]="loading";const a=document.createElement("iframe");a.style.display="none",a.src=e,a.onload=()=>{__load_iframe[e]="loaded",n(!0),t>0&&setTimeout(()=>{document.body.removeChild(a),delete __load_iframe[e]},t)},a.onerror=u=>{__load_iframe[e]="error",r(u)},document.body.appendChild(a)})}const qn=function(e,t){const n={"y+":e.getFullYear().toString(),"M+":(e.getMonth()+1).toString(),"d+":e.getDate().toString(),"h+":e.getHours().toString(),"m+":e.getMinutes().toString(),"s+":e.getSeconds().toString(),"q+":Math.floor((e.getMonth()+3)/3),S:e.getMilliseconds(),"w+":e.getDay(),"a+":e.getDay(),W:e.getDay(),GMT:e};for(const r in n){r=="W"&&(n[r]==0&&(n[r]="日"),n[r]==1&&(n[r]="一"),n[r]==2&&(n[r]="二"),n[r]==3&&(n[r]="三"),n[r]==4&&(n[r]="四"),n[r]==5&&(n[r]="五"),n[r]==6&&(n[r]="六"));const i=new RegExp("("+r+")").exec(t);i&&(t=t.replace(i[1],i[1].length===1?n[r]:n[r].padStart(i[1].length,"0")))}return t};class x{constructor(){let t=new Date;return this.dateObj=t,this._formatType="yyyy-MM-dd hh:mm:ss",this}setYear(t=0){return t==0||t==""||this.dateObj.setFullYear(this.dateObj.getFullYear()+t),this}setMonth(t=0){return t==0||t==""||this.dateObj.setMonth(this.dateObj.getMonth()+t),this}setDay(t=0){return t==0||t==""||this.dateObj.setDate(this.dateObj.getDate()+t),this}setTime(t){return t=t||"",t!=""&&(t.toString().length==10&&(t=parseInt(t)*1e3),this.dateObj.setTime(t)),this}init(t){return Object.prototype.toString.call(t)=="[object Number]"?this.setTime(t):(Object.prototype.toString.call(t)=="[object Date]"||Object.prototype.toString.call(t)=="[object String]")&&(this.dateObj=new Date(t)),this}format(t="yyyy-MM-dd hh:mm:ss"){return t=t||"",t!=""&&(this._formatType=t),this}_valToString(){return qn(this.dateObj,this._formatType)}_valToInt(){let t=this.dateObj.getTime();return t=parseInt(t)/1e3,t}_valToObject(){let t={year:this.dateObj.getFullYear(),month:this.dateObj.getMonth()+1,day:this.dateObj.getDate(),hour:this.dateObj.getHours(),minute:this.dateObj.getMinutes(),second:this.dateObj.getSeconds(),millisecond:this.dateObj.getMilliseconds(),quarter:Math.floor((this.dateObj.getMonth()+3)/3),week:this.dateObj.getDay(),week_cn:this.dateObj.getDay()};for(let n in t){let r=t[n];n!="y"&&(n==="a"||n=="week"?t[n]=r:n==="week_cn"?(r==0&&(t[n]="日"),r==1&&(t[n]="一"),r==2&&(t[n]="二"),r==3&&(t[n]="三"),r==4&&(t[n]="四"),r==5&&(t[n]="五"),r==6&&(t[n]="六")):t[n]=String(r<10?"0"+r:r))}return t}_valToArray(){}value(t){t=t||"string";let n;return t=="string"?n=this._valToString():t=="object"?n=this._valToObject():t=="int"&&(n=this._valToInt()),n}}function Qn(){return new x}function Gn(e){let t=0;const n=r=>{t=r,e.innerHTML=`count is ${t}`};e.addEventListener("click",()=>n(++t)),n(0)}o.LibsDate=Qn,o.LibsDateClass=x,o.amountRmoney=on,o.amountSplit3=an,o.amountToChinese=nn,o.amountToChinese2=rn,o.arrayConcat=p,o.arrayExtend=ne,o.arrayFilterColumns=ce,o.arrayInArray=ue,o.arrayInText=oe,o.arrayInValue=se,o.arrayLast=re,o.arrayLength=fe,o.arrayLetterSort=ie,o.arrayMixin=te,o.arrayParseType=ae,o.arrayToTree=O,o.arrayUnique=le,o.array_contains=de,o.array_unique=he,o.base64_to_blob=yn,o.base64_to_blobURL=mn,o.baseDebounce=sn,o.baseThrottle=un,o.blob_to_dataURL=Y,o.cascaderDisabled=I,o.cc_clone_object=ln,o.cc_date_format=zt,o.cc_date_new=Z,o.cc_date_time_in_scope=Pt,o.cc_date_time_overlap_scope=Ft,o.cc_debounce=cn,o.cc_is_empty=Fe,o.cc_time_diff=qt,o.cc_time_diff2=Qt,o.cc_time_ms=Gt,o.cc_time_new=H,o.cloneData=Ln,o.cloneDeep=j,o.colorRandomRgba=fn,o.colorRgbaToHexify=G,o.colorToImgRbg=dn,o.dataURL_to_blob=J,o.fileBytesToSize=bn,o.fileCheckImg=hn,o.fileGetExt=z,o.fileImgCompress=gn,o.geoCalcDistance=pn,o.hasDevice_internet=Qe,o.isBank=Ae,o.isBrowserType=be,o.isBrowser_chrome=F,o.isBrowser_edge=P,o.isBrowser_firefox=B,o.isBrowser_ie=ye,o.isBrowser_ie11=me,o.isBrowser_opera=v,o.isBrowser_qq=we,o.isBrowser_safari=L,o.isBrowser_webkit=pe,o.isBrowser_weibo=_e,o.isBrowser_weixin=R,o.isCarNo=De,o.isDateISO=gt,o.isDateformat=ht,o.isDecimal=Ge,o.isDecimal10=ze,o.isDevice_android=qe,o.isDevice_desktop=Re,o.isDevice_ios=ke,o.isDevice_ipad=Ze,o.isDevice_iphone=He,o.isDevice_mobile=Ue,o.isEmail=Te,o.isEmoji=Ie,o.isEmpty=ve,o.isEmptyObject=Le,o.isEmptyTrim=Be,o.isHave=A,o.isHtml=Oe,o.isIdCard=It,o.isIpv4=Ne,o.isLandline=$e,o.isMobile=Me,o.isNumCode=Je,o.isNumInt=Ke,o.isNumNumber=Ye,o.isNumNumber10=We,o.isNumPosi=Xe,o.isNumPosiID=Ve,o.isNumZS=xe,o.isPostal=Se,o.isRequire=Pe,o.isStrCHS=ot,o.isStrEN=it,o.isStrEnNum=at,o.isStrLower=ut,o.isStrPwd=ct,o.isStrUpper=st,o.isStrZENUM=rt,o.isStrZh=et,o.isStrZhEn=tt,o.isStrZhEnNum=nt,o.isTxQQ=je,o.isTypeArray=lt,o.isTypeBoolean=ft,o.isTypeDate=dt,o.isTypeError=St,o.isTypeFunction=bt,o.isTypeJson=Ot,o.isTypeJsonString=jt,o.isTypeNull=yt,o.isTypeNumber=mt,o.isTypeObj=pt,o.isTypePromise=Dt,o.isTypeRegExp=Mt,o.isTypeSet=At,o.isTypeString=wt,o.isTypeSymbol=_t,o.isTypeUndefined=Tt,o.isUrl=Ee,o.isUrlHttp=Ce,o.loadCssPromise=Rn,o.loadIframePromise=Zn,o.loadScript=Un,o.loadScriptPromise=Hn,o.loadScriptSync=kn,o.numberAccAdd=wn,o.numberAccDiv=Sn,o.numberAccMul=An,o.numberAccSub=_n,o.numberRound=Dn,o.objDeepClone=Bn,o.objDeepCopy=V,o.objectEquals=W,o.objectHasKey=Mn,o.objectSort=Tn,o.parseNumber=Q,o.randomNum=$n,o.randomString=On,o.randomUUID=jn,o.randomWord=Nn,o.secondsFormat=Zt,o.setupCounter=Gn,o.strExists=b,o.strFeed=Ut,o.strFilterCN=en,o.strFormatMoney=Yt,o.strFormatNumber=Vt,o.strFourSeparate=Wt,o.strGetMiddle=q,o.strHideBankNo=Kt,o.strHideMobile=Xt,o.strLeftDelete=kt,o.strLeftExists=U,o.strLenLimit=Rt,o.strLength=Lt,o.strReplace=Jt,o.strRightDelete=k,o.strRightExists=D,o.strSplitChars=xt,o.strSubString=tn,o.strTrimAll=Bt,o.strTrimSide=vt,o.str_ends_with=Ht,o.treeCalcLevel=ge,o.treeDeepInclude=C,o.treeRegDeepParents=E,o.treeToSubFlatten=N,o.treeToSupFlatten=$,o.uriGetParam=Pn,o.urlAddParams=In,o.urlGetDomain=Cn,o.urlGetParameterAll=K,o.urlObjToQuery=vn,o.urlParameter=En,o.urlQueryToObj=X,o.urlRemoveParameter=M,Object.defineProperty(o,Symbol.toStringTag,{value:"Module"})}));