diff --git a/package/ctcgfw/luci-app-openclash/files/etc/openclash/rule_providers.list b/package/ctcgfw/luci-app-openclash/files/etc/openclash/rule_providers.list index d6d305bcbd..56ba77c028 100644 --- a/package/ctcgfw/luci-app-openclash/files/etc/openclash/rule_providers.list +++ b/package/ctcgfw/luci-app-openclash/files/etc/openclash/rule_providers.list @@ -1,15 +1,24 @@ 反劫持规则,ConnersHua,classical,DivineEngine/Profiles/master/Clash/RuleSet/Guard/,Hijacking.yaml +国内IP合集,rixCloud-Inc,ipcidr,rixCloud-Inc/Clash-Ruleset/master/,Domestic_IP.rule,Domestic_IP.yaml 国内IP白名单,ConnersHua,ipcidr,DivineEngine/Profiles/master/Clash/RuleSet/Extra/,ChinaIP.yaml +国内常用域名,rixCloud-Inc,domain,rixCloud-Inc/Clash-Ruleset/master/,Domestic_Domain.rule,Domestic_Domain.yaml 国内域名白名单,ConnersHua,classical,DivineEngine/Profiles/master/Clash/RuleSet/,China.yaml 国内流媒体合集,ConnersHua,classical,DivineEngine/Profiles/master/Clash/RuleSet/StreamingMedia/,StreamingCN.yaml 国内流媒体国际版合集,ConnersHua,classical,DivineEngine/Profiles/master/Clash/RuleSet/StreamingMedia/,StreamingSE.yaml +国外IP代理合集,rixCloud-Inc,ipcidr,rixCloud-Inc/Clash-Ruleset/master/,Global_IP.rule,Global_IP.yaml +国外域名代理合集,rixCloud-Inc,domain,rixCloud-Inc/Clash-Ruleset/master/,Global_Domain.rule,Global_Domain.yaml 国外常用网站合集,ConnersHua,classical,DivineEngine/Profiles/master/Clash/RuleSet/,Global.yaml 国外流媒体合集,ConnersHua,classical,DivineEngine/Profiles/master/Clash/RuleSet/StreamingMedia/,Streaming.yaml +国外流媒体(IP)合集,rixCloud-Inc,ipcidr,rixCloud-Inc/Clash-Ruleset/master/,Stream_IP.rule,Stream_IP.yaml +国外流媒体(域名)合集,rixCloud-Inc,domain,rixCloud-Inc/Clash-Ruleset/master/,Stream_Domain.rule,Stream_Domain.yaml 学术网站,ConnersHua,classical,DivineEngine/Profiles/master/Clash/RuleSet/Extra/,Scholar.yaml 常用隐私规则,ConnersHua,classical,DivineEngine/Profiles/master/Clash/RuleSet/,Unbreak.yaml 广告规则,ConnersHua,classical,DivineEngine/Profiles/master/Clash/RuleSet/Guard/,Advertising.yaml +广告(IP)合集,rixCloud-Inc,ipcidr,rixCloud-Inc/Clash-Ruleset/master/,Reject_IP.rule,Reject_IP.yaml +广告(域名)合集,rixCloud-Inc,domain,rixCloud-Inc/Clash-Ruleset/master/,Reject_Domain.rule,Reject_Domain.yaml +网易云音乐域名,rixCloud-Inc,domain,rixCloud-Inc/Clash-Ruleset/master/,Netease_Music_Domains.rule,Netease_Music_Domains.yaml +苹果服务合集,rixCloud-Inc,domain,rixCloud-Inc/Clash-Ruleset/master/,Apple_Domain.rule,Apple_Domain.yaml 隐私规则合集,ConnersHua,classical,DivineEngine/Profiles/master/Clash/RuleSet/Guard/,Privacy.yaml -GFW地址,ConnersHua,ipcidr,DivineEngine/Profiles/master/Clash/RuleSet/Extra/,IP-Blackhole.yaml AbemaTV,ConnersHua,classical,DivineEngine/Profiles/master/Clash/RuleSet/StreamingMedia/Video/,AbemaTV.yaml All-4,ConnersHua,classical,DivineEngine/Profiles/master/Clash/RuleSet/StreamingMedia/Video/,All-4.yaml AppStore,ConnersHua,classical,DivineEngine/Profiles/master/Clash/RuleSet/Extra/Apple/,AppStore.yaml @@ -28,6 +37,7 @@ DAZN,ConnersHua,classical,DivineEngine/Profiles/master/Clash/RuleSet/StreamingMe Deezer,ConnersHua,classical,DivineEngine/Profiles/master/Clash/RuleSet/StreamingMedia/Music/,Deezer.yaml DisneyPlus,ConnersHua,classical,DivineEngine/Profiles/master/Clash/RuleSet/StreamingMedia/Video/,DisneyPlus.yaml FOX,ConnersHua,classical,DivineEngine/Profiles/master/Clash/RuleSet/StreamingMedia/Video/,FOX.yaml +GFW地址,ConnersHua,ipcidr,DivineEngine/Profiles/master/Clash/RuleSet/Extra/,IP-Blackhole.yaml GoogleDrive,ConnersHua,classical,DivineEngine/Profiles/master/Clash/RuleSet/Extra/Google/,GoogleDrive.yaml GoogleSearch,ConnersHua,classical,DivineEngine/Profiles/master/Clash/RuleSet/Extra/Google/,GoogleSearch.yaml HBO,ConnersHua,classical,DivineEngine/Profiles/master/Clash/RuleSet/StreamingMedia/Video/,HBO.yaml diff --git a/package/ctcgfw/luci-app-openclash/files/usr/lib/lua/luci/model/cbi/openclash/rule-providers-manage.lua b/package/ctcgfw/luci-app-openclash/files/usr/lib/lua/luci/model/cbi/openclash/rule-providers-manage.lua index ecee0465be..e63d7c6db3 100644 --- a/package/ctcgfw/luci-app-openclash/files/usr/lib/lua/luci/model/cbi/openclash/rule-providers-manage.lua +++ b/package/ctcgfw/luci-app-openclash/files/usr/lib/lua/luci/model/cbi/openclash/rule-providers-manage.lua @@ -39,6 +39,16 @@ if not NXFS.access("/tmp/rule_providers_name") then end file = io.open("/tmp/rule_providers_name", "r"); +local function i(e) +local t=0 +local a={' KB',' MB',' GB',' TB'} +repeat +e=e/1024 +t=t+1 +until(e<=1024) +return string.format("%.1f",e)..a[t] +end + ---- Rules List local e={},o,t if NXFS.access("/tmp/rule_providers_name") then @@ -57,8 +67,10 @@ e[t].author=string.sub(luci.sys.exec(string.format("grep -F ',%s' /etc/openclash e[t].rule_type=string.sub(luci.sys.exec(string.format("grep -F ',%s' /etc/openclash/rule_providers.list |awk -F ',' '{print $3}' 2>/dev/null",o)),1,-2) RULE_FILE="/etc/openclash/rule_provider/".. e[t].filename if fs.mtime(RULE_FILE) then +e[t].size=i(fs.stat(RULE_FILE).size) e[t].mtime=os.date("%Y-%m-%d %H:%M:%S",fs.mtime(RULE_FILE)) else +e[t].size="/" e[t].mtime="/" end if fs.isfile(RULE_FILE) then @@ -82,6 +94,7 @@ tp=tb:option(DummyValue,"rule_type",translate("Rule Type")) nm=tb:option(DummyValue,"name",translate("Rule Name")) au=tb:option(DummyValue,"author",translate("Rule Author")) fm=tb:option(DummyValue,"filename",translate("File Name")) +sz=tb:option(DummyValue,"size",translate("Size")) mt=tb:option(DummyValue,"mtime",translate("Update Time")) btnis=tb:option(DummyValue,"filename",translate("Download Rule")) diff --git a/package/ctcgfw/luci-app-openclash/files/usr/share/openclash/dashboard/index.html b/package/ctcgfw/luci-app-openclash/files/usr/share/openclash/dashboard/index.html index b3dfdbcd2b..7f6ec9d879 100644 --- a/package/ctcgfw/luci-app-openclash/files/usr/share/openclash/dashboard/index.html +++ b/package/ctcgfw/luci-app-openclash/files/usr/share/openclash/dashboard/index.html @@ -1 +1 @@ -Clash
\ No newline at end of file +Clash
\ No newline at end of file diff --git a/package/ctcgfw/luci-app-openclash/files/usr/share/openclash/dashboard/js/1.bundle.22aafef55a2ae3675d94.min.js b/package/ctcgfw/luci-app-openclash/files/usr/share/openclash/dashboard/js/1.bundle.22aafef55a2ae3675d94.min.js deleted file mode 100644 index f60d3e5f2d..0000000000 --- a/package/ctcgfw/luci-app-openclash/files/usr/share/openclash/dashboard/js/1.bundle.22aafef55a2ae3675d94.min.js +++ /dev/null @@ -1,2 +0,0 @@ -/*! For license information please see 1.bundle.22aafef55a2ae3675d94.min.js.LICENSE.txt */ -(window.webpackJsonp=window.webpackJsonp||[]).push([[1],[function(e,t,n){"use strict";e.exports=n(54)},function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t=0||(o[n]=e[n]);return o}n.d(t,"a",(function(){return r}))},,,,function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}}(),e.exports=n(55)},function(e,t,n){e.exports=n(58)()},function(e,t,n){"use strict";e.exports=n(62)},function(e,t,n){var r=n(38)(Object,"create");e.exports=r},function(e,t,n){var r=n(109);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},function(e,t,n){var r=n(115);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},function(e,t,n){"use strict";function r(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r3?t.i-4:t.i:Array.isArray(e)?1:d(e)?2:p(e)?3:0}function s(e,t){return 2===l(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function c(e,t){return 2===l(e)?e.get(t):e[t]}function f(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function d(e){return $&&e instanceof Map}function p(e){return G&&e instanceof Set}function h(e){return e.o||e.t}function m(e,t){if(void 0===t&&(t=!1),Array.isArray(e))return e.slice();var n=Object.create(Object.getPrototypeOf(e));return u(e,(function(o){if(o!==Q){var i=Object.getOwnPropertyDescriptor(e,o),a=i.value;i.get&&(t||r(1),a=i.get.call(e)),i.enumerable?n[o]=a:Object.defineProperty(n,o,{value:a,writable:!0,configurable:!0})}})),n}function v(e,t){o(e)||y(e)||!i(e)||(l(e)>1&&(e.set=e.add=e.clear=e.delete=g),Object.freeze(e),t&&u(e,(function(e,t){return v(t,!0)}),!0))}function g(){r(2)}function y(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function b(e){var t=Z[e];return t||r(19,e),t}function w(e,t){Z[e]=t}function S(){return W}function x(e,t){t&&(b("Patches"),e.u=[],e.s=[],e.v=t)}function _(e){E(e),e.p.forEach(k),e.p=null}function E(e){e===W&&(W=e.l)}function T(e){return W={p:[],l:W,h:e,m:!0,_:0}}function k(e){var t=e[Q];0===t.i||1===t.i?t.j():t.O=!0}function C(e,t){t._=t.p.length;var n=t.p[0],o=void 0!==e&&e!==n;return t.h.g||b("ES5").S(t,e,o),o?(n[Q].P&&(_(t),r(4)),i(e)&&(e=R(t,e),t.l||O(t,e)),t.u&&b("Patches").M(n[Q],e,t.u,t.s)):e=R(t,n,[]),_(t),t.u&&t.v(t.u,t.s),e!==Y?e:void 0}function R(e,t,n){if(y(t))return t;var r=t[Q];if(!r)return u(t,(function(o,i){return P(e,r,t,o,i,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return O(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=4===r.i||5===r.i?r.o=m(r.k,!0):r.o;u(o,(function(t,i){return P(e,r,o,t,i,n)})),O(e,o,!1),n&&e.u&&b("Patches").R(r,n,e.u,e.s)}return r.o}function P(e,t,n,r,a,u){if(o(a)){var d=R(e,a,u&&t&&3!==t.i&&!s(t.D,r)?u.concat(r):void 0);if(h=r,m=d,2===(v=l(p=n))?p.set(h,m):3===v?(p.delete(h),p.add(m)):p[h]=m,!o(d))return;e.m=!1}var p,h,m,v;if((!t||!f(a,c(t.t,r)))&&i(a)){if(!e.h.N&&e._<1)return;R(e,a),t&&t.A.l||O(e,a)}}function O(e,t,n){void 0===n&&(n=!1),e.h.N&&e.m&&v(t,n)}function M(e,t){var n=e[Q],r=Reflect.getOwnPropertyDescriptor(n?h(n):e,t);return r&&r.value}function A(e){if(!e.P){if(e.P=!0,0===e.i||1===e.i){var t=e.o=m(e.t);u(e.p,(function(e,n){t[e]=n})),e.p=void 0}e.l&&A(e.l)}}function I(e){e.o||(e.o=m(e.t))}function N(e,t,n){var r=d(t)?b("MapSet").T(t,n):p(t)?b("MapSet").F(t,n):e.g?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:S(),P:!1,I:!1,D:{},l:t,t:e,k:null,p:{},o:null,j:null,C:!1},o=r,i=ee;n&&(o=[r],i=te);var a=Proxy.revocable(o,i),u=a.revoke,l=a.proxy;return r.k=l,r.j=u,l}(t,n):b("ES5").J(t,n);return(n?n.A:S()).p.push(r),r}function z(e,t){e.g?A(t):b("ES5").K(t)}function L(){function e(e,t){var n=e[Q];if(n&&!n.$){n.$=!0;var r=e[t];return n.$=!1,r}return e[t]}function t(e){e.P||(e.P=!0,e.l&&t(e.l))}function n(e){e.o||(e.o=a(e.t))}function a(e){var t=e&&e[Q];if(t){t.$=!0;var n=m(t.k,!0);return t.$=!1,n}return m(e)}function l(e){for(var n=e.length-1;n>=0;n--){var r=e[n][Q];if(!r.P)switch(r.i){case 5:d(r)&&t(r);break;case 4:c(r)&&t(r)}}}function c(e){for(var t=e.t,n=e.k,r=Object.keys(n),o=r.length-1;o>=0;o--){var i=r[o],a=t[i];if(void 0===a&&!s(t,i))return!0;var u=n[i],l=u&&u[Q];if(l?l.t!==a:!f(u,a))return!0}return r.length!==Object.keys(t).length}function d(e){var t=e.k;if(t.length!==e.t.length)return!0;var n=Object.getOwnPropertyDescriptor(t,t.length-1);return!(!n||n.get)}function p(e){e.O&&r(3,JSON.stringify(h(e)))}var v={};w("ES5",{J:function(r,o){var l=Array.isArray(r),s=a(r);u(s,(function(o){!function(r,o,a){var u=v[o];u?u.enumerable=a:v[o]=u={enumerable:a,get:function(){return function(t,r){p(t);var o=e(h(t),r);return t.$?o:o===e(t.t,r)&&i(o)?(n(t),t.o[r]=N(t.A.h,o,t)):o}(this[Q],o)},set:function(r){!function(r,o,i){if(p(r),r.D[o]=!0,!r.P){if(f(i,e(h(r),o)))return;t(r),n(r)}r.o[o]=i}(this[Q],o,r)}},Object.defineProperty(r,o,u)}(s,o,l||function(e,t){var n=Object.getOwnPropertyDescriptor(e,t);return!(!n||!n.enumerable)}(r,o))}));var c={i:l?5:4,A:o?o.A:S(),P:!1,$:!1,I:!1,D:{},l:o,t:r,k:s,o:null,O:!1,C:!1};return Object.defineProperty(s,Q,{value:c,writable:!0}),s},K:t,S:function(e,n,r){e.p.forEach((function(e){e[Q].$=!0})),r?o(n)&&n[Q].A===e&&l(e.p):(e.u&&function e(n){if(n&&"object"==typeof n){var r=n[Q];if(r){var o=r.t,i=r.k,a=r.D,l=r.i;if(4===l)u(i,(function(n){n!==Q&&(void 0!==o[n]||s(o,n)?a[n]||e(i[n]):(a[n]=!0,t(r)))})),u(o,(function(e){void 0!==i[e]||s(i,e)||(a[e]=!1,t(r))}));else if(5===l){if(d(r)&&(t(r),a.length=!0),i.lengthd&&a[p-1]===l[p+f-1];)--p;for(var h=d;h=p;--g){var y=r.concat([g]);o[v+g-p]={op:n,path:y,value:t(l[g])},i.push({op:"remove",path:y})}}(e,r,o,i);case 3:return function(e,t,r,o){var i=e.t,a=e.o,u=0;i.forEach((function(e){if(!a.has(e)){var i=t.concat([u]);r.push({op:"remove",path:i,value:e}),o.unshift({op:n,path:i,value:e})}u++})),u=0,a.forEach((function(e){if(!i.has(e)){var a=t.concat([u]);r.push({op:n,path:a,value:e}),o.unshift({op:"remove",path:a,value:e})}u++}))}(e,r,o,i)}},M:function(e,t,n,r){n.push({op:"replace",path:[],value:t}),r.push({op:"replace",path:[],value:e.t})}})}function j(){function e(e,t){function n(){this.constructor=e}a(e,t),e.prototype=(n.prototype=t.prototype,new n)}function t(e){e.o||(e.D=new Map,e.o=new Map(e.t))}function n(e){e.o||(e.o=new Set,e.t.forEach((function(t){if(i(t)){var n=N(e.A.h,t,e);e.p.set(t,n),e.o.add(n)}else e.o.add(t)})))}function o(e){e.O&&r(3,JSON.stringify(h(e)))}var a=function(e,t){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},u=function(){function n(e,t){return this[Q]={i:2,l:t,A:t?t.A:S(),P:!1,I:!1,o:void 0,D:void 0,t:e,k:this,C:!1,O:!1},this}e(n,Map);var r=n.prototype;return Object.defineProperty(r,"size",{get:function(){return h(this[Q]).size}}),r.has=function(e){return h(this[Q]).has(e)},r.set=function(e,n){var r=this[Q];return o(r),h(r).get(e)!==n&&(t(r),z(r.A.h,r),r.D.set(e,!0),r.o.set(e,n),r.D.set(e,!0)),this},r.delete=function(e){if(!this.has(e))return!1;var n=this[Q];return o(n),t(n),z(n.A.h,n),n.D.set(e,!1),n.o.delete(e),!0},r.clear=function(){var e=this[Q];return o(e),t(e),z(e.A.h,e),e.D=new Map,e.o.clear()},r.forEach=function(e,t){var n=this;h(this[Q]).forEach((function(r,o){e.call(t,n.get(o),o,n)}))},r.get=function(e){var n=this[Q];o(n);var r=h(n).get(e);if(n.I||!i(r))return r;if(r!==n.t.get(e))return r;var a=N(n.A.h,r,n);return t(n),n.o.set(e,a),a},r.keys=function(){return h(this[Q]).keys()},r.values=function(){var e,t=this,n=this.keys();return(e={})[X]=function(){return t.values()},e.next=function(){var e=n.next();return e.done?e:{done:!1,value:t.get(e.value)}},e},r.entries=function(){var e,t=this,n=this.keys();return(e={})[X]=function(){return t.entries()},e.next=function(){var e=n.next();if(e.done)return e;var r=t.get(e.value);return{done:!1,value:[e.value,r]}},e},r[X]=function(){return this.entries()},n}(),l=function(){function t(e,t){return this[Q]={i:3,l:t,A:t?t.A:S(),P:!1,I:!1,o:void 0,t:e,k:this,p:new Map,O:!1,C:!1},this}e(t,Set);var r=t.prototype;return Object.defineProperty(r,"size",{get:function(){return h(this[Q]).size}}),r.has=function(e){var t=this[Q];return o(t),t.o?!!t.o.has(e)||!(!t.p.has(e)||!t.o.has(t.p.get(e))):t.t.has(e)},r.add=function(e){var t=this[Q];return o(t),this.has(e)||(n(t),z(t.A.h,t),t.o.add(e)),this},r.delete=function(e){if(!this.has(e))return!1;var t=this[Q];return o(t),n(t),z(t.A.h,t),t.o.delete(e)||!!t.p.has(e)&&t.o.delete(t.p.get(e))},r.clear=function(){var e=this[Q];return o(e),n(e),z(e.A.h,e),e.o.clear()},r.values=function(){var e=this[Q];return o(e),n(e),e.o.values()},r.entries=function(){var e=this[Q];return o(e),n(e),e.o.entries()},r.keys=function(){return this.values()},r[X]=function(){return this.values()},r.forEach=function(e,t){for(var n=this.values(),r=n.next();!r.done;)e.call(t,r.value,r.value,this),r=n.next()},t}();w("MapSet",{T:function(e,t){return new u(e,t)},F:function(e,t){return new l(e,t)}})}function D(){L(),j(),F()}function B(e){return e}function U(e){return e}n.r(t),n.d(t,"Immer",(function(){return ne})),n.d(t,"applyPatches",(function(){return le})),n.d(t,"castDraft",(function(){return B})),n.d(t,"castImmutable",(function(){return U})),n.d(t,"createDraft",(function(){return se})),n.d(t,"enableAllPlugins",(function(){return D})),n.d(t,"enableES5",(function(){return L})),n.d(t,"enableMapSet",(function(){return j})),n.d(t,"enablePatches",(function(){return F})),n.d(t,"finishDraft",(function(){return ce})),n.d(t,"immerable",(function(){return K})),n.d(t,"isDraft",(function(){return o})),n.d(t,"isDraftable",(function(){return i})),n.d(t,"nothing",(function(){return Y})),n.d(t,"original",(function(){return a})),n.d(t,"produce",(function(){return oe})),n.d(t,"produceWithPatches",(function(){return ie})),n.d(t,"setAutoFreeze",(function(){return ae})),n.d(t,"setUseProxies",(function(){return ue}));var V,W,H="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),$="undefined"!=typeof Map,G="undefined"!=typeof Set,q="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,Y=H?Symbol("immer-nothing"):((V={})["immer-nothing"]=!0,V),K=H?Symbol("immer-draftable"):"__$immer_draftable",Q=H?Symbol("immer-state"):"__$immer_state",X="undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator",J="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Z={},ee={get:function(e,t){if(t===Q)return e;var n=e.p;if(!e.P&&s(n,t))return n[t];var r=h(e)[t];if(e.I||!i(r))return r;if(e.P){if(r!==M(e.t,t))return r;n=e.o}return n[t]=N(e.A.h,r,e)},has:function(e,t){return t in h(e)},ownKeys:function(e){return Reflect.ownKeys(h(e))},set:function(e,t,n){if(!e.P){var r=M(e.t,t);if(n?f(r,n)||n===e.p[t]:f(r,n)&&t in e.t)return!0;I(e),A(e)}return e.D[t]=!0,e.o[t]=n,!0},deleteProperty:function(e,t){return void 0!==M(e.t,t)||t in e.t?(e.D[t]=!1,I(e),A(e)):e.D[t]&&delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=h(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&(r.writable=!0,r.configurable=1!==e.i||"length"!==t),r},defineProperty:function(){r(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){r(12)}},te={};u(ee,(function(e,t){te[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),te.deleteProperty=function(e,t){return ee.deleteProperty.call(this,e[0],t)},te.set=function(e,t,n){return ee.set.call(this,e[0],t,n,e[0])};var ne=function(){function e(e){this.g=q,this.N=!1,"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),this.produce=this.produce.bind(this),this.produceWithPatches=this.produceWithPatches.bind(this)}var t=e.prototype;return t.produce=function(e,t,n){if("function"==typeof e&&"function"!=typeof t){var o=t;t=e;var a=this;return function(e){var n=this;void 0===e&&(e=o);for(var r=arguments.length,i=Array(r>1?r-1:0),u=1;u1?n-1:0),i=1;i=0;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}var i=b("Patches").U;return o(e)?i(e,t):this.produce(e,(function(e){return i(e,t.slice(n+1))}))},e}(),re=new ne,oe=re.produce,ie=re.produceWithPatches.bind(re),ae=re.setAutoFreeze.bind(re),ue=re.setUseProxies.bind(re),le=re.applyPatches.bind(re),se=re.createDraft.bind(re),ce=re.finishDraft.bind(re);t.default=oe},,function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"==typeof window&&(n=window)}e.exports=n},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){var r=n(37),o=n(88);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},function(e,t,n){var r=n(24).Symbol;e.exports=r},function(e,t,n){var r=n(85),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},function(e,t,n){var r=n(119);e.exports=function(e){return null==e?"":r(e)}},,function(e,t,n){e.exports=function(){"use strict";var e="millisecond",t="second",n="minute",r="hour",o="day",i="week",a="month",u="quarter",l="year",s=/^(\d{4})-?(\d{1,2})-?(\d{0,2})[^0-9]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?.?(\d{1,3})?$/,c=/\[([^\]]+)]|Y{2,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,f=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},d={s:f,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),o=n%60;return(t<=0?"+":"-")+f(r,2,"0")+":"+f(o,2,"0")},m:function(e,t){var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,a),o=t-r<0,i=e.clone().add(n+(o?-1:1),a);return Number(-(n+(t-r)/(o?r-i:i-r))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(s){return{M:a,y:l,w:i,d:o,D:"date",h:r,m:n,s:t,ms:e,Q:u}[s]||String(s||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},p={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("_")},h="en",m={};m[h]=p;var v=function(e){return e instanceof w},g=function(e,t,n){var r;if(!e)return h;if("string"==typeof e)m[e]&&(r=e),t&&(m[e]=t,r=e);else{var o=e.name;m[o]=e,r=o}return!n&&r&&(h=r),r||!n&&h},y=function(e,t){if(v(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new w(n)},b=d;b.l=g,b.i=v,b.w=function(e,t){return y(e,{locale:t.$L,utc:t.$u,$offset:t.$offset})};var w=function(){function f(e){this.$L=this.$L||g(e.locale,null,!0),this.parse(e)}var d=f.prototype;return d.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(b.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(s);if(r)return n?new Date(Date.UTC(r[1],r[2]-1,r[3]||1,r[4]||0,r[5]||0,r[6]||0,r[7]||0)):new Date(r[1],r[2]-1,r[3]||1,r[4]||0,r[5]||0,r[6]||0,r[7]||0)}return new Date(t)}(e),this.init()},d.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},d.$utils=function(){return b},d.isValid=function(){return!("Invalid Date"===this.$d.toString())},d.isSame=function(e,t){var n=y(e);return this.startOf(t)<=n&&n<=this.endOf(t)},d.isAfter=function(e,t){return y(e)C(e,null,!1)),this.__cache.clear(),this.notify()}delete(e,t=!0){const[n]=this.serializeKey(e);t&&C(e,null,!1),this.__cache.delete(n),this.notify()}serializeKey(e){let t=null;if("function"==typeof e)try{e=e()}catch(n){e=""}Array.isArray(e)?(t=e,e=function(e){if(!e.length)return"";let t="arg";for(let n=0;n{if(!t)return;t=!1;const n=this.__listeners.indexOf(e);n>-1&&(this.__listeners[n]=this.__listeners[this.__listeners.length-1],this.__listeners.length--)}}notify(){for(let e of this.__listeners)e()}},d={},p={},h={},m={},v={};const g="undefined"!=typeof window&&navigator.connection&&-1!==["slow-2g","2g"].indexOf(navigator.connection.effectiveType),y={onLoadingSlow:()=>{},onSuccess:()=>{},onError:()=>{},onErrorRetry:function(e,t,n,r,o){if(!u())return;if(n.errorRetryCount&&o.retryCount>n.errorRetryCount)return;const i=Math.min(o.retryCount||0,8),a=~~((Math.random()+.5)*(1<{if(u()&&l())for(let e in h)h[e][0]&&h[e][0]()};window.addEventListener("visibilitychange",e,!1),window.addEventListener("focus",e,!1),b=!0}var w=y;const S=Object(r.createContext)({});S.displayName="SWRConfigContext";var x=S;const _="undefined"==typeof window,E=_?r.useEffect:r.useLayoutEffect,T=(e,t=!0)=>{const[n,,r]=f.serializeKey(e);if(!n)return;const o=m[n];if(n&&o){const e=f.get(n),i=f.get(r);for(let n=0;n0)}},k=(e,t,n)=>{const r=m[e];if(e&&r)for(let o=0;o{const[r]=f.serializeKey(e);if(!r)return;if(void 0===t)return T(e,n);let o,i;if(v[r]=Date.now()-1,t&&"function"==typeof t)try{o=await t(f.get(r))}catch(u){i=u}else if(t&&"function"==typeof t.then)try{o=await t}catch(u){i=u}else o=t;void 0!==o&&f.set(r,o,!1);const a=m[r];if(a)for(let l=0;l0);if(i)throw i;return o};const R=x.Provider;var P=function(...e){let t,n,o={};e.length>=1&&(t=e[0]),e.length>2?(n=e[1],o=e[2]):"function"==typeof e[1]?n=e[1]:"object"==typeof e[1]&&(o=e[1]);const[i,a,s]=f.serializeKey(t);o=Object.assign({},w,Object(r.useContext)(x),o),void 0===n&&(n=o.fetcher);const c=f.get(i)||o.initialData,g=f.get(s),y=Object(r.useRef)({data:!1,error:!1,isValidating:!1}),b=Object(r.useRef)({data:c,error:g,isValidating:!1}),S=Object(r.useState)(null)[1];let T=Object(r.useCallback)(e=>{let t=!1;for(let n in e)b.current[n]=e[n],y.current[n]&&(t=!0);(t||o.suspense)&&S({})},[]);const R=Object(r.useRef)(!1),P=Object(r.useRef)(i),O=Object(r.useCallback)((e,t)=>C(i,e,t),[i]),M=Object(r.useCallback)(async(e={})=>{if(!i||!n)return!1;if(R.current)return!1;e=Object.assign({dedupe:!1},e);let t=!0,r=void 0!==d[i]&&e.dedupe;try{let e,u;if(T({isValidating:!0}),r?(u=p[i],e=await d[i]):(d[i]&&(v[i]=Date.now()-1),o.loadingTimeout&&!f.get(i)&&setTimeout(()=>{t&&o.onLoadingSlow(i,o)},o.loadingTimeout),d[i]=null!==a?n(...a):n(i),p[i]=u=Date.now(),e=await d[i],setTimeout(()=>{delete d[i],delete p[i]},o.dedupingInterval),o.onSuccess(e,i,o)),v[i]&&u<=v[i])return T({isValidating:!1}),!1;f.set(i,e,!1),f.set(s,void 0,!1);const l={isValidating:!1};void 0!==b.current.error&&(l.error=void 0),o.compare(b.current.data,e)||(l.data=e),T(l),r||k(i,e,void 0)}catch(u){if(delete d[i],delete p[i],f.set(s,u,!1),b.current.error!==u&&(T({isValidating:!1,error:u}),r||k(i,void 0,u)),o.onError(u,i,o),o.shouldRetryOnError){const t=(e.retryCount||0)+1;o.onErrorRetry(u,i,o,M,Object.assign({dedupe:!0},e,{retryCount:t}))}}return t=!1,!0},[i]);if(E(()=>{if(!i)return;R.current=!1;const e=b.current.data,t=f.get(i)||o.initialData;P.current===i&&o.compare(e,t)||(T({data:t}),P.current=i);const n=()=>M({dedupe:!0});let r;(o.revalidateOnMount||!o.initialData&&void 0===o.revalidateOnMount)&&(void 0!==t&&!_&&window.requestIdleCallback?window.requestIdleCallback(n):n()),o.revalidateOnFocus&&(r=function(e,t){let n=!1;return(...r)=>{n||(n=!0,e(...r),setTimeout(()=>n=!1,t))}}(n,o.focusThrottleInterval),h[i]?h[i].push(r):h[i]=[r]);const a=(e=!0,t,r,i=!0)=>{const a={};let u=!1;return void 0===t||o.compare(b.current.data,t)||(a.data=t,u=!0),b.current.error!==r&&(a.error=r,u=!0),u&&T(a),!!e&&(i?n():M())};m[i]?m[i].push(a):m[i]=[a];let u=null;return!_&&window.addEventListener&&o.revalidateOnReconnect&&window.addEventListener("online",u=n),()=>{if(T=()=>null,R.current=!0,r&&h[i]){const e=h[i],t=e.indexOf(r);t>=0&&(e[t]=e[e.length-1],e.pop())}if(m[i]){const e=m[i],t=e.indexOf(a);t>=0&&(e[t]=e[e.length-1],e.pop())}!_&&window.removeEventListener&&null!==u&&window.removeEventListener("online",u)}},[i,M]),E(()=>{let e=null;const t=async()=>{b.current.error||!o.refreshWhenHidden&&!u()||!o.refreshWhenOffline&&!l()||await M({dedupe:!0}),o.refreshInterval&&(e=setTimeout(t,o.refreshInterval))};return o.refreshInterval&&(e=setTimeout(t,o.refreshInterval)),()=>{e&&clearTimeout(e)}},[o.refreshInterval,o.refreshWhenHidden,o.refreshWhenOffline,M]),o.suspense){let e=f.get(i),t=f.get(s);if(void 0===e&&void 0===t){if(d[i]||M(),d[i]&&"function"==typeof d[i].then)throw d[i];e=d[i]}if(void 0===e&&t)throw t;return{error:t,data:e,revalidate:M,mutate:O,isValidating:b.current.isValidating}}return Object(r.useMemo)(()=>{const e={revalidate:M,mutate:O};return Object.defineProperties(e,{error:{get:function(){return y.current.error=!0,P.current===i?b.current.error:g}},data:{get:function(){return y.current.data=!0,P.current===i?b.current.data:c}},isValidating:{get:function(){return y.current.isValidating=!0,b.current.isValidating}}}),e},[M])};const O=new Map;function M(e,t,n,i=[]){const a="_swr_page_count_"+e,u="_swr_page_offset_"+e,[l,s]=Object(r.useState)(f.get(a)||1),[c,d]=Object(r.useState)(f.get(u)||[null]),[p,h]=Object(r.useState)([]),m=Object(r.useRef)(t),v=Object(r.useRef)(!1),g=Object(r.useCallback)(e=>{const t=m.current(e);return t&&!t.length?v.current=!0:v.current=!1,t},[]),y=null===c[l],b=l===c.length,w=y&&1===l&&v.current,S=Object(r.useCallback)(()=>{b||y||s(e=>(f.set(a,e+1),e+1))},[b||y]),x=Object(r.useCallback)(t,i);m.current=x;return{pages:Object(r.useMemo)(()=>{const t=e=>t=>(p[e]&&p[e].data===t.data&&p[e].error===t.error&&p[e].revalidate===t.revalidate||setTimeout(()=>{if(h(n=>{const r=[...n];return r[e]={data:t.data,error:t.error,revalidate:t.revalidate,isValidating:t.isValidating,mutate:t.mutate},r}),void 0!==t.data){const r=n(t,e);c[e+1]!==r&&d(t=>{const n=[...t];return n[e+1]=r,f.set(u,n),n})}}),t),r=[];O.has(e)||O.set(e,[]);const i=O.get(e);for(let e=0;e=0;d--){var p=o[d];"."===p?l(o,d):".."===p?(l(o,d),f++):f&&(l(o,d),f--)}if(!s)for(;f--;f)o.unshift("..");!s||""===o[0]||o[0]&&u(o[0])||o.unshift("");var h=o.join("/");return n&&"/"!==h.substr(-1)&&(h+="/"),h};function c(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}var f=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every((function(t,r){return e(t,n[r])}));if("object"==typeof t||"object"==typeof n){var r=c(t),o=c(n);return r!==t||o!==n?e(r,o):Object.keys(Object.assign({},t,n)).every((function(r){return e(t[r],n[r])}))}return!1};var d=function(e,t){if(!e)throw new Error("Invariant failed")};function p(e){return"/"===e.charAt(0)?e:"/"+e}function h(e){return"/"===e.charAt(0)?e.substr(1):e}function m(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function v(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function g(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function y(e,t,n,r){var o;"string"==typeof e?(o=function(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var i=t.indexOf("?");return-1!==i&&(n=t.substr(i),t=t.substr(0,i)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e)).state=t:(void 0===(o=Object(a.a)({},e)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==t&&void 0===o.state&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(i){throw i instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):i}return n&&(o.key=n),r?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=s(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o}function b(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,o){if(null!=e){var i="function"==typeof e?e(t,n):e;"string"==typeof i?"function"==typeof r?r(i,o):o(!0):o(!1!==i)}else o(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;rt?n.splice(t,n.length-t,r):n.push(r),f({action:"PUSH",location:r,index:t,entries:n})}}))},replace:function(e,t){var r=y(e,t,d(),w.location);c.confirmTransitionTo(r,"REPLACE",n,(function(e){e&&(w.entries[w.index]=r,f({action:"REPLACE",location:r}))}))},go:v,goBack:function(){v(-1)},goForward:function(){v(1)},canGo:function(e){var t=w.index+e;return t>=0&&t=200&&e<300}};l.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],(function(e){l.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){l.headers[e]=r.merge(i)})),e.exports=l}).call(this,n(132))},function(e,t,n){"use strict";var r=n(6),o=n(134),i=n(41),a=n(136),u=n(139),l=n(140),s=n(45);e.exports=function(e){return new Promise((function(t,c){var f=e.data,d=e.headers;r.isFormData(f)&&delete d["Content-Type"];var p=new XMLHttpRequest;if(e.auth){var h=e.auth.username||"",m=e.auth.password||"";d.Authorization="Basic "+btoa(h+":"+m)}var v=a(e.baseURL,e.url);if(p.open(e.method.toUpperCase(),i(v,e.params,e.paramsSerializer),!0),p.timeout=e.timeout,p.onreadystatechange=function(){if(p&&4===p.readyState&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in p?u(p.getAllResponseHeaders()):null,r={data:e.responseType&&"text"!==e.responseType?p.response:p.responseText,status:p.status,statusText:p.statusText,headers:n,config:e,request:p};o(t,c,r),p=null}},p.onabort=function(){p&&(c(s("Request aborted",e,"ECONNABORTED",p)),p=null)},p.onerror=function(){c(s("Network Error",e,null,p)),p=null},p.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),c(s(t,e,"ECONNABORTED",p)),p=null},r.isStandardBrowserEnv()){var g=n(141),y=(e.withCredentials||l(v))&&e.xsrfCookieName?g.read(e.xsrfCookieName):void 0;y&&(d[e.xsrfHeaderName]=y)}if("setRequestHeader"in p&&r.forEach(d,(function(e,t){void 0===f&&"content-type"===t.toLowerCase()?delete d[t]:p.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(p.withCredentials=!!e.withCredentials),e.responseType)try{p.responseType=e.responseType}catch(b){if("json"!==e.responseType)throw b}"function"==typeof e.onDownloadProgress&&p.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&p.upload&&p.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){p&&(p.abort(),c(e),p=null)})),void 0===f&&(f=null),p.send(f)}))}},function(e,t,n){"use strict";var r=n(135);e.exports=function(e,t,n,o,i){var a=new Error(e);return r(a,t,n,o,i)}},function(e,t,n){"use strict";var r=n(6);e.exports=function(e,t){t=t||{};var n={},o=["url","method","params","data"],i=["headers","auth","proxy"],a=["baseURL","url","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"];r.forEach(o,(function(e){void 0!==t[e]&&(n[e]=t[e])})),r.forEach(i,(function(o){r.isObject(t[o])?n[o]=r.deepMerge(e[o],t[o]):void 0!==t[o]?n[o]=t[o]:r.isObject(e[o])?n[o]=r.deepMerge(e[o]):void 0!==e[o]&&(n[o]=e[o])})),r.forEach(a,(function(r){void 0!==t[r]?n[r]=t[r]:void 0!==e[r]&&(n[r]=e[r])}));var u=o.concat(i).concat(a),l=Object.keys(t).filter((function(e){return-1===u.indexOf(e)}));return r.forEach(l,(function(r){void 0!==t[r]?n[r]=t[r]:void 0!==e[r]&&(n[r]=e[r])})),n}},function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},,function(e,t){var n=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return n.test(e)}},function(e,t,n){"use strict";var r=n(33),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},u={};function l(e){return r.isMemo(e)?a:u[e.$$typeof]||o}u[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},u[r.Memo]=a;var s=Object.defineProperty,c=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=p(n);o&&o!==h&&e(t,o,r)}var a=c(n);f&&(a=a.concat(f(n)));for(var u=l(t),m=l(n),v=0;vO.length&&O.push(e)}function I(e,t,n){return null==e?0:function e(t,n,r,o){var u=typeof t;"undefined"!==u&&"boolean"!==u||(t=null);var l=!1;if(null===t)l=!0;else switch(u){case"string":case"number":l=!0;break;case"object":switch(t.$$typeof){case i:case a:l=!0}}if(l)return r(o,t,""===n?"."+N(t,0):n),1;if(l=0,n=""===n?".":n+":",Array.isArray(t))for(var s=0;s