Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- "use strict";(self.webpackChunkwht=self.webpackChunkwht||[]).push([
- [
- 7342
- ],
- {
- 17342:function(t,r,e){e.d(r,
- {rp:function(){return m
- },CT:function(){return _
- },Xc:function(){return v
- },ci:function(){return s
- },ym:function(){return u
- },oH:function(){return p
- },ir:function(){return I
- },mz:function(){return j
- },Kg:function(){return A
- },bt:function(){return F
- },Zk:function(){return y
- },_3:function(){return w
- },G2:function(){return x
- },dS:function(){return E
- },fn:function(){return g
- },a7:function(){return P
- },H_:function(){return L
- },Yl:function(){return k
- },D4:function(){return $
- },L1:function(){return O
- },dI:function(){return T
- },WI:function(){return M
- },Gt:function(){return z
- },w$:function(){return h
- }
- }),e(74916),e(15306),e(24603),e(39714),e(41539),e(57327),e(4723),e(26699),e(32023),e(23123),e(69600),e(56977),e(34553),e(54747),e(21249);var n={cn: {can_not_null: "密码不能为空",not_conform_to_rule: "输入的密码不符合规则",more_eight_less_thirty: "密码不能少于8字符且不能超过30字符",cannot_incloud_userPin: "密码不允许有用户名",must_have_threeType: "密码必须包含大小写字母、数字及特殊字符其中三类"
- },en: {can_not_null: "Cannot be blank",not_conform_to_rule: "Does not comply with the rule",more_eight_less_thirty: "Must be no less than 8 characters and no more than 30 characters",cannot_incloud_userPin: "Can't include the username",must_have_threeType: "Must include three types of the capital and lowercase letters, numbers and special characters"
- }
- },i={cn: {can_not_null: "名称不能为空",less_thrity_two: "名称长度不能超过32个字符",rule: "名称只支持中文、数字、大小写字母及英文下划线“_”及中划线"
- },en: {can_not_null: "Must provide a name",less_thrity_two: "Length cannot exceed 32 characters",rule: "Name only supports Chinese, numbers, capital and lowercase letters, English underline “_” and hyphen"
- }
- },a={cn: {input_desc: "请输入描述",less: "描述长度不能超过256个字符",rule: "描述只支持中文、数字、大小写字母及英文下划线“_”"
- },en: {input_desc: "Please input description",less: "Description length cannot exceed 256 characters",rule: "Description only supports Chinese, numbers, capital and lowercase letters and English underline “_”"
- }
- },o=e(96486);function u(t){var r=arguments.length>1&&void 0!==arguments[
- 1
- ]?arguments[
- 1
- ]: "cn",e="";return void 0===t||""===t?i[r
- ].can_not_null:t.length>32?i[r
- ].less_thrity_two:/^([a-zA-Z0-9\_-
- ]|[\u4e00-\u9fa5
- ]){
- 1,
- 32
- }$/.test(t)?e:i[r
- ].rule
- }function s(t,r){var e=arguments.length>2&&void 0!==arguments[
- 2
- ]?arguments[
- 2
- ]: "cn",n="";return void 0===t||""===t?r||(n=a[e
- ].input_desc):t.length>256?n=a[e
- ].less:/^([a-zA-Z0-9\_
- ]|[\u4e00-\u9fa5
- ]){
- 1,
- 256
- }$/.test(t)||(n=a[e
- ].rule),n
- }Date.prototype.Format=function(t){var r={
- "M+":this.getMonth()+1,
- "d+":this.getDate(),
- "h+":this.getHours(),
- "m+":this.getMinutes(),
- "s+":this.getSeconds(),
- "q+":Math.floor((this.getMonth()+3)/3),S:this.getMilliseconds()
- };for(var e in/(y+)/.test(t)&&(t=t.replace(RegExp.$1,
- "".concat(this.getFullYear()).substr(4-RegExp.$1.length))),r)new RegExp("(".concat(e,
- ")")).test(t)&&(t=t.replace(RegExp.$1,
- 1==RegExp.$1.length?r[e
- ]: "00".concat(r[e
- ]).substr("".concat(r[e
- ]).length)));return t
- };var c=[
- "abc",
- "bcd",
- "cde",
- "def",
- "efg",
- "fgh",
- "ghi",
- "hij",
- "ijk",
- "jkl",
- "klm",
- "lmn",
- "mno",
- "nop",
- "opq",
- "pqr",
- "qrs",
- "rst",
- "stu",
- "tuv",
- "uvw",
- "vwx",
- "wxy",
- "xyz",
- "cba",
- "dcb",
- "edc",
- "fed",
- "gfe",
- "hgf",
- "ihg",
- "jih",
- "kji",
- "lkj",
- "mlk",
- "nml",
- "onm",
- "pon",
- "qpo",
- "rqp",
- "srq",
- "tsr",
- "uts",
- "vut",
- "wvu",
- "xwv",
- "yxw",
- "zyx",
- "qaz",
- "wsx",
- "edc",
- "rfv",
- "tgb",
- "yhn",
- "ujm",
- "esz",
- "rdx",
- "tfc",
- "ygv",
- "uhb",
- "ijn",
- "okm",
- "zaq",
- "xsw",
- "cde",
- "vfr",
- "bgt",
- "nhy",
- "mju",
- "zse",
- "xdr",
- "cft",
- "vgy",
- "bhu",
- "nji",
- "mko",
- "ewq",
- "rew",
- "tre",
- "ytr",
- "uyt",
- "iuy",
- "oiu",
- "poi",
- "dsa",
- "fds",
- "gfd",
- "hgf",
- "jhg",
- "kjh",
- "lkj",
- "cxz",
- "vcx",
- "bvc",
- "nbv",
- "mnb",
- "qwe",
- "wer",
- "ert",
- "rty",
- "tyu",
- "yui",
- "uio",
- "iop",
- "asd",
- "sdf",
- "dfg",
- "fgh",
- "ghj",
- "hjk",
- "jkl",
- "zxc",
- "xcv",
- "cvb",
- "vbn",
- "bnm"
- ],l=[
- "jd",
- "360",
- "bug",
- "com",
- "cloud",
- "password"
- ],f=[
- "123",
- "234",
- "345",
- "456",
- "567",
- "678",
- "789",
- "890",
- "098",
- "987",
- "876",
- "765",
- "654",
- "543",
- "432",
- "321"
- ],d=function(t){var r=c.some((function(r){return t.indexOf(r)>=0||t.indexOf(r.toUpperCase())>=0
- })),e=f.some((function(r){return t.indexOf(r)>=0
- })),n=l.some((function(r){return t.indexOf(r)>=0||t.indexOf(r.toUpperCase())>=0
- }));return!(r||e||n)
- };function p(t,r,e){var i=arguments.length>3&&void 0!==arguments[
- 3
- ]?arguments[
- 3
- ]: "cn";return!e||null!=t&&""!=t?null==t||""==t?n[i
- ].can_not_null:t.length>30||t.length<8?n[i
- ].more_eight_less_thirty:!/^[\x21-\x7e
- ]*$/.test(t)||t.indexOf("\\")>-1?n[i
- ].not_conform_to_rule:/^(((?=.*[
- 0-9
- ])(?=.*[a-z
- ])(?=.*[A-Z
- ]))|((?=.*[
- 0-9
- ])(?=.*[a-z
- ])(?=.*[()`~!+=|{}\[\
- ]:";'<>,.?/@#$%^&*_-]))|((?=.*[0-9])(?=.*[A-Z])(?=.*[()`~!+=|{}\[\]:";'<>,.?/@#$%^&*_-
- ]))|((?=.*[a-z
- ])(?=.*[A-Z
- ])(?=.*[()`~!+=|{}\[\
- ]:";'<>,.?/@#$%^&*_-])))[\x21-\x7e]{8,30}$/.test(t)?d(t)?-1!=t.indexOf(r)?n[i].cannot_incloud_userPin:"":n[i].not_conform_to_rule:n[i].must_have_threeType:""}function h(t){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],e={len:!1,characterRestrict:!1,digital:!1,lowercaseLetter:!1,uppercaseLetter:!1,specialLetter:!1,includeLetter:!1,allowedWord:!1,allowedNumber:!1,allowedLetter:!1},n=/[()`~!@#$%^&*_\-+=|{}[\]:";'<>,.?\/
- ]/gi;if(!t&&(e.len=!1,r))return" ";if(/[^a-z\d()`~!@#$%^&*_\-+=|{}[\
- ]: ";'<>,.?/]/gi.test(t)){if(e.includeLetter=!1,r)return"只支持输入中文、数字、大小写字母、英文下划线“_”、中划线“-”或点“.”,不能以“.”作为首尾"}else e.includeLetter=!0;/\d/g.test(t)?e.digital=!0:e.digital=!1,/[a-z]/g.test(t)?e.lowercaseLetter=!0:e.lowercaseLetter=!1,/[A-Z]/g.test(t)?e.uppercaseLetter=!0:e.uppercaseLetter=!1,n.test(t)?e.specialLetter=!0:e.specialLetter=!1;var i=[e.digital,e.lowercaseLetter,e.uppercaseLetter,e.specialLetter];if(i.filter((function(t){return t})).length<3){if(e.characterRestrict=!1,r)return"密码必须包含大/小写字母、数字及特殊字符其中的三类"}else e.characterRestrict=!0;if(t.length<8||t.length>30){if(e.len=!1,r)return"密码长度须在8~30字符以内"}else e.len=!0;var a=t.toLowerCase().match(/[a-z\d]+/gi)||[],o=a.some((function(t){return c.some((function(r){return t.includes(r)}))})),u=a.some((function(t){return l.some((function(r){return t.includes(r)}))})),s=t.toLowerCase().match(/\d+/gi)||[],d=s.some((function(t){return f.some((function(r){return t.includes(r)}))}));if(o){if(e.allowedLetter=!1,r)return" "}else e.allowedLetter=!0;if(u){if(e.allowedWord=!1,r)return" "}else e.allowedWord=!0;if(d){if(e.allowedNumber=!1,r)return" "}else e.allowedNumber=!0;return!!r||e}function g(t,r){return"building"===t?{id:1,name:"创建中"}:"deleting"===r?{id:8,name:"删除中"}:"powering-off"===r?{id:5,name:"停止中"}:-1!==o.indexOf(["rebooting","reboot_pending","reboot_started","rebooting_hard","reboot_pending_hard","reboot_started_hard"],r)?{id:7,name:"重启中"}:"powering-on"===r?{id:6,name:"启动中"}:-1!==o.indexOf(["resize_prep","resize_migrated","resize_reverting","resize_migrating","resize_finish","resize_confirming","resized"],r)||"resized"==t?{id:9,name:"修改配置中"}:-1!==o.indexOf(["rebuilding","rebuild_block_device_mapping","rebuild_spawning"],r)?{id:11,name:"重置系统中"}:-1!==o.indexOf(["image_snapshot","image_snapshot_pending","image_pending_upload","image_uploading"],r)?{id:12,name:"制作镜像中"}:"active"===t?{id:2,name:"运行"}:"stopped"===t?{id:3,name:"停止"}:"error"===t?{id:4,name:"错误"}:4}function _(t,r){var e=c(t),n=c(r),i=function(){for(var t=0,r=0;r<32&&"1"==n.charAt(r);r++)t++;return t}(),a="",o="",u="",s="";function c(t){for(var r=t.split("."),e="",n=0;n<r.length;n++)e+=l(parseInt(r[n]).toString(2));return e}function l(t){var r=t;if(t.length<8)for(var e=t.length,n=0;n<8-e;n++)r="0"+r;return r}this.isInRange=function(t){this.getNetwork();var r=c(t),e=parseInt(r,2),n=parseInt(s,2),l=r.substr(0,i),f=r.substr(i);return l==a&&e!=n+1&&e!=n+2&&f!=o&&f!=u},this.getNetwork=function(){return s=function(t,r){for(var e="",n=0;n<32;n++)e+=parseInt(t.charAt(n))&parseInt(r.charAt(n));return e}(e,n),a=s.substr(0,i),o=s.substr(i),u=o.replace(/0/g,"1"),function(t){for(var r="",e=0;e<t.length;e+=8)r+="."+parseInt(t.substr(e,8),2);return r.substr(1)}(s)}}function v(t,r){var e=c(t),n=c(r),i=function(){for(var t=0,r=0;r<32&&"1"==n.charAt(r);r++)t++;return t}(),a="",o="",u="",s="";function c(t){for(var r=t.split("."),e="",n=0;n<r.length;n++)e+=l(parseInt(r[n]).toString(2));return e}function l(t){var r=t;if(t.length<8)for(var e=t.length,n=0;n<8-e;n++)r="0"+r;return r}this.isInRange=function(t){this.getNetwork();var r=c(t),e=parseInt(r,2),n=parseInt(s,2),l=r.substr(0,i),f=r.substr(i);return l==a&&(e==n+1||e==n+2||f==o||f==u)},this.getNetwork=function(){return s=function(t,r){for(var e="",n=0;n<32;n++)e+=parseInt(t.charAt(n))&parseInt(r.charAt(n));return e}(e,n),a=s.substr(0,i),o=s.substr(i),u=o.replace(/0/g,"1"),function(t){for(var r="",e=0;e<t.length;e+=8)r+="."+parseInt(t.substr(e,8),2);return r.substr(1)}(s)}}function m(t,r){var e=u(t),n=u(r),i=function(){for(var t=0,r=0;r<32&&"1"==n.charAt(r);r++)t++;return t}(),a="",o="";function u(t){for(var r=t.split("."),e="",n=0;n<r.length;n++)e+=s(parseInt(r[n]).toString(2));return e}function s(t){var r=t;if(t.length<8)for(var e=t.length,n=0;n<8-e;n++)r="0"+r;return r}this.isInRange=function(t){this.getNetwork();var r=u(t),e=(parseInt(r,2),parseInt(o,2),r.substr(0,i));return r.substr(i),e==a},this.getNetwork=function(){return o=function(t,r){for(var e="",n=0;n<32;n++)e+=parseInt(t.charAt(n))&parseInt(r.charAt(n));return e}(e,n),a=o.substr(0,i),o.substr(i).replace(/0/g,"1"),function(t){for(var r="",e=0;e<t.length;e+=8)r+="."+parseInt(t.substr(e,8),2);return r.substr(1)}(o)}}var b=function(t){var r=function(t){var r=new Date;return r.setTime(t),r}(t);return r.Format("yyyy-MM-dd hh:mm:ss")},w=function(t,r){var e={},n=(new Date).toString()+"",i=0,a=0;n.indexOf("GMT")>-1?(i=n.indexOf("GMT")+3,a=n.lastIndexOf("(")>-1?n.lastIndexOf("(")-1:n.length):n.indexOf("UTC")>-1&&(i=n.indexOf("UTC")+3,a=n.lastIndexOf(" ")>i?n.lastIndexOf(" "):n.length),n=n.substring(i,a);var o=b(t),u=b(r);return e.startTime=o?o+n:"",e.endTime=u?u+n:"",e};function x(t){return"postpaid_by_duration"===t?1:"postpaid_by_usage"===t?2:"prepaid_by_duration"===t?3:void 0}function y(t){if(t instanceof Object){if(t.target||t.srcElement)return t.target||t.srcElement;throw TypeError("compatibleTarget: event must be event")}throw TypeError("compatibleTarget: event must be Object")}function z(t){var r,e=r=t<104857.6?(t/1024).toFixed(2)+"KB":t<107374182.4?(t/1048576).toFixed(2)+"MB":t<109951162777.6?(t/1073741824).toFixed(2)+"GB":t<112589990684262.4?(t/1099511627776).toFixed(2)+"TB":(t/0x4000000000000).toFixed(2)+"PB",n=e.indexOf(".");return"00"==e.substr(n+1,2)?e.substring(0,n)+e.substr(n+3,3):r}function E(t){if(null==t)return"";if("string"!=typeof t)return"";var r=t.split(".");if(r&&r.length&&r[1]){var e=r[1];if(e.length>=2){var n=e.substr(1,1);if(!isNaN(n))return parseInt(n)}}return""}function I(t,r){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"cn";return null==t||""==t?"":t.length>30||t.length<8&&t.length>0?n[e].more_eight_less_thirty:!/^[\x21-\x7e]*$/.test(t)||t.indexOf("\\")>-1?n[e].not_conform_to_rule:/^(((?=.*[0-9])(?=.*[a-z])(?=.*[A-Z]))|((?=.*[0-9])(?=.*[a-z])(?=.*[()`~!+=|{}\[\]:";'<>,.?/@#$%^&*_-
- ]))|((?=.*[
- 0-9
- ])(?=.*[A-Z
- ])(?=.*[()`~!+=|{}\[\
- ]:";'<>,.?/@#$%^&*_-]))|((?=.*[a-z])(?=.*[A-Z])(?=.*[()`~!+=|{}\[\]:";'<>,.?/@#$%^&*_-
- ])))[\x21-\x7e
- ]{
- 8,
- 30
- }$/.test(t)?d(t)?-1!=t.indexOf(r)?n[e
- ].cannot_incloud_userPin: "":n[e
- ].not_conform_to_rule:n[e
- ].must_have_threeType
- }function T(t,r){if(t.generation&&r.generation){if(t.generation<r.generation)return 1;if(t.generation>r.generation)return-1
- }return 0
- }function $(t,r){if(t.instanceType&&r.instanceType){var e=t.instanceType,n=r.instanceType,i=e.split("."),a=n.split(".");if(i&&i.length>=2&&a&&a.length>=2){var o=i[
- 1
- ],u=a[
- 1
- ];if(o<u)return-1;if(o===u)return t.hasOwnProperty("cpu")&&r.hasOwnProperty("cpu")?t.cpu<r.cpu?-1:t.hasOwnProperty("memoryMB")&&r.hasOwnProperty("memoryMB")?t.cpu===r.cpu&&t.memoryMB<r.memoryMB||t.hasOwnProperty("burstInfo")&&r.hasOwnProperty("burstInfo")&&t.cpu===r.cpu&&t.memoryMB===r.memoryMB&&t.burstInfo.basePerformance<r.burstInfo.basePerformance?-1: 1: 0: 0;if(o>u)return 1
- }return 0
- }return 0
- }function O(t,r){var e=[
- "p.q",
- "p.c",
- "p.n",
- "s.d",
- "s.i",
- "h.g",
- "t.e",
- "t.g",
- "t.c",
- "m.s",
- "m.n",
- "c.s",
- "c.c",
- "c.n",
- "g.s",
- "g.n"
- ],n=e.findIndex((function(r){return r===t.family
- })),i=e.findIndex((function(t){return t===r.family
- }));return n<i?1:n>i?-1: 0
- }function k(t,r){if(t.value&&r.value){if(t.value<r.value)return 1;if(t.value>r.value)return-1
- }return 0
- }function L(t){if(t&&t.addressPrefix&&t.availableIpCount){var r=Math.pow(2,
- 32-t.addressPrefix.split("/")[
- 1
- ])-4;return t.availableIpCount<r
- }return!1
- }var M=function(t){t=parseInt(t);for(var r="",e="",n=1;n<=32;n++)t>0?(e+="1",t--):e+="0",n%8==0&&(r+=parseInt(e,
- 2).toString(),e="",
- 32!=n&&(r+="."));return r
- },j=function(t,r){var e=!1;return 0!==t[r
- ].length&&("host"!==r||"${host}"!==t[r
- ])&&(/[^0-9.
- ]{
- 1,
- }/g.test(t[r
- ])?/^[-a-zA-Z0-9.
- ]*$/.test(t[r
- ])?/-\.|\.-|^-|-$/.test(t[r
- ])?(t[
- "".concat(r,
- "Error")
- ]=!0,e=!0,t[
- "".concat(r,
- "ErrorTip")
- ]='域名不能以英文中划线"-"开头和结尾,且英文中划线"-"前后不能为点"."'):!t[r
- ].includes(".")||/^(\.)|(\.\-)+|(\-\.)+|(\.)$/.test(t[r
- ])?(t[
- "".concat(r,
- "Error")
- ]=!0,e=!0,t[
- "".concat(r,
- "ErrorTip")
- ]='域名最少包括一个点".",且不能以点"."开头和结尾'):t[r
- ].length>110?(t[
- "".concat(r,
- "Error")
- ]=!0,e=!0,t[
- "".concat(r,
- "ErrorTip")
- ]="域名不能超过110字符"):/^(\*\.)(([a-z
- ]+)|[a-z\d
- ]([-a-z\d
- ]*[a-z\d
- ])?(\.[a-z\d
- ]([-a-z\d
- ]*[a-z\d
- ])?)*(\.[a-z
- ]+))$|^((\*\.)?[a-z\d
- ]([-a-z\d
- ]*[a-z\d
- ])?(\.[a-z\d
- ]([-a-z\d
- ]*[a-z\d
- ])?)*)(\.[a-z
- ]+)$|^([a-z\d
- ]([-a-z\d
- ]*[a-z\d
- ])?(\.[a-z\d
- ]([-a-z\d
- ]*[a-z\d
- ])?)*(\.\*))$|^([a-z\d
- ]([-a-z\d
- ]*[a-z\d
- ])?(\.[a-z\d
- ]([-a-z\d
- ]*[a-z\d
- ])?)*(\.[a-z
- ]+)(\.\*)?)$/gi.test(t[r
- ])?(t[
- "".concat(r,
- "Error")
- ]=!1,e=!1,t[
- "".concat(r,
- "ErrorTip")
- ]=""):(t[
- "".concat(r,
- "Error")
- ]=!0,e=!0,t[
- "".concat(r,
- "ErrorTip")
- ]="请输入合法域名"):(t[
- "".concat(r,
- "Error")
- ]=!0,e=!0,t[
- "".concat(r,
- "ErrorTip")
- ]='域名仅支持输入大小写字母、数字、英文中划线"-"、点".",不区分大小写'):/^[
- 1-9
- ]{
- 1
- }[
- 0-9
- ]{
- 0,
- 2
- }\.([
- 1-9
- ]{
- 1
- }[
- 0-9
- ]{
- 0,
- 2
- }|0)\.([
- 1-9
- ]{
- 1
- }[
- 0-9
- ]{
- 0,
- 2
- }|0)\.([
- 1-9
- ]{
- 1
- }[
- 0-9
- ]{
- 0,
- 2
- })$/.test(t[r
- ])&&/^((?:(?: 25[
- 0-5
- ]|2[
- 0-4
- ]\d|(?: 1\d{
- 2
- }|[
- 1-9
- ]?\d))\.){
- 3
- }(?: 25[
- 0-5
- ]|2[
- 0-4
- ]\d|(?: 1\d{
- 2
- }|[
- 1-9
- ]?\d)))$/.test(t[r
- ])||(t[
- "".concat(r,
- "Error")
- ]=!0,e=!0,t[
- "".concat(r,
- "ErrorTip")
- ]="请输入合法IP地址"),e)
- },A=function(t){var r=arguments.length>1&&void 0!==arguments[
- 1
- ]?arguments[
- 1
- ]: "path",e=arguments.length>2?arguments[
- 2
- ]:void 0,n={invalidFlag:!1,pathError:!1,pathErrorTip: ""
- },i=/^[\/\w\-\_\.\+\!\'\(\)\%\:\@\&\=
- ]*$/g,a=/\/[\w\-\.\+\!\'\(\)\%\:\@\&\=
- ]*(\*)+[\/\w\-\.\+\!\'\(\)\%\:\@\&\=
- ]+/g,o=/^(\/[\w\-\.\+\!\'\(\)\%\:\@\&\=
- ]*)+(\*)?$/g,u=e&&(""===e.path||e.path&&e.path.includes("*"));return""===t[r
- ]||"${path}"===t[r
- ]||("/"!==t[r
- ][
- 0
- ]?(n.invalidFlag=!0,n.pathError=!0,n.pathErrorTip="path必须以/开头"):t[r
- ].length>128?(n.invalidFlag=!0,n.pathError=!0,n.pathErrorTip="path长度不能超过128字符"):t[r
- ].includes("*")?u?!a.test(t[r
- ])&&o.test(t[r
- ])||(n.invalidFlag=!0,n.pathError=!0,n.pathErrorTip="仅当匹配条件URL路径包括通配符*时,重写后path也支持输入一个后缀*,两个*表示的内容一致"):!u&&t[r
- ].includes("*")?(n.invalidFlag=!0,n.pathError=!0,n.pathErrorTip="仅当匹配条件URL路径包括通配符*时,重写后path也支持输入一个后缀*,两个*表示的内容一致"):(n.invalidFlag=!0,n.pathError=!0,n.pathErrorTip="仅支持输入大小写字母、数字和特殊字符:-_.+!'()%:@&=/,区分大小写,且不能超过128字符"):i.test(t[r
- ])||(n.invalidFlag=!0,n.pathError=!0,n.pathErrorTip="仅支持输入大小写字母、数字和特殊字符:-_.+!'()%:@&=/,区分大小写,且不能超过128字符")),n
- },F=function(t){var r=arguments.length>1&&void 0!==arguments[
- 1
- ]?arguments[
- 1
- ]: "path",e={invalidFlag:!1,pathError:!1,pathErrorTip: ""
- },n=/^[\/\w\-\_\.\+\!\'\(\)\%\:\@\&\=
- ]*$/g;return""===t[r
- ]||"${path}"===t[r
- ]||("/"!==t[r
- ][
- 0
- ]?(e.invalidFlag=!0,e.pathError=!0,e.pathErrorTip="path必须以/开头"):t[r
- ].length>128?(e.invalidFlag=!0,e.pathError=!0,e.pathErrorTip="path长度不能超过128字符"):n.test(t[r
- ])||(e.invalidFlag=!0,e.pathError=!0,e.pathErrorTip="仅支持输入大小写字母、数字和特殊字符:-_.+!'()%:@&=/,区分大小写,且不能超过128字符")),e
- },P=function(t){var r=arguments.length>1&&void 0!==arguments[
- 1
- ]?arguments[
- 1
- ]: [],e=arguments.length>2&&void 0!==arguments[
- 2
- ]?arguments[
- 2
- ]: [];return r.map((function(r){return{protocol:r,ciphers:(t[r
- ]||[]).filter((function(t){return e.includes(t)
- }))
- }
- }))
- }
- }
- }
- ]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement