mirror of
https://github.com/silenty4ng/k5web
synced 2025-01-15 16:22:44 +00:00
24 lines
23 KiB
JavaScript
24 lines
23 KiB
JavaScript
import{a7 as N,p as _e,a8 as me,a9 as xe,aa as be,Y as le,ab as we,U as ye,f as Fe,a5 as Se,l as te,W as re}from"./index.abba0c49.js";/**
|
|
* tdesign v1.9.9
|
|
* (c) 2024 tdesign
|
|
* @license MIT
|
|
*/function Ee(r){return r==null}var Ce=Ee;/**
|
|
* tdesign v1.9.9
|
|
* (c) 2024 tdesign
|
|
* @license MIT
|
|
*/function ce(r,e,l,f,s,y,p){try{var i=r[y](p),v=i.value}catch(S){return void l(S)}i.done?e(v):Promise.resolve(v).then(f,s)}function ve(r){return function(){var e=this,l=arguments;return new Promise(function(f,s){var y=r.apply(e,l);function p(v){ce(y,f,s,p,i,"next",v)}function i(v){ce(y,f,s,p,i,"throw",v)}p(void 0)})}}var fe={exports:{}},se={exports:{}};(function(r){function e(l){return r.exports=e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(f){return typeof f}:function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},r.exports.__esModule=!0,r.exports.default=r.exports,e(l)}r.exports=e,r.exports.__esModule=!0,r.exports.default=r.exports})(se);se.exports;(function(r){var e=se.exports.default;function l(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */r.exports=l=function(){return s},r.exports.__esModule=!0,r.exports.default=r.exports;var f,s={},y=Object.prototype,p=y.hasOwnProperty,i=Object.defineProperty||function(u,t,o){u[t]=o.value},v=typeof Symbol=="function"?Symbol:{},S=v.iterator||"@@iterator",L=v.asyncIterator||"@@asyncIterator",x=v.toStringTag||"@@toStringTag";function $(u,t,o){return Object.defineProperty(u,t,{value:o,enumerable:!0,configurable:!0,writable:!0}),u[t]}try{$({},"")}catch{$=function(o,h,m){return o[h]=m}}function G(u,t,o,h){var m=t&&t.prototype instanceof d?t:d,g=Object.create(m.prototype),D=new J(h||[]);return i(g,"_invoke",{value:j(u,o,D)}),g}function C(u,t,o){try{return{type:"normal",arg:u.call(t,o)}}catch(h){return{type:"throw",arg:h}}}s.wrap=G;var c="suspendedStart",w="suspendedYield",_="executing",n="completed",a={};function d(){}function F(){}function O(){}var A={};$(A,S,function(){return this});var P=Object.getPrototypeOf,E=P&&P(P(ee([])));E&&E!==y&&p.call(E,S)&&(A=E);var b=O.prototype=d.prototype=Object.create(A);function I(u){["next","throw","return"].forEach(function(t){$(u,t,function(o){return this._invoke(t,o)})})}function M(u,t){function o(m,g,D,q){var R=C(u[m],u,g);if(R.type!=="throw"){var Y=R.arg,z=Y.value;return z&&e(z)=="object"&&p.call(z,"__await")?t.resolve(z.__await).then(function(H){o("next",H,D,q)},function(H){o("throw",H,D,q)}):t.resolve(z).then(function(H){Y.value=H,D(Y)},function(H){return o("throw",H,D,q)})}q(R.arg)}var h;i(this,"_invoke",{value:function(g,D){function q(){return new t(function(R,Y){o(g,D,R,Y)})}return h=h?h.then(q,q):q()}})}function j(u,t,o){var h=c;return function(m,g){if(h===_)throw Error("Generator is already running");if(h===n){if(m==="throw")throw g;return{value:f,done:!0}}for(o.method=m,o.arg=g;;){var D=o.delegate;if(D){var q=U(D,o);if(q){if(q===a)continue;return q}}if(o.method==="next")o.sent=o._sent=o.arg;else if(o.method==="throw"){if(h===c)throw h=n,o.arg;o.dispatchException(o.arg)}else o.method==="return"&&o.abrupt("return",o.arg);h=_;var R=C(u,t,o);if(R.type==="normal"){if(h=o.done?n:w,R.arg===a)continue;return{value:R.arg,done:o.done}}R.type==="throw"&&(h=n,o.method="throw",o.arg=R.arg)}}}function U(u,t){var o=t.method,h=u.iterator[o];if(h===f)return t.delegate=null,o==="throw"&&u.iterator.return&&(t.method="return",t.arg=f,U(u,t),t.method==="throw")||o!=="return"&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+o+"' method")),a;var m=C(h,u.iterator,t.arg);if(m.type==="throw")return t.method="throw",t.arg=m.arg,t.delegate=null,a;var g=m.arg;return g?g.done?(t[u.resultName]=g.value,t.next=u.nextLoc,t.method!=="return"&&(t.method="next",t.arg=f),t.delegate=null,a):g:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,a)}function k(u){var t={tryLoc:u[0]};1 in u&&(t.catchLoc=u[1]),2 in u&&(t.finallyLoc=u[2],t.afterLoc=u[3]),this.tryEntries.push(t)}function T(u){var t=u.completion||{};t.type="normal",delete t.arg,u.completion=t}function J(u){this.tryEntries=[{tryLoc:"root"}],u.forEach(k,this),this.reset(!0)}function ee(u){if(u||u===""){var t=u[S];if(t)return t.call(u);if(typeof u.next=="function")return u;if(!isNaN(u.length)){var o=-1,h=function m(){for(;++o<u.length;)if(p.call(u,o))return m.value=u[o],m.done=!1,m;return m.value=f,m.done=!0,m};return h.next=h}}throw new TypeError(e(u)+" is not iterable")}return F.prototype=O,i(b,"constructor",{value:O,configurable:!0}),i(O,"constructor",{value:F,configurable:!0}),F.displayName=$(O,x,"GeneratorFunction"),s.isGeneratorFunction=function(u){var t=typeof u=="function"&&u.constructor;return!!t&&(t===F||(t.displayName||t.name)==="GeneratorFunction")},s.mark=function(u){return Object.setPrototypeOf?Object.setPrototypeOf(u,O):(u.__proto__=O,$(u,x,"GeneratorFunction")),u.prototype=Object.create(b),u},s.awrap=function(u){return{__await:u}},I(M.prototype),$(M.prototype,L,function(){return this}),s.AsyncIterator=M,s.async=function(u,t,o,h,m){m===void 0&&(m=Promise);var g=new M(G(u,t,o,h),m);return s.isGeneratorFunction(t)?g:g.next().then(function(D){return D.done?D.value:g.next()})},I(b),$(b,x,"Generator"),$(b,S,function(){return this}),$(b,"toString",function(){return"[object Generator]"}),s.keys=function(u){var t=Object(u),o=[];for(var h in t)o.push(h);return o.reverse(),function m(){for(;o.length;){var g=o.pop();if(g in t)return m.value=g,m.done=!1,m}return m.done=!0,m}},s.values=ee,J.prototype={constructor:J,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=f,this.done=!1,this.delegate=null,this.method="next",this.arg=f,this.tryEntries.forEach(T),!t)for(var o in this)o.charAt(0)==="t"&&p.call(this,o)&&!isNaN(+o.slice(1))&&(this[o]=f)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(t.type==="throw")throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var o=this;function h(Y,z){return D.type="throw",D.arg=t,o.next=Y,z&&(o.method="next",o.arg=f),!!z}for(var m=this.tryEntries.length-1;m>=0;--m){var g=this.tryEntries[m],D=g.completion;if(g.tryLoc==="root")return h("end");if(g.tryLoc<=this.prev){var q=p.call(g,"catchLoc"),R=p.call(g,"finallyLoc");if(q&&R){if(this.prev<g.catchLoc)return h(g.catchLoc,!0);if(this.prev<g.finallyLoc)return h(g.finallyLoc)}else if(q){if(this.prev<g.catchLoc)return h(g.catchLoc,!0)}else{if(!R)throw Error("try statement without catch or finally");if(this.prev<g.finallyLoc)return h(g.finallyLoc)}}}},abrupt:function(t,o){for(var h=this.tryEntries.length-1;h>=0;--h){var m=this.tryEntries[h];if(m.tryLoc<=this.prev&&p.call(m,"finallyLoc")&&this.prev<m.finallyLoc){var g=m;break}}g&&(t==="break"||t==="continue")&&g.tryLoc<=o&&o<=g.finallyLoc&&(g=null);var D=g?g.completion:{};return D.type=t,D.arg=o,g?(this.method="next",this.next=g.finallyLoc,a):this.complete(D)},complete:function(t,o){if(t.type==="throw")throw t.arg;return t.type==="break"||t.type==="continue"?this.next=t.arg:t.type==="return"?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):t.type==="normal"&&o&&(this.next=o),a},finish:function(t){for(var o=this.tryEntries.length-1;o>=0;--o){var h=this.tryEntries[o];if(h.finallyLoc===t)return this.complete(h.completion,h.afterLoc),T(h),a}},catch:function(t){for(var o=this.tryEntries.length-1;o>=0;--o){var h=this.tryEntries[o];if(h.tryLoc===t){var m=h.completion;if(m.type==="throw"){var g=m.arg;T(h)}return g}}throw Error("illegal catch attempt")},delegateYield:function(t,o,h){return this.delegate={iterator:ee(t),resultName:o,nextLoc:h},this.method==="next"&&(this.arg=f),a}},s}r.exports=l,r.exports.__esModule=!0,r.exports.default=r.exports})(fe);fe.exports;var Z=fe.exports(),V=Z;try{regeneratorRuntime=Z}catch{(typeof globalThis>"u"?"undefined":_e(globalThis))==="object"?globalThis.regeneratorRuntime=Z:Function("r","regeneratorRuntime = r")(Z)}/**
|
|
* tdesign v1.9.9
|
|
* (c) 2024 tdesign
|
|
* @license MIT
|
|
*/var Oe=me,Ae=xe,Le=be,de=le,Pe=we;function De(r,e,l,f){if(!de(r))return r;e=Ae(e,r);for(var s=-1,y=e.length,p=y-1,i=r;i!=null&&++s<y;){var v=Pe(e[s]),S=l;if(v==="__proto__"||v==="constructor"||v==="prototype")return r;if(s!=p){var L=i[v];S=f?f(L,v,i):void 0,S===void 0&&(S=de(L)?L:Le(e[s+1])?[]:{})}Oe(i,v,S),i=i[v]}return r}var Ie=De;/**
|
|
* tdesign v1.9.9
|
|
* (c) 2024 tdesign
|
|
* @license MIT
|
|
*/var $e=Ie;function qe(r,e,l){return r==null?r:$e(r,e,l)}var Ue=qe;/**
|
|
* tdesign v1.9.9
|
|
* (c) 2024 tdesign
|
|
* @license MIT
|
|
*/var ne={exports:{}},Q={exports:{}};(function(r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;function l(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments.length>1?arguments[1]:void 0;for(var y in s)typeof f[y]>"u"&&(f[y]=s[y]);return f}r.exports=e.default,r.exports.default=e.default})(Q,Q.exports);Q.exports;(function(r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=C;var l=f(Q.exports);function f(c){return c&&c.__esModule?c:{default:c}}function s(c,w){return i(c)||p(c,w)||S(c,w)||y()}function y(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function p(c,w){var _=c==null?null:typeof Symbol<"u"&&c[Symbol.iterator]||c["@@iterator"];if(_!=null){var n,a,d,F,O=[],A=!0,P=!1;try{if(d=(_=_.call(c)).next,w===0){if(Object(_)!==_)return;A=!1}else for(;!(A=(n=d.call(_)).done)&&(O.push(n.value),O.length!==w);A=!0);}catch(E){P=!0,a=E}finally{try{if(!A&&_.return!=null&&(F=_.return(),Object(F)!==F))return}finally{if(P)throw a}}return O}}function i(c){if(Array.isArray(c))return c}function v(c,w){var _=typeof Symbol<"u"&&c[Symbol.iterator]||c["@@iterator"];if(!_){if(Array.isArray(c)||(_=S(c))||w&&c&&typeof c.length=="number"){_&&(c=_);var n=0,a=function(){};return{s:a,n:function(){return n>=c.length?{done:!0}:{done:!1,value:c[n++]}},e:function(P){throw P},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var d=!0,F=!1,O;return{s:function(){_=_.call(c)},n:function(){var P=_.next();return d=P.done,P},e:function(P){F=!0,O=P},f:function(){try{!d&&_.return!=null&&_.return()}finally{if(F)throw O}}}}function S(c,w){if(!!c){if(typeof c=="string")return L(c,w);var _=Object.prototype.toString.call(c).slice(8,-1);if(_==="Object"&&c.constructor&&(_=c.constructor.name),_==="Map"||_==="Set")return Array.from(c);if(_==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_))return L(c,w)}}function L(c,w){(w==null||w>c.length)&&(w=c.length);for(var _=0,n=new Array(w);_<w;_++)n[_]=c[_];return n}var x={format:"YYYY/MM/DD",delimiters:["/","-"],strictMode:!1};function $(c){return/(^(y{4}|y{2})[.\/-](m{1,2})[.\/-](d{1,2})$)|(^(m{1,2})[.\/-](d{1,2})[.\/-]((y{4}|y{2})$))|(^(d{1,2})[.\/-](m{1,2})[.\/-]((y{4}|y{2})$))/gi.test(c)}function G(c,w){for(var _=[],n=Math.min(c.length,w.length),a=0;a<n;a++)_.push([c[a],w[a]]);return _}function C(c,w){if(typeof w=="string"?w=(0,l.default)({format:w},x):w=(0,l.default)(w,x),typeof c=="string"&&$(w.format)){var _=w.delimiters.find(function(k){return w.format.indexOf(k)!==-1}),n=w.strictMode?_:w.delimiters.find(function(k){return c.indexOf(k)!==-1}),a=G(c.split(n),w.format.toLowerCase().split(_)),d={},F=v(a),O;try{for(F.s();!(O=F.n()).done;){var A=s(O.value,2),P=A[0],E=A[1];if(P.length!==E.length)return!1;d[E.charAt(0)]=P}}catch(k){F.e(k)}finally{F.f()}var b=d.y;if(b.startsWith("-"))return!1;if(d.y.length===2){var I=parseInt(d.y,10);if(isNaN(I))return!1;var M=new Date().getFullYear()%100;I<M?b="20".concat(d.y):b="19".concat(d.y)}var j=d.m;d.m.length===1&&(j="0".concat(d.m));var U=d.d;return d.d.length===1&&(U="0".concat(d.d)),new Date("".concat(b,"-").concat(j,"-").concat(U,"T00:00:00.000Z")).getUTCDate()===+d.d}return w.strictMode?!1:Object.prototype.toString.call(c)==="[object Date]"&&isFinite(c)}r.exports=e.default,r.exports.default=e.default})(ne,ne.exports);var Me=N(ne.exports),ae={exports:{}},W={exports:{}};(function(r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=f;function l(s){return l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(y){return typeof y}:function(y){return y&&typeof Symbol=="function"&&y.constructor===Symbol&&y!==Symbol.prototype?"symbol":typeof y},l(s)}function f(s){var y=typeof s=="string"||s instanceof String;if(!y){var p=l(s);throw s===null?p="null":p==="object"&&(p=s.constructor.name),new TypeError("Expected a string but received a ".concat(p))}}r.exports=e.default,r.exports.default=e.default})(W,W.exports);W.exports;var X={exports:{}};(function(r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=y;var l=f(W.exports);function f(p){return p&&p.__esModule?p:{default:p}}function s(p){return s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},s(p)}function y(p,i){(0,l.default)(p);var v,S;s(i)==="object"?(v=i.min||0,S=i.max):(v=arguments[1],S=arguments[2]);var L=encodeURI(p).split(/%..|./).length-1;return L>=v&&(typeof S>"u"||L<=S)}r.exports=e.default,r.exports.default=e.default})(X,X.exports);X.exports;var B={exports:{}};(function(r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=p;var l=s(W.exports),f=s(Q.exports);function s(i){return i&&i.__esModule?i:{default:i}}var y={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1,ignore_max_length:!1};function p(i,v){(0,l.default)(i),v=(0,f.default)(v,y),v.allow_trailing_dot&&i[i.length-1]==="."&&(i=i.substring(0,i.length-1)),v.allow_wildcard===!0&&i.indexOf("*.")===0&&(i=i.substring(2));var S=i.split("."),L=S[S.length-1];return v.require_tld&&(S.length<2||!v.allow_numeric_tld&&!/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(L)||/\s/.test(L))||!v.allow_numeric_tld&&/^\d+$/.test(L)?!1:S.every(function(x){return!(x.length>63&&!v.ignore_max_length||!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(x)||/[\uff01-\uff5e]/.test(x)||/^-|-$/.test(x)||!v.allow_underscores&&/_/.test(x))})}r.exports=e.default,r.exports.default=e.default})(B,B.exports);B.exports;var K={exports:{}};(function(r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=S;var l=f(W.exports);function f(L){return L&&L.__esModule?L:{default:L}}var s="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",y="(".concat(s,"[.]){3}").concat(s),p=new RegExp("^".concat(y,"$")),i="(?:[0-9a-fA-F]{1,4})",v=new RegExp("^("+"(?:".concat(i,":){7}(?:").concat(i,"|:)|")+"(?:".concat(i,":){6}(?:").concat(y,"|:").concat(i,"|:)|")+"(?:".concat(i,":){5}(?::").concat(y,"|(:").concat(i,"){1,2}|:)|")+"(?:".concat(i,":){4}(?:(:").concat(i,"){0,1}:").concat(y,"|(:").concat(i,"){1,3}|:)|")+"(?:".concat(i,":){3}(?:(:").concat(i,"){0,2}:").concat(y,"|(:").concat(i,"){1,4}|:)|")+"(?:".concat(i,":){2}(?:(:").concat(i,"){0,3}:").concat(y,"|(:").concat(i,"){1,5}|:)|")+"(?:".concat(i,":){1}(?:(:").concat(i,"){0,4}:").concat(y,"|(:").concat(i,"){1,6}|:)|")+"(?::((?::".concat(i,"){0,5}:").concat(y,"|(?::").concat(i,"){1,7}|:))")+")(%[0-9a-zA-Z-.:]{1,})?$");function S(L){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(0,l.default)(L),x=String(x),x?x==="4"?p.test(L):x==="6"?v.test(L):!1:S(L,4)||S(L,6)}r.exports=e.default,r.exports.default=e.default})(K,K.exports);K.exports;(function(r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=_;var l=i(W.exports),f=i(X.exports),s=i(B.exports),y=i(K.exports),p=i(Q.exports);function i(n){return n&&n.__esModule?n:{default:n}}var v={allow_display_name:!1,allow_underscores:!1,require_display_name:!1,allow_utf8_local_part:!0,require_tld:!0,blacklisted_chars:"",ignore_max_length:!1,host_blacklist:[],host_whitelist:[]},S=/^([^\x00-\x1F\x7F-\x9F\cX]+)</i,L=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i,x=/^[a-z\d]+$/,$=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f]))*$/i,G=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\u00A1-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+$/i,C=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*$/i,c=254;function w(n){var a=n.replace(/^"(.+)"$/,"$1");if(!a.trim())return!1;var d=/[\.";<>]/.test(a);if(d){if(a===n)return!1;var F=a.split('"').length===a.split('\\"').length;if(!F)return!1}return!0}function _(n,a){if((0,l.default)(n),a=(0,p.default)(a,v),a.require_display_name||a.allow_display_name){var d=n.match(S);if(d){var F=d[1];if(n=n.replace(F,"").replace(/(^<|>$)/g,""),F.endsWith(" ")&&(F=F.slice(0,-1)),!w(F))return!1}else if(a.require_display_name)return!1}if(!a.ignore_max_length&&n.length>c)return!1;var O=n.split("@"),A=O.pop(),P=A.toLowerCase();if(a.host_blacklist.includes(P)||a.host_whitelist.length>0&&!a.host_whitelist.includes(P))return!1;var E=O.join("@");if(a.domain_specific_validation&&(P==="gmail.com"||P==="googlemail.com")){E=E.toLowerCase();var b=E.split("+")[0];if(!(0,f.default)(b.replace(/\./g,""),{min:6,max:30}))return!1;for(var I=b.split("."),M=0;M<I.length;M++)if(!x.test(I[M]))return!1}if(a.ignore_max_length===!1&&(!(0,f.default)(E,{max:64})||!(0,f.default)(A,{max:254})))return!1;if(!(0,s.default)(A,{require_tld:a.require_tld,ignore_max_length:a.ignore_max_length,allow_underscores:a.allow_underscores})){if(!a.allow_ip_domain)return!1;if(!(0,y.default)(A)){if(!A.startsWith("[")||!A.endsWith("]"))return!1;var j=A.slice(1,-1);if(j.length===0||!(0,y.default)(j))return!1}}if(E[0]==='"')return E=E.slice(1,E.length-1),a.allow_utf8_local_part?C.test(E):$.test(E);for(var U=a.allow_utf8_local_part?G:L,k=E.split("."),T=0;T<k.length;T++)if(!U.test(k[T]))return!1;return!(a.blacklisted_chars&&E.search(new RegExp("[".concat(a.blacklisted_chars,"]+"),"g"))!==-1)}r.exports=e.default,r.exports.default=e.default})(ae,ae.exports);var Re=N(ae.exports),ie={exports:{}};(function(r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=_;var l=p(W.exports),f=p(B.exports),s=p(K.exports),y=p(Q.exports);function p(n){return n&&n.__esModule?n:{default:n}}function i(n,a){return $(n)||x(n,a)||S(n,a)||v()}function v(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function S(n,a){if(!!n){if(typeof n=="string")return L(n,a);var d=Object.prototype.toString.call(n).slice(8,-1);if(d==="Object"&&n.constructor&&(d=n.constructor.name),d==="Map"||d==="Set")return Array.from(n);if(d==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(d))return L(n,a)}}function L(n,a){(a==null||a>n.length)&&(a=n.length);for(var d=0,F=new Array(a);d<a;d++)F[d]=n[d];return F}function x(n,a){var d=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(d!=null){var F,O,A,P,E=[],b=!0,I=!1;try{if(A=(d=d.call(n)).next,a===0){if(Object(d)!==d)return;b=!1}else for(;!(b=(F=A.call(d)).done)&&(E.push(F.value),E.length!==a);b=!0);}catch(M){I=!0,O=M}finally{try{if(!b&&d.return!=null&&(P=d.return(),Object(P)!==P))return}finally{if(I)throw O}}return E}}function $(n){if(Array.isArray(n))return n}var G={protocols:["http","https","ftp"],require_tld:!0,require_protocol:!1,require_host:!0,require_port:!1,require_valid_protocol:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_protocol_relative_urls:!1,allow_fragments:!0,allow_query_components:!0,validate_length:!0},C=/^\[([^\]]+)\](?::([0-9]+))?$/;function c(n){return Object.prototype.toString.call(n)==="[object RegExp]"}function w(n,a){for(var d=0;d<a.length;d++){var F=a[d];if(n===F||c(F)&&F.test(n))return!0}return!1}function _(n,a){if((0,l.default)(n),!n||/[\s<>]/.test(n)||n.indexOf("mailto:")===0||(a=(0,y.default)(a,G),a.validate_length&&n.length>=2083)||!a.allow_fragments&&n.includes("#")||!a.allow_query_components&&(n.includes("?")||n.includes("&")))return!1;var d,F,O,A,P,E,b,I;if(b=n.split("#"),n=b.shift(),b=n.split("?"),n=b.shift(),b=n.split("://"),b.length>1){if(d=b.shift().toLowerCase(),a.require_valid_protocol&&a.protocols.indexOf(d)===-1)return!1}else{if(a.require_protocol)return!1;if(n.slice(0,2)==="//"){if(!a.allow_protocol_relative_urls)return!1;b[0]=n.slice(2)}}if(n=b.join("://"),n==="")return!1;if(b=n.split("/"),n=b.shift(),n===""&&!a.require_host)return!0;if(b=n.split("@"),b.length>1){if(a.disallow_auth||b[0]===""||(F=b.shift(),F.indexOf(":")>=0&&F.split(":").length>2))return!1;var M=F.split(":"),j=i(M,2),U=j[0],k=j[1];if(U===""&&k==="")return!1}A=b.join("@"),E=null,I=null;var T=A.match(C);if(T?(O="",I=T[1],E=T[2]||null):(b=A.split(":"),O=b.shift(),b.length&&(E=b.join(":"))),E!==null&&E.length>0){if(P=parseInt(E,10),!/^[0-9]+$/.test(E)||P<=0||P>65535)return!1}else if(a.require_port)return!1;return a.host_whitelist?w(O,a.host_whitelist):O===""&&!a.require_host?!0:!(!(0,s.default)(O)&&!(0,f.default)(O,a)&&(!I||!(0,s.default)(I,6))||(O=O||I,a.host_blacklist&&w(O,a.host_blacklist)))}r.exports=e.default,r.exports.default=e.default})(ie,ie.exports);var ke=N(ie.exports);function pe(r,e){var l=Object.keys(r);if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(r);e&&(f=f.filter(function(s){return Object.getOwnPropertyDescriptor(r,s).enumerable})),l.push.apply(l,f)}return l}function he(r){for(var e=1;e<arguments.length;e++){var l=arguments[e]!=null?arguments[e]:{};e%2?pe(Object(l),!0).forEach(function(f){Fe(r,f,l[f])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(l)):pe(Object(l)).forEach(function(f){Object.defineProperty(r,f,Object.getOwnPropertyDescriptor(l,f))})}return r}function ge(r){var e=Object.prototype.toString.call(r),l={Date:"[object Date]"};return e===l.Date?!1:le(r)?Se(r):["",void 0,null].includes(r)}var Te={date:Me,url:ke,email:Re,required:function(e){return!ge(e)},whitespace:function(e){return!(/^\s+$/.test(e)||e==="")},boolean:function(e){return ye(e)},max:function(e,l){return te(e)?e<=l:re(e)<=l},min:function(e,l){return te(e)?e>=l:re(e)>=l},len:function(e,l){return re(String(e))===l},number:function(e){return te(e)},enum:function(e,l){return l.includes(e)},idcard:function(e){return/^(\d{18,18}|\d{15,15}|\d{17,17}x)$/i.test(e)},telnumber:function(e){return/^1[3-9]\d{9}$/.test(e)},pattern:function(e,l){return l.test(e)},validator:function(e,l){return l(e)}};function je(r,e){return oe.apply(this,arguments)}function oe(){return oe=ve(V.mark(function r(e,l){var f,s,y,p,i,v,S;return V.wrap(function(x){for(;;)switch(x.prev=x.next){case 0:f={result:!0},s=Object.keys(l),i=0;case 3:if(!(i<s.length)){x.next=15;break}if(v=s[i],!(!l.required&&ge(e)&&!l.validator)){x.next=7;break}return x.abrupt("return",f);case 7:if(S=Te[v],!(S&&(l[v]||l[v]===0))){x.next=12;break}return y=l[v]===!0?void 0:l[v],p=S,x.abrupt("break",15);case 12:i++,x.next=3;break;case 15:if(!p){x.next=23;break}return x.next=18,p(e,y);case 18:if(f=x.sent,!ye(f)){x.next=21;break}return x.abrupt("return",he(he({},l),{},{result:f}));case 21:if(!le(f)){x.next=23;break}return x.abrupt("return",f);case 23:return x.abrupt("return",f);case 24:case"end":return x.stop()}},r)})),oe.apply(this,arguments)}function Ge(r,e){return ue.apply(this,arguments)}function ue(){return ue=ve(V.mark(function r(e,l){var f,s;return V.wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return f=l.map(function(i){return je(e,i)}),p.next=3,Promise.all(f);case 3:return s=p.sent,p.abrupt("return",s);case 5:case"end":return p.stop()}},r)})),ue.apply(this,arguments)}export{ve as _,Ie as a,Ce as i,V as r,Ue as s,Ge as v};
|