@abtnode/blocklet-services 1.16.13-beta-ef672597 → 1.16.13-beta-0086a35d
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/api/index.js +5 -1
- package/api/services/analytics/index.js +38 -0
- package/api/services/auth/session.js +2 -2
- package/api/services/studio/index.js +1 -26
- package/build/asset-manifest.json +121 -43
- package/build/index.html +1 -1
- package/build/service-worker.js +1 -1
- package/build/service-worker.js.map +1 -1
- package/build/static/css/3154.e954fcda.chunk.css +2 -0
- package/build/static/css/780.e3db6e49.chunk.css +2 -0
- package/build/static/css/8730.ecc708b7.chunk.css +2 -0
- package/build/static/js/1162.c3a07ee0.chunk.js +2 -0
- package/build/static/js/1210.b6221400.chunk.js +2 -0
- package/build/static/js/1237.03f3a68a.chunk.js +3 -0
- package/build/static/js/1237.03f3a68a.chunk.js.LICENSE.txt +21 -0
- package/build/static/js/1255.0e8a8a45.chunk.js +2 -0
- package/build/static/js/1610.13323d09.chunk.js +2 -0
- package/build/static/js/1832.4cd8a983.chunk.js +2 -0
- package/build/static/js/1980.dba23d65.chunk.js +2 -0
- package/build/static/js/2139.341406d2.chunk.js +2 -0
- package/build/static/js/2631.54f86f84.chunk.js +2 -0
- package/build/static/js/2793.00991f08.chunk.js +2 -0
- package/build/static/js/2961.8237c11f.chunk.js +3 -0
- package/build/static/js/2961.8237c11f.chunk.js.LICENSE.txt +6 -0
- package/build/static/js/3042.c9fe1ced.chunk.js +2 -0
- package/build/static/js/3162.6bbe08fc.chunk.js +3 -0
- package/build/static/js/3242.86fc9bc6.chunk.js +2 -0
- package/build/static/js/338.2f0211d7.chunk.js +2 -0
- package/build/static/js/3800.bea01eed.chunk.js +2 -0
- package/build/static/js/3953.b81b810f.chunk.js +2 -0
- package/build/static/js/4319.5363b467.chunk.js +2 -0
- package/build/static/js/4359.5ed52fe3.chunk.js +2 -0
- package/build/static/js/{189.971a999d.chunk.js → 445.4ee5d0c9.chunk.js} +3 -3
- package/build/static/js/445.4ee5d0c9.chunk.js.LICENSE.txt +13 -0
- package/build/static/js/4547.b013b965.chunk.js +2 -0
- package/build/static/js/4651.ea828d09.chunk.js +3 -0
- package/build/static/js/4682.81053e18.chunk.js +2 -0
- package/build/static/js/4716.a1240199.chunk.js +2 -0
- package/build/static/js/5050.af9b1e9c.chunk.js +3 -0
- package/build/static/js/5050.af9b1e9c.chunk.js.LICENSE.txt +18 -0
- package/build/static/js/5052.da35270f.chunk.js +2 -0
- package/build/static/js/5176.36610ff7.chunk.js +2 -0
- package/build/static/js/5233.1f42910b.chunk.js +2 -0
- package/build/static/js/5430.f101b648.chunk.js +2 -0
- package/build/static/js/5491.f227b5b4.chunk.js +2 -0
- package/build/static/js/5645.48cf12d4.chunk.js +2 -0
- package/build/static/js/5711.13090883.chunk.js +2 -0
- package/build/static/js/576.d7d4814e.chunk.js +3 -0
- package/build/static/js/{189.971a999d.chunk.js.LICENSE.txt → 576.d7d4814e.chunk.js.LICENSE.txt} +0 -14
- package/build/static/js/5782.cf7e6574.chunk.js +2 -0
- package/build/static/js/6315.dec40b9b.chunk.js +2 -0
- package/build/static/js/652.ae53d530.chunk.js +2 -0
- package/build/static/js/655.cdee65b4.chunk.js +2 -0
- package/build/static/js/6576.e08b0e93.chunk.js +2 -0
- package/build/static/js/6711.a62d0bcd.chunk.js +2 -0
- package/build/static/js/6737.719ec631.chunk.js +2 -0
- package/build/static/js/7240.6bbf13e8.chunk.js +3 -0
- package/build/static/js/7240.6bbf13e8.chunk.js.LICENSE.txt +5 -0
- package/build/static/js/7291.5553195e.chunk.js +2 -0
- package/build/static/js/7345.fb7fa7cf.chunk.js +3 -0
- package/build/static/js/7345.fb7fa7cf.chunk.js.LICENSE.txt +26 -0
- package/build/static/js/7371.04b43294.chunk.js +2 -0
- package/build/static/js/7518.5b02f3ba.chunk.js +2 -0
- package/build/static/js/7606.25231f8c.chunk.js +2 -0
- package/build/static/js/766.724b9aea.chunk.js +2 -0
- package/build/static/js/780.860d0370.chunk.js +2 -0
- package/build/static/js/8341.09d10e93.chunk.js +2 -0
- package/build/static/js/8395.c43afdf4.chunk.js +2 -0
- package/build/static/js/8437.e4b47fc3.chunk.js +2 -0
- package/build/static/js/8669.814198b8.chunk.js +2 -0
- package/build/static/js/8730.0ac0b4df.chunk.js +3 -0
- package/build/static/js/{557.ae37498c.chunk.js.LICENSE.txt → 8730.0ac0b4df.chunk.js.LICENSE.txt} +0 -74
- package/build/static/js/9409.9ba09610.chunk.js +2 -0
- package/build/static/js/9476.302a7b02.chunk.js +2 -0
- package/build/static/js/9645.822c1d69.chunk.js +2 -0
- package/build/static/js/{main.1a30c996.js → main.8210a06b.js} +3 -3
- package/package.json +19 -19
- package/build/static/css/557.9597837e.chunk.css +0 -4
- package/build/static/js/158.0f09b75c.chunk.js +0 -2
- package/build/static/js/162.8c29e450.chunk.js +0 -3
- package/build/static/js/199.3d76c24b.chunk.js +0 -2
- package/build/static/js/255.279b1bca.chunk.js +0 -2
- package/build/static/js/359.0eb124b0.chunk.js +0 -2
- package/build/static/js/371.f67a06b4.chunk.js +0 -2
- package/build/static/js/42.c390a3f4.chunk.js +0 -2
- package/build/static/js/437.075e8453.chunk.js +0 -2
- package/build/static/js/547.ce4b87b4.chunk.js +0 -2
- package/build/static/js/557.ae37498c.chunk.js +0 -3
- package/build/static/js/573.5db9b322.chunk.js +0 -2
- package/build/static/js/610.40349d57.chunk.js +0 -2
- package/build/static/js/682.a8bf723a.chunk.js +0 -2
- package/build/static/js/690.afb99ee7.chunk.js +0 -3
- package/build/static/js/711.56427a24.chunk.js +0 -2
- package/build/static/js/716.1c25a58a.chunk.js +0 -2
- package/build/static/js/737.3e7feae2.chunk.js +0 -2
- package/build/static/js/846.7b7067c2.chunk.js +0 -2
- /package/build/static/js/{162.8c29e450.chunk.js.LICENSE.txt → 3162.6bbe08fc.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{690.afb99ee7.chunk.js.LICENSE.txt → 4651.ea828d09.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{main.1a30c996.js.LICENSE.txt → main.8210a06b.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_abtnode_blocklet_services=self.webpackChunk_abtnode_blocklet_services||[]).push([[1832],{61832:function(e,t,r){r.r(t),r.d(t,{default:function(){return y}});var n,a=r(71171),o=r(96234),i=r(30969),l=r(16380),u=r(86822),c=r(3037),s=r(42167),f=r(64819),d=r(74375),p=r(92174),m=r(37574);function y(){var e=(0,i.useContext)(s.LocaleContext).t,t=(0,p.y0)(),r=t.did,n=t.client,a=(0,u.useSearchParams)(),l=(0,o.Z)(a,2),y=l[0],v=l[1],g=(0,i.useState)(y.get("tab")||"traffic"),j=(0,o.Z)(g,2),h=j[0],O=j[1];(0,i.useEffect)((function(){y.set("tab",h),v(y,{replace:!0})}),[h]);var P=[{label:e("common.traffic"),value:"traffic"},{label:e("common.runtime"),value:"runtime"}],x={traffic:f.ZP,runtime:d.Z},w=x[h]||x.traffic;return(0,m.jsxs)(b,{children:[(0,m.jsx)(c.default,{tabs:P,current:h,onChange:function(e){O(e)}}),(0,m.jsx)("div",{className:"page-content",children:(0,i.isValidElement)(w)?w:(0,m.jsx)(w,{client:n,did:r})})]},h)}var b=l.default.main(n||(n=(0,a.Z)(["\n .page-header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n }\n\n .page-content {\n margin-top: 16px;\n }\n"])))},45242:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.default=y;var n,a=f(r(24974)),o=f(r(16380)),i=f(r(80278)),l=f(r(83964)),u=f(r(49284)),c=f(r(92293)),s=r(37574);function f(e){return e&&e.__esModule?e:{default:e}}function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach((function(t){m(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function m(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function y(e){var t=e.style,r=e.title,n=e.value,a=e.graph,o=e.description;return(0,s.jsx)(g,{children:(0,s.jsxs)(l.default,{style:p({},t),children:[(0,s.jsx)(u.default,{sx:{fontSize:14},color:"text.secondary",children:r}),(0,s.jsx)(u.default,{variant:"h5",component:"div",mt:1,children:n}),a,!!o&&(0,s.jsx)(c.default,{display:"flex",sx:{fontSize:12,marginTop:3},color:"text.secondary",children:o})]})})}y.propTypes={style:a.default.object,title:a.default.node,value:a.default.node,graph:a.default.node,description:a.default.any},y.defaultProps={style:{},title:null,value:null,graph:null,description:null};var b,v,g=(0,o.default)(i.default)(n||(b=["\n .card-content {\n height: 150px;\n }\n\n .card-sparkline {\n flex: 2;\n display: flex;\n position: relative;\n *[hidden] {\n display: none;\n }\n }\n .sparkline {\n stroke: ",";\n fill: ","1A;\n }\n .tooltip {\n position: absolute;\n background: rgba(0, 0, 0, 0.7);\n color: #fff;\n padding: 2px 5px;\n font-size: 12px;\n white-space: nowrap;\n z-index: 9999;\n }\n .sparkline--cursor {\n stroke: orange;\n }\n\n .sparkline--spot {\n fill: red;\n stroke: red;\n }\n"],v||(v=b.slice(0)),n=Object.freeze(Object.defineProperties(b,{raw:{value:Object.freeze(v)}}))),(function(e){return e.theme.palette.primary.main}),(function(e){return e.theme.palette.primary.main}))},90799:function(e,t,r){var n=r(43681).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=y;var a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var r=f(t);if(r&&r.has(e))return r.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,r&&r.set(e,n);return n}(r(30969)),o=s(r(24974)),i=r(83162),l=s(r(30702)),u=s(r(45242)),c=r(37574);function s(e){return e&&e.__esModule?e:{default:e}}function f(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(f=function(e){return e?r:t})(e)}function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach((function(t){m(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function m(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function y(e){var t=e.id,r=e.title,o=e.current,s=e.description,f=e.data,d=e.dateFn,m=e.valueFn,y=(0,a.useRef)(null),b=(0,a.useRef)(null),v=(0,i.useReactive)({style:{top:0,left:0},hidden:!0,textContent:""}),g=(0,a.useState)(null),j=n(g,2),h=j[0],O=j[1],P=(0,i.useSize)(h),x={onmousemove:function(e,t){var r=t.date,n=t.value;v.textContent="".concat(d(r),": ").concat(m(n)),v.style.top=-30,v.style.left=80,v.hidden=!1},onmouseout:function(){v.hidden=!0}};return(0,a.useEffect)((function(){setTimeout((function(){O(document.querySelector(".".concat(t))),setTimeout((function(){y.current&&(0,l.default)(y.current,f||[],x)}),400)}))}),[f]),(0,c.jsx)(u.default,{title:r,value:o,graph:(0,c.jsxs)("div",{className:"card-sparkline ".concat(t),style:{marginTop:16},children:[(0,c.jsx)("svg",{ref:y,className:"sparkline",width:(null===P||void 0===P?void 0:P.width)||100,height:30,strokeWidth:"2"}),(0,c.jsx)("span",{className:"tooltip",ref:b,hidden:v.hidden,style:p({},v.style),children:v.textContent})]}),description:s})}y.propTypes={id:o.default.string.isRequired,title:o.default.string.isRequired,current:o.default.any.isRequired,description:o.default.any,data:o.default.array,dateFn:o.default.func,valueFn:o.default.func},y.defaultProps={description:null,data:[],dateFn:function(e){return e},valueFn:function(e){return e}}},53888:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.default=f;var n=r(30969),a=c(r(24974)),o=r(42167),i=c(r(90799)),l=r(85710),u=r(37574);function c(e){return e&&e.__esModule?e:{default:e}}var s=function(e){return"".concat(e,"%")};function f(e){var t=e.cpus,r=e.currentLoad,a=e.history,c=(0,n.useContext)(o.LocaleContext),f=c.t,d=c.locale;return(0,u.jsx)(i.default,{id:"cpu-sparkline",title:f("common.cpu"),current:"".concat(Math.floor(r||0),"%"),data:a,description:"".concat(f("system.cores"),": ").concat((null===t||void 0===t?void 0:t.length)||0),dateFn:function(e){return(0,l.formatTime)(e,"HH:mm",d)},valueFn:s})}f.propTypes={cpus:a.default.array,currentLoad:a.default.number,history:a.default.array},f.defaultProps={cpus:[],currentLoad:0,history:[]}},74121:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.default=f;var n=s(r(24974)),a=s(r(99237)),o=s(r(92293)),i=r(42167),l=s(r(90799)),u=r(85710),c=r(37574);function s(e){return e&&e.__esModule?e:{default:e}}function f(e){var t=e.instanceCount,r=e.title,n=e.total,s=e.used,f=e.history,d=(0,i.useLocaleContext)(),p=d.t,m=d.locale,y=!!n,b=n-s,v=y?"(".concat(Math.floor(s/n*100),"%)"):"",g=[];return t&&g.push({title:p("system.instances"),metric:t}),g.push({title:p("system.used"),metric:(0,a.default)(s)}),y&&g.push({title:p("system.free"),metric:(0,a.default)(b)},{title:p("system.total"),metric:(0,a.default)(n)}),(0,c.jsx)(l.default,{id:"mem-sparkline",title:r||p("common.memory"),current:"".concat((0,a.default)(Math.floor(s||0))," ").concat(v),data:f,description:g.map((function(e,t){return(0,c.jsxs)(o.default,{sx:{marginLeft:0===t?0:2},children:[e.title,": ",e.metric]},e.title)})),dateFn:function(e){return(0,u.formatTime)(e,"HH:mm",m)},valueFn:a.default})}f.propTypes={title:n.default.string,instanceCount:n.default.number,total:n.default.number,used:n.default.number,history:n.default.array},f.defaultProps={title:"",instanceCount:null,total:null,used:null,history:[]}},74375:function(e,t,r){t.Z=h;var n,a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==typeof e&&"function"!==typeof e)return{default:e};var r=j(t);if(r&&r.has(e))return r.get(e);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=a?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,r&&r.set(e,n);return n}(r(30969)),o=g(r(16380)),i=g(r(99237)),l=g(r(93033)),u=g(r(92293)),c=g(r(82312)),s=g(r(49284)),f=r(7017),d=r(42167),p=r(51145),m=r(85710),y=g(r(17244)),b=g(r(82951)),v=r(37574);function g(e){return e&&e.__esModule?e:{default:e}}function j(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(j=function(e){return e?r:t})(e)}function h(){var e=(0,d.useLocaleContext)(),t=e.t,r=e.locale,n=(0,p.useBlockletContext)(),o=n.blocklet,g=n.runtimeHistory,j=n.actions.refreshBlocklet,h=(0,a.useMemo)((function(){var e=[];return(0,f.forEachBlockletSync)(o,(function(t,r){var n=r.ancestors,a=r.id,i=r.level;t.runtimeInfo&&e.push({type:"blocklet",groupId:o.meta.did,groupName:(0,f.getDisplayName)(o),id:a,name:(0,f.getDisplayName)(t,!0),blocklet:o,component:t,level:i-1>=0?i-1:0,runtimeInfo:t.runtimeInfo,ancestors:n})})),e}),[o]);(0,a.useEffect)((function(){var e=setInterval((function(){j()}),1e4);return function(){clearInterval(e)}}),[]);var O=[{label:t("common.name"),name:"name",options:{customBodyRenderLite:function(e){var t=h[e],r=t.name,n=t.component,a=t.level,o=t.ancestors;return(0,v.jsxs)(u.default,{display:"flex",alignItems:"center",pl:2*a,children:[(0,v.jsx)(b.default,{size:14,blocklet:n,ancestors:o}),(0,v.jsx)(u.default,{ml:1,children:r})]})}}},{label:t("common.uptime"),name:"runtimeInfo.uptime",options:{customBodyRenderLite:function(e){var t,n=h[e].runtimeInfo;return t=n.uptime,(0,l.default)(Number(t||0),{locale:(0,m.formatLocale)(r)})}}},{label:t("blocklet.runtimeInfo.memoryUsage"),name:"runtimeInfo.memoryUsage",options:{customBodyRenderLite:function(e){var t=h[e].runtimeInfo;return(0,i.default)((null===t||void 0===t?void 0:t.memoryUsage)||0)}}},{label:t("blocklet.runtimeInfo.cpuUsage"),name:"runtimeInfo.cpuUsage",options:{customBodyRenderLite:function(e){var t=h[e].runtimeInfo;return"".concat((t.cpuUsage||0).toFixed(1),"%")}}},{label:t("blocklet.runtimeInfo.processId"),name:"runtimeInfo.pid"}];return(0,v.jsxs)(x,{component:"div",children:[(0,v.jsx)(s.default,{component:"h3",variant:"h5",color:"textPrimary",style:{fontSize:18,fontWeight:"bold"},mb:2,children:t("analytics.trend")}),"running"===o.status?[(0,v.jsx)(u.default,{children:(0,v.jsx)(y.default,{blocklet:o,cpuHistory:g.cpu,memoryHistory:g.memory})}),(0,v.jsx)(u.default,{mt:3,children:(0,v.jsx)(c.default,{title:t("analytics.detail"),className:"monitor-table",locale:r,data:h,columns:O,options:{search:!1,download:!1,filter:!1,print:!1,viewColumns:!1,pagination:!1,rowsPerPage:100}})})]:(0,v.jsx)(s.default,{children:t("blocklet.runtimeInfo.noRunning")})]})}h.propTypes={};var O,P,x=(0,o.default)(s.default)(n||(O=[""],P||(P=O.slice(0)),n=Object.freeze(Object.defineProperties(O,{raw:{value:Object.freeze(P)}}))))},64819:function(e,t,r){var n=r(27609).default,a=r(91461).default,o=r(43681).default;t.ZP=function(e){var t=e.client,r=e.did,u=(0,l.default)().subtract(1,"day").toDate(),S=(0,M.useNodeContext)(),I=S.info,R=S.inService,L=(0,k.useLocaleContext)(),F=L.t,W=L.locale,Y=(0,i.useState)(null),H=o(Y,2),q=H[0],U=H[1],B=(0,i.useState)(!1),Z=o(B,2),A=Z[0],V=Z[1],X=(0,i.useState)(u),K=o(X,2),G=K[0],J=K[1],Q=(0,i.useState)({startDate:(0,l.default)().subtract(30,"day").toDate(),endDate:u}),$=o(Q,2),ee=$[0],te=$[1],re=(0,f.default)(a(n().mark((function e(){var a;return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.getTrafficInsights({input:{did:r,startDate:(0,l.default)(ee.startDate).format("YYYY-MM-DD"),endDate:(0,l.default)(ee.endDate).format("YYYY-MM-DD")}});case 2:return a=e.sent,e.abrupt("return",a.list);case 4:case"end":return e.stop()}}),e)}))));(0,i.useEffect)((function(){re.loading||ee.startDate&&ee.endDate&&re.retry()}),[ee]);var ne=function(e){U(q?null:e.currentTarget)},ae=re.value||[],oe=re.loading,ie=re.error;if(!ae.length&&oe)return(0,C.jsx)(m.default,{});if(ie)return(0,C.jsx)(p.default,{severity:"error",children:(0,_.formatError)(ie)});var le={totalRequests:N,validRequests:N,failedRequests:N,uniqueVisitors:N,uniqueFiles:N,uniqueReferrers:N,uniqueNotFound:N,uniqueStaticFiles:N,logSize:s.default,bandwidth:s.default},ue=Object.keys(le).map((function(e){return{id:"".concat(e,"_chart"),title:F("analytics.traffic.".concat(e)),current:ae.length?le[e](ae[0][e]):0,data:ae.map((function(t){return{date:t.date,value:t[e]}})).reverse(),dateFn:N,valueFn:le[e]}})),ce=Boolean(q),se=ce?"date-range-picker-popover":void 0,fe=R?D.WELLKNOWN_SERVICE_PATH_PREFIX:I.routing.adminPath,de=(0,c.default)(window.location.origin,fe,"/api/analytics/traffic?date=".concat((0,l.default)(G).format("YYYY-MM-DD"),"&did=").concat(r));return(0,C.jsxs)("div",{children:[(0,C.jsxs)(b.default,{component:"div",variant:"h5",className:"page-header",color:"textPrimary",style:{fontSize:18,fontWeight:"bold"},mb:2,children:[F("analytics.trend"),(0,C.jsxs)(v.default,{onClick:ne,variant:"outlined",size:"small",color:"secondary",children:[(0,_.formatToDate)(ee.startDate,W)," - ",(0,_.formatToDate)(ee.endDate,W)]})]}),(0,C.jsx)(j.default,{id:se,open:ce,anchorEl:q,onClose:function(){return U(null)},anchorOrigin:{vertical:"bottom",horizontal:"left"},children:(0,C.jsx)(O.DateRangePicker,{open:!0,toggle:ne,maxDate:u,definedRanges:z(G),onChange:function(e){te(e),U(null)}})}),(0,C.jsx)(y.default,{container:!0,spacing:4,children:ue.map((function(e){return(0,C.jsx)(y.default,{item:!0,lg:3,md:6,sm:6,xs:12,children:(0,C.jsx)(E.default,T({},e))},e.id)}))}),(0,C.jsxs)(b.default,{component:"div",variant:"h5",className:"page-header",color:"textPrimary",style:{fontSize:18,fontWeight:"bold"},mt:4,mb:1,children:[F("analytics.detail"),(0,C.jsxs)("span",{children:[A&&(0,C.jsx)(g.default,{onClick:function(){window.open(de)},style:{marginRight:32},children:(0,C.jsx)(h.default,{})}),(0,C.jsx)(w.LocalizationProvider,{dateAdapter:x.AdapterDayjs,children:(0,C.jsx)(P.DatePicker,{disableFuture:!0,format:"ll",value:(0,l.default)(G),onChange:function(e){J(e.toDate()),V(!1)},slotProps:{textField:{size:"small"}}})})]})]}),(0,C.jsx)(d.default,{url:de,width:"100%",height:"100%",frameBorder:0,onLoad:function(){return V(!0)},styles:{border:0,minHeight:"400vh"}})]})};var i=r(30969),l=I(r(19886)),u=I(r(49725)),c=I(r(19611)),s=I(r(99237)),f=I(r(22073)),d=I(r(95973)),p=I(r(25652)),m=I(r(99)),y=I(r(76182)),b=I(r(49284)),v=I(r(84916)),g=I(r(98623)),j=I(r(81868)),h=I(r(70898)),O=r(39626),P=r(61948),x=r(19261),w=r(71935),k=r(42167),D=r(20244),S=r(79265),_=r(85710),M=r(78174),E=I(r(90799)),C=r(37574);function I(e){return e&&e.__esModule?e:{default:e}}function R(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function T(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?R(Object(r),!0).forEach((function(t){L(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):R(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function L(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var N=(0,u.default)(0),z=function(e,t){return[{label:"This Week",startDate:(0,S.startOfWeek)(e,{locale:t}),endDate:(0,S.endOfWeek)(e,{locale:t})},{label:"Last Week",startDate:(0,S.startOfWeek)((0,S.addWeeks)(e,-1),{locale:t}),endDate:(0,S.endOfWeek)((0,S.addWeeks)(e,-1),{locale:t})},{label:"Last 7 Days",startDate:(0,S.addWeeks)(e,-1),endDate:e},{label:"This Month",startDate:(0,S.startOfMonth)(e),endDate:(0,S.endOfMonth)(e)},{label:"Last Month",startDate:(0,S.startOfMonth)((0,S.addMonths)(e,-1)),endDate:(0,S.endOfMonth)((0,S.addMonths)(e,-1))},{label:"This Year",startDate:(0,S.startOfYear)(e),endDate:(0,S.endOfYear)(e)},{label:"Last Year",startDate:(0,S.startOfYear)((0,S.addYears)(e,-1)),endDate:(0,S.endOfYear)((0,S.addYears)(e,-1))}]}},82951:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.default=y;var n=s(r(24974)),a=s(r(42477)),o=s(r(43685)),i=s(r(94764)),l=r(78174),u=r(37574),c=["blocklet","style","size","ancestors"];function s(e){return e&&e.__esModule?e:{default:e}}function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach((function(t){p(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function p(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function m(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function y(e){var t=e.blocklet,r=e.style,n=e.size,s=e.ancestors,f=m(e,c),p=(0,l.useNodeContext)(),y=(0,i.default)({blocklet:t,ancestors:s}),b=y.logoUrl,v=y.inService,g=f.variant,j=v?function(){}:function(e){e.target.src="".concat(p.imgPrefix,"/blocklet.png")},h=(0,u.jsx)("img",{src:b,onError:j,alt:t.meta.name,style:{width:n}});return t.meta.logo||(h=(0,u.jsx)(o.default,{did:t.meta.did||"",responsive:!0})),(0,u.jsx)(a.default,d(d({variant:g||"square",style:Object.assign({backgroundColor:"transparent",width:n,height:n,borderRadius:10},r)},f),{},{children:h}))}y.propTypes={blocklet:n.default.object.isRequired,style:n.default.object,size:n.default.oneOfType([n.default.number,n.default.string]),ancestors:n.default.array},y.defaultProps={style:{},size:40,ancestors:[]}},17244:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.default=v;var n,a=d(r(16380)),o=d(r(24974)),i=d(r(49284)),l=d(r(76182)),u=d(r(53888)),c=d(r(74121)),s=r(37574),f=["blocklet","cpuHistory","memoryHistory"];function d(e){return e&&e.__esModule?e:{default:e}}function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function m(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach((function(t){y(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function y(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function b(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function v(e){var t=e.blocklet,r=e.cpuHistory,n=e.memoryHistory,a=b(e,f),o=t.appRuntimeInfo||{};return(0,s.jsx)(h,m(m({component:"div"},a),{},{children:(0,s.jsxs)(l.default,{className:"page-metrics",container:!0,spacing:5,children:[(0,s.jsx)(l.default,{item:!0,lg:4,md:6,sm:6,xs:12,children:!!r.length&&(0,s.jsx)(u.default,{currentLoad:o.cpuUsage||0,history:r,style:{height:150}})},"cpu"),(0,s.jsx)(l.default,{item:!0,lg:4,md:6,sm:6,xs:12,children:!!n.length&&(0,s.jsx)(c.default,{used:o.memoryUsage||0,history:n,style:{height:150}})},"memory")]})}))}v.propTypes={blocklet:o.default.object.isRequired,cpuHistory:o.default.arrayOf(o.default.shape({date:o.default.number,value:o.default.number})),memoryHistory:o.default.arrayOf(o.default.shape({date:o.default.number,value:o.default.number}))},v.defaultProps={cpuHistory:[],memoryHistory:[]};var g,j,h=(0,a.default)(i.default)(n||(g=[""],j||(j=g.slice(0)),n=Object.freeze(Object.defineProperties(g,{raw:{value:Object.freeze(j)}}))))},94764:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,r=e.blocklet,n=e.ancestors,u=void 0===n?[]:n,c=(0,i.useNodeContext)(),s=c.inService,f="?v=".concat(null===r||void 0===r||null===(t=r.meta)||void 0===t?void 0:t.version).concat((0,l.isDownloading)(null===r||void 0===r?void 0:r.status)?"~":""),d=s?(0,a.default)(l.APP_PREFIX,o.WELLKNOWN_SERVICE_PATH_PREFIX,"/blocklet/logo-bundle",f):(0,a.default)(c.imgPrefix,"blocklet.png");if("registry"===r.source&&r.deployedFrom&&r.meta.logo)d=(0,a.default)(r.deployedFrom,(0,l.formatRegistryLogoPath)(r.meta.bundleDid,r.meta.logo),f);else{var p=window.env.apiPrefix||"/",m=u.concat(r),y=s?m.slice(1):m;d=(0,a.default)(p,"/blocklet/logo-bundle".concat(y.map((function(e){return"/".concat(e.meta.did)})).join("")),f)}return{logoUrl:d,inService:s}};var n,a=(n=r(19611))&&n.__esModule?n:{default:n},o=r(20244),i=r(78174),l=r(85710)}}]);
|
|
2
|
+
//# sourceMappingURL=1832.4cd8a983.chunk.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_abtnode_blocklet_services=self.webpackChunk_abtnode_blocklet_services||[]).push([[1980],{62113:function(e,n,t){t.d(n,{Z:function(){return a}});var r=t(33028);var i=t(88029),o=t(37574);function a(e){var n=Object.assign({},(function(e){if(null==e)throw new TypeError("Cannot destructure "+e)}(e),e));return(0,o.jsx)(i.default,(0,r.Z)({className:"bottom-button",variant:"contained",color:"primary"},n))}},11980:function(e,n,t){t.r(n),t.d(n,{default:function(){return T}});var r,i=t(71171),o=t(96234),a=t(32723),c=t(34795),l=t(30969),u=t(16380),s=t(87006),d=t(38361),f=t(42167),p=t(99811),m=t(47768),b=t(85710),h=t(65724),x=t(62068),v=t(7017),g=t(67615),y=t(86186),j=t(92174),w=t(99042),k=t(48952),O=t(54085),Z=t(96699),P=t(62113),C=t(37574),S=function(e){return["waiting","creating","renewaling"].includes(null===e||void 0===e?void 0:e.status)},_=function(e,n){return new Promise((function(t,r){var i=setInterval((0,c.Z)((0,a.Z)().mark((function o(){var c,l;return(0,a.Z)().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.prev=0,o.next=3,k.Z.findCertificateByDomain({input:{domain:e,did:n}});case 3:if(c=o.sent,"generated"!==(null===(l=c.cert)||void 0===l?void 0:l.status)){o.next=9;break}return clearInterval(i),t(!0),o.abrupt("return");case 9:S(l)||(clearInterval(i),t(!1)),o.next=16;break;case 12:o.prev=12,o.t0=o.catch(0),clearInterval(i),r(o.t0);case 16:case"end":return o.stop()}}),o,null,[[0,12]])}))),1e3)}))},B=function(){var e=(0,c.Z)((0,a.Z)().mark((function e(n,t,r){return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,k.Z.issueLetsEncryptCert({input:{domain:n,did:r}});case 2:return e.abrupt("return",_(n,r));case 3:case"end":return e.stop()}}),e)})));return function(n,t,r){return e.apply(this,arguments)}}();function E(e){var n=e.locale,t=e.label,r=e.value;return(0,C.jsxs)(d.Z,{component:"li",children:[(0,C.jsxs)(d.Z,{component:"span",children:[t,":"]}),(0,C.jsx)(d.Z,{display:"inline-block",fontWeight:"fontWeightBold",color:"primary.main",marginLeft:"12px",children:(0,C.jsxs)(d.Z,{display:"flex",alignItems:"center",children:[r,(0,C.jsx)(y.CopyButton,{content:r,locale:n,style:{marginLeft:"4px"}})]})})]})}function T(e){var n,t=e.onNext,r=e.onPrevious,i=(0,l.useContext)(f.LocaleContext),u=i.t,y=i.locale,O=(0,l.useState)(""),S=(0,o.Z)(O,2),T=S[0],N=S[1],W=(0,l.useState)(!1),L=(0,o.Z)(W,2),z=L[0],I=L[1],A=(0,j.y0)().blocklet,M=(0,l.useState)(""),F=(0,o.Z)(M,2),R=F[0],K=F[1],H=(0,l.useState)(!1),U=(0,o.Z)(H,2),q=U[0],G=U[1],V=((null===A||void 0===A?void 0:A.site)||{}).domainAliases||[],Y=(null===(n=V.filter((function(e){return!e.isProtected}))[0])||void 0===n?void 0:n.value)||"",J=V.filter((function(e){return e.isProtected})).map((function(e){return(0,v.replaceSlotToIp)(e.value,R)})),Q=(0,l.useState)(Y),X=(0,o.Z)(Q,2),$=X[0],ee=X[1],ne=J.find((function(e){return(0,g.isDidDomain)(e)})),te=function(){var e=(0,c.Z)((0,a.Z)().mark((function e(n){return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return N(u("setup.domain.addingDomain")),e.next=3,(0,b.sleep)(1500);case 3:if(V.some((function(e){return e.value===$}))){e.next=6;break}return e.next=6,k.Z.addDomainAlias({input:{id:A.site.id,domainAlias:$,teamDid:A.meta.did}});case 6:return e.next=8,k.Z.configBlocklet({input:{did:[A.meta.did],configs:[{key:h.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_URL,value:"http".concat(n?"s":"","://").concat($)}]}});case 8:t();case 9:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),re=function(){var e=(0,c.Z)((0,a.Z)().mark((function e(){var n,t,r,i,o;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!T){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,N(u("setup.domain.checkingResolvable")),e.next=6,(0,b.sleep)(1500);case 6:return e.next=8,w.Z.get("/dns-resolve?hostname=".concat($));case 8:if(n=e.sent,t=n.data.address){e.next=12;break}throw new Error(u("setup.domain.cannotResolve",{domain:$}));case 12:if(t===R){e.next=14;break}throw new Error(u("setup.domain.resolvedAddressError",{domain:$,curDomain:window.location.hostname}));case 14:return N(u("setup.domain.addingCert")),r=!1,e.next=18,k.Z.findCertificateByDomain({input:{domain:$,did:A.meta.did}});case 18:if(i=e.sent,o=i.cert){e.next=26;break}return e.next=23,B($,y,A.meta.did);case 23:r=e.sent,e.next=39;break;case 26:if("generated"!==o.status){e.next=30;break}r=!0,e.next=39;break;case 30:if(!["waiting","creating","renewaling"].includes(o.status)){e.next=36;break}return e.next=33,_($,A.meta.did);case 33:r=e.sent,e.next=39;break;case 36:return e.next=38,B($,y,A.meta.did);case 38:r=e.sent;case 39:r?te(r):G(!0),e.next=46;break;case 42:e.prev=42,e.t0=e.catch(2),p.default.error(e.t0.message),N("");case 46:case"end":return e.stop()}}),e,null,[[2,42]])})));return function(){return e.apply(this,arguments)}}();return(0,l.useEffect)((function(){w.Z.get("/dns-resolve?hostname=".concat(window.location.hostname)).then((function(e){var n=e.data;K(n.address||"")})).catch((function(e){console.error(e.message)}))}),[]),(0,C.jsxs)(D,{children:[(0,C.jsx)("div",{className:"header",children:(0,C.jsx)(m.default,{title:u("setup.domain.title"),subTitle:u("setup.domain.subTitle"),onClickBack:r})}),q&&(0,C.jsx)(x.default,{PaperProps:{style:{minHeight:"auto"}},open:q,showCloseButton:!1,title:u("setup.domain.genCertFailed"),actions:(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(P.Z,{color:"reverse",onClick:function(){N(""),G(!1)},children:u("setup.cancel")}),(0,C.jsx)(P.Z,{color:"primary",variant:"contained",onClick:function(){G(!1),te(!1)},children:u("setup.confirm")})]}),children:u("setup.domain.certFailedDesc")}),(0,C.jsxs)(d.Z,{className:"form",children:[(0,C.jsxs)(d.Z,{children:[(0,C.jsxs)(d.Z,{mb:1,color:"text.primary",fontWeight:"fontWeightBold",children:[(0,C.jsx)(d.Z,{display:"inline",children:u("setup.domain.skipStart")}),(0,C.jsx)(P.Z,{variant:"text",size:"small",disabled:!!T,onClick:function(){return t()},style:{paddingTop:0},children:(0,C.jsx)("span",{style:{textDecoration:"underline"},children:u("setup.domain.skip")})}),(0,C.jsx)(d.Z,{display:"inline",children:u("setup.domain.skipEnd")})]}),J.map((function(e){return(0,C.jsx)(d.Z,{component:"li",fontWeight:"fontWeightBold",color:"primary.main",children:e})})),(0,C.jsx)(d.Z,{mt:1,fontWeight:"fontWeightBold",color:"text.secondary",children:u("setup.domain.certTip")}),(0,C.jsx)(d.Z,{})]}),(0,C.jsx)(d.Z,{mt:4,fontWeight:"fontWeightBold",children:u("setup.domain.subTitle")}),(0,C.jsx)(s.Z,{style:{marginTop:16,minHeight:64},label:u("setup.domain.label"),fullWidth:!0,value:$,onChange:function(e){var n=e.target.value;ee(n);var t=(0,b.validateDomain)(n,y);I(t)},autoFocus:!0,size:"small",variant:"outlined",error:!!z,helperText:z}),$&&(0,C.jsxs)(d.Z,{color:"text.secondary",children:[(0,C.jsxs)(d.Z,{display:"flex",children:[u("setup.domain.tipStart"),(0,C.jsx)(d.Z,{mx:.5,color:"primary.main",fontWeight:"fontWeightBold",children:$}),u("setup.domain.tipEnd")]}),(0,C.jsx)(E,{label:u("setup.domain.recordType"),value:"CNAME"}),(0,C.jsx)(E,{label:u("setup.domain.recordValue"),value:ne})]})]}),(0,C.jsx)(Z.Z,{mt:8,disabled:!!T,blocklet:A,onStartNow:function(){return t("complete")},children:$?(0,C.jsx)(P.Z,{loading:!!T,disabled:z||!!T||!$,onClick:function(){return re()},children:T||u("setup.next")}):(0,C.jsx)(P.Z,{variant:"outlined",disabled:!!T,onClick:function(){return t()},children:u("setup.skip")})})]})}T.defaultProps={onNext:function(){},onPrevious:function(){}};var D=(0,u.default)(O.Z)(r||(r=(0,i.Z)(["\n height: 100%;\n overflow-y: auto;\n .form {\n width: 580px;\n word-break: break-all;\n "," {\n width: 80%;\n }\n }\n"])),(function(e){return e.theme.breakpoints.down("md")}))},54085:function(e,n,t){var r,i=t(71171),o=t(16380),a=t(98465),c=(0,o.default)(a.Z)(r||(r=(0,i.Z)(["\n display: flex;\n flex-direction: column;\n padding-bottom: 16px;\n "," {\n padding-top: 34px;\n padding-bottom: 34px;\n }\n .header {\n width: 100%;\n margin-bottom: 34px;\n "," {\n margin-bottom: 64px;\n }\n }\n .container-main {\n position: relative;\n flex: 1;\n width: 100%;\n }\n .container-inner {\n position: absolute;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n display: flex;\n justify-content: center;\n overflow-y: auto;\n }\n"])),(function(e){return e.theme.breakpoints.up("md")}),(function(e){return e.theme.breakpoints.up("md")}));n.Z=c},96699:function(e,n,t){t.d(n,{Z:function(){return f}});var r,i,o=t(71171),a=t(16380),c=t(38361),l=t(42167),u=t(88029),s=t(38507),d=t(37574);function f(e){var n=e.blocklet,t=e.onStartNow,r=e.children,i=e.disabled,o=(0,l.useLocaleContext)().t;return!n||(0,s.bg)(n.meta)?(0,d.jsx)(p,{children:r}):(0,d.jsxs)(m,{children:[(0,d.jsx)(u.default,{className:"start-now",variant:"contained",color:"primary",disabled:i,onClick:function(){return t()},children:o("setup.startNow")}),(0,d.jsx)(c.Z,{display:"flex",alignItems:"center",children:r})]})}f.defaultProps={blocklet:null,onStartNow:function(){},children:null,disabled:!1};var p=(0,a.default)(c.Z)(r||(r=(0,o.Z)(["\n padding-top: 24px;\n display: flex;\n align-items: center;\n justify-content: center;\n .bottom-button {\n min-width: 200px;\n }\n "," {\n .bottom-button {\n min-width: 150px;\n }\n }\n"])),(function(e){return e.theme.breakpoints.down("md")})),m=(0,a.default)(c.Z)(i||(i=(0,o.Z)(["\n padding-bottom: 48px;\n padding-top: 24px;\n margin: 0 auto;\n width: 80%;\n display: flex;\n align-items: center;\n justify-content: space-around;\n .start-now {\n min-width: 140px;\n }\n .bottom-button {\n min-width: 120px;\n }\n "," {\n width: 100%;\n }\n\n "," {\n .start-now {\n min-width: 100px;\n }\n .bottom-button {\n min-width: 80px;\n }\n }\n"])),(function(e){return e.theme.breakpoints.down("lg")}),(function(e){return e.theme.breakpoints.down("md")}))},65724:function(e,n,t){var r=this&&this.__createBinding||(Object.create?function(e,n,t,r){void 0===r&&(r=t);var i=Object.getOwnPropertyDescriptor(n,t);i&&!("get"in i?!n.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return n[t]}}),Object.defineProperty(e,r,i)}:function(e,n,t,r){void 0===r&&(r=t),e[r]=n[t]}),i=this&&this.__exportStar||function(e,n){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(n,t)||r(n,e,t)};Object.defineProperty(n,"__esModule",{value:!0}),i(t(59505),n)},98465:function(e,n,t){n.Z=p;var r,i=l(t(16380)),o=l(t(24974)),a=t(37574),c=["children"];function l(e){return e&&e.__esModule?e:{default:e}}function u(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function s(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?u(Object(t),!0).forEach((function(n){d(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):u(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function d(e,n,t){return(n=function(e){var n=function(e,n){if("object"!==typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,n||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===typeof n?n:String(n)}(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function f(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function p(e){var n=e.children,t=f(e,c);return(0,a.jsx)(h,s(s({},t),{},{children:n}))}p.propTypes={children:o.default.any.isRequired};var m,b,h=i.default.div(r||(m=["\n display: flex;\n flex-direction: column;\n align-items: center;\n width: 100%;\n height: 100%;\n\n .header {\n text-align: center;\n }\n\n .body {\n display: flex;\n flex-direction: column;\n align-items: center;\n margin-top: 30px;\n width: 100%;\n min-height: 200px;\n flex: 1;\n\n "," {\n padding: 24px;\n }\n\n "," {\n padding: 0 16px 16px;\n }\n }\n\n .footer {\n display: flex;\n justify-content: center;\n\n "," {\n padding-bottom: 34px;\n }\n\n "," {\n margin-top: auto;\n padding-bottom: 10px;\n }\n }\n"],b||(b=m.slice(0)),r=Object.freeze(Object.defineProperties(m,{raw:{value:Object.freeze(b)}}))),(function(e){return e.theme.breakpoints.up("md")}),(function(e){return e.theme.breakpoints.down("md")}),(function(e){return e.theme.breakpoints.up("sm")}),(function(e){return e.theme.breakpoints.down("md")}))},47768:function(e,n,t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r,i=u(t(16380)),o=u(t(24974)),a=u(t(15405)),c=t(37574),l=["title","subTitle","onClickBack"];function u(e){return e&&e.__esModule?e:{default:e}}function s(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function d(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?s(Object(t),!0).forEach((function(n){f(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):s(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function f(e,n,t){return(n=function(e){var n=function(e,n){if("object"!==typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,n||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===typeof n?n:String(n)}(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function p(e,n){if(null==e)return{};var t,r,i=function(e,n){if(null==e)return{};var t,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(i[t]=e[t]);return i}(e,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}function m(e){var n=e.title,t=e.subTitle,r=e.onClickBack,i=p(e,l);return(0,c.jsxs)(x,d(d({},i),{},{children:[r&&(0,c.jsx)(a.default,{className:"back-btn",onClick:r}),(0,c.jsx)("div",{className:"title",children:n}),(0,c.jsx)("div",{className:"sub-title",children:t})]}))}var b,h,x=i.default.div(r||(b=["\n position: relative;\n width: 100%;\n text-align: center;\n\n .title {\n font-size: 24px;\n font-weight: 700;\n color: ",";\n\n "," {\n font-size: 20px;\n }\n }\n\n .sub-title {\n font-size: 14px;\n color: ",";\n padding: 0 14px;\n font-weight: 400;\n }\n\n .back-btn {\n position: absolute;\n left: 0;\n top: 8px;\n color: #9397a1;\n font-size: 18px;\n cursor: pointer;\n }\n"],h||(h=b.slice(0)),r=Object.freeze(Object.defineProperties(b,{raw:{value:Object.freeze(h)}}))),(function(e){return e.theme.palette.common.black}),(function(e){return e.theme.breakpoints.down("md")}),(function(e){return e.theme.palette.grey[600]})),v=m;n.default=v,m.propTypes={title:o.default.string,subTitle:o.default.string,onClickBack:o.default.oneOfType([o.default.func,o.default.string])},m.defaultProps={title:"",subTitle:"",onClickBack:""}},15405:function(e,n,t){var r=t(71600);Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(t(48035)),o=t(37574),a=(0,i.default)((0,o.jsx)("path",{d:"M11.67 3.87 9.9 2.1 0 12l9.9 9.9 1.77-1.77L3.54 12z"}),"ArrowBackIos");n.default=a}}]);
|
|
2
|
+
//# sourceMappingURL=1980.dba23d65.chunk.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_abtnode_blocklet_services=self.webpackChunk_abtnode_blocklet_services||[]).push([[2139],{62113:function(n,e,t){t.d(e,{Z:function(){return a}});var r=t(33028);var i=t(88029),o=t(37574);function a(n){var e=Object.assign({},(function(n){if(null==n)throw new TypeError("Cannot destructure "+n)}(n),n));return(0,o.jsx)(i.default,(0,r.Z)({className:"bottom-button",variant:"contained",color:"primary"},e))}},22139:function(n,e,t){t.r(e),t.d(e,{default:function(){return _}});var r,i,o,a=t(71171),l=t(32723),c=t(34795),u=t(96234),s=t(30969),f=t(16380),d=t(38361),p=t(42167),m=t(99811),b=t(85710),h=t(67615),g=t(94308),v=t(23426),y=(0,f.default)(v.default)(r||(r=(0,a.Z)(["\n && .result-footer {\n height: 120px;\n > div {\n flex-wrap: wrap;\n }\n }\n"]))),x=t(99042),j=t(54085),w=t(96699),O=t(62113),k=t(92174),P=t(38507),Z=t(48952),S=t(37574);function _(n){var e=n.onPrevious,t=(0,p.useLocaleContext)().t,r=(0,s.useState)(!1),i=(0,u.Z)(r,2),o=i[0],a=i[1],f=(0,s.useState)("starting"),v=(0,u.Z)(f,2),j=v[0],_=v[1],T=(0,s.useState)(),z=(0,u.Z)(T,2),C=z[0],D=z[1],L=(0,k.y0)().blocklet,R=(0,s.useState)(""),M=(0,u.Z)(R,2),I=M[0],U=M[1],q=(0,P.tX)("fromLauncher"),A=!["starting","running"].includes(j),B="starting"===j,F={stopped:t("blocklet.start"),starting:t("blocklet.starting"),running:t("blocklet.open")},H=function(){var n=new URL(window.location.href).searchParams.get("redirect");window.location.href=n?new URL(n,I).href:I},X=function(){var n=(0,c.Z)((0,l.Z)().mark((function n(){var e,r,i,o,c;return(0,l.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return a(!0),_("starting"),n.prev=2,n.next=5,x.Z.post("/blocklet/start",{fromSetup:!0});case 5:return n.next=7,Z.Z.getBlocklet({input:{did:L.meta.did}});case 7:e=n.sent,r=e.blocklet,i=(void 0===r?{}:r).status,a(!1),_(i),D("running"===i?null:t("setup.complete.notRunning")),n.next=23;break;case 16:n.prev=16,n.t0=n.catch(2),c=(null===n.t0||void 0===n.t0||null===(o=n.t0.response)||void 0===o?void 0:o.data)||n.t0.message,m.default.error(c),a(!1),_("stopped"),D(c);case 23:case"end":return n.stop()}}),n,null,[[2,16]])})));return function(){return n.apply(this,arguments)}}();(0,s.useEffect)((function(){_(L.status),["starting","running"].includes(L.status)||X()}),[]),(0,s.useEffect)((function(){var n=function(){var n=(0,c.Z)((0,l.Z)().mark((function n(){var e;return(0,l.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,(0,h.evaluateURLs)(L.site.domainAliases.map((function(n){return(0,b.getAccessUrl)(n.value,P.Bq)})));case 2:(e=n.sent).length>0&&U(e[0].url);case 4:case"end":return n.stop()}}),n)})));return function(){return n.apply(this,arguments)}}();I||n()}),[L,I]);var G=localStorage.getItem("blocklet-server-url"),J=B||!I;return q&&!J&&(A?X():H()),(0,S.jsx)(N,{children:(0,S.jsx)(y,{variant:C?"error":"success",title:t(C?"setup.complete.failedTitle":"setup.complete.title"),footer:(0,S.jsxs)(w.Z,{children:[A&&(0,S.jsx)(O.Z,{variant:"outlined",disabled:o,onClick:function(){return e()},children:t("setup.previous")}),q?(0,S.jsxs)(E,{rel:"noreferrer",children:[(0,S.jsx)(g.Z,{size:16,style:{marginRight:14}})," ",t("common.redirecting")]}):(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(O.Z,{style:{marginLeft:A?24:0},disabled:o||B,onClick:function(){return A?X():H()},loading:J,children:F[j]||F.stopped}),("running"===j||C)&&!!G&&(0,S.jsx)(d.Z,{width:"100%",mt:2,children:(0,S.jsx)("a",{href:G,target:"_blank",rel:"noopener noreferrer",className:"back-to-server-link",children:t("setup.complete.backToServer")})}),C&&(0,S.jsx)(d.Z,{className:"error-message",fontSize:14,color:"#888",mt:1,children:C})]})]})})})}var N=(0,f.default)(j.Z)(i||(i=(0,a.Z)(["\n justify-content: center;\n .icon-success {\n width: 64px;\n height: 64px;\n color: ",";\n }\n .back-to-server-link {\n color: ",";\n }\n .error-message {\n color: ",";\n height: 15em;\n overflow: hidden;\n overflow-y: scroll;\n }\n"])),(function(n){return n.theme.palette.success.main}),(function(n){return n.theme.palette.primary.main}),(function(n){return n.theme.palette.error.main}));_.defaultProps={onPrevious:function(){}};var E=f.default.a(o||(o=(0,a.Z)(["\n display: flex;\n justify-content: center;\n align-items: center;\n height: 36px;\n color: ",";\n"])),(function(n){return n.theme.palette.primary.main}))},54085:function(n,e,t){var r,i=t(71171),o=t(16380),a=t(98465),l=(0,o.default)(a.Z)(r||(r=(0,i.Z)(["\n display: flex;\n flex-direction: column;\n padding-bottom: 16px;\n "," {\n padding-top: 34px;\n padding-bottom: 34px;\n }\n .header {\n width: 100%;\n margin-bottom: 34px;\n "," {\n margin-bottom: 64px;\n }\n }\n .container-main {\n position: relative;\n flex: 1;\n width: 100%;\n }\n .container-inner {\n position: absolute;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n display: flex;\n justify-content: center;\n overflow-y: auto;\n }\n"])),(function(n){return n.theme.breakpoints.up("md")}),(function(n){return n.theme.breakpoints.up("md")}));e.Z=l},96699:function(n,e,t){t.d(e,{Z:function(){return d}});var r,i,o=t(71171),a=t(16380),l=t(38361),c=t(42167),u=t(88029),s=t(38507),f=t(37574);function d(n){var e=n.blocklet,t=n.onStartNow,r=n.children,i=n.disabled,o=(0,c.useLocaleContext)().t;return!e||(0,s.bg)(e.meta)?(0,f.jsx)(p,{children:r}):(0,f.jsxs)(m,{children:[(0,f.jsx)(u.default,{className:"start-now",variant:"contained",color:"primary",disabled:i,onClick:function(){return t()},children:o("setup.startNow")}),(0,f.jsx)(l.Z,{display:"flex",alignItems:"center",children:r})]})}d.defaultProps={blocklet:null,onStartNow:function(){},children:null,disabled:!1};var p=(0,a.default)(l.Z)(r||(r=(0,o.Z)(["\n padding-top: 24px;\n display: flex;\n align-items: center;\n justify-content: center;\n .bottom-button {\n min-width: 200px;\n }\n "," {\n .bottom-button {\n min-width: 150px;\n }\n }\n"])),(function(n){return n.theme.breakpoints.down("md")})),m=(0,a.default)(l.Z)(i||(i=(0,o.Z)(["\n padding-bottom: 48px;\n padding-top: 24px;\n margin: 0 auto;\n width: 80%;\n display: flex;\n align-items: center;\n justify-content: space-around;\n .start-now {\n min-width: 140px;\n }\n .bottom-button {\n min-width: 120px;\n }\n "," {\n width: 100%;\n }\n\n "," {\n .start-now {\n min-width: 100px;\n }\n .bottom-button {\n min-width: 80px;\n }\n }\n"])),(function(n){return n.theme.breakpoints.down("lg")}),(function(n){return n.theme.breakpoints.down("md")}))},98465:function(n,e,t){e.Z=p;var r,i=c(t(16380)),o=c(t(24974)),a=t(37574),l=["children"];function c(n){return n&&n.__esModule?n:{default:n}}function u(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function s(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?u(Object(t),!0).forEach((function(e){f(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):u(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}function f(n,e,t){return(e=function(n){var e=function(n,e){if("object"!==typeof n||null===n)return n;var t=n[Symbol.toPrimitive];if(void 0!==t){var r=t.call(n,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(n)}(n,"string");return"symbol"===typeof e?e:String(e)}(e))in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function d(n,e){if(null==n)return{};var t,r,i=function(n,e){if(null==n)return{};var t,r,i={},o=Object.keys(n);for(r=0;r<o.length;r++)t=o[r],e.indexOf(t)>=0||(i[t]=n[t]);return i}(n,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);for(r=0;r<o.length;r++)t=o[r],e.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(n,t)&&(i[t]=n[t])}return i}function p(n){var e=n.children,t=d(n,l);return(0,a.jsx)(h,s(s({},t),{},{children:e}))}p.propTypes={children:o.default.any.isRequired};var m,b,h=i.default.div(r||(m=["\n display: flex;\n flex-direction: column;\n align-items: center;\n width: 100%;\n height: 100%;\n\n .header {\n text-align: center;\n }\n\n .body {\n display: flex;\n flex-direction: column;\n align-items: center;\n margin-top: 30px;\n width: 100%;\n min-height: 200px;\n flex: 1;\n\n "," {\n padding: 24px;\n }\n\n "," {\n padding: 0 16px 16px;\n }\n }\n\n .footer {\n display: flex;\n justify-content: center;\n\n "," {\n padding-bottom: 34px;\n }\n\n "," {\n margin-top: auto;\n padding-bottom: 10px;\n }\n }\n"],b||(b=m.slice(0)),r=Object.freeze(Object.defineProperties(m,{raw:{value:Object.freeze(b)}}))),(function(n){return n.theme.breakpoints.up("md")}),(function(n){return n.theme.breakpoints.down("md")}),(function(n){return n.theme.breakpoints.up("sm")}),(function(n){return n.theme.breakpoints.down("md")}))},23426:function(n,e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,i=d(t(24974)),o=d(t(16380)),a=d(t(38996)),l=d(t(88581)),c=d(t(99)),u=d(t(72973)),s=t(37574),f=["variant","title","subTitle","footer"];function d(n){return n&&n.__esModule?n:{default:n}}function p(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function m(n){for(var e=1;e<arguments.length;e++){var t=null!=arguments[e]?arguments[e]:{};e%2?p(Object(t),!0).forEach((function(e){b(n,e,t[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):p(Object(t)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))}))}return n}function b(n,e,t){return(e=function(n){var e=function(n,e){if("object"!==typeof n||null===n)return n;var t=n[Symbol.toPrimitive];if(void 0!==t){var r=t.call(n,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(n)}(n,"string");return"symbol"===typeof e?e:String(e)}(e))in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function h(n,e){if(null==n)return{};var t,r,i=function(n,e){if(null==n)return{};var t,r,i={},o=Object.keys(n);for(r=0;r<o.length;r++)t=o[r],e.indexOf(t)>=0||(i[t]=n[t]);return i}(n,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);for(r=0;r<o.length;r++)t=o[r],e.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(n,t)&&(i[t]=n[t])}return i}function g(n){var e,t=n.variant,r=n.title,i=n.subTitle,o=n.footer,d=h(n,f);switch(t){case"error":e=l.default;break;case"info":e=u.default;break;case"loading":e=c.default;break;default:e=a.default}return(0,s.jsx)(j,m(m({variant:t},d),{},{children:(0,s.jsxs)("div",{className:"result-body",children:[(0,s.jsx)("span",{className:"result-icon color-".concat(t),children:(0,s.jsx)(e,{})}),(0,s.jsx)("div",{className:"result-title color-".concat(t," ").concat(r?"":"ele-hide"),children:r}),(0,s.jsx)("div",{className:"result-sub-title ".concat(i?"":"ele-hide"),children:i}),o&&(0,s.jsx)("div",{className:"result-footer",children:o})]})}))}g.propTypes={variant:i.default.oneOf(["success","error","info","loading"]),title:i.default.string,subTitle:i.default.any,footer:i.default.any},g.defaultProps={variant:"success",title:"",subTitle:"",footer:null};var v=g;e.default=v;var y,x,j=o.default.div(r||(y=["\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n text-align: center;\n width: 100%;\n height: 100%;\n\n .result-body {\n padding: 0 14px;\n max-width: 500px;\n text-align: center;\n margin-top: -64px;\n }\n\n .result-icon {\n display: inline-flex;\n justify-content: center;\n align-items: center;\n margin-bottom: 24px;\n width: 48px;\n height: 48px;\n border-radius: 100%;\n color: ",";\n transition: all ease 0.3s;\n &.color-success {\n background-color: ",";\n }\n &.color-error {\n background-color: ",";\n }\n &.color-info {\n background-color: ",";\n }\n }\n\n .result-title {\n height: 34px;\n font-size: 21px;\n margin-bottom: 8px;\n font-weight: bolder;\n transition: all ease 0.3s;\n transition-delay: 0.2s;\n &.color-success {\n color: ",";\n }\n &.color-error {\n color: ",";\n }\n &.color-info {\n color: ",";\n }\n &.ele-hide {\n height: 0;\n opacity: 0;\n margin-bottom: 0;\n }\n }\n\n .result-sub-title {\n margin: 0 auto;\n min-height: 17px;\n color: ",";\n font-size: 14px;\n line-height: 1.21em; // 0.01\u53ef\u4ee5\u89e3\u51b3\u89c6\u7f51\u819c\u5c4f\u8f7b\u5fae\u504f\u79fb\u95ee\u9898\n transition: all ease 0.3s;\n transition-delay: 0.2s;\n word-break: break-word;\n &.ele-hide {\n line-height: 0;\n opacity: 0;\n min-height: 0;\n }\n }\n\n .result-footer {\n padding-top: 24px;\n transition: all ease 0.3s;\n transition-delay: 0.2s;\n }\n"],x||(x=y.slice(0)),r=Object.freeze(Object.defineProperties(y,{raw:{value:Object.freeze(x)}}))),(function(n){return n.theme.palette.common.white}),(function(n){return n.theme.palette.success.main}),(function(n){return n.theme.palette.error.main}),(function(n){return n.theme.palette.primary.main}),(function(n){return n.theme.palette.success.main}),(function(n){return n.theme.palette.error.main}),(function(n){return n.theme.palette.primary.main}),(function(n){return n.theme.palette.grey[700]}))},72973:function(n,e,t){var r=t(71600);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(t(48035)),o=t(37574),a=(0,i.default)([(0,o.jsx)("circle",{cx:"12",cy:"19",r:"2"},"0"),(0,o.jsx)("path",{d:"M10 3h4v12h-4z"},"1")],"PriorityHigh");e.default=a}}]);
|
|
2
|
+
//# sourceMappingURL=2139.341406d2.chunk.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
(self.webpackChunk_abtnode_blocklet_services=self.webpackChunk_abtnode_blocklet_services||[]).push([[2631],{49132:function(e,t,r){"use strict";function n(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];if(!e){var i;if(void 0===t)i=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var a=0;(i=new Error(t.replace(/%s/g,(function(){return n[a++]})))).name="Invariant Violation"}throw i.framesToPop=1,i}}r.d(t,{k:function(){return n}})},16193:function(e,t,r){"use strict";function n(e,t,r,n){var o=r?r.call(n,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!==typeof e||!e||"object"!==typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var u=Object.prototype.hasOwnProperty.bind(t),c=0;c<i.length;c++){var s=i[c];if(!u(s))return!1;var f=e[s],l=t[s];if(!1===(o=r?r.call(n,f,l,s):void 0)||void 0===o&&f!==l)return!1}return!0}r.d(t,{w:function(){return n}})},78489:function(e,t,r){e=r.nmd(e);var n="__lodash_hash_undefined__",o=1,i=2,a=9007199254740991,u="[object Arguments]",c="[object Array]",s="[object AsyncFunction]",f="[object Boolean]",l="[object Date]",d="[object Error]",h="[object Function]",p="[object GeneratorFunction]",g="[object Map]",v="[object Number]",y="[object Null]",b="[object Object]",m="[object Promise]",O="[object Proxy]",D="[object RegExp]",w="[object Set]",S="[object String]",k="[object Symbol]",I="[object Undefined]",T="[object WeakMap]",C="[object ArrayBuffer]",E="[object DataView]",j=/^\[object .+?Constructor\]$/,P=/^(?:0|[1-9]\d*)$/,_={};_["[object Float32Array]"]=_["[object Float64Array]"]=_["[object Int8Array]"]=_["[object Int16Array]"]=_["[object Int32Array]"]=_["[object Uint8Array]"]=_["[object Uint8ClampedArray]"]=_["[object Uint16Array]"]=_["[object Uint32Array]"]=!0,_[u]=_[c]=_[C]=_[f]=_[E]=_[l]=_[d]=_[h]=_[g]=_[v]=_[b]=_[D]=_[w]=_[S]=_[T]=!1;var A="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,x="object"==typeof self&&self&&self.Object===Object&&self,R=A||x||Function("return this")(),M=t&&!t.nodeType&&t,N=M&&e&&!e.nodeType&&e,L=N&&N.exports===M,H=L&&A.process,U=function(){try{return H&&H.binding&&H.binding("util")}catch(e){}}(),F=U&&U.isTypedArray;function z(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function B(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}function W(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}var $,G,Y=Array.prototype,q=Function.prototype,X=Object.prototype,K=R["__core-js_shared__"],V=q.toString,Z=X.hasOwnProperty,J=function(){var e=/[^.]+$/.exec(K&&K.keys&&K.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Q=X.toString,ee=RegExp("^"+V.call(Z).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),te=L?R.Buffer:void 0,re=R.Symbol,ne=R.Uint8Array,oe=X.propertyIsEnumerable,ie=Y.splice,ae=re?re.toStringTag:void 0,ue=Object.getOwnPropertySymbols,ce=te?te.isBuffer:void 0,se=($=Object.keys,G=Object,function(e){return $(G(e))}),fe=He(R,"DataView"),le=He(R,"Map"),de=He(R,"Promise"),he=He(R,"Set"),pe=He(R,"WeakMap"),ge=He(Object,"create"),ve=Be(fe),ye=Be(le),be=Be(de),me=Be(he),Oe=Be(pe),De=re?re.prototype:void 0,we=De?De.valueOf:void 0;function Se(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function ke(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Ie(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Te(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new Ie;++t<r;)this.add(e[t])}function Ce(e){var t=this.__data__=new ke(e);this.size=t.size}function Ee(e,t){var r=Ge(e),n=!r&&$e(e),o=!r&&!n&&Ye(e),i=!r&&!n&&!o&&Ze(e),a=r||n||o||i,u=a?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],c=u.length;for(var s in e)!t&&!Z.call(e,s)||a&&("length"==s||o&&("offset"==s||"parent"==s)||i&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||ze(s,c))||u.push(s);return u}function je(e,t){for(var r=e.length;r--;)if(We(e[r][0],t))return r;return-1}function Pe(e){return null==e?void 0===e?I:y:ae&&ae in Object(e)?function(e){var t=Z.call(e,ae),r=e[ae];try{e[ae]=void 0;var n=!0}catch(i){}var o=Q.call(e);n&&(t?e[ae]=r:delete e[ae]);return o}(e):function(e){return Q.call(e)}(e)}function _e(e){return Ve(e)&&Pe(e)==u}function Ae(e,t,r,n,a){return e===t||(null==e||null==t||!Ve(e)&&!Ve(t)?e!==e&&t!==t:function(e,t,r,n,a,s){var h=Ge(e),p=Ge(t),y=h?c:Fe(e),m=p?c:Fe(t),O=(y=y==u?b:y)==b,I=(m=m==u?b:m)==b,T=y==m;if(T&&Ye(e)){if(!Ye(t))return!1;h=!0,O=!1}if(T&&!O)return s||(s=new Ce),h||Ze(e)?Me(e,t,r,n,a,s):function(e,t,r,n,a,u,c){switch(r){case E:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case C:return!(e.byteLength!=t.byteLength||!u(new ne(e),new ne(t)));case f:case l:case v:return We(+e,+t);case d:return e.name==t.name&&e.message==t.message;case D:case S:return e==t+"";case g:var s=B;case w:var h=n&o;if(s||(s=W),e.size!=t.size&&!h)return!1;var p=c.get(e);if(p)return p==t;n|=i,c.set(e,t);var y=Me(s(e),s(t),n,a,u,c);return c.delete(e),y;case k:if(we)return we.call(e)==we.call(t)}return!1}(e,t,y,r,n,a,s);if(!(r&o)){var j=O&&Z.call(e,"__wrapped__"),P=I&&Z.call(t,"__wrapped__");if(j||P){var _=j?e.value():e,A=P?t.value():t;return s||(s=new Ce),a(_,A,r,n,s)}}if(!T)return!1;return s||(s=new Ce),function(e,t,r,n,i,a){var u=r&o,c=Ne(e),s=c.length,f=Ne(t),l=f.length;if(s!=l&&!u)return!1;var d=s;for(;d--;){var h=c[d];if(!(u?h in t:Z.call(t,h)))return!1}var p=a.get(e);if(p&&a.get(t))return p==t;var g=!0;a.set(e,t),a.set(t,e);var v=u;for(;++d<s;){var y=e[h=c[d]],b=t[h];if(n)var m=u?n(b,y,h,t,e,a):n(y,b,h,e,t,a);if(!(void 0===m?y===b||i(y,b,r,n,a):m)){g=!1;break}v||(v="constructor"==h)}if(g&&!v){var O=e.constructor,D=t.constructor;O==D||!("constructor"in e)||!("constructor"in t)||"function"==typeof O&&O instanceof O&&"function"==typeof D&&D instanceof D||(g=!1)}return a.delete(e),a.delete(t),g}(e,t,r,n,a,s)}(e,t,r,n,Ae,a))}function xe(e){return!(!Ke(e)||function(e){return!!J&&J in e}(e))&&(qe(e)?ee:j).test(Be(e))}function Re(e){if(!function(e){var t=e&&e.constructor,r="function"==typeof t&&t.prototype||X;return e===r}(e))return se(e);var t=[];for(var r in Object(e))Z.call(e,r)&&"constructor"!=r&&t.push(r);return t}function Me(e,t,r,n,a,u){var c=r&o,s=e.length,f=t.length;if(s!=f&&!(c&&f>s))return!1;var l=u.get(e);if(l&&u.get(t))return l==t;var d=-1,h=!0,p=r&i?new Te:void 0;for(u.set(e,t),u.set(t,e);++d<s;){var g=e[d],v=t[d];if(n)var y=c?n(v,g,d,t,e,u):n(g,v,d,e,t,u);if(void 0!==y){if(y)continue;h=!1;break}if(p){if(!z(t,(function(e,t){if(o=t,!p.has(o)&&(g===e||a(g,e,r,n,u)))return p.push(t);var o}))){h=!1;break}}else if(g!==v&&!a(g,v,r,n,u)){h=!1;break}}return u.delete(e),u.delete(t),h}function Ne(e){return function(e,t,r){var n=t(e);return Ge(e)?n:function(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}(n,r(e))}(e,Je,Ue)}function Le(e,t){var r=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?r["string"==typeof t?"string":"hash"]:r.map}function He(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return xe(r)?r:void 0}Se.prototype.clear=function(){this.__data__=ge?ge(null):{},this.size=0},Se.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Se.prototype.get=function(e){var t=this.__data__;if(ge){var r=t[e];return r===n?void 0:r}return Z.call(t,e)?t[e]:void 0},Se.prototype.has=function(e){var t=this.__data__;return ge?void 0!==t[e]:Z.call(t,e)},Se.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=ge&&void 0===t?n:t,this},ke.prototype.clear=function(){this.__data__=[],this.size=0},ke.prototype.delete=function(e){var t=this.__data__,r=je(t,e);return!(r<0)&&(r==t.length-1?t.pop():ie.call(t,r,1),--this.size,!0)},ke.prototype.get=function(e){var t=this.__data__,r=je(t,e);return r<0?void 0:t[r][1]},ke.prototype.has=function(e){return je(this.__data__,e)>-1},ke.prototype.set=function(e,t){var r=this.__data__,n=je(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},Ie.prototype.clear=function(){this.size=0,this.__data__={hash:new Se,map:new(le||ke),string:new Se}},Ie.prototype.delete=function(e){var t=Le(this,e).delete(e);return this.size-=t?1:0,t},Ie.prototype.get=function(e){return Le(this,e).get(e)},Ie.prototype.has=function(e){return Le(this,e).has(e)},Ie.prototype.set=function(e,t){var r=Le(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},Te.prototype.add=Te.prototype.push=function(e){return this.__data__.set(e,n),this},Te.prototype.has=function(e){return this.__data__.has(e)},Ce.prototype.clear=function(){this.__data__=new ke,this.size=0},Ce.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},Ce.prototype.get=function(e){return this.__data__.get(e)},Ce.prototype.has=function(e){return this.__data__.has(e)},Ce.prototype.set=function(e,t){var r=this.__data__;if(r instanceof ke){var n=r.__data__;if(!le||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Ie(n)}return r.set(e,t),this.size=r.size,this};var Ue=ue?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var r=-1,n=null==e?0:e.length,o=0,i=[];++r<n;){var a=e[r];t(a,r,e)&&(i[o++]=a)}return i}(ue(e),(function(t){return oe.call(e,t)})))}:function(){return[]},Fe=Pe;function ze(e,t){return!!(t=null==t?a:t)&&("number"==typeof e||P.test(e))&&e>-1&&e%1==0&&e<t}function Be(e){if(null!=e){try{return V.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function We(e,t){return e===t||e!==e&&t!==t}(fe&&Fe(new fe(new ArrayBuffer(1)))!=E||le&&Fe(new le)!=g||de&&Fe(de.resolve())!=m||he&&Fe(new he)!=w||pe&&Fe(new pe)!=T)&&(Fe=function(e){var t=Pe(e),r=t==b?e.constructor:void 0,n=r?Be(r):"";if(n)switch(n){case ve:return E;case ye:return g;case be:return m;case me:return w;case Oe:return T}return t});var $e=_e(function(){return arguments}())?_e:function(e){return Ve(e)&&Z.call(e,"callee")&&!oe.call(e,"callee")},Ge=Array.isArray;var Ye=ce||function(){return!1};function qe(e){if(!Ke(e))return!1;var t=Pe(e);return t==h||t==p||t==s||t==O}function Xe(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=a}function Ke(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ve(e){return null!=e&&"object"==typeof e}var Ze=F?function(e){return function(t){return e(t)}}(F):function(e){return Ve(e)&&Xe(e.length)&&!!_[Pe(e)]};function Je(e){return null!=(t=e)&&Xe(t.length)&&!qe(t)?Ee(e):Re(e);var t}e.exports=function(e,t){return Ae(e,t)}},96605:function(e,t,r){"use strict";r.r(t),r.d(t,{HTML5Backend:function(){return R},NativeTypes:function(){return n},getEmptyImage:function(){return x}});var n={};function o(e){var t=null;return function(){return null==t&&(t=e()),t}}function i(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)}}r.r(n),r.d(n,{FILE:function(){return v},TEXT:function(){return b},URL:function(){return y}});var a=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.entered=[],this.isNodeInDocument=t}var t,r,n;return t=e,(r=[{key:"enter",value:function(e){var t=this,r=this.entered.length;return this.entered=function(e,t){var r=new Set,n=function(e){return r.add(e)};e.forEach(n),t.forEach(n);var o=[];return r.forEach((function(e){return o.push(e)})),o}(this.entered.filter((function(r){return t.isNodeInDocument(r)&&(!r.contains||r.contains(e))})),[e]),0===r&&this.entered.length>0}},{key:"leave",value:function(e){var t,r,n=this.entered.length;return this.entered=(t=this.entered.filter(this.isNodeInDocument),r=e,t.filter((function(e){return e!==r}))),n>0&&0===this.entered.length}},{key:"reset",value:function(){this.entered=[]}}])&&i(t.prototype,r),n&&i(t,n),e}(),u=o((function(){return/firefox/i.test(navigator.userAgent)})),c=o((function(){return Boolean(window.safari)}));function s(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)}}var f=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);for(var n=t.length,o=[],i=0;i<n;i++)o.push(i);o.sort((function(e,r){return t[e]<t[r]?-1:1}));for(var a,u,c=[],s=[],f=[],l=0;l<n-1;l++)a=t[l+1]-t[l],u=r[l+1]-r[l],s.push(a),c.push(u),f.push(u/a);for(var d=[f[0]],h=0;h<s.length-1;h++){var p=f[h],g=f[h+1];if(p*g<=0)d.push(0);else{a=s[h];var v=s[h+1],y=a+v;d.push(3*y/((y+v)/p+(y+a)/g))}}d.push(f[f.length-1]);for(var b,m=[],O=[],D=0;D<d.length-1;D++){b=f[D];var w=d[D],S=1/s[D],k=w+d[D+1]-b-b;m.push((b-w-k)*S),O.push(k*S*S)}this.xs=t,this.ys=r,this.c1s=d,this.c2s=m,this.c3s=O}var t,r,n;return t=e,(r=[{key:"interpolate",value:function(e){var t=this.xs,r=this.ys,n=this.c1s,o=this.c2s,i=this.c3s,a=t.length-1;if(e===t[a])return r[a];for(var u,c=0,s=i.length-1;c<=s;){var f=t[u=Math.floor(.5*(c+s))];if(f<e)c=u+1;else{if(!(f>e))return r[u];s=u-1}}var l=e-t[a=Math.max(0,s)],d=l*l;return r[a]+n[a]*l+o[a]*d+i[a]*l*d}}])&&s(t.prototype,r),n&&s(t,n),e}(),l=1;function d(e){var t=e.nodeType===l?e:e.parentElement;if(!t)return null;var r=t.getBoundingClientRect(),n=r.top;return{x:r.left,y:n}}function h(e){return{x:e.clientX,y:e.clientY}}function p(e,t,r,n,o){var i=function(e){var t;return"IMG"===e.nodeName&&(u()||!(null===(t=document.documentElement)||void 0===t?void 0:t.contains(e)))}(t),a=d(i?e:t),s={x:r.x-a.x,y:r.y-a.y},l=e.offsetWidth,h=e.offsetHeight,p=n.anchorX,g=n.anchorY,v=function(e,t,r,n){var o=e?t.width:r,i=e?t.height:n;return c()&&e&&(i/=window.devicePixelRatio,o/=window.devicePixelRatio),{dragPreviewWidth:o,dragPreviewHeight:i}}(i,t,l,h),y=v.dragPreviewWidth,b=v.dragPreviewHeight,m=o.offsetX,O=o.offsetY,D=0===O||O;return{x:0===m||m?m:new f([0,.5,1],[s.x,s.x/l*y,s.x+y-l]).interpolate(p),y:D?O:function(){var e=new f([0,.5,1],[s.y,s.y/h*b,s.y+b-h]).interpolate(g);return c()&&i&&(e+=(window.devicePixelRatio-1)*b),e}()}}var g,v="__NATIVE_FILE__",y="__NATIVE_URL__",b="__NATIVE_TEXT__";function m(e,t,r){var n=t.reduce((function(t,r){return t||e.getData(r)}),"");return null!=n?n:r}function O(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var D=(O(g={},v,{exposeProperties:{files:function(e){return Array.prototype.slice.call(e.files)},items:function(e){return e.items}},matchesTypes:["Files"]}),O(g,y,{exposeProperties:{urls:function(e,t){return m(e,t,"").split("\n")}},matchesTypes:["Url","text/uri-list"]}),O(g,b,{exposeProperties:{text:function(e,t){return m(e,t,"")}},matchesTypes:["Text","text/plain"]}),g);function w(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)}}var S=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.config=t,this.item={},this.initializeExposedProperties()}var t,r,n;return t=e,(r=[{key:"initializeExposedProperties",value:function(){var e=this;Object.keys(this.config.exposeProperties).forEach((function(t){Object.defineProperty(e.item,t,{configurable:!0,enumerable:!0,get:function(){return console.warn("Browser doesn't allow reading \"".concat(t,'" until the drop event.')),null}})}))}},{key:"loadDataTransfer",value:function(e){var t=this;if(e){var r={};Object.keys(this.config.exposeProperties).forEach((function(n){r[n]={value:t.config.exposeProperties[n](e,t.config.matchesTypes),configurable:!0,enumerable:!0}})),Object.defineProperties(this.item,r)}}},{key:"canDrag",value:function(){return!0}},{key:"beginDrag",value:function(){return this.item}},{key:"isDragging",value:function(e,t){return t===e.getSourceId()}},{key:"endDrag",value:function(){}}])&&w(t.prototype,r),n&&w(t,n),e}();function k(e){if(!e)return null;var t=Array.prototype.slice.call(e.types||[]);return Object.keys(D).filter((function(e){return D[e].matchesTypes.some((function(e){return t.indexOf(e)>-1}))}))[0]||null}function I(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)}}var T=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.globalContext=t}var t,r,n;return t=e,(r=[{key:"window",get:function(){return this.globalContext?this.globalContext:"undefined"!==typeof window?window:void 0}},{key:"document",get:function(){if(this.window)return this.window.document}}])&&I(t.prototype,r),n&&I(t,n),e}();function C(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function E(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?C(Object(r),!0).forEach((function(t){j(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):C(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function j(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function P(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)}}var _,A=function(){function e(t,r){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.getSourceClientOffset=function(e){var t=n.sourceNodes.get(e);return t&&d(t)||null},this.endDragNativeItem=function(){n.isDraggingNativeItem()&&(n.actions.endDrag(),n.currentNativeHandle&&n.registry.removeSource(n.currentNativeHandle),n.currentNativeHandle=null,n.currentNativeSource=null)},this.isNodeInDocument=function(e){return Boolean(e&&n.document&&n.document.body&&document.body.contains(e))},this.endDragIfSourceWasRemovedFromDOM=function(){var e=n.currentDragSourceNode;n.isNodeInDocument(e)||n.clearCurrentDragSourceNode()&&n.actions.endDrag()},this.handleTopDragStartCapture=function(){n.clearCurrentDragSourceNode(),n.dragStartSourceIds=[]},this.handleTopDragStart=function(e){if(!e.defaultPrevented){var t=n.dragStartSourceIds;n.dragStartSourceIds=null;var r=h(e);n.monitor.isDragging()&&n.actions.endDrag(),n.actions.beginDrag(t||[],{publishSource:!1,getSourceClientOffset:n.getSourceClientOffset,clientOffset:r});var o=e.dataTransfer,i=k(o);if(n.monitor.isDragging()){if(o&&"function"===typeof o.setDragImage){var a=n.monitor.getSourceId(),u=n.sourceNodes.get(a),c=n.sourcePreviewNodes.get(a)||u;if(c){var s=n.getCurrentSourcePreviewNodeOptions(),f=p(u,c,r,{anchorX:s.anchorX,anchorY:s.anchorY},{offsetX:s.offsetX,offsetY:s.offsetY});o.setDragImage(c,f.x,f.y)}}try{null===o||void 0===o||o.setData("application/json",{})}catch(l){}n.setCurrentDragSourceNode(e.target),n.getCurrentSourcePreviewNodeOptions().captureDraggingState?n.actions.publishDragSource():setTimeout((function(){return n.actions.publishDragSource()}),0)}else if(i)n.beginDragNativeItem(i);else{if(o&&!o.types&&(e.target&&!e.target.hasAttribute||!e.target.hasAttribute("draggable")))return;e.preventDefault()}}},this.handleTopDragEndCapture=function(){n.clearCurrentDragSourceNode()&&n.actions.endDrag()},this.handleTopDragEnterCapture=function(e){if(n.dragEnterTargetIds=[],n.enterLeaveCounter.enter(e.target)&&!n.monitor.isDragging()){var t=e.dataTransfer,r=k(t);r&&n.beginDragNativeItem(r,t)}},this.handleTopDragEnter=function(e){var t=n.dragEnterTargetIds;(n.dragEnterTargetIds=[],n.monitor.isDragging())&&(n.altKeyPressed=e.altKey,u()||n.actions.hover(t,{clientOffset:h(e)}),t.some((function(e){return n.monitor.canDropOnTarget(e)}))&&(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=n.getCurrentDropEffect())))},this.handleTopDragOverCapture=function(){n.dragOverTargetIds=[]},this.handleTopDragOver=function(e){var t=n.dragOverTargetIds;if(n.dragOverTargetIds=[],!n.monitor.isDragging())return e.preventDefault(),void(e.dataTransfer&&(e.dataTransfer.dropEffect="none"));n.altKeyPressed=e.altKey,n.actions.hover(t||[],{clientOffset:h(e)}),(t||[]).some((function(e){return n.monitor.canDropOnTarget(e)}))?(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=n.getCurrentDropEffect())):n.isDraggingNativeItem()?e.preventDefault():(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect="none"))},this.handleTopDragLeaveCapture=function(e){n.isDraggingNativeItem()&&e.preventDefault(),n.enterLeaveCounter.leave(e.target)&&n.isDraggingNativeItem()&&n.endDragNativeItem()},this.handleTopDropCapture=function(e){var t;(n.dropTargetIds=[],e.preventDefault(),n.isDraggingNativeItem())&&(null===(t=n.currentNativeSource)||void 0===t||t.loadDataTransfer(e.dataTransfer));n.enterLeaveCounter.reset()},this.handleTopDrop=function(e){var t=n.dropTargetIds;n.dropTargetIds=[],n.actions.hover(t,{clientOffset:h(e)}),n.actions.drop({dropEffect:n.getCurrentDropEffect()}),n.isDraggingNativeItem()?n.endDragNativeItem():n.endDragIfSourceWasRemovedFromDOM()},this.handleSelectStart=function(e){var t=e.target;"function"===typeof t.dragDrop&&("INPUT"===t.tagName||"SELECT"===t.tagName||"TEXTAREA"===t.tagName||t.isContentEditable||(e.preventDefault(),t.dragDrop()))},this.options=new T(r),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.registry=t.getRegistry(),this.enterLeaveCounter=new a(this.isNodeInDocument)}var t,r,o;return t=e,(r=[{key:"profile",value:function(){var e,t;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:(null===(e=this.dragStartSourceIds)||void 0===e?void 0:e.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:(null===(t=this.dragOverTargetIds)||void 0===t?void 0:t.length)||0}}},{key:"setup",value:function(){if(void 0!==this.window){if(this.window.__isReactDndBackendSetUp)throw new Error("Cannot have two HTML5 backends at the same time.");this.window.__isReactDndBackendSetUp=!0,this.addEventListeners(this.window)}}},{key:"teardown",value:function(){void 0!==this.window&&(this.window.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.window),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId&&this.window.cancelAnimationFrame(this.asyncEndDragFrameId))}},{key:"connectDragPreview",value:function(e,t,r){var n=this;return this.sourcePreviewNodeOptions.set(e,r),this.sourcePreviewNodes.set(e,t),function(){n.sourcePreviewNodes.delete(e),n.sourcePreviewNodeOptions.delete(e)}}},{key:"connectDragSource",value:function(e,t,r){var n=this;this.sourceNodes.set(e,t),this.sourceNodeOptions.set(e,r);var o=function(t){return n.handleDragStart(t,e)},i=function(e){return n.handleSelectStart(e)};return t.setAttribute("draggable","true"),t.addEventListener("dragstart",o),t.addEventListener("selectstart",i),function(){n.sourceNodes.delete(e),n.sourceNodeOptions.delete(e),t.removeEventListener("dragstart",o),t.removeEventListener("selectstart",i),t.setAttribute("draggable","false")}}},{key:"connectDropTarget",value:function(e,t){var r=this,n=function(t){return r.handleDragEnter(t,e)},o=function(t){return r.handleDragOver(t,e)},i=function(t){return r.handleDrop(t,e)};return t.addEventListener("dragenter",n),t.addEventListener("dragover",o),t.addEventListener("drop",i),function(){t.removeEventListener("dragenter",n),t.removeEventListener("dragover",o),t.removeEventListener("drop",i)}}},{key:"addEventListeners",value:function(e){e.addEventListener&&(e.addEventListener("dragstart",this.handleTopDragStart),e.addEventListener("dragstart",this.handleTopDragStartCapture,!0),e.addEventListener("dragend",this.handleTopDragEndCapture,!0),e.addEventListener("dragenter",this.handleTopDragEnter),e.addEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.addEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.addEventListener("dragover",this.handleTopDragOver),e.addEventListener("dragover",this.handleTopDragOverCapture,!0),e.addEventListener("drop",this.handleTopDrop),e.addEventListener("drop",this.handleTopDropCapture,!0))}},{key:"removeEventListeners",value:function(e){e.removeEventListener&&(e.removeEventListener("dragstart",this.handleTopDragStart),e.removeEventListener("dragstart",this.handleTopDragStartCapture,!0),e.removeEventListener("dragend",this.handleTopDragEndCapture,!0),e.removeEventListener("dragenter",this.handleTopDragEnter),e.removeEventListener("dragenter",this.handleTopDragEnterCapture,!0),e.removeEventListener("dragleave",this.handleTopDragLeaveCapture,!0),e.removeEventListener("dragover",this.handleTopDragOver),e.removeEventListener("dragover",this.handleTopDragOverCapture,!0),e.removeEventListener("drop",this.handleTopDrop),e.removeEventListener("drop",this.handleTopDropCapture,!0))}},{key:"getCurrentSourceNodeOptions",value:function(){var e=this.monitor.getSourceId(),t=this.sourceNodeOptions.get(e);return E({dropEffect:this.altKeyPressed?"copy":"move"},t||{})}},{key:"getCurrentDropEffect",value:function(){return this.isDraggingNativeItem()?"copy":this.getCurrentSourceNodeOptions().dropEffect}},{key:"getCurrentSourcePreviewNodeOptions",value:function(){var e=this.monitor.getSourceId();return E({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(e)||{})}},{key:"isDraggingNativeItem",value:function(){var e=this.monitor.getItemType();return Object.keys(n).some((function(t){return n[t]===e}))}},{key:"beginDragNativeItem",value:function(e,t){this.clearCurrentDragSourceNode(),this.currentNativeSource=function(e,t){var r=new S(D[e]);return r.loadDataTransfer(t),r}(e,t),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}},{key:"setCurrentDragSourceNode",value:function(e){var t=this;this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e,this.mouseMoveTimeoutTimer=setTimeout((function(){return t.window&&t.window.addEventListener("mousemove",t.endDragIfSourceWasRemovedFromDOM,!0)}),1e3)}},{key:"clearCurrentDragSourceNode",value:function(){return!!this.currentDragSourceNode&&(this.currentDragSourceNode=null,this.window&&(this.window.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.window.removeEventListener("mousemove",this.endDragIfSourceWasRemovedFromDOM,!0)),this.mouseMoveTimeoutTimer=null,!0)}},{key:"handleDragStart",value:function(e,t){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(t))}},{key:"handleDragEnter",value:function(e,t){this.dragEnterTargetIds.unshift(t)}},{key:"handleDragOver",value:function(e,t){null===this.dragOverTargetIds&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(t)}},{key:"handleDrop",value:function(e,t){this.dropTargetIds.unshift(t)}},{key:"window",get:function(){return this.options.window}},{key:"document",get:function(){return this.options.document}}])&&P(t.prototype,r),o&&P(t,o),e}();function x(){return _||((_=new Image).src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),_}var R=function(e,t){return new A(e,t)}},46636:function(e,t,r){"use strict";r.d(t,{L:function(){return Se},W:function(){return ke}});var n=r(30969),o=r(20655),i="dnd-core/INIT_COORDS",a="dnd-core/BEGIN_DRAG",u="dnd-core/PUBLISH_DRAG_SOURCE",c="dnd-core/HOVER",s="dnd-core/DROP",f="dnd-core/END_DRAG",l=function(e,t){return e===t};function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function h(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach((function(t){p(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function p(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var g={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function v(){var e,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g,n=arguments.length>1?arguments[1]:void 0,o=n.payload;switch(n.type){case i:case a:return{initialSourceClientOffset:o.sourceClientOffset,initialClientOffset:o.clientOffset,clientOffset:o.clientOffset};case c:return e=r.clientOffset,t=o.clientOffset,!e&&!t||e&&t&&e.x===t.x&&e.y===t.y?r:h(h({},r),{},{clientOffset:o.clientOffset});case f:case s:return g;default:return r}}var y="dnd-core/ADD_SOURCE",b="dnd-core/ADD_TARGET",m="dnd-core/REMOVE_SOURCE",O="dnd-core/REMOVE_TARGET";function D(e){return D="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},D(e)}function w(e){return"object"===D(e)}function S(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function k(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?S(Object(r),!0).forEach((function(t){I(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):S(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function I(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var T={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function C(){var e,t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:T,n=arguments.length>1?arguments[1]:void 0,o=n.payload;switch(n.type){case a:return k(k({},r),{},{itemType:o.itemType,item:o.item,sourceId:o.sourceId,isSourcePublic:o.isSourcePublic,dropResult:null,didDrop:!1});case u:return k(k({},r),{},{isSourcePublic:!0});case c:return k(k({},r),{},{targetIds:o.targetIds});case O:return-1===r.targetIds.indexOf(o.targetId)?r:k(k({},r),{},{targetIds:(e=r.targetIds,t=o.targetId,e.filter((function(e){return e!==t})))});case s:return k(k({},r),{},{dropResult:o.dropResult,didDrop:!0,targetIds:[]});case f:return k(k({},r),{},{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return r}}function E(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;switch((arguments.length>1?arguments[1]:void 0).type){case y:case b:return e+1;case m:case O:return e-1;default:return e}}var j=[],P=[];function _(){var e=arguments.length>1?arguments[1]:void 0;switch(e.type){case c:break;case y:case b:case O:case m:return j;default:return P}var t=e.payload,r=t.targetIds,n=void 0===r?[]:r,o=t.prevTargetIds,i=void 0===o?[]:o,a=function(e,t){var r=new Map,n=function(e){r.set(e,r.has(e)?r.get(e)+1:1)};e.forEach(n),t.forEach(n);var o=[];return r.forEach((function(e,t){1===e&&o.push(t)})),o}(n,i),u=a.length>0||!function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l;if(e.length!==t.length)return!1;for(var n=0;n<e.length;++n)if(!r(e[n],t[n]))return!1;return!0}(n,i);if(!u)return j;var s=i[i.length-1],f=n[n.length-1];return s!==f&&(s&&a.push(s),f&&a.push(f)),a}function A(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)+1}function x(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function R(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?x(Object(r),!0).forEach((function(t){M(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):x(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function M(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function N(){var e,t,r,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;return{dirtyHandlerIds:_(n.dirtyHandlerIds,{type:o.type,payload:R(R({},o.payload),{},{prevTargetIds:(e=n,t="dragOperation.targetIds",r=[],t.split(".").reduce((function(e,t){return e&&e[t]?e[t]:r||null}),e))})}),dragOffset:v(n.dragOffset,o),refCount:E(n.refCount,o),dragOperation:C(n.dragOperation,o),stateId:A(n.stateId)}}j.__IS_NONE__=!0,P.__IS_ALL__=!0;var L=r(49132);function H(e,t){return{type:i,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}var U={type:i,payload:{clientOffset:null,sourceClientOffset:null}};function F(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{publishSource:!0},n=r.publishSource,o=void 0===n||n,i=r.clientOffset,u=r.getSourceClientOffset,c=e.getMonitor(),s=e.getRegistry();e.dispatch(H(i)),function(e,t,r){(0,L.k)(!t.isDragging(),"Cannot call beginDrag while dragging."),e.forEach((function(e){(0,L.k)(r.getSource(e),"Expected sourceIds to be registered.")}))}(t,c,s);var f=function(e,t){for(var r=null,n=e.length-1;n>=0;n--)if(t.canDragSource(e[n])){r=e[n];break}return r}(t,c);if(null!==f){var l=null;if(i){if(!u)throw new Error("getSourceClientOffset must be defined");!function(e){(0,L.k)("function"===typeof e,"When clientOffset is provided, getSourceClientOffset must be a function.")}(u),l=u(f)}e.dispatch(H(i,l));var d=s.getSource(f).beginDrag(c,f);!function(e){(0,L.k)(w(e),"Item must be an object.")}(d),s.pinSource(f);var h=s.getSourceType(f);return{type:a,payload:{itemType:h,item:d,sourceId:f,clientOffset:i||null,sourceClientOffset:l||null,isSourcePublic:!!o}}}e.dispatch(U)}}function z(e){return function(){if(e.getMonitor().isDragging())return{type:u}}}function B(e,t){return null===t?null===e:Array.isArray(e)?e.some((function(e){return e===t})):e===t}function W(e){return function(t){var r=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).clientOffset;!function(e){(0,L.k)(Array.isArray(e),"Expected targetIds to be an array.")}(t);var n=t.slice(0),o=e.getMonitor(),i=e.getRegistry();return function(e,t,r){(0,L.k)(t.isDragging(),"Cannot call hover while not dragging."),(0,L.k)(!t.didDrop(),"Cannot call hover after drop.");for(var n=0;n<e.length;n++){var o=e[n];(0,L.k)(e.lastIndexOf(o)===n,"Expected targetIds to be unique in the passed array.");var i=r.getTarget(o);(0,L.k)(i,"Expected targetIds to be registered.")}}(n,o,i),function(e,t,r){for(var n=e.length-1;n>=0;n--){var o=e[n];B(t.getTargetType(o),r)||e.splice(n,1)}}(n,i,o.getItemType()),function(e,t,r){e.forEach((function(e){r.getTarget(e).hover(t,e)}))}(n,o,i),{type:c,payload:{targetIds:n,clientOffset:r||null}}}}function $(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function G(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?$(Object(r),!0).forEach((function(t){Y(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Y(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function q(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.getMonitor(),n=e.getRegistry();!function(e){(0,L.k)(e.isDragging(),"Cannot call drop while not dragging."),(0,L.k)(!e.didDrop(),"Cannot call drop twice during one drag operation.")}(r);var o=function(e){var t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}(r);o.forEach((function(o,i){var a=function(e,t,r,n){var o=r.getTarget(e),i=o?o.drop(n,e):void 0;(function(e){(0,L.k)("undefined"===typeof e||w(e),"Drop result must either be an object or undefined.")})(i),"undefined"===typeof i&&(i=0===t?{}:n.getDropResult());return i}(o,i,n,r),u={type:s,payload:{dropResult:G(G({},t),a)}};e.dispatch(u)}))}}function X(e){return function(){var t=e.getMonitor(),r=e.getRegistry();!function(e){(0,L.k)(e.isDragging(),"Cannot call endDrag while not dragging.")}(t);var n=t.getSourceId();null!=n&&(r.getSource(n,!0).endDrag(t,n),r.unpinSource());return{type:f}}}function K(e,t){return{x:e.x-t.x,y:e.y-t.y}}function V(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)}}var Z,J=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.store=t,this.registry=r}var t,r,n;return t=e,r=[{key:"subscribeToStateChange",value:function(e){var t=this,r=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{handlerIds:void 0}).handlerIds;(0,L.k)("function"===typeof e,"listener must be a function."),(0,L.k)("undefined"===typeof r||Array.isArray(r),"handlerIds, when specified, must be an array of strings.");var n=this.store.getState().stateId;return this.store.subscribe((function(){var o=t.store.getState(),i=o.stateId;try{var a=i===n||i===n+1&&!function(e,t){return e!==j&&(e===P||"undefined"===typeof t||(r=e,t.filter((function(e){return r.indexOf(e)>-1}))).length>0);var r}(o.dirtyHandlerIds,r);a||e()}finally{n=i}}))}},{key:"subscribeToOffsetChange",value:function(e){var t=this;(0,L.k)("function"===typeof e,"listener must be a function.");var r=this.store.getState().dragOffset;return this.store.subscribe((function(){var n=t.store.getState().dragOffset;n!==r&&(r=n,e())}))}},{key:"canDragSource",value:function(e){if(!e)return!1;var t=this.registry.getSource(e);return(0,L.k)(t,"Expected to find a valid source."),!this.isDragging()&&t.canDrag(this,e)}},{key:"canDropOnTarget",value:function(e){if(!e)return!1;var t=this.registry.getTarget(e);return(0,L.k)(t,"Expected to find a valid target."),!(!this.isDragging()||this.didDrop())&&B(this.registry.getTargetType(e),this.getItemType())&&t.canDrop(this,e)}},{key:"isDragging",value:function(){return Boolean(this.getItemType())}},{key:"isDraggingSource",value:function(e){if(!e)return!1;var t=this.registry.getSource(e,!0);return(0,L.k)(t,"Expected to find a valid source."),!(!this.isDragging()||!this.isSourcePublic())&&this.registry.getSourceType(e)===this.getItemType()&&t.isDragging(this,e)}},{key:"isOverTarget",value:function(e){if(!e)return!1;var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{shallow:!1}).shallow;if(!this.isDragging())return!1;var r=this.registry.getTargetType(e),n=this.getItemType();if(n&&!B(r,n))return!1;var o=this.getTargetIds();if(!o.length)return!1;var i=o.indexOf(e);return t?i===o.length-1:i>-1}},{key:"getItemType",value:function(){return this.store.getState().dragOperation.itemType}},{key:"getItem",value:function(){return this.store.getState().dragOperation.item}},{key:"getSourceId",value:function(){return this.store.getState().dragOperation.sourceId}},{key:"getTargetIds",value:function(){return this.store.getState().dragOperation.targetIds}},{key:"getDropResult",value:function(){return this.store.getState().dragOperation.dropResult}},{key:"didDrop",value:function(){return this.store.getState().dragOperation.didDrop}},{key:"isSourcePublic",value:function(){return Boolean(this.store.getState().dragOperation.isSourcePublic)}},{key:"getInitialClientOffset",value:function(){return this.store.getState().dragOffset.initialClientOffset}},{key:"getInitialSourceClientOffset",value:function(){return this.store.getState().dragOffset.initialSourceClientOffset}},{key:"getClientOffset",value:function(){return this.store.getState().dragOffset.clientOffset}},{key:"getSourceClientOffset",value:function(){return function(e){var t,r,n=e.clientOffset,o=e.initialClientOffset,i=e.initialSourceClientOffset;return n&&o&&i?K((r=i,{x:(t=n).x+r.x,y:t.y+r.y}),o):null}(this.store.getState().dragOffset)}},{key:"getDifferenceFromInitialOffset",value:function(){return function(e){var t=e.clientOffset,r=e.initialClientOffset;return t&&r?K(t,r):null}(this.store.getState().dragOffset)}}],r&&V(t.prototype,r),n&&V(t,n),e}(),Q=0;function ee(e){return ee="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ee(e)}function te(e,t){t&&Array.isArray(e)?e.forEach((function(e){return te(e,!1)})):(0,L.k)("string"===typeof e||"symbol"===ee(e),t?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}!function(e){e.SOURCE="SOURCE",e.TARGET="TARGET"}(Z||(Z={}));var re=r(9249),ne=r(87371),oe="undefined"!==typeof global?global:self,ie=oe.MutationObserver||oe.WebKitMutationObserver;function ae(e){return function(){var t=setTimeout(n,0),r=setInterval(n,50);function n(){clearTimeout(t),clearInterval(r),e()}}}var ue="function"===typeof ie?function(e){var t=1,r=new ie(e),n=document.createTextNode("");return r.observe(n,{characterData:!0}),function(){t=-t,n.data=t}}:ae,ce=function(){function e(){var t=this;(0,re.Z)(this,e),this.queue=[],this.pendingErrors=[],this.flushing=!1,this.index=0,this.capacity=1024,this.flush=function(){for(var e=t.queue;t.index<e.length;){var r=t.index;if(t.index++,e[r].call(),t.index>t.capacity){for(var n=0,o=e.length-t.index;n<o;n++)e[n]=e[n+t.index];e.length-=t.index,t.index=0}}e.length=0,t.index=0,t.flushing=!1},this.registerPendingError=function(e){t.pendingErrors.push(e),t.requestErrorThrow()},this.requestFlush=ue(this.flush),this.requestErrorThrow=ae((function(){if(t.pendingErrors.length)throw t.pendingErrors.shift()}))}return(0,ne.Z)(e,[{key:"enqueueTask",value:function(e){var t=this.queue,r=this.requestFlush;t.length||(r(),this.flushing=!0),t[t.length]=e}}]),e}(),se=function(){function e(t,r){(0,re.Z)(this,e),this.onError=t,this.release=r,this.task=null}return(0,ne.Z)(e,[{key:"call",value:function(){try{this.task&&this.task()}catch(e){this.onError(e)}finally{this.task=null,this.release(this)}}}]),e}(),fe=function(){function e(t){(0,re.Z)(this,e),this.onError=t,this.freeTasks=[]}return(0,ne.Z)(e,[{key:"create",value:function(e){var t=this.freeTasks,r=t.length?t.pop():new se(this.onError,(function(e){return t[t.length]=e}));return r.task=e,r}}]),e}(),le=new ce,de=new fe(le.registerPendingError);function he(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)}}function pe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(c){o=!0,i=c}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return r}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return ge(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ge(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ge(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ve(e){var t=(Q++).toString();switch(e){case Z.SOURCE:return"S".concat(t);case Z.TARGET:return"T".concat(t);default:throw new Error("Unknown Handler Role: ".concat(e))}}function ye(e){switch(e[0]){case"S":return Z.SOURCE;case"T":return Z.TARGET;default:(0,L.k)(!1,"Cannot parse handler ID: ".concat(e))}}function be(e,t){var r=e.entries(),n=!1;do{var o=r.next(),i=o.done;if(pe(o.value,2)[1]===t)return!0;n=!!i}while(!n);return!1}var me=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=t}var t,r,n;return t=e,r=[{key:"addSource",value:function(e,t){te(e),function(e){(0,L.k)("function"===typeof e.canDrag,"Expected canDrag to be a function."),(0,L.k)("function"===typeof e.beginDrag,"Expected beginDrag to be a function."),(0,L.k)("function"===typeof e.endDrag,"Expected endDrag to be a function.")}(t);var r=this.addHandler(Z.SOURCE,e,t);return this.store.dispatch(function(e){return{type:y,payload:{sourceId:e}}}(r)),r}},{key:"addTarget",value:function(e,t){te(e,!0),function(e){(0,L.k)("function"===typeof e.canDrop,"Expected canDrop to be a function."),(0,L.k)("function"===typeof e.hover,"Expected hover to be a function."),(0,L.k)("function"===typeof e.drop,"Expected beginDrag to be a function.")}(t);var r=this.addHandler(Z.TARGET,e,t);return this.store.dispatch(function(e){return{type:b,payload:{targetId:e}}}(r)),r}},{key:"containsHandler",value:function(e){return be(this.dragSources,e)||be(this.dropTargets,e)}},{key:"getSource",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,L.k)(this.isSourceId(e),"Expected a valid source ID."),t&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}},{key:"getTarget",value:function(e){return(0,L.k)(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}},{key:"getSourceType",value:function(e){return(0,L.k)(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}},{key:"getTargetType",value:function(e){return(0,L.k)(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}},{key:"isSourceId",value:function(e){return ye(e)===Z.SOURCE}},{key:"isTargetId",value:function(e){return ye(e)===Z.TARGET}},{key:"removeSource",value:function(e){var t,r=this;(0,L.k)(this.getSource(e),"Expected an existing source."),this.store.dispatch(function(e){return{type:m,payload:{sourceId:e}}}(e)),t=function(){r.dragSources.delete(e),r.types.delete(e)},le.enqueueTask(de.create(t))}},{key:"removeTarget",value:function(e){(0,L.k)(this.getTarget(e),"Expected an existing target."),this.store.dispatch(function(e){return{type:O,payload:{targetId:e}}}(e)),this.dropTargets.delete(e),this.types.delete(e)}},{key:"pinSource",value:function(e){var t=this.getSource(e);(0,L.k)(t,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=t}},{key:"unpinSource",value:function(){(0,L.k)(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}},{key:"addHandler",value:function(e,t,r){var n=ve(e);return this.types.set(n,t),e===Z.SOURCE?this.dragSources.set(n,r):e===Z.TARGET&&this.dropTargets.set(n,r),n}}],r&&he(t.prototype,r),n&&he(t,n),e}();function Oe(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)}}var De=function(){function e(){var t=this,r=arguments.length>0&&void 0!==arguments[0]&&arguments[0];!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.isSetUp=!1,this.handleRefCountChange=function(){var e=t.store.getState().refCount>0;t.backend&&(e&&!t.isSetUp?(t.backend.setup(),t.isSetUp=!0):!e&&t.isSetUp&&(t.backend.teardown(),t.isSetUp=!1))};var n=function(e){var t="undefined"!==typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__;return(0,o.MT)(N,e&&t&&t({name:"dnd-core",instanceId:"dnd-core"}))}(r);this.store=n,this.monitor=new J(n,new me(n)),n.subscribe(this.handleRefCountChange)}var t,r,n;return t=e,r=[{key:"receiveBackend",value:function(e){this.backend=e}},{key:"getMonitor",value:function(){return this.monitor}},{key:"getBackend",value:function(){return this.backend}},{key:"getRegistry",value:function(){return this.monitor.registry}},{key:"getActions",value:function(){var e=this,t=this.store.dispatch,r=function(e){return{beginDrag:F(e),publishDragSource:z(e),hover:W(e),drop:q(e),endDrag:X(e)}}(this);return Object.keys(r).reduce((function(n,o){var i,a=r[o];return n[o]=(i=a,function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];var a=i.apply(e,n);"undefined"!==typeof a&&t(a)}),n}),{})}},{key:"dispatch",value:function(e){this.store.dispatch(e)}}],r&&Oe(t.prototype,r),n&&Oe(t,n),e}();function we(e,t,r,n){var o=new De(n),i=e(o,t,r);return o.receiveBackend(i),o}var Se=n.createContext({dragDropManager:void 0});function ke(e,t,r,n){return{dragDropManager:we(e,t,r,n)}}},42821:function(e,t,r){"use strict";r.d(t,{W:function(){return s}});var n=r(30969),o=r(46636);function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(c){o=!0,i=c}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return r}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return a(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function u(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var c=0,s=(0,n.memo)((function(e){var t=e.children,r=function(e){if("manager"in e){return[{dragDropManager:e.manager},!1]}var t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l(),r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0,i=t;i[f]||(i[f]=(0,o.W)(e,t,r,n));return i[f]}(e.backend,e.context,e.options,e.debugMode),r=!e.context;return[t,r]}(u(e,["children"])),a=i(r,2),s=a[0],d=a[1];return n.useEffect((function(){return d&&c++,function(){d&&(0===--c&&(l()[f]=null))}}),[]),n.createElement(o.L.Provider,{value:s},t)}));s.displayName="DndProvider";var f=Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");function l(){return"undefined"!==typeof r.g?r.g:window}},64127:function(e,t,r){"use strict";r.d(t,{p:function(){return u}});var n=r(49132);function o(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)}}var i=!1,a=!1,u=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.sourceId=null,this.internalMonitor=t.getMonitor()}var t,r,u;return t=e,(r=[{key:"receiveHandlerId",value:function(e){this.sourceId=e}},{key:"getHandlerId",value:function(){return this.sourceId}},{key:"canDrag",value:function(){(0,n.k)(!i,"You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return i=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{i=!1}}},{key:"isDragging",value:function(){if(!this.sourceId)return!1;(0,n.k)(!a,"You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");try{return a=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{a=!1}}},{key:"subscribeToStateChange",value:function(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}},{key:"isDraggingSource",value:function(e){return this.internalMonitor.isDraggingSource(e)}},{key:"isOverTarget",value:function(e,t){return this.internalMonitor.isOverTarget(e,t)}},{key:"getTargetIds",value:function(){return this.internalMonitor.getTargetIds()}},{key:"isSourcePublic",value:function(){return this.internalMonitor.isSourcePublic()}},{key:"getSourceId",value:function(){return this.internalMonitor.getSourceId()}},{key:"subscribeToOffsetChange",value:function(e){return this.internalMonitor.subscribeToOffsetChange(e)}},{key:"canDragSource",value:function(e){return this.internalMonitor.canDragSource(e)}},{key:"canDropOnTarget",value:function(e){return this.internalMonitor.canDropOnTarget(e)}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}])&&o(t.prototype,r),u&&o(t,u),e}()},9178:function(e,t,r){"use strict";r.d(t,{H:function(){return a}});var n=r(49132);function o(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)}}var i=!1,a=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.targetId=null,this.internalMonitor=t.getMonitor()}var t,r,a;return t=e,(r=[{key:"receiveHandlerId",value:function(e){this.targetId=e}},{key:"getHandlerId",value:function(){return this.targetId}},{key:"subscribeToStateChange",value:function(e,t){return this.internalMonitor.subscribeToStateChange(e,t)}},{key:"canDrop",value:function(){if(!this.targetId)return!1;(0,n.k)(!i,"You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");try{return i=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{i=!1}}},{key:"isOver",value:function(e){return!!this.targetId&&this.internalMonitor.isOverTarget(this.targetId,e)}},{key:"getItemType",value:function(){return this.internalMonitor.getItemType()}},{key:"getItem",value:function(){return this.internalMonitor.getItem()}},{key:"getDropResult",value:function(){return this.internalMonitor.getDropResult()}},{key:"didDrop",value:function(){return this.internalMonitor.didDrop()}},{key:"getInitialClientOffset",value:function(){return this.internalMonitor.getInitialClientOffset()}},{key:"getInitialSourceClientOffset",value:function(){return this.internalMonitor.getInitialSourceClientOffset()}},{key:"getSourceClientOffset",value:function(){return this.internalMonitor.getSourceClientOffset()}},{key:"getClientOffset",value:function(){return this.internalMonitor.getClientOffset()}},{key:"getDifferenceFromInitialOffset",value:function(){return this.internalMonitor.getDifferenceFromInitialOffset()}}])&&o(t.prototype,r),a&&o(t,a),e}()},65009:function(e,t,r){"use strict";r.d(t,{x:function(){return u}});var n=r(77067),o=r(19513),i=r(16193);function a(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)}}var u=function(){function e(t){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hooks=(0,n.p)({dragSource:function(e,t){r.clearDragSource(),r.dragSourceOptions=t||null,(0,o.d)(e)?r.dragSourceRef=e:r.dragSourceNode=e,r.reconnectDragSource()},dragPreview:function(e,t){r.clearDragPreview(),r.dragPreviewOptions=t||null,(0,o.d)(e)?r.dragPreviewRef=e:r.dragPreviewNode=e,r.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceRef=null,this.dragSourceOptionsInternal=null,this.dragPreviewRef=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=t}var t,r,u;return t=e,(r=[{key:"receiveHandlerId",value:function(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())}},{key:"reconnect",value:function(){this.reconnectDragSource(),this.reconnectDragPreview()}},{key:"reconnectDragSource",value:function(){var e=this.dragSource,t=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();t&&this.disconnectDragSource(),this.handlerId&&(e?t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)):this.lastConnectedDragSource=e)}},{key:"reconnectDragPreview",value:function(){var e=this.dragPreview,t=this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();t&&this.disconnectDragPreview(),this.handlerId&&(e?t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=e,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,e,this.dragPreviewOptions)):this.lastConnectedDragPreview=e)}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didConnectedDragSourceChange",value:function(){return this.lastConnectedDragSource!==this.dragSource}},{key:"didConnectedDragPreviewChange",value:function(){return this.lastConnectedDragPreview!==this.dragPreview}},{key:"didDragSourceOptionsChange",value:function(){return!(0,i.w)(this.lastConnectedDragSourceOptions,this.dragSourceOptions)}},{key:"didDragPreviewOptionsChange",value:function(){return!(0,i.w)(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)}},{key:"disconnectDragSource",value:function(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)}},{key:"disconnectDragPreview",value:function(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null,this.dragPreviewRef=null)}},{key:"clearDragSource",value:function(){this.dragSourceNode=null,this.dragSourceRef=null}},{key:"clearDragPreview",value:function(){this.dragPreviewNode=null,this.dragPreviewRef=null}},{key:"connectTarget",get:function(){return this.dragSource}},{key:"dragSourceOptions",get:function(){return this.dragSourceOptionsInternal},set:function(e){this.dragSourceOptionsInternal=e}},{key:"dragPreviewOptions",get:function(){return this.dragPreviewOptionsInternal},set:function(e){this.dragPreviewOptionsInternal=e}},{key:"dragSource",get:function(){return this.dragSourceNode||this.dragSourceRef&&this.dragSourceRef.current}},{key:"dragPreview",get:function(){return this.dragPreviewNode||this.dragPreviewRef&&this.dragPreviewRef.current}}])&&a(t.prototype,r),u&&a(t,u),e}()},27623:function(e,t,r){"use strict";r.d(t,{Y:function(){return u}});var n=r(16193),o=r(77067),i=r(19513);function a(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)}}var u=function(){function e(t){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hooks=(0,o.p)({dropTarget:function(e,t){r.clearDropTarget(),r.dropTargetOptions=t,(0,i.d)(e)?r.dropTargetRef=e:r.dropTargetNode=e,r.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=t}var t,r,u;return t=e,(r=[{key:"reconnect",value:function(){var e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();var t=this.dropTarget;this.handlerId&&(t?e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=t,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,t,this.dropTargetOptions)):this.lastConnectedDropTarget=t)}},{key:"receiveHandlerId",value:function(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())}},{key:"didHandlerIdChange",value:function(){return this.lastConnectedHandlerId!==this.handlerId}},{key:"didDropTargetChange",value:function(){return this.lastConnectedDropTarget!==this.dropTarget}},{key:"didOptionsChange",value:function(){return!(0,n.w)(this.lastConnectedDropTargetOptions,this.dropTargetOptions)}},{key:"disconnectDropTarget",value:function(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)}},{key:"clearDropTarget",value:function(){this.dropTargetRef=null,this.dropTargetNode=null}},{key:"connectTarget",get:function(){return this.dropTarget}},{key:"dropTargetOptions",get:function(){return this.dropTargetOptionsInternal},set:function(e){this.dropTargetOptionsInternal=e}},{key:"dropTarget",get:function(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.current}}])&&a(t.prototype,r),u&&a(t,u),e}()},13214:function(e,t,r){"use strict";r.d(t,{LB:function(){return n.L},WG:function(){return o.W},hw:function(){return a},LT:function(){return n.W}});var n=r(46636),o=r(42821),i=r(30969),a=i.memo((function(e){var t=e.connect,r=e.src;return i.useEffect((function(){if("undefined"!==typeof Image){var e=!1,n=new Image;return n.src=r,n.onload=function(){t(n),e=!0},function(){e&&t(null)}}})),null}));a.displayName="DragPreviewImage"},20742:function(e,t,r){"use strict";function n(e,t,r){var n=r.getRegistry(),o=n.addTarget(e,t);return[o,function(){return n.removeTarget(o)}]}function o(e,t,r){var n=r.getRegistry(),o=n.addSource(e,t);return[o,function(){return n.removeSource(o)}]}r.d(t,{n:function(){return n},w:function(){return o}})},77067:function(e,t,r){"use strict";r.d(t,{p:function(){return u}});var n=r(30969),o=r(49132);function i(e,t){"function"===typeof e?e(t):e.current=t}function a(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!(0,n.isValidElement)(t)){var a=t;return e(a,r),a}var u=t;!function(e){if("string"!==typeof e.type){var t=e.type.displayName||e.type.name||"the component";throw new Error("Only native element nodes can now be passed to React DnD connectors."+"You can either wrap ".concat(t," into a <div>, or turn it into a ")+"drag source or a drop target itself.")}}(u);var c=r?function(t){return e(t,r)}:e;return function(e,t){var r=e.ref;return(0,o.k)("string"!==typeof r,"Cannot connect React DnD to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://facebook.github.io/react/docs/more-about-refs.html#the-ref-callback-attribute"),r?(0,n.cloneElement)(e,{ref:function(e){i(r,e),i(t,e)}}):(0,n.cloneElement)(e,{ref:t})}(u,c)}}function u(e){var t={};return Object.keys(e).forEach((function(r){var n=e[r];if(r.endsWith("Ref"))t[r]=e[r];else{var o=a(n);t[r]=function(){return o}}})),t}},24919:function(e,t,r){"use strict";r.d(t,{r:function(){return v}});var n=r(30969),o=r(16193),i=r(47814),a=r.n(i),u=r(49132),c=r(46636),s=r(74731),f=r(73903);function l(e){return l="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function d(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)}}function h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}function p(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=g(e);if(t){var o=g(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===l(t)||"function"===typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}function v(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,f.U9)("DragLayer","collect[, options]",e,t),(0,u.k)("function"===typeof e,'Expected "collect" provided as the first argument to DragLayer to be a function that collects props to inject into the component. ',"Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-layer",e),(0,u.k)((0,s.PO)(t),'Expected "options" provided as the second argument to DragLayer to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-layer',t),function(r){var i=r,s=t.arePropsEqual,g=void 0===s?o.w:s,v=i.displayName||i.name||"Component",y=function(){var t=function(t){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(b,t);var r,a,s,y=p(b);function b(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,b),(e=y.apply(this,arguments)).isCurrentlyMounted=!1,e.ref=n.createRef(),e.handleChange=function(){if(e.isCurrentlyMounted){var t=e.getCurrentState();(0,o.w)(t,e.state)||e.setState(t)}},e}return r=b,(a=[{key:"getDecoratedComponentInstance",value:function(){return(0,u.k)(this.ref.current,"In order to access an instance of the decorated component, it must either be a class component or use React.forwardRef()"),this.ref.current}},{key:"shouldComponentUpdate",value:function(e,t){return!g(e,this.props)||!(0,o.w)(t,this.state)}},{key:"componentDidMount",value:function(){this.isCurrentlyMounted=!0,this.handleChange()}},{key:"componentWillUnmount",value:function(){this.isCurrentlyMounted=!1,this.unsubscribeFromOffsetChange&&(this.unsubscribeFromOffsetChange(),this.unsubscribeFromOffsetChange=void 0),this.unsubscribeFromStateChange&&(this.unsubscribeFromStateChange(),this.unsubscribeFromStateChange=void 0)}},{key:"render",value:function(){var e=this;return n.createElement(c.L.Consumer,null,(function(t){var r=t.dragDropManager;return void 0===r?null:(e.receiveDragDropManager(r),e.isCurrentlyMounted?n.createElement(i,Object.assign({},e.props,e.state,{ref:(0,f.J7)(i)?e.ref:null})):null)}))}},{key:"receiveDragDropManager",value:function(e){if(void 0===this.manager){this.manager=e,(0,u.k)("object"===l(e),"Could not find the drag and drop manager in the context of %s. Make sure to render a DndProvider component in your top-level component. Read more: http://react-dnd.github.io/react-dnd/docs/troubleshooting#could-not-find-the-drag-and-drop-manager-in-the-context",v,v);var t=this.manager.getMonitor();this.unsubscribeFromOffsetChange=t.subscribeToOffsetChange(this.handleChange),this.unsubscribeFromStateChange=t.subscribeToStateChange(this.handleChange)}}},{key:"getCurrentState",value:function(){if(!this.manager)return{};var t=this.manager.getMonitor();return e(t,this.props)}}])&&d(r.prototype,a),s&&d(r,s),b}(n.Component);return t.displayName="DragLayer(".concat(v,")"),t.DecoratedComponent=r,t}();return a()(y,r)}}},11046:function(e,t,r){"use strict";r.d(t,{E:function(){return g}});var n=r(49132),o=r(74731),i=r(73903),a=r(16413),u=r(20742),c=r(64127),s=r(65009),f=r(62673);function l(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)}}var d=["canDrag","beginDrag","isDragging","endDrag"],h=["beginDrag"],p=function(){function e(t,r,n){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.props=null,this.beginDrag=function(){if(o.props)return o.spec.beginDrag(o.props,o.monitor,o.ref.current)},this.spec=t,this.monitor=r,this.ref=n}var t,r,n;return t=e,(r=[{key:"receiveProps",value:function(e){this.props=e}},{key:"canDrag",value:function(){return!!this.props&&(!this.spec.canDrag||this.spec.canDrag(this.props,this.monitor))}},{key:"isDragging",value:function(e,t){return!!this.props&&(this.spec.isDragging?this.spec.isDragging(this.props,this.monitor):t===e.getSourceId())}},{key:"endDrag",value:function(){this.props&&this.spec.endDrag&&this.spec.endDrag(this.props,this.monitor,(0,i.Al)(this.ref))}}])&&l(t.prototype,r),n&&l(t,n),e}();function g(e,t,r){var l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};(0,i.U9)("DragSource","type, spec, collect[, options]",e,t,r,l);var g=e;"function"!==typeof e&&((0,n.k)((0,f.m)(e),'Expected "type" provided as the first argument to DragSource to be a string, or a function that returns a string given the current props. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',e),g=function(){return e}),(0,n.k)((0,o.PO)(t),'Expected "spec" provided as the second argument to DragSource to be a plain object. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',t);var v=function(e){return Object.keys(e).forEach((function(t){(0,n.k)(d.indexOf(t)>-1,'Expected the drag source specification to only have some of the following keys: %s. Instead received a specification with an unexpected "%s" key. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',d.join(", "),t),(0,n.k)("function"===typeof e[t],"Expected %s in the drag source specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source",t,t,e[t])})),h.forEach((function(t){(0,n.k)("function"===typeof e[t],"Expected %s in the drag source specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source",t,t,e[t])})),function(t,r){return new p(e,t,r)}}(t);return(0,n.k)("function"===typeof r,'Expected "collect" provided as the third argument to DragSource to be a function that returns a plain object of props to inject. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',r),(0,n.k)((0,o.PO)(l),'Expected "options" provided as the fourth argument to DragSource to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source',r),function(e){return(0,a.K)({containerDisplayName:"DragSource",createHandler:v,registerHandler:u.w,createConnector:function(e){return new s.x(e)},createMonitor:function(e){return new c.p(e)},DecoratedComponent:e,getType:g,collect:r,options:l})}}},43672:function(e,t,r){"use strict";r.d(t,{G:function(){return p}});var n=r(49132),o=r(74731),i=r(20742),a=r(62673),u=r(27623),c=r(9178),s=r(73903),f=r(16413);function l(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)}}var d=["canDrop","hover","drop"],h=function(){function e(t,r,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.props=null,this.spec=t,this.monitor=r,this.ref=n}var t,r,n;return t=e,(r=[{key:"receiveProps",value:function(e){this.props=e}},{key:"receiveMonitor",value:function(e){this.monitor=e}},{key:"canDrop",value:function(){return!this.spec.canDrop||this.spec.canDrop(this.props,this.monitor)}},{key:"hover",value:function(){this.spec.hover&&this.props&&this.spec.hover(this.props,this.monitor,(0,s.Al)(this.ref))}},{key:"drop",value:function(){if(this.spec.drop)return this.spec.drop(this.props,this.monitor,this.ref.current)}}])&&l(t.prototype,r),n&&l(t,n),e}();function p(e,t,r){var l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};(0,s.U9)("DropTarget","type, spec, collect[, options]",e,t,r,l);var p=e;"function"!==typeof e&&((0,n.k)((0,a.m)(e,!0),'Expected "type" provided as the first argument to DropTarget to be a string, an array of strings, or a function that returns either given the current props. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',e),p=function(){return e}),(0,n.k)((0,o.PO)(t),'Expected "spec" provided as the second argument to DropTarget to be a plain object. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',t);var g=function(e){return Object.keys(e).forEach((function(t){(0,n.k)(d.indexOf(t)>-1,'Expected the drop target specification to only have some of the following keys: %s. Instead received a specification with an unexpected "%s" key. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',d.join(", "),t),(0,n.k)("function"===typeof e[t],"Expected %s in the drop target specification to be a function. Instead received a specification with %s: %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target",t,t,e[t])})),function(t,r){return new h(e,t,r)}}(t);return(0,n.k)("function"===typeof r,'Expected "collect" provided as the third argument to DropTarget to be a function that returns a plain object of props to inject. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',r),(0,n.k)((0,o.PO)(l),'Expected "options" provided as the fourth argument to DropTarget to be a plain object when specified. Instead, received %s. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target',r),function(e){return(0,f.K)({containerDisplayName:"DropTarget",createHandler:g,registerHandler:i.n,createMonitor:function(e){return new c.H(e)},createConnector:function(e){return new u.Y(e)},DecoratedComponent:e,getType:p,collect:r,options:l})}}},16413:function(e,t,r){"use strict";r.d(t,{K:function(){return k}});var n=r(30969),o=r(16193),i=r(49132),a=r(47814),u=r.n(a),c=r(46636),s=r(74731);function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(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)}}function d(e,t,r){return t&&l(e.prototype,t),r&&l(e,r),e}var h=function(){var e=function(){function e(t){f(this,e),this.isDisposed=!1,this.action=(0,s.mf)(t)?t:s.ZT}return d(e,[{key:"dispose",value:function(){this.isDisposed||(this.action(),this.isDisposed=!0)}}],[{key:"isDisposable",value:function(e){return Boolean(e&&(0,s.mf)(e.dispose))}},{key:"_fixup",value:function(t){return e.isDisposable(t)?t:e.empty}},{key:"create",value:function(t){return new e(t)}}]),e}();return e.empty={dispose:s.ZT},e}(),p=function(){function e(){f(this,e),this.isDisposed=!1;for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];this.disposables=r}return d(e,[{key:"add",value:function(e){this.isDisposed?e.dispose():this.disposables.push(e)}},{key:"remove",value:function(e){var t=!1;if(!this.isDisposed){var r=this.disposables.indexOf(e);-1!==r&&(t=!0,this.disposables.splice(r,1),e.dispose())}return t}},{key:"clear",value:function(){if(!this.isDisposed){for(var e=this.disposables.length,t=new Array(e),r=0;r<e;r++)t[r]=this.disposables[r];this.disposables=[];for(var n=0;n<e;n++)t[n].dispose()}}},{key:"dispose",value:function(){if(!this.isDisposed){this.isDisposed=!0;for(var e=this.disposables.length,t=new Array(e),r=0;r<e;r++)t[r]=this.disposables[r];this.disposables=[];for(var n=0;n<e;n++)t[n].dispose()}}}]),e}(),g=function(){function e(){f(this,e),this.isDisposed=!1}return d(e,[{key:"getDisposable",value:function(){return this.current}},{key:"setDisposable",value:function(e){var t=this.isDisposed;if(!t){var r=this.current;this.current=e,r&&r.dispose()}t&&e&&e.dispose()}},{key:"dispose",value:function(){if(!this.isDisposed){this.isDisposed=!0;var e=this.current;this.current=void 0,e&&e.dispose()}}}]),e}(),v=r(73903);function y(e){return y="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(e)}function b(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(c){o=!0,i=c}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return r}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return m(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return m(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function O(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)}}function D(e,t){return D=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},D(e,t)}function w(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=S(e);if(t){var o=S(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===y(t)||"function"===typeof t))return t;return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function S(e){return S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},S(e)}function k(e){var t=e.DecoratedComponent,r=e.createHandler,a=e.createMonitor,s=e.createConnector,f=e.registerHandler,l=e.containerDisplayName,d=e.getType,y=e.collect,m=e.options.arePropsEqual,S=void 0===m?o.w:m,k=t,I=t.displayName||t.name||"Component",T=function(){var e=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&D(e,t)}(T,e);var t,u,l,m=w(T);function T(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,T),(t=m.call(this,e)).decoratedRef=n.createRef(),t.handleChange=function(){var e=t.getCurrentState();(0,o.w)(e,t.state)||t.setState(e)},t.disposable=new g,t.receiveProps(e),t.dispose(),t}return t=T,(u=[{key:"getHandlerId",value:function(){return this.handlerId}},{key:"getDecoratedComponentInstance",value:function(){return(0,i.k)(this.decoratedRef.current,"In order to access an instance of the decorated component, it must either be a class component or use React.forwardRef()"),this.decoratedRef.current}},{key:"shouldComponentUpdate",value:function(e,t){return!S(e,this.props)||!(0,o.w)(t,this.state)}},{key:"componentDidMount",value:function(){this.disposable=new g,this.currentType=void 0,this.receiveProps(this.props),this.handleChange()}},{key:"componentDidUpdate",value:function(e){S(this.props,e)||(this.receiveProps(this.props),this.handleChange())}},{key:"componentWillUnmount",value:function(){this.dispose()}},{key:"receiveProps",value:function(e){this.handler&&(this.handler.receiveProps(e),this.receiveType(d(e)))}},{key:"receiveType",value:function(e){if(this.handlerMonitor&&this.manager&&this.handlerConnector&&e!==this.currentType){this.currentType=e;var t=b(f(e,this.handler,this.manager),2),r=t[0],n=t[1];this.handlerId=r,this.handlerMonitor.receiveHandlerId(r),this.handlerConnector.receiveHandlerId(r);var o=this.manager.getMonitor().subscribeToStateChange(this.handleChange,{handlerIds:[r]});this.disposable.setDisposable(new p(new h(o),new h(n)))}}},{key:"dispose",value:function(){this.disposable.dispose(),this.handlerConnector&&this.handlerConnector.receiveHandlerId(null)}},{key:"getCurrentState",value:function(){return this.handlerConnector?y(this.handlerConnector.hooks,this.handlerMonitor,this.props):{}}},{key:"render",value:function(){var e=this;return n.createElement(c.L.Consumer,null,(function(t){var r=t.dragDropManager;return e.receiveDragDropManager(r),"undefined"!==typeof requestAnimationFrame&&requestAnimationFrame((function(){var t;return null===(t=e.handlerConnector)||void 0===t?void 0:t.reconnect()})),n.createElement(k,Object.assign({},e.props,e.getCurrentState(),{ref:(0,v.J7)(k)?e.decoratedRef:null}))}))}},{key:"receiveDragDropManager",value:function(e){void 0===this.manager&&((0,i.k)(void 0!==e,"Could not find the drag and drop manager in the context of %s. Make sure to render a DndProvider component in your top-level component. Read more: http://react-dnd.github.io/react-dnd/docs/troubleshooting#could-not-find-the-drag-and-drop-manager-in-the-context",I,I),void 0!==e&&(this.manager=e,this.handlerMonitor=a(e),this.handlerConnector=s(e.getBackend()),this.handler=r(this.handlerMonitor,this.decoratedRef)))}}])&&O(t.prototype,u),l&&O(t,l),T}(n.Component);return e.DecoratedComponent=t,e.displayName="".concat(l,"(").concat(I,")"),e}();return u()(T,t)}},5008:function(e,t,r){"use strict";r.r(t),r.d(t,{DragLayer:function(){return i.r},DragSource:function(){return n.E},DropTarget:function(){return o.G}});var n=r(11046),o=r(43672),i=r(24919),a=r(91271),u={};for(var c in a)["default","DragSource","DropTarget","DragLayer"].indexOf(c)<0&&(u[c]=function(e){return a[e]}.bind(0,c));r.d(t,u)},91271:function(){},73903:function(e,t,r){"use strict";function n(e){var t=e.current;return null==t?null:t.decoratedRef?t.decoratedRef.current:t}function o(e){return(t=e)&&t.prototype&&"function"===typeof t.prototype.render||function(e){var t;return"Symbol(react.forward_ref)"===(null===e||void 0===e||null===(t=e.$$typeof)||void 0===t?void 0:t.toString())}(e);var t}function i(e,t){}r.d(t,{Al:function(){return n},J7:function(){return o},U9:function(){return i}})},94122:function(e,t,r){"use strict";r.d(t,{c0:function(){return S},Nx:function(){return g},f$:function(){return x},LW:function(){return P}});var n=r(30969),o=r(49132),i="undefined"!==typeof window?n.useLayoutEffect:n.useEffect,a=r(16193);function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(c){o=!0,i=c}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return r}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return c(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return c(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function s(e,t,r){var o=u((0,n.useState)((function(){return t(e)})),2),c=o[0],s=o[1],f=(0,n.useCallback)((function(){var n=t(e);(0,a.w)(c,n)||(s(n),r&&r())}),[c,e,r]);return i(f,[]),[c,f]}function f(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(c){o=!0,i=c}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return r}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return l(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function d(e,t,r){var n=f(s(e,t,r),2),o=n[0],a=n[1];return i((function(){var t=e.getHandlerId();if(null!=t)return e.subscribeToStateChange(a,{handlerIds:[t]})}),[e,a]),o}var h=r(20742),p=r(46636);function g(){var e=(0,n.useContext)(p.L).dragDropManager;return(0,o.k)(null!=e,"Expected drag drop context"),e}var v=r(64127),y=r(65009);function b(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(c){o=!0,i=c}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return r}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return m(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return m(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function O(e){return O="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},O(e)}function D(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(c){o=!0,i=c}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return r}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return w(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return w(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function S(e){var t=(0,n.useRef)(e);t.current=e,(0,o.k)(null!=e.item,"item must be defined"),(0,o.k)(null!=e.item.type,"item type must be defined");var r=D(function(){var e=g();return[(0,n.useMemo)((function(){return new v.p(e)}),[e]),(0,n.useMemo)((function(){return new y.x(e.getBackend())}),[e])]}(),2),a=r[0],u=r[1];!function(e,t,r){var a=g(),u=(0,n.useMemo)((function(){return{beginDrag:function(){var r=e.current,n=r.begin,i=r.item;if(n){var a=n(t);return(0,o.k)(null==a||"object"===O(a),"dragSpec.begin() must either return an object, undefined, or null"),a||i||{}}return i||{}},canDrag:function(){return"boolean"===typeof e.current.canDrag?e.current.canDrag:"function"!==typeof e.current.canDrag||e.current.canDrag(t)},isDragging:function(r,n){var o=e.current.isDragging;return o?o(t):n===r.getSourceId()},endDrag:function(){var n=e.current.end;n&&n(t.getItem(),t),r.reconnect()}}}),[]);i((function(){var n=b((0,h.w)(e.current.item.type,u,a),2),o=n[0],i=n[1];return t.receiveHandlerId(o),r.receiveHandlerId(o),i}),[])}(t,a,u);var c=d(a,t.current.collect||function(){return{}},(function(){return u.reconnect()})),s=(0,n.useMemo)((function(){return u.hooks.dragSource()}),[u]),f=(0,n.useMemo)((function(){return u.hooks.dragPreview()}),[u]);return i((function(){u.dragSourceOptions=t.current.options||null,u.reconnect()}),[u]),i((function(){u.dragPreviewOptions=t.current.previewOptions||null,u.reconnect()}),[u]),[c,s,f]}var k=r(27623),I=r(9178);function T(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(c){o=!0,i=c}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return r}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return C(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return C(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function E(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(c){o=!0,i=c}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return r}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return j(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return j(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function j(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function P(e){var t=(0,n.useRef)(e);t.current=e,(0,o.k)(null!=e.accept,"accept must be defined");var r=E(function(){var e=g();return[(0,n.useMemo)((function(){return new I.H(e)}),[e]),(0,n.useMemo)((function(){return new k.Y(e.getBackend())}),[e])]}(),2),a=r[0],u=r[1];!function(e,t,r){var o=g(),a=(0,n.useMemo)((function(){return{canDrop:function(){var r=e.current.canDrop;return!r||r(t.getItem(),t)},hover:function(){var r=e.current.hover;r&&r(t.getItem(),t)},drop:function(){var r=e.current.drop;if(r)return r(t.getItem(),t)}}}),[t]);i((function(){var n=T((0,h.n)(e.current.accept,a,o),2),i=n[0],u=n[1];return t.receiveHandlerId(i),r.receiveHandlerId(i),u}),[t,r])}(t,a,u);var c=d(a,t.current.collect||function(){return{}},(function(){return u.reconnect()})),s=(0,n.useMemo)((function(){return u.hooks.dropTarget()}),[u]);return i((function(){u.dropTargetOptions=e.options||null,u.reconnect()}),[e.options]),[c,s]}function _(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(c){o=!0,i=c}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return r}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return A(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return A(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function x(e){var t=g().getMonitor(),r=_(s(t,e),2),o=r[0],i=r[1];return(0,n.useEffect)((function(){return t.subscribeToOffsetChange(i)})),(0,n.useEffect)((function(){return t.subscribeToStateChange(i)})),o}},81668:function(e,t,r){"use strict";r.r(t),r.d(t,{DndContext:function(){return n.LB},DndProvider:function(){return n.WG},DragPreviewImage:function(){return n.hw},createDndContext:function(){return n.LT},useDrag:function(){return u.c0},useDragDropManager:function(){return u.Nx},useDragLayer:function(){return u.f$},useDrop:function(){return u.LW}});var n=r(13214),o=r(84407),i={};for(var a in o)["default","DndContext","DndProvider","DragPreviewImage","createDndContext"].indexOf(a)<0&&(i[a]=function(e){return o[e]}.bind(0,a));r.d(t,i);var u=r(94122),c=r(5008);i={};for(var a in c)["default","DndContext","DndProvider","DragPreviewImage","createDndContext","useDrag","useDragDropManager","useDragLayer","useDrop"].indexOf(a)<0&&(i[a]=function(e){return c[e]}.bind(0,a));r.d(t,i)},16091:function(){},64668:function(){},84407:function(e,t,r){"use strict";r.r(t);var n=r(63506),o={};for(var i in n)"default"!==i&&(o[i]=function(e){return n[e]}.bind(0,i));r.d(t,o);var a=r(64668);o={};for(var i in a)"default"!==i&&(o[i]=function(e){return a[e]}.bind(0,i));r.d(t,o);var u=r(4782);o={};for(var i in u)"default"!==i&&(o[i]=function(e){return u[e]}.bind(0,i));r.d(t,o);var c=r(16091);o={};for(var i in c)"default"!==i&&(o[i]=function(e){return c[e]}.bind(0,i));r.d(t,o)},63506:function(){},4782:function(){},19513:function(e,t,r){"use strict";function n(e){return n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e){return null!==e&&"object"===n(e)&&Object.prototype.hasOwnProperty.call(e,"current")}r.d(t,{d:function(){return o}})},62673:function(e,t,r){"use strict";function n(e){return n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e,t){return"string"===typeof e||"symbol"===n(e)||!!t&&Array.isArray(e)&&e.every((function(e){return o(e,!1)}))}r.d(t,{m:function(){return o}})},74731:function(e,t,r){"use strict";function n(e){return n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function o(e){return"function"===typeof e}function i(){}function a(e){if(!function(e){return"object"===n(e)&&null!==e}(e))return!1;if(null===Object.getPrototypeOf(e))return!0;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}r.d(t,{PO:function(){return a},ZT:function(){return i},mf:function(){return o}})}}]);
|
|
2
|
+
//# sourceMappingURL=2631.54f86f84.chunk.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
(self.webpackChunk_abtnode_blocklet_services=self.webpackChunk_abtnode_blocklet_services||[]).push([[2793],{52469:function(e,t,n){var r=n(25800),o=r.getNftBGColor,i=r.DEFAULT_COLOR,l=r.getNftBGColorFromDid;e.exports=function(e){var t,n=e.issuer,r=void 0===n?"":n,a=e.title,c=void 0===a?"":a,s=e.issuerDid,u=void 0===s?"":s,f=e.ownerName,p=void 0===f?"":f,d=e.ownerAvatarUrl,C=void 0===d?"":d,h=e.preferredColor,b=void 0===h?"default":h,v=e.revoked,y=void 0!==v&&v,g=e.isDataUrl,m=void 0!==g&&g,O=e.width,x=void 0===O?"100%":O,w=e.height,M=void 0===w?"100%":w;t="default"===b?i:"auto"===b?l(u):o(b);var j='<svg width="'.concat(x,'" height="').concat(M,'" viewBox="0 0 424 564" fill="none" xmlns="http://www.w3.org/2000/svg">\n<rect x="1" y="1" width="422" height="562" rx="21" fill="url(#paint0_linear_6_342)"/>\n<text x="360" y="65" fill="white" xml:space="preserve" font-family="Roboto,Helvetica" font-size="').concat(c.length>=12?12:c.length>=10?14:c.length>=8?18:c.length>=6?24:28,'" letter-spacing="0px" style="dominant-baseline:middle;text-anchor:middle;">').concat(c.toUpperCase(),'</text>\n<text opacity="0.4" fill="white" xml:space="preserve" style="white-space: pre" font-family="Roboto,Helvetica" font-size="16" font-weight="500" letter-spacing="0px"><tspan x="319" y="40.9688">PASSPORT</tspan></text>\n<text fill="white" xml:space="preserve" style="white-space: pre" font-family="Roboto,Helvetica" font-size="').concat(r.length>15?20:24,'" font-weight="500" letter-spacing="0px"><tspan x="26" y="60.2031">').concat(r,'</tspan></text>\n<rect x="2" y="102" width="420" height="168" fill="black" fill-opacity="0.3"/>\n<circle cx="212" cy="250" r="60" fill="#FBFBFB"/>\n<path fill-rule="evenodd" clip-rule="evenodd" d="M212.224 247.722C218.932 247.722 224.37 242.284 224.37 235.575C224.37 228.867 218.932 223.429 212.224 223.429C205.515 223.429 200.077 228.867 200.077 235.575C200.077 242.284 205.515 247.722 212.224 247.722ZM188.857 272.018C188.857 274.573 190.929 276.645 193.484 276.645H230.962C231.28 276.645 231.597 276.612 231.908 276.547C234.41 276.025 236.014 273.574 235.492 271.072L234.335 265.533C232.991 259.099 227.319 254.489 220.746 254.489H203.7C197.127 254.489 191.455 259.099 190.112 265.533L188.955 271.072C188.89 271.383 188.857 271.7 188.857 272.018Z" fill="#FBFBFB" />\n<path d="M231.908 276.547L232.215 278.016L231.908 276.547ZM235.492 271.072L236.96 270.765H236.96L235.492 271.072ZM234.335 265.533L232.866 265.839L234.335 265.533ZM190.112 265.533L191.58 265.839L190.112 265.533ZM188.955 271.072L187.487 270.765H187.487L188.955 271.072ZM222.87 235.575C222.87 241.455 218.104 246.222 212.224 246.222V249.222C219.761 249.222 225.87 243.112 225.87 235.575H222.87ZM212.224 224.929C218.104 224.929 222.87 229.695 222.87 235.575H225.87C225.87 228.038 219.761 221.929 212.224 221.929V224.929ZM201.577 235.575C201.577 229.695 206.344 224.929 212.224 224.929V221.929C204.687 221.929 198.577 228.038 198.577 235.575H201.577ZM212.224 246.222C206.344 246.222 201.577 241.455 201.577 235.575H198.577C198.577 243.112 204.687 249.222 212.224 249.222V246.222ZM193.484 275.145C191.757 275.145 190.357 273.745 190.357 272.018H187.357C187.357 275.402 190.1 278.145 193.484 278.145V275.145ZM230.962 275.145H193.484V278.145H230.962V275.145ZM231.601 275.079C231.391 275.123 231.177 275.145 230.962 275.145V278.145C231.383 278.145 231.803 278.102 232.215 278.016L231.601 275.079ZM234.023 271.379C234.376 273.069 233.292 274.726 231.601 275.079L232.215 278.016C235.527 277.324 237.652 274.078 236.96 270.765L234.023 271.379ZM232.866 265.839L234.023 271.379L236.96 270.765L235.803 265.226L232.866 265.839ZM220.746 255.989C226.609 255.989 231.668 260.1 232.866 265.839L235.803 265.226C234.314 258.097 228.029 252.989 220.746 252.989V255.989ZM203.7 255.989H220.746V252.989H203.7V255.989ZM191.58 265.839C192.779 260.1 197.838 255.989 203.7 255.989V252.989C196.417 252.989 190.132 258.097 188.643 265.226L191.58 265.839ZM190.423 271.379L191.58 265.839L188.643 265.226L187.487 270.765L190.423 271.379ZM190.357 272.018C190.357 271.803 190.379 271.589 190.423 271.379L187.487 270.765C187.401 271.177 187.357 271.597 187.357 272.018H190.357Z" fill="#BFBFBF" />\n<circle cx="212" cy="250" r="60" fill="url(#raduisImage)"/>\n<defs>\n<pattern id="raduisImage" patternUnits="userSpaceOnUse" width="424" height="564">\n<image x="152" y="190" href="').concat(C,'" width="120" height="120" />\n</pattern>\n</defs>\n<text x="215" y="350" fill="white" xml:space="preserve" style="dominant-baseline:middle;text-anchor:middle;" font-family="Roboto,Helvetica" font-size="28" font-weight="500" letter-spacing="0px">').concat(p,'</text>\n<text opacity="0.4" fill="white" xml:space="preserve" style="white-space: pre" font-family="Roboto,Helvetica" font-size="18" font-weight="500" letter-spacing="0px"><tspan x="26" y="407.652">ISSUER DID</tspan></text>\n<path fill-rule="evenodd" clip-rule="evenodd" d="M28.6722 423.313H45.3819C46.4294 423.313 47.2787 424.162 47.2787 425.21V433.79C47.2787 434.838 46.4294 435.687 45.3819 435.687H28.6722C27.9517 435.687 27.3249 435.285 27.0039 434.694H26.1167C26.4887 435.746 27.4924 436.5 28.6722 436.5H45.3819C46.8784 436.5 48.0916 435.287 48.0916 433.79V425.21C48.0916 423.713 46.8784 422.5 45.3819 422.5H28.6722C27.3296 422.5 26.215 423.477 26 424.758H26.8295C27.0321 423.929 27.7803 423.313 28.6722 423.313ZM27.8801 432.096C27.7831 432.089 27.6966 432.082 27.6204 432.075V427.526C27.7243 427.512 27.8351 427.505 27.9528 427.505C28.0705 427.498 28.1848 427.494 28.2955 427.494C29.1057 427.494 29.6978 427.688 30.0717 428.076C30.4457 428.464 30.6326 429.035 30.6326 429.79C30.6326 430.51 30.4353 431.074 30.0406 431.483C29.6528 431.892 29.0538 432.096 28.2436 432.096H27.8801ZM32.0141 431.421C32.208 430.957 32.305 430.413 32.305 429.79C32.305 429.139 32.208 428.582 32.0141 428.118C31.8202 427.654 31.5432 427.273 31.1832 426.975C30.8231 426.677 30.3903 426.459 29.8848 426.321C29.3862 426.182 28.8288 426.113 28.2125 426.113C27.9216 426.113 27.5719 426.127 27.1634 426.154C26.7617 426.175 26.3739 426.22 26 426.29V433.301C26.3739 433.377 26.7548 433.425 27.1426 433.446C27.5304 433.474 27.8697 433.488 28.1605 433.488C28.7976 433.488 29.3723 433.412 29.8848 433.259C30.3972 433.107 30.83 432.878 31.1832 432.574C31.5432 432.269 31.8202 431.885 32.0141 431.421ZM35.2788 426.196H33.6585V433.394H35.2788V426.196ZM38.5654 432.075C38.6416 432.082 38.7281 432.089 38.8251 432.096H39.1886C39.9988 432.096 40.5978 431.892 40.9856 431.483C41.3803 431.074 41.5776 430.51 41.5776 429.79C41.5776 429.035 41.3907 428.464 41.0167 428.076C40.6428 427.688 40.0507 427.494 39.2405 427.494C39.1298 427.494 39.0155 427.498 38.8978 427.505C38.7801 427.505 38.6693 427.512 38.5654 427.526V432.075ZM43.25 429.79C43.25 430.413 43.153 430.957 42.9591 431.421C42.7652 431.885 42.4882 432.269 42.1282 432.574C41.775 432.878 41.3422 433.107 40.8298 433.259C40.3173 433.412 39.7426 433.488 39.1055 433.488C38.8147 433.488 38.4754 433.474 38.0876 433.446C37.6998 433.425 37.3189 433.377 36.945 433.301V426.29C37.3189 426.22 37.7067 426.175 38.1084 426.154C38.5169 426.127 38.8666 426.113 39.1574 426.113C39.7738 426.113 40.3312 426.182 40.8298 426.321C41.3353 426.459 41.7681 426.677 42.1282 426.975C42.4882 427.273 42.7652 427.654 42.9591 428.118C43.153 428.582 43.25 429.139 43.25 429.79ZM45.1907 428.355C44.8209 428.355 44.5161 428.055 44.5161 427.686C44.5161 427.316 44.8209 427.016 45.1907 427.016C45.5604 427.016 45.8652 427.316 45.8652 427.686C45.8652 428.055 45.5604 428.355 45.1907 428.355ZM45.1907 431.855C44.8209 431.855 44.5161 431.555 44.5161 431.185C44.5161 430.815 44.8209 430.516 45.1907 430.516C45.5604 430.516 45.8652 430.815 45.8652 431.185C45.8652 431.555 45.5604 431.855 45.1907 431.855Z" fill="white"/>\n<text fill="white" xml:space="preserve" style="white-space: pre" font-family="Roboto,Helvetica" font-size="15" font-weight="500" letter-spacing="0px"><tspan x="54.0916" y="434.969">').concat(u,'</tspan></text>\n<rect x="1" y="1" width="422" height="562" rx="21" stroke="#F0F0F0" stroke-width="2"/>\n<defs>\n<linearGradient id="paint0_linear_6_342" x1="414.5" y1="562" x2="-116.166" y2="156.726" gradientUnits="userSpaceOnUse">\n<stop stop-color="').concat(t.startColor,'"/>\n<stop offset="1" stop-color="').concat(t.endColor,'"/>\n</linearGradient>\n</defs>\n').concat(y?'<circle cx="210" cy="250" r="120" stroke="rgba(255,0,0,0.5)" stroke-width="25" /><line x1="132" y1="168" x2="296" y2="323" stroke="rgba(255,0,0,0.5)" stroke-width="25" />':"","\n</svg>");return m?"data:image/svg+xml;utf8,".concat(encodeURIComponent(j)):j}},25800:function(e,t,n){var r=n(2073).toHex,o=n(64029).Hasher,i=function(e){if(e){var t=function(e){var t,n,r=e.replace("#",""),o=parseInt(r.slice(0,2),16)/255,i=parseInt(r.slice(2,4),16)/255,l=parseInt(r.slice(4,6),16)/255,a=Math.max(o,i,l),c=Math.min(o,i,l),s=(a+c)/2;if(a===c)t=0,n=0;else{var u=a-c;switch(n=s>.5?u/(2-a-c):u/(a+c),a){case o:t=(i-l)/u+(i<l?6:0);break;case i:t=(l-o)/u+2;break;case l:t=(o-i)/u+4}t/=6}return[t,n,s]}(e),n=[t[0]];t[1]>.7?n.push(.7):n.push(t[1]),t[2]>.6?n.push(.6):t[2]<.3?n.push(.3):n.push(t[2]);var r=[n[0],n[1],n[2]-.1],o=a.apply(void 0,n);return{startColor:a.apply(void 0,r),endColor:o}}return{startColor:"#2B3845",endColor:"#5A7A8A"}};function l(e){return"#".concat(r(o.SHA3.hash224(e)).slice(-6))}function a(e,t,n){var r,o,i;if(0===t)r=n,o=n,i=n;else{var l=function(e,t,n){var r=n;return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e},a=n<.5?n*(1+t):n+t-n*t,c=2*n-a;r=l(c,a,e+1/3),o=l(c,a,e),i=l(c,a,e-1/3)}return"#".concat([Math.round(255*r),Math.round(255*o),Math.round(255*i)].map((function(e){return e.toString(16).padStart(2,0)})).join(""))}e.exports={getNftBGColor:i,getNftBGColorFromDid:function(e){return i(l(e))},DEFAULT_COLOR:{startColor:"#2B3845",endColor:"#5A7A8A"},getPassportColorFromDid:l}},76361:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=u,t.withPermission=function(e,t,n){return function(r){return(0,l.jsx)(u,{permission:t,role:n,children:function(t){return(0,l.jsx)(e,c(c({},r),{},{hasPermission:t}))}})}};var r,o=(r=n(24974))&&r.__esModule?r:{default:r},i=n(99112),l=n(37574);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e){var t=e.permission,n=e.role,r=e.component,o=e.children,l=(0,i.useSessionContext)().session,a=!0,c=[].concat(t).filter(Boolean),s=[].concat(n).filter(Boolean);if(c.length){var u=l.user&&l.user.permissions||[];a=c.some((function(e){return u.includes(e)}))}return a&&s.length&&(a=s.includes(l.user.role)),"function"===typeof r?r(a):"function"===typeof o?o(a):a&&(r||o)||null}u.propTypes={permission:o.default.oneOfType([o.default.string,o.default.arrayOf(o.default.string)]),role:o.default.oneOfType([o.default.string,o.default.arrayOf(o.default.string)]),component:o.default.oneOfType([o.default.func,o.default.node]),children:o.default.oneOfType([o.default.func,o.default.node])},u.defaultProps={permission:"",role:"",component:null,children:null}},37083:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=s(n(16380)),i=s(n(89558)),l=s(n(90713)),a=n(37574),c=["children"];function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var C,h,b=(0,o.default)((function(e){var t=e.children,n=d(e,c);return(0,a.jsx)(i.default,f(f({},n),{},{id:"outlined-basic",variant:"outlined",InputProps:{startAdornment:(0,a.jsx)(l.default,{})},size:"small",children:t}))}))(r||(C=["\n .MuiOutlinedInput-root {\n color: #999;\n &.MuiInputBase-adornedStart .MuiSvgIcon-root {\n color: #bfbfbf;\n }\n opacity: 1;\n border-radius: 36px;\n background: #f8f8f8;\n padding-left: 16px;\n input {\n padding-left: 8px;\n font-weight: bold;\n &::placeholder {\n opacity: 1;\n color: #bfbfbf;\n }\n padding-top: 8.5px;\n padding-bottom: 8.5px;\n }\n }\n\n .MuiOutlinedInput-notchedOutline,\n .MuiOutlinedInput-root:hover .MuiOutlinedInput-notchedOutline,\n .Mui-focused .MuiOutlinedInput-notchedOutline {\n border-color: #eee;\n border-width: 1px;\n }\n"],h||(h=C.slice(0)),r=Object.freeze(Object.defineProperties(C,{raw:{value:Object.freeze(h)}}))));t.default=b},57986:function(e,t,n){"use strict";var r,o;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,l,a=((r=n(16380))&&r.__esModule?r:{default:r}).default.div(o||(i=["\n display: flex;\n justify-content: space-between;\n align-items: center;\n font-size: 14px;\n .left,\n .right {\n }\n .right {\n display: flex;\n align-items: center;\n }\n .tabs {\n .MuiButton-root {\n border: none;\n color: #999;\n &.active {\n color: #222;\n }\n }\n }\n\n @media (max-width: 600px) {\n display: block;\n .right {\n margin-top: 12px;\n }\n }\n"],l||(l=i.slice(0)),o=Object.freeze(Object.defineProperties(i,{raw:{value:Object.freeze(l)}}))));t.default=a}}]);
|
|
2
|
+
//# sourceMappingURL=2793.00991f08.chunk.js.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/*! For license information please see 2961.8237c11f.chunk.js.LICENSE.txt */
|
|
2
|
+
(self.webpackChunk_abtnode_blocklet_services=self.webpackChunk_abtnode_blocklet_services||[]).push([[2961],{22297:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;(n=r(30969))&&n.__esModule;var n,o=r(37574);function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var a=function(e){return(0,o.jsx)("svg",i(i({},e),{},{children:(0,o.jsx)("path",{d:"M8.438 4.313H8.25a.188.188 0 0 0 .188-.188v.188h7.124v-.188c0 .103.085.188.188.188h-.188V6h1.688V4.125c0-.827-.673-1.5-1.5-1.5h-7.5c-.827 0-1.5.673-1.5 1.5V6h1.688V4.312zM20.25 6H3.75a.75.75 0 0 0-.75.75v.75c0 .103.084.188.188.188h1.415l.579 12.257c.038.8.698 1.43 1.498 1.43h10.64c.802 0 1.46-.628 1.498-1.43l.579-12.258h1.416A.188.188 0 0 0 21 7.5v-.75a.75.75 0 0 0-.75-.75zm-3.11 13.688H6.86l-.567-12h11.414l-.567 12z"})}))};a.defaultProps={width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},a.displayName="delete";var s=a;t.default=s},15378:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;(n=r(30969))&&n.__esModule;var n,o=r(37574);function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var a=function(e){return(0,o.jsxs)("svg",i(i({},e),{},{children:[(0,o.jsx)("path",{d:"M1.25 2.709c0-.46.373-.834.834-.834h12.255c.46 0 .834.373.834.834v6.607a.834.834 0 1 1-1.668 0V3.542H2.917v13.214h6.407a.834.834 0 1 1 0 1.668h-7.24a.834.834 0 0 1-.834-.834V2.71z"}),(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.211 7.92a.917.917 0 1 0 0 1.833.917.917 0 0 0 0-1.834zm-2.584.916a2.584 2.584 0 1 1 5.169 0 2.584 2.584 0 0 1-5.17 0zM5.627 13.213c0-.46.373-.833.834-.833h3.501a.834.834 0 0 1 0 1.667H6.461a.834.834 0 0 1-.834-.834zM15.64 11.313c.215 0 .41.121.505.313l1.033 2.092 2.31.338a.563.563 0 0 1 .31.96l-1.67 1.627.394 2.3a.563.563 0 0 1-.816.592l-2.065-1.086-2.066 1.086a.562.562 0 0 1-.816-.593l.394-2.299-1.67-1.627a.563.563 0 0 1 .31-.96l2.31-.338 1.033-2.092a.562.562 0 0 1 .505-.313zm0 1.833l-.659 1.335a.563.563 0 0 1-.423.308l-1.474.215 1.066 1.04c.133.129.194.315.162.498l-.251 1.467 1.318-.694a.563.563 0 0 1 .524 0l1.318.694-.252-1.467a.563.563 0 0 1 .162-.498l1.067-1.04-1.475-.215a.563.563 0 0 1-.423-.308l-.66-1.335z"})]}))};a.defaultProps={width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},a.displayName="external-issuer";var s=a;t.default=s},87862:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;(n=r(30969))&&n.__esModule;var n,o=r(37574);function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var a=function(e){return(0,o.jsx)("svg",i(i({},e),{},{children:(0,o.jsx)("path",{d:"M11.78 2.25c-2.767 0-5.019 2.271-5.019 5.063v3.037H5.758a2.018 2.018 0 0 0-2.008 2.025v8.1c0 1.117.9 2.025 2.008 2.025h12.045a2.018 2.018 0 0 0 2.007-2.025v-8.1c0-1.117-.9-2.025-2.007-2.025h-1.004V7.313c0-2.792-2.251-5.063-5.019-5.063zm6.023 10.125l.002 8.1H5.758v-8.1h12.045zM8.769 10.35V7.313c0-1.675 1.35-3.038 3.011-3.038 1.66 0 3.011 1.363 3.011 3.037v3.038H8.77z"})}))};a.defaultProps={width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},a.displayName="lock";var s=a;t.default=s},33951:function(e,t,r){"use strict";var n=r(43681).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=_;var o,u,i=r(30969),c=O(r(24974)),a=O(r(23038)),s=O(r(98885)),l=O(r(97305)),f=O(r(46393)),d=O(r(66349)),p=O(r(47856)),h=O(r(29491)),v=O(r(84916)),y=r(215),b=r(37574),g=["size","color","menu","children","variant","onClick","menuButtonProps"];function O(e){return e&&e.__esModule?e:{default:e}}function m(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function j(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function w(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?j(Object(r),!0).forEach((function(t){P(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):j(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function P(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function x(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},u=Object.keys(e);for(n=0;n<u.length;n++)r=u[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);for(n=0;n<u.length;n++)r=u[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function _(e){var t=e.size,r=e.color,o=e.menu,u=e.children,c=e.variant,s=e.onClick,h=e.menuButtonProps,y=x(e,g),O=(0,i.useState)(!1),m=n(O,2),j=m[0],P=m[1],_=(0,i.useRef)(null),k=Array.isArray(o)?o.map((function(e,t){return(0,i.isValidElement)(e)?e:(0,i.createElement)(p.default,w(w({},e),{},{key:t}))})):o;return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsxs)(M,w(w({variant:c,size:t,color:r,ref:_},y),{},{children:["function"===typeof u?u():(0,b.jsx)(v.default,{onClick:s,color:r,children:u}),(0,b.jsx)(v.default,w(w({onClick:function(){P((function(e){return!e}))},color:r},h),{},{"aria-label":"more functions",children:(0,b.jsx)(a.default,{})}))]})),(0,b.jsx)(z,{open:j,anchorEl:_.current,placement:"bottom-end",disablePortal:!1,children:(0,b.jsx)(l.default,{children:(0,b.jsx)(f.default,{onClickAway:function(e){_.current&&_.current.contains(e.target)||P(!1)},children:(0,b.jsx)(d.default,{onClick:function(e){e.target.closest(".MuiMenuItem-root")&&P(!1)},children:k})})})})]})}_.propTypes={size:c.default.oneOf(["small","medium","large"]),color:c.default.oneOf(["primary","secondary","inherit"]),menu:c.default.oneOfType([c.default.node,c.default.array]),children:c.default.node,variant:c.default.oneOf(["outlined","contained"]),onClick:c.default.func,menuButtonProps:c.default.object},_.defaultProps={size:"medium",color:"primary",menu:[],children:null,variant:"contained",onClick:function(){},menuButtonProps:{}},_.Item=p.default;var M=(0,y.styled)(h.default)(o||(o=m(["\n > .MuiButtonBase-root:last-of-type {\n min-width: 2em;\n padding-left: 0;\n padding-right: 0;\n }\n"]))),z=(0,y.styled)(s.default)(u||(u=m(["\n z-index: ",";\n .MuiList-root {\n padding: 4px 0;\n }\n .MuiListItem-root {\n padding-top: 4px;\n padding-bottom: 4px;\n }\n"])),(function(e){return e.theme.zIndex.tooltip}))},3715:function(e,t,r){"use strict";var n=r(71600);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(48035)),u=r(37574),i=(0,o.default)((0,u.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add");t.default=i},26804:function(e,t,r){"use strict";var n=r(71600);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(48035)),u=r(37574),i=(0,o.default)((0,u.jsx)("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"}),"ArrowBack");t.default=i},90713:function(e,t,r){"use strict";var n=r(71600);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(r(48035)),u=r(37574),i=(0,o.default)((0,u.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),"Search");t.default=i},68160:function(e){var t={utf8:{stringToBytes:function(e){return t.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(t.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],r=0;r<e.length;r++)t.push(255&e.charCodeAt(r));return t},bytesToString:function(e){for(var t=[],r=0;r<e.length;r++)t.push(String.fromCharCode(e[r]));return t.join("")}}};e.exports=t},29016:function(e){!function(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r={rotl:function(e,t){return e<<t|e>>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&r.rotl(e,8)|4278255360&r.rotl(e,24);for(var t=0;t<e.length;t++)e[t]=r.endian(e[t]);return e},randomBytes:function(e){for(var t=[];e>0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],r=0,n=0;r<e.length;r++,n+=8)t[n>>>5]|=e[r]<<24-n%32;return t},wordsToBytes:function(e){for(var t=[],r=0;r<32*e.length;r+=8)t.push(e[r>>>5]>>>24-r%32&255);return t},bytesToHex:function(e){for(var t=[],r=0;r<e.length;r++)t.push((e[r]>>>4).toString(16)),t.push((15&e[r]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],r=0;r<e.length;r+=2)t.push(parseInt(e.substr(r,2),16));return t},bytesToBase64:function(e){for(var r=[],n=0;n<e.length;n+=3)for(var o=e[n]<<16|e[n+1]<<8|e[n+2],u=0;u<4;u++)8*n+6*u<=8*e.length?r.push(t.charAt(o>>>6*(3-u)&63)):r.push("=");return r.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var r=[],n=0,o=0;n<e.length;o=++n%4)0!=o&&r.push((t.indexOf(e.charAt(n-1))&Math.pow(2,-2*o+8)-1)<<2*o|t.indexOf(e.charAt(n))>>>6-2*o);return r}};e.exports=r}()},34635:function(e){function t(e){return!!e.constructor&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}e.exports=function(e){return null!=e&&(t(e)||function(e){return"function"===typeof e.readFloatLE&&"function"===typeof e.slice&&t(e.slice(0,0))}(e)||!!e._isBuffer)}},16318:function(e,t,r){!function(){var t=r(29016),n=r(68160).utf8,o=r(34635),u=r(68160).bin,i=function e(r,i){r.constructor==String?r=i&&"binary"===i.encoding?u.stringToBytes(r):n.stringToBytes(r):o(r)?r=Array.prototype.slice.call(r,0):Array.isArray(r)||r.constructor===Uint8Array||(r=r.toString());for(var c=t.bytesToWords(r),a=8*r.length,s=1732584193,l=-271733879,f=-1732584194,d=271733878,p=0;p<c.length;p++)c[p]=16711935&(c[p]<<8|c[p]>>>24)|4278255360&(c[p]<<24|c[p]>>>8);c[a>>>5]|=128<<a%32,c[14+(a+64>>>9<<4)]=a;var h=e._ff,v=e._gg,y=e._hh,b=e._ii;for(p=0;p<c.length;p+=16){var g=s,O=l,m=f,j=d;s=h(s,l,f,d,c[p+0],7,-680876936),d=h(d,s,l,f,c[p+1],12,-389564586),f=h(f,d,s,l,c[p+2],17,606105819),l=h(l,f,d,s,c[p+3],22,-1044525330),s=h(s,l,f,d,c[p+4],7,-176418897),d=h(d,s,l,f,c[p+5],12,1200080426),f=h(f,d,s,l,c[p+6],17,-1473231341),l=h(l,f,d,s,c[p+7],22,-45705983),s=h(s,l,f,d,c[p+8],7,1770035416),d=h(d,s,l,f,c[p+9],12,-1958414417),f=h(f,d,s,l,c[p+10],17,-42063),l=h(l,f,d,s,c[p+11],22,-1990404162),s=h(s,l,f,d,c[p+12],7,1804603682),d=h(d,s,l,f,c[p+13],12,-40341101),f=h(f,d,s,l,c[p+14],17,-1502002290),s=v(s,l=h(l,f,d,s,c[p+15],22,1236535329),f,d,c[p+1],5,-165796510),d=v(d,s,l,f,c[p+6],9,-1069501632),f=v(f,d,s,l,c[p+11],14,643717713),l=v(l,f,d,s,c[p+0],20,-373897302),s=v(s,l,f,d,c[p+5],5,-701558691),d=v(d,s,l,f,c[p+10],9,38016083),f=v(f,d,s,l,c[p+15],14,-660478335),l=v(l,f,d,s,c[p+4],20,-405537848),s=v(s,l,f,d,c[p+9],5,568446438),d=v(d,s,l,f,c[p+14],9,-1019803690),f=v(f,d,s,l,c[p+3],14,-187363961),l=v(l,f,d,s,c[p+8],20,1163531501),s=v(s,l,f,d,c[p+13],5,-1444681467),d=v(d,s,l,f,c[p+2],9,-51403784),f=v(f,d,s,l,c[p+7],14,1735328473),s=y(s,l=v(l,f,d,s,c[p+12],20,-1926607734),f,d,c[p+5],4,-378558),d=y(d,s,l,f,c[p+8],11,-2022574463),f=y(f,d,s,l,c[p+11],16,1839030562),l=y(l,f,d,s,c[p+14],23,-35309556),s=y(s,l,f,d,c[p+1],4,-1530992060),d=y(d,s,l,f,c[p+4],11,1272893353),f=y(f,d,s,l,c[p+7],16,-155497632),l=y(l,f,d,s,c[p+10],23,-1094730640),s=y(s,l,f,d,c[p+13],4,681279174),d=y(d,s,l,f,c[p+0],11,-358537222),f=y(f,d,s,l,c[p+3],16,-722521979),l=y(l,f,d,s,c[p+6],23,76029189),s=y(s,l,f,d,c[p+9],4,-640364487),d=y(d,s,l,f,c[p+12],11,-421815835),f=y(f,d,s,l,c[p+15],16,530742520),s=b(s,l=y(l,f,d,s,c[p+2],23,-995338651),f,d,c[p+0],6,-198630844),d=b(d,s,l,f,c[p+7],10,1126891415),f=b(f,d,s,l,c[p+14],15,-1416354905),l=b(l,f,d,s,c[p+5],21,-57434055),s=b(s,l,f,d,c[p+12],6,1700485571),d=b(d,s,l,f,c[p+3],10,-1894986606),f=b(f,d,s,l,c[p+10],15,-1051523),l=b(l,f,d,s,c[p+1],21,-2054922799),s=b(s,l,f,d,c[p+8],6,1873313359),d=b(d,s,l,f,c[p+15],10,-30611744),f=b(f,d,s,l,c[p+6],15,-1560198380),l=b(l,f,d,s,c[p+13],21,1309151649),s=b(s,l,f,d,c[p+4],6,-145523070),d=b(d,s,l,f,c[p+11],10,-1120210379),f=b(f,d,s,l,c[p+2],15,718787259),l=b(l,f,d,s,c[p+9],21,-343485551),s=s+g>>>0,l=l+O>>>0,f=f+m>>>0,d=d+j>>>0}return t.endian([s,l,f,d])};i._ff=function(e,t,r,n,o,u,i){var c=e+(t&r|~t&n)+(o>>>0)+i;return(c<<u|c>>>32-u)+t},i._gg=function(e,t,r,n,o,u,i){var c=e+(t&n|r&~n)+(o>>>0)+i;return(c<<u|c>>>32-u)+t},i._hh=function(e,t,r,n,o,u,i){var c=e+(t^r^n)+(o>>>0)+i;return(c<<u|c>>>32-u)+t},i._ii=function(e,t,r,n,o,u,i){var c=e+(r^(t|~n))+(o>>>0)+i;return(c<<u|c>>>32-u)+t},i._blocksize=16,i._digestsize=16,e.exports=function(e,r){if(void 0===e||null===e)throw new Error("Illegal argument "+e);var n=t.wordsToBytes(i(e,r));return r&&r.asBytes?n:r&&r.asString?u.bytesToString(n):t.bytesToHex(n)}}()},19136:function(e){var t=1e3,r=60*t,n=60*r,o=24*n,u=7*o,i=365.25*o;function c(e,t,r,n){var o=t>=1.5*r;return Math.round(e/r)+" "+n+(o?"s":"")}e.exports=function(e,a){a=a||{};var s=typeof e;if("string"===s&&e.length>0)return function(e){if((e=String(e)).length>100)return;var c=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!c)return;var a=parseFloat(c[1]);switch((c[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return a*i;case"weeks":case"week":case"w":return a*u;case"days":case"day":case"d":return a*o;case"hours":case"hour":case"hrs":case"hr":case"h":return a*n;case"minutes":case"minute":case"mins":case"min":case"m":return a*r;case"seconds":case"second":case"secs":case"sec":case"s":return a*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}(e);if("number"===s&&isFinite(e))return a.long?function(e){var u=Math.abs(e);if(u>=o)return c(e,u,o,"day");if(u>=n)return c(e,u,n,"hour");if(u>=r)return c(e,u,r,"minute");if(u>=t)return c(e,u,t,"second");return e+" ms"}(e):function(e){var u=Math.abs(e);if(u>=o)return Math.round(e/o)+"d";if(u>=n)return Math.round(e/n)+"h";if(u>=r)return Math.round(e/r)+"m";if(u>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}}}]);
|
|
3
|
+
//# sourceMappingURL=2961.8237c11f.chunk.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
(self.webpackChunk_abtnode_blocklet_services=self.webpackChunk_abtnode_blocklet_services||[]).push([[3042],{11255:function(n,t,r){"use strict";r.d(t,{a:function(){return i}});var e=r(30969),i=function(n){return function(t,r){var i=(0,e.useRef)(!1);n((function(){return function(){i.current=!1}}),[]),n((function(){if(i.current)return t();i.current=!0}),r)}}},46121:function(n,t,r){"use strict";r.d(t,{Z:function(){return u}});var e=r(30969),i=r(73922);function u(n,t){var r=(0,e.useRef)({deps:t,obj:void 0,initialized:!1}).current;return!1!==r.initialized&&(0,i.Z)(r.deps,t)||(r.deps=t,r.obj=n(),r.initialized=!0),r.obj}},11322:function(n,t,r){"use strict";var e=r(30969);t.Z=function(n){var t=(0,e.useRef)(n);return t.current=n,t}},35147:function(n,t,r){"use strict";var e=r(30969),i=r(32681),u=r(63310);t.Z=function(n){u.Z&&((0,i.mf)(n)||console.error("useMemoizedFn expected parameter is a function, got ".concat(typeof n)));var t=(0,e.useRef)(n);t.current=(0,e.useMemo)((function(){return n}),[n]);var r=(0,e.useRef)();return r.current||(r.current=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return t.current.apply(this,n)}),r.current}},49476:function(n,t,r){"use strict";var e=r(30969),i=r(32681),u=r(63310);t.Z=function(n){u.Z&&((0,i.mf)(n)||console.error('useMount: parameter `fn` expected to be a function, but got "'.concat(typeof n,'".'))),(0,e.useEffect)((function(){null===n||void 0===n||n()}),[])}},73042:function(n,t,r){"use strict";r.d(t,{Z:function(){return I}});var e=r(73930),i=r(30969),u=r(82200),o=function(n,t){var r=t.manual,o=t.ready,a=void 0===o||o,c=t.defaultParams,s=void 0===c?[]:c,f=t.refreshDeps,l=void 0===f?[]:f,d=t.refreshDepsAction,v=(0,i.useRef)(!1);return v.current=!1,(0,u.Z)((function(){!r&&a&&(v.current=!0,n.run.apply(n,(0,e.__spreadArray)([],(0,e.__read)(s),!1)))}),[a]),(0,u.Z)((function(){v.current||r||(v.current=!0,d?d():n.refresh())}),(0,e.__spreadArray)([],(0,e.__read)(l),!1)),{onBefore:function(){if(!a)return{stopNow:!0}}}};o.onInit=function(n){var t=n.ready,r=void 0===t||t;return{loading:!n.manual&&r}};var a=o,c=r(46121),s=r(14694),f=r(54781),l=new Map,d={},v=function(n,t){return d[n]||(d[n]=[]),d[n].push(t),function(){var r=d[n].indexOf(t);d[n].splice(r,1)}},p=function(n,t){var r=t.cacheKey,u=t.cacheTime,o=void 0===u?3e5:u,a=t.staleTime,p=void 0===a?0:a,h=t.setCache,_=t.getCache,m=(0,i.useRef)(),y=(0,i.useRef)(),g=function(n,t){h?h(t):f.K7(n,o,t),function(n,t){d[n]&&d[n].forEach((function(n){return n(t)}))}(n,t.data)},w=function(n,t){return void 0===t&&(t=[]),_?_(t):f.lJ(n)};return(0,c.Z)((function(){if(r){var t=w(r);t&&Object.hasOwnProperty.call(t,"data")&&(n.state.data=t.data,n.state.params=t.params,(-1===p||(new Date).getTime()-t.time<=p)&&(n.state.loading=!1)),m.current=v(r,(function(t){n.setState({data:t})}))}}),[]),(0,s.Z)((function(){var n;null===(n=m.current)||void 0===n||n.call(m)})),r?{onBefore:function(n){var t=w(r,n);return t&&Object.hasOwnProperty.call(t,"data")?-1===p||(new Date).getTime()-t.time<=p?{loading:!1,data:null===t||void 0===t?void 0:t.data,error:void 0,returnNow:!0}:{data:null===t||void 0===t?void 0:t.data,error:void 0}:{}},onRequest:function(n,t){var i=function(n){return l.get(n)}(r);return i&&i!==y.current||(i=n.apply(void 0,(0,e.__spreadArray)([],(0,e.__read)(t),!1)),y.current=i,function(n,t){l.set(n,t),t.then((function(t){return l.delete(n),t})).catch((function(){l.delete(n)}))}(r,i)),{servicePromise:i}},onSuccess:function(t,e){var i;r&&(null===(i=m.current)||void 0===i||i.call(m),g(r,{data:t,params:e,time:(new Date).getTime()}),m.current=v(r,(function(t){n.setState({data:t})})))},onMutate:function(t){var e;r&&(null===(e=m.current)||void 0===e||e.call(m),g(r,{data:t,params:n.state.params,time:(new Date).getTime()}),m.current=v(r,(function(t){n.setState({data:t})})))}}:{}},h=r(17917),_=r.n(h),m=function(n,t){var r=t.debounceWait,u=t.debounceLeading,o=t.debounceTrailing,a=t.debounceMaxWait,c=(0,i.useRef)(),s=(0,i.useMemo)((function(){var n={};return void 0!==u&&(n.leading=u),void 0!==o&&(n.trailing=o),void 0!==a&&(n.maxWait=a),n}),[u,o,a]);return(0,i.useEffect)((function(){if(r){var t=n.runAsync.bind(n);return c.current=_()((function(n){n()}),r,s),n.runAsync=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new Promise((function(r,i){var u;null===(u=c.current)||void 0===u||u.call(c,(function(){t.apply(void 0,(0,e.__spreadArray)([],(0,e.__read)(n),!1)).then(r).catch(i)}))}))},function(){var r;null===(r=c.current)||void 0===r||r.cancel(),n.runAsync=t}}}),[r,s]),r?{onCancel:function(){var n;null===(n=c.current)||void 0===n||n.cancel()}}:{}},y=function(n,t){var r=t.loadingDelay,e=t.ready,u=(0,i.useRef)();if(!r)return{};var o=function(){u.current&&clearTimeout(u.current)};return{onBefore:function(){return o(),!1!==e&&(u.current=setTimeout((function(){n.setState({loading:!0})}),r)),{loading:!1}},onFinally:function(){o()},onCancel:function(){o()}}},g=r(65679);function w(){return!g.Z||"hidden"!==document.visibilityState}var b=[];if(g.Z){window.addEventListener("visibilitychange",(function(){if(w())for(var n=0;n<b.length;n++){(0,b[n])()}}),!1)}var Z=function(n){return b.push(n),function(){var t=b.indexOf(n);b.splice(t,1)}},A=function(n,t){var r=t.pollingInterval,e=t.pollingWhenHidden,o=void 0===e||e,a=t.pollingErrorRetryCount,c=void 0===a?-1:a,s=(0,i.useRef)(),f=(0,i.useRef)(),l=(0,i.useRef)(0),d=function(){var n;s.current&&clearTimeout(s.current),null===(n=f.current)||void 0===n||n.call(f)};return(0,u.Z)((function(){r||d()}),[r]),r?{onBefore:function(){d()},onError:function(){l.current+=1},onSuccess:function(){l.current=0},onFinally:function(){-1===c||-1!==c&&l.current<=c?s.current=setTimeout((function(){o||w()?n.refresh():f.current=Z((function(){n.refresh()}))}),r):l.current=0},onCancel:function(){d()}}:{}};var T=[];if(g.Z){var P=function(){if(w()&&(!g.Z||"undefined"===typeof navigator.onLine||navigator.onLine))for(var n=0;n<T.length;n++){(0,T[n])()}};window.addEventListener("visibilitychange",P,!1),window.addEventListener("focus",P,!1)}var R=function(n){return T.push(n),function(){var t=T.indexOf(n);t>-1&&T.splice(t,1)}},E=function(n,t){var r=t.refreshOnWindowFocus,u=t.focusTimespan,o=void 0===u?5e3:u,a=(0,i.useRef)(),c=function(){var n;null===(n=a.current)||void 0===n||n.call(a)};return(0,i.useEffect)((function(){if(r){var t=function(n,t){var r=!1;return function(){for(var i=[],u=0;u<arguments.length;u++)i[u]=arguments[u];r||(r=!0,n.apply(void 0,(0,e.__spreadArray)([],(0,e.__read)(i),!1)),setTimeout((function(){r=!1}),t))}}(n.refresh.bind(n),o);a.current=R((function(){t()}))}return function(){c()}}),[r,o]),(0,s.Z)((function(){c()})),{}},x=function(n,t){var r=t.retryInterval,e=t.retryCount,u=(0,i.useRef)(),o=(0,i.useRef)(0),a=(0,i.useRef)(!1);return e?{onBefore:function(){a.current||(o.current=0),a.current=!1,u.current&&clearTimeout(u.current)},onSuccess:function(){o.current=0},onError:function(){if(o.current+=1,-1===e||o.current<=e){var t=null!==r&&void 0!==r?r:Math.min(1e3*Math.pow(2,o.current),3e4);u.current=setTimeout((function(){a.current=!0,n.refresh()}),t)}else o.current=0},onCancel:function(){o.current=0,u.current&&clearTimeout(u.current)}}:{}},S=r(22356),j=r.n(S),C=function(n,t){var r=t.throttleWait,u=t.throttleLeading,o=t.throttleTrailing,a=(0,i.useRef)(),c={};return void 0!==u&&(c.leading=u),void 0!==o&&(c.trailing=o),(0,i.useEffect)((function(){if(r){var t=n.runAsync.bind(n);return a.current=j()((function(n){n()}),r,c),n.runAsync=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new Promise((function(r,i){var u;null===(u=a.current)||void 0===u||u.call(a,(function(){t.apply(void 0,(0,e.__spreadArray)([],(0,e.__read)(n),!1)).then(r).catch(i)}))}))},function(){var r;n.runAsync=t,null===(r=a.current)||void 0===r||r.cancel()}}}),[r,u,o]),r?{onCancel:function(){var n;null===(n=a.current)||void 0===n||n.cancel()}}:{}},M=r(11322),O=r(35147),H=r(49476),B=r(53778),D=r(63310),W=r(32681),F=function(){function n(n,t,r,i){void 0===i&&(i={}),this.serviceRef=n,this.options=t,this.subscribe=r,this.initState=i,this.count=0,this.state={loading:!1,params:void 0,data:void 0,error:void 0},this.state=(0,e.__assign)((0,e.__assign)((0,e.__assign)({},this.state),{loading:!t.manual}),i)}return n.prototype.setState=function(n){void 0===n&&(n={}),this.state=(0,e.__assign)((0,e.__assign)({},this.state),n),this.subscribe()},n.prototype.runPluginHandler=function(n){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var i=this.pluginImpls.map((function(r){var i;return null===(i=r[n])||void 0===i?void 0:i.call.apply(i,(0,e.__spreadArray)([r],(0,e.__read)(t),!1))})).filter(Boolean);return Object.assign.apply(Object,(0,e.__spreadArray)([{}],(0,e.__read)(i),!1))},n.prototype.runAsync=function(){for(var n,t,r,i,u,o,a,c,s,f,l=[],d=0;d<arguments.length;d++)l[d]=arguments[d];return(0,e.__awaiter)(this,void 0,void 0,(function(){var d,v,p,h,_,m,y,g,w,b,Z;return(0,e.__generator)(this,(function(A){switch(A.label){case 0:if(this.count+=1,d=this.count,v=this.runPluginHandler("onBefore",l),p=v.stopNow,h=void 0!==p&&p,_=v.returnNow,m=void 0!==_&&_,y=(0,e.__rest)(v,["stopNow","returnNow"]),h)return[2,new Promise((function(){}))];if(this.setState((0,e.__assign)({loading:!0,params:l},y)),m)return[2,Promise.resolve(y.data)];null===(t=(n=this.options).onBefore)||void 0===t||t.call(n,l),A.label=1;case 1:return A.trys.push([1,3,,4]),(g=this.runPluginHandler("onRequest",this.serviceRef.current,l).servicePromise)||(g=(Z=this.serviceRef).current.apply(Z,(0,e.__spreadArray)([],(0,e.__read)(l),!1))),[4,g];case 2:return w=A.sent(),d!==this.count?[2,new Promise((function(){}))]:(this.setState({data:w,error:void 0,loading:!1}),null===(i=(r=this.options).onSuccess)||void 0===i||i.call(r,w,l),this.runPluginHandler("onSuccess",w,l),null===(o=(u=this.options).onFinally)||void 0===o||o.call(u,l,w,void 0),d===this.count&&this.runPluginHandler("onFinally",l,w,void 0),[2,w]);case 3:if(b=A.sent(),d!==this.count)return[2,new Promise((function(){}))];throw this.setState({error:b,loading:!1}),null===(c=(a=this.options).onError)||void 0===c||c.call(a,b,l),this.runPluginHandler("onError",b,l),null===(f=(s=this.options).onFinally)||void 0===f||f.call(s,l,void 0,b),d===this.count&&this.runPluginHandler("onFinally",l,void 0,b),b;case 4:return[2]}}))}))},n.prototype.run=function(){for(var n=this,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this.runAsync.apply(this,(0,e.__spreadArray)([],(0,e.__read)(t),!1)).catch((function(t){n.options.onError||console.error(t)}))},n.prototype.cancel=function(){this.count+=1,this.setState({loading:!1}),this.runPluginHandler("onCancel")},n.prototype.refresh=function(){this.run.apply(this,(0,e.__spreadArray)([],(0,e.__read)(this.state.params||[]),!1))},n.prototype.refreshAsync=function(){return this.runAsync.apply(this,(0,e.__spreadArray)([],(0,e.__read)(this.state.params||[]),!1))},n.prototype.mutate=function(n){var t=(0,W.mf)(n)?n(this.state.data):n;this.runPluginHandler("onMutate",t),this.setState({data:t})},n}(),L=F;var k=function(n,t,r){void 0===t&&(t={}),void 0===r&&(r=[]);var i=t.manual,u=void 0!==i&&i,o=(0,e.__rest)(t,["manual"]);D.Z&&t.defaultParams&&!Array.isArray(t.defaultParams)&&console.warn("expected defaultParams is array, got ".concat(typeof t.defaultParams));var a=(0,e.__assign)({manual:u},o),f=(0,M.Z)(n),l=(0,B.Z)(),d=(0,c.Z)((function(){var n=r.map((function(n){var t;return null===(t=null===n||void 0===n?void 0:n.onInit)||void 0===t?void 0:t.call(n,a)})).filter(Boolean);return new L(f,a,l,Object.assign.apply(Object,(0,e.__spreadArray)([{}],(0,e.__read)(n),!1)))}),[]);return d.options=a,d.pluginImpls=r.map((function(n){return n(d,a)})),(0,H.Z)((function(){if(!u){var n=d.state.params||t.defaultParams||[];d.run.apply(d,(0,e.__spreadArray)([],(0,e.__read)(n),!1))}})),(0,s.Z)((function(){d.cancel()})),{loading:d.state.loading,data:d.state.data,error:d.state.error,params:d.state.params||[],cancel:(0,O.Z)(d.cancel.bind(d)),refresh:(0,O.Z)(d.refresh.bind(d)),refreshAsync:(0,O.Z)(d.refreshAsync.bind(d)),run:(0,O.Z)(d.run.bind(d)),runAsync:(0,O.Z)(d.runAsync.bind(d)),mutate:(0,O.Z)(d.mutate.bind(d))}};var I=function(n,t,r){return k(n,t,(0,e.__spreadArray)((0,e.__spreadArray)([],(0,e.__read)(r||[]),!1),[m,y,A,E,C,a,p,x],!1))}},54781:function(n,t,r){"use strict";r.d(t,{K7:function(){return u},LK:function(){return a},lJ:function(){return o}});var e=r(73930),i=new Map,u=function(n,t,r){var u=i.get(n);(null===u||void 0===u?void 0:u.timer)&&clearTimeout(u.timer);var o=void 0;t>-1&&(o=setTimeout((function(){i.delete(n)}),t)),i.set(n,(0,e.__assign)((0,e.__assign)({},r),{timer:o}))},o=function(n){return i.get(n)},a=function(n){n?(Array.isArray(n)?n:[n]).forEach((function(n){return i.delete(n)})):i.clear()}},14694:function(n,t,r){"use strict";var e=r(30969),i=r(11322),u=r(32681),o=r(63310);t.Z=function(n){o.Z&&((0,u.mf)(n)||console.error("useUnmount expected parameter is a function, got ".concat(typeof n)));var t=(0,i.Z)(n);(0,e.useEffect)((function(){return function(){t.current()}}),[])}},53778:function(n,t,r){"use strict";var e=r(73930),i=r(30969);t.Z=function(){var n=(0,e.__read)((0,i.useState)({}),2)[1];return(0,i.useCallback)((function(){return n({})}),[])}},82200:function(n,t,r){"use strict";var e=r(30969),i=r(11255);t.Z=(0,i.a)(e.useEffect)},73922:function(n,t,r){"use strict";function e(n,t){if(n===t)return!0;for(var r=0;r<n.length;r++)if(!Object.is(n[r],t[r]))return!1;return!0}r.d(t,{Z:function(){return e}})},32681:function(n,t,r){"use strict";r.d(t,{G7:function(){return c},HD:function(){return u},Kn:function(){return e},hj:function(){return a},jn:function(){return o},mf:function(){return i}});var e=function(n){return null!==n&&"object"===typeof n},i=function(n){return"function"===typeof n},u=function(n){return"string"===typeof n},o=function(n){return"boolean"===typeof n},a=function(n){return"number"===typeof n},c=function(n){return"undefined"===typeof n}},65679:function(n,t){"use strict";var r=!("undefined"===typeof window||!window.document||!window.document.createElement);t.Z=r},63310:function(n,t){"use strict";t.Z=!1},17917:function(n,t,r){var e=r(74274),i=r(48257),u=r(24378),o=Math.max,a=Math.min;n.exports=function(n,t,r){var c,s,f,l,d,v,p=0,h=!1,_=!1,m=!0;if("function"!=typeof n)throw new TypeError("Expected a function");function y(t){var r=c,e=s;return c=s=void 0,p=t,l=n.apply(e,r)}function g(n){var r=n-v;return void 0===v||r>=t||r<0||_&&n-p>=f}function w(){var n=i();if(g(n))return b(n);d=setTimeout(w,function(n){var r=t-(n-v);return _?a(r,f-(n-p)):r}(n))}function b(n){return d=void 0,m&&c?y(n):(c=s=void 0,l)}function Z(){var n=i(),r=g(n);if(c=arguments,s=this,v=n,r){if(void 0===d)return function(n){return p=n,d=setTimeout(w,t),h?y(n):l}(v);if(_)return clearTimeout(d),d=setTimeout(w,t),y(v)}return void 0===d&&(d=setTimeout(w,t)),l}return t=u(t)||0,e(r)&&(h=!!r.leading,f=(_="maxWait"in r)?o(u(r.maxWait)||0,t):f,m="trailing"in r?!!r.trailing:m),Z.cancel=function(){void 0!==d&&clearTimeout(d),p=0,c=v=s=d=void 0},Z.flush=function(){return void 0===d?l:b(i())},Z}},48257:function(n,t,r){var e=r(95498);n.exports=function(){return e.Date.now()}},22356:function(n,t,r){var e=r(17917),i=r(74274);n.exports=function(n,t,r){var u=!0,o=!0;if("function"!=typeof n)throw new TypeError("Expected a function");return i(r)&&(u="leading"in r?!!r.leading:u,o="trailing"in r?!!r.trailing:o),e(n,t,{leading:u,maxWait:t,trailing:o})}}}]);
|
|
2
|
+
//# sourceMappingURL=3042.c9fe1ced.chunk.js.map
|