@abtnode/blocklet-services 1.16.20-beta-955a3019 → 1.16.20-beta-ce2cd157

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (161) hide show
  1. package/dist/assets/{Add-69c0fb05.js → Add-84b6722e.js} +1 -1
  2. package/dist/assets/Alert-16e7636e.js +1 -0
  3. package/dist/assets/{ArrowDropDown-f3cb0e27.js → ArrowDropDown-78af0e49.js} +1 -1
  4. package/dist/assets/{Avatar-6e72deed.js → Avatar-17775c72.js} +1 -1
  5. package/dist/assets/{ButtonGroup-417cd258.js → ButtonGroup-d60b4115.js} +1 -1
  6. package/dist/assets/CardContent-01c8be10.js +1 -0
  7. package/dist/assets/{CheckCircle-9162d15d.js → CheckCircle-2038a214.js} +1 -1
  8. package/dist/assets/{Checkbox-0df1c6bb.js → Checkbox-45b03733.js} +1 -1
  9. package/dist/assets/{ChevronRight-d52f2a24.js → ChevronRight-8ddf4718.js} +1 -1
  10. package/dist/assets/{DeleteOutline-fc84a592.js → DeleteOutline-4f0bcc3a.js} +1 -1
  11. package/dist/assets/{DialogContentText-fd847cf2.js → DialogContentText-96fc1178.js} +1 -1
  12. package/dist/assets/{Done-633700d4.js → Done-d51e9c7a.js} +1 -1
  13. package/dist/assets/{Download-53cb5917.js → Download-50806a1f.js} +1 -1
  14. package/dist/assets/{Edit-c20f95a3.js → Edit-53a2fa18.js} +1 -1
  15. package/dist/assets/{EditIcon-ed8572fc.js → EditIcon-b9ccaf18.js} +1 -1
  16. package/dist/assets/{ExpandMore-e85e2c1b.js → ExpandMore-f086ea46.js} +1 -1
  17. package/dist/assets/{FilterList-5f3e7cd7.js → FilterList-71e179cd.js} +1 -1
  18. package/dist/assets/FormControl-52979d3e.js +1 -0
  19. package/dist/assets/{FormControlLabel-36106567.js → FormControlLabel-34324067.js} +1 -1
  20. package/dist/assets/FormGroup-1ec81f9b.js +1 -0
  21. package/dist/assets/{Google-5490be4d.js → Google-e0d11698.js} +1 -1
  22. package/dist/assets/{Grid-92a29bd2.js → Grid-e5fb7b08.js} +1 -1
  23. package/dist/assets/{Hidden-a1b80e9e.js → Hidden-f172586a.js} +1 -1
  24. package/dist/assets/{Icon-e2e45bd0.js → Icon-68e08161.js} +1 -1
  25. package/dist/assets/{InfoOutlined-356afd44.js → InfoOutlined-b9d1b6eb.js} +1 -1
  26. package/dist/assets/{InputAdornment-079855b6.js → InputAdornment-e3fbc66f.js} +1 -1
  27. package/dist/assets/{InputLabel-bed0dcd9.js → InputLabel-fd848232.js} +1 -1
  28. package/dist/assets/{LastPage-acc850e1.js → LastPage-de70da4b.js} +1 -1
  29. package/dist/assets/{Launch-945ebda1.js → Launch-a211bb94.js} +1 -1
  30. package/dist/assets/{LaunchOutlined-4e66073a.js → LaunchOutlined-3e1a558c.js} +1 -1
  31. package/dist/assets/{ListItem-eab030cb.js → ListItem-ef31b537.js} +1 -1
  32. package/dist/assets/{LockIcon-9bf58065.js → LockIcon-21517c98.js} +1 -1
  33. package/dist/assets/{Loop-e5f6bb77.js → Loop-1bf9ebdb.js} +1 -1
  34. package/dist/assets/{MoreVert-33a00c4e.js → MoreVert-5c45d951.js} +2 -2
  35. package/dist/assets/{OpenInNew-bc4e70a9.js → OpenInNew-e6a7cb73.js} +1 -1
  36. package/dist/assets/{PlayArrow-7f80f259.js → PlayArrow-dc0aba19.js} +1 -1
  37. package/dist/assets/{RadioGroup-2eec8d38.js → RadioGroup-778fcd8b.js} +1 -1
  38. package/dist/assets/{Search-6e324278.js → Search-08e53aed.js} +1 -1
  39. package/dist/assets/{Select-2b1bccd7.js → Select-10567c8f.js} +2 -2
  40. package/dist/assets/{ServerLogo-7dcf50f7.js → ServerLogo-f7dfffe6.js} +1 -1
  41. package/dist/assets/{Slider-74a261a1.js → Slider-cfd9a2e0.js} +1 -1
  42. package/dist/assets/{Stepper-8a24987d.js → Stepper-41afc976.js} +1 -1
  43. package/dist/assets/{Switch-67e84446.js → Switch-f9a6ef3c.js} +1 -1
  44. package/dist/assets/{TableRow-7a66e978.js → TableRow-9770164b.js} +2 -2
  45. package/dist/assets/{TextField-96175e73.js → TextField-acf161e8.js} +1 -1
  46. package/dist/assets/{Toolbar-adb08177.js → Toolbar-8cc1e552.js} +1 -1
  47. package/dist/assets/{access-control-444d2b90.js → access-control-17f5b11f.js} +2 -2
  48. package/dist/assets/{actions-13b77828.js → actions-07255a03.js} +1 -1
  49. package/dist/assets/{add-component-core-b3eca6ba.js → add-component-core-4f45c294.js} +25 -25
  50. package/dist/assets/add-resource-eba7b322.js +1 -0
  51. package/dist/assets/{addon-827d09af.js → addon-256c56a1.js} +1 -1
  52. package/dist/assets/{analytics-fa5d4b86.js → analytics-0fb4547c.js} +7 -7
  53. package/dist/assets/api-fbaca85c.js +1 -0
  54. package/dist/assets/{audit-logs-81d51fb4.js → audit-logs-0e0950d1.js} +1 -1
  55. package/dist/assets/{button-04bc9a77.js → button-3e5ea5bb.js} +1 -1
  56. package/dist/assets/{click-to-copy-520fbd72.js → click-to-copy-c2e40d6e.js} +1 -1
  57. package/dist/assets/{complete-91b799dc.js → complete-38ac9c41.js} +1 -1
  58. package/dist/assets/{component-6330236b.js → component-c430694e.js} +1 -1
  59. package/dist/assets/{config-7c96a4e6.js → config-a6b92e0f.js} +2 -2
  60. package/dist/assets/{config-cdc97e9f.js → config-ad1f4eab.js} +1 -1
  61. package/dist/assets/{config-navigation-1d44ee61.js → config-navigation-694981e9.js} +1 -1
  62. package/dist/assets/{confirm-e35699f4.js → confirm-981d6d90.js} +2 -2
  63. package/dist/assets/{connect-b279fe98.js → connect-3b72906e.js} +1 -1
  64. package/dist/assets/{connect-953df3a5.js → connect-6702310b.js} +1 -1
  65. package/dist/assets/{content-layout-fc351aa4.js → content-layout-a64f635c.js} +1 -1
  66. package/dist/assets/{dashboard-bec9ddd7.js → dashboard-e183cc9b.js} +2 -2
  67. package/dist/assets/{did-address-d1922407.js → did-address-46af4fcc.js} +1 -1
  68. package/dist/assets/{did-utils-61a22d82.js → did-utils-b1ac6e12.js} +1 -1
  69. package/dist/assets/{domain-42aecc86.js → domain-fa77885c.js} +1 -1
  70. package/dist/assets/{domain-list-97733620.js → domain-list-ce4e1341.js} +2 -2
  71. package/dist/assets/{exchange-passport-cc02ca61.js → exchange-passport-5f1b7759.js} +1 -1
  72. package/dist/assets/{fallback-2685f1de.js → fallback-f5a9b258.js} +1 -1
  73. package/dist/assets/{format-error-9c154a96.js → format-error-a6c70cf4.js} +1 -1
  74. package/dist/assets/{fuel-a36ea6d2.js → fuel-62b90cc8.js} +1 -1
  75. package/dist/assets/{home-8b258120.js → home-09bb102a.js} +1 -1
  76. package/dist/assets/{iframe-ecb9ab39.js → iframe-555a0ee6.js} +1 -1
  77. package/dist/assets/{index-cd7c729b.js → index-0bb7afb0.js} +8 -8
  78. package/dist/assets/{index-0a15cbf4.js → index-0f9563c1.js} +8 -8
  79. package/dist/assets/{index-14e0e238.js → index-248cfa5b.js} +1 -1
  80. package/dist/assets/{index-4888a390.js → index-27d4dfae.js} +1 -1
  81. package/dist/assets/{index-a8335229.js → index-37eb53ee.js} +1 -1
  82. package/dist/assets/{index-861c92a5.js → index-4098b05b.js} +2 -2
  83. package/dist/assets/{index-3c5cb4c0.js → index-4fad9218.js} +1 -1
  84. package/dist/assets/{index-4f2c3f65.js → index-55683e86.js} +2 -2
  85. package/dist/assets/{index-501e8b9b.js → index-57667951.js} +1 -1
  86. package/dist/assets/{index-b2a236fd.js → index-6a3599a0.js} +1 -1
  87. package/dist/assets/{index-abc04477.js → index-6e35002d.js} +7 -7
  88. package/dist/assets/{index-cdee7880.js → index-704183c7.js} +1 -1
  89. package/dist/assets/{index-969247a1.js → index-706d1847.js} +1 -1
  90. package/dist/assets/{index-be6d2140.js → index-718ac3c1.js} +1 -1
  91. package/dist/assets/{index-6c4c6f2a.js → index-7cc772e6.js} +1 -1
  92. package/dist/assets/{index-0ad477bf.js → index-81fb3fab.js} +1 -1
  93. package/dist/assets/{index-519e9ae7.js → index-8a1d7e7d.js} +1 -1
  94. package/dist/assets/{index-8049dece.js → index-8a40dbb1.js} +4 -4
  95. package/dist/assets/{index-3032db6a.js → index-92a4f00b.js} +3 -3
  96. package/dist/assets/{index-cf0d6f40.js → index-a0ceef02.js} +2 -2
  97. package/dist/assets/{index-2a8c564e.js → index-ab8a61e0.js} +1 -1
  98. package/dist/assets/{index-e12891c5.js → index-b1365dd2.js} +2 -2
  99. package/dist/assets/index-c01d7dd0.js +1 -0
  100. package/dist/assets/{index-5cf135cd.js → index-cfff963d.js} +1 -1
  101. package/dist/assets/{index-99e98e9f.js → index-d45f9876.js} +2 -2
  102. package/dist/assets/{index-7d915162.js → index-d48dd19f.js} +1 -1
  103. package/dist/assets/{index-7440d7e4.js → index-d505a041.js} +1 -1
  104. package/dist/assets/{index-32923761.js → index-f6d27da4.js} +1 -1
  105. package/dist/assets/{index.es-16657183.js → index.es-7cbc1759.js} +3 -3
  106. package/dist/assets/{index.esm-ba6b97d8.js → index.esm-00dc5fd7.js} +1 -1
  107. package/dist/assets/{invite-63024a8d.js → invite-5c16eb24.js} +1 -1
  108. package/dist/assets/{issue-passport-e2aca825.js → issue-passport-cde74ff0.js} +1 -1
  109. package/dist/assets/{jss-plugin-props-sort.esm-c869dd35.js → jss-plugin-props-sort.esm-dedb84ec.js} +4 -4
  110. package/dist/assets/{launch-result-message-0e3fdbf5.js → launch-result-message-d01197dd.js} +1 -1
  111. package/dist/assets/{layout-5cbf6646.js → layout-45809ece.js} +1 -1
  112. package/dist/assets/{list-header-cec13a4e.js → list-header-89cc90d4.js} +1 -1
  113. package/dist/assets/localization-ce967c7f.js +1 -0
  114. package/dist/assets/{log-b5e5199b.js → log-05466db9.js} +1 -1
  115. package/dist/assets/{login-199b44b5.js → login-cda3baec.js} +1 -1
  116. package/dist/assets/{logo-uploader-4a745e7d.js → logo-uploader-10082f85.js} +2 -2
  117. package/dist/assets/{lost-passport-6469c97d.js → lost-passport-e5fed8d2.js} +2 -2
  118. package/dist/assets/{lottie-4e5746c3.js → lottie-d4eaf15c.js} +1 -1
  119. package/dist/assets/{memoize-one.esm-e9515b35.js → memoize-one.esm-6e5f1652.js} +1 -1
  120. package/dist/assets/{nav-menu-97f51cf7.js → nav-menu-2f982d2d.js} +2 -2
  121. package/dist/assets/overview-4933fac6.js +12 -0
  122. package/dist/assets/{page-header-5c0a2996.js → page-header-10d661e8.js} +1 -1
  123. package/dist/assets/{permission-3cecede7.js → permission-e7ccdf54.js} +1 -1
  124. package/dist/assets/{preferences-74bee92a.js → preferences-c7a3408c.js} +1 -1
  125. package/dist/assets/publish-resource-3b965945.js +1 -0
  126. package/dist/assets/{react-1fe1a041.js → react-910d946c.js} +2 -2
  127. package/dist/assets/{selector-61f9cecf.js → selector-21f92ef6.js} +3 -3
  128. package/dist/assets/session-71a0a77b.js +1 -0
  129. package/dist/assets/{setup-83ada533.js → setup-91e9f7fa.js} +2 -2
  130. package/dist/assets/{slicedToArray-f18ab518.js → slicedToArray-bcd8e29d.js} +2 -2
  131. package/dist/assets/{spaces-5248a943.js → spaces-63c0fed0.js} +1 -1
  132. package/dist/assets/{start-be4c6d35.js → start-332a597b.js} +1 -1
  133. package/dist/assets/{step-actions-248b0a6b.js → step-actions-c8bb974a.js} +1 -1
  134. package/dist/assets/{studio-aa91be60.js → studio-9444dc92.js} +1 -1
  135. package/dist/assets/{switch-control-cf05f02f.js → switch-control-29fa5dd7.js} +1 -1
  136. package/dist/assets/{transfer-e388b82d.js → transfer-59a3344a.js} +1 -1
  137. package/dist/assets/{uniqBy-cc013d52.js → uniqBy-1e1a09e5.js} +1 -1
  138. package/dist/assets/{use-blocklet-info-for-connect-did-spaces-9e45dd7c.js → use-blocklet-info-for-connect-did-spaces-b24f9423.js} +1 -1
  139. package/dist/assets/{useAsync-a7d3bc2b.js → useAsync-7065d988.js} +1 -1
  140. package/dist/assets/{useAsyncRetry-b5b314a6.js → useAsyncRetry-484c5026.js} +1 -1
  141. package/dist/assets/{useFormControl-9ab318bf.js → useFormControl-82f55ef3.js} +1 -1
  142. package/dist/assets/{useLocalStorage-a92ccca3.js → useLocalStorage-2fc05dac.js} +1 -1
  143. package/dist/assets/{useSetState-aaef0d6e.js → useSetState-b9603539.js} +1 -1
  144. package/dist/assets/{user-375fb9e6.js → user-3bf3a05d.js} +2 -2
  145. package/dist/assets/{util-b9e43cfc.js → util-7ae3bd07.js} +1 -1
  146. package/dist/assets/{wallet-hidden-topbar-a5a307e1.js → wallet-hidden-topbar-02185498.js} +2 -2
  147. package/dist/assets/wrap-locale-0579c927.js +1 -0
  148. package/dist/index.html +1 -1
  149. package/package.json +18 -18
  150. package/dist/assets/Alert-02ca435f.js +0 -1
  151. package/dist/assets/CardContent-4ed9bfeb.js +0 -1
  152. package/dist/assets/FormControl-4663fc39.js +0 -1
  153. package/dist/assets/FormGroup-73c85d30.js +0 -1
  154. package/dist/assets/add-resource-e9ef4c9e.js +0 -1
  155. package/dist/assets/api-e3a99650.js +0 -1
  156. package/dist/assets/index-0b9a893b.js +0 -1
  157. package/dist/assets/localization-905a5214.js +0 -1
  158. package/dist/assets/overview-9b2aa4f5.js +0 -12
  159. package/dist/assets/publish-resource-619180c8.js +0 -1
  160. package/dist/assets/session-f5eb6919.js +0 -1
  161. package/dist/assets/wrap-locale-eb857a5c.js +0 -1
