@nocobase/plugin-workflow-json-variable-mapping 2.0.22 → 2.1.0-alpha.10
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.
- package/dist/client/index.js +1 -1
- package/dist/externalVersion.js +3 -3
- package/package.json +2 -2
package/dist/client/index.js
CHANGED
|
@@ -7,4 +7,4 @@
|
|
|
7
7
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react-i18next"),require("@ant-design/icons"),require("react"),require("@formily/react"),require("@formily/shared"),require("antd"),require("@nocobase/client"),require("@nocobase/plugin-workflow/client")):"function"==typeof define&&define.amd?define("@nocobase/plugin-workflow-json-variable-mapping",["react-i18next","@ant-design/icons","react","@formily/react","@formily/shared","antd","@nocobase/client","@nocobase/plugin-workflow/client"],e):"object"==typeof exports?exports["@nocobase/plugin-workflow-json-variable-mapping"]=e(require("react-i18next"),require("@ant-design/icons"),require("react"),require("@formily/react"),require("@formily/shared"),require("antd"),require("@nocobase/client"),require("@nocobase/plugin-workflow/client")):t["@nocobase/plugin-workflow-json-variable-mapping"]=e(t["react-i18next"],t["@ant-design/icons"],t.react,t["@formily/react"],t["@formily/shared"],t.antd,t["@nocobase/client"],t["@nocobase/plugin-workflow/client"])}(self,function(t,e,r,n,o,i,u,c){var a={2622:function(t,e,r){t.exports=r(6369)(r(5031),"DataView")},7973:function(t,e,r){var n=r(1783),o=r(1012),i=r(9900),u=r(6691),c=r(2018);function a(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}a.prototype.clear=n,a.prototype.delete=o,a.prototype.get=i,a.prototype.has=u,a.prototype.set=c,t.exports=a},2768:function(t,e,r){var n=r(9896),o=r(2473),i=r(4678),u=r(1240),c=r(4296);function a(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}a.prototype.clear=n,a.prototype.delete=o,a.prototype.get=i,a.prototype.has=u,a.prototype.set=c,t.exports=a},1725:function(t,e,r){t.exports=r(6369)(r(5031),"Map")},736:function(t,e,r){var n=r(6660),o=r(8472),i=r(5637),u=r(9389),c=r(9804);function a(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}a.prototype.clear=n,a.prototype.delete=o,a.prototype.get=i,a.prototype.has=u,a.prototype.set=c,t.exports=a},4575:function(t,e,r){t.exports=r(6369)(r(5031),"Promise")},8995:function(t,e,r){t.exports=r(6369)(r(5031),"Set")},5106:function(t,e,r){var n=r(736),o=r(4867),i=r(9428);function u(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new n;++e<r;)this.add(t[e])}u.prototype.add=u.prototype.push=o,u.prototype.has=i,t.exports=u},5382:function(t,e,r){var n=r(2768),o=r(3533),i=r(7064),u=r(9955),c=r(6087),a=r(3990);function s(t){var e=this.__data__=new n(t);this.size=e.size}s.prototype.clear=o,s.prototype.delete=i,s.prototype.get=u,s.prototype.has=c,s.prototype.set=a,t.exports=s},5869:function(t,e,r){t.exports=r(5031).Symbol},8930:function(t,e,r){t.exports=r(5031).Uint8Array},8110:function(t,e,r){t.exports=r(6369)(r(5031),"WeakMap")},8353:function(t){t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,o=0,i=[];++r<n;){var u=t[r];e(u,r,t)&&(i[o++]=u)}return i}},9360:function(t,e,r){var n=r(7667);t.exports=function(t,e){return!!(null==t?0:t.length)&&n(t,e,0)>-1}},5987:function(t){t.exports=function(t,e,r){for(var n=-1,o=null==t?0:t.length;++n<o;)if(r(e,t[n]))return!0;return!1}},4505:function(t,e,r){var n=r(1650),o=r(8497),i=r(6227),u=r(939),c=r(3501),a=r(2855),s=Object.prototype.hasOwnProperty;t.exports=function(t,e){var r=i(t),f=!r&&o(t),p=!r&&!f&&u(t),l=!r&&!f&&!p&&a(t),y=r||f||p||l,v=y?n(t.length,String):[],b=v.length;for(var h in t)(e||s.call(t,h))&&!(y&&("length"==h||p&&("offset"==h||"parent"==h)||l&&("buffer"==h||"byteLength"==h||"byteOffset"==h)||c(h,b)))&&v.push(h);return v}},2467:function(t){t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}},3571:function(t){t.exports=function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}},9618:function(t){t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}},8746:function(t,e,r){var n=r(3947);t.exports=function(t,e){for(var r=t.length;r--;)if(n(t[r][0],e))return r;return -1}},9443:function(t){t.exports=function(t,e,r,n){for(var o=t.length,i=r+(n?1:-1);n?i--:++i<o;)if(e(t[i],i,t))return i;return -1}},304:function(t,e,r){var n=r(322),o=r(5107);t.exports=function(t,e){e=n(e,t);for(var r=0,i=e.length;null!=t&&r<i;)t=t[o(e[r++])];return r&&r==i?t:void 0}},2481:function(t,e,r){var n=r(3571),o=r(6227);t.exports=function(t,e,r){var i=e(t);return o(t)?i:n(i,r(t))}},4365:function(t,e,r){var n=r(5869),o=r(7043),i=r(5283),u=n?n.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":u&&u in Object(t)?o(t):i(t)}},1547:function(t){t.exports=function(t,e){return null!=t&&e in Object(t)}},7667:function(t,e,r){var n=r(9443),o=r(1222),i=r(3691);t.exports=function(t,e,r){return e==e?i(t,e,r):n(t,o,r)}},8719:function(t,e,r){var n=r(4365),o=r(5620);t.exports=function(t){return o(t)&&"[object Arguments]"==n(t)}},4826:function(t,e,r){var n=r(1177),o=r(5620);t.exports=function t(e,r,i,u,c){return e===r||(null!=e&&null!=r&&(o(e)||o(r))?n(e,r,i,u,t,c):e!=e&&r!=r)}},1177:function(t,e,r){var n=r(5382),o=r(8055),i=r(6551),u=r(8700),c=r(8943),a=r(6227),s=r(939),f=r(2855),p="[object Arguments]",l="[object Array]",y="[object Object]",v=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,b,h,d){var x=a(t),g=a(e),m=x?l:c(t),_=g?l:c(e);m=m==p?y:m,_=_==p?y:_;var j=m==y,w=_==y,O=m==_;if(O&&s(t)){if(!s(e))return!1;x=!0,j=!1}if(O&&!j)return d||(d=new n),x||f(t)?o(t,e,r,b,h,d):i(t,e,m,r,b,h,d);if(!(1&r)){var k=j&&v.call(t,"__wrapped__"),A=w&&v.call(e,"__wrapped__");if(k||A){var S=k?t.value():t,P=A?e.value():e;return d||(d=new n),h(S,P,r,b,d)}}return!!O&&(d||(d=new n),u(t,e,r,b,h,d))}},3762:function(t,e,r){var n=r(5382),o=r(4826);t.exports=function(t,e,r,i){var u=r.length,c=u,a=!i;if(null==t)return!c;for(t=Object(t);u--;){var s=r[u];if(a&&s[2]?s[1]!==t[s[0]]:!(s[0]in t))return!1}for(;++u<c;){var f=(s=r[u])[0],p=t[f],l=s[1];if(a&&s[2]){if(void 0===p&&!(f in t))return!1}else{var y=new n;if(i)var v=i(p,l,f,t,e,y);if(!(void 0===v?o(l,p,3,i,y):v))return!1}}return!0}},1222:function(t){t.exports=function(t){return t!=t}},9930:function(t,e,r){var n=r(3098),o=r(8754),i=r(2917),u=r(1304),c=/^\[object .+?Constructor\]$/,a=Object.prototype,s=Function.prototype.toString,f=a.hasOwnProperty,p=RegExp("^"+s.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!i(t)||o(t))&&(n(t)?p:c).test(u(t))}},7707:function(t,e,r){var n=r(4365),o=r(6613),i=r(5620),u={};u["[object Float32Array]"]=u["[object Float64Array]"]=u["[object Int8Array]"]=u["[object Int16Array]"]=u["[object Int32Array]"]=u["[object Uint8Array]"]=u["[object Uint8ClampedArray]"]=u["[object Uint16Array]"]=u["[object Uint32Array]"]=!0,u["[object Arguments]"]=u["[object Array]"]=u["[object ArrayBuffer]"]=u["[object Boolean]"]=u["[object DataView]"]=u["[object Date]"]=u["[object Error]"]=u["[object Function]"]=u["[object Map]"]=u["[object Number]"]=u["[object Object]"]=u["[object RegExp]"]=u["[object Set]"]=u["[object String]"]=u["[object WeakMap]"]=!1,t.exports=function(t){return i(t)&&o(t.length)&&!!u[n(t)]}},3526:function(t,e,r){var n=r(5159),o=r(4548),i=r(9974),u=r(6227),c=r(7091);t.exports=function(t){return"function"==typeof t?t:null==t?i:"object"==typeof t?u(t)?o(t[0],t[1]):n(t):c(t)}},9849:function(t,e,r){var n=r(2947),o=r(6789),i=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return o(t);var e=[];for(var r in Object(t))i.call(t,r)&&"constructor"!=r&&e.push(r);return e}},5159:function(t,e,r){var n=r(3762),o=r(9812),i=r(7113);t.exports=function(t){var e=o(t);return 1==e.length&&e[0][2]?i(e[0][0],e[0][1]):function(r){return r===t||n(r,t,e)}}},4548:function(t,e,r){var n=r(4826),o=r(557),i=r(9459),u=r(8447),c=r(8546),a=r(7113),s=r(5107);t.exports=function(t,e){return u(t)&&c(e)?a(s(t),e):function(r){var u=o(r,t);return void 0===u&&u===e?i(r,t):n(e,u,3)}}},9511:function(t){t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},8052:function(t,e,r){var n=r(304);t.exports=function(t){return function(e){return n(e,t)}}},1650:function(t){t.exports=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}},4200:function(t,e,r){var n=r(5869),o=r(2467),i=r(6227),u=r(9528),c=1/0,a=n?n.prototype:void 0,s=a?a.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(i(e))return o(e,t)+"";if(u(e))return s?s.call(e):"";var r=e+"";return"0"==r&&1/e==-c?"-0":r}},8611:function(t){t.exports=function(t){return function(e){return t(e)}}},1826:function(t,e,r){var n=r(5106),o=r(9360),i=r(5987),u=r(8342),c=r(4248),a=r(735);t.exports=function(t,e,r){var s=-1,f=o,p=t.length,l=!0,y=[],v=y;if(r)l=!1,f=i;else if(p>=200){var b=e?null:c(t);if(b)return a(b);l=!1,f=u,v=new n}else v=e?[]:y;t:for(;++s<p;){var h=t[s],d=e?e(h):h;if(h=r||0!==h?h:0,l&&d==d){for(var x=v.length;x--;)if(v[x]===d)continue t;e&&v.push(d),y.push(h)}else f(v,d,r)||(v!==y&&v.push(d),y.push(h))}return y}},8342:function(t){t.exports=function(t,e){return t.has(e)}},322:function(t,e,r){var n=r(6227),o=r(8447),i=r(9765),u=r(2954);t.exports=function(t,e){return n(t)?t:o(t,e)?[t]:i(u(t))}},3823:function(t,e,r){t.exports=r(5031)["__core-js_shared__"]},4248:function(t,e,r){var n=r(8995),o=r(555),i=r(735);t.exports=n&&1/i(new n([,-0]))[1]==1/0?function(t){return new n(t)}:o},8055:function(t,e,r){var n=r(5106),o=r(9618),i=r(8342);t.exports=function(t,e,r,u,c,a){var s=1&r,f=t.length,p=e.length;if(f!=p&&!(s&&p>f))return!1;var l=a.get(t),y=a.get(e);if(l&&y)return l==e&&y==t;var v=-1,b=!0,h=2&r?new n:void 0;for(a.set(t,e),a.set(e,t);++v<f;){var d=t[v],x=e[v];if(u)var g=s?u(x,d,v,e,t,a):u(d,x,v,t,e,a);if(void 0!==g){if(g)continue;b=!1;break}if(h){if(!o(e,function(t,e){if(!i(h,e)&&(d===t||c(d,t,r,u,a)))return h.push(e)})){b=!1;break}}else if(!(d===x||c(d,x,r,u,a))){b=!1;break}}return a.delete(t),a.delete(e),b}},6551:function(t,e,r){var n=r(5869),o=r(8930),i=r(3947),u=r(8055),c=r(7305),a=r(735),s=n?n.prototype:void 0,f=s?s.valueOf:void 0;t.exports=function(t,e,r,n,s,p,l){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)break;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":if(t.byteLength!=e.byteLength||!p(new o(t),new o(e)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var y=c;case"[object Set]":var v=1&n;if(y||(y=a),t.size!=e.size&&!v)break;var b=l.get(t);if(b)return b==e;n|=2,l.set(t,e);var h=u(y(t),y(e),n,s,p,l);return l.delete(t),h;case"[object Symbol]":if(f)return f.call(t)==f.call(e)}return!1}},8700:function(t,e,r){var n=r(6498),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,i,u,c){var a=1&r,s=n(t),f=s.length;if(f!=n(e).length&&!a)return!1;for(var p=f;p--;){var l=s[p];if(!(a?l in e:o.call(e,l)))return!1}var y=c.get(t),v=c.get(e);if(y&&v)return y==e&&v==t;var b=!0;c.set(t,e),c.set(e,t);for(var h=a;++p<f;){var d=t[l=s[p]],x=e[l];if(i)var g=a?i(x,d,l,e,t,c):i(d,x,l,t,e,c);if(!(void 0===g?d===x||u(d,x,r,i,c):g)){b=!1;break}h||(h="constructor"==l)}if(b&&!h){var m=t.constructor,_=e.constructor;m!=_&&"constructor"in t&&"constructor"in e&&!("function"==typeof m&&m instanceof m&&"function"==typeof _&&_ instanceof _)&&(b=!1)}return c.delete(t),c.delete(e),b}},5274:function(t,e,r){t.exports="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g},6498:function(t,e,r){var n=r(2481),o=r(5940),i=r(5334);t.exports=function(t){return n(t,i,o)}},9623:function(t,e,r){var n=r(9005);t.exports=function(t,e){var r=t.__data__;return n(e)?r["string"==typeof e?"string":"hash"]:r.map}},9812:function(t,e,r){var n=r(8546),o=r(5334);t.exports=function(t){for(var e=o(t),r=e.length;r--;){var i=e[r],u=t[i];e[r]=[i,u,n(u)]}return e}},6369:function(t,e,r){var n=r(9930),o=r(4502);t.exports=function(t,e){var r=o(t,e);return n(r)?r:void 0}},7043:function(t,e,r){var n=r(5869),o=Object.prototype,i=o.hasOwnProperty,u=o.toString,c=n?n.toStringTag:void 0;t.exports=function(t){var e=i.call(t,c),r=t[c];try{t[c]=void 0;var n=!0}catch(t){}var o=u.call(t);return n&&(e?t[c]=r:delete t[c]),o}},5940:function(t,e,r){var n=r(8353),o=r(3249),i=Object.prototype.propertyIsEnumerable,u=Object.getOwnPropertySymbols;t.exports=u?function(t){return null==t?[]:n(u(t=Object(t)),function(e){return i.call(t,e)})}:o},8943:function(t,e,r){var n=r(2622),o=r(1725),i=r(4575),u=r(8995),c=r(8110),a=r(4365),s=r(1304),f="[object Map]",p="[object Promise]",l="[object Set]",y="[object WeakMap]",v="[object DataView]",b=s(n),h=s(o),d=s(i),x=s(u),g=s(c),m=a;(n&&m(new n(new ArrayBuffer(1)))!=v||o&&m(new o)!=f||i&&m(i.resolve())!=p||u&&m(new u)!=l||c&&m(new c)!=y)&&(m=function(t){var e=a(t),r="[object Object]"==e?t.constructor:void 0,n=r?s(r):"";if(n)switch(n){case b:return v;case h:return f;case d:return p;case x:return l;case g:return y}return e}),t.exports=m},4502:function(t){t.exports=function(t,e){return null==t?void 0:t[e]}},6953:function(t,e,r){var n=r(322),o=r(8497),i=r(6227),u=r(3501),c=r(6613),a=r(5107);t.exports=function(t,e,r){e=n(e,t);for(var s=-1,f=e.length,p=!1;++s<f;){var l=a(e[s]);if(!(p=null!=t&&r(t,l)))break;t=t[l]}return p||++s!=f?p:!!(f=null==t?0:t.length)&&c(f)&&u(l,f)&&(i(t)||o(t))}},1783:function(t,e,r){var n=r(8163);t.exports=function(){this.__data__=n?n(null):{},this.size=0}},1012:function(t){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=+!!e,e}},9900:function(t,e,r){var n=r(8163),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(n){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(e,t)?e[t]:void 0}},6691:function(t,e,r){var n=r(8163),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return n?void 0!==e[t]:o.call(e,t)}},2018:function(t,e,r){var n=r(8163);t.exports=function(t,e){var r=this.__data__;return this.size+=+!this.has(t),r[t]=n&&void 0===e?"__lodash_hash_undefined__":e,this}},3501:function(t){var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,r){var n=typeof t;return!!(r=null==r?0x1fffffffffffff:r)&&("number"==n||"symbol"!=n&&e.test(t))&&t>-1&&t%1==0&&t<r}},8447:function(t,e,r){var n=r(6227),o=r(9528),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,u=/^\w*$/;t.exports=function(t,e){if(n(t))return!1;var r=typeof t;return!!("number"==r||"symbol"==r||"boolean"==r||null==t||o(t))||u.test(t)||!i.test(t)||null!=e&&t in Object(e)}},9005:function(t){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},8754:function(t,e,r){var n,o=r(3823),i=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";t.exports=function(t){return!!i&&i in t}},2947:function(t){var e=Object.prototype;t.exports=function(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||e)}},8546:function(t,e,r){var n=r(2917);t.exports=function(t){return t==t&&!n(t)}},9896:function(t){t.exports=function(){this.__data__=[],this.size=0}},2473:function(t,e,r){var n=r(8746),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__,r=n(e,t);return!(r<0)&&(r==e.length-1?e.pop():o.call(e,r,1),--this.size,!0)}},4678:function(t,e,r){var n=r(8746);t.exports=function(t){var e=this.__data__,r=n(e,t);return r<0?void 0:e[r][1]}},1240:function(t,e,r){var n=r(8746);t.exports=function(t){return n(this.__data__,t)>-1}},4296:function(t,e,r){var n=r(8746);t.exports=function(t,e){var r=this.__data__,o=n(r,t);return o<0?(++this.size,r.push([t,e])):r[o][1]=e,this}},6660:function(t,e,r){var n=r(7973),o=r(2768),i=r(1725);t.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}},8472:function(t,e,r){var n=r(9623);t.exports=function(t){var e=n(this,t).delete(t);return this.size-=+!!e,e}},5637:function(t,e,r){var n=r(9623);t.exports=function(t){return n(this,t).get(t)}},9389:function(t,e,r){var n=r(9623);t.exports=function(t){return n(this,t).has(t)}},9804:function(t,e,r){var n=r(9623);t.exports=function(t,e){var r=n(this,t),o=r.size;return r.set(t,e),this.size+=+(r.size!=o),this}},7305:function(t){t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach(function(t,n){r[++e]=[n,t]}),r}},7113:function(t){t.exports=function(t,e){return function(r){return null!=r&&r[t]===e&&(void 0!==e||t in Object(r))}}},662:function(t,e,r){var n=r(6983);t.exports=function(t){var e=n(t,function(t){return 500===r.size&&r.clear(),t}),r=e.cache;return e}},8163:function(t,e,r){t.exports=r(6369)(Object,"create")},6789:function(t,e,r){t.exports=r(6942)(Object.keys,Object)},1378:function(t,e,r){t=r.nmd(t);var n=r(5274),o=e&&!e.nodeType&&e,i=o&&t&&!t.nodeType&&t,u=i&&i.exports===o&&n.process,c=function(){try{var t=i&&i.require&&i.require("util").types;if(t)return t;return u&&u.binding&&u.binding("util")}catch(t){}}();t.exports=c},5283:function(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},6942:function(t){t.exports=function(t,e){return function(r){return t(e(r))}}},5031:function(t,e,r){var n=r(5274),o="object"==typeof self&&self&&self.Object===Object&&self;t.exports=n||o||Function("return this")()},4867:function(t){t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},9428:function(t){t.exports=function(t){return this.__data__.has(t)}},735:function(t){t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach(function(t){r[++e]=t}),r}},3533:function(t,e,r){var n=r(2768);t.exports=function(){this.__data__=new n,this.size=0}},7064:function(t){t.exports=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}},9955:function(t){t.exports=function(t){return this.__data__.get(t)}},6087:function(t){t.exports=function(t){return this.__data__.has(t)}},3990:function(t,e,r){var n=r(2768),o=r(1725),i=r(736);t.exports=function(t,e){var r=this.__data__;if(r instanceof n){var u=r.__data__;if(!o||u.length<199)return u.push([t,e]),this.size=++r.size,this;r=this.__data__=new i(u)}return r.set(t,e),this.size=r.size,this}},3691:function(t){t.exports=function(t,e,r){for(var n=r-1,o=t.length;++n<o;)if(t[n]===e)return n;return -1}},9765:function(t,e,r){var n=r(662),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g;t.exports=n(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(o,function(t,r,n,o){e.push(n?o.replace(i,"$1"):r||t)}),e})},5107:function(t,e,r){var n=r(9528),o=1/0;t.exports=function(t){if("string"==typeof t||n(t))return t;var e=t+"";return"0"==e&&1/t==-o?"-0":e}},1304:function(t){var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},3947:function(t){t.exports=function(t,e){return t===e||t!=t&&e!=e}},557:function(t,e,r){var n=r(304);t.exports=function(t,e,r){var o=null==t?void 0:n(t,e);return void 0===o?r:o}},9459:function(t,e,r){var n=r(1547),o=r(6953);t.exports=function(t,e){return null!=t&&o(t,e,n)}},9974:function(t){t.exports=function(t){return t}},8497:function(t,e,r){var n=r(8719),o=r(5620),i=Object.prototype,u=i.hasOwnProperty,c=i.propertyIsEnumerable;t.exports=n(function(){return arguments}())?n:function(t){return o(t)&&u.call(t,"callee")&&!c.call(t,"callee")}},6227:function(t){t.exports=Array.isArray},654:function(t,e,r){var n=r(3098),o=r(6613);t.exports=function(t){return null!=t&&o(t.length)&&!n(t)}},939:function(t,e,r){t=r.nmd(t);var n=r(5031),o=r(3863),i=e&&!e.nodeType&&e,u=i&&t&&!t.nodeType&&t,c=u&&u.exports===i?n.Buffer:void 0,a=c?c.isBuffer:void 0;t.exports=a||o},3098:function(t,e,r){var n=r(4365),o=r(2917);t.exports=function(t){if(!o(t))return!1;var e=n(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},6613:function(t){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=0x1fffffffffffff}},2917:function(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},5620:function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},9528:function(t,e,r){var n=r(4365),o=r(5620);t.exports=function(t){return"symbol"==typeof t||o(t)&&"[object Symbol]"==n(t)}},2855:function(t,e,r){var n=r(7707),o=r(8611),i=r(1378),u=i&&i.isTypedArray;t.exports=u?o(u):n},5334:function(t,e,r){var n=r(4505),o=r(9849),i=r(654);t.exports=function(t){return i(t)?n(t):o(t)}},6983:function(t,e,r){var n=r(736);function o(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw TypeError("Expected a function");var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var u=t.apply(this,n);return r.cache=i.set(o,u)||i,u};return r.cache=new(o.Cache||n),r}o.Cache=n,t.exports=o},555:function(t){t.exports=function(){}},7091:function(t,e,r){var n=r(9511),o=r(8052),i=r(8447),u=r(5107);t.exports=function(t){return i(t)?n(u(t)):o(t)}},3249:function(t){t.exports=function(){return[]}},3863:function(t){t.exports=function(){return!1}},2954:function(t,e,r){var n=r(4200);t.exports=function(t){return null==t?"":n(t)}},4944:function(t,e,r){var n=r(3526),o=r(1826);t.exports=function(t,e){return t&&t.length?o(t,n(e,2)):[]}},482:function(t){"use strict";t.exports=e},3505:function(t){"use strict";t.exports=n},8875:function(t){"use strict";t.exports=o},3772:function(t){"use strict";t.exports=u},8433:function(t){"use strict";t.exports=c},2721:function(t){"use strict";t.exports=i},8156:function(t){"use strict";t.exports=r},3238:function(e){"use strict";e.exports=t}},s={};function f(t){var e=s[t];if(void 0!==e)return e.exports;var r=s[t]={id:t,loaded:!1,exports:{}};return a[t](r,r.exports,f),r.loaded=!0,r.exports}f.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return f.d(e,{a:e}),e},f.d=function(t,e){for(var r in e)f.o(e,r)&&!f.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},f.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(t){if("object"==typeof window)return window}}(),f.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},f.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},f.nmd=function(t){return t.paths=[],t.children||(t.children=[]),t};var p={};return!function(){"use strict";f.r(p),f.d(p,{PluginProTplClient:function(){return M},default:function(){return $}});var t=f(3772),e=f(8156),r=f.n(e),n=f(2721),o=f(482),i=f(8433);f(3238);var u="workflow-json-variable-mapping",c=f(4944),a=f.n(c),s=f(8875),l=f(3505),y="___arr$___";function v(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function b(t,e,r,n,o,i,u){try{var c=t[i](u),a=c.value}catch(t){r(t);return}c.done?e(a):Promise.resolve(a).then(n,o)}function h(t){return function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function u(t){b(i,n,o,u,c,"next",t)}function c(t){b(i,n,o,u,c,"throw",t)}u(void 0)})}}function d(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),n.forEach(function(e){var n;n=r[e],e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n})}return t}function x(t,e){return e=null!=e?e:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):(function(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r.push.apply(r,n)}return r})(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}),t}function g(t){return function(t){if(Array.isArray(t))return v(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return v(t,void 0);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return v(t,e)}}(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.")}()}function m(t){return t&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t}function _(t,e){var r,n,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){var a=[i,c];if(r)throw TypeError("Generator is already executing.");for(;u;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return u.label++,{value:a[1],done:!1};case 5:u.label++,n=a[1],a=[0];continue;case 7:a=u.ops.pop(),u.trys.pop();continue;default:if(!(o=(o=u.trys).length>0&&o[o.length-1])&&(6===a[0]||2===a[0])){u=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){u.label=a[1];break}if(6===a[0]&&u.label<o[1]){u.label=o[1],o=a;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(a);break}o[2]&&u.ops.pop(),u.trys.pop();continue}a=e.call(t,u)}catch(t){a=[6,t],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}}}function j(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{parseArray:!1,keys:[],key:""},o=n.parseArray,i=n.keys,u=n.key;if(o){var c=e?"".concat(e,".").concat(u):u;u!==y&&r.push({key:(0,s.uid)(),path:c,name:u,paths:g(i).concat([u])}),w(t,c,r,x(d({},n),{parseArray:o,keys:g(i).concat([u])}))}else{var a="".concat(e?e+(u===y?"":"."):"").concat(u?u===y?"[]":u+"[]":"");u!==y&&r.push({key:(0,s.uid)(),path:"".concat(e?e+(u===y?"":"."):"").concat(u||""),name:u,paths:g(i).concat([u])}),t.forEach(function(e,o){var c=g(i);u&&c.push(u),u!==y&&c.push(y),Array.isArray(t[o])?j(e,a,r,x(d({},n),{key:y,keys:c})):Array.isArray(t[o])||"object"!==m(t[o])||null===t[o]||w(t[o],a,r,x(d({},n),{keys:g(c)}))})}return r}function w(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{parseArray:!1,keys:[]};n.parseArray;var o=n.keys;return Object.keys(t).forEach(function(i){var u=e?"".concat(e,".").concat(i):i;Array.isArray(t[i])?j(t[i],e,r,x(d({},n),{keys:o,key:i})):Array.isArray(t[i])||"object"!==m(t[i])||null===t[i]?r.push({key:(0,s.uid)(),path:u,name:i,paths:g(o).concat([i])}):(r.push({key:(0,s.uid)(),path:u,name:i,paths:g(o).concat([i])}),w(t[i],u,r,x(d({},n),{keys:g(o).concat([i])})))}),r}var O=function(){var t=(0,l.useForm)();return{run:function(){return h(function(){var e,r;return _(this,function(n){try{e=[],r=t.values.example,Array.isArray(r)?e=j(r,"",[],{parseArray:t.values.parseArray,keys:[],key:y}):(void 0===r?"undefined":m(r))==="object"&&null!==r&&(e=w(r,"",[],{parseArray:t.values.parseArray,keys:[]})),t.query("variables").take().onInput(a()(e,"path"))}catch(t){console.error(t)}return[2]})})()}}},k=function(){var t=(0,l.useForm)();return{run:function(){return h(function(){return _(this,function(e){return t.query("variables").take().onInput([]),[2]})})()}}};function A(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function S(t){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function P(t,e){return(P=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function I(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(I=function(){return!!t})()}var z=function(t){var e;if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");function c(){var t,e,a;if(!(this instanceof c))throw TypeError("Cannot call a class as a function");return e=c,a=arguments,e=S(e),A(t=function(t,e){var r;if(e&&("object"==((r=e)&&"undefined"!=typeof Symbol&&r.constructor===Symbol?"symbol":typeof r)||"function"==typeof e))return e;if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(this,I()?Reflect.construct(e,a||[],S(this).constructor):e.apply(this,a)),"title",'{{t("JSON variable mapping", { ns: "'.concat(u,'" })}}')),A(t,"type","json-variable-mapping"),A(t,"group","control"),A(t,"description",'{{t("Used for mapping any JSON data to structured variables for usage in subsequent nodes.", { ns: "'.concat(u,'" })}}')),A(t,"icon",r().createElement(o.SwapRightOutlined,null)),A(t,"fieldset",{dataSource:{type:"string",title:'{{t("JSON data source", { ns: "'.concat(u,'" })}}'),"x-decorator":"FormItem","x-decorator-props":{},"x-component":"WorkflowVariableInput","x-component-props":{nullable:!1,changeOnSelect:!0}},example:{type:"string",title:'{{t("Input example", { ns: "'.concat(u,'" })}}'),"x-decorator":"FormItem","x-decorator-props":{layout:"vertical"},"x-component":"Input.JSON","x-component-props":{placeholder:'{{t(\'Please input JSON example like { "key1": "item1", "key2": "item2" }\', { ns: "'.concat(u,'" })}}'),autoSize:{minRows:5,maxRows:10}}},parseArray:{type:"boolean",description:'{{t(\'If the JSON object contains array items, parse them. eg: { "arrayKey": [ "item1", "item2" ] will be parsed as "arrayKey", "arrayKey.0", "arrayKey.1", if set to false, only "arrayKey" will be parsed.\', { ns: "'.concat(u,'" })}}'),"x-decorator":"FormItem","x-component":"Checkbox","x-content":"{{t('Include array index in path', { ns: \"".concat(u,'" })}}'),default:!1},parseActions:{type:"void",description:"{{t('Please update other node references to the key after clicking the parse button.', { ns: \"".concat(u,'" })}}'),"x-decorator":"FormItem","x-component":"Space",properties:{parseJsonAction:{type:"void",title:"{{t('Parse', { ns: \"".concat(u,'" })}}'),"x-component":"Action","x-component-props":{useAction:"{{ useParseJsonAction }}",size:"small"}},clearItems:{type:"void",title:"{{t('Clear below items', { ns: \"".concat(u,'" })}}'),"x-component":"Action","x-component-props":{useAction:"{{ useClearItemsAction }}",size:"small",confirm:{title:"{{t('Delete items')}}",content:"{{t('Are you sure to clear below items?')}}"}},"x-reactions":[{dependencies:[".variables"],fulfill:{state:{disabled:"{{ $deps[0].length === 0 }}"}}}]}}},variables:{type:"array","x-decorator":"FormItem","x-decorator-props":{layout:"vertical"},"x-component":"ArrayItems","x-component-props":{style:{marginTop:20}},default:[],items:{type:"object",properties:{space:{type:"void","x-component":"Space",properties:{path:{type:"string","x-decorator":"FormItem","x-component":"Input","x-component-props":{placeholder:'{{t("Key path", { ns: "'.concat(u,'" })}}')},"x-disabled":!0},alias:{type:"string","x-decorator":"FormItem","x-component":"Input","x-component-props":{placeholder:'{{t("Alias", { ns: "'.concat(u,'" })}}')}},remove:{type:"void","x-decorator":"FormItem","x-component":"ArrayItems.Remove"}}}}}}}),A(t,"scope",{useParseJsonAction:O,useClearItemsAction:k}),A(t,"components",{Space:n.Space,WorkflowVariableInput:i.WorkflowVariableInput,Fieldset:i.Fieldset}),t}return c.prototype=Object.create(t&&t.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),t&&P(c,t),e=[{key:"useVariables",value:function(t,e){var r;return{value:t.key,label:t.title,children:(null!=(r=t.config.variables)?r:[]).map(function(t){var e=t.key,r=t.alias,n=t.path;return{isLeaf:!0,label:r||n,value:e,key:e}})}}}],function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(c.prototype,e),c}(i.Instruction);function E(t,e,r,n,o,i,u){try{var c=t[i](u),a=c.value}catch(t){r(t);return}c.done?e(a):Promise.resolve(a).then(n,o)}function F(t,e,r){return(F=C()?Reflect.construct:function(t,e,r){var n=[null];n.push.apply(n,e);var o=new(Function.bind.apply(t,n));return r&&q(o,r.prototype),o}).apply(null,arguments)}function T(t){return(T=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function q(t,e){return(q=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function R(t){var e="function"==typeof Map?new Map:void 0;return(R=function(t){if(null===t||-1===Function.toString.call(t).indexOf("[native code]"))return t;if("function"!=typeof t)throw TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return F(t,arguments,T(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),q(r,t)})(t)}function C(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(C=function(){return!!t})()}var M=function(t){var e;if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");function r(){var t,e;if(!(this instanceof r))throw TypeError("Cannot call a class as a function");return t=r,e=arguments,t=T(t),function(t,e){var r;if(e&&("object"==((r=e)&&"undefined"!=typeof Symbol&&r.constructor===Symbol?"symbol":typeof r)||"function"==typeof e))return e;if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(this,C()?Reflect.construct(t,e||[],T(this).constructor):t.apply(this,e))}return r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),t&&q(r,t),e=[{key:"load",value:function(){var t,e=this;return(t=function(){return function(t,e){var r,n,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){var a=[i,c];if(r)throw TypeError("Generator is already executing.");for(;u;)try{if(r=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return u.label++,{value:a[1],done:!1};case 5:u.label++,n=a[1],a=[0];continue;case 7:a=u.ops.pop(),u.trys.pop();continue;default:if(!(o=(o=u.trys).length>0&&o[o.length-1])&&(6===a[0]||2===a[0])){u=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){u.label=a[1];break}if(6===a[0]&&u.label<o[1]){u.label=o[1],o=a;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(a);break}o[2]&&u.ops.pop(),u.trys.pop();continue}a=e.call(t,u)}catch(t){a=[6,t],n=0}finally{r=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}}}(this,function(t){return e.app.pm.get("workflow").registerInstruction("json-variable-mapping",z),[2]})},function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function u(t){E(i,n,o,u,c,"next",t)}function c(t){E(i,n,o,u,c,"throw",t)}u(void 0)})})()}}],function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(r.prototype,e),r}(R(t.Plugin)),$=M}(),p});
|
|
10
|
+
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("@ant-design/icons"),require("@nocobase/plugin-workflow/client"),require("react"),require("antd"),require("@formily/react"),require("@formily/shared"),require("react-i18next"),require("@nocobase/client")):"function"==typeof define&&define.amd?define("@nocobase/plugin-workflow-json-variable-mapping",["@ant-design/icons","@nocobase/plugin-workflow/client","react","antd","@formily/react","@formily/shared","react-i18next","@nocobase/client"],e):"object"==typeof exports?exports["@nocobase/plugin-workflow-json-variable-mapping"]=e(require("@ant-design/icons"),require("@nocobase/plugin-workflow/client"),require("react"),require("antd"),require("@formily/react"),require("@formily/shared"),require("react-i18next"),require("@nocobase/client")):t["@nocobase/plugin-workflow-json-variable-mapping"]=e(t["@ant-design/icons"],t["@nocobase/plugin-workflow/client"],t.react,t.antd,t["@formily/react"],t["@formily/shared"],t["react-i18next"],t["@nocobase/client"])}(self,function(t,e,r,n,o,i,c,u){return function(){var a={7737:function(t,e,r){t.exports=r(3789)(r(5036),"DataView")},5072:function(t,e,r){var n=r(9763),o=r(3879),i=r(8150),c=r(7106),u=r(938);function a(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}a.prototype.clear=n,a.prototype.delete=o,a.prototype.get=i,a.prototype.has=c,a.prototype.set=u,t.exports=a},5332:function(t,e,r){var n=r(3023),o=r(4747),i=r(9978),c=r(6734),u=r(4710);function a(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}a.prototype.clear=n,a.prototype.delete=o,a.prototype.get=i,a.prototype.has=c,a.prototype.set=u,t.exports=a},16:function(t,e,r){t.exports=r(3789)(r(5036),"Map")},1708:function(t,e,r){var n=r(615),o=r(9859),i=r(5170),c=r(8470),u=r(7646);function a(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}a.prototype.clear=n,a.prototype.delete=o,a.prototype.get=i,a.prototype.has=c,a.prototype.set=u,t.exports=a},1767:function(t,e,r){t.exports=r(3789)(r(5036),"Promise")},7802:function(t,e,r){t.exports=r(3789)(r(5036),"Set")},6874:function(t,e,r){var n=r(1708),o=r(9871),i=r(1772);function c(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new n;++e<r;)this.add(t[e])}c.prototype.add=c.prototype.push=o,c.prototype.has=i,t.exports=c},9310:function(t,e,r){var n=r(5332),o=r(9333),i=r(1893),c=r(9676),u=r(6536),a=r(3336);function s(t){var e=this.__data__=new n(t);this.size=e.size}s.prototype.clear=o,s.prototype.delete=i,s.prototype.get=c,s.prototype.has=u,s.prototype.set=a,t.exports=s},7432:function(t,e,r){t.exports=r(5036).Symbol},181:function(t,e,r){t.exports=r(5036).Uint8Array},20:function(t,e,r){t.exports=r(3789)(r(5036),"WeakMap")},5773:function(t){t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,o=0,i=[];++r<n;){var c=t[r];e(c,r,t)&&(i[o++]=c)}return i}},3574:function(t,e,r){var n=r(2712);t.exports=function(t,e){return!!(null==t?0:t.length)&&n(t,e,0)>-1}},9106:function(t){t.exports=function(t,e,r){for(var n=-1,o=null==t?0:t.length;++n<o;)if(r(e,t[n]))return!0;return!1}},6272:function(t,e,r){var n=r(8355),o=r(7933),i=r(9464),c=r(5752),u=r(1574),a=r(264),s=Object.prototype.hasOwnProperty;t.exports=function(t,e){var r=i(t),f=!r&&o(t),p=!r&&!f&&c(t),l=!r&&!f&&!p&&a(t),y=r||f||p||l,v=y?n(t.length,String):[],b=v.length;for(var h in t)(e||s.call(t,h))&&!(y&&("length"==h||p&&("offset"==h||"parent"==h)||l&&("buffer"==h||"byteLength"==h||"byteOffset"==h)||u(h,b)))&&v.push(h);return v}},6233:function(t){t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}},1595:function(t){t.exports=function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}},119:function(t){t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}},5096:function(t,e,r){var n=r(9679);t.exports=function(t,e){for(var r=t.length;r--;)if(n(t[r][0],e))return r;return -1}},8052:function(t){t.exports=function(t,e,r,n){for(var o=t.length,i=r+(n?1:-1);n?i--:++i<o;)if(e(t[i],i,t))return i;return -1}},3117:function(t,e,r){var n=r(8328),o=r(1966);t.exports=function(t,e){e=n(e,t);for(var r=0,i=e.length;null!=t&&r<i;)t=t[o(e[r++])];return r&&r==i?t:void 0}},4090:function(t,e,r){var n=r(1595),o=r(9464);t.exports=function(t,e,r){var i=e(t);return o(t)?i:n(i,r(t))}},6077:function(t,e,r){var n=r(7432),o=r(4444),i=r(3371),c=n?n.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":c&&c in Object(t)?o(t):i(t)}},2282:function(t){t.exports=function(t,e){return null!=t&&e in Object(t)}},2712:function(t,e,r){var n=r(8052),o=r(1264),i=r(7635);t.exports=function(t,e,r){return e==e?i(t,e,r):n(t,o,r)}},5301:function(t,e,r){var n=r(6077),o=r(4189);t.exports=function(t){return o(t)&&"[object Arguments]"==n(t)}},6161:function(t,e,r){var n=r(4715),o=r(4189);t.exports=function t(e,r,i,c,u){return e===r||(null!=e&&null!=r&&(o(e)||o(r))?n(e,r,i,c,t,u):e!=e&&r!=r)}},4715:function(t,e,r){var n=r(9310),o=r(8832),i=r(391),c=r(2132),u=r(1344),a=r(9464),s=r(5752),f=r(264),p="[object Arguments]",l="[object Array]",y="[object Object]",v=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,b,h,d){var x=a(t),g=a(e),m=x?l:u(t),_=g?l:u(e);m=m==p?y:m,_=_==p?y:_;var j=m==y,w=_==y,O=m==_;if(O&&s(t)){if(!s(e))return!1;x=!0,j=!1}if(O&&!j)return d||(d=new n),x||f(t)?o(t,e,r,b,h,d):i(t,e,m,r,b,h,d);if(!(1&r)){var k=j&&v.call(t,"__wrapped__"),A=w&&v.call(e,"__wrapped__");if(k||A){var S=k?t.value():t,P=A?e.value():e;return d||(d=new n),h(S,P,r,b,d)}}return!!O&&(d||(d=new n),c(t,e,r,b,h,d))}},2272:function(t,e,r){var n=r(9310),o=r(6161);t.exports=function(t,e,r,i){var c=r.length,u=c,a=!i;if(null==t)return!u;for(t=Object(t);c--;){var s=r[c];if(a&&s[2]?s[1]!==t[s[0]]:!(s[0]in t))return!1}for(;++c<u;){var f=(s=r[c])[0],p=t[f],l=s[1];if(a&&s[2]){if(void 0===p&&!(f in t))return!1}else{var y=new n;if(i)var v=i(p,l,f,t,e,y);if(!(void 0===v?o(l,p,3,i,y):v))return!1}}return!0}},1264:function(t){t.exports=function(t){return t!=t}},9950:function(t,e,r){var n=r(6553),o=r(3909),i=r(6130),c=r(2760),u=/^\[object .+?Constructor\]$/,a=Object.prototype,s=Function.prototype.toString,f=a.hasOwnProperty,p=RegExp("^"+s.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!i(t)||o(t))&&(n(t)?p:u).test(c(t))}},8912:function(t,e,r){var n=r(6077),o=r(5841),i=r(4189),c={};c["[object Float32Array]"]=c["[object Float64Array]"]=c["[object Int8Array]"]=c["[object Int16Array]"]=c["[object Int32Array]"]=c["[object Uint8Array]"]=c["[object Uint8ClampedArray]"]=c["[object Uint16Array]"]=c["[object Uint32Array]"]=!0,c["[object Arguments]"]=c["[object Array]"]=c["[object ArrayBuffer]"]=c["[object Boolean]"]=c["[object DataView]"]=c["[object Date]"]=c["[object Error]"]=c["[object Function]"]=c["[object Map]"]=c["[object Number]"]=c["[object Object]"]=c["[object RegExp]"]=c["[object Set]"]=c["[object String]"]=c["[object WeakMap]"]=!1,t.exports=function(t){return i(t)&&o(t.length)&&!!c[n(t)]}},2916:function(t,e,r){var n=r(3052),o=r(2273),i=r(515),c=r(9464),u=r(416);t.exports=function(t){return"function"==typeof t?t:null==t?i:"object"==typeof t?c(t)?o(t[0],t[1]):n(t):u(t)}},4829:function(t,e,r){var n=r(2632),o=r(9963),i=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return o(t);var e=[];for(var r in Object(t))i.call(t,r)&&"constructor"!=r&&e.push(r);return e}},3052:function(t,e,r){var n=r(2272),o=r(3145),i=r(9738);t.exports=function(t){var e=o(t);return 1==e.length&&e[0][2]?i(e[0][0],e[0][1]):function(r){return r===t||n(r,t,e)}}},2273:function(t,e,r){var n=r(6161),o=r(613),i=r(8146),c=r(3297),u=r(1685),a=r(9738),s=r(1966);t.exports=function(t,e){return c(t)&&u(e)?a(s(t),e):function(r){var c=o(r,t);return void 0===c&&c===e?i(r,t):n(e,c,3)}}},4024:function(t){t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},4822:function(t,e,r){var n=r(3117);t.exports=function(t){return function(e){return n(e,t)}}},8355:function(t){t.exports=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}},8761:function(t,e,r){var n=r(7432),o=r(6233),i=r(9464),c=r(5733),u=1/0,a=n?n.prototype:void 0,s=a?a.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(i(e))return o(e,t)+"";if(c(e))return s?s.call(e):"";var r=e+"";return"0"==r&&1/e==-u?"-0":r}},7746:function(t){t.exports=function(t){return function(e){return t(e)}}},4900:function(t,e,r){var n=r(6874),o=r(3574),i=r(9106),c=r(4854),u=r(754),a=r(4886);t.exports=function(t,e,r){var s=-1,f=o,p=t.length,l=!0,y=[],v=y;if(r)l=!1,f=i;else if(p>=200){var b=e?null:u(t);if(b)return a(b);l=!1,f=c,v=new n}else v=e?[]:y;t:for(;++s<p;){var h=t[s],d=e?e(h):h;if(h=r||0!==h?h:0,l&&d==d){for(var x=v.length;x--;)if(v[x]===d)continue t;e&&v.push(d),y.push(h)}else f(v,d,r)||(v!==y&&v.push(d),y.push(h))}return y}},4854:function(t){t.exports=function(t,e){return t.has(e)}},8328:function(t,e,r){var n=r(9464),o=r(3297),i=r(5643),c=r(8753);t.exports=function(t,e){return n(t)?t:o(t,e)?[t]:i(c(t))}},4780:function(t,e,r){t.exports=r(5036)["__core-js_shared__"]},754:function(t,e,r){var n=r(7802),o=r(3125),i=r(4886);t.exports=n&&1/i(new n([,-0]))[1]==1/0?function(t){return new n(t)}:o},8832:function(t,e,r){var n=r(6874),o=r(119),i=r(4854);t.exports=function(t,e,r,c,u,a){var s=1&r,f=t.length,p=e.length;if(f!=p&&!(s&&p>f))return!1;var l=a.get(t),y=a.get(e);if(l&&y)return l==e&&y==t;var v=-1,b=!0,h=2&r?new n:void 0;for(a.set(t,e),a.set(e,t);++v<f;){var d=t[v],x=e[v];if(c)var g=s?c(x,d,v,e,t,a):c(d,x,v,t,e,a);if(void 0!==g){if(g)continue;b=!1;break}if(h){if(!o(e,function(t,e){if(!i(h,e)&&(d===t||u(d,t,r,c,a)))return h.push(e)})){b=!1;break}}else if(!(d===x||u(d,x,r,c,a))){b=!1;break}}return a.delete(t),a.delete(e),b}},391:function(t,e,r){var n=r(7432),o=r(181),i=r(9679),c=r(8832),u=r(5860),a=r(4886),s=n?n.prototype:void 0,f=s?s.valueOf:void 0;t.exports=function(t,e,r,n,s,p,l){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)break;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":if(t.byteLength!=e.byteLength||!p(new o(t),new o(e)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var y=u;case"[object Set]":var v=1&n;if(y||(y=a),t.size!=e.size&&!v)break;var b=l.get(t);if(b)return b==e;n|=2,l.set(t,e);var h=c(y(t),y(e),n,s,p,l);return l.delete(t),h;case"[object Symbol]":if(f)return f.call(t)==f.call(e)}return!1}},2132:function(t,e,r){var n=r(1679),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,i,c,u){var a=1&r,s=n(t),f=s.length;if(f!=n(e).length&&!a)return!1;for(var p=f;p--;){var l=s[p];if(!(a?l in e:o.call(e,l)))return!1}var y=u.get(t),v=u.get(e);if(y&&v)return y==e&&v==t;var b=!0;u.set(t,e),u.set(e,t);for(var h=a;++p<f;){var d=t[l=s[p]],x=e[l];if(i)var g=a?i(x,d,l,e,t,u):i(d,x,l,t,e,u);if(!(void 0===g?d===x||c(d,x,r,i,u):g)){b=!1;break}h||(h="constructor"==l)}if(b&&!h){var m=t.constructor,_=e.constructor;m!=_&&"constructor"in t&&"constructor"in e&&!("function"==typeof m&&m instanceof m&&"function"==typeof _&&_ instanceof _)&&(b=!1)}return u.delete(t),u.delete(e),b}},8565:function(t,e,r){t.exports="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g},1679:function(t,e,r){var n=r(4090),o=r(1809),i=r(9125);t.exports=function(t){return n(t,i,o)}},5930:function(t,e,r){var n=r(29);t.exports=function(t,e){var r=t.__data__;return n(e)?r["string"==typeof e?"string":"hash"]:r.map}},3145:function(t,e,r){var n=r(1685),o=r(9125);t.exports=function(t){for(var e=o(t),r=e.length;r--;){var i=e[r],c=t[i];e[r]=[i,c,n(c)]}return e}},3789:function(t,e,r){var n=r(9950),o=r(8869);t.exports=function(t,e){var r=o(t,e);return n(r)?r:void 0}},4444:function(t,e,r){var n=r(7432),o=Object.prototype,i=o.hasOwnProperty,c=o.toString,u=n?n.toStringTag:void 0;t.exports=function(t){var e=i.call(t,u),r=t[u];try{t[u]=void 0;var n=!0}catch(t){}var o=c.call(t);return n&&(e?t[u]=r:delete t[u]),o}},1809:function(t,e,r){var n=r(5773),o=r(3864),i=Object.prototype.propertyIsEnumerable,c=Object.getOwnPropertySymbols;t.exports=c?function(t){return null==t?[]:n(c(t=Object(t)),function(e){return i.call(t,e)})}:o},1344:function(t,e,r){var n=r(7737),o=r(16),i=r(1767),c=r(7802),u=r(20),a=r(6077),s=r(2760),f="[object Map]",p="[object Promise]",l="[object Set]",y="[object WeakMap]",v="[object DataView]",b=s(n),h=s(o),d=s(i),x=s(c),g=s(u),m=a;(n&&m(new n(new ArrayBuffer(1)))!=v||o&&m(new o)!=f||i&&m(i.resolve())!=p||c&&m(new c)!=l||u&&m(new u)!=y)&&(m=function(t){var e=a(t),r="[object Object]"==e?t.constructor:void 0,n=r?s(r):"";if(n)switch(n){case b:return v;case h:return f;case d:return p;case x:return l;case g:return y}return e}),t.exports=m},8869:function(t){t.exports=function(t,e){return null==t?void 0:t[e]}},3773:function(t,e,r){var n=r(8328),o=r(7933),i=r(9464),c=r(1574),u=r(5841),a=r(1966);t.exports=function(t,e,r){e=n(e,t);for(var s=-1,f=e.length,p=!1;++s<f;){var l=a(e[s]);if(!(p=null!=t&&r(t,l)))break;t=t[l]}return p||++s!=f?p:!!(f=null==t?0:t.length)&&u(f)&&c(l,f)&&(i(t)||o(t))}},9763:function(t,e,r){var n=r(267);t.exports=function(){this.__data__=n?n(null):{},this.size=0}},3879:function(t){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=!!e,e}},8150:function(t,e,r){var n=r(267),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(n){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(e,t)?e[t]:void 0}},7106:function(t,e,r){var n=r(267),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return n?void 0!==e[t]:o.call(e,t)}},938:function(t,e,r){var n=r(267);t.exports=function(t,e){var r=this.__data__;return this.size+=+!this.has(t),r[t]=n&&void 0===e?"__lodash_hash_undefined__":e,this}},1574:function(t){var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,r){var n=typeof t;return!!(r=null==r?0x1fffffffffffff:r)&&("number"==n||"symbol"!=n&&e.test(t))&&t>-1&&t%1==0&&t<r}},3297:function(t,e,r){var n=r(9464),o=r(5733),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,c=/^\w*$/;t.exports=function(t,e){if(n(t))return!1;var r=typeof t;return!!("number"==r||"symbol"==r||"boolean"==r||null==t||o(t))||c.test(t)||!i.test(t)||null!=e&&t in Object(e)}},29:function(t){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},3909:function(t,e,r){var n,o=r(4780),i=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";t.exports=function(t){return!!i&&i in t}},2632:function(t){var e=Object.prototype;t.exports=function(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||e)}},1685:function(t,e,r){var n=r(6130);t.exports=function(t){return t==t&&!n(t)}},3023:function(t){t.exports=function(){this.__data__=[],this.size=0}},4747:function(t,e,r){var n=r(5096),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__,r=n(e,t);return!(r<0)&&(r==e.length-1?e.pop():o.call(e,r,1),--this.size,!0)}},9978:function(t,e,r){var n=r(5096);t.exports=function(t){var e=this.__data__,r=n(e,t);return r<0?void 0:e[r][1]}},6734:function(t,e,r){var n=r(5096);t.exports=function(t){return n(this.__data__,t)>-1}},4710:function(t,e,r){var n=r(5096);t.exports=function(t,e){var r=this.__data__,o=n(r,t);return o<0?(++this.size,r.push([t,e])):r[o][1]=e,this}},615:function(t,e,r){var n=r(5072),o=r(5332),i=r(16);t.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}},9859:function(t,e,r){var n=r(5930);t.exports=function(t){var e=n(this,t).delete(t);return this.size-=!!e,e}},5170:function(t,e,r){var n=r(5930);t.exports=function(t){return n(this,t).get(t)}},8470:function(t,e,r){var n=r(5930);t.exports=function(t){return n(this,t).has(t)}},7646:function(t,e,r){var n=r(5930);t.exports=function(t,e){var r=n(this,t),o=r.size;return r.set(t,e),this.size+=+(r.size!=o),this}},5860:function(t){t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach(function(t,n){r[++e]=[n,t]}),r}},9738:function(t){t.exports=function(t,e){return function(r){return null!=r&&r[t]===e&&(void 0!==e||t in Object(r))}}},5647:function(t,e,r){var n=r(7105);t.exports=function(t){var e=n(t,function(t){return 500===r.size&&r.clear(),t}),r=e.cache;return e}},267:function(t,e,r){t.exports=r(3789)(Object,"create")},9963:function(t,e,r){t.exports=r(2344)(Object.keys,Object)},1172:function(t,e,r){t=r.nmd(t);var n=r(8565),o=e&&!e.nodeType&&e,i=o&&t&&!t.nodeType&&t,c=i&&i.exports===o&&n.process,u=function(){try{var t=i&&i.require&&i.require("util").types;if(t)return t;return c&&c.binding&&c.binding("util")}catch(t){}}();t.exports=u},3371:function(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},2344:function(t){t.exports=function(t,e){return function(r){return t(e(r))}}},5036:function(t,e,r){var n=r(8565),o="object"==typeof self&&self&&self.Object===Object&&self;t.exports=n||o||Function("return this")()},9871:function(t){t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},1772:function(t){t.exports=function(t){return this.__data__.has(t)}},4886:function(t){t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach(function(t){r[++e]=t}),r}},9333:function(t,e,r){var n=r(5332);t.exports=function(){this.__data__=new n,this.size=0}},1893:function(t){t.exports=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}},9676:function(t){t.exports=function(t){return this.__data__.get(t)}},6536:function(t){t.exports=function(t){return this.__data__.has(t)}},3336:function(t,e,r){var n=r(5332),o=r(16),i=r(1708);t.exports=function(t,e){var r=this.__data__;if(r instanceof n){var c=r.__data__;if(!o||c.length<199)return c.push([t,e]),this.size=++r.size,this;r=this.__data__=new i(c)}return r.set(t,e),this.size=r.size,this}},7635:function(t){t.exports=function(t,e,r){for(var n=r-1,o=t.length;++n<o;)if(t[n]===e)return n;return -1}},5643:function(t,e,r){var n=r(5647),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g;t.exports=n(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(o,function(t,r,n,o){e.push(n?o.replace(i,"$1"):r||t)}),e})},1966:function(t,e,r){var n=r(5733),o=1/0;t.exports=function(t){if("string"==typeof t||n(t))return t;var e=t+"";return"0"==e&&1/t==-o?"-0":e}},2760:function(t){var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},9679:function(t){t.exports=function(t,e){return t===e||t!=t&&e!=e}},613:function(t,e,r){var n=r(3117);t.exports=function(t,e,r){var o=null==t?void 0:n(t,e);return void 0===o?r:o}},8146:function(t,e,r){var n=r(2282),o=r(3773);t.exports=function(t,e){return null!=t&&o(t,e,n)}},515:function(t){t.exports=function(t){return t}},7933:function(t,e,r){var n=r(5301),o=r(4189),i=Object.prototype,c=i.hasOwnProperty,u=i.propertyIsEnumerable;t.exports=n(function(){return arguments}())?n:function(t){return o(t)&&c.call(t,"callee")&&!u.call(t,"callee")}},9464:function(t){t.exports=Array.isArray},623:function(t,e,r){var n=r(6553),o=r(5841);t.exports=function(t){return null!=t&&o(t.length)&&!n(t)}},5752:function(t,e,r){t=r.nmd(t);var n=r(5036),o=r(8042),i=e&&!e.nodeType&&e,c=i&&t&&!t.nodeType&&t,u=c&&c.exports===i?n.Buffer:void 0,a=u?u.isBuffer:void 0;t.exports=a||o},6553:function(t,e,r){var n=r(6077),o=r(6130);t.exports=function(t){if(!o(t))return!1;var e=n(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},5841:function(t){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=0x1fffffffffffff}},6130:function(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},4189:function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},5733:function(t,e,r){var n=r(6077),o=r(4189);t.exports=function(t){return"symbol"==typeof t||o(t)&&"[object Symbol]"==n(t)}},264:function(t,e,r){var n=r(8912),o=r(7746),i=r(1172),c=i&&i.isTypedArray;t.exports=c?o(c):n},9125:function(t,e,r){var n=r(6272),o=r(4829),i=r(623);t.exports=function(t){return i(t)?n(t):o(t)}},7105:function(t,e,r){var n=r(1708);function o(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw TypeError("Expected a function");var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var c=t.apply(this,n);return r.cache=i.set(o,c)||i,c};return r.cache=new(o.Cache||n),r}o.Cache=n,t.exports=o},3125:function(t){t.exports=function(){}},416:function(t,e,r){var n=r(4024),o=r(4822),i=r(3297),c=r(1966);t.exports=function(t){return i(t)?n(c(t)):o(t)}},3864:function(t){t.exports=function(){return[]}},8042:function(t){t.exports=function(){return!1}},8753:function(t,e,r){var n=r(8761);t.exports=function(t){return null==t?"":n(t)}},4557:function(t,e,r){var n=r(2916),o=r(4900);t.exports=function(t,e){return t&&t.length?o(t,n(e,2)):[]}},7375:function(e){"use strict";e.exports=t},5230:function(t){"use strict";t.exports=o},166:function(t){"use strict";t.exports=i},3342:function(t){"use strict";t.exports=u},1990:function(t){"use strict";t.exports=e},2059:function(t){"use strict";t.exports=n},9155:function(t){"use strict";t.exports=r},5953:function(t){"use strict";t.exports=c}},s={};function f(t){var e=s[t];if(void 0!==e)return e.exports;var r=s[t]={id:t,loaded:!1,exports:{}};return a[t](r,r.exports,f),r.loaded=!0,r.exports}f.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return f.d(e,{a:e}),e},f.d=function(t,e){for(var r in e)f.o(e,r)&&!f.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},f.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(t){if("object"==typeof window)return window}}(),f.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},f.r=function(t){"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},f.nmd=function(t){return t.paths=[],t.children||(t.children=[]),t},f.g.importScripts&&(p=f.g.location+"");var p,l=f.g.document;if(!p&&l&&(l.currentScript&&"SCRIPT"===l.currentScript.tagName.toUpperCase()&&(p=l.currentScript.src),!p)){var y=l.getElementsByTagName("script");if(y.length)for(var v=y.length-1;v>-1&&(!p||!/^http(s?):/.test(p));)p=y[v--].src}if(!p)throw Error("Automatic publicPath is not supported in this browser");f.p=p.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/");var b={};return!function(){"use strict";var t=window.__webpack_public_path__||"/";"/"!==t.charAt(t.length-1)&&(t+="/"),f.p=t+"static/plugins/@nocobase/plugin-workflow-json-variable-mapping/dist/client/"}(),!function(){"use strict";f.r(b),f.d(b,{PluginProTplClient:function(){return C},default:function(){return M}});var t=f(3342),e=f(9155),r=f.n(e),n=f(2059),o=f(7375),i=f(1990);f(5953);var c="workflow-json-variable-mapping",u=f(4557),a=f.n(u),s=f(166),p=f(5230),l="___arr$___";function y(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function v(t,e,r,n,o,i,c){try{var u=t[i](c),a=u.value}catch(t){r(t);return}u.done?e(a):Promise.resolve(a).then(n,o)}function h(t){return function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function c(t){v(i,n,o,c,u,"next",t)}function u(t){v(i,n,o,c,u,"throw",t)}c(void 0)})}}function d(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),n.forEach(function(e){var n;n=r[e],e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n})}return t}function x(t,e){return e=null!=e?e:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):(function(t){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e.push.apply(e,r)}return e})(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}),t}function g(t){return function(t){if(Array.isArray(t))return y(t)}(t)||function(t){if("u">typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t){if(t){if("string"==typeof t)return y(t,void 0);var e=Object.prototype.toString.call(t).slice(8,-1);if("Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e)return Array.from(e);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return y(t,void 0)}}(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.")}()}function m(t){return t&&"u">typeof Symbol&&t.constructor===Symbol?"symbol":typeof t}function _(t,e){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},c=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),u=Object.defineProperty;return u(c,"next",{value:a(0)}),u(c,"throw",{value:a(1)}),u(c,"return",{value:a(2)}),"function"==typeof Symbol&&u(c,Symbol.iterator,{value:function(){return this}}),c;function a(u){return function(a){var s=[u,a];if(r)throw TypeError("Generator is already executing.");for(;c&&(c=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=e.call(t,i)}catch(t){s=[6,t],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}}function j(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{parseArray:!1,keys:[],key:""},o=n.parseArray,i=n.keys,c=n.key;if(o){var u=e?"".concat(e,".").concat(c):c;c!==l&&r.push({key:(0,s.uid)(),path:u,name:c,paths:g(i).concat([c])}),w(t,u,r,x(d({},n),{parseArray:o,keys:g(i).concat([c])}))}else{var a="".concat(e?e+(c===l?"":"."):"").concat(c?c===l?"[]":c+"[]":"");c!==l&&r.push({key:(0,s.uid)(),path:"".concat(e?e+(c===l?"":"."):"").concat(c||""),name:c,paths:g(i).concat([c])}),t.forEach(function(e,o){var u=g(i);c&&u.push(c),c!==l&&u.push(l),Array.isArray(t[o])?j(e,a,r,x(d({},n),{key:l,keys:u})):Array.isArray(t[o])||"object"!==m(t[o])||null===t[o]||w(t[o],a,r,x(d({},n),{keys:g(u)}))})}return r}function w(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{parseArray:!1,keys:[]};n.parseArray;var o=n.keys;return Object.keys(t).forEach(function(i){var c=e?"".concat(e,".").concat(i):i;Array.isArray(t[i])?j(t[i],e,r,x(d({},n),{keys:o,key:i})):Array.isArray(t[i])||"object"!==m(t[i])||null===t[i]?r.push({key:(0,s.uid)(),path:c,name:i,paths:g(o).concat([i])}):(r.push({key:(0,s.uid)(),path:c,name:i,paths:g(o).concat([i])}),w(t[i],c,r,x(d({},n),{keys:g(o).concat([i])})))}),r}var O=function(){var t=(0,p.useForm)();return{run:function(){return h(function(){var e,r;return _(this,function(n){try{e=[],r=t.values.example,Array.isArray(r)?e=j(r,"",[],{parseArray:t.values.parseArray,keys:[],key:l}):(void 0===r?"undefined":m(r))==="object"&&null!==r&&(e=w(r,"",[],{parseArray:t.values.parseArray,keys:[]})),t.query("variables").take().onInput(a()(e,"path"))}catch(t){console.error(t)}return[2]})})()}}},k=function(){var t=(0,p.useForm)();return{run:function(){return h(function(){return _(this,function(e){return t.query("variables").take().onInput([]),[2]})})()}}};function A(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function S(t){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function P(t,e){return(P=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function I(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(I=function(){return!!t})()}var E=function(t){var e;if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");function u(){var t,e,a;if(!(this instanceof u))throw TypeError("Cannot call a class as a function");return e=u,a=arguments,e=S(e),A(t=function(t,e){var r;if(e&&("object"==((r=e)&&"u">typeof Symbol&&r.constructor===Symbol?"symbol":typeof r)||"function"==typeof e))return e;if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(this,I()?Reflect.construct(e,a||[],S(this).constructor):e.apply(this,a)),"title",'{{t("JSON variable mapping", { ns: "'.concat(c,'" })}}')),A(t,"type","json-variable-mapping"),A(t,"group","control"),A(t,"description",'{{t("Used for mapping any JSON data to structured variables for usage in subsequent nodes.", { ns: "'.concat(c,'" })}}')),A(t,"icon",r().createElement(o.SwapRightOutlined,null)),A(t,"fieldset",{dataSource:{type:"string",title:'{{t("JSON data source", { ns: "'.concat(c,'" })}}'),"x-decorator":"FormItem","x-decorator-props":{},"x-component":"WorkflowVariableInput","x-component-props":{nullable:!1,changeOnSelect:!0}},example:{type:"string",title:'{{t("Input example", { ns: "'.concat(c,'" })}}'),"x-decorator":"FormItem","x-decorator-props":{layout:"vertical"},"x-component":"Input.JSON","x-component-props":{placeholder:'{{t(\'Please input JSON example like { "key1": "item1", "key2": "item2" }\', { ns: "'.concat(c,'" })}}'),autoSize:{minRows:5,maxRows:10}}},parseArray:{type:"boolean",description:'{{t(\'If the JSON object contains array items, parse them. eg: { "arrayKey": [ "item1", "item2" ] will be parsed as "arrayKey", "arrayKey.0", "arrayKey.1", if set to false, only "arrayKey" will be parsed.\', { ns: "'.concat(c,'" })}}'),"x-decorator":"FormItem","x-component":"Checkbox","x-content":"{{t('Include array index in path', { ns: \"".concat(c,'" })}}'),default:!1},parseActions:{type:"void",description:"{{t('Please update other node references to the key after clicking the parse button.', { ns: \"".concat(c,'" })}}'),"x-decorator":"FormItem","x-component":"Space",properties:{parseJsonAction:{type:"void",title:"{{t('Parse', { ns: \"".concat(c,'" })}}'),"x-component":"Action","x-component-props":{useAction:"{{ useParseJsonAction }}",size:"small"}},clearItems:{type:"void",title:"{{t('Clear below items', { ns: \"".concat(c,'" })}}'),"x-component":"Action","x-component-props":{useAction:"{{ useClearItemsAction }}",size:"small",confirm:{title:"{{t('Delete items')}}",content:"{{t('Are you sure to clear below items?')}}"}},"x-reactions":[{dependencies:[".variables"],fulfill:{state:{disabled:"{{ $deps[0].length === 0 }}"}}}]}}},variables:{type:"array","x-decorator":"FormItem","x-decorator-props":{layout:"vertical"},"x-component":"ArrayItems","x-component-props":{style:{marginTop:20}},default:[],items:{type:"object",properties:{space:{type:"void","x-component":"Space",properties:{path:{type:"string","x-decorator":"FormItem","x-component":"Input","x-component-props":{placeholder:'{{t("Key path", { ns: "'.concat(c,'" })}}')},"x-disabled":!0},alias:{type:"string","x-decorator":"FormItem","x-component":"Input","x-component-props":{placeholder:'{{t("Alias", { ns: "'.concat(c,'" })}}')}},remove:{type:"void","x-decorator":"FormItem","x-component":"ArrayItems.Remove"}}}}}}}),A(t,"scope",{useParseJsonAction:O,useClearItemsAction:k}),A(t,"components",{Space:n.Space,WorkflowVariableInput:i.WorkflowVariableInput,Fieldset:i.Fieldset}),t}return u.prototype=Object.create(t&&t.prototype,{constructor:{value:u,writable:!0,configurable:!0}}),t&&P(u,t),e=[{key:"useVariables",value:function(t,e){var r;return{value:t.key,label:t.title,children:(null!=(r=t.config.variables)?r:[]).map(function(t){var e=t.key,r=t.alias,n=t.path;return{isLeaf:!0,label:r||n,value:e,key:e}})}}}],function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(u.prototype,e),u}(i.Instruction);function z(t,e,r,n,o,i,c){try{var u=t[i](c),a=u.value}catch(t){r(t);return}u.done?e(a):Promise.resolve(a).then(n,o)}function T(t,e,r){return(T=$()?Reflect.construct:function(t,e,r){var n=[null];n.push.apply(n,e);var o=new(Function.bind.apply(t,n));return r&&q(o,r.prototype),o}).apply(null,arguments)}function F(t){return(F=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function q(t,e){return(q=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function R(t){var e="function"==typeof Map?new Map:void 0;return(R=function(t){if(null===t||-1===Function.toString.call(t).indexOf("[native code]"))return t;if("function"!=typeof t)throw TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return T(t,arguments,F(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),q(r,t)})(t)}function $(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return($=function(){return!!t})()}var C=function(t){var e;if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");function r(){var t,e;if(!(this instanceof r))throw TypeError("Cannot call a class as a function");return t=r,e=arguments,t=F(t),function(t,e){var r;if(e&&("object"==((r=e)&&"u">typeof Symbol&&r.constructor===Symbol?"symbol":typeof r)||"function"==typeof e))return e;if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(this,$()?Reflect.construct(t,e||[],F(this).constructor):t.apply(this,e))}return r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),t&&q(r,t),e=[{key:"load",value:function(){var t;return(t=function(){return function(t,e){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},c=Object.create(("function"==typeof Iterator?Iterator:Object).prototype),u=Object.defineProperty;return u(c,"next",{value:a(0)}),u(c,"throw",{value:a(1)}),u(c,"return",{value:a(2)}),"function"==typeof Symbol&&u(c,Symbol.iterator,{value:function(){return this}}),c;function a(u){return function(a){var s=[u,a];if(r)throw TypeError("Generator is already executing.");for(;c&&(c=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=e.call(t,i)}catch(t){s=[6,t],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}}(this,function(t){return this.app.pm.get("workflow").registerInstruction("json-variable-mapping",E),[2]})},function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function c(t){z(i,n,o,c,u,"next",t)}function u(t){z(i,n,o,c,u,"throw",t)}c(void 0)})}).call(this)}}],function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(r.prototype,e),r}(R(t.Plugin)),M=C}(),b}()});
|
package/dist/externalVersion.js
CHANGED
|
@@ -11,12 +11,12 @@ module.exports = {
|
|
|
11
11
|
"react": "18.2.0",
|
|
12
12
|
"antd": "5.24.2",
|
|
13
13
|
"@ant-design/icons": "5.6.1",
|
|
14
|
-
"@nocobase/plugin-workflow": "2.0.
|
|
14
|
+
"@nocobase/plugin-workflow": "2.1.0-alpha.10",
|
|
15
15
|
"lodash": "4.17.21",
|
|
16
16
|
"@formily/shared": "2.3.7",
|
|
17
17
|
"@formily/core": "2.3.7",
|
|
18
18
|
"@formily/react": "2.3.7",
|
|
19
|
-
"@nocobase/client": "2.0.
|
|
19
|
+
"@nocobase/client": "2.1.0-alpha.10",
|
|
20
20
|
"react-i18next": "11.18.6",
|
|
21
|
-
"@nocobase/server": "2.0.
|
|
21
|
+
"@nocobase/server": "2.1.0-alpha.10"
|
|
22
22
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/plugin-workflow-json-variable-mapping",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.1.0-alpha.10",
|
|
4
4
|
"displayName": "Workflow: JSON variable mapping",
|
|
5
5
|
"displayName.zh-CN": "工作流:JSON 变量映射",
|
|
6
6
|
"description": "Used for mapping any JSON data to structured variables for usage in subsequent nodes.",
|
|
@@ -17,5 +17,5 @@
|
|
|
17
17
|
"Workflow"
|
|
18
18
|
],
|
|
19
19
|
"license": "Apache-2.0",
|
|
20
|
-
"gitHead": "
|
|
20
|
+
"gitHead": "ce790d46c0a5768ca9618c7d0d77ab8300de75c8"
|
|
21
21
|
}
|