@nocobase/plugin-multi-keyword-filter 2.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +99 -0
  3. package/client.d.ts +2 -0
  4. package/client.js +1 -0
  5. package/dist/client/0d9b6225e99c9b66.js +10 -0
  6. package/dist/client/MultipleKeywordsInput.d.ts +15 -0
  7. package/dist/client/index.d.ts +15 -0
  8. package/dist/client/index.js +10 -0
  9. package/dist/client/interceptor.d.ts +9 -0
  10. package/dist/client/locale.d.ts +10 -0
  11. package/dist/externalVersion.js +20 -0
  12. package/dist/index.d.ts +10 -0
  13. package/dist/index.js +48 -0
  14. package/dist/locale/de-DE.json +18 -0
  15. package/dist/locale/en-US.json +18 -0
  16. package/dist/locale/es-ES.json +18 -0
  17. package/dist/locale/fr-FR.json +18 -0
  18. package/dist/locale/hu-HU.json +18 -0
  19. package/dist/locale/id-ID.json +18 -0
  20. package/dist/locale/it-IT.json +18 -0
  21. package/dist/locale/ja-JP.json +18 -0
  22. package/dist/locale/ko-KR.json +18 -0
  23. package/dist/locale/nl-NL.json +18 -0
  24. package/dist/locale/pt-BR.json +18 -0
  25. package/dist/locale/ru-RU.json +18 -0
  26. package/dist/locale/tr-TR.json +18 -0
  27. package/dist/locale/uk-UA.json +18 -0
  28. package/dist/locale/vi-VN.json +18 -0
  29. package/dist/locale/zh-CN.json +18 -0
  30. package/dist/locale/zh-TW.json +18 -0
  31. package/dist/node_modules/qs/.editorconfig +43 -0
  32. package/dist/node_modules/qs/.eslintrc +38 -0
  33. package/dist/node_modules/qs/.github/FUNDING.yml +12 -0
  34. package/dist/node_modules/qs/.nycrc +13 -0
  35. package/dist/node_modules/qs/dist/qs.js +2087 -0
  36. package/dist/node_modules/qs/lib/formats.js +23 -0
  37. package/dist/node_modules/qs/lib/index.js +1 -0
  38. package/dist/node_modules/qs/lib/parse.js +264 -0
  39. package/dist/node_modules/qs/lib/stringify.js +320 -0
  40. package/dist/node_modules/qs/lib/utils.js +252 -0
  41. package/dist/node_modules/qs/package.json +1 -0
  42. package/dist/node_modules/qs/test/empty-keys-cases.js +37 -0
  43. package/dist/node_modules/qs/test/parse.js +898 -0
  44. package/dist/node_modules/qs/test/stringify.js +972 -0
  45. package/dist/node_modules/qs/test/utils.js +136 -0
  46. package/dist/server/index.d.ts +9 -0
  47. package/dist/server/index.js +42 -0
  48. package/dist/server/middlewares.d.ts +10 -0
  49. package/dist/server/middlewares.js +63 -0
  50. package/dist/server/plugin.d.ts +19 -0
  51. package/dist/server/plugin.js +58 -0
  52. package/package.json +31 -0
  53. package/server.d.ts +2 -0
  54. package/server.js +1 -0
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ import React, { FC } from 'react';
10
+ export declare const MultipleKeywordsInput: FC<{
11
+ fieldInterface: string;
12
+ value?: string[];
13
+ onChange?: (value: string[], option?: any) => void;
14
+ style?: React.CSSProperties;
15
+ }>;
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ import { Plugin } from '@nocobase/client';
10
+ export declare class PluginFilterOperatorMultipleKeywordsClient extends Plugin {
11
+ afterAdd(): Promise<void>;
12
+ beforeLoad(): Promise<void>;
13
+ load(): Promise<void>;
14
+ }
15
+ export default PluginFilterOperatorMultipleKeywordsClient;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+
10
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("lodash"),require("@nocobase/client"),require("@formily/react"),require("@ant-design/icons"),require("antd"),require("react-i18next")):"function"==typeof define&&define.amd?define("@nocobase/plugin-multi-keyword-filter",["react","lodash","@nocobase/client","@formily/react","@ant-design/icons","antd","react-i18next"],t):"object"==typeof exports?exports["@nocobase/plugin-multi-keyword-filter"]=t(require("react"),require("lodash"),require("@nocobase/client"),require("@formily/react"),require("@ant-design/icons"),require("antd"),require("react-i18next")):e["@nocobase/plugin-multi-keyword-filter"]=t(e.react,e.lodash,e["@nocobase/client"],e["@formily/react"],e["@ant-design/icons"],e.antd,e["react-i18next"])}(self,function(e,t,r,n,o,i,a){return function(){var l,u,c,f,p,s,y={734:function(e,t,r){"use strict";var n=r(308),o=r(907),i=o(n("String.prototype.indexOf"));e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&i(e,".prototype.")>-1?o(r):r}},907:function(e,t,r){"use strict";var n=r(786),o=r(308),i=r(613),a=o("%TypeError%"),l=o("%Function.prototype.apply%"),u=o("%Function.prototype.call%"),c=o("%Reflect.apply%",!0)||n.call(u,l),f=o("%Object.defineProperty%",!0),p=o("%Math.max%");if(f)try{f({},"a",{value:1})}catch(e){f=null}e.exports=function(e){if("function"!=typeof e)throw new a("a function is required");var t=c(n,u,arguments);return i(t,1+p(0,e.length-(arguments.length-1)),!0)};var s=function(){return c(n,l,arguments)};f?f(e.exports,"apply",{value:s}):e.exports.apply=s},788:function(e,t,r){"use strict";var n=r(308)("%Object.defineProperty%",!0),o=function(){if(n)try{return n({},"a",{value:1}),!0}catch(e){}return!1};o.hasArrayLengthDefineBug=function(){if(!o())return null;try{return 1!==n([],"length",{value:1}).length}catch(e){return!0}},e.exports=o},613:function(e,t,r){"use strict";var n=r(308),o=r(388),i=r(788)(),a=r(322),l=n("%TypeError%"),u=n("%Math.floor%");e.exports=function(e,t){if("function"!=typeof e)throw new l("`fn` is not a function");if("number"!=typeof t||t<0||t>0xffffffff||u(t)!==t)throw new l("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],n=!0,c=!0;if("length"in e&&a){var f=a(e,"length");f&&!f.configurable&&(n=!1),f&&!f.writable&&(c=!1)}return(n||c||!r)&&(i?o(e,"length",t,!0,!0):o(e,"length",t)),e}},388:function(e,t,r){"use strict";var n=r(923)(),o=r(308),i=n&&o("%Object.defineProperty%",!0);if(i)try{i({},"a",{value:1})}catch(e){i=!1}var a=o("%SyntaxError%"),l=o("%TypeError%"),u=r(322);e.exports=function(e,t,r){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new l("`obj` must be an object or a function`");if("string"!=typeof t&&"symbol"!=typeof t)throw new l("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new l("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new l("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new l("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new l("`loose`, if provided, must be a boolean");var n=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,f=arguments.length>6&&arguments[6],p=!!u&&u(e,t);if(i)i(e,t,{configurable:null===c&&p?p.configurable:!c,enumerable:null===n&&p?p.enumerable:!n,value:r,writable:null===o&&p?p.writable:!o});else if(!f&&(n||o||c))throw new a("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");else e[t]=r}},923:function(e,t,r){"use strict";var n=r(308)("%Object.defineProperty%",!0),o=function(){if(n)try{return n({},"a",{value:1}),!0}catch(e){}return!1};o.hasArrayLengthDefineBug=function(){if(!o())return null;try{return 1!==n([],"length",{value:1}).length}catch(e){return!0}},e.exports=o},494:function(e){"use strict";var t=Object.prototype.toString,r=Math.max,n=function(e,t){for(var r=[],n=0;n<e.length;n+=1)r[n]=e[n];for(var o=0;o<t.length;o+=1)r[o+e.length]=t[o];return r},o=function(e,t){for(var r=[],n=t||0,o=0;n<e.length;n+=1,o+=1)r[o]=e[n];return r},i=function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r};e.exports=function(e){var a,l=this;if("function"!=typeof l||"[object Function]"!==t.apply(l))throw TypeError("Function.prototype.bind called on incompatible "+l);for(var u=o(arguments,1),c=r(0,l.length-u.length),f=[],p=0;p<c;p++)f[p]="$"+p;if(a=Function("binder","return function ("+i(f,",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof a){var t=l.apply(this,n(u,arguments));return Object(t)===t?t:this}return l.apply(e,n(u,arguments))}),l.prototype){var s=function(){};s.prototype=l.prototype,a.prototype=new s,s.prototype=null}return a}},786:function(e,t,r){"use strict";var n=r(494);e.exports=Function.prototype.bind||n},308:function(e,t,r){"use strict";var n,o=SyntaxError,i=Function,a=TypeError,l=function(e){try{return i('"use strict"; return ('+e+").constructor;")()}catch(e){}},u=Object.getOwnPropertyDescriptor;if(u)try{u({},"")}catch(e){u=null}var c=function(){throw new a},f=u?function(){try{return arguments.callee,c}catch(e){try{return u(arguments,"callee").get}catch(e){return c}}}():c,p=r(813)(),s=r(83)(),y=Object.getPrototypeOf||(s?function(e){return e.__proto__}:null),d={},b="undefined"!=typeof Uint8Array&&y?y(Uint8Array):n,m={"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":p&&y?y([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":d,"%AsyncGenerator%":d,"%AsyncGeneratorFunction%":d,"%AsyncIteratorPrototype%":d,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":d,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":p&&y?y(y([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&p&&y?y(new Map()[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&p&&y?y(new Set()[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":p&&y?y(""[Symbol.iterator]()):n,"%Symbol%":p?Symbol:n,"%SyntaxError%":o,"%ThrowTypeError%":f,"%TypedArray%":b,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet};if(y)try{null.error}catch(e){var h=y(y(e));m["%Error.prototype%"]=h}var g=function e(t){var r;if("%AsyncFunction%"===t)r=l("async function () {}");else if("%GeneratorFunction%"===t)r=l("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=l("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&y&&(r=y(o.prototype))}return m[t]=r,r},v={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},S=r(786),w=r(360),O=S.call(Function.call,Array.prototype.concat),j=S.call(Function.apply,Array.prototype.splice),A=S.call(Function.call,String.prototype.replace),P=S.call(Function.call,String.prototype.slice),x=S.call(Function.call,RegExp.prototype.exec),E=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,k=/\\(\\)?/g,_=function(e){var t=P(e,0,1),r=P(e,-1);if("%"===t&&"%"!==r)throw new o("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new o("invalid intrinsic syntax, expected opening `%`");var n=[];return A(e,E,function(e,t,r,o){n[n.length]=r?A(o,k,"$1"):t||e}),n},I=function(e,t){var r,n=e;if(w(v,n)&&(n="%"+(r=v[n])[0]+"%"),w(m,n)){var i=m[n];if(i===d&&(i=g(n)),void 0===i&&!t)throw new a("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new o("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new a('"allowMissing" argument must be a boolean');if(null===x(/^%?[^%]*%?$/,e))throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=_(e),n=r.length>0?r[0]:"",i=I("%"+n+"%",t),l=i.name,c=i.value,f=!1,p=i.alias;p&&(n=p[0],j(r,O([0,1],p)));for(var s=1,y=!0;s<r.length;s+=1){var d=r[s],b=P(d,0,1),h=P(d,-1);if(('"'===b||"'"===b||"`"===b||'"'===h||"'"===h||"`"===h)&&b!==h)throw new o("property names with quotes must have matching quotes");if("constructor"!==d&&y||(f=!0),n+="."+d,w(m,l="%"+n+"%"))c=m[l];else if(null!=c){if(!(d in c)){if(!t)throw new a("base intrinsic for "+e+" exists, but the property is not available.");return}if(u&&s+1>=r.length){var g=u(c,d);c=(y=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:c[d]}else y=w(c,d),c=c[d];y&&!f&&(m[l]=c)}}return c}},322:function(e,t,r){"use strict";var n=r(308)("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch(e){n=null}e.exports=n},83:function(e){"use strict";var t={foo:{}},r=Object;e.exports=function(){return({__proto__:t}).foo===t.foo&&!(({__proto__:null})instanceof r)}},813:function(e,t,r){"use strict";var n="undefined"!=typeof Symbol&&Symbol,o=r(722);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&o()}},722:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},360:function(e,t,r){"use strict";var n=Function.prototype.call,o=Object.prototype.hasOwnProperty;e.exports=r(786).call(n,o)},888:function(e,t,r){var n="function"==typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=n&&o&&"function"==typeof o.get?o.get:null,a=n&&Map.prototype.forEach,l="function"==typeof Set&&Set.prototype,u=Object.getOwnPropertyDescriptor&&l?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=l&&u&&"function"==typeof u.get?u.get:null,f=l&&Set.prototype.forEach,p="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,s="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,y="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,d=Boolean.prototype.valueOf,b=Object.prototype.toString,m=Function.prototype.toString,h=String.prototype.match,g=String.prototype.slice,v=String.prototype.replace,S=String.prototype.toUpperCase,w=String.prototype.toLowerCase,O=RegExp.prototype.test,j=Array.prototype.concat,A=Array.prototype.join,P=Array.prototype.slice,x=Math.floor,E="function"==typeof BigInt?BigInt.prototype.valueOf:null,k=Object.getOwnPropertySymbols,_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,I="function"==typeof Symbol&&"object"==typeof Symbol.iterator,F="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===I?"object":"symbol")?Symbol.toStringTag:null,N=Object.prototype.propertyIsEnumerable,R=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function T(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||O.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var n=e<0?-x(-e):x(e);if(n!==e){var o=String(n),i=g.call(t,o.length+1);return v.call(o,r,"$&_")+"."+v.call(v.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return v.call(t,r,"$&_")}var C=r(724),M=C.custom,D=W(M)?M:null;function B(e,t,r){var n="double"===(r.quoteStyle||t)?'"':"'";return n+e+n}function U(e){return"[object Array]"===G(e)&&(!F||!("object"==typeof e&&F in e))}function L(e){return"[object RegExp]"===G(e)&&(!F||!("object"==typeof e&&F in e))}function W(e){if(I)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!_)return!1;try{return _.call(e),!0}catch(e){}return!1}e.exports=function e(t,n,o,l){var u,b,S,O,x,k=n||{};if($(k,"quoteStyle")&&"single"!==k.quoteStyle&&"double"!==k.quoteStyle)throw TypeError('option "quoteStyle" must be "single" or "double"');if($(k,"maxStringLength")&&("number"==typeof k.maxStringLength?k.maxStringLength<0&&k.maxStringLength!==1/0:null!==k.maxStringLength))throw TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var M=!$(k,"customInspect")||k.customInspect;if("boolean"!=typeof M&&"symbol"!==M)throw TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if($(k,"indent")&&null!==k.indent&&" "!==k.indent&&!(parseInt(k.indent,10)===k.indent&&k.indent>0))throw TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if($(k,"numericSeparator")&&"boolean"!=typeof k.numericSeparator)throw TypeError('option "numericSeparator", if provided, must be `true` or `false`');var q=k.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return function e(t,r){if(t.length>r.maxStringLength){var n=t.length-r.maxStringLength;return e(g.call(t,0,r.maxStringLength),r)+("... "+n)+" more character"+(n>1?"s":"")}return B(v.call(v.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,z),"single",r)}(t,k);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var Y=String(t);return q?T(t,Y):Y}if("bigint"==typeof t){var Z=String(t)+"n";return q?T(t,Z):Z}var ee=void 0===k.depth?5:k.depth;if(void 0===o&&(o=0),o>=ee&&ee>0&&"object"==typeof t)return U(t)?"[Array]":"[Object]";var et=function(e,t){var r;if(" "===e.indent)r=" ";else{if("number"!=typeof e.indent||!(e.indent>0))return null;r=A.call(Array(e.indent+1)," ")}return{base:r,prev:A.call(Array(t+1),r)}}(k,o);if(void 0===l)l=[];else if(H(l,t)>=0)return"[Circular]";function er(t,r,n){if(r&&(l=P.call(l)).push(r),n){var i={depth:k.depth};return $(k,"quoteStyle")&&(i.quoteStyle=k.quoteStyle),e(t,i,o+1,l)}return e(t,k,o+1,l)}if("function"==typeof t&&!L(t)){var en=function(e){if(e.name)return e.name;var t=h.call(m.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),eo=X(t,er);return"[Function"+(en?": "+en:" (anonymous)")+"]"+(eo.length>0?" { "+A.call(eo,", ")+" }":"")}if(W(t)){var ei=I?v.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):_.call(t);return"object"!=typeof t||I?ei:V(ei)}if((ea=t)&&"object"==typeof ea&&("undefined"!=typeof HTMLElement&&ea instanceof HTMLElement||"string"==typeof ea.nodeName&&"function"==typeof ea.getAttribute)){for(var ea,el,eu="<"+w.call(String(t.nodeName)),ec=t.attributes||[],ef=0;ef<ec.length;ef++){eu+=" "+ec[ef].name+"="+B((el=ec[ef].value,v.call(String(el),/"/g,"&quot;")),"double",k)}return eu+=">",t.childNodes&&t.childNodes.length&&(eu+="..."),eu+="</"+w.call(String(t.nodeName))+">"}if(U(t)){if(0===t.length)return"[]";var ep=X(t,er);return et&&!function(e){for(var t=0;t<e.length;t++)if(H(e[t],"\n")>=0)return!1;return!0}(ep)?"["+K(ep,et)+"]":"[ "+A.call(ep,", ")+" ]"}if("[object Error]"===G(u=t)&&(!F||!("object"==typeof u&&F in u))){var es=X(t,er);return"cause"in Error.prototype||!("cause"in t)||N.call(t,"cause")?0===es.length?"["+String(t)+"]":"{ ["+String(t)+"] "+A.call(es,", ")+" }":"{ ["+String(t)+"] "+A.call(j.call("[cause]: "+er(t.cause),es),", ")+" }"}if("object"==typeof t&&M){if(D&&"function"==typeof t[D]&&C)return C(t,{depth:ee-o});else if("symbol"!==M&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!i||!e||"object"!=typeof e)return!1;try{i.call(e);try{c.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var ey=[];return a&&a.call(t,function(e,r){ey.push(er(r,t,!0)+" => "+er(e,t))}),J("Map",i.call(t),ey,et)}if(function(e){if(!c||!e||"object"!=typeof e)return!1;try{c.call(e);try{i.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var ed=[];return f&&f.call(t,function(e){ed.push(er(e,t))}),J("Set",c.call(t),ed,et)}if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{p.call(e,p);try{s.call(e,s)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return Q("WeakMap");if(function(e){if(!s||!e||"object"!=typeof e)return!1;try{s.call(e,s);try{p.call(e,p)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return Q("WeakSet");if(function(e){if(!y||!e||"object"!=typeof e)return!1;try{return y.call(e),!0}catch(e){}return!1}(t))return Q("WeakRef");if("[object Number]"===G(b=t)&&(!F||!("object"==typeof b&&F in b)))return V(er(Number(t)));if(function(e){if(!e||"object"!=typeof e||!E)return!1;try{return E.call(e),!0}catch(e){}return!1}(t))return V(er(E.call(t)));if("[object Boolean]"===G(S=t)&&(!F||!("object"==typeof S&&F in S)))return V(d.call(t));if("[object String]"===G(O=t)&&(!F||!("object"==typeof O&&F in O)))return V(er(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if(t===r.g)return"{ [object globalThis] }";if(!("[object Date]"===G(x=t)&&(!F||!("object"==typeof x&&F in x)))&&!L(t)){var eb=X(t,er),em=R?R(t)===Object.prototype:t instanceof Object||t.constructor===Object,eh=t instanceof Object?"":"null prototype",eg=!em&&F&&Object(t)===t&&F in t?g.call(G(t),8,-1):eh?"Object":"",ev=(em||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(eg||eh?"["+A.call(j.call([],eg||[],eh||[]),": ")+"] ":"");return 0===eb.length?ev+"{}":et?ev+"{"+K(eb,et)+"}":ev+"{ "+A.call(eb,", ")+" }"}return String(t)};var q=Object.prototype.hasOwnProperty||function(e){return e in this};function $(e,t){return q.call(e,t)}function G(e){return b.call(e)}function H(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return -1}function z(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+S.call(t.toString(16))}function V(e){return"Object("+e+")"}function Q(e){return e+" { ? }"}function J(e,t,r,n){return e+" ("+t+") {"+(n?K(r,n):A.call(r,", "))+"}"}function K(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+A.call(e,","+r)+"\n"+t.prev}function X(e,t){var r,n=U(e),o=[];if(n){o.length=e.length;for(var i=0;i<e.length;i++)o[i]=$(e,i)?t(e[i],e):""}var a="function"==typeof k?k(e):[];if(I){r={};for(var l=0;l<a.length;l++)r["$"+a[l]]=a[l]}for(var u in e)if($(e,u)&&(!n||String(Number(u))!==u||!(u<e.length)))if(I&&r["$"+u]instanceof Symbol)continue;else O.call(/[^\w$]/,u)?o.push(t(u,e)+": "+t(e[u],e)):o.push(u+": "+t(e[u],e));if("function"==typeof k)for(var c=0;c<a.length;c++)N.call(e,a[c])&&o.push("["+t(a[c])+"]: "+t(e[a[c]],e));return o}},531:function(e){"use strict";var t=String.prototype.replace,r=/%20/g,n="RFC3986";e.exports={default:n,formatters:{RFC1738:function(e){return t.call(e,r,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:n}},533:function(e,t,r){"use strict";var n=r(305),o=r(729);e.exports={formats:r(531),parse:o,stringify:n}},729:function(e,t,r){"use strict";var n=r(882),o=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},l=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},u=function(e,t){var r={__proto__:null},u=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,c=t.parameterLimit===1/0?void 0:t.parameterLimit,f=u.split(t.delimiter,c),p=-1,s=t.charset;if(t.charsetSentinel)for(y=0;y<f.length;++y)0===f[y].indexOf("utf8=")&&("utf8=%E2%9C%93"===f[y]?s="utf-8":"utf8=%26%2310003%3B"===f[y]&&(s="iso-8859-1"),p=y,y=f.length);for(y=0;y<f.length;++y)if(y!==p){var y,d,b,m=f[y],h=m.indexOf("]="),g=-1===h?m.indexOf("="):h+1;-1===g?(d=t.decoder(m,a.decoder,s,"key"),b=t.strictNullHandling?null:""):(d=t.decoder(m.slice(0,g),a.decoder,s,"key"),b=n.maybeMap(l(m.slice(g+1),t),function(e){return t.decoder(e,a.decoder,s,"value")})),b&&t.interpretNumericEntities&&"iso-8859-1"===s&&(b=b.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})),m.indexOf("[]=")>-1&&(b=i(b)?[b]:b),o.call(r,d)?r[d]=n.combine(r[d],b):r[d]=b}return r},c=function(e,t,r,n){for(var o=n?t:l(t,r),i=e.length-1;i>=0;--i){var a,u=e[i];if("[]"===u&&r.parseArrays)a=[].concat(o);else{a=r.plainObjects?Object.create(null):{};var c="["===u.charAt(0)&&"]"===u.charAt(u.length-1)?u.slice(1,-1):u,f=parseInt(c,10);r.parseArrays||""!==c?!isNaN(f)&&u!==c&&String(f)===c&&f>=0&&r.parseArrays&&f<=r.arrayLimit?(a=[])[f]=o:"__proto__"!==c&&(a[c]=o):a={0:o}}o=a}return o},f=function(e,t,r,n){if(e){var i=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,l=r.depth>0&&/(\[[^[\]]*])/.exec(i),u=l?i.slice(0,l.index):i,f=[];if(u){if(!r.plainObjects&&o.call(Object.prototype,u)&&!r.allowPrototypes)return;f.push(u)}for(var p=0;r.depth>0&&null!==(l=a.exec(i))&&p<r.depth;){if(p+=1,!r.plainObjects&&o.call(Object.prototype,l[1].slice(1,-1))&&!r.allowPrototypes)return;f.push(l[1])}return l&&f.push("["+i.slice(l.index)+"]"),c(f,t,r,n)}},p=function(e){if(!e)return a;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?a.charset:e.charset;return{allowDots:void 0===e.allowDots?a.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||n.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}};e.exports=function(e,t){var r=p(t);if(""===e||null==e)return r.plainObjects?Object.create(null):{};for(var o="string"==typeof e?u(e,r):e,i=r.plainObjects?Object.create(null):{},a=Object.keys(o),l=0;l<a.length;++l){var c=a[l],s=f(c,o[c],r,"string"==typeof e);i=n.merge(i,s,r)}return!0===r.allowSparse?i:n.compact(i)}},305:function(e,t,r){"use strict";var n=r(596),o=r(882),i=r(531),a=Object.prototype.hasOwnProperty,l={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},u=Array.isArray,c=Array.prototype.push,f=function(e,t){c.apply(e,u(t)?t:[t])},p=Date.prototype.toISOString,s=i.default,y={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:o.encode,encodeValuesOnly:!1,format:s,formatter:i.formatters[s],indices:!1,serializeDate:function(e){return p.call(e)},skipNulls:!1,strictNullHandling:!1},d={},b=function e(t,r,i,a,l,c,p,s,b,m,h,g,v,S,w,O){for(var j,A,P=t,x=O,E=0,k=!1;void 0!==(x=x.get(d))&&!k;){var _=x.get(t);if(E+=1,void 0!==_)if(_===E)throw RangeError("Cyclic object value");else k=!0;void 0===x.get(d)&&(E=0)}if("function"==typeof s?P=s(r,P):P instanceof Date?P=h(P):"comma"===i&&u(P)&&(P=o.maybeMap(P,function(e){return e instanceof Date?h(e):e})),null===P){if(l)return p&&!S?p(r,y.encoder,w,"key",g):r;P=""}if("string"==typeof(j=P)||"number"==typeof j||"boolean"==typeof j||"symbol"==typeof j||"bigint"==typeof j||o.isBuffer(P))return p?[v(S?r:p(r,y.encoder,w,"key",g))+"="+v(p(P,y.encoder,w,"value",g))]:[v(r)+"="+v(String(P))];var I=[];if(void 0===P)return I;if("comma"===i&&u(P))S&&p&&(P=o.maybeMap(P,p)),A=[{value:P.length>0?P.join(",")||null:void 0}];else if(u(s))A=s;else{var F=Object.keys(P);A=b?F.sort(b):F}for(var N=a&&u(P)&&1===P.length?r+"[]":r,R=0;R<A.length;++R){var T=A[R],C="object"==typeof T&&void 0!==T.value?T.value:P[T];if(!c||null!==C){var M=u(P)?"function"==typeof i?i(N,T):N:N+(m?"."+T:"["+T+"]");O.set(t,E);var D=n();D.set(d,O),f(I,e(C,M,i,a,l,c,"comma"===i&&S&&u(P)?null:p,s,b,m,h,g,v,S,w,D))}}return I},m=function(e){if(!e)return y;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw TypeError("Encoder has to be a function.");var t=e.charset||y.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=i.default;if(void 0!==e.format){if(!a.call(i.formatters,e.format))throw TypeError("Unknown format option provided.");r=e.format}var n=i.formatters[r],o=y.filter;return("function"==typeof e.filter||u(e.filter))&&(o=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:y.addQueryPrefix,allowDots:void 0===e.allowDots?y.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:y.charsetSentinel,delimiter:void 0===e.delimiter?y.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:y.encode,encoder:"function"==typeof e.encoder?e.encoder:y.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:y.encodeValuesOnly,filter:o,format:r,formatter:n,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:y.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:y.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:y.strictNullHandling}};e.exports=function(e,t){var r,o,i,a=e,c=m(t);"function"==typeof c.filter?a=(0,c.filter)("",a):u(c.filter)&&(r=c.filter);var p=[];if("object"!=typeof a||null===a)return"";i=t&&t.arrayFormat in l?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var s=l[i];if(t&&"commaRoundTrip"in t&&"boolean"!=typeof t.commaRoundTrip)throw TypeError("`commaRoundTrip` must be a boolean, or absent");var y="comma"===s&&t&&t.commaRoundTrip;r||(r=Object.keys(a)),c.sort&&r.sort(c.sort);for(var d=n(),h=0;h<r.length;++h){var g=r[h];c.skipNulls&&null===a[g]||f(p,b(a[g],g,s,y,c.strictNullHandling,c.skipNulls,c.encode?c.encoder:null,c.filter,c.sort,c.allowDots,c.serializeDate,c.format,c.formatter,c.encodeValuesOnly,c.charset,d))}var v=p.join(c.delimiter),S=!0===c.addQueryPrefix?"?":"";return c.charsetSentinel&&("iso-8859-1"===c.charset?S+="utf8=%26%2310003%3B&":S+="utf8=%E2%9C%93&"),v.length>0?S+v:""}},882:function(e,t,r){"use strict";var n=r(531),o=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),l=function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(i(r)){for(var n=[],o=0;o<r.length;++o)void 0!==r[o]&&n.push(r[o]);t.obj[t.prop]=n}}},u=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},n=0;n<e.length;++n)void 0!==e[n]&&(r[n]=e[n]);return r};e.exports={arrayToObject:u,assign:function(e,t){return Object.keys(t).reduce(function(e,r){return e[r]=t[r],e},e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n<t.length;++n)for(var o=t[n],i=o.obj[o.prop],a=Object.keys(i),u=0;u<a.length;++u){var c=a[u],f=i[c];"object"==typeof f&&null!==f&&-1===r.indexOf(f)&&(t.push({obj:i,prop:c}),r.push(f))}return l(t),e},decode:function(e,t,r){var n=e.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(e){return n}},encode:function(e,t,r,o,i){if(0===e.length)return e;var l=e;if("symbol"==typeof e?l=Symbol.prototype.toString.call(e):"string"!=typeof e&&(l=String(e)),"iso-8859-1"===r)return escape(l).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var u="",c=0;c<l.length;++c){var f=l.charCodeAt(c);if(45===f||46===f||95===f||126===f||f>=48&&f<=57||f>=65&&f<=90||f>=97&&f<=122||i===n.RFC1738&&(40===f||41===f)){u+=l.charAt(c);continue}if(f<128){u+=a[f];continue}if(f<2048){u+=a[192|f>>6]+a[128|63&f];continue}if(f<55296||f>=57344){u+=a[224|f>>12]+a[128|f>>6&63]+a[128|63&f];continue}c+=1,u+=a[240|(f=65536+((1023&f)<<10|1023&l.charCodeAt(c)))>>18]+a[128|f>>12&63]+a[128|f>>6&63]+a[128|63&f]}return u},isBuffer:function(e){return!!e&&"object"==typeof e&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(i(e)){for(var r=[],n=0;n<e.length;n+=1)r.push(t(e[n]));return r}return t(e)},merge:function e(t,r,n){if(!r)return t;if("object"!=typeof r){if(i(t))t.push(r);else{if(!t||"object"!=typeof t)return[t,r];(n&&(n.plainObjects||n.allowPrototypes)||!o.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(r);var a=t;return(i(t)&&!i(r)&&(a=u(t,n)),i(t)&&i(r))?(r.forEach(function(r,i){if(o.call(t,i)){var a=t[i];a&&"object"==typeof a&&r&&"object"==typeof r?t[i]=e(a,r,n):t.push(r)}else t[i]=r}),t):Object.keys(r).reduce(function(t,i){var a=r[i];return o.call(t,i)?t[i]=e(t[i],a,n):t[i]=a,t},a)}}},581:function(e){e.exports=function(e,t){return"undefined"!=typeof __deoptimization_sideEffect__&&__deoptimization_sideEffect__(e,t),t}},596:function(e,t,r){"use strict";var n=r(308),o=r(734),i=r(888),a=n("%TypeError%"),l=n("%WeakMap%",!0),u=n("%Map%",!0),c=o("WeakMap.prototype.get",!0),f=o("WeakMap.prototype.set",!0),p=o("WeakMap.prototype.has",!0),s=o("Map.prototype.get",!0),y=o("Map.prototype.set",!0),d=o("Map.prototype.has",!0),b=function(e,t){for(var r,n=e;null!==(r=n.next);n=r)if(r.key===t)return n.next=r.next,r.next=e.next,e.next=r,r},m=function(e,t){var r=b(e,t);return r&&r.value},h=function(e,t,r){var n=b(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}};e.exports=function(){var e,t,r,n={assert:function(e){if(!n.has(e))throw new a("Side channel does not contain "+i(e))},get:function(n){if(l&&n&&("object"==typeof n||"function"==typeof n)){if(e)return c(e,n)}else if(u){if(t)return s(t,n)}else if(r)return m(r,n)},has:function(n){if(l&&n&&("object"==typeof n||"function"==typeof n)){if(e)return p(e,n)}else if(u){if(t)return d(t,n)}else if(r)return!!b(r,n);return!1},set:function(n,o){l&&n&&("object"==typeof n||"function"==typeof n)?(e||(e=new l),f(e,n,o)):u?(t||(t=new u),y(t,n,o)):(r||(r={key:{},next:null}),h(r,n,o))}};return n}},482:function(e){"use strict";e.exports=o},505:function(e){"use strict";e.exports=n},772:function(e){"use strict";e.exports=r},721:function(e){"use strict";e.exports=i},467:function(e){"use strict";e.exports=t},156:function(t){"use strict";t.exports=e},238:function(e){"use strict";e.exports=a},724:function(){}},d={};function b(e){var t=d[e];if(void 0!==t)return t.exports;var r=d[e]={exports:{}};return y[e](r,r.exports,b),r.exports}b.m=y,b.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return b.d(t,{a:t}),t},b.d=function(e,t){for(var r in t)b.o(t,r)&&!b.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},b.f={},b.e=function(e){return Promise.all(Object.keys(b.f).reduce(function(t,r){return b.f[r](e,t),t},[]))},b.u=function(e){return"0d9b6225e99c9b66.js"},b.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),b.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},l={},u="@nocobase/plugin-multi-keyword-filter:",b.l=function(e,t,r,n){if(l[e])return void l[e].push(t);if(void 0!==r)for(var o,i,a=document.getElementsByTagName("script"),c=0;c<a.length;c++){var f=a[c];if(f.getAttribute("src")==e||f.getAttribute("data-webpack")==u+r){o=f;break}}o||(i=!0,(o=document.createElement("script")).charset="utf-8",o.timeout=120,b.nc&&o.setAttribute("nonce",b.nc),o.setAttribute("data-webpack",u+r),o.src=e),l[e]=[t];var p=function(t,r){o.onerror=o.onload=null,clearTimeout(s);var n=l[e];if(delete l[e],o.parentNode&&o.parentNode.removeChild(o),n&&n.forEach(function(e){return e(r)}),t)return t(r)},s=setTimeout(p.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=p.bind(null,o.onerror),o.onload=p.bind(null,o.onload),i&&document.head.appendChild(o)},b.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(c=window.__webpack_public_path__||"/").endsWith("/")||(c+="/"),b.p=c+"static/plugins/@nocobase/plugin-multi-keyword-filter/dist/client/",f={909:0},b.f.j=function(e,t){var r=b.o(f,e)?f[e]:void 0;if(0!==r)if(r)t.push(r[2]);else{var n=new Promise(function(t,n){r=f[e]=[t,n]});t.push(r[2]=n);var o=b.p+b.u(e),i=Error();b.l(o,function(t){if(b.o(f,e)&&(0!==(r=f[e])&&(f[e]=void 0),r)){var n=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;i.message="Loading chunk "+e+" failed.\n("+n+": "+o+")",i.name="ChunkLoadError",i.type=n,i.request=o,r[1](i)}},"chunk-"+e,e)}},p=function(e,t){var r,n,o=t[0],i=t[1],a=t[2],l=0;if(o.some(function(e){return 0!==f[e]})){for(r in i)b.o(i,r)&&(b.m[r]=i[r]);a&&a(b)}for(e&&e(t);l<o.length;l++)n=o[l],b.o(f,n)&&f[n]&&f[n][0](),f[n]=0},(s=self.webpackChunk_nocobase_plugin_multi_keyword_filter=self.webpackChunk_nocobase_plugin_multi_keyword_filter||[]).forEach(p.bind(null,0)),s.push=p.bind(null,s.push.bind(s));var m={};return!function(){"use strict";b.r(m),b.d(m,{PluginFilterOperatorMultipleKeywordsClient:function(){return R},default:function(){return T}});var e=b(772),t=b(721),r=b(156),n=b.n(r),o=JSON.parse('{"u2":"@nocobase/plugin-multi-keyword-filter"}'),i=b(238);function a(){var e=(0,i.useTranslation)([o.u2,"client"]).t;return function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(t,r)}}var l=b(482),u=b(467),c=b.n(u),f=b(505),p=b(581);function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function y(e,t,r,n,o,i,a){try{var l=e[i](a),u=l.value}catch(e){r(e);return}l.done?t(u):Promise.resolve(u).then(n,o)}function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],a=!0,l=!1;try{for(o=o.call(e);!(a=(r=o.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,n=e}finally{try{a||null==o.return||o.return()}finally{if(l)throw n}}return i}}(e,t)||h(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){if(e){if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return s(e,t)}}var g=function(e){return c().isString(e)?e.trim():e},v=function(o){var i,u,m,v,S=(0,r.useRef)(null),w=d((0,r.useState)(!1),2),O=w[0],j=w[1],A=d((0,r.useState)(!1),2),P=A[0],x=A[1],E=d((0,r.useState)([]),2),k=E[0],_=E[1],I=d((0,r.useState)([]),2),F=I[0],N=I[1],R=d((0,r.useState)([]),2),T=R[0],C=R[1],M=a(),D=(0,e.useLazy)(function(){return p("imported_-1lj2ifg_component",b.e("421").then(b.bind(b,595)))},function(e){return e}),B=(0,f.useField)();(null==B?void 0:B.validator)&&(B.validator=null);var U=(i=function(e){var r,n,o,i,a;return function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){var u=[i,l];if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&u[0]?n.return:u[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,u[1])).done)return o;switch(n=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,n=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],n=0}finally{r=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}(this,function(l){switch(l.label){case 0:if(!(n=null==(r=e.target.files)?void 0:r[0]))return[3,5];l.label=1;case 1:return l.trys.push([1,3,4,5]),j(!0),[4,L(n)];case 2:if(0===(o=l.sent()).length)return t.message.error(M("excelFileEmpty")),j(!1),[2];return _(i=Object.keys(o[0])),C(o),1===i.length?$(W(o,i[0])):x(!0),[3,5];case 3:return a=l.sent(),console.error(M("errorParsingExcel"),a),t.message.error(M("failedToParseExcel")),[3,5];case 4:return j(!1),e.target.value="",[7];case 5:return[2]}})},u=function(){var e=this,t=arguments;return new Promise(function(r,n){var o=i.apply(e,t);function a(e){y(o,r,n,a,l,"next",e)}function l(e){y(o,r,n,a,l,"throw",e)}a(void 0)})},function(e){return u.apply(this,arguments)}),L=function(e){return new Promise(function(t,r){var n=new FileReader;n.onload=function(e){try{var n,o=null==(n=e.target)?void 0:n.result,i=D.read(o,{type:"binary"}),a=i.SheetNames[0],l=i.Sheets[a],u=D.utils.sheet_to_json(l,{defval:""});t(u)}catch(e){r(e)}},n.onerror=function(e){return r(e)},n.readAsArrayBuffer(e)})},W=function(e,t){return e.map(function(e){return e[t]}).filter(function(e){return null!=e&&""!==e}).join("\n")},q=function(e,t){var r=new Set;return e.forEach(function(e){t.forEach(function(t){var n=e[t];null!=n&&""!==n&&r.add(n.toString())})}),Array.from(r).join("\n")},$=function(e){if(!e)return void t.message.warning(M("noValidKeywords"));if(o.onChange){var r=e.split("\n").filter(Boolean);o.onChange(r),t.message.success(M("importSuccess",{count:r.length}))}};return n().createElement(n().Fragment,null,n().createElement(t.Space.Compact,{block:!0},n().createElement(t.Select,(m=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({mode:"tags",tokenSeparators:["\n"],placeholder:M("keywordsInputPlaceholder"),allowClear:!0,suffixIcon:null,maxTagCount:"responsive",open:!c().isEmpty(o.value)&&void 0},o),v=v={onChange:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];["integer","number"].includes(o.fieldInterface)&&(t[0]=t[0].map(g).map(function(e){return parseInt(e,10)}).filter(function(e){return!isNaN(e)})),["percent"].includes(o.fieldInterface)&&(t[0]=t[0].map(g).map(function(e){return parseFloat(e)}).filter(function(e){return!isNaN(e)})),o.onChange&&(t[0]=t[0].map(g).filter(function(e){return""!==e}),o.onChange.apply(o,function(e){if(Array.isArray(e))return s(e)}(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||h(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))}},Object.getOwnPropertyDescriptors?Object.defineProperties(m,Object.getOwnPropertyDescriptors(v)):(function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r.push.apply(r,n)}return r})(Object(v)).forEach(function(e){Object.defineProperty(m,e,Object.getOwnPropertyDescriptor(v,e))}),m)),n().createElement(t.Tooltip,{title:M("importExcel")},n().createElement(t.Button,{onClick:function(){var e;null==(e=S.current)||e.click()},loading:O,icon:n().createElement(l.UploadOutlined,null)}))),n().createElement("input",{type:"file",ref:S,style:{display:"none"},accept:".xlsx,.xls",onChange:U}),n().createElement(t.Modal,{title:M("selectExcelColumns"),open:P,onOk:function(){if(0===F.length)return void t.message.warning(M("selectAtLeastOneColumn"));$(q(T,F)),x(!1)},onCancel:function(){return x(!1)},okText:M("confirm"),cancelText:M("cancel")},n().createElement(t.Alert,{type:"info",style:{marginBottom:"10px",whiteSpace:"pre-line",padding:"4px 8px"},description:n().createElement(t.Typography,null,n().createElement("ul",{style:{marginBottom:0}},M("tips").split("\n").map(function(e){return n().createElement("li",{key:e},e)})))}),n().createElement(t.Select,{mode:"multiple",value:F,onChange:function(e){return N(e)},style:{width:"100%"},placeholder:M("selectColumnsPlaceholder")},k.map(function(e){return n().createElement(t.Select.Option,{key:e,value:e},e)}))))},S=b(533),w=b.n(S);function O(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function j(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}var A=function(e){var t,r,n,o=(t=e.url.split("?"),function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r,n,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],a=!0,l=!1;try{for(o=o.call(e);!(a=(r=o.next()).done)&&(i.push(r.value),i.length!==t);a=!0);}catch(e){l=!0,n=e}finally{try{a||null==o.return||o.return()}finally{if(l)throw n}}return i}}(t,2)||function(e,t){if(e){if("string"==typeof e)return O(e,2);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return O(e,t)}}(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[1],i=w().stringify(e.params,{strictNullHandling:!0,arrayFormat:"brackets"});return(e.url+i).length<=2e3?e:(o&&(e.params=j({},w().parse(o,{strictNullHandling:!0}),e.params)),r=j({},e.data),n=n={__params__:e.params,__method__:e.method},Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):(function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r.push.apply(r,n)}return r})(Object(n)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(n,e))}),e.data=r,e.params={},e.method="post",e)};function P(e,t,r,n,o,i,a){try{var l=e[i](a),u=l.value}catch(e){r(e);return}l.done?t(u):Promise.resolve(u).then(n,o)}function x(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){P(i,n,o,a,l,"next",e)}function l(e){P(i,n,o,a,l,"throw",e)}a(void 0)})}}function E(e,t,r){return(E=F()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var o=new(Function.bind.apply(e,n));return r&&_(o,r.prototype),o}).apply(null,arguments)}function k(e){return(k=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _(e,t){return(_=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function I(e){var t="function"==typeof Map?new Map:void 0;return(I=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return E(e,arguments,k(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),_(r,e)})(e)}function F(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(F=function(){return!!e})()}function N(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){var u=[i,l];if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&u[0]?n.return:u[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,u[1])).done)return o;switch(n=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,n=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],n=0}finally{r=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}var R=function(e){var r;if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");function o(){var e,t;if(!(this instanceof o))throw TypeError("Cannot call a class as a function");return e=o,t=arguments,e=k(e),function(e,t){var r;if(t&&("object"==((r=t)&&"undefined"!=typeof Symbol&&r.constructor===Symbol?"symbol":typeof r)||"function"==typeof t))return t;if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this,F()?Reflect.construct(e,t||[],k(this).constructor):e.apply(this,t))}return o.prototype=Object.create(e&&e.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),e&&_(o,e),r=[{key:"afterAdd",value:function(){return x(function(){return N(this,function(e){return[2]})})()}},{key:"beforeLoad",value:function(){return x(function(){return N(this,function(e){return[2]})})()}},{key:"load",value:function(){var e=this;return x(function(){return N(this,function(r){return["input","phone","email","uuid","sequence","integer","number","percent","nanoid"].forEach(function(r){e.app.addFieldInterfaceOperator(r,{label:n().createElement(function(){var e=a(),r="等于任意一个"===e("equalsAny");return n().createElement("div",null,e("equalsAny")," ",n().createElement(t.Tooltip,{title:n().createElement("div",null,e("providedByPlugin",{pluginName:e("pluginName")})," ",n().createElement("a",{href:"https://".concat(r?"docs-cn":"docs",".nocobase.com/handbook/multi-keyword-filter"),target:"_blank",rel:"noopener noreferrer"},n().createElement(l.LinkOutlined,null)))},n().createElement(l.QuestionCircleOutlined,null)))}),value:"$in",schema:{"x-component":"MultipleKeywordsInput","x-component-props":{fieldInterface:r}}}),e.app.addFieldInterfaceOperator(r,{label:n().createElement(function(){var e=a(),r="等于任意一个"===e("equalsAny");return n().createElement("div",null,e("notEqualsAny")," ",n().createElement(t.Tooltip,{title:n().createElement("div",null,e("providedByPlugin",{pluginName:e("pluginName")})," ",n().createElement("a",{href:"https://".concat(r?"docs-cn":"docs",".nocobase.com/handbook/multi-keyword-filter"),target:"_blank",rel:"noopener noreferrer"},n().createElement(l.LinkOutlined,null)))},n().createElement(l.QuestionCircleOutlined,null)))}),value:"$notIn",schema:{"x-component":"MultipleKeywordsInput","x-component-props":{fieldInterface:r}}})}),e.app.addComponents({MultipleKeywordsInput:v}),setTimeout(function(){e.app.apiClient.axios.interceptors.request.use(A)}),[2]})})()}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(o.prototype,r),o}(I(e.Plugin)),T=R}(),m}()});
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ export declare const interceptor: (config: any) => any;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ export declare function useT(): (str: string, options?: any) => string;
10
+ export declare function tStr(key: string): string;
@@ -0,0 +1,20 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+
10
+ module.exports = {
11
+ "@nocobase/client": "2.0.3",
12
+ "antd": "5.24.2",
13
+ "react": "18.2.0",
14
+ "@ant-design/icons": "5.6.1",
15
+ "lodash": "4.17.21",
16
+ "@formily/react": "2.3.7",
17
+ "react-i18next": "11.18.6",
18
+ "koa": "2.16.0",
19
+ "@nocobase/server": "2.0.3"
20
+ };
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+ export * from './server';
10
+ export { default } from './server';
package/dist/index.js ADDED
@@ -0,0 +1,48 @@
1
+ /**
2
+ * This file is part of the NocoBase (R) project.
3
+ * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
+ * Authors: NocoBase Team.
5
+ *
6
+ * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
+ * For more information, please refer to: https://www.nocobase.com/agreement.
8
+ */
9
+
10
+ var __create = Object.create;
11
+ var __defProp = Object.defineProperty;
12
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
13
+ var __getOwnPropNames = Object.getOwnPropertyNames;
14
+ var __getProtoOf = Object.getPrototypeOf;
15
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
16
+ var __export = (target, all) => {
17
+ for (var name in all)
18
+ __defProp(target, name, { get: all[name], enumerable: true });
19
+ };
20
+ var __copyProps = (to, from, except, desc) => {
21
+ if (from && typeof from === "object" || typeof from === "function") {
22
+ for (let key of __getOwnPropNames(from))
23
+ if (!__hasOwnProp.call(to, key) && key !== except)
24
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
25
+ }
26
+ return to;
27
+ };
28
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
29
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
30
+ // If the importer is in node compatibility mode or this is not an ESM
31
+ // file that has been converted to a CommonJS file using a Babel-
32
+ // compatible transform (i.e. "__esModule" has not been set), then set
33
+ // "default" to the CommonJS "module.exports" for node compatibility.
34
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
35
+ mod
36
+ ));
37
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
38
+ var src_exports = {};
39
+ __export(src_exports, {
40
+ default: () => import_server.default
41
+ });
42
+ module.exports = __toCommonJS(src_exports);
43
+ __reExport(src_exports, require("./server"), module.exports);
44
+ var import_server = __toESM(require("./server"));
45
+ // Annotate the CommonJS export names for ESM import in node:
46
+ 0 && (module.exports = {
47
+ ...require("./server")
48
+ });
@@ -0,0 +1,18 @@
1
+ {
2
+ "cancel": "Cancel",
3
+ "confirm": "Confirm",
4
+ "equalsAny": "is any of",
5
+ "errorParsingExcel": "Error parsing Excel file:",
6
+ "excelFileEmpty": "Excel file is empty",
7
+ "failedToParseExcel": "Failed to parse Excel file",
8
+ "importExcel": "Batch import keywords from Excel",
9
+ "importSuccess": "Successfully imported {{count}} keywords",
10
+ "keywordsInputPlaceholder": "Multiple keywords separated by line breaks",
11
+ "noValidKeywords": "No valid keywords found",
12
+ "notEqualsAny": "is none of",
13
+ "providedByPlugin": "Provided by @nocobase/plugin-multi-keyword-filter plugin",
14
+ "selectAtLeastOneColumn": "Please select at least one column",
15
+ "selectColumnsPlaceholder": "Please select columns to import",
16
+ "selectExcelColumns": "Select Excel columns to import",
17
+ "tips": "Effect of selecting a single column: All non-empty values in that column will be imported as keywords.\nEffect of selecting multiple columns: Non-empty values from multiple columns will be merged as keywords, duplicate values will be removed."
18
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "cancel": "Cancel",
3
+ "confirm": "Confirm",
4
+ "equalsAny": "is any of",
5
+ "errorParsingExcel": "Error parsing Excel file:",
6
+ "excelFileEmpty": "Excel file is empty",
7
+ "failedToParseExcel": "Failed to parse Excel file",
8
+ "importExcel": "Batch import keywords from Excel",
9
+ "importSuccess": "Successfully imported {{count}} keywords",
10
+ "keywordsInputPlaceholder": "Multiple keywords separated by line breaks",
11
+ "noValidKeywords": "No valid keywords found",
12
+ "notEqualsAny": "is none of",
13
+ "providedByPlugin": "Provided by @nocobase/plugin-multi-keyword-filter plugin",
14
+ "selectAtLeastOneColumn": "Please select at least one column",
15
+ "selectColumnsPlaceholder": "Please select columns to import",
16
+ "selectExcelColumns": "Select Excel columns to import",
17
+ "tips": "Effect of selecting a single column: All non-empty values in that column will be imported as keywords.\nEffect of selecting multiple columns: Non-empty values from multiple columns will be merged as keywords, duplicate values will be removed."
18
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "cancel": "Cancel",
3
+ "confirm": "Confirm",
4
+ "equalsAny": "is any of",
5
+ "errorParsingExcel": "Error parsing Excel file:",
6
+ "excelFileEmpty": "Excel file is empty",
7
+ "failedToParseExcel": "Failed to parse Excel file",
8
+ "importExcel": "Batch import keywords from Excel",
9
+ "importSuccess": "Successfully imported {{count}} keywords",
10
+ "keywordsInputPlaceholder": "Multiple keywords separated by line breaks",
11
+ "noValidKeywords": "No valid keywords found",
12
+ "notEqualsAny": "is none of",
13
+ "providedByPlugin": "Provided by @nocobase/plugin-multi-keyword-filter plugin",
14
+ "selectAtLeastOneColumn": "Please select at least one column",
15
+ "selectColumnsPlaceholder": "Please select columns to import",
16
+ "selectExcelColumns": "Select Excel columns to import",
17
+ "tips": "Effect of selecting a single column: All non-empty values in that column will be imported as keywords.\nEffect of selecting multiple columns: Non-empty values from multiple columns will be merged as keywords, duplicate values will be removed."
18
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "cancel": "Cancel",
3
+ "confirm": "Confirm",
4
+ "equalsAny": "is any of",
5
+ "errorParsingExcel": "Error parsing Excel file:",
6
+ "excelFileEmpty": "Excel file is empty",
7
+ "failedToParseExcel": "Failed to parse Excel file",
8
+ "importExcel": "Batch import keywords from Excel",
9
+ "importSuccess": "Successfully imported {{count}} keywords",
10
+ "keywordsInputPlaceholder": "Multiple keywords separated by line breaks",
11
+ "noValidKeywords": "No valid keywords found",
12
+ "notEqualsAny": "is none of",
13
+ "providedByPlugin": "Provided by @nocobase/plugin-multi-keyword-filter plugin",
14
+ "selectAtLeastOneColumn": "Please select at least one column",
15
+ "selectColumnsPlaceholder": "Please select columns to import",
16
+ "selectExcelColumns": "Select Excel columns to import",
17
+ "tips": "Effect of selecting a single column: All non-empty values in that column will be imported as keywords.\nEffect of selecting multiple columns: Non-empty values from multiple columns will be merged as keywords, duplicate values will be removed."
18
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "cancel": "Cancel",
3
+ "confirm": "Confirm",
4
+ "equalsAny": "is any of",
5
+ "errorParsingExcel": "Error parsing Excel file:",
6
+ "excelFileEmpty": "Excel file is empty",
7
+ "failedToParseExcel": "Failed to parse Excel file",
8
+ "importExcel": "Batch import keywords from Excel",
9
+ "importSuccess": "Successfully imported {{count}} keywords",
10
+ "keywordsInputPlaceholder": "Multiple keywords separated by line breaks",
11
+ "noValidKeywords": "No valid keywords found",
12
+ "notEqualsAny": "is none of",
13
+ "providedByPlugin": "Provided by @nocobase/plugin-multi-keyword-filter plugin",
14
+ "selectAtLeastOneColumn": "Please select at least one column",
15
+ "selectColumnsPlaceholder": "Please select columns to import",
16
+ "selectExcelColumns": "Select Excel columns to import",
17
+ "tips": "Effect of selecting a single column: All non-empty values in that column will be imported as keywords.\nEffect of selecting multiple columns: Non-empty values from multiple columns will be merged as keywords, duplicate values will be removed."
18
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "cancel": "Cancel",
3
+ "confirm": "Confirm",
4
+ "equalsAny": "is any of",
5
+ "errorParsingExcel": "Error parsing Excel file:",
6
+ "excelFileEmpty": "Excel file is empty",
7
+ "failedToParseExcel": "Failed to parse Excel file",
8
+ "importExcel": "Batch import keywords from Excel",
9
+ "importSuccess": "Successfully imported {{count}} keywords",
10
+ "keywordsInputPlaceholder": "Multiple keywords separated by line breaks",
11
+ "noValidKeywords": "No valid keywords found",
12
+ "notEqualsAny": "is none of",
13
+ "providedByPlugin": "Provided by @nocobase/plugin-multi-keyword-filter plugin",
14
+ "selectAtLeastOneColumn": "Please select at least one column",
15
+ "selectColumnsPlaceholder": "Please select columns to import",
16
+ "selectExcelColumns": "Select Excel columns to import",
17
+ "tips": "Effect of selecting a single column: All non-empty values in that column will be imported as keywords.\nEffect of selecting multiple columns: Non-empty values from multiple columns will be merged as keywords, duplicate values will be removed."
18
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "cancel": "Cancel",
3
+ "confirm": "Confirm",
4
+ "equalsAny": "is any of",
5
+ "errorParsingExcel": "Error parsing Excel file:",
6
+ "excelFileEmpty": "Excel file is empty",
7
+ "failedToParseExcel": "Failed to parse Excel file",
8
+ "importExcel": "Batch import keywords from Excel",
9
+ "importSuccess": "Successfully imported {{count}} keywords",
10
+ "keywordsInputPlaceholder": "Multiple keywords separated by line breaks",
11
+ "noValidKeywords": "No valid keywords found",
12
+ "notEqualsAny": "is none of",
13
+ "providedByPlugin": "Provided by @nocobase/plugin-multi-keyword-filter plugin",
14
+ "selectAtLeastOneColumn": "Please select at least one column",
15
+ "selectColumnsPlaceholder": "Please select columns to import",
16
+ "selectExcelColumns": "Select Excel columns to import",
17
+ "tips": "Effect of selecting a single column: All non-empty values in that column will be imported as keywords.\nEffect of selecting multiple columns: Non-empty values from multiple columns will be merged as keywords, duplicate values will be removed."
18
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "cancel": "Cancel",
3
+ "confirm": "Confirm",
4
+ "equalsAny": "is any of",
5
+ "errorParsingExcel": "Error parsing Excel file:",
6
+ "excelFileEmpty": "Excel file is empty",
7
+ "failedToParseExcel": "Failed to parse Excel file",
8
+ "importExcel": "Batch import keywords from Excel",
9
+ "importSuccess": "Successfully imported {{count}} keywords",
10
+ "keywordsInputPlaceholder": "Multiple keywords separated by line breaks",
11
+ "noValidKeywords": "No valid keywords found",
12
+ "notEqualsAny": "is none of",
13
+ "providedByPlugin": "Provided by @nocobase/plugin-multi-keyword-filter plugin",
14
+ "selectAtLeastOneColumn": "Please select at least one column",
15
+ "selectColumnsPlaceholder": "Please select columns to import",
16
+ "selectExcelColumns": "Select Excel columns to import",
17
+ "tips": "Effect of selecting a single column: All non-empty values in that column will be imported as keywords.\nEffect of selecting multiple columns: Non-empty values from multiple columns will be merged as keywords, duplicate values will be removed."
18
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "cancel": "Cancel",
3
+ "confirm": "Confirm",
4
+ "equalsAny": "is any of",
5
+ "errorParsingExcel": "Error parsing Excel file:",
6
+ "excelFileEmpty": "Excel file is empty",
7
+ "failedToParseExcel": "Failed to parse Excel file",
8
+ "importExcel": "Batch import keywords from Excel",
9
+ "importSuccess": "Successfully imported {{count}} keywords",
10
+ "keywordsInputPlaceholder": "Multiple keywords separated by line breaks",
11
+ "noValidKeywords": "No valid keywords found",
12
+ "notEqualsAny": "is none of",
13
+ "providedByPlugin": "Provided by @nocobase/plugin-multi-keyword-filter plugin",
14
+ "selectAtLeastOneColumn": "Please select at least one column",
15
+ "selectColumnsPlaceholder": "Please select columns to import",
16
+ "selectExcelColumns": "Select Excel columns to import",
17
+ "tips": "Effect of selecting a single column: All non-empty values in that column will be imported as keywords.\nEffect of selecting multiple columns: Non-empty values from multiple columns will be merged as keywords, duplicate values will be removed."
18
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "cancel": "Cancel",
3
+ "confirm": "Confirm",
4
+ "equalsAny": "is any of",
5
+ "errorParsingExcel": "Error parsing Excel file:",
6
+ "excelFileEmpty": "Excel file is empty",
7
+ "failedToParseExcel": "Failed to parse Excel file",
8
+ "importExcel": "Batch import keywords from Excel",
9
+ "importSuccess": "Successfully imported {{count}} keywords",
10
+ "keywordsInputPlaceholder": "Multiple keywords separated by line breaks",
11
+ "noValidKeywords": "No valid keywords found",
12
+ "notEqualsAny": "is none of",
13
+ "providedByPlugin": "Provided by @nocobase/plugin-multi-keyword-filter plugin",
14
+ "selectAtLeastOneColumn": "Please select at least one column",
15
+ "selectColumnsPlaceholder": "Please select columns to import",
16
+ "selectExcelColumns": "Select Excel columns to import",
17
+ "tips": "Effect of selecting a single column: All non-empty values in that column will be imported as keywords.\nEffect of selecting multiple columns: Non-empty values from multiple columns will be merged as keywords, duplicate values will be removed."
18
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "cancel": "Cancel",
3
+ "confirm": "Confirm",
4
+ "equalsAny": "is any of",
5
+ "errorParsingExcel": "Error parsing Excel file:",
6
+ "excelFileEmpty": "Excel file is empty",
7
+ "failedToParseExcel": "Failed to parse Excel file",
8
+ "importExcel": "Batch import keywords from Excel",
9
+ "importSuccess": "Successfully imported {{count}} keywords",
10
+ "keywordsInputPlaceholder": "Multiple keywords separated by line breaks",
11
+ "noValidKeywords": "No valid keywords found",
12
+ "notEqualsAny": "is none of",
13
+ "providedByPlugin": "Provided by @nocobase/plugin-multi-keyword-filter plugin",
14
+ "selectAtLeastOneColumn": "Please select at least one column",
15
+ "selectColumnsPlaceholder": "Please select columns to import",
16
+ "selectExcelColumns": "Select Excel columns to import",
17
+ "tips": "Effect of selecting a single column: All non-empty values in that column will be imported as keywords.\nEffect of selecting multiple columns: Non-empty values from multiple columns will be merged as keywords, duplicate values will be removed."
18
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "cancel": "Cancel",
3
+ "confirm": "Confirm",
4
+ "equalsAny": "is any of",
5
+ "errorParsingExcel": "Error parsing Excel file:",
6
+ "excelFileEmpty": "Excel file is empty",
7
+ "failedToParseExcel": "Failed to parse Excel file",
8
+ "importExcel": "Batch import keywords from Excel",
9
+ "importSuccess": "Successfully imported {{count}} keywords",
10
+ "keywordsInputPlaceholder": "Multiple keywords separated by line breaks",
11
+ "noValidKeywords": "No valid keywords found",
12
+ "notEqualsAny": "is none of",
13
+ "providedByPlugin": "Provided by @nocobase/plugin-multi-keyword-filter plugin",
14
+ "selectAtLeastOneColumn": "Please select at least one column",
15
+ "selectColumnsPlaceholder": "Please select columns to import",
16
+ "selectExcelColumns": "Select Excel columns to import",
17
+ "tips": "Effect of selecting a single column: All non-empty values in that column will be imported as keywords.\nEffect of selecting multiple columns: Non-empty values from multiple columns will be merged as keywords, duplicate values will be removed."
18
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "cancel": "Cancel",
3
+ "confirm": "Confirm",
4
+ "equalsAny": "is any of",
5
+ "errorParsingExcel": "Error parsing Excel file:",
6
+ "excelFileEmpty": "Excel file is empty",
7
+ "failedToParseExcel": "Failed to parse Excel file",
8
+ "importExcel": "Batch import keywords from Excel",
9
+ "importSuccess": "Successfully imported {{count}} keywords",
10
+ "keywordsInputPlaceholder": "Multiple keywords separated by line breaks",
11
+ "noValidKeywords": "No valid keywords found",
12
+ "notEqualsAny": "is none of",
13
+ "providedByPlugin": "Provided by @nocobase/plugin-multi-keyword-filter plugin",
14
+ "selectAtLeastOneColumn": "Please select at least one column",
15
+ "selectColumnsPlaceholder": "Please select columns to import",
16
+ "selectExcelColumns": "Select Excel columns to import",
17
+ "tips": "Effect of selecting a single column: All non-empty values in that column will be imported as keywords.\nEffect of selecting multiple columns: Non-empty values from multiple columns will be merged as keywords, duplicate values will be removed."
18
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "cancel": "Cancel",
3
+ "confirm": "Confirm",
4
+ "equalsAny": "is any of",
5
+ "errorParsingExcel": "Error parsing Excel file:",
6
+ "excelFileEmpty": "Excel file is empty",
7
+ "failedToParseExcel": "Failed to parse Excel file",
8
+ "importExcel": "Batch import keywords from Excel",
9
+ "importSuccess": "Successfully imported {{count}} keywords",
10
+ "keywordsInputPlaceholder": "Multiple keywords separated by line breaks",
11
+ "noValidKeywords": "No valid keywords found",
12
+ "notEqualsAny": "is none of",
13
+ "providedByPlugin": "Provided by @nocobase/plugin-multi-keyword-filter plugin",
14
+ "selectAtLeastOneColumn": "Please select at least one column",
15
+ "selectColumnsPlaceholder": "Please select columns to import",
16
+ "selectExcelColumns": "Select Excel columns to import",
17
+ "tips": "Effect of selecting a single column: All non-empty values in that column will be imported as keywords.\nEffect of selecting multiple columns: Non-empty values from multiple columns will be merged as keywords, duplicate values will be removed."
18
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "cancel": "Cancel",
3
+ "confirm": "Confirm",
4
+ "equalsAny": "is any of",
5
+ "errorParsingExcel": "Error parsing Excel file:",
6
+ "excelFileEmpty": "Excel file is empty",
7
+ "failedToParseExcel": "Failed to parse Excel file",
8
+ "importExcel": "Batch import keywords from Excel",
9
+ "importSuccess": "Successfully imported {{count}} keywords",
10
+ "keywordsInputPlaceholder": "Multiple keywords separated by line breaks",
11
+ "noValidKeywords": "No valid keywords found",
12
+ "notEqualsAny": "is none of",
13
+ "providedByPlugin": "Provided by @nocobase/plugin-multi-keyword-filter plugin",
14
+ "selectAtLeastOneColumn": "Please select at least one column",
15
+ "selectColumnsPlaceholder": "Please select columns to import",
16
+ "selectExcelColumns": "Select Excel columns to import",
17
+ "tips": "Effect of selecting a single column: All non-empty values in that column will be imported as keywords.\nEffect of selecting multiple columns: Non-empty values from multiple columns will be merged as keywords, duplicate values will be removed."
18
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "cancel": "取消",
3
+ "confirm": "确认",
4
+ "equalsAny": "等于任意一个",
5
+ "errorParsingExcel": "解析 Excel 文件出错:",
6
+ "excelFileEmpty": "Excel 文件为空",
7
+ "failedToParseExcel": "解析 Excel 文件失败",
8
+ "importExcel": "从 Excel 批量导入关键词",
9
+ "importSuccess": "成功导入 {{count}} 个关键词",
10
+ "keywordsInputPlaceholder": "多个关键词用换行符分割",
11
+ "noValidKeywords": "未找到有效关键词",
12
+ "notEqualsAny": "不等于任意一个",
13
+ "providedByPlugin": "由 @nocobase/plugin-multi-keyword-filter 插件提供",
14
+ "selectAtLeastOneColumn": "请至少选择一列",
15
+ "selectColumnsPlaceholder": "请选择要导入的列",
16
+ "selectExcelColumns": "选择要导入的 Excel 列",
17
+ "tips": "选择单列效果:将该列中所有非空值导入为关键词。\n选择多列效果:将多列中的非空值合并为关键词,重复值会被去除。"
18
+ }