@@ -1,4 +1,4 @@
1
- var ne=Object.defineProperty;var oe=(t,e,n)=>e in t?ne(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var R=(t,e,n)=>(oe(t,typeof e!="symbol"?e+"":e,n),n);import{P as f,r as Z,b8 as re,u as se,j as F,at as ie,_ as ce,M as ae}from"./index-3032db6a.js";import{L as ue}from"./selector-61f9cecf.js";/**
1
+ var ne=Object.defineProperty;var oe=(t,e,n)=>e in t?ne(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var R=(t,e,n)=>(oe(t,typeof e!="symbol"?e+"":e,n),n);import{P as f,r as Z,bb as re,u as se,j as F,aw as ie,_ as ce,M as ae}from"./index-92a4f00b.js";import{L as ue}from"./selector-21f92ef6.js";/**
2
2
  * (c) Iconify
3
3
  *
4
4
  * For the full copyright and license information, please view the license.txt
@@ -8,4 +8,4 @@ var ne=Object.defineProperty;var oe=(t,e,n)=>e in t?ne(t,e,{enumerable:!0,config
8
8
  *
9
9
  * @license MIT
10
10
  * @version 1.0.8
11
- */const Et=Object.freeze({left:0,top:0,width:16,height:16}),Q=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),L=Object.freeze({...Et,...Q}),K=Object.freeze({...L,body:"",hidden:!1}),le=Object.freeze({width:null,height:null}),Lt=Object.freeze({...le,...Q});function fe(t,e=0){const n=t.replace(/^-?[0-9.]*/,"");function r(o){for(;o<0;)o+=4;return o%4}if(n===""){const o=parseInt(t);return isNaN(o)?0:r(o)}else if(n!==t){let o=0;switch(n){case"%":o=25;break;case"deg":o=90}if(o){let s=parseFloat(t.slice(0,t.length-n.length));return isNaN(s)?0:(s=s/o,s%1===0?r(s):0)}}return e}const de=/[\s,]+/;function he(t,e){e.split(de).forEach(n=>{switch(n.trim()){case"horizontal":t.hFlip=!0;break;case"vertical":t.vFlip=!0;break}})}const Mt={...Lt,preserveAspectRatio:""};function ht(t){const e={...Mt},n=(r,o)=>t.getAttribute(r)||o;return e.width=n("width",null),e.height=n("height",null),e.rotate=fe(n("rotate","")),he(e,n("flip","")),e.preserveAspectRatio=n("preserveAspectRatio",n("preserveaspectratio","")),e}function pe(t,e){for(const n in Mt)if(t[n]!==e[n])return!0;return!1}const k=/^[a-z0-9]+(-[a-z0-9]+)*$/,M=(t,e,n,r="")=>{const o=t.split(":");if(t.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;r=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const a=o.pop(),c=o.pop(),u={provider:o.length>0?o[0]:r,prefix:c,name:a};return e&&!z(u)?null:u}const s=o[0],i=s.split("-");if(i.length>1){const a={provider:r,prefix:i.shift(),name:i.join("-")};return e&&!z(a)?null:a}if(n&&r===""){const a={provider:r,prefix:"",name:s};return e&&!z(a,n)?null:a}return null},z=(t,e)=>t?!!((t.provider===""||t.provider.match(k))&&(e&&t.prefix===""||t.prefix.match(k))&&t.name.match(k)):!1;function ge(t,e){const n={};!t.hFlip!=!e.hFlip&&(n.hFlip=!0),!t.vFlip!=!e.vFlip&&(n.vFlip=!0);const r=((t.rotate||0)+(e.rotate||0))%4;return r&&(n.rotate=r),n}function pt(t,e){const n=ge(t,e);for(const r in K)r in Q?r in t&&!(r in n)&&(n[r]=Q[r]):r in e?n[r]=e[r]:r in t&&(n[r]=t[r]);return n}function me(t,e){const n=t.icons,r=t.aliases||Object.create(null),o=Object.create(null);function s(i){if(n[i])return o[i]=[];if(!(i in o)){o[i]=null;const a=r[i]&&r[i].parent,c=a&&s(a);c&&(o[i]=[a].concat(c))}return o[i]}return(e||Object.keys(n).concat(Object.keys(r))).forEach(s),o}function ye(t,e,n){const r=t.icons,o=t.aliases||Object.create(null);let s={};function i(a){s=pt(r[a]||o[a],s)}return i(e),n.forEach(i),pt(t,s)}function Nt(t,e){const n=[];if(typeof t!="object"||typeof t.icons!="object")return n;t.not_found instanceof Array&&t.not_found.forEach(o=>{e(o,null),n.push(o)});const r=me(t);for(const o in r){const s=r[o];s&&(e(o,ye(t,o,s)),n.push(o))}return n}const be={provider:"",aliases:{},not_found:{},...Et};function G(t,e){for(const n in e)if(n in t&&typeof t[n]!=typeof e[n])return!1;return!0}function Rt(t){if(typeof t!="object"||t===null)return null;const e=t;if(typeof e.prefix!="string"||!t.icons||typeof t.icons!="object"||!G(t,be))return null;const n=e.icons;for(const o in n){const s=n[o];if(!o.match(k)||typeof s.body!="string"||!G(s,K))return null}const r=e.aliases||Object.create(null);for(const o in r){const s=r[o],i=s.parent;if(!o.match(k)||typeof i!="string"||!n[i]&&!r[i]||!G(s,K))return null}return e}const $=Object.create(null);function we(t,e){return{provider:t,prefix:e,icons:Object.create(null),missing:new Set}}function S(t,e){const n=$[t]||($[t]=Object.create(null));return n[e]||(n[e]=we(t,e))}function ct(t,e){return Rt(e)?Nt(e,(n,r)=>{r?t.icons[n]=r:t.missing.add(n)}):[]}function Ie(t,e,n){try{if(typeof n.body=="string")return t.icons[e]={...n},!0}catch{}return!1}function xe(t,e){let n=[];return(typeof t=="string"?[t]:Object.keys($)).forEach(o=>{(typeof o=="string"&&typeof e=="string"?[e]:Object.keys($[o]||{})).forEach(i=>{const a=S(o,i);n=n.concat(Object.keys(a.icons).map(c=>(o!==""?"@"+o+":":"")+i+":"+c))})}),n}let _=!1;function Ft(t){return typeof t=="boolean"&&(_=t),_}function O(t){const e=typeof t=="string"?M(t,!0,_):t;if(e){const n=S(e.provider,e.prefix),r=e.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function Dt(t,e){const n=M(t,!0,_);if(!n)return!1;const r=S(n.provider,n.prefix);return Ie(r,n.name,e)}function gt(t,e){if(typeof t!="object")return!1;if(typeof e!="string"&&(e=t.provider||""),_&&!e&&!t.prefix){let o=!1;return Rt(t)&&(t.prefix="",Nt(t,(s,i)=>{i&&Dt(s,i)&&(o=!0)})),o}const n=t.prefix;if(!z({provider:e,prefix:n,name:"a"}))return!1;const r=S(e,n);return!!ct(r,t)}function Se(t){return!!O(t)}function Ce(t){const e=O(t);return e?{...L,...e}:null}function Ae(t){const e={loaded:[],missing:[],pending:[]},n=Object.create(null);t.sort((o,s)=>o.provider!==s.provider?o.provider.localeCompare(s.provider):o.prefix!==s.prefix?o.prefix.localeCompare(s.prefix):o.name.localeCompare(s.name));let r={provider:"",prefix:"",name:""};return t.forEach(o=>{if(r.name===o.name&&r.prefix===o.prefix&&r.provider===o.provider)return;r=o;const s=o.provider,i=o.prefix,a=o.name,c=n[s]||(n[s]=Object.create(null)),u=c[i]||(c[i]=S(s,i));let l;a in u.icons?l=e.loaded:i===""||u.missing.has(a)?l=e.missing:l=e.pending;const d={provider:s,prefix:i,name:a};l.push(d)}),e}function zt(t,e){t.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(o=>o.id!==e))})}function ve(t){t.pendingCallbacksFlag||(t.pendingCallbacksFlag=!0,setTimeout(()=>{t.pendingCallbacksFlag=!1;const e=t.loaderCallbacks?t.loaderCallbacks.slice(0):[];if(!e.length)return;let n=!1;const r=t.provider,o=t.prefix;e.forEach(s=>{const i=s.icons,a=i.pending.length;i.pending=i.pending.filter(c=>{if(c.prefix!==o)return!0;const u=c.name;if(t.icons[u])i.loaded.push({provider:r,prefix:o,name:u});else if(t.missing.has(u))i.missing.push({provider:r,prefix:o,name:u});else return n=!0,!0;return!1}),i.pending.length!==a&&(n||zt([t],s.id),s.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),s.abort))})}))}let Pe=0;function Te(t,e,n){const r=Pe++,o=zt.bind(null,n,r);if(!e.pending.length)return o;const s={id:r,icons:e,callback:t,abort:o};return n.forEach(i=>{(i.loaderCallbacks||(i.loaderCallbacks=[])).push(s)}),o}const tt=Object.create(null);function mt(t,e){tt[t]=e}function et(t){return tt[t]||tt[""]}function ke(t,e=!0,n=!1){const r=[];return t.forEach(o=>{const s=typeof o=="string"?M(o,e,n):o;s&&r.push(s)}),r}var je={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function _e(t,e,n,r){const o=t.resources.length,s=t.random?Math.floor(Math.random()*o):t.index;let i;if(t.random){let p=t.resources.slice(0);for(i=[];p.length>1;){const I=Math.floor(Math.random()*p.length);i.push(p[I]),p=p.slice(0,I).concat(p.slice(I+1))}i=i.concat(p)}else i=t.resources.slice(s).concat(t.resources.slice(0,s));const a=Date.now();let c="pending",u=0,l,d=null,h=[],m=[];typeof r=="function"&&m.push(r);function y(){d&&(clearTimeout(d),d=null)}function b(){c==="pending"&&(c="aborted"),y(),h.forEach(p=>{p.status==="pending"&&(p.status="aborted")}),h=[]}function x(p,I){I&&(m=[]),typeof p=="function"&&m.push(p)}function C(){return{startTime:a,payload:e,status:c,queriesSent:u,queriesPending:h.length,subscribe:x,abort:b}}function w(){c="failed",m.forEach(p=>{p(void 0,l)})}function g(){h.forEach(p=>{p.status==="pending"&&(p.status="aborted")}),h=[]}function ee(p,I,P){const N=I!=="success";switch(h=h.filter(A=>A!==p),c){case"pending":break;case"failed":if(N||!t.dataAfterTimeout)return;break;default:return}if(I==="abort"){l=P,w();return}if(N){l=P,h.length||(i.length?W():w());return}if(y(),g(),!t.random){const A=t.resources.indexOf(p.resource);A!==-1&&A!==t.index&&(t.index=A)}c="completed",m.forEach(A=>{A(P)})}function W(){if(c!=="pending")return;y();const p=i.shift();if(p===void 0){if(h.length){d=setTimeout(()=>{y(),c==="pending"&&(g(),w())},t.timeout);return}w();return}const I={status:"pending",resource:p,callback:(P,N)=>{ee(I,P,N)}};h.push(I),u++,d=setTimeout(W,t.rotate),n(p,e,I.callback)}return setTimeout(W),C}function Ht(t){const e={...je,...t};let n=[];function r(){n=n.filter(a=>a().status==="pending")}function o(a,c,u){const l=_e(e,a,c,(d,h)=>{r(),u&&u(d,h)});return n.push(l),l}function s(a){return n.find(c=>a(c))||null}return{query:o,find:s,setIndex:a=>{e.index=a},getIndex:()=>e.index,cleanup:r}}function at(t){let e;if(typeof t.resources=="string")e=[t.resources];else if(e=t.resources,!(e instanceof Array)||!e.length)return null;return{resources:e,path:t.path||"/",maxURL:t.maxURL||500,rotate:t.rotate||750,timeout:t.timeout||5e3,random:t.random===!0,index:t.index||0,dataAfterTimeout:t.dataAfterTimeout!==!1}}const q=Object.create(null),T=["https://api.simplesvg.com","https://api.unisvg.com"],H=[];for(;T.length>0;)T.length===1||Math.random()>.5?H.push(T.shift()):H.push(T.pop());q[""]=at({resources:["https://api.iconify.design"].concat(H)});function yt(t,e){const n=at(e);return n===null?!1:(q[t]=n,!0)}function V(t){return q[t]}function Oe(){return Object.keys(q)}function bt(){}const J=Object.create(null);function Ee(t){if(!J[t]){const e=V(t);if(!e)return;const n=Ht(e),r={config:e,redundancy:n};J[t]=r}return J[t]}function Qt(t,e,n){let r,o;if(typeof t=="string"){const s=et(t);if(!s)return n(void 0,424),bt;o=s.send;const i=Ee(t);i&&(r=i.redundancy)}else{const s=at(t);if(s){r=Ht(s);const i=t.resources?t.resources[0]:"",a=et(i);a&&(o=a.send)}}return!r||!o?(n(void 0,424),bt):r.query(e,o,n)().abort}const wt="iconify2",E="iconify",$t=E+"-count",It=E+"-version",Ut=36e5,Le=168;function nt(t,e){try{return t.getItem(e)}catch{}}function ut(t,e,n){try{return t.setItem(e,n),!0}catch{}}function xt(t,e){try{t.removeItem(e)}catch{}}function ot(t,e){return ut(t,$t,e.toString())}function rt(t){return parseInt(nt(t,$t))||0}const v={local:!0,session:!0},qt={local:new Set,session:new Set};let lt=!1;function Me(t){lt=t}let D=typeof window>"u"?{}:window;function Vt(t){const e=t+"Storage";try{if(D&&D[e]&&typeof D[e].length=="number")return D[e]}catch{}v[t]=!1}function Bt(t,e){const n=Vt(t);if(!n)return;const r=nt(n,It);if(r!==wt){if(r){const a=rt(n);for(let c=0;c<a;c++)xt(n,E+c.toString())}ut(n,It,wt),ot(n,0);return}const o=Math.floor(Date.now()/Ut)-Le,s=a=>{const c=E+a.toString(),u=nt(n,c);if(typeof u=="string"){try{const l=JSON.parse(u);if(typeof l=="object"&&typeof l.cached=="number"&&l.cached>o&&typeof l.provider=="string"&&typeof l.data=="object"&&typeof l.data.prefix=="string"&&e(l,a))return!0}catch{}xt(n,c)}};let i=rt(n);for(let a=i-1;a>=0;a--)s(a)||(a===i-1?(i--,ot(n,i)):qt[t].add(a))}function Wt(){if(!lt){Me(!0);for(const t in v)Bt(t,e=>{const n=e.data,r=e.provider,o=n.prefix,s=S(r,o);if(!ct(s,n).length)return!1;const i=n.lastModified||-1;return s.lastModifiedCached=s.lastModifiedCached?Math.min(s.lastModifiedCached,i):i,!0})}}function Ne(t,e){const n=t.lastModifiedCached;if(n&&n>=e)return n===e;if(t.lastModifiedCached=e,n)for(const r in v)Bt(r,o=>{const s=o.data;return o.provider!==t.provider||s.prefix!==t.prefix||s.lastModified===e});return!0}function Re(t,e){lt||Wt();function n(r){let o;if(!v[r]||!(o=Vt(r)))return;const s=qt[r];let i;if(s.size)s.delete(i=Array.from(s).shift());else if(i=rt(o),!ot(o,i+1))return;const a={cached:Math.floor(Date.now()/Ut),provider:t.provider,data:e};return ut(o,E+i.toString(),JSON.stringify(a))}e.lastModified&&!Ne(t,e.lastModified)||Object.keys(e.icons).length&&(e.not_found&&(e=Object.assign({},e),delete e.not_found),n("local")||n("session"))}function St(){}function Fe(t){t.iconsLoaderFlag||(t.iconsLoaderFlag=!0,setTimeout(()=>{t.iconsLoaderFlag=!1,ve(t)}))}function De(t,e){t.iconsToLoad?t.iconsToLoad=t.iconsToLoad.concat(e).sort():t.iconsToLoad=e,t.iconsQueueFlag||(t.iconsQueueFlag=!0,setTimeout(()=>{t.iconsQueueFlag=!1;const{provider:n,prefix:r}=t,o=t.iconsToLoad;delete t.iconsToLoad;let s;if(!o||!(s=et(n)))return;s.prepare(n,r,o).forEach(a=>{Qt(n,a,c=>{if(typeof c!="object")a.icons.forEach(u=>{t.missing.add(u)});else try{const u=ct(t,c);if(!u.length)return;const l=t.pendingIcons;l&&u.forEach(d=>{l.delete(d)}),Re(t,c)}catch(u){console.error(u)}Fe(t)})})}))}const ft=(t,e)=>{const n=ke(t,!0,Ft()),r=Ae(n);if(!r.pending.length){let c=!0;return e&&setTimeout(()=>{c&&e(r.loaded,r.missing,r.pending,St)}),()=>{c=!1}}const o=Object.create(null),s=[];let i,a;return r.pending.forEach(c=>{const{provider:u,prefix:l}=c;if(l===a&&u===i)return;i=u,a=l,s.push(S(u,l));const d=o[u]||(o[u]=Object.create(null));d[l]||(d[l]=[])}),r.pending.forEach(c=>{const{provider:u,prefix:l,name:d}=c,h=S(u,l),m=h.pendingIcons||(h.pendingIcons=new Set);m.has(d)||(m.add(d),o[u][l].push(d))}),s.forEach(c=>{const{provider:u,prefix:l}=c;o[u][l].length&&De(c,o[u][l])}),e?Te(e,r,s):St},ze=t=>new Promise((e,n)=>{const r=typeof t=="string"?M(t,!0):t;if(!r){n(t);return}ft([r||t],o=>{if(o.length&&r){const s=O(r);if(s){e({...L,...s});return}}n(t)})});function He(t){try{const e=typeof t=="string"?JSON.parse(t):t;if(typeof e.body=="string")return{...e}}catch{}}function Qe(t,e){const n=typeof t=="string"?M(t,!0,!0):null;if(!n){const s=He(t);return{value:t,data:s}}const r=O(n);if(r!==void 0||!n.prefix)return{value:t,name:n,data:r};const o=ft([n],()=>e(t,n,O(n)));return{value:t,name:n,loading:o}}function X(t){return t.hasAttribute("inline")}let Gt=!1;try{Gt=navigator.vendor.indexOf("Apple")===0}catch{}function $e(t,e){switch(e){case"svg":case"bg":case"mask":return e}return e!=="style"&&(Gt||t.indexOf("<a")===-1)?"svg":t.indexOf("currentColor")===-1?"bg":"mask"}const Ue=/(-?[0-9.]*[0-9]+[0-9.]*)/g,qe=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function st(t,e,n){if(e===1)return t;if(n=n||100,typeof t=="number")return Math.ceil(t*e*n)/n;if(typeof t!="string")return t;const r=t.split(Ue);if(r===null||!r.length)return t;const o=[];let s=r.shift(),i=qe.test(s);for(;;){if(i){const a=parseFloat(s);isNaN(a)?o.push(s):o.push(Math.ceil(a*e*n)/n)}else o.push(s);if(s=r.shift(),s===void 0)return o.join("");i=!i}}const Ve=t=>t==="unset"||t==="undefined"||t==="none";function Jt(t,e){const n={...L,...t},r={...Lt,...e},o={left:n.left,top:n.top,width:n.width,height:n.height};let s=n.body;[n,r].forEach(y=>{const b=[],x=y.hFlip,C=y.vFlip;let w=y.rotate;x?C?w+=2:(b.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),b.push("scale(-1 1)"),o.top=o.left=0):C&&(b.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),b.push("scale(1 -1)"),o.top=o.left=0);let g;switch(w<0&&(w-=Math.floor(w/4)*4),w=w%4,w){case 1:g=o.height/2+o.top,b.unshift("rotate(90 "+g.toString()+" "+g.toString()+")");break;case 2:b.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:g=o.width/2+o.left,b.unshift("rotate(-90 "+g.toString()+" "+g.toString()+")");break}w%2===1&&(o.left!==o.top&&(g=o.left,o.left=o.top,o.top=g),o.width!==o.height&&(g=o.width,o.width=o.height,o.height=g)),b.length&&(s='<g transform="'+b.join(" ")+'">'+s+"</g>")});const i=r.width,a=r.height,c=o.width,u=o.height;let l,d;i===null?(d=a===null?"1em":a==="auto"?u:a,l=st(d,c/u)):(l=i==="auto"?c:i,d=a===null?st(l,u/c):a==="auto"?u:a);const h={},m=(y,b)=>{Ve(b)||(h[y]=b.toString())};return m("width",l),m("height",d),h.viewBox=o.left.toString()+" "+o.top.toString()+" "+c.toString()+" "+u.toString(),{attributes:h,body:s}}const Be=()=>{let t;try{if(t=fetch,typeof t=="function")return t}catch{}};let U=Be();function We(t){U=t}function Ge(){return U}function Je(t,e){const n=V(t);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let o=0;n.resources.forEach(i=>{o=Math.max(o,i.length)});const s=e+".json?icons=";r=n.maxURL-o-n.path.length-s.length}return r}function Xe(t){return t===404}const Ye=(t,e,n)=>{const r=[],o=Je(t,e),s="icons";let i={type:s,provider:t,prefix:e,icons:[]},a=0;return n.forEach((c,u)=>{a+=c.length+1,a>=o&&u>0&&(r.push(i),i={type:s,provider:t,prefix:e,icons:[]},a=c.length),i.icons.push(c)}),r.push(i),r};function Ze(t){if(typeof t=="string"){const e=V(t);if(e)return e.path}return"/"}const Ke=(t,e,n)=>{if(!U){n("abort",424);return}let r=Ze(e.provider);switch(e.type){case"icons":{const s=e.prefix,a=e.icons.join(","),c=new URLSearchParams({icons:a});r+=s+".json?"+c.toString();break}case"custom":{const s=e.uri;r+=s.slice(0,1)==="/"?s.slice(1):s;break}default:n("abort",400);return}let o=503;U(t+r).then(s=>{const i=s.status;if(i!==200){setTimeout(()=>{n(Xe(i)?"abort":"next",i)});return}return o=501,s.json()}).then(s=>{if(typeof s!="object"||s===null){setTimeout(()=>{s===404?n("abort",s):n("next",o)});return}setTimeout(()=>{n("success",s)})}).catch(()=>{n("next",o)})},tn={prepare:Ye,send:Ke};function Ct(t,e){switch(t){case"local":case"session":v[t]=e;break;case"all":for(const n in v)v[n]=e;break}}const Y="data-style";let Xt="";function en(t){Xt=t}function At(t,e){let n=Array.from(t.childNodes).find(r=>r.hasAttribute&&r.hasAttribute(Y));n||(n=document.createElement("style"),n.setAttribute(Y,Y),t.appendChild(n)),n.textContent=":host{display:inline-block;vertical-align:"+(e?"-0.125em":"0")+"}span,svg{display:block}"+Xt}function Yt(){mt("",tn),Ft(!0);let t;try{t=window}catch{}if(t){if(Wt(),t.IconifyPreload!==void 0){const n=t.IconifyPreload,r="Invalid IconifyPreload syntax.";typeof n=="object"&&n!==null&&(n instanceof Array?n:[n]).forEach(o=>{try{(typeof o!="object"||o===null||o instanceof Array||typeof o.icons!="object"||typeof o.prefix!="string"||!gt(o))&&console.error(r)}catch{console.error(r)}})}if(t.IconifyProviders!==void 0){const n=t.IconifyProviders;if(typeof n=="object"&&n!==null)for(const r in n){const o="IconifyProviders["+r+"] is invalid.";try{const s=n[r];if(typeof s!="object"||!s||s.resources===void 0)continue;yt(r,s)||console.error(o)}catch{console.error(o)}}}}return{enableCache:n=>Ct(n,!0),disableCache:n=>Ct(n,!1),iconExists:Se,getIcon:Ce,listIcons:xe,addIcon:Dt,addCollection:gt,calculateSize:st,buildIcon:Jt,loadIcons:ft,loadIcon:ze,addAPIProvider:yt,appendCustomStyle:en,_api:{getAPIConfig:V,setAPIModule:mt,sendAPIQuery:Qt,setFetch:We,getFetch:Ge,listAPIProviders:Oe}}}function Zt(t,e){let n=t.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in e)n+=" "+r+'="'+e[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+t+"</svg>"}function nn(t){return t.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function on(t){return"data:image/svg+xml,"+nn(t)}function rn(t){return'url("'+on(t)+'")'}const it={"background-color":"currentColor"},Kt={"background-color":"transparent"},vt={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},Pt={"-webkit-mask":it,mask:it,background:Kt};for(const t in Pt){const e=Pt[t];for(const n in vt)e[t+"-"+n]=vt[n]}function Tt(t){return t?t+(t.match(/^[-0-9.]+$/)?"px":""):"inherit"}function sn(t,e,n){const r=document.createElement("span");let o=t.body;o.indexOf("<a")!==-1&&(o+="<!-- "+Date.now()+" -->");const s=t.attributes,i=Zt(o,{...s,width:e.width+"",height:e.height+""}),a=rn(i),c=r.style,u={"--svg":a,width:Tt(s.width),height:Tt(s.height),...n?it:Kt};for(const l in u)c.setProperty(l,u[l]);return r}let j;function cn(){try{j=window.trustedTypes.createPolicy("iconify",{createHTML:t=>t})}catch{j=null}}function an(t){return j===void 0&&cn(),j?j.createHTML(t):t}function un(t){const e=document.createElement("span"),n=t.attributes;let r="";n.width||(r="width: inherit;"),n.height||(r+="height: inherit;"),r&&(n.style=r);const o=Zt(t.body,n);return e.innerHTML=an(o),e.firstChild}function kt(t,e){const n=e.icon.data,r=e.customisations,o=Jt(n,r);r.preserveAspectRatio&&(o.attributes.preserveAspectRatio=r.preserveAspectRatio);const s=e.renderedMode;let i;switch(s){case"svg":i=un(o);break;default:i=sn(o,{...L,...n},s==="mask")}const a=Array.from(t.childNodes).find(c=>{const u=c.tagName&&c.tagName.toUpperCase();return u==="SPAN"||u==="SVG"});a?i.tagName==="SPAN"&&a.tagName===i.tagName?a.setAttribute("style",i.getAttribute("style")):t.replaceChild(i,a):t.appendChild(i)}function jt(t,e,n){const r=n&&(n.rendered?n:n.lastRender);return{rendered:!1,inline:e,icon:t,lastRender:r}}function ln(t="iconify-icon"){let e,n;try{e=window.customElements,n=window.HTMLElement}catch{return}if(!e||!n)return;const r=e.get(t);if(r)return r;const o=["icon","mode","inline","width","height","rotate","flip"],s=class extends n{constructor(){super();R(this,"_shadowRoot");R(this,"_state");R(this,"_checkQueued",!1);const c=this._shadowRoot=this.attachShadow({mode:"open"}),u=X(this);At(c,u),this._state=jt({value:""},u),this._queueCheck()}static get observedAttributes(){return o.slice(0)}attributeChangedCallback(c){if(c==="inline"){const u=X(this),l=this._state;u!==l.inline&&(l.inline=u,At(this._shadowRoot,u))}else this._queueCheck()}get icon(){const c=this.getAttribute("icon");if(c&&c.slice(0,1)==="{")try{return JSON.parse(c)}catch{}return c}set icon(c){typeof c=="object"&&(c=JSON.stringify(c)),this.setAttribute("icon",c)}get inline(){return X(this)}set inline(c){c?this.setAttribute("inline","true"):this.removeAttribute("inline")}restartAnimation(){const c=this._state;if(c.rendered){const u=this._shadowRoot;if(c.renderedMode==="svg")try{u.lastChild.setCurrentTime(0);return}catch{}kt(u,c)}}get status(){const c=this._state;return c.rendered?"rendered":c.icon.data===null?"failed":"loading"}_queueCheck(){this._checkQueued||(this._checkQueued=!0,setTimeout(()=>{this._check()}))}_check(){if(!this._checkQueued)return;this._checkQueued=!1;const c=this._state,u=this.getAttribute("icon");if(u!==c.icon.value){this._iconChanged(u);return}if(!c.rendered)return;const l=this.getAttribute("mode"),d=ht(this);(c.attrMode!==l||pe(c.customisations,d))&&this._renderIcon(c.icon,d,l)}_iconChanged(c){const u=Qe(c,(l,d,h)=>{const m=this._state;if(m.rendered||this.getAttribute("icon")!==l)return;const y={value:l,name:d,data:h};y.data?this._gotIconData(y):m.icon=y});u.data?this._gotIconData(u):this._state=jt(u,this._state.inline,this._state)}_gotIconData(c){this._checkQueued=!1,this._renderIcon(c,ht(this),this.getAttribute("mode"))}_renderIcon(c,u,l){const d=$e(c.data.body,l),h=this._state.inline;kt(this._shadowRoot,this._state={rendered:!0,icon:c,inline:h,customisations:u,attrMode:l,renderedMode:d})}};o.forEach(a=>{a in s.prototype||Object.defineProperty(s.prototype,a,{get:function(){return this.getAttribute(a)},set:function(c){c!==null?this.setAttribute(a,c):this.removeAttribute(a)}})});const i=Yt();for(const a in i)s[a]=s.prototype[a]=i[a];return e.define(t,s),s}ln()||Yt();const Cn=f.shape({appLogo:f.node,appName:f.string,theme:f.shape({background:f.string}),enableConnect:f.bool,enableLocale:f.bool,navigation:f.arrayOf(f.shape({title:f.oneOfType([f.string,f.object]),link:f.oneOfType([f.string,f.object]),icon:f.string,items:f.arrayOf(f.shape({title:f.oneOfType([f.string,f.object]),link:f.oneOfType([f.string,f.object])}))}))}),fn=f.shape({showText:f.bool,showRole:f.bool,switchDid:f.bool,switchProfile:f.bool,switchPassport:f.bool,disableLogout:f.bool,onLogin:f.func,onLogout:f.func,onSwitchDid:f.func,onSwitchProfile:f.func,onSwitchPassport:f.func,menu:f.array,menuRender:f.func,dark:f.bool,size:f.number}),B=(t,e,n="children")=>t.map(r=>Array.isArray(r[n])?e({...r,[n]:B(r[n],e,n)}):e(r)),An=(t,e="children")=>{const n=[];return B(t,r=>n.push(r),e),n},dt=(t,e,n="children")=>t.map(r=>({...r})).filter(r=>{const o=r[n];if(Array.isArray(o)){const i=dt(o,e,n);r[n]=i!=null&&i.length?i:void 0}const s={filteredChildren:r[n],isLeaf:!(o!=null&&o.length)};return e(r,s)}),dn=t=>/^https?:\/\//.test(t),vn=t=>/^[\w-]+:[\w-]+$/.test(t),hn=t=>{if(!t||!(t!=null&&t.startsWith("/")))return!1;const e=o=>o.endsWith("/")?o:`${o}/`,n=e(window.location.pathname),r=e(new URL(t,window.location.origin).pathname);return n.startsWith(r)},Pn=(t=[])=>{const e=t.map((r,o)=>({path:r,index:o})).filter(r=>hn(r.path));return e!=null&&e.length?e.slice(1).reduce((r,o)=>r.path.length>=o.path.length?r:o,e[0]).index:-1};var _t,Ot;const Tn=((_t=window==null?void 0:window.blocklet)==null?void 0:_t.groupPrefix)||((Ot=window==null?void 0:window.blocklet)==null?void 0:Ot.prefix)||"/",pn=t=>{const e={...t},n=t==null?void 0:t.background;return typeof n=="string"?e.background={header:n,footer:n,default:n}:n&&typeof n=="object"&&(e.background={header:n.header||n.default,footer:n.footer||n.default,default:n.default}),e},gn=(t,e="en")=>{if(!(t!=null&&t.length))return t;const n=(o,s)=>typeof o=="string"?o:typeof o=="object"?o[s]||(o==null?void 0:o.en)||(o==null?void 0:o.zh):o,r=(o,s)=>{if(typeof o=="string"){if(dn(o)){const a=new URL(o);return a.searchParams.set("locale",s),a.href}const i=new URL(o,window.location.origin);return i.searchParams.set("locale",s),i.pathname+i.search}return typeof o=="object"?o[s]||(o==null?void 0:o.en)||(o==null?void 0:o.zh):o};return B(t,o=>{var s;return{...o,title:n(o.title,e),link:(s=o.items)!=null&&s.length?o.link:r(o.link,e)}},"items")},mn=t=>B(t,e=>e.role?{...e,role:Array.isArray(e.role)?e.role:[e.role]}:e,"items"),yn=t=>{if(!(t!=null&&t.length))return null;const e=mn(t),n={header:[],footer:[],social:[],bottom:[],dashboard:[],sessionManager:[]};return e.forEach(r=>{var o;r.section?Array.isArray(r.section)?r.section.forEach(s=>{var i;(i=n[s])==null||i.push(r)}):typeof r.section=="string"&&((o=n[r.section])==null||o.push(r)):n.header.push(r)}),n},kn=t=>{if(!t)return null;const e={...t};return e.theme=pn(e.theme),e.navigation=yn(bn(e.navigation)),e},bn=(t=[])=>dt(t,(e,n)=>{var r;return!!e.link||((r=n.filteredChildren)==null?void 0:r.length)},"items"),wn=(t,e)=>dt(t,(n,r)=>{var s;const o=!n.role||e&&n.role.includes(e);return r.isLeaf?o:o&&((s=r.filteredChildren)==null?void 0:s.length)},"items");function te({formattedBlocklet:t,addons:e,sessionManagerProps:n}){var h,m,y,b;const r=Z.useContext(re),{locale:o}=se()||{},{enableConnect:s=!0,enableLocale:i=!0}=t,a=!!((h=r==null?void 0:r.session)!=null&&h.user);let c=gn((m=t==null?void 0:t.navigation)==null?void 0:m.sessionManager,o)||[];c=wn(c,(b=(y=r==null?void 0:r.session)==null?void 0:y.user)==null?void 0:b.role);const l=(()=>{if(e&&typeof e!="function")return Array.isArray(e)?e:[e];let x=[];if(i&&o&&x.push(F.jsx(ue,{showText:!1},"locale-selector")),s&&r){const C=[];a&&(c?c.slice(0,5):[]).forEach(g=>{C.push({label:g.title,icon:g.icon?F.jsx("iconify-icon",{icon:g.icon,height:24,style:{marginRight:8}}):null,component:"a",href:g.link,key:g.link})}),x.push(F.jsx(ie,{session:r.session,locale:o,menu:C,showRole:!0,...n},"session-manager"))}return typeof e=="function"&&(x=e(x)||[]),x})();return Z.createElement(F.Fragment,null,...Array.isArray(l)?l:[l])}te.propTypes={formattedBlocklet:f.object.isRequired,addons:f.oneOfType([f.func,f.node]),sessionManagerProps:fn};te.defaultProps={addons:null,sessionManagerProps:{showRole:!0}};const jn=()=>{const t=ce();Z.useEffect(()=>{t.wallet&&ae(()=>import("./index-cdee7880.js").then(e=>e.i),["assets/index-cdee7880.js","assets/index-3032db6a.js","assets/index-d8bbb108.css"]).then(e=>{e.call||(e=e.default),e.call("arcHideTopBar","{}")}).catch(e=>{console.error("load dsbridge error",e)})},[t])};export{te as H,wn as a,Cn as b,An as c,Pn as d,vn as e,kn as f,gn as g,dn as i,B as m,Tn as p,fn as s,jn as u};
11
+ */const Et=Object.freeze({left:0,top:0,width:16,height:16}),Q=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),L=Object.freeze({...Et,...Q}),K=Object.freeze({...L,body:"",hidden:!1}),le=Object.freeze({width:null,height:null}),Lt=Object.freeze({...le,...Q});function fe(t,e=0){const n=t.replace(/^-?[0-9.]*/,"");function r(o){for(;o<0;)o+=4;return o%4}if(n===""){const o=parseInt(t);return isNaN(o)?0:r(o)}else if(n!==t){let o=0;switch(n){case"%":o=25;break;case"deg":o=90}if(o){let s=parseFloat(t.slice(0,t.length-n.length));return isNaN(s)?0:(s=s/o,s%1===0?r(s):0)}}return e}const de=/[\s,]+/;function he(t,e){e.split(de).forEach(n=>{switch(n.trim()){case"horizontal":t.hFlip=!0;break;case"vertical":t.vFlip=!0;break}})}const Mt={...Lt,preserveAspectRatio:""};function ht(t){const e={...Mt},n=(r,o)=>t.getAttribute(r)||o;return e.width=n("width",null),e.height=n("height",null),e.rotate=fe(n("rotate","")),he(e,n("flip","")),e.preserveAspectRatio=n("preserveAspectRatio",n("preserveaspectratio","")),e}function pe(t,e){for(const n in Mt)if(t[n]!==e[n])return!0;return!1}const k=/^[a-z0-9]+(-[a-z0-9]+)*$/,M=(t,e,n,r="")=>{const o=t.split(":");if(t.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;r=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const a=o.pop(),c=o.pop(),u={provider:o.length>0?o[0]:r,prefix:c,name:a};return e&&!z(u)?null:u}const s=o[0],i=s.split("-");if(i.length>1){const a={provider:r,prefix:i.shift(),name:i.join("-")};return e&&!z(a)?null:a}if(n&&r===""){const a={provider:r,prefix:"",name:s};return e&&!z(a,n)?null:a}return null},z=(t,e)=>t?!!((t.provider===""||t.provider.match(k))&&(e&&t.prefix===""||t.prefix.match(k))&&t.name.match(k)):!1;function ge(t,e){const n={};!t.hFlip!=!e.hFlip&&(n.hFlip=!0),!t.vFlip!=!e.vFlip&&(n.vFlip=!0);const r=((t.rotate||0)+(e.rotate||0))%4;return r&&(n.rotate=r),n}function pt(t,e){const n=ge(t,e);for(const r in K)r in Q?r in t&&!(r in n)&&(n[r]=Q[r]):r in e?n[r]=e[r]:r in t&&(n[r]=t[r]);return n}function me(t,e){const n=t.icons,r=t.aliases||Object.create(null),o=Object.create(null);function s(i){if(n[i])return o[i]=[];if(!(i in o)){o[i]=null;const a=r[i]&&r[i].parent,c=a&&s(a);c&&(o[i]=[a].concat(c))}return o[i]}return(e||Object.keys(n).concat(Object.keys(r))).forEach(s),o}function ye(t,e,n){const r=t.icons,o=t.aliases||Object.create(null);let s={};function i(a){s=pt(r[a]||o[a],s)}return i(e),n.forEach(i),pt(t,s)}function Nt(t,e){const n=[];if(typeof t!="object"||typeof t.icons!="object")return n;t.not_found instanceof Array&&t.not_found.forEach(o=>{e(o,null),n.push(o)});const r=me(t);for(const o in r){const s=r[o];s&&(e(o,ye(t,o,s)),n.push(o))}return n}const be={provider:"",aliases:{},not_found:{},...Et};function G(t,e){for(const n in e)if(n in t&&typeof t[n]!=typeof e[n])return!1;return!0}function Rt(t){if(typeof t!="object"||t===null)return null;const e=t;if(typeof e.prefix!="string"||!t.icons||typeof t.icons!="object"||!G(t,be))return null;const n=e.icons;for(const o in n){const s=n[o];if(!o.match(k)||typeof s.body!="string"||!G(s,K))return null}const r=e.aliases||Object.create(null);for(const o in r){const s=r[o],i=s.parent;if(!o.match(k)||typeof i!="string"||!n[i]&&!r[i]||!G(s,K))return null}return e}const $=Object.create(null);function we(t,e){return{provider:t,prefix:e,icons:Object.create(null),missing:new Set}}function S(t,e){const n=$[t]||($[t]=Object.create(null));return n[e]||(n[e]=we(t,e))}function ct(t,e){return Rt(e)?Nt(e,(n,r)=>{r?t.icons[n]=r:t.missing.add(n)}):[]}function Ie(t,e,n){try{if(typeof n.body=="string")return t.icons[e]={...n},!0}catch{}return!1}function xe(t,e){let n=[];return(typeof t=="string"?[t]:Object.keys($)).forEach(o=>{(typeof o=="string"&&typeof e=="string"?[e]:Object.keys($[o]||{})).forEach(i=>{const a=S(o,i);n=n.concat(Object.keys(a.icons).map(c=>(o!==""?"@"+o+":":"")+i+":"+c))})}),n}let _=!1;function Ft(t){return typeof t=="boolean"&&(_=t),_}function O(t){const e=typeof t=="string"?M(t,!0,_):t;if(e){const n=S(e.provider,e.prefix),r=e.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function Dt(t,e){const n=M(t,!0,_);if(!n)return!1;const r=S(n.provider,n.prefix);return Ie(r,n.name,e)}function gt(t,e){if(typeof t!="object")return!1;if(typeof e!="string"&&(e=t.provider||""),_&&!e&&!t.prefix){let o=!1;return Rt(t)&&(t.prefix="",Nt(t,(s,i)=>{i&&Dt(s,i)&&(o=!0)})),o}const n=t.prefix;if(!z({provider:e,prefix:n,name:"a"}))return!1;const r=S(e,n);return!!ct(r,t)}function Se(t){return!!O(t)}function Ce(t){const e=O(t);return e?{...L,...e}:null}function Ae(t){const e={loaded:[],missing:[],pending:[]},n=Object.create(null);t.sort((o,s)=>o.provider!==s.provider?o.provider.localeCompare(s.provider):o.prefix!==s.prefix?o.prefix.localeCompare(s.prefix):o.name.localeCompare(s.name));let r={provider:"",prefix:"",name:""};return t.forEach(o=>{if(r.name===o.name&&r.prefix===o.prefix&&r.provider===o.provider)return;r=o;const s=o.provider,i=o.prefix,a=o.name,c=n[s]||(n[s]=Object.create(null)),u=c[i]||(c[i]=S(s,i));let l;a in u.icons?l=e.loaded:i===""||u.missing.has(a)?l=e.missing:l=e.pending;const d={provider:s,prefix:i,name:a};l.push(d)}),e}function zt(t,e){t.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(o=>o.id!==e))})}function ve(t){t.pendingCallbacksFlag||(t.pendingCallbacksFlag=!0,setTimeout(()=>{t.pendingCallbacksFlag=!1;const e=t.loaderCallbacks?t.loaderCallbacks.slice(0):[];if(!e.length)return;let n=!1;const r=t.provider,o=t.prefix;e.forEach(s=>{const i=s.icons,a=i.pending.length;i.pending=i.pending.filter(c=>{if(c.prefix!==o)return!0;const u=c.name;if(t.icons[u])i.loaded.push({provider:r,prefix:o,name:u});else if(t.missing.has(u))i.missing.push({provider:r,prefix:o,name:u});else return n=!0,!0;return!1}),i.pending.length!==a&&(n||zt([t],s.id),s.callback(i.loaded.slice(0),i.missing.slice(0),i.pending.slice(0),s.abort))})}))}let Pe=0;function Te(t,e,n){const r=Pe++,o=zt.bind(null,n,r);if(!e.pending.length)return o;const s={id:r,icons:e,callback:t,abort:o};return n.forEach(i=>{(i.loaderCallbacks||(i.loaderCallbacks=[])).push(s)}),o}const tt=Object.create(null);function mt(t,e){tt[t]=e}function et(t){return tt[t]||tt[""]}function ke(t,e=!0,n=!1){const r=[];return t.forEach(o=>{const s=typeof o=="string"?M(o,e,n):o;s&&r.push(s)}),r}var je={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function _e(t,e,n,r){const o=t.resources.length,s=t.random?Math.floor(Math.random()*o):t.index;let i;if(t.random){let p=t.resources.slice(0);for(i=[];p.length>1;){const I=Math.floor(Math.random()*p.length);i.push(p[I]),p=p.slice(0,I).concat(p.slice(I+1))}i=i.concat(p)}else i=t.resources.slice(s).concat(t.resources.slice(0,s));const a=Date.now();let c="pending",u=0,l,d=null,h=[],m=[];typeof r=="function"&&m.push(r);function y(){d&&(clearTimeout(d),d=null)}function b(){c==="pending"&&(c="aborted"),y(),h.forEach(p=>{p.status==="pending"&&(p.status="aborted")}),h=[]}function x(p,I){I&&(m=[]),typeof p=="function"&&m.push(p)}function C(){return{startTime:a,payload:e,status:c,queriesSent:u,queriesPending:h.length,subscribe:x,abort:b}}function w(){c="failed",m.forEach(p=>{p(void 0,l)})}function g(){h.forEach(p=>{p.status==="pending"&&(p.status="aborted")}),h=[]}function ee(p,I,P){const N=I!=="success";switch(h=h.filter(A=>A!==p),c){case"pending":break;case"failed":if(N||!t.dataAfterTimeout)return;break;default:return}if(I==="abort"){l=P,w();return}if(N){l=P,h.length||(i.length?W():w());return}if(y(),g(),!t.random){const A=t.resources.indexOf(p.resource);A!==-1&&A!==t.index&&(t.index=A)}c="completed",m.forEach(A=>{A(P)})}function W(){if(c!=="pending")return;y();const p=i.shift();if(p===void 0){if(h.length){d=setTimeout(()=>{y(),c==="pending"&&(g(),w())},t.timeout);return}w();return}const I={status:"pending",resource:p,callback:(P,N)=>{ee(I,P,N)}};h.push(I),u++,d=setTimeout(W,t.rotate),n(p,e,I.callback)}return setTimeout(W),C}function Ht(t){const e={...je,...t};let n=[];function r(){n=n.filter(a=>a().status==="pending")}function o(a,c,u){const l=_e(e,a,c,(d,h)=>{r(),u&&u(d,h)});return n.push(l),l}function s(a){return n.find(c=>a(c))||null}return{query:o,find:s,setIndex:a=>{e.index=a},getIndex:()=>e.index,cleanup:r}}function at(t){let e;if(typeof t.resources=="string")e=[t.resources];else if(e=t.resources,!(e instanceof Array)||!e.length)return null;return{resources:e,path:t.path||"/",maxURL:t.maxURL||500,rotate:t.rotate||750,timeout:t.timeout||5e3,random:t.random===!0,index:t.index||0,dataAfterTimeout:t.dataAfterTimeout!==!1}}const q=Object.create(null),T=["https://api.simplesvg.com","https://api.unisvg.com"],H=[];for(;T.length>0;)T.length===1||Math.random()>.5?H.push(T.shift()):H.push(T.pop());q[""]=at({resources:["https://api.iconify.design"].concat(H)});function yt(t,e){const n=at(e);return n===null?!1:(q[t]=n,!0)}function V(t){return q[t]}function Oe(){return Object.keys(q)}function bt(){}const J=Object.create(null);function Ee(t){if(!J[t]){const e=V(t);if(!e)return;const n=Ht(e),r={config:e,redundancy:n};J[t]=r}return J[t]}function Qt(t,e,n){let r,o;if(typeof t=="string"){const s=et(t);if(!s)return n(void 0,424),bt;o=s.send;const i=Ee(t);i&&(r=i.redundancy)}else{const s=at(t);if(s){r=Ht(s);const i=t.resources?t.resources[0]:"",a=et(i);a&&(o=a.send)}}return!r||!o?(n(void 0,424),bt):r.query(e,o,n)().abort}const wt="iconify2",E="iconify",$t=E+"-count",It=E+"-version",Ut=36e5,Le=168;function nt(t,e){try{return t.getItem(e)}catch{}}function ut(t,e,n){try{return t.setItem(e,n),!0}catch{}}function xt(t,e){try{t.removeItem(e)}catch{}}function ot(t,e){return ut(t,$t,e.toString())}function rt(t){return parseInt(nt(t,$t))||0}const v={local:!0,session:!0},qt={local:new Set,session:new Set};let lt=!1;function Me(t){lt=t}let D=typeof window>"u"?{}:window;function Vt(t){const e=t+"Storage";try{if(D&&D[e]&&typeof D[e].length=="number")return D[e]}catch{}v[t]=!1}function Bt(t,e){const n=Vt(t);if(!n)return;const r=nt(n,It);if(r!==wt){if(r){const a=rt(n);for(let c=0;c<a;c++)xt(n,E+c.toString())}ut(n,It,wt),ot(n,0);return}const o=Math.floor(Date.now()/Ut)-Le,s=a=>{const c=E+a.toString(),u=nt(n,c);if(typeof u=="string"){try{const l=JSON.parse(u);if(typeof l=="object"&&typeof l.cached=="number"&&l.cached>o&&typeof l.provider=="string"&&typeof l.data=="object"&&typeof l.data.prefix=="string"&&e(l,a))return!0}catch{}xt(n,c)}};let i=rt(n);for(let a=i-1;a>=0;a--)s(a)||(a===i-1?(i--,ot(n,i)):qt[t].add(a))}function Wt(){if(!lt){Me(!0);for(const t in v)Bt(t,e=>{const n=e.data,r=e.provider,o=n.prefix,s=S(r,o);if(!ct(s,n).length)return!1;const i=n.lastModified||-1;return s.lastModifiedCached=s.lastModifiedCached?Math.min(s.lastModifiedCached,i):i,!0})}}function Ne(t,e){const n=t.lastModifiedCached;if(n&&n>=e)return n===e;if(t.lastModifiedCached=e,n)for(const r in v)Bt(r,o=>{const s=o.data;return o.provider!==t.provider||s.prefix!==t.prefix||s.lastModified===e});return!0}function Re(t,e){lt||Wt();function n(r){let o;if(!v[r]||!(o=Vt(r)))return;const s=qt[r];let i;if(s.size)s.delete(i=Array.from(s).shift());else if(i=rt(o),!ot(o,i+1))return;const a={cached:Math.floor(Date.now()/Ut),provider:t.provider,data:e};return ut(o,E+i.toString(),JSON.stringify(a))}e.lastModified&&!Ne(t,e.lastModified)||Object.keys(e.icons).length&&(e.not_found&&(e=Object.assign({},e),delete e.not_found),n("local")||n("session"))}function St(){}function Fe(t){t.iconsLoaderFlag||(t.iconsLoaderFlag=!0,setTimeout(()=>{t.iconsLoaderFlag=!1,ve(t)}))}function De(t,e){t.iconsToLoad?t.iconsToLoad=t.iconsToLoad.concat(e).sort():t.iconsToLoad=e,t.iconsQueueFlag||(t.iconsQueueFlag=!0,setTimeout(()=>{t.iconsQueueFlag=!1;const{provider:n,prefix:r}=t,o=t.iconsToLoad;delete t.iconsToLoad;let s;if(!o||!(s=et(n)))return;s.prepare(n,r,o).forEach(a=>{Qt(n,a,c=>{if(typeof c!="object")a.icons.forEach(u=>{t.missing.add(u)});else try{const u=ct(t,c);if(!u.length)return;const l=t.pendingIcons;l&&u.forEach(d=>{l.delete(d)}),Re(t,c)}catch(u){console.error(u)}Fe(t)})})}))}const ft=(t,e)=>{const n=ke(t,!0,Ft()),r=Ae(n);if(!r.pending.length){let c=!0;return e&&setTimeout(()=>{c&&e(r.loaded,r.missing,r.pending,St)}),()=>{c=!1}}const o=Object.create(null),s=[];let i,a;return r.pending.forEach(c=>{const{provider:u,prefix:l}=c;if(l===a&&u===i)return;i=u,a=l,s.push(S(u,l));const d=o[u]||(o[u]=Object.create(null));d[l]||(d[l]=[])}),r.pending.forEach(c=>{const{provider:u,prefix:l,name:d}=c,h=S(u,l),m=h.pendingIcons||(h.pendingIcons=new Set);m.has(d)||(m.add(d),o[u][l].push(d))}),s.forEach(c=>{const{provider:u,prefix:l}=c;o[u][l].length&&De(c,o[u][l])}),e?Te(e,r,s):St},ze=t=>new Promise((e,n)=>{const r=typeof t=="string"?M(t,!0):t;if(!r){n(t);return}ft([r||t],o=>{if(o.length&&r){const s=O(r);if(s){e({...L,...s});return}}n(t)})});function He(t){try{const e=typeof t=="string"?JSON.parse(t):t;if(typeof e.body=="string")return{...e}}catch{}}function Qe(t,e){const n=typeof t=="string"?M(t,!0,!0):null;if(!n){const s=He(t);return{value:t,data:s}}const r=O(n);if(r!==void 0||!n.prefix)return{value:t,name:n,data:r};const o=ft([n],()=>e(t,n,O(n)));return{value:t,name:n,loading:o}}function X(t){return t.hasAttribute("inline")}let Gt=!1;try{Gt=navigator.vendor.indexOf("Apple")===0}catch{}function $e(t,e){switch(e){case"svg":case"bg":case"mask":return e}return e!=="style"&&(Gt||t.indexOf("<a")===-1)?"svg":t.indexOf("currentColor")===-1?"bg":"mask"}const Ue=/(-?[0-9.]*[0-9]+[0-9.]*)/g,qe=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function st(t,e,n){if(e===1)return t;if(n=n||100,typeof t=="number")return Math.ceil(t*e*n)/n;if(typeof t!="string")return t;const r=t.split(Ue);if(r===null||!r.length)return t;const o=[];let s=r.shift(),i=qe.test(s);for(;;){if(i){const a=parseFloat(s);isNaN(a)?o.push(s):o.push(Math.ceil(a*e*n)/n)}else o.push(s);if(s=r.shift(),s===void 0)return o.join("");i=!i}}const Ve=t=>t==="unset"||t==="undefined"||t==="none";function Jt(t,e){const n={...L,...t},r={...Lt,...e},o={left:n.left,top:n.top,width:n.width,height:n.height};let s=n.body;[n,r].forEach(y=>{const b=[],x=y.hFlip,C=y.vFlip;let w=y.rotate;x?C?w+=2:(b.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),b.push("scale(-1 1)"),o.top=o.left=0):C&&(b.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),b.push("scale(1 -1)"),o.top=o.left=0);let g;switch(w<0&&(w-=Math.floor(w/4)*4),w=w%4,w){case 1:g=o.height/2+o.top,b.unshift("rotate(90 "+g.toString()+" "+g.toString()+")");break;case 2:b.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:g=o.width/2+o.left,b.unshift("rotate(-90 "+g.toString()+" "+g.toString()+")");break}w%2===1&&(o.left!==o.top&&(g=o.left,o.left=o.top,o.top=g),o.width!==o.height&&(g=o.width,o.width=o.height,o.height=g)),b.length&&(s='<g transform="'+b.join(" ")+'">'+s+"</g>")});const i=r.width,a=r.height,c=o.width,u=o.height;let l,d;i===null?(d=a===null?"1em":a==="auto"?u:a,l=st(d,c/u)):(l=i==="auto"?c:i,d=a===null?st(l,u/c):a==="auto"?u:a);const h={},m=(y,b)=>{Ve(b)||(h[y]=b.toString())};return m("width",l),m("height",d),h.viewBox=o.left.toString()+" "+o.top.toString()+" "+c.toString()+" "+u.toString(),{attributes:h,body:s}}const Be=()=>{let t;try{if(t=fetch,typeof t=="function")return t}catch{}};let U=Be();function We(t){U=t}function Ge(){return U}function Je(t,e){const n=V(t);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let o=0;n.resources.forEach(i=>{o=Math.max(o,i.length)});const s=e+".json?icons=";r=n.maxURL-o-n.path.length-s.length}return r}function Xe(t){return t===404}const Ye=(t,e,n)=>{const r=[],o=Je(t,e),s="icons";let i={type:s,provider:t,prefix:e,icons:[]},a=0;return n.forEach((c,u)=>{a+=c.length+1,a>=o&&u>0&&(r.push(i),i={type:s,provider:t,prefix:e,icons:[]},a=c.length),i.icons.push(c)}),r.push(i),r};function Ze(t){if(typeof t=="string"){const e=V(t);if(e)return e.path}return"/"}const Ke=(t,e,n)=>{if(!U){n("abort",424);return}let r=Ze(e.provider);switch(e.type){case"icons":{const s=e.prefix,a=e.icons.join(","),c=new URLSearchParams({icons:a});r+=s+".json?"+c.toString();break}case"custom":{const s=e.uri;r+=s.slice(0,1)==="/"?s.slice(1):s;break}default:n("abort",400);return}let o=503;U(t+r).then(s=>{const i=s.status;if(i!==200){setTimeout(()=>{n(Xe(i)?"abort":"next",i)});return}return o=501,s.json()}).then(s=>{if(typeof s!="object"||s===null){setTimeout(()=>{s===404?n("abort",s):n("next",o)});return}setTimeout(()=>{n("success",s)})}).catch(()=>{n("next",o)})},tn={prepare:Ye,send:Ke};function Ct(t,e){switch(t){case"local":case"session":v[t]=e;break;case"all":for(const n in v)v[n]=e;break}}const Y="data-style";let Xt="";function en(t){Xt=t}function At(t,e){let n=Array.from(t.childNodes).find(r=>r.hasAttribute&&r.hasAttribute(Y));n||(n=document.createElement("style"),n.setAttribute(Y,Y),t.appendChild(n)),n.textContent=":host{display:inline-block;vertical-align:"+(e?"-0.125em":"0")+"}span,svg{display:block}"+Xt}function Yt(){mt("",tn),Ft(!0);let t;try{t=window}catch{}if(t){if(Wt(),t.IconifyPreload!==void 0){const n=t.IconifyPreload,r="Invalid IconifyPreload syntax.";typeof n=="object"&&n!==null&&(n instanceof Array?n:[n]).forEach(o=>{try{(typeof o!="object"||o===null||o instanceof Array||typeof o.icons!="object"||typeof o.prefix!="string"||!gt(o))&&console.error(r)}catch{console.error(r)}})}if(t.IconifyProviders!==void 0){const n=t.IconifyProviders;if(typeof n=="object"&&n!==null)for(const r in n){const o="IconifyProviders["+r+"] is invalid.";try{const s=n[r];if(typeof s!="object"||!s||s.resources===void 0)continue;yt(r,s)||console.error(o)}catch{console.error(o)}}}}return{enableCache:n=>Ct(n,!0),disableCache:n=>Ct(n,!1),iconExists:Se,getIcon:Ce,listIcons:xe,addIcon:Dt,addCollection:gt,calculateSize:st,buildIcon:Jt,loadIcons:ft,loadIcon:ze,addAPIProvider:yt,appendCustomStyle:en,_api:{getAPIConfig:V,setAPIModule:mt,sendAPIQuery:Qt,setFetch:We,getFetch:Ge,listAPIProviders:Oe}}}function Zt(t,e){let n=t.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in e)n+=" "+r+'="'+e[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+t+"</svg>"}function nn(t){return t.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function on(t){return"data:image/svg+xml,"+nn(t)}function rn(t){return'url("'+on(t)+'")'}const it={"background-color":"currentColor"},Kt={"background-color":"transparent"},vt={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},Pt={"-webkit-mask":it,mask:it,background:Kt};for(const t in Pt){const e=Pt[t];for(const n in vt)e[t+"-"+n]=vt[n]}function Tt(t){return t?t+(t.match(/^[-0-9.]+$/)?"px":""):"inherit"}function sn(t,e,n){const r=document.createElement("span");let o=t.body;o.indexOf("<a")!==-1&&(o+="<!-- "+Date.now()+" -->");const s=t.attributes,i=Zt(o,{...s,width:e.width+"",height:e.height+""}),a=rn(i),c=r.style,u={"--svg":a,width:Tt(s.width),height:Tt(s.height),...n?it:Kt};for(const l in u)c.setProperty(l,u[l]);return r}let j;function cn(){try{j=window.trustedTypes.createPolicy("iconify",{createHTML:t=>t})}catch{j=null}}function an(t){return j===void 0&&cn(),j?j.createHTML(t):t}function un(t){const e=document.createElement("span"),n=t.attributes;let r="";n.width||(r="width: inherit;"),n.height||(r+="height: inherit;"),r&&(n.style=r);const o=Zt(t.body,n);return e.innerHTML=an(o),e.firstChild}function kt(t,e){const n=e.icon.data,r=e.customisations,o=Jt(n,r);r.preserveAspectRatio&&(o.attributes.preserveAspectRatio=r.preserveAspectRatio);const s=e.renderedMode;let i;switch(s){case"svg":i=un(o);break;default:i=sn(o,{...L,...n},s==="mask")}const a=Array.from(t.childNodes).find(c=>{const u=c.tagName&&c.tagName.toUpperCase();return u==="SPAN"||u==="SVG"});a?i.tagName==="SPAN"&&a.tagName===i.tagName?a.setAttribute("style",i.getAttribute("style")):t.replaceChild(i,a):t.appendChild(i)}function jt(t,e,n){const r=n&&(n.rendered?n:n.lastRender);return{rendered:!1,inline:e,icon:t,lastRender:r}}function ln(t="iconify-icon"){let e,n;try{e=window.customElements,n=window.HTMLElement}catch{return}if(!e||!n)return;const r=e.get(t);if(r)return r;const o=["icon","mode","inline","width","height","rotate","flip"],s=class extends n{constructor(){super();R(this,"_shadowRoot");R(this,"_state");R(this,"_checkQueued",!1);const c=this._shadowRoot=this.attachShadow({mode:"open"}),u=X(this);At(c,u),this._state=jt({value:""},u),this._queueCheck()}static get observedAttributes(){return o.slice(0)}attributeChangedCallback(c){if(c==="inline"){const u=X(this),l=this._state;u!==l.inline&&(l.inline=u,At(this._shadowRoot,u))}else this._queueCheck()}get icon(){const c=this.getAttribute("icon");if(c&&c.slice(0,1)==="{")try{return JSON.parse(c)}catch{}return c}set icon(c){typeof c=="object"&&(c=JSON.stringify(c)),this.setAttribute("icon",c)}get inline(){return X(this)}set inline(c){c?this.setAttribute("inline","true"):this.removeAttribute("inline")}restartAnimation(){const c=this._state;if(c.rendered){const u=this._shadowRoot;if(c.renderedMode==="svg")try{u.lastChild.setCurrentTime(0);return}catch{}kt(u,c)}}get status(){const c=this._state;return c.rendered?"rendered":c.icon.data===null?"failed":"loading"}_queueCheck(){this._checkQueued||(this._checkQueued=!0,setTimeout(()=>{this._check()}))}_check(){if(!this._checkQueued)return;this._checkQueued=!1;const c=this._state,u=this.getAttribute("icon");if(u!==c.icon.value){this._iconChanged(u);return}if(!c.rendered)return;const l=this.getAttribute("mode"),d=ht(this);(c.attrMode!==l||pe(c.customisations,d))&&this._renderIcon(c.icon,d,l)}_iconChanged(c){const u=Qe(c,(l,d,h)=>{const m=this._state;if(m.rendered||this.getAttribute("icon")!==l)return;const y={value:l,name:d,data:h};y.data?this._gotIconData(y):m.icon=y});u.data?this._gotIconData(u):this._state=jt(u,this._state.inline,this._state)}_gotIconData(c){this._checkQueued=!1,this._renderIcon(c,ht(this),this.getAttribute("mode"))}_renderIcon(c,u,l){const d=$e(c.data.body,l),h=this._state.inline;kt(this._shadowRoot,this._state={rendered:!0,icon:c,inline:h,customisations:u,attrMode:l,renderedMode:d})}};o.forEach(a=>{a in s.prototype||Object.defineProperty(s.prototype,a,{get:function(){return this.getAttribute(a)},set:function(c){c!==null?this.setAttribute(a,c):this.removeAttribute(a)}})});const i=Yt();for(const a in i)s[a]=s.prototype[a]=i[a];return e.define(t,s),s}ln()||Yt();const Cn=f.shape({appLogo:f.node,appName:f.string,theme:f.shape({background:f.string}),enableConnect:f.bool,enableLocale:f.bool,navigation:f.arrayOf(f.shape({title:f.oneOfType([f.string,f.object]),link:f.oneOfType([f.string,f.object]),icon:f.string,items:f.arrayOf(f.shape({title:f.oneOfType([f.string,f.object]),link:f.oneOfType([f.string,f.object])}))}))}),fn=f.shape({showText:f.bool,showRole:f.bool,switchDid:f.bool,switchProfile:f.bool,switchPassport:f.bool,disableLogout:f.bool,onLogin:f.func,onLogout:f.func,onSwitchDid:f.func,onSwitchProfile:f.func,onSwitchPassport:f.func,menu:f.array,menuRender:f.func,dark:f.bool,size:f.number}),B=(t,e,n="children")=>t.map(r=>Array.isArray(r[n])?e({...r,[n]:B(r[n],e,n)}):e(r)),An=(t,e="children")=>{const n=[];return B(t,r=>n.push(r),e),n},dt=(t,e,n="children")=>t.map(r=>({...r})).filter(r=>{const o=r[n];if(Array.isArray(o)){const i=dt(o,e,n);r[n]=i!=null&&i.length?i:void 0}const s={filteredChildren:r[n],isLeaf:!(o!=null&&o.length)};return e(r,s)}),dn=t=>/^https?:\/\//.test(t),vn=t=>/^[\w-]+:[\w-]+$/.test(t),hn=t=>{if(!t||!(t!=null&&t.startsWith("/")))return!1;const e=o=>o.endsWith("/")?o:`${o}/`,n=e(window.location.pathname),r=e(new URL(t,window.location.origin).pathname);return n.startsWith(r)},Pn=(t=[])=>{const e=t.map((r,o)=>({path:r,index:o})).filter(r=>hn(r.path));return e!=null&&e.length?e.slice(1).reduce((r,o)=>r.path.length>=o.path.length?r:o,e[0]).index:-1};var _t,Ot;const Tn=((_t=window==null?void 0:window.blocklet)==null?void 0:_t.groupPrefix)||((Ot=window==null?void 0:window.blocklet)==null?void 0:Ot.prefix)||"/",pn=t=>{const e={...t},n=t==null?void 0:t.background;return typeof n=="string"?e.background={header:n,footer:n,default:n}:n&&typeof n=="object"&&(e.background={header:n.header||n.default,footer:n.footer||n.default,default:n.default}),e},gn=(t,e="en")=>{if(!(t!=null&&t.length))return t;const n=(o,s)=>typeof o=="string"?o:typeof o=="object"?o[s]||(o==null?void 0:o.en)||(o==null?void 0:o.zh):o,r=(o,s)=>{if(typeof o=="string"){if(dn(o)){const a=new URL(o);return a.searchParams.set("locale",s),a.href}const i=new URL(o,window.location.origin);return i.searchParams.set("locale",s),i.pathname+i.search}return typeof o=="object"?o[s]||(o==null?void 0:o.en)||(o==null?void 0:o.zh):o};return B(t,o=>{var s;return{...o,title:n(o.title,e),link:(s=o.items)!=null&&s.length?o.link:r(o.link,e)}},"items")},mn=t=>B(t,e=>e.role?{...e,role:Array.isArray(e.role)?e.role:[e.role]}:e,"items"),yn=t=>{if(!(t!=null&&t.length))return null;const e=mn(t),n={header:[],footer:[],social:[],bottom:[],dashboard:[],sessionManager:[]};return e.forEach(r=>{var o;r.section?Array.isArray(r.section)?r.section.forEach(s=>{var i;(i=n[s])==null||i.push(r)}):typeof r.section=="string"&&((o=n[r.section])==null||o.push(r)):n.header.push(r)}),n},kn=t=>{if(!t)return null;const e={...t};return e.theme=pn(e.theme),e.navigation=yn(bn(e.navigation)),e},bn=(t=[])=>dt(t,(e,n)=>{var r;return!!e.link||((r=n.filteredChildren)==null?void 0:r.length)},"items"),wn=(t,e)=>dt(t,(n,r)=>{var s;const o=!n.role||e&&n.role.includes(e);return r.isLeaf?o:o&&((s=r.filteredChildren)==null?void 0:s.length)},"items");function te({formattedBlocklet:t,addons:e,sessionManagerProps:n}){var h,m,y,b;const r=Z.useContext(re),{locale:o}=se()||{},{enableConnect:s=!0,enableLocale:i=!0}=t,a=!!((h=r==null?void 0:r.session)!=null&&h.user);let c=gn((m=t==null?void 0:t.navigation)==null?void 0:m.sessionManager,o)||[];c=wn(c,(b=(y=r==null?void 0:r.session)==null?void 0:y.user)==null?void 0:b.role);const l=(()=>{if(e&&typeof e!="function")return Array.isArray(e)?e:[e];let x=[];if(i&&o&&x.push(F.jsx(ue,{showText:!1},"locale-selector")),s&&r){const C=[];a&&(c?c.slice(0,5):[]).forEach(g=>{C.push({label:g.title,icon:g.icon?F.jsx("iconify-icon",{icon:g.icon,height:24,style:{marginRight:8}}):null,component:"a",href:g.link,key:g.link})}),x.push(F.jsx(ie,{session:r.session,locale:o,menu:C,showRole:!0,...n},"session-manager"))}return typeof e=="function"&&(x=e(x)||[]),x})();return Z.createElement(F.Fragment,null,...Array.isArray(l)?l:[l])}te.propTypes={formattedBlocklet:f.object.isRequired,addons:f.oneOfType([f.func,f.node]),sessionManagerProps:fn};te.defaultProps={addons:null,sessionManagerProps:{showRole:!0}};const jn=()=>{const t=ce();Z.useEffect(()=>{t.wallet&&ae(()=>import("./index-704183c7.js").then(e=>e.i),["assets/index-704183c7.js","assets/index-92a4f00b.js","assets/index-d8bbb108.css"]).then(e=>{e.call||(e=e.default),e.call("arcHideTopBar","{}")}).catch(e=>{console.error("load dsbridge error",e)})},[t])};export{te as H,wn as a,Cn as b,An as c,Pn as d,vn as e,kn as f,gn as g,dn as i,B as m,Tn as p,fn as s,jn as u};
@@ -0,0 +1 @@
1
+ import{aq as a,ar as t,as as e,j as r,at as o}from"./index-92a4f00b.js";const i={zh:a(t),en:a(e)};function p(s){return function(n){return r.jsx(o,{translations:i,children:r.jsx(s,{...n})})}}export{p as w};
package/dist/index.html CHANGED
@@ -14,7 +14,7 @@
14
14
  padding: 0;
15
15
  }
16
16
  </style>
17
- <script type="module" crossorigin src="/.well-known/service/static/assets/index-3032db6a.js"></script>
17
+ <script type="module" crossorigin src="/.well-known/service/static/assets/index-92a4f00b.js"></script>
18
18
  <link rel="stylesheet" href="/.well-known/service/static/assets/index-d8bbb108.css">
19
19
  </head>
20
20
 
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.16.20-beta-955a3019",
6
+ "version": "1.16.20-beta-ce2cd157",
7
7
  "description": "Provide unified services for every blocklet",
8
8
  "main": "api/index.js",
9
9
  "files": [
@@ -32,17 +32,17 @@
32
32
  "author": "wangshijun <wangshijun2010@gmail.com> (http://github.com/wangshijun)",
33
33
  "license": "Apache-2.0",
34
34
  "dependencies": {
35
- "@abtnode/analytics": "1.16.20-beta-955a3019",
36
- "@abtnode/auth": "1.16.20-beta-955a3019",
37
- "@abtnode/client": "1.16.20-beta-955a3019",
38
- "@abtnode/connect-storage": "1.16.20-beta-955a3019",
39
- "@abtnode/constant": "1.16.20-beta-955a3019",
40
- "@abtnode/core": "1.16.20-beta-955a3019",
41
- "@abtnode/cron": "1.16.20-beta-955a3019",
42
- "@abtnode/logger": "1.16.20-beta-955a3019",
43
- "@abtnode/models": "1.16.20-beta-955a3019",
44
- "@abtnode/router-templates": "1.16.20-beta-955a3019",
45
- "@abtnode/util": "1.16.20-beta-955a3019",
35
+ "@abtnode/analytics": "1.16.20-beta-ce2cd157",
36
+ "@abtnode/auth": "1.16.20-beta-ce2cd157",
37
+ "@abtnode/client": "1.16.20-beta-ce2cd157",
38
+ "@abtnode/connect-storage": "1.16.20-beta-ce2cd157",
39
+ "@abtnode/constant": "1.16.20-beta-ce2cd157",
40
+ "@abtnode/core": "1.16.20-beta-ce2cd157",
41
+ "@abtnode/cron": "1.16.20-beta-ce2cd157",
42
+ "@abtnode/logger": "1.16.20-beta-ce2cd157",
43
+ "@abtnode/models": "1.16.20-beta-ce2cd157",
44
+ "@abtnode/router-templates": "1.16.20-beta-ce2cd157",
45
+ "@abtnode/util": "1.16.20-beta-ce2cd157",
46
46
  "@arcblock/did": "^1.18.103",
47
47
  "@arcblock/did-auth": "1.18.103",
48
48
  "@arcblock/did-ext": "^1.18.103",
@@ -51,11 +51,11 @@
51
51
  "@arcblock/jwt": "1.18.103",
52
52
  "@arcblock/validator": "^1.18.103",
53
53
  "@arcblock/ws": "1.18.103",
54
- "@blocklet/constant": "1.16.20-beta-955a3019",
54
+ "@blocklet/constant": "1.16.20-beta-ce2cd157",
55
55
  "@blocklet/form-builder": "^0.1.11",
56
56
  "@blocklet/form-collector": "^0.1.6",
57
- "@blocklet/meta": "1.16.20-beta-955a3019",
58
- "@blocklet/sdk": "1.16.20-beta-955a3019",
57
+ "@blocklet/meta": "1.16.20-beta-ce2cd157",
58
+ "@blocklet/sdk": "1.16.20-beta-ce2cd157",
59
59
  "@did-connect/authenticator": "^2.2.1",
60
60
  "@did-connect/relay-adapter-express": "^2.2.1",
61
61
  "@ocap/client": "1.18.103",
@@ -94,12 +94,12 @@
94
94
  },
95
95
  "resolutions": {},
96
96
  "devDependencies": {
97
- "@abtnode/ux": "1.16.20-beta-955a3019",
97
+ "@abtnode/ux": "1.16.20-beta-ce2cd157",
98
98
  "@arcblock/did-connect": "^2.8.21",
99
99
  "@arcblock/icons": "^2.8.21",
100
100
  "@arcblock/ux": "^2.8.21",
101
101
  "@blocklet/launcher-layout": "2.2.47",
102
- "@blocklet/tracker": "1.16.20-beta-955a3019",
102
+ "@blocklet/tracker": "1.16.20-beta-ce2cd157",
103
103
  "@blocklet/ui-react": "^2.8.21",
104
104
  "@emotion/react": "^11.10.4",
105
105
  "@emotion/styled": "^11.10.4",
@@ -170,5 +170,5 @@
170
170
  "url": "https://github.com/ArcBlock/blocklet-server/issues",
171
171
  "email": "shijun@arcblock.io"
172
172
  },
173
- "gitHead": "f1b19cb52a19a5873f8f4de0618530d003e876a4"
173
+ "gitHead": "a081d3e4fa2a6d51f343df07eb631fa9300d7538"
174
174
  }
@@ -1 +0,0 @@
1
- import{au as U,av as V,aj as i,j as l,aw as p,a5 as F,ax as B,cb as z,cc as S,ay as a,r as Z,az as D,aA as q,as as G,aC as J,aD as K}from"./index-3032db6a.js";function Q(o){return V("MuiAlert",o)}const X=U("MuiAlert",["root","action","icon","message","filled","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),h=X,Y=i(l.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),oo=i(l.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),so=i(l.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),to=i(l.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),lo=i(l.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),eo=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],ro=o=>{const{variant:t,color:e,severity:r,classes:s}=o,d={root:["root",`${t}${B(e||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return K(d,Q,s)},no=p(F,{name:"MuiAlert",slot:"Root",overridesResolver:(o,t)=>{const{ownerState:e}=o;return[t.root,t[e.variant],t[`${e.variant}${B(e.color||e.severity)}`]]}})(({theme:o,ownerState:t})=>{const e=o.palette.mode==="light"?z:S,r=o.palette.mode==="light"?S:z,s=t.color||t.severity;return a({},o.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px"},s&&t.variant==="standard"&&{color:o.vars?o.vars.palette.Alert[`${s}Color`]:e(o.palette[s].light,.6),backgroundColor:o.vars?o.vars.palette.Alert[`${s}StandardBg`]:r(o.palette[s].light,.9),[`& .${h.icon}`]:o.vars?{color:o.vars.palette.Alert[`${s}IconColor`]}:{color:o.palette[s].main}},s&&t.variant==="outlined"&&{color:o.vars?o.vars.palette.Alert[`${s}Color`]:e(o.palette[s].light,.6),border:`1px solid ${(o.vars||o).palette[s].light}`,[`& .${h.icon}`]:o.vars?{color:o.vars.palette.Alert[`${s}IconColor`]}:{color:o.palette[s].main}},s&&t.variant==="filled"&&a({fontWeight:o.typography.fontWeightMedium},o.vars?{color:o.vars.palette.Alert[`${s}FilledColor`],backgroundColor:o.vars.palette.Alert[`${s}FilledBg`]}:{backgroundColor:o.palette.mode==="dark"?o.palette[s].dark:o.palette[s].main,color:o.palette.getContrastText(o.palette[s].main)}))}),ao=p("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(o,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),co=p("div",{name:"MuiAlert",slot:"Message",overridesResolver:(o,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),L=p("div",{name:"MuiAlert",slot:"Action",overridesResolver:(o,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),P={success:l.jsx(Y,{fontSize:"inherit"}),warning:l.jsx(oo,{fontSize:"inherit"}),error:l.jsx(so,{fontSize:"inherit"}),info:l.jsx(to,{fontSize:"inherit"})},io=Z.forwardRef(function(t,e){var r,s,d,C,x,A;const u=D({props:t,name:"MuiAlert"}),{action:g,children:R,className:b,closeText:f="Close",color:k,components:I={},componentsProps:M={},icon:$,iconMapping:_=P,onClose:j,role:O="alert",severity:v="success",slotProps:m={},slots:y={},variant:w="standard"}=u,E=q(u,eo),n=a({},u,{color:k,severity:v,variant:w}),c=ro(n),N=(r=(s=y.closeButton)!=null?s:I.CloseButton)!=null?r:G,W=(d=(C=y.closeIcon)!=null?C:I.CloseIcon)!=null?d:lo,H=(x=m.closeButton)!=null?x:M.closeButton,T=(A=m.closeIcon)!=null?A:M.closeIcon;return l.jsxs(no,a({role:O,elevation:0,ownerState:n,className:J(c.root,b),ref:e},E,{children:[$!==!1?l.jsx(ao,{ownerState:n,className:c.icon,children:$||_[v]||P[v]}):null,l.jsx(co,{ownerState:n,className:c.message,children:R}),g!=null?l.jsx(L,{ownerState:n,className:c.action,children:g}):null,g==null&&j?l.jsx(L,{ownerState:n,className:c.action,children:l.jsx(N,a({size:"small","aria-label":f,title:f,color:"inherit",onClick:j},H,{children:l.jsx(W,a({fontSize:"small"},T))}))}):null]}))}),uo=io;export{uo as A,lo as C};
@@ -1 +0,0 @@
1
- import{av as l,au as d,aw as p,r as u,az as m,aA as x,ay as r,j as f,aC as y,aD as g}from"./index-3032db6a.js";function v(t){return l("MuiCardContent",t)}d("MuiCardContent",["root"]);const R=["className","component"],h=t=>{const{classes:s}=t;return g({root:["root"]},v,s)},j=p("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(t,s)=>s.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),w=u.forwardRef(function(s,e){const o=m({props:s,name:"MuiCardContent"}),{className:c,component:a="div"}=o,C=x(o,R),n=r({},o,{component:a}),i=h(n);return f.jsx(j,r({as:a,className:y(i.root,c),ownerState:n,ref:e},C))}),U=w;export{U as C};
@@ -1 +0,0 @@
1
- import{av as _,au as q,aw as w,ay as u,ax as $,r as s,az as I,aA as j,dy as F,j as z,aC as k,aD as G}from"./index-3032db6a.js";import{F as H}from"./useFormControl-9ab318bf.js";function P(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function U(e,t=!1){return e&&(P(e.value)&&e.value!==""||t&&P(e.defaultValue)&&e.defaultValue!=="")}function J(e){return e.startAdornment}function K(e){return _("MuiFormControl",e)}const O=q("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]),re=O,Q=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],X=e=>{const{classes:t,margin:l,fullWidth:n}=e,o={root:["root",l!=="none"&&`margin${$(l)}`,n&&"fullWidth"]};return G(o,K,t)},Y=w("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>u({},t.root,t[`margin${$(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>u({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),Z=s.forwardRef(function(t,l){const n=I({props:t,name:"MuiFormControl"}),{children:o,className:b,color:d="primary",component:x="div",disabled:a=!1,error:c=!1,focused:v,fullWidth:m=!1,hiddenLabel:f=!1,margin:B="none",required:p=!1,size:g="medium",variant:C="outlined"}=n,D=j(n,Q),y=u({},n,{color:d,component:x,disabled:a,error:c,fullWidth:m,hiddenLabel:f,margin:B,required:p,size:g,variant:C}),L=X(y),[S,T]=s.useState(()=>{let i=!1;return o&&s.Children.forEach(o,r=>{if(!F(r,["Input","Select"]))return;const R=F(r,["Select"])?r.props.input:r;R&&J(R.props)&&(i=!0)}),i}),[W,A]=s.useState(()=>{let i=!1;return o&&s.Children.forEach(o,r=>{F(r,["Input","Select"])&&(U(r.props,!0)||U(r.props.inputProps,!0))&&(i=!0)}),i}),[E,h]=s.useState(!1);a&&E&&h(!1);const M=v!==void 0&&!a?v:E;let N;const V=s.useMemo(()=>({adornedStart:S,setAdornedStart:T,color:d,disabled:a,error:c,filled:W,focused:M,fullWidth:m,hiddenLabel:f,size:g,onBlur:()=>{h(!1)},onEmpty:()=>{A(!1)},onFilled:()=>{A(!0)},onFocus:()=>{h(!0)},registerEffect:N,required:p,variant:C}),[S,d,a,c,W,M,m,f,N,p,g,C]);return z.jsx(H.Provider,{value:V,children:z.jsx(Y,u({as:x,ownerState:y,className:k(L.root,b),ref:l},D,{children:o}))})}),oe=Z;export{oe as F,re as f,K as g,U as i};
@@ -1 +0,0 @@
1
- import{av as p,au as f,aw as w,ay as e,r as x,az as F,aA as C,j as G,aC as d,aD as y}from"./index-3032db6a.js";import{u as R,f as g}from"./useFormControl-9ab318bf.js";function j(o){return p("MuiFormGroup",o)}const v=f("MuiFormGroup",["root","row","error"]),_=v,M=["className","row"],S=o=>{const{classes:r,row:t,error:s}=o;return y({root:["root",t&&"row",s&&"error"]},j,r)},U=w("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(o,r)=>{const{ownerState:t}=o;return[r.root,t.row&&r.row]}})(({ownerState:o})=>e({display:"flex",flexDirection:"column",flexWrap:"wrap"},o.row&&{flexDirection:"row"})),h=x.forwardRef(function(r,t){const s=F({props:r,name:"MuiFormGroup"}),{className:a,row:c=!1}=s,l=C(s,M),u=R(),m=g({props:s,muiFormControl:u,states:["error"]}),n=e({},s,{row:c,error:m.error}),i=S(n);return G.jsx(U,e({className:d(i.root,a),ownerState:n,ref:t},l))}),E=h;export{E as F,_ as f,j as g};
@@ -1 +0,0 @@
1
- import{u as E,a6 as j,q as x,bj as R,O as P,r as s,c as S,bG as D,bi as O,j as c,ak as W}from"./index-3032db6a.js";import{A as k,S as A}from"./add-component-core-b3eca6ba.js";import"./uniqBy-cc013d52.js";import"./page-header-5c0a2996.js";import"./index-519e9ae7.js";import"./Hidden-a1b80e9e.js";import"./index-cf0d6f40.js";import"./lottie-4e5746c3.js";import"./launch-result-message-0e3fdbf5.js";import"./index-a8335229.js";import"./EditIcon-ed8572fc.js";import"./Done-633700d4.js";import"./Google-5490be4d.js";import"./TextField-96175e73.js";import"./FormControl-4663fc39.js";import"./useFormControl-9ab318bf.js";import"./InputLabel-bed0dcd9.js";import"./Select-2b1bccd7.js";import"./logo-uploader-4a745e7d.js";import"./index-3c5cb4c0.js";import"./api-e3a99650.js";import"./jss-plugin-props-sort.esm-c869dd35.js";import"./toPropertyKey-148bb9ef.js";import"./confirm-e35699f4.js";import"./DialogContentText-fd847cf2.js";import"./Alert-02ca435f.js";import"./format-error-9c154a96.js";import"./ListItem-eab030cb.js";import"./util-b9e43cfc.js";import"./index-6c4c6f2a.js";import"./TableRow-7a66e978.js";import"./index-0ad477bf.js";import"./session-f5eb6919.js";import"./did-address-d1922407.js";import"./Stepper-8a24987d.js";import"./ArrowDropDown-f3cb0e27.js";import"./useLocalStorage-a92ccca3.js";import"./Add-69c0fb05.js";import"./Launch-945ebda1.js";import"./DeleteOutline-fc84a592.js";import"./click-to-copy-520fbd72.js";import"./fallback-2685f1de.js";import"./index-0b9a893b.js";import"./Search-6e324278.js";import"./Grid-92a29bd2.js";import"./InputAdornment-079855b6.js";import"./preact.module-c0a7ffab.js";import"./content-layout-fc351aa4.js";import"./use-blocklet-info-for-connect-did-spaces-9e45dd7c.js";import"./spaces-5248a943.js";import"./index-7440d7e4.js";import"./index-4f2c3f65.js";import"./ExpandMore-e85e2c1b.js";import"./ButtonGroup-417cd258.js";function Bt(){var n;const{t:l}=E(),{blocklet:r}=j(),[u]=x(),{componentDid:d}=R(),h=P(t=>t.breakpoints.down("md")),f=u.get("mode")==="dialog",e=(n=r==null?void 0:r.meta)==null?void 0:n.did,a=new URL(window.location.href),i=(a.searchParams.get("store")||"").split(",").filter(Boolean).map(t=>{try{return new URL(t.startsWith("http")?t:`https://${t}`).origin}catch(o){return console.error(o),null}}).filter(Boolean),[w,g]=s.useState(i.map(t=>({url:t,name:t.replace("https://","")}))),m=a.searchParams.get("resourceType")||"";s.useEffect(()=>{(async()=>{try{const t=await Promise.all(i.map(async o=>{const b=S(o,"/api/store.json"),{data:y}=await D.get(b);return{url:o,name:y.name}}));g(t||[])}catch(t){console.error(t)}})()},[i.join(",")]);const C=()=>{window.parent.postMessage({event:"resourceDialog.close",componentDid:d},"*")};s.useEffect(()=>{const t=O();return e&&t.connect(),()=>{e&&t.isConnected()&&t.disconnect()}},[e]);const p=({inDialog:t=!0}={})=>c.jsx(k,{stores:w,resourceType:m,mode:"embed",inDialog:t,storageKey:A(m)});return f?c.jsx(W,{className:"resource-dialog",title:l("blocklet.publish.addResource"),maxWidth:!1,fullWidth:!1,PaperProps:{style:h?{width:"100%",height:window.innerHeight}:{maxWidth:1350,minWidth:930,width:"80%"}},onClose:(t,o)=>{o!=="backdropClick"&&C()},showCloseButton:!0,disableEscapeKeyDown:!0,open:!0,children:p()}):p({inDialog:!1})}export{Bt as default};
@@ -1 +0,0 @@
1
- import{bG as a}from"./index-3032db6a.js";a.defaults.timeout=10*1e3;const o=a.create();export{o as a};
@@ -1 +0,0 @@
1
- import{ec as o,ed as f,dz as d,r as l,ee as i,dG as v,dC as m,ef as p}from"./index-3032db6a.js";function b(n,e){var u;o&&(f(n)||console.error("useDebounceFn expected parameter is a function, got ".concat(typeof n)));var s=d(n),c=(u=e==null?void 0:e.wait)!==null&&u!==void 0?u:1e3,a=l.useMemo(function(){return i(function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return s.current.apply(s,v([],m(t),!1))},c,e)},[]);return p(function(){a.cancel()}),{run:a,cancel:a.cancel,flush:a.flush}}export{b as u};
@@ -1 +0,0 @@
1
- import{j as o}from"./index-3032db6a.js";import{S as t}from"./studio-aa91be60.js";import"./index-7d915162.js";import"./nav-menu-97f51cf7.js";import"./ExpandMore-e85e2c1b.js";import"./Toolbar-adb08177.js";import"./Hidden-a1b80e9e.js";import"./fallback-2685f1de.js";function e(){return o.jsx(t,{children:"Coming soon..."})}export{e as default};
@@ -1,12 +0,0 @@
1
- import{u as I,a7 as w,r as y,aS as A,j as o,G as S,V as T,bh as b,am as C,bp as B,cg as E,y as L,T as N}from"./index-3032db6a.js";import{d as P,D as W}from"./domain-list-97733620.js";import{d as _}from"./ExpandMore-e85e2c1b.js";import{I as R}from"./index-0ad477bf.js";import{T as $}from"./MoreVert-33a00c4e.js";import{W as r}from"./did-address-d1922407.js";import{B as H}from"./dashboard-bec9ddd7.js";import"./Add-69c0fb05.js";import"./LockIcon-9bf58065.js";import"./permission-3cecede7.js";import"./session-f5eb6919.js";import"./useAsyncRetry-b5b314a6.js";import"./useAsync-a7d3bc2b.js";import"./index-cf0d6f40.js";import"./confirm-e35699f4.js";import"./DialogContentText-fd847cf2.js";import"./Alert-02ca435f.js";import"./format-error-9c154a96.js";import"./useSetState-aaef0d6e.js";import"./util-b9e43cfc.js";import"./OpenInNew-bc4e70a9.js";import"./api-e3a99650.js";import"./TextField-96175e73.js";import"./FormControl-4663fc39.js";import"./useFormControl-9ab318bf.js";import"./InputLabel-bed0dcd9.js";import"./Select-2b1bccd7.js";import"./actions-13b77828.js";import"./CardContent-4ed9bfeb.js";import"./index-32923761.js";import"./useLocalStorage-a92ccca3.js";import"./PlayArrow-7f80f259.js";import"./ButtonGroup-417cd258.js";import"./RadioGroup-2eec8d38.js";import"./FormControlLabel-36106567.js";import"./FormGroup-73c85d30.js";import"./Avatar-6e72deed.js";import"./spaces-5248a943.js";import"./index-7440d7e4.js";import"./fallback-2685f1de.js";import"./wallet-hidden-topbar-a5a307e1.js";import"./selector-61f9cecf.js";import"./index-7d915162.js";import"./nav-menu-97f51cf7.js";import"./Toolbar-adb08177.js";import"./Hidden-a1b80e9e.js";const K={arcblock:"ArcBlock",ethereum:"Ethereum"};function O(){var u,f,v,x,h;const{t,locale:j}=I(),{info:m,inService:g}=w(),[a,k]=y.useState(!1),{blocklet:e}=A(),{appDid:l,appPid:p,migratedFrom:s=[]}=e,c=(u=e.environments.find(n=>n.key==="BLOCKLET_APP_CHAIN_TYPE"))==null?void 0:u.value,d=[l?{name:t("blocklet.appId"),value:o.jsx(r,{did:l})}:null,p?{name:t("blocklet.appPid"),value:o.jsx(r,{did:p})}:null,(s==null?void 0:s.length)>1?{name:t("blocklet.alsoKnownAs"),value:o.jsxs("div",{children:[(a?s.slice(1):s.slice(1,2)).map(n=>o.jsx(r,{did:n.appDid})),s.length>2&&o.jsx(S,{style:{marginLeft:"18px"},endIcon:a?o.jsx(P,{}):o.jsx(_,{}),onClick:()=>k(!a),children:t(a?"common.collapseAll":"blocklet.router.showAllDIDs")})]})}:null,{name:t("common.name"),value:T(e,!0)},{name:t("common.status"),value:o.jsx(H,{status:e.status,source:e.source})},b(e)?{name:"NFT",value:o.jsx(r,{external:!0,href:C((f=e==null?void 0:e.controller)==null?void 0:f.chainHost,(v=e==null?void 0:e.controller)==null?void 0:v.nftId,"asset"),did:(x=e==null?void 0:e.controller)==null?void 0:x.nftId})}:null,{name:t("blocklet.installedAt"),value:B(e.installedAt,j)},{name:t("blocklet.overview.accessControl"),value:t(`team.whoCanAccess.${E(e)}.title`)},{name:t("common.owner"),value:(h=e.settings)!=null&&h.owner?o.jsx(r,{did:e.settings.owner.did}):"--"},{name:t("blocklet.config.walletType.name"),value:K[c||"arcblock"]||c},e.externalSkSource?{name:t("blocklet.skSource"),value:e.externalSkSource}:null].filter(Boolean);g&&d.push({name:t("common.serverDid"),value:o.jsx(r,{did:m.did})},{name:t("common.serverVersion"),value:o.jsx($,{children:m.version})});const D=n=>n.map(i=>o.jsx(R,{style:{display:"flex",alignItems:"flex-start"},valueComponent:"div",nameWidth:120,name:i.name,nameFormatter:()=>i.name,children:i.value},i.name));return o.jsxs(V,{component:"div",children:[o.jsx(W,{}),o.jsx("div",{className:"title",children:o.jsx("span",{children:t("common.basicInfo")})}),o.jsx("div",{className:"basicInfo",children:D(d)})]})}O.propTypes={};const V=L(N)`
2
- .title {
3
- font-size: 1.2rem;
4
- font-weight: bold;
5
- margin-top: ${t=>t.theme.spacing(5)};
6
- margin-bottom: ${t=>t.theme.spacing(3)};
7
-
8
- &.first {
9
- margin-top: 0;
10
- }
11
- }
12
- `;export{O as default};
@@ -1 +0,0 @@
1
- import{u as n,bj as l,O as c,j as o,ak as d,B as u}from"./index-3032db6a.js";import h from"./index-cd7c729b.js";import"./useSetState-aaef0d6e.js";import"./index-8049dece.js";import"./FilterList-5f3e7cd7.js";import"./TableRow-7a66e978.js";import"./Checkbox-0df1c6bb.js";import"./FormControlLabel-36106567.js";import"./useFormControl-9ab318bf.js";import"./FormControl-4663fc39.js";import"./FormGroup-73c85d30.js";import"./InputLabel-bed0dcd9.js";import"./confirm-e35699f4.js";import"./DialogContentText-fd847cf2.js";import"./Alert-02ca435f.js";import"./format-error-9c154a96.js";import"./Select-2b1bccd7.js";import"./TextField-96175e73.js";import"./index-32923761.js";import"./LastPage-acc850e1.js";import"./Toolbar-adb08177.js";import"./index-501e8b9b.js";import"./redux-87617816.js";import"./toPropertyKey-148bb9ef.js";import"./Grid-92a29bd2.js";import"./Search-6e324278.js";import"./MoreVert-33a00c4e.js";import"./did-address-d1922407.js";import"./ChevronRight-d52f2a24.js";import"./Avatar-6e72deed.js";import"./useLocalStorage-a92ccca3.js";import"./session-f5eb6919.js";import"./InputAdornment-079855b6.js";import"./Download-53cb5917.js";import"./DeleteOutline-fc84a592.js";import"./index-3c5cb4c0.js";import"./index-7440d7e4.js";import"./ExpandMore-e85e2c1b.js";import"./OpenInNew-bc4e70a9.js";import"./api-e3a99650.js";const i=new URL(window.location.href),r=i.searchParams.get("mode")==="dialog",g=r?"":i.searchParams.get("padding")||"";function io(){const{t:e}=n(),{componentDid:s}=l(),p=c(a=>a.breakpoints.down("md")),m=()=>{window.parent.postMessage({event:"resourceDialog.close",componentDid:s},"*")},t=o.jsx(h,{padding:g});return r?o.jsx(d,{className:"resource-dialog",title:e("blocklet.publish.createResource"),maxWidth:!1,fullWidth:!1,PaperProps:{style:p?{width:"100%",height:window.innerHeight}:{maxWidth:1350,minWidth:930,width:"80%"}},onClose:m,showCloseButton:!0,disableEscapeKeyDown:!0,open:!0,children:o.jsx(u,{sx:{height:"72vh",overflow:"auto",position:"relative"},children:t})}):t}export{io as default};
@@ -1 +0,0 @@
1
- import{r as o,b8 as t}from"./index-3032db6a.js";function e(){return o.useContext(t)}export{e as u};
@@ -1 +0,0 @@
1
- import{j as r,aq as o}from"./index-3032db6a.js";const e=require("flat"),s=require("./en"),a=require("./zh"),i={zh:e(a),en:e(s)};function l(n){return function(t){return r.jsx(o,{translations:i,children:r.jsx(n,{...t})})}}export{l as w};