line-md 0.0.2 → 0.2.0

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 (270) hide show
  1. package/.editorconfig +13 -0
  2. package/.github/FUNDING.yml +1 -0
  3. package/.prettierrc +3 -3
  4. package/README.md +8 -26
  5. package/license.txt +0 -0
  6. package/line-md.json +699 -681
  7. package/package.json +30 -9
  8. package/svg/account-add.svg +1 -1
  9. package/svg/account-alert.svg +1 -1
  10. package/svg/account-delete.svg +1 -1
  11. package/svg/account-remove.svg +1 -1
  12. package/svg/account-small.svg +1 -1
  13. package/svg/account.svg +1 -1
  14. package/svg/alert-circle-twotone.svg +1 -1
  15. package/svg/alert-circle.svg +1 -1
  16. package/svg/alert-twotone.svg +1 -1
  17. package/svg/alert.svg +1 -1
  18. package/svg/align-center.svg +1 -1
  19. package/svg/align-justify.svg +1 -1
  20. package/svg/align-left.svg +1 -1
  21. package/svg/align-right.svg +1 -0
  22. package/svg/arrow-align-bottom.svg +1 -0
  23. package/svg/arrow-align-center.svg +1 -1
  24. package/svg/arrow-align-left.svg +1 -1
  25. package/svg/arrow-align-middle.svg +1 -0
  26. package/svg/arrow-align-right.svg +1 -0
  27. package/svg/arrow-align-top.svg +1 -0
  28. package/svg/arrow-close-down.svg +1 -0
  29. package/svg/arrow-close-left.svg +1 -1
  30. package/svg/arrow-close-right.svg +1 -0
  31. package/svg/arrow-close-up.svg +1 -0
  32. package/svg/arrow-down-circle-twotone.svg +1 -0
  33. package/svg/arrow-down-circle.svg +1 -0
  34. package/svg/arrow-down.svg +1 -0
  35. package/svg/arrow-left-circle-twotone.svg +1 -1
  36. package/svg/arrow-left-circle.svg +1 -1
  37. package/svg/arrow-left.svg +1 -1
  38. package/svg/arrow-long-diagonal-rotated.svg +1 -0
  39. package/svg/arrow-long-diagonal.svg +1 -1
  40. package/svg/arrow-open-down.svg +1 -0
  41. package/svg/arrow-open-left.svg +1 -1
  42. package/svg/arrow-open-right.svg +1 -0
  43. package/svg/arrow-open-up.svg +1 -0
  44. package/svg/arrow-right-circle-twotone.svg +1 -0
  45. package/svg/arrow-right-circle.svg +1 -0
  46. package/svg/arrow-right.svg +1 -0
  47. package/svg/arrow-small-down.svg +1 -0
  48. package/svg/arrow-small-left.svg +1 -1
  49. package/svg/arrow-small-right.svg +1 -0
  50. package/svg/arrow-small-up.svg +1 -0
  51. package/svg/arrow-up-circle-twotone.svg +1 -0
  52. package/svg/arrow-up-circle.svg +1 -0
  53. package/svg/arrow-up.svg +1 -0
  54. package/svg/arrows-diagonal-rotated.svg +1 -0
  55. package/svg/arrows-diagonal.svg +1 -1
  56. package/svg/arrows-horizontal-alt.svg +1 -1
  57. package/svg/arrows-horizontal.svg +1 -1
  58. package/svg/arrows-vertical-alt.svg +1 -0
  59. package/svg/arrows-vertical.svg +1 -0
  60. package/svg/bell-twotone.svg +1 -1
  61. package/svg/bell.svg +1 -1
  62. package/svg/calendar-out.svg +1 -0
  63. package/svg/calendar.svg +1 -0
  64. package/svg/cancel-twotone.svg +1 -1
  65. package/svg/cancel.svg +1 -1
  66. package/svg/check-list-3-solid.svg +1 -0
  67. package/svg/check-list-3-twotone.svg +1 -0
  68. package/svg/check-list-3.svg +1 -0
  69. package/svg/chevron-double-down.svg +1 -0
  70. package/svg/chevron-double-left.svg +1 -1
  71. package/svg/chevron-double-right.svg +1 -0
  72. package/svg/chevron-double-up.svg +1 -0
  73. package/svg/chevron-down-circle-twotone.svg +1 -0
  74. package/svg/chevron-down-circle.svg +1 -0
  75. package/svg/chevron-down.svg +1 -0
  76. package/svg/chevron-left-circle-twotone.svg +1 -1
  77. package/svg/chevron-left-circle.svg +1 -1
  78. package/svg/chevron-left.svg +1 -1
  79. package/svg/chevron-right-circle-twotone.svg +1 -0
  80. package/svg/chevron-right-circle.svg +1 -0
  81. package/svg/chevron-right.svg +1 -0
  82. package/svg/chevron-small-double-down.svg +1 -0
  83. package/svg/chevron-small-double-left.svg +1 -1
  84. package/svg/chevron-small-double-right.svg +1 -0
  85. package/svg/chevron-small-double-up.svg +1 -0
  86. package/svg/chevron-small-down.svg +1 -0
  87. package/svg/chevron-small-left.svg +1 -1
  88. package/svg/chevron-small-right.svg +1 -0
  89. package/svg/chevron-small-triple-down.svg +1 -0
  90. package/svg/chevron-small-triple-left.svg +1 -1
  91. package/svg/chevron-small-triple-right.svg +1 -0
  92. package/svg/chevron-small-triple-up.svg +1 -0
  93. package/svg/chevron-small-up.svg +1 -0
  94. package/svg/chevron-triple-down.svg +1 -0
  95. package/svg/chevron-triple-left.svg +1 -1
  96. package/svg/chevron-triple-right.svg +1 -0
  97. package/svg/chevron-triple-up.svg +1 -0
  98. package/svg/chevron-up-circle-twotone.svg +1 -0
  99. package/svg/chevron-up-circle.svg +1 -0
  100. package/svg/chevron-up.svg +1 -0
  101. package/svg/circle-twotone.svg +1 -1
  102. package/svg/circle.svg +1 -1
  103. package/svg/clipboard-arrow-twotone.svg +1 -1
  104. package/svg/clipboard-arrow.svg +1 -1
  105. package/svg/clipboard-check-twotone.svg +1 -1
  106. package/svg/clipboard-check.svg +1 -1
  107. package/svg/clipboard-list-twotone.svg +1 -1
  108. package/svg/clipboard-list.svg +1 -1
  109. package/svg/clipboard-minus-twotone.svg +1 -1
  110. package/svg/clipboard-minus.svg +1 -1
  111. package/svg/clipboard-plus-twotone.svg +1 -1
  112. package/svg/clipboard-plus.svg +1 -1
  113. package/svg/clipboard-twotone.svg +1 -1
  114. package/svg/clipboard.svg +1 -1
  115. package/svg/close-circle-twotone.svg +1 -1
  116. package/svg/close-circle.svg +1 -1
  117. package/svg/close.svg +1 -1
  118. package/svg/cloud-down-twotone.svg +1 -1
  119. package/svg/cloud-down.svg +1 -1
  120. package/svg/cloud-filled.svg +1 -1
  121. package/svg/cloud-twotone.svg +1 -1
  122. package/svg/cloud-up-twotone.svg +1 -1
  123. package/svg/cloud-up.svg +1 -1
  124. package/svg/cloud.svg +1 -1
  125. package/svg/computer-twotone.svg +1 -1
  126. package/svg/computer.svg +1 -1
  127. package/svg/confirm-circle-twotone.svg +1 -1
  128. package/svg/confirm-circle.svg +1 -1
  129. package/svg/confirm.svg +1 -1
  130. package/svg/construction-twotone.svg +1 -1
  131. package/svg/construction.svg +1 -1
  132. package/svg/discord-twotone.svg +1 -0
  133. package/svg/discord.svg +1 -0
  134. package/svg/document-add-twotone.svg +1 -1
  135. package/svg/document-add.svg +1 -1
  136. package/svg/document-code-twotone.svg +1 -1
  137. package/svg/document-code.svg +1 -1
  138. package/svg/document-list-twotone.svg +1 -1
  139. package/svg/document-list.svg +1 -1
  140. package/svg/document-remove-twotone.svg +1 -1
  141. package/svg/document-remove.svg +1 -1
  142. package/svg/document-report-twotone.svg +1 -1
  143. package/svg/document-report.svg +1 -1
  144. package/svg/document-twotone.svg +1 -1
  145. package/svg/document.svg +1 -1
  146. package/svg/double-arrow-horizontal.svg +1 -1
  147. package/svg/double-arrow-vertical.svg +1 -0
  148. package/svg/edit-twotone-full.svg +1 -1
  149. package/svg/edit-twotone.svg +1 -1
  150. package/svg/edit.svg +1 -1
  151. package/svg/email-opened-twotone-alt.svg +1 -1
  152. package/svg/email-opened-twotone.svg +1 -1
  153. package/svg/email-opened.svg +1 -1
  154. package/svg/email-twotone-alt.svg +1 -1
  155. package/svg/email-twotone.svg +1 -1
  156. package/svg/email.svg +1 -1
  157. package/svg/emoji-angry-twotone.svg +1 -1
  158. package/svg/emoji-angry.svg +1 -1
  159. package/svg/emoji-frown-open-twotone.svg +1 -1
  160. package/svg/emoji-frown-open.svg +1 -1
  161. package/svg/emoji-frown-twotone.svg +1 -1
  162. package/svg/emoji-frown.svg +1 -1
  163. package/svg/emoji-grin-twotone.svg +1 -1
  164. package/svg/emoji-grin.svg +1 -1
  165. package/svg/emoji-neutral-twotone.svg +1 -1
  166. package/svg/emoji-neutral.svg +1 -1
  167. package/svg/emoji-smile-twotone.svg +1 -1
  168. package/svg/emoji-smile-wink-twotone.svg +1 -1
  169. package/svg/emoji-smile-wink.svg +1 -1
  170. package/svg/emoji-smile.svg +1 -1
  171. package/svg/external-link-rounded.svg +1 -1
  172. package/svg/external-link.svg +1 -1
  173. package/svg/facebook.svg +1 -1
  174. package/svg/github-loop.svg +1 -0
  175. package/svg/github-twotone.svg +1 -1
  176. package/svg/github.svg +1 -1
  177. package/svg/grid-3-solid.svg +1 -1
  178. package/svg/grid-3-twotone.svg +1 -1
  179. package/svg/grid-3.svg +1 -1
  180. package/svg/hash-small.svg +1 -1
  181. package/svg/hash.svg +1 -1
  182. package/svg/heart-filled-half.svg +1 -1
  183. package/svg/heart-filled.svg +1 -1
  184. package/svg/heart-half-filled.svg +1 -1
  185. package/svg/heart-half-twotone.svg +1 -1
  186. package/svg/heart-half.svg +1 -1
  187. package/svg/heart-twotone-half-filled.svg +1 -1
  188. package/svg/heart-twotone-half.svg +1 -1
  189. package/svg/heart-twotone.svg +1 -1
  190. package/svg/heart.svg +1 -1
  191. package/svg/home-md-twotone-alt.svg +1 -1
  192. package/svg/home-md-twotone.svg +1 -1
  193. package/svg/home-md.svg +1 -1
  194. package/svg/home-simple-filled.svg +1 -1
  195. package/svg/home-simple-twotone.svg +1 -1
  196. package/svg/home-simple.svg +1 -1
  197. package/svg/home-twotone-alt.svg +1 -1
  198. package/svg/home-twotone.svg +1 -1
  199. package/svg/home.svg +1 -1
  200. package/svg/iconify1.svg +1 -1
  201. package/svg/image-twotone.svg +1 -1
  202. package/svg/image.svg +1 -1
  203. package/svg/laptop-twotone.svg +1 -1
  204. package/svg/laptop.svg +1 -1
  205. package/svg/linkedin.svg +1 -1
  206. package/svg/list-3-solid.svg +1 -1
  207. package/svg/list-3-twotone.svg +1 -1
  208. package/svg/list-3.svg +1 -1
  209. package/svg/list-indented.svg +1 -1
  210. package/svg/list.svg +1 -1
  211. package/svg/marker-filled.svg +1 -1
  212. package/svg/marker-twotone.svg +1 -1
  213. package/svg/marker.svg +1 -1
  214. package/svg/menu-fold-left.svg +1 -1
  215. package/svg/menu-fold-right.svg +1 -0
  216. package/svg/menu-unfold-left.svg +1 -1
  217. package/svg/menu-unfold-right.svg +1 -0
  218. package/svg/menu.svg +1 -1
  219. package/svg/minus-circle-twotone.svg +1 -1
  220. package/svg/minus-circle.svg +1 -1
  221. package/svg/minus.svg +1 -1
  222. package/svg/navigation-left-down.svg +1 -0
  223. package/svg/navigation-left-up.svg +1 -1
  224. package/svg/navigation-right-down.svg +1 -0
  225. package/svg/navigation-right-up.svg +1 -0
  226. package/svg/paint-drop-filled.svg +1 -1
  227. package/svg/paint-drop-half-filled-twotone.svg +1 -1
  228. package/svg/paint-drop-half-filled.svg +1 -1
  229. package/svg/paint-drop-half-twotone.svg +1 -1
  230. package/svg/paint-drop-twotone.svg +1 -1
  231. package/svg/paint-drop.svg +1 -1
  232. package/svg/pencil-twotone-alt.svg +1 -1
  233. package/svg/pencil-twotone.svg +1 -1
  234. package/svg/pencil.svg +1 -1
  235. package/svg/plus-circle-twotone.svg +1 -1
  236. package/svg/plus-circle.svg +1 -1
  237. package/svg/plus.svg +1 -1
  238. package/svg/question-circle-twotone.svg +1 -1
  239. package/svg/question-circle.svg +1 -1
  240. package/svg/question.svg +1 -1
  241. package/svg/remove.svg +1 -1
  242. package/svg/rotate-180.svg +1 -1
  243. package/svg/rotate-270.svg +1 -1
  244. package/svg/rotate-90.svg +1 -1
  245. package/svg/search-filled.svg +1 -1
  246. package/svg/search-twotone.svg +1 -1
  247. package/svg/search.svg +1 -1
  248. package/svg/thumbs-down-twotone.svg +1 -1
  249. package/svg/thumbs-down.svg +1 -1
  250. package/svg/thumbs-up-twotone.svg +1 -1
  251. package/svg/thumbs-up.svg +1 -1
  252. package/svg/twitter-twotone.svg +1 -1
  253. package/svg/twitter.svg +1 -1
  254. package/svg/valign-baseline-twotone.svg +1 -0
  255. package/svg/valign-baseline.svg +1 -0
  256. package/svg/valign-bottom-twotone.svg +1 -0
  257. package/svg/valign-bottom.svg +1 -0
  258. package/svg/valign-middle-twotone.svg +1 -0
  259. package/svg/valign-middle.svg +1 -0
  260. package/svg/valign-top-twotone.svg +1 -0
  261. package/svg/valign-top.svg +1 -0
  262. package/export.js +0 -17
  263. package/icon-finder/iconify.min.js +0 -13
  264. package/icon-finder/iconify2.css +0 -2409
  265. package/icon-finder/iconify2.js +0 -19167
  266. package/icon-finder/iconify2.js.map +0 -1
  267. package/icon-finder/iconify2.min.js +0 -1
  268. package/index.html +0 -67
  269. package/line-md.css +0 -46
  270. package/svg/iconify2.svg +0 -1
@@ -1 +0,0 @@
1
- !function(){"use strict";!function(t){function e(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var i=e(t),n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function o(t,e,i){return t(i={path:e,exports:{},require:function(t,e){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==e&&i.path)}},i.exports),i.exports}var r=o((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.match=e.compareObjects=e.cloneObject=void 0,e.cloneObject=function t(e){if("object"!=typeof e||null===e)return e;if(e instanceof Array)return e.map(e=>"object"==typeof e?t(e):e);const i={};let n;for(n in e)"object"!=typeof e[n]?i[n]=e[n]:i[n]=t(e[n]);return i},e.compareObjects=function t(e,i){if("object"!=typeof e||"object"!=typeof i)return e===i;if(e===i)return!0;if(null===e||null===i)return!1;if(e instanceof Array){if(!(i instanceof Array))return!1;if(e.length!==i.length)return!1;for(let n=0;n<e.length;n++){const o=e[n],r=i[n];if(o!==r&&("object"!=typeof o||"object"!=typeof r||!t(o,r)))return!1}return!0}if(i instanceof Array)return!1;const n=Object.keys(e),o=Object.keys(i);if(n.length!==o.length)return!1;for(let o=0;o<n.length;o++){const r=n[o];if(typeof e[r]!=typeof i[r])return!1;if("object"==typeof e[r]){if(!t(e[r],i[r]))return!1}else if(e[r]!==i[r])return!1}return!0},e.match=function t(e,i){if("number"==typeof e&&(e=""+e),"string"==typeof e)return-1!==e.toLowerCase().indexOf(i);if("object"!=typeof e||null===e)return!1;if(e instanceof Array){for(let n=0;n<e.length;n++)if(t(e[n],i))return!0;return!1}for(const n in e)if(t(e[n],i))return!0;return!1}})),s=o((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.customisedConfig=e.createConfig=e.mergeConfig=e.setComponentsConfig=void 0;const i={ui:{itemsPerPage:52,viewUpdateDelay:300,showSiblingCollections:2},router:{home:""},components:{}};function n(t,e){for(const i in e){const n=i,o=t[n];if(void 0===o)continue;const r=e[n];for(const t in r){const e=t;void 0!==o[e]&&(o[e]=r[e])}}}e.setComponentsConfig=function(t){i.components=Object.assign(t)},e.mergeConfig=n,e.createConfig=function(t={}){const e=r.cloneObject(i);return t&&n(e,t),e},e.customisedConfig=function(t){const e={};for(const n in t){const o=n,r=i[o],s=t[o],l={};let c=!1;for(const t in s){const e=t;s[e]!==r[e]&&(l[e]=s[e],c=!0)}c&&(e[o]=l)}return e}})),l=o((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.Events=void 0;e.Events=class{constructor(){this._subscribers=Object.create(null)}subscribe(t,e,i){void 0===this._subscribers[t]?this._subscribers[t]=[]:"string"==typeof i&&(this._subscribers[t]=this._subscribers[t].filter(t=>t.key!==i)),this._subscribers[t].push({callback:e,key:i})}unsubscribe(t,e){if(void 0===this._subscribers[t])return;let i;switch(typeof e){case"function":i="callback";break;case"string":i="key";break;default:return}this._subscribers[t]=this._subscribers[t].filter(t=>t[i]!==e)}hasListeners(t){return void 0!==this._subscribers[t]&&this._subscribers[t].length>0}fire(t,e,i=!1){this.hasListeners(t)&&(i?setTimeout(()=>{this._fire(t,e)}):this._fire(t,e))}_fire(t,e){this._subscribers[t].forEach(i=>{i.callback(e,t)})}}})),c=o((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.iconToString=e.compareIcons=e.validateIcon=e.stringToIcon=e.match=void 0,e.match=/^[a-z0-9]+(-[a-z0-9]+)*$/,e.stringToIcon=(t,e="")=>{const i=t.split(":");if("@"===t.slice(0,1)){if(i.length<2||i.length>3)return null;e=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){const t=i.pop(),n=i.pop();return{provider:i.length>0?i[0]:e,prefix:n,name:t}}const n=i[0].split("-");return n.length>1?{provider:e,prefix:n.shift(),name:n.join("-")}:null},e.validateIcon=t=>!!t&&!(""!==t.provider&&!t.provider.match(e.match)||!t.prefix.match(e.match)||!t.name.match(e.match)),e.compareIcons=(t,e)=>null!==t&&null!==e&&t.provider===e.provider&&t.name===e.name&&t.prefix===e.prefix,e.iconToString=t=>(""===t.provider?"":"@"+t.provider+":")+t.prefix+":"+t.name})),a=o((function(t,e){var o=n&&n.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.listProviders=e.addProvider=e.getProvider=e.convertProviderData=void 0;const r=o(i.default),s={home:"",collection:"",icon:""},l={package:"",icon:""},a={provider:"",title:"",api:"",links:s,npm:l},u=Object.create(null),f=Object.create(null),d="https://iconify.design/icon-sets/",h="@iconify/icons-{prefix}";u[""]={config:{},title:"Iconify",links:{home:d,collection:d+"{prefix}/",icon:d+"{prefix}/{name}.html"},npm:{package:h,icon:h+"/{name}"}};const p={title:"",links:s,npm:l};e.convertProviderData=function(t,e){const i=e.provider;if("string"!=typeof i||""!==i&&!i.match(c.match))return null;const n={};for(const o in a){const r=o;let s,l;switch(r){case"title":n.title="string"==typeof e.title?e.title:i;break;case"provider":n.provider=i;break;case"api":if("string"==typeof e.api&&""!==e.api)n.api=[e.api];else if(e.api instanceof Array)n.api=e.api;else{if(""===t)return null;n.api=[t]}break;case"npm":case"links":if(s=a[r],"object"==typeof e[r]&&e[r]){const t=e[r];l={};for(const e in s){const i=e;"string"==typeof t[i]?l[i]=t[i]:l[i]=s[i]}}else l=s;n[r]=l}}const o=n;return{config:{resources:o.api},title:o.title,links:o.links,npm:o.npm}},e.getProvider=function(t){if(void 0===f[t]){if(void 0===u[t])return null;const e=u[t],i=r.default._internal.getAPI(t);if(void 0===i)f[t]=null;else{f[t]={config:i.config,redundancy:i.redundancy};const n=f[t],o=e;for(const t in p)void 0!==o[t]?n[t]=o[t]:n[t]=p[t]}}return f[t]},e.addProvider=function(t,e){void 0===u[t]&&(void 0===e.title&&(e.title=t),u[t]=e,r.default.addAPIProvider(t,e.config))},e.listProviders=function(){return Object.keys(u).sort()}})),u=o((function(t,e){function i(t,e){let i=t,n=-1!==i.indexOf("?");function o(t,e){switch(typeof t){case"boolean":if(e)throw new Error("Nested boolean items are not allowed");return t?"true":"false";case"number":case"string":return encodeURIComponent(t);case"object":if(e)throw new Error("Nested objects are not allowed");if(t instanceof Array)return t.map(t=>o(t,!0)).join(",");throw new Error("Objects are not allowed");default:throw new Error("Invalid type")}}return Object.keys(e).forEach(t=>{let r;try{r=o(e[t],!1)}catch(t){return}i+=(n?"&":"?")+encodeURIComponent(t)+"="+r,n=!0}),i}Object.defineProperty(e,"__esModule",{value:!0}),e.BaseAPI=e.mergeQuery=void 0,e.mergeQuery=i;e.BaseAPI=class{constructor(t){this._cache=Object.create(null),this._registry=t,this._query=this._query.bind(this)}query(t,e,n,o,r=!1){const s=i(e,n);void 0===this._cache[t]&&(this._cache[t]=Object.create(null));const l=this._cache[t];if(!r&&void 0!==l[s])return void setTimeout(()=>{const t=l[s];o(null===t?null:JSON.parse(t),!0)});const c=this._getRedundancy(t);if(!c)return void setTimeout(()=>{o(null,!1)});const a=c.find(t=>{const e=t();return"pending"===e.status&&e.payload===s});null===a?c.query(s,this._query.bind(this,t),t=>{o(t,!1)}):a().subscribe(t=>{o(t,!1)})}isCached(t,e,n){const o=i(e,n);return void 0!==this._cache[t]&&void 0!==this._cache[t][o]}isPending(t,e,n){const o=this._getRedundancy(t);if(!o)return!1;const r=i(e,n);return null!==o.find(t=>{const e=t();return"pending"===e.status&&e.payload===r})}_query(t,e,i,n){throw new Error("_query() should not be called on base API class")}_storeCache(t,e,i){void 0===this._cache[t]&&(this._cache[t]=Object.create(null)),this._cache[t][e]=null===i?null:JSON.stringify(i)}clearCache(){this._cache=Object.create(null)}_getRedundancy(t){const e=a.getProvider(t);return e?e.redundancy:null}}})),f=o((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.API=void 0;class i extends u.BaseAPI{sendQuery(t,e,i){fetch(t+e).then(t=>{if(404!==t.status){if(200===t.status)return t.json();i("error",null)}else i("not_found",null)}).then(t=>{"object"==typeof t&&null!==t?i("success",t):i("error",null)}).catch(()=>{i("error",null)})}_query(t,e,i,n){this.sendQuery(e,i,(e,o)=>{switch(e){case"success":case"not_found":this._storeCache(t,i,o),n.done(o)}})}}e.API=i})),d=o((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.getRegistry=e.destroyRegistry=e.getSharedData=e.saveRegistry=e.addRegistry=e.uniqueId=void 0;const i=Object.create(null),n=Object.create(null);e.uniqueId=function(t){let e,i=0;for(;void 0!==n[e=t+i];)i++;return e},e.addRegistry=function(t){const e=t.namespace,n=t.id;return void 0===i[e]?(i[e]={ids:[n],data:Object.create(null)},!0):(i[e].ids.push(n),!1)},e.saveRegistry=function(t){n[t.id]=t},e.getSharedData=function(t){return i[t].data},e.destroyRegistry=function(t){void 0!==n[t.id]&&(delete n[t.id],i[t.namespace].ids=i[t.namespace].ids.filter(e=>e!==t.id))},e.getRegistry=t=>n[t]})),h=o((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.objectToRouteParams=e.routeParamsToObject=e.emptyRouteDefaults=e.customRouteDefaults=e.searchRouteDefaults=e.collectionRouteDefaults=e.collectionsRouteDefaults=void 0,e.collectionsRouteDefaults={provider:"",filter:"",category:null},e.collectionRouteDefaults={provider:"",prefix:"",filter:"",page:0,tag:null,themePrefix:null,themeSuffix:null},e.searchRouteDefaults={provider:"",search:"",short:!0,page:0},e.customRouteDefaults={customType:"",filter:"",page:0},e.emptyRouteDefaults={},e.routeParamsToObject=(t,i)=>{const n={};let o,r;switch(t){case"collections":o=e.collectionsRouteDefaults;break;case"collection":o=e.collectionRouteDefaults;break;case"search":o=e.searchRouteDefaults;break;case"custom":o=e.customRouteDefaults;break;case"empty":o=e.emptyRouteDefaults;break;default:throw new Error("Unknown route type in routeParamsToObject(): "+t)}for(r in o){const t=r,e=i[t];("object"!=typeof o[t]&&typeof e==typeof o[t]&&e!==o[t]||null===o[t]&&"string"==typeof e)&&(n[r]=e)}return n};const i=["filter","search","provider"];e.objectToRouteParams=(t,n)=>{let o,r;null!==n&&"object"==typeof n||(n={});const s=[];switch(t){case"collections":o=e.collectionsRouteDefaults,r={};break;case"collection":s.push("prefix"),o=e.collectionRouteDefaults,r={};break;case"search":s.push("search"),o=e.searchRouteDefaults,r={};break;case"custom":s.push("customType"),o=e.customRouteDefaults,r={};break;case"empty":o=e.emptyRouteDefaults,r={};break;default:throw new Error("Unknown route type in objectToRouteParams(): "+t)}let l;for(l in r=Object.assign({},o),o){const t=l;void 0!==n[t]&&((null===o[t]&&"string"==typeof n[t]||"object"!=typeof o[t]&&typeof o[t]==typeof n[t])&&(r[t]=n[t]))}return s.forEach(t=>{const e=t;if("string"!=typeof r[e]||""===r[e])throw new Error(`Missing required route parameter "${t}" in objectToRouteParams()`)}),i.forEach(t=>{const e=t;"string"==typeof r[e]&&(r[e]=r[e].toLowerCase())}),r}})),p=o((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.objectToRoute=e.routeToObject=void 0,e.routeToObject=t=>{const i={type:t.type},n=h.routeParamsToObject(t.type,t.params);if(Object.keys(n).length>0&&(i.params=n),t.parent){const n=e.routeToObject(t.parent);null!==n&&(i.parent=n)}return i};e.objectToRoute=(t,i=null)=>{if(null===t||"object"!=typeof t)return i;const n=t;if(!(t=>{switch(t){case"collections":case"collection":case"search":case"custom":case"empty":break;default:return!1}return"string"==typeof t})(n.type))return i;let o,r=null;if("object"==typeof n.parent&&null!==n.parent&&(r=e.objectToRoute(n.parent,null),null===r))return i;try{o=h.objectToRouteParams(n.type,"object"==typeof n.params&&n.params?n.params:{})}catch(t){return i}const s={type:n.type,params:o,parent:r};switch(n.type){case"collections":case"collection":case"search":case"custom":case"empty":return s;default:return null}}})),g=o((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.BaseView=void 0;e.BaseView=class{constructor(){this.type="",this.parent=null,this.updating=!1,this.error="",this.blocksRequireUpdate=!0,this.loading=!0,this._loadingTimer=null,this._alreadyLoaded=!1,this._startedLoading=!1,this.onLoad=null,this._mustWaitForParent=!1}_parentAction(t){if(null===this.parent)return;const e="number"==typeof t&&t>0?t:1;d.getRegistry(this._instance).router.setParentView(e)}_providerAction(t){if("string"!=typeof t)return;if(!a.getProvider(t))return;d.getRegistry(this._instance).router.home(t)}startLoading(){this._startedLoading||(this.loading?(this._mustWaitForParent&&null!==this.parent&&this.parent.startLoading(),this._startLoading()):this._startedLoading=!0)}_startLoading(){throw new Error("startLoading should not be called on base view")}_searchAction(t,e){if("string"!=typeof e||""===e.trim())return;const i=e.trim().toLowerCase();let n=this,o=0;for(;"collections"!==n.type;){if(null===n.parent)return;n=n.parent,o++}d.getRegistry(this._instance).router.createChildView({type:"search",params:{provider:t,search:i}},o)}_loadAPI(t,e,i){const n=d.getRegistry(this._instance),o=a.getProvider(t),r=o?o.config:null,s=n.api;let l=0;r&&"number"==typeof r.rotate&&"number"==typeof r.timeout&&"number"==typeof r.limit&&r.limit>0&&(l=r.timeout+r.rotate*(r.resources.length-1),l*=r.limit),l>0&&(this._loadingTimer=setTimeout(()=>{null!==this._loadingTimer&&(clearTimeout(this._loadingTimer),this._loadingTimer=null),this.loading&&""===this.error&&(this.error="timeout",this.loading=!1,this._triggerLoaded())},l)),s.query(t,e,i,t=>{null!==this._loadingTimer&&(clearTimeout(this._loadingTimer),this._loadingTimer=null),null!==t&&this._mustWaitForParent?this._waitForParent(()=>{this._parseAPIData(t)}):this._parseAPIData(t)})}_waitForParent(t){this._mustWaitForParent&&null!==this.parent&&this.parent.loading?this.parent.onLoad=t:t()}_parseAPIData(t){throw new Error("_parseAPIData should not be called on base view")}_triggerLoaded(){if(this._alreadyLoaded)return void this._triggerUpdated();this._alreadyLoaded=!0;if(d.getRegistry(this._instance).events.fire("view-loaded",this),null!==this.onLoad){const t=this.onLoad;this.onLoad=null,t()}}_triggerUpdated(){this.updating||(this.updating=!0,setTimeout(()=>{this.updating=!1;d.getRegistry(this._instance).events.fire("view-updated",this)}))}}})),m=o((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.isCollectionsFilterBlockEmpty=e.defaultCollectionsFilterBlock=void 0,e.defaultCollectionsFilterBlock=()=>({type:"collections-filter",keyword:""}),e.isCollectionsFilterBlockEmpty=function(t){return null==t||""===t.keyword.trim()}})),y=o((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.rawDataToCollection=e.dataToCollection=e.dataToCollectionInfo=void 0;function i(t,e=""){if("object"!=typeof t||null===t)return null;const i=t,n=(t,e,n="")=>{if("object"!=typeof i[t])return n;const o=i[t];return"string"==typeof o[e]?o[e]:n};let o,r;if("string"==typeof i.name)o=i.name;else{if("string"!=typeof i.title)return null;o=i.title}if(""===e){if("string"!=typeof i.prefix)return null;r=i.prefix}else{if("string"==typeof i.prefix&&i.prefix!==e)return null;r=e}const s={prefix:r,name:o,total:"number"==typeof i.total?i.total:0,version:"string"==typeof i.version?i.version:"",author:{name:n("author","name","string"==typeof i.author?i.author:"Unknown"),url:n("author","url","")},license:{title:n("license","title","string"==typeof i.license?i.license:"Unknown"),spdx:n("license","spdx",""),url:n("license","url","")},samples:[],category:"string"==typeof i.category?i.category:"",palette:"boolean"==typeof i.palette&&i.palette};if("string"==typeof i.total){const t=parseInt(i.total);t>0&&(s.total=t)}if(i.samples instanceof Array&&i.samples.forEach(t=>{s.samples.length<3&&"string"==typeof t&&s.samples.push(t)}),"number"==typeof i.height||"string"==typeof i.height){const t=parseInt(i.height);t>0&&(s.height=t)}if(i.height instanceof Array)switch(i.height.forEach(t=>{const e=parseInt(t);e>0&&(s.height instanceof Array||(s.height=[]),s.height.push(e))}),s.height.length){case 0:delete s.height;break;case 1:s.height=s.height[0]}if("number"==typeof s.height){for(s.displayHeight=s.height;s.displayHeight<16;)s.displayHeight*=2;for(;s.displayHeight>24;)s.displayHeight/=2;(s.displayHeight!==Math.round(s.displayHeight)||s.displayHeight<16||s.displayHeight>24)&&delete s.displayHeight}if("number"==typeof i.displayHeight||"string"==typeof i.displayHeight){const t=parseInt(i.displayHeight);t>=16&&t<=24&&Math.round(t)===t&&(s.displayHeight=t)}if("string"==typeof i.palette)switch(i.palette.toLowerCase()){case"colorless":case"false":s.palette=!1;break;case"colorful":case"true":s.palette=!0}return Object.keys(i).forEach(t=>{const e=i[t];if("string"==typeof e)switch(t){case"url":case"uri":s.author.url=e;break;case"licenseURL":case"licenseURI":s.license.url=e;break;case"licenseID":case"licenseSPDX":s.license.spdx=e}}),s}function n(t,e,i){const n=[],o=[];if(Object.keys(t).forEach(i=>{const r=t[i];if(void 0!==r.prefix){let t=r.prefix;"-"!==t.slice(-1)&&(t+="-");const i=t.length;let o=!1;e.forEach(e=>{e.name.slice(0,i)===t&&(e.themePrefix=r.title,o=!0)}),o&&n.push(r.title)}if(void 0!==r.suffix){let t=r.suffix;"-"!==t.slice(0,1)&&(t="-"+t);const i=0-t.length;let n=!1;e.forEach(e=>{e.name.slice(i)===t&&(e.themeSuffix=r.title,n=!0)}),n&&o.push(r.title)}}),n.length){let t=!1;e.forEach(e=>{void 0===e.themePrefix&&(e.themePrefix="",t=!0)}),t&&n.push(""),n.length>1?i.themePrefixes=n:e.forEach(t=>delete t.themePrefix)}if(o.length){let t=!1;e.forEach(e=>{void 0===e.themeSuffix&&(e.themeSuffix="",t=!0)}),t&&o.push(""),o.length>1?i.themeSuffixes=o:e.forEach(t=>delete t.themeSuffix)}}function o(t,e){Object.keys(t).forEach(i=>{const n=t[i];if(void 0!==e[n]){const t=e[n];void 0===t.chars&&(t.chars=[]),t.chars.push(i)}})}function r(t){const e=[];return Object.keys(t).sort((t,e)=>t.localeCompare(e)).forEach(i=>{e.push(t[i])}),e}function s(t,e){return""===t?1:""===e?-1:t.localeCompare(e)}e.dataToCollectionInfo=i,e.dataToCollection=function(t,e){if("object"!=typeof e||null===e)return null;const l=e;if("string"!=typeof l.prefix)return null;const c={provider:t,prefix:l.prefix,name:"",total:0,icons:[]};if("object"==typeof l.info&&null!==l.info){const t=i(l.info,c.prefix);if(null===t)return null;c.info=t}if("string"==typeof l.name)c.name=l.name;else if("string"==typeof l.title)c.name=l.title;else{if(void 0===c.info)return null;c.name=c.info.name}let a="object"==typeof l.categories&&null!==l.categories?Object.keys(l.categories):[],u=!1,f="uncategorized";["uncategorized","uncategorised"].forEach(t=>{"object"==typeof l[t]&&l[t]instanceof Array&&l[t].length>0&&(f=t,u=!0)});const d=Object.create(null);function h(e,i){let n=!1;return e.forEach(e=>{if("string"==typeof e)if(n=!0,void 0!==d[e])void 0===d[e].tags&&(d[e].tags=[]),-1===d[e].tags.indexOf(i)&&d[e].tags.push(i);else{const n={provider:t,prefix:c.prefix,name:e,tags:[i]};d[e]=n}}),n}a=a.filter(t=>{let e=!1;const i=l.categories[t];return i instanceof Array?e=h(i,t):Object.keys(i).forEach(n=>{const o=i[n];o instanceof Array&&(e=h(o,t)||e)}),e});const p=a.length>0;if(u){l[f].forEach(e=>{if("string"==typeof e&&void 0===d[e]){const i={provider:t,prefix:c.prefix,name:e};return p&&(i.tags=[""]),void(d[e]=i)}}),p&&a.push("")}if("object"==typeof l.chars&&o(l.chars,d),"object"==typeof l.aliases){const t=l.aliases;Object.keys(t).forEach(e=>{const i=t[e];if(void 0!==d[i]){const t=d[i];void 0===t.aliases&&(t.aliases=[]),t.aliases.push(e)}})}const g=r(d);if(a.length>1?c.tags=a.sort(s):p&&g.forEach(t=>{delete t.tags}),"object"==typeof l.themes&&null!==l.themes){n(l.themes,g,c)}return c.icons=g,c.total=c.icons.length,c.info&&(c.info.total=c.total),c},e.rawDataToCollection=function(t){function e(i,n=0){if(n>3)return null;if(void 0!==u[i])return i;if(void 0!==t.icons[i])return t.icons[i].hidden?null:(u[i]={provider:c.provider,prefix:c.prefix,name:i,tags:[]},i);if(t.aliases&&void 0!==t.aliases[i]&&!t.aliases[i].hidden){const o=t.aliases[i],r=e(o.parent,n+1);if(null!==r){if(o.rotate||o.hFlip||o.vFlip)return u[i]={provider:c.provider,prefix:c.prefix,name:i,tags:[]},i;{const t=u[r];return t.aliases?-1===t.aliases.indexOf(i)&&t.aliases.push(i):t.aliases=[i],r}}}return null}function l(t,e){let i=!1;return t.forEach(t=>{void 0!==u[t]&&-1===u[t].tags.indexOf(e)&&(u[t].tags.push(e),i=!0)}),i}if("string"!=typeof t.prefix)return null;const c={provider:"string"==typeof t.provider?t.provider:"",prefix:t.prefix,name:"",total:0,icons:[]};if("object"!=typeof t.info||null===t.info)return null;const a=i(t.info,c.prefix);if(null===a)return null;c.info=a,c.name=c.info.name;const u=Object.create(null);Object.keys(t.icons).forEach(t=>e(t)),"object"==typeof t.aliases&&Object.keys(t.aliases).forEach(t=>e(t));const f=Object.keys(u),d=[];if("object"==typeof t.categories&&null!==t.categories){let e=!1;const i=t.categories;Object.keys(i).forEach(t=>{const e=i[t];e instanceof Array?l(e,t)&&d.push(t):"object"==typeof e&&Object.keys(e).forEach(i=>{const n=e[i];n instanceof Array&&l(n,t)&&-1===d.indexOf(t)&&d.push(t)})}),f.forEach(t=>{u[t].tags.length||(u[t].tags.push(""),e=!0)}),e&&d.push("")}d.length<2?Object.keys(u).forEach(t=>{delete u[t].tags}):c.tags=d.sort(s),"object"==typeof t.chars&&o(t.chars,u);const h=r(u);if("object"==typeof t.themes&&null!==t.themes){n(t.themes,h,c)}return c.icons=h,c.total=c.info.total=c.icons.length,c}})),$=o((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.autoIndexCollections=e.filterCollections=e.collectionsPrefixes=e.dataToCollections=void 0,e.dataToCollections=function(t){const e=Object.create(null),i=Object.create(null);return"object"!=typeof t||null===t||(Object.keys(t).forEach(n=>{const o=t[n];if("object"!=typeof o||null===o||"string"!=typeof o.category)return;const r=y.dataToCollectionInfo(o,n);if(null===r)return;const s=o.category;""!==s?(void 0===e[s]&&(e[s]=Object.create(null)),e[s][n]=r):i[n]=r}),Object.keys(i).length>0&&(e[""]=i)),e},e.collectionsPrefixes=function(t){let e=[];return Object.keys(t).forEach(i=>{e=e.concat(Object.keys(t[i]))}),e},e.filterCollections=function(t,e,i=!1){const n=Object.create(null);return Object.keys(t).forEach(o=>{i&&(n[o]=Object.create(null)),Object.keys(t[o]).forEach(i=>{const r=t[o][i];e(r,o,i)&&(void 0===n[o]&&(n[o]=Object.create(null)),n[o][i]=r)})}),n},e.autoIndexCollections=function(t,e=0){let i=e;Object.keys(t).forEach(e=>{const n=t[e];Object.keys(n).forEach(t=>{n[t].index=i++})})}})),b=o((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.autoIndexFilters=e.enableFilters=e.isFiltersBlockEmpty=e.defaultFiltersBlock=e.defaultFilter=void 0,e.defaultFilter=t=>({title:t,index:0,disabled:!1}),e.defaultFiltersBlock=()=>({type:"filters",filterType:"",active:null,filters:Object.create(null)}),e.isFiltersBlockEmpty=function(t){return null==t||Object.keys(t.filters).length<2},e.enableFilters=function(t,e=!0){Object.keys(t.filters).forEach(i=>{t.filters[i].disabled=!e})},e.autoIndexFilters=function(t,e=0){let i=e;return Object.keys(t.filters).forEach(e=>{t.filters[e].index=i++}),i}})),_=o((function(t,e){function i(t,e,i=!1){return{type:"collections-list",showCategories:t.showCategories,collections:$.filterCollections(t.collections,e,i)}}Object.defineProperty(e,"__esModule",{value:!0}),e.applyCollectionsFilter=e.disableInactiveCategories=e.filterCollectionsBlock=e.iterateCollectionsBlock=e.collectionsPrefixesWithInfo=e.getCollectionsBlockPrefixes=e.getCollectionsBlockCategories=e.isCollectionsBlockEmpty=e.defaultCollectionsListBlock=void 0,e.defaultCollectionsListBlock=()=>({type:"collections-list",showCategories:!0,collections:Object.create(null)}),e.isCollectionsBlockEmpty=function(t){if(null==t)return!0;const e=Object.keys(t.collections);for(let i=0;i<e.length;i++)if(Object.keys(t.collections[e[i]]).length>0)return!1;return!0},e.getCollectionsBlockCategories=function(t,e=!1){let i=Object.keys(t.collections);return e&&(i=i.filter(e=>Object.keys(t.collections[e]).length>0)),i},e.getCollectionsBlockPrefixes=function(t){return $.collectionsPrefixes(t.collections)},e.collectionsPrefixesWithInfo=function(t){const e=[];return Object.keys(t.collections).forEach(i=>{const n=t.collections[i];Object.keys(n).forEach(t=>{null!==n[t]&&e.push(n[t])})}),e},e.iterateCollectionsBlock=function(t,e){Object.keys(t.collections).forEach(i=>{const n=t.collections[i];Object.keys(n).forEach(t=>{e(n[t],t,i)})})},e.filterCollectionsBlock=i,e.disableInactiveCategories=function(t,e){if(null===e)return t;const i={type:"collections-list",showCategories:t.showCategories,collections:Object.create(null)};return void 0!==t.collections[e]&&(i.collections[e]=t.collections[e]),i};const n=["prefix","name","author","license","category","palette","height"];e.applyCollectionsFilter=function(t,e,o){const s=e.keyword.trim(),l=null!==o&&"categories"===o.filterType,c=o;if(""===s)return l&&b.enableFilters(c,!0),t;const a={};return l&&b.enableFilters(c,!1),i(t,(t,e)=>{for(let i=n.length-1;i>=0;i--){const o=n[i];if(void 0!==t[o]&&r.match(t[o],s))return l&&!0!==a[e]&&(a[e]=!0,void 0!==c.filters[e]&&(c.filters[e].disabled=!1)),!0}return!1},!1)}})),v=o((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.getCollectionTitle=e.getCollectionInfo=e.setCollectionInfo=void 0,e.setCollectionInfo=function(t,e,i,n){void 0===t[e]&&(t[e]=Object.create(null));const o=t[e];(void 0===o[i]||n.index)&&(o[i]=n)},e.getCollectionInfo=function(t,e,i){return void 0!==t[e]&&void 0===t[e][i]?null:t[e][i]},e.getCollectionTitle=function(t,e,i){return void 0===t[e]||void 0===t[e][i]?i:t[e][i].name}})),k=o((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.CollectionsView=void 0;class i extends g.BaseView{constructor(t,e,i=null){super(),this._data=null,this._blocks=null,this.type="collections",this._instance=t,this.route=e,this.provider=e.params.provider,this.parent=i;const n=d.getRegistry(this._instance).customIconSets;void 0!==n.providers[this.provider]?this._sources={custom:!0,api:"only-custom"!==n.merge,merge:n.merge}:this._sources={custom:!1,api:!0}}_startLoading(){this._startedLoading=!0,this._sources.api?this._loadAPI(this.provider,"/collections",{}):setTimeout(()=>{this._parseAPIData(null)})}action(t,e){switch(t){case"parent":return void this._parentAction(e);case"provider":return void(e!==this.provider&&this._providerAction(e));case"search":return void(this._sources.api&&this._searchAction(this.provider,e));case"filter":if("string"!=typeof e)return;if(e=e.trim().toLowerCase(),this.route.params.filter===e)return;this.route.params.filter=e,this.blocksRequireUpdate=!0;break;case"categories":if(null!==e&&"string"!=typeof e||e===this.route.params.category)return;this.route.params.category=e,this.blocksRequireUpdate=!0;break;case"collections-internal":if("string"!=typeof e||""===e)return;return void this._triggerCollectionAction(e,1);case"collections":if("string"!=typeof e||""===e)return;return void this._triggerCollectionAction(e,0);default:return}this._triggerUpdated()}_triggerCollectionAction(t,e){if(!this.loading&&null!==this._data&&""===this.error){const e=Object.keys(this._data);let i=!1;for(let n=0;n<e.length;n++)if(void 0!==this._data[e[n]][t]){i=!0;break}if(!i)return}d.getRegistry(this._instance).router.createChildView({type:"collection",params:{provider:this.provider,prefix:t}},e)}render(){if(this.loading||null===this._blocks||null===this._data)return null;if(!this.blocksRequireUpdate||""!==this.error)return this._blocks;this.blocksRequireUpdate=!1;const t=this._blocks,e="string"==typeof this.route.params.filter?this.route.params.filter:"",i="string"==typeof this.route.params.category?this.route.params.category:null;return t.filter.keyword=e,t.categories.active=i,t.collections.collections=this._data,t.collections=_.applyCollectionsFilter(t.collections,t.filter,t.categories),null!==i&&(t.collections=_.disableInactiveCategories(t.collections,i)),t}getCollectionsBlock(){if(this.loading||""!==this.error)return null;const t=this.render();return null!==t&&null!==t.collections?t.collections:null}_parseAPIData(t){if(this._sources.api&&!t)this._data=null;else{const e=[];if(this._sources.api&&e.push({isCustom:!1,categories:$.dataToCollections(t)}),this._sources.custom){const t=d.getRegistry(this._instance).customIconSets.providers[this.route.params.provider].collections;e["custom-first"===this._sources.merge?"unshift":"push"]({isCustom:!0,categories:t})}this._data=Object.create(null);const i=this._data,n=Object.create(null);e.forEach(t=>{const e=t.categories;Object.keys(e).forEach(o=>{const r=e[o];Object.keys(r).forEach(e=>{if(void 0!==n[e]){if(!t.isCustom)return;delete i[n[e]][e]}n[e]=o,void 0===i[o]&&(i[o]=Object.create(null)),i[o][e]=r[e]})})})}if(this.loading=!1,this.blocksRequireUpdate=!0,this.error="",this._blocks={filter:m.defaultCollectionsFilterBlock(),categories:b.defaultFiltersBlock(),collections:_.defaultCollectionsListBlock()},this._blocks.categories.filterType="categories",null===this._data)this.error=null===t?"not_found":"invalid_data";else{$.autoIndexCollections(this._data),this._blocks.collections.collections=this._data;const t=_.getCollectionsBlockCategories(this._blocks.collections,!0);if(0===t.length)this.error="empty";else{if(t.length>1){this._blocks.collections.showCategories=!0;const e=this._blocks.categories.filters;t.forEach(t=>{e[t]=b.defaultFilter(t)}),b.autoIndexFilters(this._blocks.categories)}else this._blocks.collections.showCategories=!1;const e=d.getRegistry(this._instance).collections;_.iterateCollectionsBlock(this._blocks.collections,(t,i)=>{v.setCollectionInfo(e,this.provider,i,t)})}}this._triggerLoaded()}}e.CollectionsView=i})),w=o((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.isCollectionInfoBlockEmpty=e.defaultCollectionInfoBlock=void 0,e.defaultCollectionInfoBlock=()=>({type:"collection-info",prefix:"",info:null}),e.isCollectionInfoBlockEmpty=function(t){return null==t||null===t.info}})),x=o((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.applyIconFilters=e.isIconsListBlockEmpty=e.defaultIconsListBlock=void 0,e.defaultIconsListBlock=()=>({type:"icons-list",icons:[]}),e.isIconsListBlockEmpty=function(t){return null==t||t.icons.length<1};const i=["name","chars","aliases"],n=["prefix","name","chars","aliases"];e.applyIconFilters=function(t,e,o=[],r=!1){let s=t.icons.slice(0);const l=r?n:i;function c(t){switch(t){case"tags":return"tags";case"themePrefixes":return"themePrefix";case"themeSuffixes":return"themeSuffix";default:return null}}const a=e?e.keyword.trim():"";if(""!==a){const t=a.toLowerCase().split(/[\s:]/).map(t=>t.trim()).filter(t=>t.length>0);if(t.length){const e=l.slice(0);t.forEach(t=>{let i=!1;("-"!==t.slice(0,1)||(i=!0,(t=t.slice(1)).length))&&(s=s.filter(n=>{const o=n;let r=!1;return e.forEach(e=>{r||void 0===o[e]||("string"!=typeof o[e]?o[e]instanceof Array&&o[e].forEach(e=>{r=r||-1!==e.indexOf(t)}):r=-1!==o[e].indexOf(t))}),i?!r:r}))})}}const u=s.length!==t.icons.length;return o.forEach(t=>{if(b.enableFilters(t,!0),!u)return;const e=c(t.filterType);null!==e&&Object.keys(t.filters).forEach(i=>{for(let t=s.length-1;t>=0;t--){const n=s[t][e];if(null!=n)if("string"!=typeof n){if(n instanceof Array&&-1!==n.indexOf(i))return}else if(n===i)return}t.filters[i].disabled=!0})}),o.forEach(t=>{if(null===t.active)return;const e=t.active,i=c(t.filterType);null!==i&&(s=s.filter(t=>{const n=t[i];return null!=n&&("string"==typeof n?n===e:n instanceof Array&&-1!==n.indexOf(e))}))}),t.icons=s,t}})),C=o((function(t,e){function i(t){return t.perPage&&t.length>0?Math.floor((t.length-1)/t.perPage):0}Object.defineProperty(e,"__esModule",{value:!0}),e.showPagination=e.getPageForIndex=e.maxPage=e.isPaginationEmpty=e.defaultPaginationBlock=void 0,e.defaultPaginationBlock=()=>({type:"pagination",page:0,length:0,perPage:24,more:!1}),e.isPaginationEmpty=function(t){return null==t||t.length<=t.perPage},e.maxPage=i,e.getPageForIndex=function(t,e){return t&&e>0?Math.floor(e/t):0},e.showPagination=function(t){const e=t.length?i(t)+1:0,n=[];let o,r;if(e<2)return n;if(e<14){for(o=0;o<e;o++)n.push(o);return n}for(o=0;o<Math.min(e,3);o++)n.push(o);if((r=o)>=e)return n;for(o=r===t.page-3?r:Math.max(t.page-2,r);o<Math.min(t.page+3,e);o++)n.push(o);if((r=o)>=e)return n;for(o=r===e-4?e-4:Math.max(e-3,r);o<e;o++)n.push(o);return n}})),j=o((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.isSearchBlockEmpty=e.defaultSearchBlock=void 0,e.defaultSearchBlock=()=>({type:"search",keyword:""}),e.isSearchBlockEmpty=function(t){return null==t||""===t.keyword.trim()}})),P=o((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.CollectionView=void 0;const i=["tags","themePrefixes","themeSuffixes"];class n extends g.BaseView{constructor(t,e,i=null){super(),this._data=null,this._blocks=null,this.type="collection",this._instance=t,this.route=e,this.provider=e.params.provider,this.parent=i,this.prefix=e.params.prefix;const n=d.getRegistry(this._instance).customIconSets;void 0!==n.providers[this.provider]&&void 0!==n.providers[this.provider].data[this.prefix]?(this._isCustom=!0,this._data=n.providers[this.provider].data[this.prefix]):this._isCustom=!1,this._mustWaitForParent=null!==i&&("search"===i.type||"collections"===i.type)}_startLoading(){this._startedLoading=!0,this._isCustom?setTimeout(()=>{this._parseAPIData(null)}):this._loadAPI(this.provider,"/collection",{info:"true",chars:"true",prefix:this.prefix})}action(t,e){switch(t){case"parent":return void this._parentAction(e);case"provider":return void(e!==this.provider&&this._providerAction(e));case"search":return void this._searchAction(this.provider,e);case"filter":if("string"!=typeof e)return;if((e=e.trim().toLowerCase())===this.route.params.filter)return;this.route.params.filter=e,this.blocksRequireUpdate=!0;break;case"pagination":if("string"==typeof e&&(e=parseInt(e)),"number"!=typeof e||isNaN(e)||e<0||e===this.route.params.page)return;this.route.params.page=e,this.blocksRequireUpdate=!0;break;case"tags":return void this._filterAction("tag",e);case"themePrefixes":return void this._filterAction("themePrefix",e);case"themeSuffixes":return void this._filterAction("themeSuffix",e);case"collections":return void this._collectionsAction(e);default:return}this._triggerUpdated()}_filterAction(t,e){null!==e&&"string"!=typeof e||this.route.params[t]!==e&&(this.route.params[t]=e,this.blocksRequireUpdate=!0,this._triggerUpdated())}_collectionsAction(t){null===this.parent||"search"!==this.parent.type&&"collections"!==this.parent.type||(t!==this.prefix&&null!==t?"string"==typeof t&&this.parent.action("collections-internal",t):this._parentAction(1))}render(){if(this.loading||null===this._blocks||null===this._data)return null;if(!this.blocksRequireUpdate||""!==this.error)return this._blocks;this.blocksRequireUpdate=!1;const t=this._blocks;t.icons.icons=this._data.icons.slice(0),t.filter.keyword=this.route.params.filter,null!==t.tags&&(t.tags.active=this.route.params.tag),null!==t.themePrefixes&&(t.themePrefixes.active=this.route.params.themePrefix),null!==t.themeSuffixes&&(t.themeSuffixes.active=this.route.params.themeSuffix),t.icons=x.applyIconFilters(t.icons,t.filter,i.filter(e=>null!==t[e]).map(e=>t[e])),t.pagination.length=t.icons.icons.length,t.pagination.page=this.route.params.page;const e=C.maxPage(t.pagination);e<t.pagination.page&&(this.route.params.page=t.pagination.page=e);const n=t.pagination.perPage,o=t.pagination.page*n;return t.icons.icons=t.icons.icons.slice(o,o+n),this._blocks}_parseAPIData(t){this._isCustom||(this._data=y.dataToCollection(this.provider,t)),this.loading=!1,this.blocksRequireUpdate=!0,this.error="",this._blocks={info:w.defaultCollectionInfoBlock(),filter:Object.assign(j.defaultSearchBlock(),{keyword:this.route.params.filter,searchType:"collection",title:this.prefix}),collections:null,tags:null,themePrefixes:null,themeSuffixes:null,icons:x.defaultIconsListBlock(),pagination:C.defaultPaginationBlock()};const e=this._blocks;if(null===this._data)return this.error=null===t?"not_found":"invalid_data",void this._triggerLoaded();const n=this._data;if(this.prefix!==n.prefix)return this.error="invalid_data",void this._triggerLoaded();const o=d.getRegistry(this._instance),r=o.config,s=o.collections;if(e.info.prefix=this.prefix,void 0!==n.info&&v.setCollectionInfo(s,this.provider,this.prefix,n.info),e.info.info=v.getCollectionInfo(s,this.provider,this.prefix),null!==e.info.info&&(e.filter.title=e.info.info.name),n.total<1)this.error="empty";else{const t=e.pagination;if(t.perPage=r.ui.itemsPerPage,t.fullLength=t.length=n.icons.length,t.page=Math.min(this.route.params.page,C.maxPage(t)),this.parent&&!this.parent.loading)if("search"===this.parent.type){const t=this.parent.getCollectionsBlock();null!==t&&(this._blocks.collections=t,this._blocks.collections.active=this.prefix)}else"collections"===this.parent.type&&(this._blocks.collections=this._findSiblingCollections());let o=0;i.forEach(t=>{const i=t;if(void 0!==n[i]){const r=n[i];if(r instanceof Array&&r.length>1){const i=b.defaultFiltersBlock();i.filterType=t,e[t]=i,r.forEach(t=>{i.filters[t]=b.defaultFilter(t)}),o=b.autoIndexFilters(i,o)}}})}this._triggerLoaded()}_findSiblingCollections(){const t=this.parent.getCollectionsBlock();if(null===t)return null;const e=_.collectionsPrefixesWithInfo(t),i=e.find(t=>t.prefix===this.prefix);if(void 0===i||e.length<2)return null;const n=d.getRegistry(this._instance).config.ui.showSiblingCollections;let o=[];if(e.length<2*n+2)o=e.slice(0);else{const t=e.indexOf(i);for(let i=t-n;i<t;i++)o.push(e[(i+e.length)%e.length]);o.push(i);for(let i=t+1;i<=t+n;i++)o.push(e[i%e.length])}const r=b.defaultFiltersBlock();return r.filterType="collections",r.active=this.prefix,o.forEach(t=>{const e=b.defaultFilter(t.name);e.index=t.index,r.filters[t.prefix]=e}),r}}e.CollectionView=n})),I=o((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.dataToSearchResults=void 0,e.dataToSearchResults=function(t,e){if("object"!=typeof e||null===e)return null;const i=e;if("object"!=typeof i.request||null===i.request)return null;const n=i.request;if("string"!=typeof n.query)return null;if("number"!=typeof i.total||"number"!=typeof i.limit)return null;const o={provider:t,query:n.query,total:i.total,limit:i.limit,icons:[],collections:Object.create(null)};if("object"!=typeof i.collections||!(i.icons instanceof Array))return null;const r=i.icons,s=i.collections;try{r.forEach(e=>{const i=c.stringToIcon(e,t);if(!c.validateIcon(i))throw new Error("Invalid icon");o.icons.push(i);const n=i.prefix;if(void 0===o.collections[n]){if(void 0===s[n])throw new Error("Missing data for prefix "+n);const t=y.dataToCollectionInfo(s[n],n);if(null===t)throw new Error("Invalid data for prefix "+n);o.collections[n]=t}})}catch(t){return null}return o.total=o.icons.length,o}})),O=o((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.SearchView=void 0;class i extends g.BaseView{constructor(t,e,i=null){super(),this._data=null,this._blocks=null,this.type="search",this._instance=t,this.route=e,this.provider=e.params.provider,this.parent=i,this.keyword=e.params.search;const n=d.getRegistry(this._instance).config;this.itemsPerPage=n.ui.itemsPerPage,this.route.params.page>1&&(this.route.params.short=!1),this.itemsLimit=this.route.params.short?2*this.itemsPerPage:999}_startLoading(){this._startedLoading=!0,this._loadAPI(this.provider,"/search",{query:this.keyword,limit:this.itemsLimit})}action(t,e){switch(t){case"parent":return void this._parentAction(e);case"provider":return void(e!==this.provider&&this._providerAction(e));case"search":if("string"!=typeof e)return;if((e=e.trim().toLowerCase())===this.keyword)return;return void this._searchAction(this.provider,e);case"pagination":if("more"===e&&this._showMoreButton()&&(e=this.route.params.page+1),"string"==typeof e&&(e=parseInt(e)),"number"!=typeof e||isNaN(e)||e===this.route.params.page||e<0)return;if(e>0&&this._showMoreButton())return void this._triggerFullResults(e);this.route.params.page=e,this.blocksRequireUpdate=!0;break;case"collections":return void this._collectionsAction(e,0);case"collections-internal":return void this._collectionsAction(e,1);default:return}this._triggerUpdated()}_collectionsAction(t,e){if(null!==t&&"string"!=typeof t)return;if(this.loading||null===this._blocks||null===this._blocks.collections)return;const i=d.getRegistry(this._instance).router;if(null===t)return void i.setParentView(e);const n=t;i.createChildView({type:"collection",params:{provider:this.provider,prefix:n,filter:this.keyword}},e)}_triggerFullResults(t){d.getRegistry(this._instance).router.createChildView({type:"search",params:Object.assign({},this.route.params,{page:t,short:!1})},1)}render(){if(this.loading||null===this._blocks||null===this._data)return null;if(!this.blocksRequireUpdate||""!==this.error)return this._blocks;this.blocksRequireUpdate=!1;const t=this._blocks;t.icons.icons=this._data.icons.slice(0),null!==t.collections&&(t.collections.active=null),t.pagination.length=t.icons.icons.length,t.pagination.page=this.route.params.page;const e=C.maxPage(t.pagination);e<t.pagination.page&&(this.route.params.page=t.pagination.page=e);const i=t.pagination.page*this.itemsPerPage;return t.icons.icons=t.icons.icons.slice(i,i+this.itemsPerPage),this._blocks}getCollectionsBlock(){if(this.loading||""!==this.error)return null;const t=this.render();return null!==t&&null!==t.collections?r.cloneObject(t.collections):null}_showMoreButton(){return null!==this._data&&(this.route.params.short&&this._data.total===this._data.limit)}_parseAPIData(t){this._data=I.dataToSearchResults(this.provider,t),this.loading=!1,this.blocksRequireUpdate=!0,this.error="",this._blocks={collections:null,icons:x.defaultIconsListBlock(),pagination:C.defaultPaginationBlock()};const e=this._blocks;if(null===this._data)return this.error=null===t?"not_found":"invalid_data",void this._triggerLoaded();const i=this._data;if(this.keyword!==i.query)return this.error="invalid_data",void this._triggerLoaded();if(i.limit&&(this.itemsLimit=i.limit),i.total<1)this.error="empty";else{const t=e.pagination;t.perPage=this.itemsPerPage,t.fullLength=t.length=i.icons.length,t.page=Math.min(this.route.params.page,C.maxPage(t)),t.more=this._showMoreButton();const n=Object.keys(i.collections),o=d.getRegistry(this._instance).collections;if(n.forEach(t=>{v.setCollectionInfo(o,this.provider,t,i.collections[t])}),n.length>1){const t=b.defaultFiltersBlock();this._blocks.collections=t,t.filterType="collections",n.forEach(e=>{t.filters[e]=b.defaultFilter(i.collections[e].name)}),b.autoIndexFilters(t)}}this._triggerLoaded()}}e.SearchView=i})),R=o((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.CustomView=void 0;class i extends g.BaseView{constructor(t,e,i=null){super(),this._data=null,this._blocks=null,this.type="custom",this._instance=t,this.route=e,this.parent=i,this.customType=e.params.customType,this._mustWaitForParent=!0}_startLoading(){this._startedLoading=!0,setTimeout(()=>{if(null!==this._data)return;d.getRegistry(this._instance).events.fire("load-"+this.customType,this.setIcons.bind(this))})}action(t,e){switch(t){case"parent":return void this._parentAction(e);case"provider":return void this._providerAction(e);case"set":return void this.setIcons(e);case"filter":if("string"!=typeof e)return;if((e=e.trim().toLowerCase())===this.route.params.filter)return;this.route.params.filter=e,this.blocksRequireUpdate=!0;break;case"pagination":if("string"==typeof e&&(e=parseInt(e)),"number"!=typeof e||isNaN(e)||e<0||e===this.route.params.page)return;this.route.params.page=e,this.blocksRequireUpdate=!0;break;default:return}this._triggerUpdated()}render(){if(this.loading||null===this._blocks||null===this._data)return null;if(!this.blocksRequireUpdate||""!==this.error)return this._blocks;this.blocksRequireUpdate=!1;const t=this._blocks;t.icons.icons=this._data.slice(0),t.filter.keyword=this.route.params.filter,t.icons=x.applyIconFilters(t.icons,t.filter,[],!0);const e=d.getRegistry(this._instance).config.ui.itemsPerPage;t.pagination.length=t.icons.icons.length,t.pagination.page=this.route.params.page;const i=C.maxPage(t.pagination);i<t.pagination.page&&(this.route.params.page=t.pagination.page=i);const n=t.pagination.page*e;return t.icons.icons=t.icons.icons.slice(n,n+e),this._blocks}setIcons(t){this._waitForParent(()=>{this._setIcons(t)})}_setIcons(t){let e=t,i=!1;e instanceof Array||(i=!0,e=[]);const n=e.map(t=>{if("string"==typeof t&&(t=c.stringToIcon(t)),"object"==typeof t&&c.validateIcon(t)){const e=t;return{provider:e.provider,prefix:e.prefix,name:e.name}}return null}).filter(t=>null!==t);this._data=n,this.loading=!1,this.blocksRequireUpdate=!0,this.error="",this._blocks={filter:Object.assign(j.defaultSearchBlock(),{keyword:this.route.params.filter,searchType:"custom",title:this.customType}),icons:x.defaultIconsListBlock(),pagination:C.defaultPaginationBlock()};const o=this._blocks;if(i)return this.error=null===t?"not_found":"invalid_data",void this._triggerLoaded();if(n.length<1)this.error="empty";else{const t=d.getRegistry(this._instance).config,e=o.pagination;e.perPage=t.ui.itemsPerPage,e.fullLength=e.length=n.length,e.page=Math.min(this.route.params.page,C.maxPage(e))}this._triggerLoaded()}getIcons(){return this.loading||null===this._blocks||null===this._data?null:r.cloneObject(this._data)}}e.CustomView=i})),B=o((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.EmptyView=void 0;class i extends g.BaseView{constructor(t,e,i=null){super(),this.type="empty",this._instance=t,this.route=e,this.parent=i}_startLoading(){this._startedLoading=!0,setTimeout(()=>{this.loading=!1,this._triggerLoaded()})}action(t,e){switch(t){case"parent":return void this._parentAction(e);case"provider":return void this._providerAction(e)}}render(){return{}}}e.EmptyView=i})),S=o((function(t,e){function i(t,e){switch(t.type){case"collections":case"collection":case"search":void 0===t.params&&(t.params={}),t.params.provider=e}t.parent&&i(t.parent,e)}Object.defineProperty(e,"__esModule",{value:!0}),e.Router=void 0;e.Router=class{constructor(t){this._view=null,this._visibleView=null,this._timer=null,this.defaultProvider="",this._instance=t;const e=d.getRegistry(this._instance).events;e.subscribe("view-loaded",t=>{this._viewEvent(t)}),e.subscribe("view-updated",t=>{this._viewEvent(t)})}error(){return null===this._visibleView||this._visibleView.loading?"loading":this._visibleView.error}render(){return null===this._visibleView?null:this._visibleView.render()}set route(t){let e,i=null===t?null:p.objectToRoute(t);if(i&&i.params){const t=i.params.provider;"string"!=typeof t||""===t||this._checkProvider(t)||(i=null)}null===i||null===(e=this._viewFromRoute(i))?this.home():this._setView(e,!0)}get route(){return null===this._visibleView?null:p.routeToObject(this._visibleView.route)}home(t=null){const e=d.getRegistry(this._instance),n=e.config.router.home;let o=null;if(""!==n)o=p.objectToRoute(JSON.parse(n));else{const i=e.customIconSets,n="string"==typeof t?t:this.defaultProvider;if(void 0===i.providers[n])o=p.objectToRoute({type:"collections"});else{const t=i.providers[n];let e=t.total>1;e||"only-custom"===i.merge||(e=this._checkProvider(n,!1)),o=p.objectToRoute(e?{type:"collections",params:{provider:n}}:{type:"collection",params:{provider:n,prefix:Object.keys(t.data).shift()}})}}if(null===o)throw new Error("Error resetting route");i(o,null!==t&&this._checkProvider(t)?t:this.defaultProvider);const r=this._viewFromRoute(o);if(null===r)throw new Error("Error resetting route");this._setView(r,!0)}action(t,e){null!==this._visibleView&&(this._changeCurrentView(),this._visibleView.action(t,e))}setCustomIcons(t,e){const i=this._getCustomView(t);return null!==i&&(i.setIcons(e),!0)}getCustomIcons(t){const e=this._getCustomView(t);return null===e?null:e.getIcons()}_getCustomView(t){return null===this._visibleView||null===this._view?null:"custom"===this._visibleView.type&&this._visibleView.type===t?this._visibleView:"custom"===this._view.type&&this._view.type===t?this._view:null}createChildView(t,e=0){const i=null===t?null:p.objectToRoute(t);if(null===i)return;let n=this._visibleView;for(let t=0;t<e;t++)null!==n&&(n=n.parent);const o=this._viewFromRoute(i,n);null!==o&&(this._changeCurrentView(),this._setView(o,!1))}setParentView(t=1){let e=this._visibleView;for(let i=0;i<t;i++){if(null===e||null===e.parent)return;e=e.parent}e!==this._visibleView&&this._setView(e,!0)}_setView(t,e){this._view=t,t.startLoading(),e&&this._visibleView!==t||!t.loading||null===this._visibleView?(this._visibleView=t,this._triggerChange(!0)):this._startTimer()}_changeCurrentView(){return this._view!==this._visibleView&&(this._view=this._visibleView,this._stopTimer(),!0)}_changeVisibleView(){return this._view!==this._visibleView&&(this._visibleView=this._view,this._stopTimer(),this._triggerChange(!0),!0)}_viewFromRoute(t,e){let i=null;if(void 0!==e)i=e,t.parent=null===e?null:e.route;else if(null!==t.parent&&(i=this._viewFromRoute(t.parent),null===i))return null;switch(t.type){case"collections":return new k.CollectionsView(this._instance,t,i);case"collection":return new P.CollectionView(this._instance,t,i);case"search":return new O.SearchView(this._instance,t,i);case"custom":return new R.CustomView(this._instance,t,i);case"empty":return new B.EmptyView(this._instance,t,i);default:return null}}_viewEvent(t){t===this._view&&(this._changeVisibleView()||this._triggerChange(!1))}_triggerChange(t){const e=d.getRegistry(this._instance).events,i=this.render(),n={viewChanged:t,error:this.error(),route:this.route,blocks:i};e.fire("render",n)}_startTimer(){this._stopTimer();const t=d.getRegistry(this._instance).config.ui.viewUpdateDelay;if(t){const e=this._view;this._timer=setTimeout(()=>{this._view===e&&this._changeVisibleView()},t)}else this._changeVisibleView()}_stopTimer(){null!==this._timer&&(clearTimeout(this._timer),this._timer=null)}_checkProvider(t,e=!0){if(null!==a.getProvider(t))return!0;if(!e)return!1;return void 0!==d.getRegistry(this._instance).customIconSets.providers[t]}}})),E=o((function(t,e){var o=n&&n.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.convertCustomSets=e.emptyConvertedSet=void 0;const r=o(i.default);e.emptyConvertedSet={merge:"custom-last",providers:Object.create(null)},e.convertCustomSets=function(t,i=!0){if(!t.iconSets||!t.iconSets.length)return e.emptyConvertedSet;let n="only-custom";switch(t.merge){case"custom-first":case"custom-last":case"only-custom":n=t.merge;break;case void 0:break;default:t.merge}const o={merge:n,providers:Object.create(null)},s=Object.create(null);return t.iconSets.forEach(e=>{if("string"!=typeof e.prefix)return;"string"==typeof t.provider&&(e.provider=t.provider);const n="string"==typeof e.provider?e.provider:"";!e.info&&t.info&&t.info[e.prefix]&&(e.info=t.info[e.prefix]);const l=y.rawDataToCollection(e);if(!l)return;void 0===o.providers[n]&&(o.providers[n]={total:0,data:Object.create(null),collections:{}});const c=o.providers[n];if(void 0!==c.data[l.prefix])return;c.data[l.prefix]=l,c.total++,void 0===s[n]&&(s[n]=Object.create(null));const a=Object.assign({},e.info);a.total=l.total,s[n][l.prefix]=a,i&&r.default.addCollection(e)}),Object.keys(s).forEach(t=>{o.providers[t].collections=$.dataToCollections(s[t])}),o}})),T=o((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.Registry=void 0;e.Registry=class{constructor(t){this._data=Object.create(null);const e="string"==typeof t?t:"object"==typeof t&&"string"==typeof t.namespace?t.namespace:"iconify";this.namespace=e,this.id=d.uniqueId(e),this.initialised=d.addRegistry(this),this._sharedData=d.getSharedData(e),this.params="object"==typeof t?t:{},this._save()}_save(){d.saveRegistry(this)}get config(){return void 0===this._sharedData.config&&(this._sharedData.config=s.createConfig(this.params.config)),this._sharedData.config}set config(t){this._sharedData.config=t}get events(){return void 0===this._data.events&&(this._data.events=new l.Events),this._data.events}set events(t){this._data.events=t}get api(){return void 0===this._sharedData.api&&(this._sharedData.api=new f.API(this)),this._sharedData.api}set api(t){this._sharedData.api=t}get customIconSets(){return void 0===this._data.customIconSets&&(this._data.customIconSets=E.emptyConvertedSet),this._data.customIconSets}set customIconSets(t){this._data.customIconSets=t}get collections(){return void 0===this._sharedData.collections&&(this._sharedData.collections=Object.create(null)),this._sharedData.collections}set collections(t){this._sharedData.collections=t}get router(){return void 0===this._data.router&&(this._data.router=new S.Router(this.id)),this._data.router}set router(t){this._data.router=t}get route(){return this.router.route}set route(t){this.router.route=t}getCustom(t,e=!0){const i=e?this._data:this._sharedData;if(void 0!==i.custom)return i.custom[t]}setCustom(t,e,i=!0){const n=i?this._data:this._sharedData;void 0===n.custom&&(n.custom=Object.create(null));const o=n.custom;i&&void 0===o[t]&&Object.defineProperty(this,t,{get:()=>o[t],set(e){o[t]=e}}),o[t]=e}destroy(){d.destroyRegistry(this)}}})),L=o((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.isBlockEmpty=void 0,e.isBlockEmpty=function(t){if(null==t)return!0;switch(t.type){case"collection-info":return w.isCollectionInfoBlockEmpty(t);case"collections-filter":return m.isCollectionsFilterBlockEmpty(t);case"collections-list":return _.isCollectionsBlockEmpty(t);case"filters":return b.isFiltersBlockEmpty(t);case"icons-list":return x.isIconsListBlockEmpty(t);case"pagination":return C.isPaginationEmpty(t);case"search":return j.isSearchBlockEmpty(t);default:return!0}}})),M=o((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.getCoreInstance=e.IconFinderCore=e.cloneObject=e.compareObjects=e.stringToIcon=e.compareIcons=e.validateIcon=e.iconToString=e.setComponentsConfig=e.mergeConfig=e.customisedConfig=e.Router=e.listProviders=e.convertProviderData=e.getProvider=e.addProvider=e.maxPage=e.showPagination=e.iterateCollectionsBlock=e.getCollectionsBlockPrefixes=e.getCollectionsBlockCategories=e.isBlockEmpty=void 0,Object.defineProperty(e,"Router",{enumerable:!0,get:function(){return S.Router}}),Object.defineProperty(e,"isBlockEmpty",{enumerable:!0,get:function(){return L.isBlockEmpty}}),Object.defineProperty(e,"getCollectionsBlockCategories",{enumerable:!0,get:function(){return _.getCollectionsBlockCategories}}),Object.defineProperty(e,"getCollectionsBlockPrefixes",{enumerable:!0,get:function(){return _.getCollectionsBlockPrefixes}}),Object.defineProperty(e,"iterateCollectionsBlock",{enumerable:!0,get:function(){return _.iterateCollectionsBlock}}),Object.defineProperty(e,"showPagination",{enumerable:!0,get:function(){return C.showPagination}}),Object.defineProperty(e,"maxPage",{enumerable:!0,get:function(){return C.maxPage}}),Object.defineProperty(e,"addProvider",{enumerable:!0,get:function(){return a.addProvider}}),Object.defineProperty(e,"getProvider",{enumerable:!0,get:function(){return a.getProvider}}),Object.defineProperty(e,"convertProviderData",{enumerable:!0,get:function(){return a.convertProviderData}}),Object.defineProperty(e,"listProviders",{enumerable:!0,get:function(){return a.listProviders}}),Object.defineProperty(e,"customisedConfig",{enumerable:!0,get:function(){return s.customisedConfig}}),Object.defineProperty(e,"mergeConfig",{enumerable:!0,get:function(){return s.mergeConfig}}),Object.defineProperty(e,"setComponentsConfig",{enumerable:!0,get:function(){return s.setComponentsConfig}}),Object.defineProperty(e,"iconToString",{enumerable:!0,get:function(){return c.iconToString}}),Object.defineProperty(e,"validateIcon",{enumerable:!0,get:function(){return c.validateIcon}}),Object.defineProperty(e,"compareIcons",{enumerable:!0,get:function(){return c.compareIcons}}),Object.defineProperty(e,"stringToIcon",{enumerable:!0,get:function(){return c.stringToIcon}}),Object.defineProperty(e,"compareObjects",{enumerable:!0,get:function(){return r.compareObjects}}),Object.defineProperty(e,"cloneObject",{enumerable:!0,get:function(){return r.cloneObject}});e.IconFinderCore=class{constructor(t){this.params=t;const e=this.registry=new T.Registry(t);this.id=e.id,e.setCustom("core",this,!0),t.iconSets&&(e.customIconSets=E.convertCustomSets(t.iconSets),console.log("Custom sets:",e.customIconSets));const i=this.router=e.router,n=e.events;n.subscribe("render",this._routerEvent.bind(this)),"object"==typeof t.custom&&null!==t.custom&&Object.keys(t.custom).forEach(t=>{n.subscribe("load-"+t,this._loadCustomIconsEvent.bind(this,t))}),setTimeout(()=>{if(null===i.route)if(void 0!==t.route&&null!==t.route){const e=p.objectToRoute(t.route);null!==e?i.route=e:i.home()}else null!==t.route&&i.home()})}getCollection(t,e){return v.getCollectionInfo(this.registry.collections,t,e)}_routerEvent(t){this.params.callback(t,this)}_loadCustomIconsEvent(t,e){void 0!==this.params.custom&&this.params.custom[t](e)}destroy(){this.registry.destroy()}},e.getCoreInstance=function(t){const e=d.getRegistry(t);return e?e.getCustom("core",!0):void 0}})),A=o((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.phrases=void 0,e.phrases={lang:"English",search:{placeholder:{collection:"Search {name}",collections:"Filter collections"},defaultPlaceholder:"Search all icons",button:"Find Icons"},errors:{noCollections:"No matching icon sets found.",noIconsFound:"No icons found.",defaultError:"Error loading Iconify Icon Finder.",custom:{loading:"Loading...",timeout:"Connection timed out.",invalid_data:"Invalid response from Iconify API.",empty:"Nothing to show.",not_found:"Collection {prefix} does not exist.",bad_route:"Invalid route.",home:"Click here to return to main page."}},icons:{header:{full:"Displaying {count} icons:",more:"Displaying {count} icons (click second page to load more results):",listMode:"Display icons as list",gridMode:"Display icons as grid"},headerWithCount:{0:"No icons to display.",1:"Displaying 1 icon:"},tooltip:{size:"\nSize: {size}",colorless:"",colorful:"\nHas palette",char:"\nIcon font character: {char}",length:""},more:"3 ...",moreAsNumber:!0},filters:{uncategorised:"Uncategorised",collections:"Filter search results by icon set:","collections-collections":"",tags:"Filter by category:",themePrefixes:"Icon type:",themeSuffixes:"Icon type:"},collectionInfo:{total:"Number of icons:",height:"Height of icons:",author:"Author:",license:"License:",palette:"Palette:",colorless:"Colorless",colorful:"Has colors",link:"Show all icons"},parent:{default:"Return to previous page",collections:"Return to collections list",collection:"Return to {name}",search:"Return to search results"},collection:{by:"by "},providers:{section:"Icons source:",add:"Add Provider",addForm:{title:"Enter API provider's host name:",placeholder:"https://api.iconify.design",submit:"Add API Provider",invalid:"Example of a valid API host name: https://api.iconify.design"},status:{loading:"Checking {host}...",error:"{host} is not a valid Iconify API.",exists:"API from {host} is already available or API has wrong configuration.",unsupported:"API from {host} does not support icon search."}},footer:{iconName:"Selected icon:",iconNamePlaceholder:"Enter icon by name..."},footerButtons:{submit:"Submit",change:"Change",select:"Select",cancel:"Cancel",close:"Close"},footerBlocks:{title:"Customize icon:",color:"Color",flip:"Flip",hFlip:"Horizontal",vFlip:"Vertical",rotate:"Rotate",width:"Width",height:"Height",size:"Size",alignment:"Alignment"},footerOptionButtons:{hFlip:"Horizontal",vFlip:"Vertical",rotate:"{num}"+String.fromCharCode(176),rotateTitle:"Rotate {num}"+String.fromCharCode(176)},code:{titles:{iconify:"SVG Framework",svg:"SVG"}}}})),N=o((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.mergePhrases=e.phrases=void 0,Object.defineProperty(e,"phrases",{enumerable:!0,get:function(){return A.phrases}}),e.mergePhrases=function(t){return function t(e){const i=Object.create(null),n=Object.create(null);return e.forEach(t=>{for(const e in t)void 0===n[e]&&(n[e]=null===t[e]?"null":t[e]instanceof Array?"array":typeof t[e])}),Object.keys(n).forEach(o=>{const r=n[o],s=[];switch(e.forEach(t=>{"object"==typeof t&&typeof t[o]===r&&s.push(t[o])}),r){case"object":if(s.length>1)return void(i[o]=t(s));default:i[o]=s.pop()}}),i}(t)}})),F=o((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.init=void 0;e.init=function(t){t.router.defaultProvider=""}})),D=o((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.defaultComponentsConfig=void 0,e.defaultComponentsConfig={list:!1,toggleList:!0,codeTab:""}})),V=o((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.Wrapper=void 0;const i={search:{placeholder:{collection:"Search icons..."}}};M.setComponentsConfig(D.defaultComponentsConfig);e.Wrapper=class{constructor(t){this._state={icon:null},this._status="loading",this._container=null,this._params=t;const e=t.state,n={callback:this._coreCallback.bind(this)};e&&e.config&&(n.config=e.config),t.iconSets&&(n.iconSets=t.iconSets instanceof Array?{iconSets:t.iconSets}:t.iconSets);const o=this._core=new M.IconFinderCore(n),r=this._registry=o.registry;r.setCustom("phrases",N.mergePhrases([N.phrases,i,t.phrases?t.phrases:{}])),r.setCustom("callback",this._internalCallback.bind(this)),F.init(r);const s=this._state;s.route=r.route,s.config=M.customisedConfig(r.config),e&&(e.icon&&(s.icon=e.icon),e.customisations&&(s.customisations=e.customisations),e.route&&setTimeout(()=>{r.route=e.route}))}getStatus(){return this._status}getState(){return this._state}_hide(t){switch(this._status){case"hidden":case"destroyed":return;case"loading":case"":break;default:this._status}this._status=t,this._container&&this._container.$set({hidden:!0})}hide(){this._hide("hidden")}destroy(){"destroyed"!==this._status&&(this._hide("destroyed"),this._container=null,this._registry.destroy())}show(){switch(this._status){case"destroyed":case"loading":case"":return;case"hidden":break;default:this._status}this._status="",this._container&&this._container.$set({hidden:!1})}_initContainer(t){const e=this._state;let i=!1;switch(this._status){case"hidden":case"destroyed":i=!0;case"":case"loading":break;default:this._status}const n={...t,selectedIcon:e.icon,customisations:e.customisations,registry:this._core.registry,hidden:i},o={target:this._params.container,props:n};return new this._params.component(o)}_triggerEvent(t){"destroyed"!==this._status&&this._params.callback&&this._params.callback(t)}_coreCallback(t){if(this._container){const e=this._container;t.viewChanged||!M.compareObjects(t.route,e.$$.props.route)?(e.$set(t),this._setRoute(t.route,!1)):""!==t.error&&t.error===e.$$.props.error||e.$set({error:t.error,blocks:t.blocks})}else this._container=this._initContainer(t),"loading"===this._status&&(this._status="",this._triggerEvent({type:"load"})),this._setRoute(t.route,!1)}_internalCallback(t){let e,i;switch(t.type){case"selection":return i=t,e="string"==typeof i.icon?M.stringToIcon(i.icon):i.icon?{provider:i.icon.provider,prefix:i.icon.prefix,name:i.icon.name}:null,void this._selectIcon(e,!0);case"customisation":return void this._setCustomisations(t.customisations,!1);case"button":return void this._triggerEvent({type:"button",button:t.button,state:this._state});case"config":return this._state.config=M.customisedConfig(this._registry.config),void this._triggerEvent({type:"config",config:this._state.config})}}_setRoute(t,e){const i=this._state;return(void 0===i.route||!M.compareObjects(t,i.route))&&(i.route=t,this._triggerEvent({type:"route",route:t}),e&&console.log("TODO: update route in container"),!0)}setRoute(t){if("destroyed"===this._status)return;const e=this._core.router;function i(){null===t?e.home():e.route=t}this._container?i():setTimeout(i)}_selectIcon(t,e){const i=this._state;return!(!t&&!i.icon||i.icon&&t&&M.compareIcons(t,i.icon))&&(i.icon=t,e&&(this._container?this._container.$set({selectedIcon:t}):(this._params.state||(this._params.state={}),this._params.state.icon=t)),this._triggerEvent({type:"icon",icon:t}),!0)}selectIcon(t){if("destroyed"===this._status)return;let e;if("string"==typeof t){if(""===t)e=null;else if(e=M.stringToIcon(t),!M.validateIcon(e))return}else e=t;this._selectIcon(e,!0)}_setCustomisations(t,e){const i=this._state;return(void 0===i.customisations||!M.compareObjects(i.customisations,t))&&(i.customisations=t,e&&(this._container?this._container.$set({customisations:t}):(this._params.state||(this._params.state={}),this._params.state.customisations=t)),this._triggerEvent({type:"customisations",customisations:t}),!0)}setCustomisations(t){"destroyed"!==this._status&&this._setCustomisations(t,!0)}}}));function H(){}function q(t,e){for(const i in e)t[i]=e[i];return t}function G(t){return t()}function U(){return Object.create(null)}function z(t){t.forEach(G)}function W(t){return"function"==typeof t}function K(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function Q(t,e,i,n){if(t){const o=J(t,e,i,n);return t[0](o)}}function J(t,e,i,n){return t[1]&&n?q(i.ctx.slice(),t[1](n(e))):i.ctx}function X(t,e,i,n,o,r,s){const l=function(t,e,i,n){if(t[2]&&n){const o=t[2](n(i));if(void 0===e.dirty)return o;if("object"==typeof o){const t=[],i=Math.max(e.dirty.length,o.length);for(let n=0;n<i;n+=1)t[n]=e.dirty[n]|o[n];return t}return e.dirty|o}return e.dirty}(e,n,o,r);if(l){const o=J(e,i,n,s);t.p(o,l)}}function Y(t){const e={};for(const i in t)"$"!==i[0]&&(e[i]=t[i]);return e}function Z(t,e){t.appendChild(e)}function tt(t,e,i){t.insertBefore(e,i||null)}function et(t){t.parentNode.removeChild(t)}function it(t,e){for(let i=0;i<t.length;i+=1)t[i]&&t[i].d(e)}function nt(t){return document.createElement(t)}function ot(t){return document.createTextNode(t)}function rt(){return ot(" ")}function st(){return ot("")}function lt(t,e,i,n){return t.addEventListener(e,i,n),()=>t.removeEventListener(e,i,n)}function ct(t){return function(e){return e.preventDefault(),t.call(this,e)}}function at(t,e,i){null==i?t.removeAttribute(e):t.getAttribute(e)!==i&&t.setAttribute(e,i)}function ut(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function ft(t,e){t.value=null==e?"":e}class dt{constructor(t=null){this.a=t,this.e=this.n=null}m(t,e,i=null){this.e||(this.e=nt(e.nodeName),this.t=e,this.h(t)),this.i(i)}h(t){this.e.innerHTML=t,this.n=Array.from(this.e.childNodes)}i(t){for(let e=0;e<this.n.length;e+=1)tt(this.t,this.n[e],t)}p(t){this.d(),this.h(t),this.i(this.a)}d(){this.n.forEach(et)}}let ht;function pt(t){ht=t}function gt(){if(!ht)throw new Error("Function called outside component initialization");return ht}function mt(t){gt().$$.on_destroy.push(t)}const yt=[],$t=[],bt=[],_t=[],vt=Promise.resolve();let kt=!1;function wt(t){bt.push(t)}function xt(t){_t.push(t)}let Ct=!1;const jt=new Set;function Pt(){if(!Ct){Ct=!0;do{for(let t=0;t<yt.length;t+=1){const e=yt[t];pt(e),It(e.$$)}for(pt(null),yt.length=0;$t.length;)$t.pop()();for(let t=0;t<bt.length;t+=1){const e=bt[t];jt.has(e)||(jt.add(e),e())}bt.length=0}while(yt.length);for(;_t.length;)_t.pop()();kt=!1,Ct=!1,jt.clear()}}function It(t){if(null!==t.fragment){t.update(),z(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(wt)}}const Ot=new Set;let Rt;function Bt(){Rt={r:0,c:[],p:Rt}}function St(){Rt.r||z(Rt.c),Rt=Rt.p}function Et(t,e){t&&t.i&&(Ot.delete(t),t.i(e))}function Tt(t,e,i,n){if(t&&t.o){if(Ot.has(t))return;Ot.add(t),Rt.c.push(()=>{Ot.delete(t),n&&(i&&t.d(1),n())}),t.o(e)}}function Lt(t,e){t.d(1),e.delete(t.key)}function Mt(t,e){Tt(t,1,1,()=>{e.delete(t.key)})}function At(t,e,i,n,o,r,s,l,c,a,u,f){let d=t.length,h=r.length,p=d;const g={};for(;p--;)g[t[p].key]=p;const m=[],y=new Map,$=new Map;for(p=h;p--;){const t=f(o,r,p),l=i(t);let c=s.get(l);c?n&&c.p(t,e):(c=a(l,t),c.c()),y.set(l,m[p]=c),l in g&&$.set(l,Math.abs(p-g[l]))}const b=new Set,_=new Set;function v(t){Et(t,1),t.m(l,u),s.set(t.key,t),u=t.first,h--}for(;d&&h;){const e=m[h-1],i=t[d-1],n=e.key,o=i.key;e===i?(u=e.first,d--,h--):y.has(o)?!s.has(n)||b.has(n)?v(e):_.has(o)?d--:$.get(n)>$.get(o)?(_.add(n),v(e)):(b.add(o),d--):(c(i,s),d--)}for(;d--;){const e=t[d];y.has(e.key)||c(e,s)}for(;h;)v(m[h-1]);return m}function Nt(t,e){const i={},n={},o={$$scope:1};let r=t.length;for(;r--;){const s=t[r],l=e[r];if(l){for(const t in s)t in l||(n[t]=1);for(const t in l)o[t]||(i[t]=l[t],o[t]=1);t[r]=l}else for(const t in s)o[t]=1}for(const t in n)t in i||(i[t]=void 0);return i}function Ft(t){return"object"==typeof t&&null!==t?t:{}}function Dt(t,e,i){const n=t.$$.props[e];void 0!==n&&(t.$$.bound[n]=i,i(t.$$.ctx[n]))}function Vt(t){t&&t.c()}function Ht(t,e,i){const{fragment:n,on_mount:o,on_destroy:r,after_update:s}=t.$$;n&&n.m(e,i),wt(()=>{const e=o.map(G).filter(W);r?r.push(...e):z(e),t.$$.on_mount=[]}),s.forEach(wt)}function qt(t,e){const i=t.$$;null!==i.fragment&&(z(i.on_destroy),i.fragment&&i.fragment.d(e),i.on_destroy=i.fragment=null,i.ctx=[])}function Gt(t,e){-1===t.$$.dirty[0]&&(yt.push(t),kt||(kt=!0,vt.then(Pt)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function Ut(t,e,i,n,o,r,s=[-1]){const l=ht;pt(t);const c=e.props||{},a=t.$$={fragment:null,ctx:null,props:r,update:H,not_equal:o,bound:U(),on_mount:[],on_destroy:[],before_update:[],after_update:[],context:new Map(l?l.$$.context:[]),callbacks:U(),dirty:s,skip_bound:!1};let u=!1;if(a.ctx=i?i(t,c,(e,i,...n)=>{const r=n.length?n[0]:i;return a.ctx&&o(a.ctx[e],a.ctx[e]=r)&&(!a.skip_bound&&a.bound[e]&&a.bound[e](r),u&&Gt(t,e)),i}):[],a.update(),u=!0,z(a.before_update),a.fragment=!!n&&n(a.ctx),e.target){if(e.hydrate){const t=function(t){return Array.from(t.childNodes)}(e.target);a.fragment&&a.fragment.l(t),t.forEach(et)}else a.fragment&&a.fragment.c();e.intro&&Et(t.$$.fragment),Ht(t,e.target,e.anchor),Pt()}pt(l)}class zt{$destroy(){qt(this,1),this.$destroy=H}$on(t,e){const i=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return i.push(e),()=>{const t=i.indexOf(e);-1!==t&&i.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}function Wt(t){let e,i;const n=t[1].default,o=Q(n,t,t[0],null);return{c(){e=nt("div"),o&&o.c(),at(e,"class","iif-wrapper")},m(t,n){tt(t,e,n),o&&o.m(e,null),i=!0},p(t,[e]){o&&o.p&&1&e&&X(o,n,t,t[0],e,null,null)},i(t){i||(Et(o,t),i=!0)},o(t){Tt(o,t),i=!1},d(t){t&&et(e),o&&o.d(t)}}}function Kt(t,e,i){let{$$slots:n={},$$scope:o}=e;return t.$$set=t=>{"$$scope"in t&&i(0,o=t.$$scope)},[o,n]}class Qt extends zt{constructor(t){super(),Ut(this,t,Kt,Wt,K,{})}}class Jt extends zt{constructor(t){super(),Ut(this,t,null,null,K,{})}}function Xt(t){let e,i;const n=t[5].default,o=Q(n,t,t[4],null);return{c(){e=nt("div"),o&&o.c(),at(e,"class",t[0])},m(t,n){tt(t,e,n),o&&o.m(e,null),i=!0},p(t,[r]){o&&o.p&&16&r&&X(o,n,t,t[4],r,null,null),(!i||1&r)&&at(e,"class",t[0])},i(t){i||(Et(o,t),i=!0)},o(t){Tt(o,t),i=!1},d(t){t&&et(e),o&&o.d(t)}}}const Yt="iif-block";function Zt(t,e,i){let n,{$$slots:o={},$$scope:r}=e,{type:s=""}=e,{name:l=""}=e,{extra:c=""}=e;return t.$$set=t=>{"type"in t&&i(1,s=t.type),"name"in t&&i(2,l=t.name),"extra"in t&&i(3,c=t.extra),"$$scope"in t&&i(4,r=t.$$scope)},t.$$.update=()=>{if(15&t.$$.dirty){if(i(0,n=Yt),""!==s){let t=" iif-block--"+s;i(0,n+=t),""!==l&&i(0,n+=t+"--"+l)}""!==c&&i(0,n+=" iif-block--"+c)}},[n,s,l,c,r,o]}class te extends zt{constructor(t){super(),Ut(this,t,Zt,Xt,K,{type:1,name:2,extra:3})}}var ee=o((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.shortenIconName=void 0,e.shortenIconName=function(t,e,i){if(!e||!t)return i;let n=!1;switch(t.type){case"collections":case"search":break;case"collection":n=!0;break;default:return i}const o=t.params,r=o&&"string"==typeof o.provider?o.provider:"";return e.provider!==r?i:n&&e.prefix===o.prefix?e.name:e.prefix+":"+e.name}}));function ie(t){let e;const i=t[6].default,n=Q(i,t,t[5],null);return{c(){n&&n.c()},m(t,i){n&&n.m(t,i),e=!0},p(t,e){n&&n.p&&32&e&&X(n,i,t,t[5],e,null,null)},i(t){e||(Et(n,t),e=!0)},o(t){Tt(n,t),e=!1},d(t){n&&n.d(t)}}}function ne(t){let e,i;return{c(){i=st(),e=new dt(i)},m(n,o){e.m(t[1],n,o),tt(n,i,o)},p(t,i){2&i&&e.p(t[1])},i:H,o:H,d(t){t&&et(i),t&&e.d()}}}function oe(t){let e,i,n,o;const r=[ne,ie],s=[];function l(t,e){return t[0]?0:1}return e=l(t),i=s[e]=r[e](t),{c(){i.c(),n=st()},m(t,i){s[e].m(t,i),tt(t,n,i),o=!0},p(t,[o]){let c=e;e=l(t),e===c?s[e].p(t,o):(Bt(),Tt(s[c],1,1,()=>{s[c]=null}),St(),i=s[e],i||(i=s[e]=r[e](t),i.c()),Et(i,1),i.m(n.parentNode,n))},i(t){o||(Et(i),o=!0)},o(t){Tt(i),o=!1},d(t){s[e].d(t),t&&et(n)}}}i.default.enableCache("local",!1),i.default.enableCache("session",!1);const re={reset:"line-md:close",search:"line-md:search",down:"line-md:chevron-down",left:"line-md:chevron-left",right:"line-md:chevron-right",parent:"line-md:chevron-left",grid:"line-md:grid-3-solid",list:"line-md:list-3-solid","error-loading":"@icon-finder:iconify-new:error-loading","icon-width":"line-md:double-arrow-horizontal","icon-height":"line-md:double-arrow-vertical",color:"line-md:paint-drop-half-twotone","color-filled":"line-md:paint-drop-filled",rotate0:"line-md:close",rotate1:"line-md:rotate-90",rotate2:"line-md:rotate-180",rotate3:"line-md:rotate-270","h-flip":"line-md:double-arrow-horizontal","v-flip":"line-md:double-arrow-vertical",plus:"line-md:plus",link:"line-md:external-link"};function se(t,e,n){let{$$slots:o={},$$scope:r}=e,{icon:s}=e,{props:l}=e,{onLoad:c}=e,a="",u=!1,f="",d=0,h=null;i.default.loadIcons(Object.values(re));const p=()=>{null!==a&&i.default.iconExists(a)&&!u&&n(8,d++,d)};return mt(()=>{null!==h&&(h(),n(9,h=null))}),t.$$set=t=>{"icon"in t&&n(2,s=t.icon),"props"in t&&n(3,l=t.props),"onLoad"in t&&n(4,c=t.onLoad),"$$scope"in t&&n(5,r=t.$$scope)},t.$$.update=()=>{if(132&t.$$.dirty){let t="string"==typeof re[s]?re[s]:-1===s.indexOf(":")?null:s;t!==a&&n(7,a=t)}if(923&t.$$.dirty)if(null!==a)if(u!==i.default.iconExists(a)&&(n(0,u=!u),u&&"function"==typeof c&&c()),u){const t=Object.assign({inline:!1},"object"==typeof l?l:{});let e=i.default.renderHTML(a,t);e!==f&&n(1,f=e)}else null!==h&&h(),n(9,h=i.default.loadIcons([a],p));else u&&n(0,u=!1)},[u,f,s,l,c,r,o]}[{provider:"icon-finder",prefix:"iconify-new",icons:{"error-loading":{body:'<g clip-path="url(#clip0)"><path d="M9.9.2l-.2 1C12.7 2 15 4.7 15 8c0 3.9-3.1 7-7 7s-7-3.1-7-7c0-3.3 2.3-6 5.3-6.8l-.2-1C2.6 1.1 0 4.3 0 8c0 4.4 3.6 8 8 8s8-3.6 8-8c0-3.7-2.6-6.9-6.1-7.8z" fill="currentColor"/></g><defs><clipPath id="clip0"><path fill="#fff" d="M0 0h16v16H0z"/></clipPath></defs>'}},width:16,height:16}].forEach(t=>{i.default.addCollection(t)});class le extends zt{constructor(t){super(),Ut(this,t,se,oe,K,{icon:2,props:3,onLoad:4})}}function ce(t){let e,i,n,o,r,s,l,c,a,u;return r=new le({props:{icon:t[1]}}),{c(){e=nt("div"),i=nt("dl"),n=nt("dt"),n.textContent=""+t[3].iconName,o=nt("dd"),Vt(r.$$.fragment),s=rt(),l=nt("div"),c=nt("span"),a=ot(t[2]),at(l,"class","iif-footer-icon-name-input"),at(e,"class","iif-footer-icon-name iif-footer-icon-name--simple")},m(t,f){tt(t,e,f),Z(e,i),Z(i,n),Z(i,o),Ht(r,o,null),Z(o,s),Z(o,l),Z(l,c),Z(c,a),u=!0},p(t,e){const i={};2&e&&(i.icon=t[1]),r.$set(i),(!u||4&e)&&ut(a,t[2])},i(t){u||(Et(r.$$.fragment,t),u=!0)},o(t){Tt(r.$$.fragment,t),u=!1},d(t){t&&et(e),qt(r)}}}function ae(t){let e,i,n=t[0]&&ce(t);return{c(){n&&n.c(),e=st()},m(t,o){n&&n.m(t,o),tt(t,e,o),i=!0},p(t,[i]){t[0]?n?(n.p(t,i),1&i&&Et(n,1)):(n=ce(t),n.c(),Et(n,1),n.m(e.parentNode,e)):n&&(Bt(),Tt(n,1,1,()=>{n=null}),St())},i(t){i||(Et(n),i=!0)},o(t){Tt(n),i=!1},d(t){n&&n.d(t),t&&et(e)}}}function ue(t,e,i){let{registry:n}=e,{loaded:o}=e,{iconName:r}=e,{selectedIcon:s}=e,{route:l}=e;const c=n.phrases.footer;let a;return t.$$set=t=>{"registry"in t&&i(4,n=t.registry),"loaded"in t&&i(0,o=t.loaded),"iconName"in t&&i(1,r=t.iconName),"selectedIcon"in t&&i(5,s=t.selectedIcon),"route"in t&&i(6,l=t.route)},t.$$.update=()=>{98&t.$$.dirty&&i(2,a=ee.shortenIconName(l,s,r))},[o,r,a,c,n,s,l]}class fe extends zt{constructor(t){super(),Ut(this,t,ue,ae,K,{registry:4,loaded:0,iconName:1,selectedIcon:5,route:6})}}function de(t,e,i){const n=t.slice();return n[7]=e[i],n[9]=i,n}function he(t){let e,i,n,o,r,s,l,c,a=t[7].text.replace("{icon}",t[1])+"",u=t[7].icon&&function(t){let e,i;return e=new le({props:{icon:t[7].icon}}),{c(){Vt(e.$$.fragment)},m(t,n){Ht(e,t,n),i=!0},p:H,i(t){i||(Et(e.$$.fragment,t),i=!0)},o(t){Tt(e.$$.fragment,t),i=!1},d(t){qt(e,t)}}}(t);return{c(){e=nt("button"),u&&u.c(),i=rt(),n=ot(a),o=rt(),at(e,"class",r=t[7].className)},m(r,a){tt(r,e,a),u&&u.m(e,null),Z(e,i),Z(e,n),Z(e,o),s=!0,l||(c=lt(e,"click",t[3].bind(this,t[7].key)),l=!0)},p(e,i){(t=e)[7].icon&&u.p(t,i),(!s||2&i)&&a!==(a=t[7].text.replace("{icon}",t[1])+"")&&ut(n,a)},i(t){s||(Et(u),s=!0)},o(t){Tt(u),s=!1},d(t){t&&et(e),u&&u.d(),l=!1,c()}}}function pe(t,e){let i,n,o,r=(e[0]||e[7].always)&&he(e);return{key:t,first:null,c(){i=st(),r&&r.c(),n=st(),this.first=i},m(t,e){tt(t,i,e),r&&r.m(t,e),tt(t,n,e),o=!0},p(t,e){t[0]||t[7].always?r?(r.p(t,e),1&e&&Et(r,1)):(r=he(t),r.c(),Et(r,1),r.m(n.parentNode,n)):r&&(Bt(),Tt(r,1,1,()=>{r=null}),St())},i(t){o||(Et(r),o=!0)},o(t){Tt(r),o=!1},d(t){t&&et(i),r&&r.d(t),t&&et(n)}}}function ge(t){let e,i,n=[],o=new Map,r=t[2];const s=t=>t[7].key;for(let e=0;e<r.length;e+=1){let i=de(t,r,e),l=s(i);o.set(l,n[e]=pe(l,i))}return{c(){e=nt("div");for(let t=0;t<n.length;t+=1)n[t].c();at(e,"class","iif-footer-buttons")},m(t,o){tt(t,e,o);for(let t=0;t<n.length;t+=1)n[t].m(e,null);i=!0},p(t,[i]){if(15&i){const r=t[2];Bt(),n=At(n,i,s,1,t,r,o,e,Mt,pe,null,de),St()}},i(t){if(!i){for(let t=0;t<r.length;t+=1)Et(n[t]);i=!0}},o(t){for(let t=0;t<n.length;t+=1)Tt(n[t]);i=!1},d(t){t&&et(e);for(let t=0;t<n.length;t+=1)n[t].d()}}}function me(t,e,i){let{registry:n}=e,{loaded:o}=e,{iconName:r}=e,{footerOptions:s}=e;const l=s.buttons,c=Object.keys(l).map(t=>{let e=l[t];return{key:t,className:"iif-form-button"+(e.type?" iif-form-button--"+e.type:"")+(e.icon?" iif-form-button--with-icon":""),...e}});return t.$$set=t=>{"registry"in t&&i(4,n=t.registry),"loaded"in t&&i(0,o=t.loaded),"iconName"in t&&i(1,r=t.iconName),"footerOptions"in t&&i(5,s=t.footerOptions)},[o,r,c,function(t){n.callback({type:"button",button:t})},n,s]}class ye extends zt{constructor(t){super(),Ut(this,t,me,ge,K,{registry:4,loaded:0,iconName:1,footerOptions:5})}}const $e={silver:[192,192,192],gray:[128,128,128],white:[255,255,255],maroon:[128,0,0],red:[255,0,0],purple:[128,0,128],fuchsia:[255,0,255],green:[0,128,0],lime:[0,255,0],olive:[128,128,0],yellow:[255,255,0],navy:[0,0,128],blue:[0,0,255],teal:[0,128,128],aqua:[0,255,255]},be={antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50],rebeccapurple:[102,51,153]};var _e={base:$e,extended:be,all:Object.assign({},$e,be)};class ve{constructor(){this._rgb=this._rgbRounded=this._hsl=this._hslRounded=this._luminance=null,this._alpha=1}static keywords(){return _e}setRGB(t,e,i,n){return this._setRGBArray([t,e,i,1],void 0!==n&&n)}setRGBA(t,e,i,n,o){return this._setRGBArray([t,e,i,n],void 0!==o&&o)}setRGBArray(t,e){return this._setRGBArray(t.slice(0),"boolean"==typeof e&&e),void 0!==e&&e instanceof Array&&(this._rgbRounded=e.slice(0)),this}setHSL(t,e,i,n){return this._setHSLArray([t,e,i,1],void 0!==n&&n)}setHSLA(t,e,i,n,o){return this._setHSLArray([t,e,i,n],void 0!==o&&o)}setHSLArray(t,e){return this._setHSLArray(t.slice(0),"boolean"==typeof e&&e),void 0!==e&&e instanceof Array&&(this._hslRounded=e.slice(0)),this}setAlpha(t){return this._alpha=t,this}setRed(t,e){return this._setRGB(0,t,void 0!==e&&e)}setGreen(t,e){return this._setRGB(1,t,void 0!==e&&e)}setBlue(t,e){return this._setRGB(2,t,void 0!==e&&e)}setHue(t,e){return this._setHSL(0,t,void 0!==e&&e)}setSaturation(t,e){return this._setHSL(1,t,void 0!==e&&e)}setLightness(t,e){return this._setHSL(2,t,void 0!==e&&e)}mix(t,e){if((e=void 0===e?50:e)<=0)return this;if(e>=100)return this.reset(),this._setRGBArray(t.getRGBA()),this;null===this._rgb&&this._convertToRGB();let i=t.getRGBA(),n=e/100,o=1-n;return this._setRGBArray([this._rgb[0]*o+i[0]*n,this._rgb[1]*o+i[1]*n,this._rgb[2]*o+i[2]*n,this._alpha*o+i[3]*n])}getRGB(t){return null===this._rgb&&this._convertToRGB(),t&&null===this._rgbRounded&&this._roundRGB(),t?this._rgbRounded.slice(0):this._rgb.slice(0)}getRGBA(t){let e=this.getRGB(t);return e.push(this._alpha),e}getHSL(t){return null===this._hsl&&this._convertToHSL(),t&&null===this._hslRounded&&this._roundHSL(),t?this._hslRounded.slice(0):this._hsl.slice(0)}getHSLA(t){let e=this.getHSL(t);return e.push(this._alpha),e}getAlpha(){return this._alpha}getRed(t){return this._getRGB(0,t)}getGreen(t){return this._getRGB(1,t)}getBlue(t){return this._getRGB(2,t)}getHue(t){return this._getHSL(0,t)}getSaturation(t){return this._getHSL(1,t)}getLightness(t){return this._getHSL(2,t)}getLuminance(){if(null!==this._luminance)return this._luminance;let t=[];null===this._rgb&&this._convertToRGB();for(let e=0;e<3;e++){let i=this._rgb[e]/255;t[e]=i<.03928?i/12.92:Math.pow((i+.055)/1.055,2.4)}return this._luminance=.2126*t[0]+.7152*t[1]+.0722*t[2],this._luminance}getContrast(t){let e=this.getLuminance()+.05,i=("number"==typeof t?t:t.getLuminance())+.05;return e>i?e/i:i/e}reset(){return this._rgb=this._rgbRounded=this._hsl=this._hslRounded=this._luminance=null,this._alpha=1,this}normalize(){return null!==this._rgb&&(this._rgb=[this._rgb[0]<0?0:this._rgb[0]>255?255:this._rgb[0],this._rgb[1]<0?0:this._rgb[1]>255?255:this._rgb[1],this._rgb[2]<0?0:this._rgb[2]>255?255:this._rgb[2]],null!==this._rgbRounded&&(this._rgbRounded=[this._rgbRounded[0]<0?0:this._rgbRounded[0]>255?255:this._rgbRounded[0],this._rgbRounded[1]<0?0:this._rgbRounded[1]>255?255:this._rgbRounded[1],this._rgbRounded[2]<0?0:this._rgbRounded[2]>255?255:this._rgbRounded[2]])),null!==this._hsl&&(this._hsl=[this._hsl[0]<0?this._hsl[0]%360+360:this._hsl[0]>=360?this._hsl[0]%360:this._hsl[0],this._hsl[1]<0?0:this._hsl[1]>100?100:this._hsl[1],this._hsl[2]<0?0:this._hsl[2]>100?100:this._hsl[2]],null!==this._hslRounded&&(this._hslRounded=[this._hslRounded[0]<0?this._hslRounded[0]%360+360:this._hslRounded[0]>=360?this._hslRounded[0]%360:this._hslRounded[0],this._hslRounded[1]<0?0:this._hslRounded[1]>100?100:this._hslRounded[1],this._hslRounded[2]<0?0:this._hslRounded[2]>100?100:this._hslRounded[2]])),this._alpha=this._alpha<0?0:this._alpha>1?1:this._alpha,this._luminance=null,this}clone(){let t=new ve;return null!==this._rgb?t.setRGBArray(this._rgb,this._rgbRounded):t.setHSLArray(this._hsl,this._hslRounded),this._alpha<1&&t.setAlpha(this._alpha),t}toKeyword(t,e){let i,n,o,r,s,l,c,a,u,f,d;if(t=void 0===t||t,e=void 0===e||e,0===this._alpha)return"transparent";for(c in n=e?_e.all:_e.base,null===this._rgb&&this._convertToRGB(),i=this._rgb,o=!1,r=t?1e3:1,s=t?256:1,n){for(l=n[c],a=0,f=0,d=0;d<3&&(u=Math.abs(l[d]-i[d]),a+=u,!(a>r));d++)f=Math.max(f,u);if(0===a)return c;t&&a<r?(o=c,r=a,s=f):t&&a===r&&f<s&&(o=c,s=f)}return o}toHex(t){return this._getHexValue(void 0!==t&&t,!1)}toIEHex(t){return this._getHexValue(void 0!==t&&t,!0)}toRGBString(t,e,i){return this.toString({format:"rgb",compress:void 0!==t&&t,ignoreAlpha:void 0!==e&&e,alphaPrecision:void 0===i?2:i})}toHSLString(t,e,i,n){return this.toString({format:"hsl",compress:void 0!==t&&t,ignoreAlpha:void 0!==e&&e,alphaPrecision:void 0===i?2:i,roundPrecision:void 0===n?2:n})}toString(t){let e,i=void 0===t?{}:t,n=void 0===i.format?"auto":i.format,o=void 0!==i.ignoreAlpha&&i.ignoreAlpha,r=void 0===i.roundPrecision?2:i.roundPrecision,s=void 0===i.alphaPrecision?2:i.alphaPrecision,l=void 0!==i.compress&&i.compress,c=o?1:ve._round(this._alpha,s),a=l?",":", ";switch(n){case"auto":if(null===this._rgb&&this._convertToRGB(),null===this._rgbRounded&&this._roundRGB(),r>0&&!ve._equalColors(this._rgb,this._rgbRounded)){n="hsl";break}return 1===c?this._getHexValue(l,!1):(e="rgba("+this._rgbRounded[0]+a+this._rgbRounded[1]+a+this._rgbRounded[2]+a+c+")",l?ve._compressString(e):e);case"rgb":case"rgba":return null===this._rgb&&this._convertToRGB(),null===this._rgbRounded&&this._roundRGB(),e=(1===c&&"rgba"!==n?"rgb(":"rgba(")+this._rgbRounded[0]+a+this._rgbRounded[1]+a+this._rgbRounded[2]+(1===c&&"rgba"!==n?"":a+c)+")",l?ve._compressString(e):e;case"hex":return this._getHexValue(l,!1);case"iehex":return this._getHexValue(l,!0)}return null===this._hsl&&this._convertToHSL(),e=(1===c&&"hsla"!==n?"hsl(":"hsla(")+ve._round(this._hsl[0],r)+a+ve._round(this._hsl[1],r)+"%"+a+ve._round(this._hsl[2],r)+"%"+(1===c&&"hsla"!==n?"":a+c)+")",l?ve._compressString(e):e}static fromKeyword(t,e){if(e=void 0===e||e,"transparent"===(t=t.toLowerCase()))return(new ve).setRGBA(0,0,0,0,!0);let i=e?_e.all:_e.base;return void 0===i[t]?null:(new ve).setRGBArray(i[t],!0)}static fromHex(t){let e,i,n,o=!1,r=0;if("#"===t.slice(0,1)&&(t=t.slice(1)),!/^[\da-f]+$/i.test(t))return null;switch(t.length){case 4:o=t.slice(0,1),o+=o,r++;case 3:e=t.slice(r,++r),i=t.slice(r,++r),n=t.slice(r,++r),e+=e,i+=i,n+=n;break;case 8:o=t.slice(0,2),r+=2;case 6:e=t.slice(r++,++r),i=t.slice(r++,++r),n=t.slice(r++,++r);break;default:return null}return(new ve).setRGBA(parseInt(e,16),parseInt(i,16),parseInt(n,16),!1===o?1:parseInt(o,16)/255,!0)}static fromString(t){let e,i,n,o,r,s,l,c,a,u,f,d;if(-1===t.indexOf("("))return r=ve.fromHex(t),null===r?ve.fromKeyword(t):r;if(")"!==(t=t.toLowerCase().replace(/\s+/g,"")).slice(-1))return null;if(e=(t=t.slice(0,t.length-1)).split("(",2),2!==e.length||/[^\d.,%-]/.test(e[1]))return null;if(i=e[0],n=e[1].split(","),o=1,"a"===i.slice(-1)){if(4!==n.length)return null;o=parseFloat(n.pop()),o=isNaN(o)||o<0?0:o>1?1:o}else if(3!==n.length)return null;switch(i){case"rgb":case"rgba":return"%"===n[0].slice(-1)?"%"!==n[1].slice(-1)||"%"!==n[2].slice(-1)?null:(s=parseFloat(n[0]),l=parseFloat(n[1]),c=parseFloat(n[2]),(new ve).setRGBA(isNaN(s)||s<0?0:s>100?255:2.55*s,isNaN(l)||l<0?0:l>100?255:2.55*l,isNaN(c)||c<0?0:c>100?255:2.55*c,o)):-1!==e[1].indexOf("%")?null:(s=parseInt(n[0]),l=parseInt(n[1]),c=parseInt(n[2]),(new ve).setRGBA(isNaN(s)||s<0?0:s>255?255:s,isNaN(l)||l<0?0:l>255?255:l,isNaN(c)||c<0?0:c>255?255:c,o,!0));case"hsl":case"hsla":return-1!==n[0].indexOf("%")||"%"!==n[1].slice(-1)||"%"!==n[2].slice(-1)?null:(a=parseFloat(n[0]),u=parseFloat(n[1]),f=parseFloat(n[2]),d=-1===e[1].indexOf("."),(new ve).setHSLA(isNaN(a)?0:a<0?a%360+360:a>=360?a%360:a,isNaN(u)||u<0?0:u>100?100:u,isNaN(f)||f<0?0:f>100?100:f,o,d))}return null}_setRGBArray(t,e){if(4===t.length)this._alpha=t.pop();else{if(3!==t.length)return null;this._alpha=1}return this._resetSpaces("rgb"),this._rgb=t,this._rgbRounded=e?t.slice(0):null,this}_setHSLArray(t,e){if(4===t.length)this._alpha=t.pop();else{if(3!==t.length)return null;this._alpha=1}return this._resetSpaces("hsl"),this._hsl=t,this._hslRounded=e?t.slice(0):null,this}_setRGB(t,e,i){return null===this._rgb&&this._convertToRGB(),this._resetSpaces("rgb"),this._rgb[t]=e,null!==this._rgbRounded&&(i||Math.round(e)===e?this._rgbRounded[t]=e:this._rgbRounded=null),this}_setHSL(t,e,i){return null===this._hsl&&this._convertToHSL(),this._resetSpaces("hsl"),this._hsl[t]=e,null!==this._hslRounded&&(i||Math.round(e)===e?this._hslRounded[t]=e:this._hslRounded=null),this}_getRGB(t,e){return null===this._rgb&&this._convertToRGB(),e&&null===this._rgbRounded&&this._roundRGB(),e?this._rgbRounded[t]:this._rgb[t]}_getHSL(t,e){return null===this._hsl&&this._convertToHSL(),e&&null===this._hslRounded&&this._roundHSL(),e?this._hslRounded[t]:this._hsl[t]}_roundRGB(){let t=Math.round(this._rgb[0]),e=Math.round(this._rgb[1]),i=Math.round(this._rgb[2]);this._rgbRounded=[t<0?0:t>255?255:t,e<0?0:e>255?255:e,i<0?0:i>255?255:i]}_roundHSL(){let t=Math.round(this._hsl[0]),e=Math.round(this._hsl[1]),i=Math.round(this._hsl[2]);this._hslRounded=[t<0?t%360+360:t>=360?t%360:t,e<0?0:e>100?100:e,i<0?0:i>100?100:i]}static _normalize(t,e){return e=void 0===e?100:e,t<0?0:t>e?e:t}static _normalizeHue(t){return t<0?t%360+360:t>=360?t%360:t}static _rgb2hsl(t,e,i,n){let o,r,s,l=t/255,c=e/255,a=i/255,u=Math.min(l,Math.min(c,a)),f=Math.max(l,Math.max(c,a)),d=(f+u)/2;return f===u?o=r=0:(o=d<.5?(f-u)/(f+u):(f-u)/(2-f-u),s=f-u,f===l&&(r=(c-a)/s),f===c&&(r=2+(a-l)/s),f===a&&(r=4+(l-c)/s),r*=60,r<0&&(r+=360)),(n=void 0!==n&&n)?[Math.round(r),Math.round(100*o),Math.round(100*d)]:[r,100*o,100*d]}static _hsl2rgb(t,e,i,n){let o,r,s,l,c,a,u,f;function d(t,e,i){return(i=i<0?i%360+360:i>=360?i%360:i)>=240?t:i<60?t+(e-t)*i/60:i<180?e:t+(e-t)*(240-i)/60}return n=void 0!==n&&n,s=t<0?t%360+360:t>=360?t%360:t,r=e<0?0:e>100?1:e/100,o=i<0?0:i>100?1:i/100,c=o<=.5?o*(1+r):o+r*(1-o),l=2*o-c,0===r&&0===s?(a=o,u=o,f=o):(a=d(l,c,s+120),u=d(l,c,s),f=d(l,c,s-120)),[n?Math.round(255*a):255*a,n?Math.round(255*u):255*u,n?Math.round(255*f):255*f]}_convertToRGB(){this._rgb=null===this._hsl?[255,0,0]:ve._hsl2rgb(this._hsl[0],this._hsl[1],this._hsl[2],!1),this._rgbRounded=null}_convertToHSL(){this._hsl=null===this._rgb?[0,100,50]:ve._rgb2hsl(this._rgb[0],this._rgb[1],this._rgb[2],!1),this._hslRounded=null}_resetSpaces(t){"rgb"!==(t=void 0===t?"":t)&&(this._rgb=this._rgbRounded=null),"hsl"!==t&&(this._hsl=this._hslRounded=null),this._luminance=null}static _round(t,e){return e=Math.pow(10,e),Math.round(t*e)/e}static _equalColors(t,e){if(!(t instanceof Array&&e instanceof Array))return!1;for(let i=0;i<3;i++)if(t[i]!==e[i])return!1;return!0}_getHexValue(t,e){null===this._rgb&&this._convertToRGB(),null===this._rgbRounded&&this._roundRGB();let i="#";if(e){let t=Math.max(Math.min(Math.round(255*this._alpha),255),0);i+=(t<16?"0":"")+t.toString(16)}for(let t=0;t<3;t++)i+=(this._rgbRounded[t]<16?"0":"")+this._rgbRounded[t].toString(16);return t?ve._compressString(i):i}static _compressString(t){if("#"===t.slice(0,1)){let e=t.length-1;if(6!==e&&8!==e)return t;let i="",n="",o=e/2;for(let e=0;e<o;e++)if(i+=t.slice(2*e+1,2*e+2),n+=t.slice(2*e+2,2*e+3),i!==n)return t;return"#"+i}return t.replace(" ","").replace("(0.","(.").replace(",0.",",.")}}var ke=ve;function we(t){let e,i,n;return i=new le({props:{icon:t[3],onLoad:t[7]}}),{c(){e=nt("div"),Vt(i.$$.fragment),at(e,"class","iif-input-icon"),at(e,"style",t[5])},m(t,o){tt(t,e,o),Ht(i,e,null),n=!0},p(t,o){const r={};8&o&&(r.icon=t[3]),i.$set(r),(!n||32&o)&&at(e,"style",t[5])},i(t){n||(Et(i.$$.fragment,t),n=!0)},o(t){Tt(i.$$.fragment,t),n=!1},d(t){t&&et(e),qt(i)}}}function xe(t){let e,i;return{c(){e=nt("div"),i=ot(t[1]),at(e,"class","iif-input-placeholder")},m(t,n){tt(t,e,n),Z(e,i)},p(t,e){2&e&&ut(i,t[1])},d(t){t&&et(e)}}}function Ce(t){let e,i,n,o,r;return i=new le({props:{icon:"reset"}}),{c(){e=nt("a"),Vt(i.$$.fragment),at(e,"class","iif-input-reset"),at(e,"href","# ")},m(s,l){tt(s,e,l),Ht(i,e,null),n=!0,o||(r=lt(e,"click",ct(t[8])),o=!0)},p:H,i(t){n||(Et(i.$$.fragment,t),n=!0)},o(t){Tt(i.$$.fragment,t),n=!1},d(t){t&&et(e),qt(i),o=!1,r()}}}function je(t){let e,i,n,o,r,s,l,c,a,u,f=""!==t[3]&&we(t),d=""===t[0]&&""!==t[1]&&xe(t),h=""!==t[0]&&Ce(t);return{c(){e=nt("div"),i=nt("div"),f&&f.c(),n=rt(),o=nt("input"),s=rt(),d&&d.c(),l=rt(),h&&h.c(),at(o,"type","text"),at(o,"title",r=t[2]?t[2]:t[1]),at(o,"spellcheck","false"),at(o,"autocomplete","off"),at(o,"autocorrect","off"),at(o,"autocapitalize","off"),at(i,"class",t[4]),at(e,"class","iif-input-wrapper")},m(r,p){tt(r,e,p),Z(e,i),f&&f.m(i,null),Z(i,n),Z(i,o),ft(o,t[0]),t[18](o),Z(i,s),d&&d.m(i,null),Z(i,l),h&&h.m(i,null),c=!0,a||(u=[lt(o,"input",t[17]),lt(o,"input",t[9]),lt(o,"blur",t[10])],a=!0)},p(t,[e]){""!==t[3]?f?(f.p(t,e),8&e&&Et(f,1)):(f=we(t),f.c(),Et(f,1),f.m(i,n)):f&&(Bt(),Tt(f,1,1,()=>{f=null}),St()),(!c||6&e&&r!==(r=t[2]?t[2]:t[1]))&&at(o,"title",r),1&e&&o.value!==t[0]&&ft(o,t[0]),""===t[0]&&""!==t[1]?d?d.p(t,e):(d=xe(t),d.c(),d.m(i,l)):d&&(d.d(1),d=null),""!==t[0]?h?(h.p(t,e),1&e&&Et(h,1)):(h=Ce(t),h.c(),Et(h,1),h.m(i,null)):h&&(Bt(),Tt(h,1,1,()=>{h=null}),St()),(!c||16&e)&&at(i,"class",t[4])},i(t){c||(Et(f),Et(h),c=!0)},o(t){Tt(f),Tt(h),c=!1},d(i){i&&et(e),f&&f.d(),t[18](null),d&&d.d(),h&&h.d(),a=!1,z(u)}}}function Pe(t,e,i){let n,o,r,{placeholder:s=""}=e,{title:l}=e,{value:c=""}=e,{disabled:a=!1}=e,{icon:u=""}=e,{type:f=""}=e,{extra:d=""}=e,{onInput:h}=e,{onBlur:p}=e,{autofocus:g=!1}=e,m=!1;function y(){"function"==typeof h&&h(c)}var $;return $=()=>{g&&r.focus()},gt().$$.on_mount.push($),t.$$set=t=>{"placeholder"in t&&i(1,s=t.placeholder),"title"in t&&i(2,l=t.title),"value"in t&&i(0,c=t.value),"disabled"in t&&i(11,a=t.disabled),"icon"in t&&i(3,u=t.icon),"type"in t&&i(12,f=t.type),"extra"in t&&i(13,d=t.extra),"onInput"in t&&i(14,h=t.onInput),"onBlur"in t&&i(15,p=t.onBlur),"autofocus"in t&&i(16,g=t.autofocus)},t.$$.update=()=>{530434&t.$$.dirty&&i(4,n="iif-input iif-input--with"+(""===s?"out":"")+"-placeholder"+(m?" iif-input--with-icon":"")+(""!==f?" iif-input--"+f:"")+(a?" iif-input--disabled":"")),12288&t.$$.dirty&&(i(5,o=""),"color"===f&&""!==d&&i(5,o="opacity: 1; color: "+d))},[c,s,l,u,n,o,r,function(){i(19,m=!0)},function(){i(0,c=""),y()},y,function(){"function"==typeof p&&p(c)},a,f,d,h,p,g,function(){c=this.value,i(0,c)},function(t){$t[t?"unshift":"push"](()=>{r=t,i(6,r)})}]}class Ie extends zt{constructor(t){super(),Ut(this,t,Pe,je,K,{placeholder:1,title:2,value:0,disabled:11,icon:3,type:12,extra:13,onInput:14,onBlur:15,autofocus:16})}}function Oe(t){let e,i,n,o,r,s;const l=t[4].default,c=Q(l,t,t[3],null);return{c(){e=nt("div"),i=nt("p"),n=ot(t[0]),o=rt(),r=nt("div"),c&&c.c(),at(e,"class","iif-footer-options-block")},m(t,l){tt(t,e,l),Z(e,i),Z(i,n),Z(e,o),Z(e,r),c&&c.m(r,null),s=!0},p(t,[e]){(!s||1&e)&&ut(n,t[0]),c&&c.p&&8&e&&X(c,l,t,t[3],e,null,null)},i(t){s||(Et(c,t),s=!0)},o(t){Tt(c,t),s=!1},d(t){t&&et(e),c&&c.d(t)}}}function Re(t,e,i){let{$$slots:n={},$$scope:o}=e,{registry:r}=e,{type:s}=e;const l=r.phrases.footerBlocks;let c;return t.$$set=t=>{"registry"in t&&i(1,r=t.registry),"type"in t&&i(2,s=t.type),"$$scope"in t&&i(3,o=t.$$scope)},t.$$.update=()=>{4&t.$$.dirty&&i(0,c=void 0===l[s]?s.split(" ").map(t=>t.slice(0,1).toUpperCase()+t.slice(1)).join(" "):l[s])},[c,r,s,o,n]}class Be extends zt{constructor(t){super(),Ut(this,t,Re,Oe,K,{registry:1,type:2})}}function Se(t){let e,i;return e=new Be({props:{type:"color",registry:t[1],$$slots:{default:[Ee]},$$scope:{ctx:t}}}),{c(){Vt(e.$$.fragment)},m(t,n){Ht(e,t,n),i=!0},p(t,i){const n={};2&i&&(n.registry=t[1]),2057&i&&(n.$$scope={dirty:i,ctx:t}),e.$set(n)},i(t){i||(Et(e.$$.fragment,t),i=!0)},o(t){Tt(e.$$.fragment,t),i=!1},d(t){qt(e,t)}}}function Ee(t){let e,i;return e=new Ie({props:{value:t[3],placeholder:Le,title:t[4],onInput:t[5],onBlur:t[6],icon:void 0===t[0]||""===t[0]?"color":"color-filled",extra:void 0===t[0]?"":t[0],type:"color"}}),{c(){Vt(e.$$.fragment)},m(t,n){Ht(e,t,n),i=!0},p(t,i){const n={};8&i&&(n.value=t[3]),1&i&&(n.icon=void 0===t[0]||""===t[0]?"color":"color-filled"),1&i&&(n.extra=void 0===t[0]?"":t[0]),e.$set(n)},i(t){i||(Et(e.$$.fragment,t),i=!0)},o(t){Tt(e.$$.fragment,t),i=!1},d(t){qt(e,t)}}}function Te(t){let e,i,n=t[2]&&Se(t);return{c(){n&&n.c(),e=st()},m(t,o){n&&n.m(t,o),tt(t,e,o),i=!0},p(t,[i]){t[2]?n?(n.p(t,i),4&i&&Et(n,1)):(n=Se(t),n.c(),Et(n,1),n.m(e.parentNode,e)):n&&(Bt(),Tt(n,1,1,()=>{n=null}),St())},i(t){i||(Et(n),i=!0)},o(t){Tt(n),i=!1},d(t){n&&n.d(t),t&&et(e)}}}const Le="";function Me(t,e,i){let n,{registry:o}=e,{iconData:r}=e,{value:s}=e,{customise:l}=e;const c=o.phrases.footerBlocks.color;let a=s,u=s;return t.$$set=t=>{"registry"in t&&i(1,o=t.registry),"iconData"in t&&i(7,r=t.iconData),"value"in t&&i(0,s=t.value),"customise"in t&&i(8,l=t.customise)},t.$$.update=()=>{128&t.$$.dirty&&i(2,n=-1!==r.body.indexOf("currentColor")),513&t.$$.dirty&&a!==s&&(i(9,a=s),i(3,u=s))},[s,o,n,u,c,function(t){if(i(3,u=t),""===t)return void l("color","");const e=function(t,e){const i=ke.fromString(t);if(!i)return e;return i.toKeyword(!1,!0)||i.toString({compress:!0})}(t,null);null!==e&&(i(9,a=i(0,s=e)),l("color",e))},function(){i(3,u=s)},r,l]}class Ae extends zt{constructor(t){super(),Ut(this,t,Me,Te,K,{registry:1,iconData:7,value:0,customise:8})}}var Ne=o((function(t,e){var o=n&&n.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.getDimensions=void 0;const r=o(i.default);e.getDimensions=function(t,e,i,n){return t&&e?{width:n?e:t,height:n?t:e}:(e?t=r.default._internal.calculateSize(e,n?1/i:i):e=r.default._internal.calculateSize(t,n?i:1/i),{width:t,height:e})}}));function Fe(t){let e,i;return e=new Ie({props:{value:t[2],placeholder:t[1],title:t[3],onInput:t[4],onBlur:t[5],icon:"icon-"+t[0],type:"number"}}),{c(){Vt(e.$$.fragment)},m(t,n){Ht(e,t,n),i=!0},p(t,[i]){const n={};4&i&&(n.value=t[2]),2&i&&(n.placeholder=t[1]),1&i&&(n.icon="icon-"+t[0]),e.$set(n)},i(t){i||(Et(e.$$.fragment,t),i=!0)},o(t){Tt(e.$$.fragment,t),i=!1},d(t){qt(e,t)}}}function De(t,e,i){let{registry:n}=e,{type:o}=e,{value:r}=e,{placeholder:s}=e,{customise:l}=e;const c=n.phrases.footerBlocks[o];let a=r,u=r;return t.$$set=t=>{"registry"in t&&i(6,n=t.registry),"type"in t&&i(0,o=t.type),"value"in t&&i(7,r=t.value),"placeholder"in t&&i(1,s=t.placeholder),"customise"in t&&i(8,l=t.customise)},t.$$.update=()=>{640&t.$$.dirty&&a!==r&&(i(9,a=r),i(2,u=r))},[o,s,u,c,function(t){i(2,u=t);let e=""===t?"":parseFloat(t);isNaN(e)||""+e!==t||l(o,""+e)},function(){i(2,u=r)},n,r,l]}class Ve extends zt{constructor(t){super(),Ut(this,t,De,Fe,K,{registry:6,type:0,value:7,placeholder:1,customise:8})}}function He(t,e,i){const n=t.slice();return n[6]=e[i],n[10]=i,n}function qe(t,e){let i,n,o;return n=new Ve({props:{registry:e[0],type:e[6],value:e[2][e[6]],iconSize:e[1][e[6]],placeholder:e[4][e[6]],customise:e[3]}}),{key:t,first:null,c(){i=st(),Vt(n.$$.fragment),this.first=i},m(t,e){tt(t,i,e),Ht(n,t,e),o=!0},p(t,e){const i={};1&e&&(i.registry=t[0]),4&e&&(i.value=t[2][t[6]]),2&e&&(i.iconSize=t[1][t[6]]),16&e&&(i.placeholder=t[4][t[6]]),8&e&&(i.customise=t[3]),n.$set(i)},i(t){o||(Et(n.$$.fragment,t),o=!0)},o(t){Tt(n.$$.fragment,t),o=!1},d(t){t&&et(i),qt(n,t)}}}function Ge(t){let e,i,n=[],o=new Map,r=t[5];const s=t=>t[6];for(let e=0;e<r.length;e+=1){let i=He(t,r,e),l=s(i);o.set(l,n[e]=qe(l,i))}return{c(){for(let t=0;t<n.length;t+=1)n[t].c();e=st()},m(t,o){for(let e=0;e<n.length;e+=1)n[e].m(t,o);tt(t,e,o),i=!0},p(t,i){if(63&i){const r=t[5];Bt(),n=At(n,i,s,1,t,r,o,e.parentNode,Mt,qe,e,He),St()}},i(t){if(!i){for(let t=0;t<r.length;t+=1)Et(n[t]);i=!0}},o(t){for(let t=0;t<n.length;t+=1)Tt(n[t]);i=!1},d(t){for(let e=0;e<n.length;e+=1)n[e].d(t);t&&et(e)}}}function Ue(t){let e,i;return e=new Be({props:{type:t[6],registry:t[0],$$slots:{default:[Ge]},$$scope:{ctx:t}}}),{c(){Vt(e.$$.fragment)},m(t,n){Ht(e,t,n),i=!0},p(t,[i]){const n={};1&i&&(n.registry=t[0]),2079&i&&(n.$$scope={dirty:i,ctx:t}),e.$set(n)},i(t){i||(Et(e.$$.fragment,t),i=!0)},o(t){Tt(e.$$.fragment,t),i=!1},d(t){qt(e,t)}}}function ze(t,e,i){let{registry:n}=e,{iconData:o}=e,{iconCustomisations:r}=e,{customise:s}=e;let l,c,a;return t.$$set=t=>{"registry"in t&&i(0,n=t.registry),"iconData"in t&&i(1,o=t.iconData),"iconCustomisations"in t&&i(2,r=t.iconCustomisations),"customise"in t&&i(3,s=t.customise)},t.$$.update=()=>{6&t.$$.dirty&&i(7,l=o.width!==o.height&&r.rotate&&r.rotate%2==1),2&t.$$.dirty&&i(8,c=o.width/o.height),390&t.$$.dirty&&(r.width||r.height?i(4,a=Ne.getDimensions(r.width,r.height,c,l)):i(4,a=Ne.getDimensions(o.width,o.height,c,l)))},[n,o,r,s,a,["width","height"],"size"]}class We extends zt{constructor(t){super(),Ut(this,t,ze,Ue,K,{registry:0,iconData:1,iconCustomisations:2,customise:3})}}function Ke(t){let e,i;return e=new le({props:{icon:t[0],onLoad:t[5]}}),{c(){Vt(e.$$.fragment)},m(t,n){Ht(e,t,n),i=!0},p(t,i){const n={};1&i&&(n.icon=t[0]),e.$set(n)},i(t){i||(Et(e.$$.fragment,t),i=!0)},o(t){Tt(e.$$.fragment,t),i=!1},d(t){qt(e,t)}}}function Qe(t){let e,i,n,o,r,s,l,c=(t[3]?t[3]:t[2])+"",a=t[0]&&Ke(t);return{c(){e=nt("button"),a&&a.c(),i=rt(),n=nt("span"),o=ot(c),at(e,"class",t[4]),at(e,"title",t[2])},m(c,u){tt(c,e,u),a&&a.m(e,null),Z(e,i),Z(e,n),Z(n,o),r=!0,s||(l=lt(e,"click",(function(){W(t[1])&&t[1].apply(this,arguments)})),s=!0)},p(n,[s]){(t=n)[0]?a?(a.p(t,s),1&s&&Et(a,1)):(a=Ke(t),a.c(),Et(a,1),a.m(e,i)):a&&(Bt(),Tt(a,1,1,()=>{a=null}),St()),(!r||12&s)&&c!==(c=(t[3]?t[3]:t[2])+"")&&ut(o,c),(!r||16&s)&&at(e,"class",t[4]),(!r||4&s)&&at(e,"title",t[2])},i(t){r||(Et(a),r=!0)},o(t){Tt(a),r=!1},d(t){t&&et(e),a&&a.d(),s=!1,l()}}}const Je="iif-option-button";function Xe(t,e,i){let n,{icon:o}=e,{onClick:r}=e,{title:s}=e,{text:l}=e,{status:c=""}=e,a=!1;return t.$$set=t=>{"icon"in t&&i(0,o=t.icon),"onClick"in t&&i(1,r=t.onClick),"title"in t&&i(2,s=t.title),"text"in t&&i(3,l=t.text),"status"in t&&i(6,c=t.status)},t.$$.update=()=>{200&t.$$.dirty&&i(4,n=Je+" "+Je+(a?"--with-icon":"--without-icon")+" "+Je+(l||!a?"--with-text":"--without-text")+(""===c?"":" "+Je+"--"+c))},[o,r,s,l,n,function(){i(7,a=!0)},c]}class Ye extends zt{constructor(t){super(),Ut(this,t,Xe,Qe,K,{icon:0,onClick:1,title:2,text:3,status:6})}}function Ze(t,e,i){const n=t.slice();return n[7]=e[i].count,n[8]=e[i].key,n[10]=i,n}function ti(t,e){let i,n,o;function r(...t){return e[6](e[7],...t)}return n=new Ye({props:{icon:"rotate"+e[7],title:e[3].rotateTitle.replace("{num}",90*e[7]),text:e[3].rotate.replace("{num}",90*e[7]),status:e[1]===e[7]?"checked":"unchecked",onClick:r}}),{key:t,first:null,c(){i=st(),Vt(n.$$.fragment),this.first=i},m(t,e){tt(t,i,e),Ht(n,t,e),o=!0},p(t,i){e=t;const o={};4&i&&(o.icon="rotate"+e[7]),4&i&&(o.title=e[3].rotateTitle.replace("{num}",90*e[7])),4&i&&(o.text=e[3].rotate.replace("{num}",90*e[7])),6&i&&(o.status=e[1]===e[7]?"checked":"unchecked"),4&i&&(o.onClick=r),n.$set(o)},i(t){o||(Et(n.$$.fragment,t),o=!0)},o(t){Tt(n.$$.fragment,t),o=!1},d(t){t&&et(i),qt(n,t)}}}function ei(t){let e,i,n=[],o=new Map,r=t[2];const s=t=>t[8];for(let e=0;e<r.length;e+=1){let i=Ze(t,r,e),l=s(i);o.set(l,n[e]=ti(l,i))}return{c(){for(let t=0;t<n.length;t+=1)n[t].c();e=st()},m(t,o){for(let e=0;e<n.length;e+=1)n[e].m(t,o);tt(t,e,o),i=!0},p(t,i){if(30&i){const r=t[2];Bt(),n=At(n,i,s,1,t,r,o,e.parentNode,Mt,ti,e,Ze),St()}},i(t){if(!i){for(let t=0;t<r.length;t+=1)Et(n[t]);i=!0}},o(t){for(let t=0;t<n.length;t+=1)Tt(n[t]);i=!1},d(t){for(let e=0;e<n.length;e+=1)n[e].d(t);t&&et(e)}}}function ii(t){let e,i;return e=new Be({props:{type:"rotate",registry:t[0],$$slots:{default:[ei]},$$scope:{ctx:t}}}),{c(){Vt(e.$$.fragment)},m(t,n){Ht(e,t,n),i=!0},p(t,[i]){const n={};1&i&&(n.registry=t[0]),2054&i&&(n.$$scope={dirty:i,ctx:t}),e.$set(n)},i(t){i||(Et(e.$$.fragment,t),i=!0)},o(t){Tt(e.$$.fragment,t),i=!1},d(t){qt(e,t)}}}function ni(t,e,i){let{registry:n}=e,{value:o}=e,{customise:r}=e;const s=n.phrases.footerOptionButtons;let l;function c(t){(t||o)&&r("rotate",t===o?0:t)}return t.$$set=t=>{"registry"in t&&i(0,n=t.registry),"value"in t&&i(1,o=t.value),"customise"in t&&i(5,r=t.customise)},t.$$.update=()=>{if(6&t.$$.dirty){i(2,l=[]);for(let t=0;t<4;t++)l.push({count:e=t,key:e+(o===t?"!":"")})}var e},[n,o,l,s,c,r,t=>c(t)]}class oi extends zt{constructor(t){super(),Ut(this,t,ni,ii,K,{registry:0,value:1,customise:5})}}function ri(t,e,i){const n=t.slice();return n[7]=e[i].type,n[8]=e[i].key,n[9]=e[i].icon,n[11]=i,n}function si(t,e){let i,n,o;function r(...t){return e[6](e[7],...t)}return n=new Ye({props:{icon:e[9],title:e[3][e[7]],status:e[1][e[7]]?"checked":"unchecked",onClick:r}}),{key:t,first:null,c(){i=st(),Vt(n.$$.fragment),this.first=i},m(t,e){tt(t,i,e),Ht(n,t,e),o=!0},p(t,i){e=t;const o={};4&i&&(o.icon=e[9]),4&i&&(o.title=e[3][e[7]]),6&i&&(o.status=e[1][e[7]]?"checked":"unchecked"),4&i&&(o.onClick=r),n.$set(o)},i(t){o||(Et(n.$$.fragment,t),o=!0)},o(t){Tt(n.$$.fragment,t),o=!1},d(t){t&&et(i),qt(n,t)}}}function li(t){let e,i,n=[],o=new Map,r=t[2];const s=t=>t[8];for(let e=0;e<r.length;e+=1){let i=ri(t,r,e),l=s(i);o.set(l,n[e]=si(l,i))}return{c(){for(let t=0;t<n.length;t+=1)n[t].c();e=st()},m(t,o){for(let e=0;e<n.length;e+=1)n[e].m(t,o);tt(t,e,o),i=!0},p(t,i){if(30&i){const r=t[2];Bt(),n=At(n,i,s,1,t,r,o,e.parentNode,Mt,si,e,ri),St()}},i(t){if(!i){for(let t=0;t<r.length;t+=1)Et(n[t]);i=!0}},o(t){for(let t=0;t<n.length;t+=1)Tt(n[t]);i=!1},d(t){for(let e=0;e<n.length;e+=1)n[e].d(t);t&&et(e)}}}function ci(t){let e,i;return e=new Be({props:{type:"flip",registry:t[0],$$slots:{default:[li]},$$scope:{ctx:t}}}),{c(){Vt(e.$$.fragment)},m(t,n){Ht(e,t,n),i=!0},p(t,[i]){const n={};1&i&&(n.registry=t[0]),4102&i&&(n.$$scope={dirty:i,ctx:t}),e.$set(n)},i(t){i||(Et(e.$$.fragment,t),i=!0)},o(t){Tt(e.$$.fragment,t),i=!1},d(t){qt(e,t)}}}function ai(t,e){return{type:t+"Flip",icon:t+"-flip",key:t+"Flip"+(e?"!":"")}}function ui(t,e,i){let{registry:n}=e,{iconCustomisations:o}=e,{customise:r}=e;const s=n.phrases.footerOptionButtons;let l;function c(t){r(t,!o[t])}return t.$$set=t=>{"registry"in t&&i(0,n=t.registry),"iconCustomisations"in t&&i(1,o=t.iconCustomisations),"customise"in t&&i(5,r=t.customise)},t.$$.update=()=>{2&t.$$.dirty&&i(2,l=[ai("h",o.hFlip),ai("v",o.vFlip)])},[n,o,l,s,c,r,t=>c(t)]}class fi extends zt{constructor(t){super(),Ut(this,t,ui,ci,K,{registry:0,iconCustomisations:1,customise:5})}}function di(t){let e,i,n,o,r,s,l=function(t){let e,i;return e=new Ae({props:{registry:t[0],iconData:t[3],value:t[2].color,customise:t[1]}}),{c(){Vt(e.$$.fragment)},m(t,n){Ht(e,t,n),i=!0},p(t,i){const n={};1&i&&(n.registry=t[0]),8&i&&(n.iconData=t[3]),4&i&&(n.value=t[2].color),2&i&&(n.customise=t[1]),e.$set(n)},i(t){i||(Et(e.$$.fragment,t),i=!0)},o(t){Tt(e.$$.fragment,t),i=!1},d(t){qt(e,t)}}}(t),c=function(t){let e,i;return e=new We({props:{registry:t[0],iconData:t[3],iconCustomisations:t[2],customise:t[1]}}),{c(){Vt(e.$$.fragment)},m(t,n){Ht(e,t,n),i=!0},p(t,i){const n={};1&i&&(n.registry=t[0]),8&i&&(n.iconData=t[3]),4&i&&(n.iconCustomisations=t[2]),2&i&&(n.customise=t[1]),e.$set(n)},i(t){i||(Et(e.$$.fragment,t),i=!0)},o(t){Tt(e.$$.fragment,t),i=!1},d(t){qt(e,t)}}}(t),a=function(t){let e,i;return e=new fi({props:{registry:t[0],iconData:t[3],iconCustomisations:t[2],customise:t[1]}}),{c(){Vt(e.$$.fragment)},m(t,n){Ht(e,t,n),i=!0},p(t,i){const n={};1&i&&(n.registry=t[0]),8&i&&(n.iconData=t[3]),4&i&&(n.iconCustomisations=t[2]),2&i&&(n.customise=t[1]),e.$set(n)},i(t){i||(Et(e.$$.fragment,t),i=!0)},o(t){Tt(e.$$.fragment,t),i=!1},d(t){qt(e,t)}}}(t),u=function(t){let e,i;return e=new oi({props:{registry:t[0],iconData:t[3],value:t[2].rotate,customise:t[1]}}),{c(){Vt(e.$$.fragment)},m(t,n){Ht(e,t,n),i=!0},p(t,i){const n={};1&i&&(n.registry=t[0]),8&i&&(n.iconData=t[3]),4&i&&(n.value=t[2].rotate),2&i&&(n.customise=t[1]),e.$set(n)},i(t){i||(Et(e.$$.fragment,t),i=!0)},o(t){Tt(e.$$.fragment,t),i=!1},d(t){qt(e,t)}}}(t);return{c(){e=rt(),i=nt("div"),l&&l.c(),n=rt(),c&&c.c(),o=rt(),a&&a.c(),r=rt(),u&&u.c(),at(i,"class","iif-footer-options-blocks")},m(t,f){tt(t,e,f),tt(t,i,f),l&&l.m(i,null),Z(i,n),c&&c.m(i,null),Z(i,o),a&&a.m(i,null),Z(i,r),u&&u.m(i,null),s=!0},p(t,e){l.p(t,e),c.p(t,e),a.p(t,e),u.p(t,e)},i(t){s||(Et(l),Et(c),Et(a),Et(u),s=!0)},o(t){Tt(l),Tt(c),Tt(a),Tt(u),s=!1},d(t){t&&et(e),t&&et(i),l&&l.d(),c&&c.d(),a&&a.d(),u&&u.d()}}}function hi(t){let e,i,n=t[3]&&di(t);return{c(){n&&n.c(),e=st()},m(t,o){n&&n.m(t,o),tt(t,e,o),i=!0},p(t,[i]){t[3]?n?(n.p(t,i),8&i&&Et(n,1)):(n=di(t),n.c(),Et(n,1),n.m(e.parentNode,e)):n&&(Bt(),Tt(n,1,1,()=>{n=null}),St())},i(t){i||(Et(n),i=!0)},o(t){Tt(n),i=!1},d(t){n&&n.d(t),t&&et(e)}}}function pi(t,e,n){let{registry:o}=e,{iconName:r}=e,{customise:s}=e,{iconCustomisations:l}=e;let c;return t.$$set=t=>{"registry"in t&&n(0,o=t.registry),"iconName"in t&&n(5,r=t.iconName),"customise"in t&&n(1,s=t.customise),"iconCustomisations"in t&&n(2,l=t.iconCustomisations)},t.$$.update=()=>{32&t.$$.dirty&&n(3,c=i.default.getIcon(r))},[o,s,l,c,"",r]}class gi extends zt{constructor(t){super(),Ut(this,t,pi,hi,K,{registry:0,iconName:5,customise:1,iconCustomisations:2})}}function mi(t){let e;return{c(){e=nt("div"),at(e,"class","iif-footer-sample iif-footer-sample--empty")},m(t,i){tt(t,e,i)},p:H,i:H,o:H,d(t){t&&et(e)}}}function yi(t){let e,i,n;return i=new le({props:{icon:t[1],props:t[3]}}),{c(){e=nt("div"),Vt(i.$$.fragment),at(e,"class","iif-footer-sample iif-footer-sample--loaded"),at(e,"style",t[2])},m(t,o){tt(t,e,o),Ht(i,e,null),n=!0},p(t,o){const r={};2&o&&(r.icon=t[1]),8&o&&(r.props=t[3]),i.$set(r),(!n||4&o)&&at(e,"style",t[2])},i(t){n||(Et(i.$$.fragment,t),n=!0)},o(t){Tt(i.$$.fragment,t),n=!1},d(t){t&&et(e),qt(i)}}}function $i(t){let e,i,n,o;const r=[yi,mi],s=[];function l(t,e){return t[0]?0:1}return e=l(t),i=s[e]=r[e](t),{c(){i.c(),n=st()},m(t,i){s[e].m(t,i),tt(t,n,i),o=!0},p(t,[o]){let c=e;e=l(t),e===c?s[e].p(t,o):(Bt(),Tt(s[c],1,1,()=>{s[c]=null}),St(),i=s[e],i||(i=s[e]=r[e](t),i.c()),Et(i,1),i.m(n.parentNode,n))},i(t){o||(Et(i),o=!0)},o(t){Tt(i),o=!1},d(t){s[e].d(t),t&&et(n)}}}function bi(t,e,n){let{loaded:o}=e,{iconName:r}=e,{iconCustomisations:s}=e,{footerOptions:l}=e;const c=[2.5,3,3.5],a=l.fullSample.width,u=l.fullSample.height,f=Math.floor(a/2),d=Math.floor(u/2);let h,p,g,m,y;function $(t,e){for(;t.width>a||t.height>u;){let e=t.width/2,i=t.height/2;if(Math.round(e)!==e||Math.round(i)!==i)for(let n=0;n<c.length;n++){let o=c[n],r=t.width/o,s=t.height/o;if(Math.round(r)===r&&Math.round(s)===s){e=r,i=s;break}}t.width=e,t.height=i}if(e)for(;t.width<f&&t.height<d;)t.width*=2,t.height*=2}return t.$$set=t=>{"loaded"in t&&n(0,o=t.loaded),"iconName"in t&&n(1,r=t.iconName),"iconCustomisations"in t&&n(4,s=t.iconCustomisations),"footerOptions"in t&&n(5,l=t.footerOptions)},t.$$.update=()=>{if(3&t.$$.dirty&&n(6,h=o?i.default.getIcon(r):null),81&t.$$.dirty&&n(7,p=o&&h.width!==h.height&&s.rotate&&s.rotate%2==1),65&t.$$.dirty&&n(8,g=o?h.width/h.height:1),469&t.$$.dirty&&(n(2,m=""),s.color&&n(2,m+="color: "+s.color+";"),o&&!s.width&&!s.height)){let t;t=Ne.getDimensions(h.width,h.height,g,p),$(t,!0),n(2,m+="font-size: "+t.height+"px;")}if(401&t.$$.dirty&&o){let t;n(3,y={}),["hFlip","vFlip","rotate"].forEach(t=>{s[t]&&n(3,y[t]=s[t],y)}),(s.width||s.height)&&(t=Ne.getDimensions(s.width,s.height,g,p)),void 0!==t&&($(t,!1),n(3,y.width=t.width,y),n(3,y.height=t.height,y))}},[o,r,m,y,s,l]}class _i extends zt{constructor(t){super(),Ut(this,t,bi,$i,K,{loaded:0,iconName:1,iconCustomisations:4,footerOptions:5})}}function vi(t){let e,i;return e=new te({props:{type:"footer",$$slots:{default:[xi]},$$scope:{ctx:t}}}),{c(){Vt(e.$$.fragment)},m(t,n){Ht(e,t,n),i=!0},p(t,i){const n={};511&i&&(n.$$scope={dirty:i,ctx:t}),e.$set(n)},i(t){i||(Et(e.$$.fragment,t),i=!0)},o(t){Tt(e.$$.fragment,t),i=!1},d(t){qt(e,t)}}}function ki(t){let e,i;return e=new gi({props:{registry:t[0],iconName:t[3],customise:t[4],iconCustomisations:t[5]}}),{c(){Vt(e.$$.fragment)},m(t,n){Ht(e,t,n),i=!0},p(t,i){const n={};1&i&&(n.registry=t[0]),8&i&&(n.iconName=t[3]),16&i&&(n.customise=t[4]),32&i&&(n.iconCustomisations=t[5]),e.$set(n)},i(t){i||(Et(e.$$.fragment,t),i=!0)},o(t){Tt(e.$$.fragment,t),i=!1},d(t){qt(e,t)}}}function wi(t){let e,i;return e=new ye({props:{registry:t[0],loaded:t[1],iconName:t[3],footerOptions:t[7]}}),{c(){Vt(e.$$.fragment)},m(t,n){Ht(e,t,n),i=!0},p(t,i){const n={};1&i&&(n.registry=t[0]),2&i&&(n.loaded=t[1]),8&i&&(n.iconName=t[3]),128&i&&(n.footerOptions=t[7]),e.$set(n)},i(t){i||(Et(e.$$.fragment,t),i=!0)},o(t){Tt(e.$$.fragment,t),i=!1},d(t){qt(e,t)}}}function xi(t){let e,i,n,o,r,s,l,c,a;i=new _i({props:{registry:t[0],loaded:t[1],iconName:t[3],iconCustomisations:t[5],footerOptions:t[7]}}),r=new fe({props:{registry:t[0],iconName:t[3],loaded:t[1],selectedIcon:t[2],route:t[6]}});let u=t[1]&&ki(t),f=ji,d=t[7].showButtons&&wi(t);return{c(){e=nt("div"),Vt(i.$$.fragment),n=rt(),o=nt("div"),Vt(r.$$.fragment),s=rt(),u&&u.c(),l=rt(),c=rt(),d&&d.c(),at(o,"class","iif-footer-full-content"),at(e,"class","iif-footer-full")},m(t,f){tt(t,e,f),Ht(i,e,null),Z(e,n),Z(e,o),Ht(r,o,null),Z(o,s),u&&u.m(o,null),Z(o,l),Z(o,c),d&&d.m(o,null),a=!0},p(t,e){const n={};1&e&&(n.registry=t[0]),2&e&&(n.loaded=t[1]),8&e&&(n.iconName=t[3]),32&e&&(n.iconCustomisations=t[5]),128&e&&(n.footerOptions=t[7]),i.$set(n);const s={};1&e&&(s.registry=t[0]),8&e&&(s.iconName=t[3]),2&e&&(s.loaded=t[1]),4&e&&(s.selectedIcon=t[2]),64&e&&(s.route=t[6]),r.$set(s),t[1]?u?(u.p(t,e),2&e&&Et(u,1)):(u=ki(t),u.c(),Et(u,1),u.m(o,l)):u&&(Bt(),Tt(u,1,1,()=>{u=null}),St()),t[7].showButtons?d?(d.p(t,e),128&e&&Et(d,1)):(d=wi(t),d.c(),Et(d,1),d.m(o,null)):d&&(Bt(),Tt(d,1,1,()=>{d=null}),St())},i(t){a||(Et(i.$$.fragment,t),Et(r.$$.fragment,t),Et(u),Et(f),Et(d),a=!0)},o(t){Tt(i.$$.fragment,t),Tt(r.$$.fragment,t),Tt(u),Tt(f),Tt(d),a=!1},d(t){t&&et(e),qt(i),qt(r),u&&u.d(),d&&d.d()}}}function Ci(t){let e,i,n=t[1]|t[7].showButtons&&vi(t);return{c(){n&&n.c(),e=st()},m(t,o){n&&n.m(t,o),tt(t,e,o),i=!0},p(t,[i]){t[1]|t[7].showButtons?n?(n.p(t,i),130&i&&Et(n,1)):(n=vi(t),n.c(),Et(n,1),n.m(e.parentNode,e)):n&&(Bt(),Tt(n,1,1,()=>{n=null}),St())},i(t){i||(Et(n),i=!0)},o(t){Tt(n),i=!1},d(t){n&&n.d(t),t&&et(e)}}}const ji=!1;function Pi(t,e,i){let{registry:n}=e,{loaded:o}=e,{selectedIcon:r}=e,{iconName:s}=e,{customise:l}=e,{iconCustomisations:c}=e,{route:a}=e,{footerOptions:u}=e;return t.$$set=t=>{"registry"in t&&i(0,n=t.registry),"loaded"in t&&i(1,o=t.loaded),"selectedIcon"in t&&i(2,r=t.selectedIcon),"iconName"in t&&i(3,s=t.iconName),"customise"in t&&i(4,l=t.customise),"iconCustomisations"in t&&i(5,c=t.iconCustomisations),"route"in t&&i(6,a=t.route),"footerOptions"in t&&i(7,u=t.footerOptions)},[n,o,r,s,l,c,a,u]}class Ii extends zt{constructor(t){super(),Ut(this,t,Pi,Ci,K,{registry:0,loaded:1,selectedIcon:2,iconName:3,customise:4,iconCustomisations:5,route:6,footerOptions:7})}}var Oi=o((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.filterCustomisations=e.mergeCustomisations=e.defaultCustomisations=e.emptyCustomisations=void 0;e.emptyCustomisations={hFlip:!1,vFlip:!1,rotate:0,color:"",width:"",height:""},e.defaultCustomisations={hFlip:!1,vFlip:!1,rotate:0,color:"",width:"",height:""},e.mergeCustomisations=function(t,e){let i={};for(let n in t){const o=n;e&&typeof e[o]==typeof t[o]?i[o]=e[o]:i[o]=t[o]}return i},e.filterCustomisations=function(t){let i={};for(let n in e.defaultCustomisations){const o=n;t[o]!==e.defaultCustomisations[o]&&t[o]!==e.emptyCustomisations[o]&&(i[o]=t[o])}return i}}));function Ri(t){let e,i;return e=new Ii({props:{footerOptions:Bi,registry:t[0],loaded:t[5],selectedIcon:t[1],iconName:t[4],customise:t[6],iconCustomisations:t[3],route:t[2]}}),{c(){Vt(e.$$.fragment)},m(t,n){Ht(e,t,n),i=!0},p(t,[i]){const n={};1&i&&(n.registry=t[0]),32&i&&(n.loaded=t[5]),2&i&&(n.selectedIcon=t[1]),16&i&&(n.iconName=t[4]),8&i&&(n.iconCustomisations=t[3]),4&i&&(n.route=t[2]),e.$set(n)},i(t){i||(Et(e.$$.fragment,t),i=!0)},o(t){Tt(e.$$.fragment,t),i=!1},d(t){qt(e,t)}}}let Bi={showButtons:!1,fullSample:{width:200,height:300}};function Si(t,e,n){let o,{registry:r}=e,{selectedIcon:s}=e,{customisations:l}=e,{route:c}=e;if(Bi.buttons){const t=r.phrases;Object.keys(Bi.buttons).forEach(e=>{const i=Bi.buttons[e];"string"!=typeof i.text&&(i.text=void 0===t.footerButtons[e]?e.split("-").map(t=>t.slice(0,1).toUpperCase()+t.slice(1)).join(" "):t.footerButtons[e])})}let a="",u=0,f=null;const d=()=>{n(8,u++,u)};let h;return mt(()=>{null!==f&&f()}),t.$$set=t=>{"registry"in t&&n(0,r=t.registry),"selectedIcon"in t&&n(1,s=t.selectedIcon),"customisations"in t&&n(7,l=t.customisations),"route"in t&&n(2,c=t.route)},t.$$.update=()=>{128&t.$$.dirty&&n(3,o=Oi.mergeCustomisations(Oi.emptyCustomisations,l)),2&t.$$.dirty&&n(4,a=null===s?"":M.iconToString(s)),818&t.$$.dirty&&(n(5,h=!!s&&i.default.iconExists(a)),s&&!h&&(null!==f&&f(),n(9,f=i.default.loadIcons([a],d))))},[r,s,c,o,a,h,function(t,e){void 0!==o[t]&&o[t]!==e&&typeof o[t]==typeof e&&(n(3,o[t]=e,o),n(3,o=Oi.mergeCustomisations(Oi.emptyCustomisations,o)),r.callback({type:"customisation",changed:{prop:t,value:e},customisations:Oi.filterCustomisations(o)}))},l]}class Ei extends zt{constructor(t){super(),Ut(this,t,Si,Ri,K,{registry:0,selectedIcon:1,customisations:7,route:2})}}function Ti(t,e,i){const n=t.slice();return n[10]=e[i],n[12]=i,n}function Li(t,e){let i,n,o,r;function s(t){e[7].call(null,t)}let l={type:"text",placeholder:e[2].defaultPlaceholder,icon:"search",autofocus:e[10]};return void 0!==e[0]&&(l.value=e[0]),n=new Ie({props:l}),$t.push(()=>Dt(n,"value",s)),{key:t,first:null,c(){i=st(),Vt(n.$$.fragment),this.first=i},m(t,e){tt(t,i,e),Ht(n,t,e),r=!0},p(t,e){const i={};2&e&&(i.autofocus=t[10]),!o&&1&e&&(o=!0,i.value=t[0],xt(()=>o=!1)),n.$set(i)},i(t){r||(Et(n.$$.fragment,t),r=!0)},o(t){Tt(n.$$.fragment,t),r=!1},d(t){t&&et(i),qt(n,t)}}}function Mi(t){let e,i,n,o,r,s,l=[],c=new Map,a=[t[1]];const u=t=>t[10];for(let e=0;e<1;e+=1){let i=Ti(t,a,e),n=u(i);c.set(n,l[e]=Li(n,i))}return{c(){e=nt("form");for(let t=0;t<1;t+=1)l[t].c();i=rt(),n=nt("button"),n.textContent=""+t[2].button,at(n,"class","iif-form-button iif-form-button--primary"),at(n,"type","submit"),at(e,"class","iif-block--search-form")},m(c,a){tt(c,e,a);for(let t=0;t<1;t+=1)l[t].m(e,null);Z(e,i),Z(e,n),o=!0,r||(s=lt(e,"submit",ct(t[3])),r=!0)},p(t,n){if(7&n){const o=[t[1]];Bt(),l=At(l,n,u,1,t,o,c,e,Mt,Li,i,Ti),St()}},i(t){if(!o){for(let t=0;t<1;t+=1)Et(l[t]);o=!0}},o(t){for(let t=0;t<1;t+=1)Tt(l[t]);o=!1},d(t){t&&et(e);for(let t=0;t<1;t+=1)l[t].d();r=!1,s()}}}function Ai(t){let e,i;return e=new te({props:{type:"search",name:"global",$$slots:{default:[Mi]},$$scope:{ctx:t}}}),{c(){Vt(e.$$.fragment)},m(t,n){Ht(e,t,n),i=!0},p(t,[i]){const n={};8195&i&&(n.$$scope={dirty:i,ctx:t}),e.$set(n)},i(t){i||(Et(e.$$.fragment,t),i=!0)},o(t){Tt(e.$$.fragment,t),i=!1},d(t){qt(e,t)}}}function Ni(t,e,i){let{registry:n}=e,{viewChanged:o}=e,{route:r}=e;const s=n.phrases.search;let l=null,c="";function a(t){return"search"===t.type&&(""===c||c!==t.params.search)&&(i(0,l=t.params.search),c=l,!0)}let u=!1;return t.$$set=t=>{"registry"in t&&i(4,n=t.registry),"viewChanged"in t&&i(5,o=t.viewChanged),"route"in t&&i(6,r=t.route)},t.$$.update=()=>{97&t.$$.dirty&&(null===l?(i(0,l=""),null!==r&&(a(r)||void 0===r.parent||a(r.parent))):o?a(r):c=""),64&t.$$.dirty&&i(1,u=r&&("collections"===r.type||"search"===r.type))},[l,u,s,function(){const t=l.trim().toLowerCase();""!==t&&(c=t,n.router.action("search",t))},n,o,r,function(t){l=t,i(0,l),i(6,r),i(5,o)}]}class Fi extends zt{constructor(t){super(),Ut(this,t,Ni,Ai,K,{registry:4,viewChanged:5,route:6})}}function Di(t){let e,i,n,o,r,s,l,c;return i=new le({props:{icon:"parent"}}),{c(){e=nt("div"),Vt(i.$$.fragment),n=rt(),o=nt("a"),r=ot(t[0]),at(o,"href","# "),at(e,"class","iif-parent-link")},m(a,u){tt(a,e,u),Ht(i,e,null),Z(e,n),Z(e,o),Z(o,r),s=!0,l||(c=lt(o,"click",ct((function(){W(t[1])&&t[1].apply(this,arguments)}))),l=!0)},p(e,[i]){t=e,(!s||1&i)&&ut(r,t[0])},i(t){s||(Et(i.$$.fragment,t),s=!0)},o(t){Tt(i.$$.fragment,t),s=!1},d(t){t&&et(e),qt(i),l=!1,c()}}}function Vi(t,e,i){let{text:n}=e,{onClick:o}=e;return t.$$set=t=>{"text"in t&&i(0,n=t.text),"onClick"in t&&i(1,o=t.onClick)},[n,o]}class Hi extends zt{constructor(t){super(),Ut(this,t,Vi,Di,K,{text:0,onClick:1})}}function qi(t,e,i){const n=t.slice();return n[7]=e[i],n[9]=i,n}function Gi(t){let e,i;return e=new te({props:{type:"parent",$$slots:{default:[zi]},$$scope:{ctx:t}}}),{c(){Vt(e.$$.fragment)},m(t,n){Ht(e,t,n),i=!0},p(t,i){const n={};1025&i&&(n.$$scope={dirty:i,ctx:t}),e.$set(n)},i(t){i||(Et(e.$$.fragment,t),i=!0)},o(t){Tt(e.$$.fragment,t),i=!1},d(t){qt(e,t)}}}function Ui(t,e){let i,n,o;function r(...t){return e[4](e[7],...t)}return n=new Hi({props:{text:e[7].text,level:e[7].level,onClick:r}}),{key:t,first:null,c(){i=st(),Vt(n.$$.fragment),this.first=i},m(t,e){tt(t,i,e),Ht(n,t,e),o=!0},p(t,i){e=t;const o={};1&i&&(o.text=e[7].text),1&i&&(o.level=e[7].level),1&i&&(o.onClick=r),n.$set(o)},i(t){o||(Et(n.$$.fragment,t),o=!0)},o(t){Tt(n.$$.fragment,t),o=!1},d(t){t&&et(i),qt(n,t)}}}function zi(t){let e,i,n=[],o=new Map,r=t[0];const s=t=>t[7].key;for(let e=0;e<r.length;e+=1){let i=qi(t,r,e),l=s(i);o.set(l,n[e]=Ui(l,i))}return{c(){for(let t=0;t<n.length;t+=1)n[t].c();e=st()},m(t,o){for(let e=0;e<n.length;e+=1)n[e].m(t,o);tt(t,e,o),i=!0},p(t,i){if(3&i){const r=t[0];Bt(),n=At(n,i,s,1,t,r,o,e.parentNode,Mt,Ui,e,qi),St()}},i(t){if(!i){for(let t=0;t<r.length;t+=1)Et(n[t]);i=!0}},o(t){for(let t=0;t<n.length;t+=1)Tt(n[t]);i=!1},d(t){for(let e=0;e<n.length;e+=1)n[e].d(t);t&&et(e)}}}function Wi(t){let e,i,n=t[0].length>0&&Gi(t);return{c(){n&&n.c(),e=st()},m(t,o){n&&n.m(t,o),tt(t,e,o),i=!0},p(t,[i]){t[0].length>0?n?(n.p(t,i),1&i&&Et(n,1)):(n=Gi(t),n.c(),Et(n,1),n.m(e.parentNode,e)):n&&(Bt(),Tt(n,1,1,()=>{n=null}),St())},i(t){i||(Et(n),i=!0)},o(t){Tt(n),i=!1},d(t){n&&n.d(t),t&&et(e)}}}function Ki(t,e,i){let{registry:n}=e,{route:o}=e;const r=n.phrases.parent,s=n.collections;function l(t){n.router.action("parent",t)}let c;return t.$$set=t=>{"registry"in t&&i(2,n=t.registry),"route"in t&&i(3,o=t.route)},t.$$.update=()=>{if(9&t.$$.dirty){i(0,c=[]),null!==o&&void 0!==o.parent&&function t(e,i){let n=r.default;if("custom"===e.type&&void 0!==r[e.params.customType])n=r[e.params.customType];else if(void 0!==r[e.type])switch(n=r[e.type],e.type){case"collection":n=n.replace("{name}",s.info(e.params.prefix))}c.unshift({level:i,route:e,text:n}),void 0!==e.parent&&t(e.parent,i+1)}(o.parent,1),i(0,c=c.map((t,e)=>{let i=t.route.type+"-"+e+"-";switch(t.route.type){case"collection":i+=t.route.params.provider+":"+t.route.params.prefix;break;case"custom":i+=t.route.params.customType}return t.key=i,t}))}},[c,l,n,o,t=>l(t.level)]}class Qi extends zt{constructor(t){super(),Ut(this,t,Ki,Wi,K,{registry:2,route:3})}}function Ji(t,e,i){const n=t.slice();return n[7]=e[i],n}function Xi(t){let e,i,n,o,r;return{c(){e=nt("br"),i=rt(),n=nt("a"),n.textContent=""+t[3].custom.home,at(n,"href","# ")},m(s,l){tt(s,e,l),tt(s,i,l),tt(s,n,l),o||(r=lt(n,"click",ct(t[4])),o=!0)},p:H,d(t){t&&et(e),t&&et(i),t&&et(n),o=!1,r()}}}function Yi(t){let e,i,n,o,r,s,l;e=new le({props:{icon:"error-"+t[7]}});let c=t[2]&&Xi(t);return{c(){Vt(e.$$.fragment),i=rt(),n=nt("p"),o=ot(t[1]),r=rt(),c&&c.c(),s=rt()},m(t,a){Ht(e,t,a),tt(t,i,a),tt(t,n,a),Z(n,o),Z(n,r),c&&c.m(n,null),tt(t,s,a),l=!0},p(t,i){const r={};1&i&&(r.icon="error-"+t[7]),e.$set(r),(!l||2&i)&&ut(o,t[1]),t[2]?c?c.p(t,i):(c=Xi(t),c.c(),c.m(n,null)):c&&(c.d(1),c=null)},i(t){l||(Et(e.$$.fragment,t),l=!0)},o(t){Tt(e.$$.fragment,t),l=!1},d(t){qt(e,t),t&&et(i),t&&et(n),c&&c.d(),t&&et(s)}}}function Zi(t,e){let i,n,o;return n=new te({props:{type:"error",extra:"error--"+e[7],$$slots:{default:[Yi]},$$scope:{ctx:e}}}),{key:t,first:null,c(){i=st(),Vt(n.$$.fragment),this.first=i},m(t,e){tt(t,i,e),Ht(n,t,e),o=!0},p(t,e){const i={};1&e&&(i.extra="error--"+t[7]),1031&e&&(i.$$scope={dirty:e,ctx:t}),n.$set(i)},i(t){o||(Et(n.$$.fragment,t),o=!0)},o(t){Tt(n.$$.fragment,t),o=!1},d(t){t&&et(i),qt(n,t)}}}function tn(t){let e,i,n=[],o=new Map,r=[t[0]];const s=t=>t[7];for(let e=0;e<1;e+=1){let i=Ji(t,r,e),l=s(i);o.set(l,n[e]=Zi(l,i))}return{c(){for(let t=0;t<1;t+=1)n[t].c();e=st()},m(t,o){for(let e=0;e<1;e+=1)n[e].m(t,o);tt(t,e,o),i=!0},p(t,[i]){if(31&i){const r=[t[0]];Bt(),n=At(n,i,s,1,t,r,o,e.parentNode,Mt,Zi,e,Ji),St()}},i(t){if(!i){for(let t=0;t<1;t+=1)Et(n[t]);i=!0}},o(t){for(let t=0;t<1;t+=1)Tt(n[t]);i=!1},d(t){for(let e=0;e<1;e+=1)n[e].d(t);t&&et(e)}}}function en(t,e,i){let{registry:n}=e,{error:o}=e,{route:r}=e;const s=n.phrases.errors;let l,c;return t.$$set=t=>{"registry"in t&&i(5,n=t.registry),"error"in t&&i(0,o=t.error),"route"in t&&i(6,r=t.route)},t.$$.update=()=>{if(67&t.$$.dirty)switch(i(2,c=r&&("collections"!==r.type||r.parent||r.params&&r.params.provider)&&void 0!==s.custom.home),i(1,l=void 0===s.custom[o]?s.defaultError:s.custom[o]),o){case"not_found":i(1,l=l.replace("{prefix}",r&&"collection"===r.type?'"'+r.params.prefix+'"':""));break;case"bad_route":i(2,c=void 0!==s.custom.home)}},[o,l,c,s,function(){const t=n.router;"collections"===r.type?t.home(""):t.home()},n,r]}class nn extends zt{constructor(t){super(),Ut(this,t,en,tn,K,{registry:5,error:0,route:6})}}function on(t){let e,i,n,o,r;return{c(){e=nt("button"),i=ot(t[1]),at(e,"class",t[4]),e.disabled=n=t[0].disabled},m(n,s){tt(n,e,s),Z(e,i),o||(r=lt(e,"click",ct((function(){W(t[2])&&t[2].apply(this,arguments)}))),o=!0)},p(o,r){t=o,2&r&&ut(i,t[1]),16&r&&at(e,"class",t[4]),1&r&&n!==(n=t[0].disabled)&&(e.disabled=n)},d(t){t&&et(e),o=!1,r()}}}function rn(t){let e,i,n,o;return{c(){e=nt("a"),i=ot(t[1]),at(e,"class",t[4]),at(e,"href",t[3])},m(r,s){tt(r,e,s),Z(e,i),n||(o=lt(e,"click",ct((function(){W(t[2])&&t[2].apply(this,arguments)}))),n=!0)},p(n,o){t=n,2&o&&ut(i,t[1]),16&o&&at(e,"class",t[4]),8&o&&at(e,"href",t[3])},d(t){t&&et(e),n=!1,o()}}}function sn(t){let e;function i(t,e){return t[3]?rn:on}let n=i(t),o=n(t);return{c(){o.c(),e=st()},m(t,i){o.m(t,i),tt(t,e,i)},p(t,[r]){n===(n=i(t))&&o?o.p(t,r):(o.d(1),o=n(t),o&&(o.c(),o.m(e.parentNode,e)))},i:H,o:H,d(t){o.d(t),t&&et(e)}}}const ln="iif-filter";function cn(t,e,i){let n,{active:o}=e,{hasActive:r}=e,{filter:s}=e,{title:l}=e,{onClick:c}=e,{link:a}=e;return t.$$set=t=>{"active"in t&&i(5,o=t.active),"hasActive"in t&&i(6,r=t.hasActive),"filter"in t&&i(0,s=t.filter),"title"in t&&i(1,l=t.title),"onClick"in t&&i(2,c=t.onClick),"link"in t&&i(3,a=t.link)},t.$$.update=()=>{97&t.$$.dirty&&i(4,n=ln+(o?" iif-filter--selected":r?" iif-filter--unselected":"")+(s.index?" iif-filter--"+s.index%13:""))},[s,l,c,a,n,o,r]}class an extends zt{constructor(t){super(),Ut(this,t,cn,sn,K,{active:5,hasActive:6,filter:0,title:1,onClick:2,link:3})}}function un(t,e,i){const n=t.slice();return n[12]=e[i][0],n[13]=e[i][1],n[15]=i,n}function fn(t){let e,i;return e=new te({props:{type:"filters",name:t[0],extra:t[5],$$slots:{default:[pn]},$$scope:{ctx:t}}}),{c(){Vt(e.$$.fragment)},m(t,n){Ht(e,t,n),i=!0},p(t,i){const n={};1&i&&(n.name=t[0]),32&i&&(n.extra=t[5]),65550&i&&(n.$$scope={dirty:i,ctx:t}),e.$set(n)},i(t){i||(Et(e.$$.fragment,t),i=!0)},o(t){Tt(e.$$.fragment,t),i=!1},d(t){qt(e,t)}}}function dn(t){let e,i;return{c(){e=nt("div"),i=ot(t[3]),at(e,"class","iif-filters-header")},m(t,n){tt(t,e,n),Z(e,i)},p(t,e){8&e&&ut(i,t[3])},d(t){t&&et(e)}}}function hn(t,e){let i,n,o;function r(...t){return e[10](e[12],...t)}return n=new an({props:{active:e[12]===e[1].active,hasActive:null!==e[1].active,filter:e[13],link:e[2]?e[2].replace("{prefix}",e[12]):e[2],title:""===e[13].title?e[6].filters.uncategorised:e[13].title,onClick:r}}),{key:t,first:null,c(){i=st(),Vt(n.$$.fragment),this.first=i},m(t,e){tt(t,i,e),Ht(n,t,e),o=!0},p(t,i){e=t;const o={};2&i&&(o.active=e[12]===e[1].active),2&i&&(o.hasActive=null!==e[1].active),2&i&&(o.filter=e[13]),6&i&&(o.link=e[2]?e[2].replace("{prefix}",e[12]):e[2]),2&i&&(o.title=""===e[13].title?e[6].filters.uncategorised:e[13].title),2&i&&(o.onClick=r),n.$set(o)},i(t){o||(Et(n.$$.fragment,t),o=!0)},o(t){Tt(n.$$.fragment,t),o=!1},d(t){t&&et(i),qt(n,t)}}}function pn(t){let e,i,n,o=[],r=new Map,s=""!==t[3]&&dn(t),l=Object.entries(t[1].filters);const c=t=>t[12];for(let e=0;e<l.length;e+=1){let i=un(t,l,e),n=c(i);r.set(n,o[e]=hn(n,i))}return{c(){s&&s.c(),e=rt(),i=nt("div");for(let t=0;t<o.length;t+=1)o[t].c();at(i,"class","iif-filters-list")},m(t,r){s&&s.m(t,r),tt(t,e,r),tt(t,i,r);for(let t=0;t<o.length;t+=1)o[t].m(i,null);n=!0},p(t,n){if(""!==t[3]?s?s.p(t,n):(s=dn(t),s.c(),s.m(e.parentNode,e)):s&&(s.d(1),s=null),198&n){const e=Object.entries(t[1].filters);Bt(),o=At(o,n,c,1,t,e,r,i,Mt,hn,null,un),St()}},i(t){if(!n){for(let t=0;t<l.length;t+=1)Et(o[t]);n=!0}},o(t){for(let t=0;t<o.length;t+=1)Tt(o[t]);n=!1},d(t){s&&s.d(t),t&&et(e),t&&et(i);for(let t=0;t<o.length;t+=1)o[t].d()}}}function gn(t){let e,i,n=t[4]&&fn(t);return{c(){n&&n.c(),e=st()},m(t,o){n&&n.m(t,o),tt(t,e,o),i=!0},p(t,[i]){t[4]?n?(n.p(t,i),16&i&&Et(n,1)):(n=fn(t),n.c(),Et(n,1),n.m(e.parentNode,e)):n&&(Bt(),Tt(n,1,1,()=>{n=null}),St())},i(t){i||(Et(n),i=!0)},o(t){Tt(n),i=!1},d(t){n&&n.d(t),t&&et(e)}}}function mn(t,e,i){let{registry:n}=e,{name:o}=e,{parent:r}=e,{block:s}=e,{link:l}=e;const c=n.phrases;function a(t){n.router.action(o,t===s.active?null:t)}let u,f,d,h;return t.$$set=t=>{"registry"in t&&i(8,n=t.registry),"name"in t&&i(0,o=t.name),"parent"in t&&i(9,r=t.parent),"block"in t&&i(1,s=t.block),"link"in t&&i(2,l=t.link)},t.$$.update=()=>{if(513&t.$$.dirty){let t=o;"string"==typeof r&&""!==r&&void 0!==c.filters[o+"-"+r]&&(t=o+"-"+r),i(3,u=void 0===c.filters[t]?"":c.filters[t])}2050&t.$$.dirty&&(i(11,f=null===s?[]:Object.keys(s.filters)),i(4,d=f.length>1)),2&t.$$.dirty&&i(5,h=null===s||null===s.active?"":"filters--active")},[o,s,l,u,d,h,c,a,n,r,t=>a(t)]}class yn extends zt{constructor(t){super(),Ut(this,t,mn,gn,K,{registry:8,name:0,parent:9,block:1,link:2})}}function $n(t){let e,i,n;function o(e){t[5].call(null,e)}let r={type:"text",icon:"search",placeholder:t[1]};return void 0!==t[0]&&(r.value=t[0]),e=new Ie({props:r}),$t.push(()=>Dt(e,"value",o)),{c(){Vt(e.$$.fragment)},m(t,i){Ht(e,t,i),n=!0},p(t,n){const o={};!i&&1&n&&(i=!0,o.value=t[0],xt(()=>i=!1)),e.$set(o)},i(t){n||(Et(e.$$.fragment,t),n=!0)},o(t){Tt(e.$$.fragment,t),n=!1},d(t){qt(e,t)}}}function bn(t){let e,i;return e=new te({props:{type:"filter",$$slots:{default:[$n]},$$scope:{ctx:t}}}),{c(){Vt(e.$$.fragment)},m(t,n){Ht(e,t,n),i=!0},p(t,[i]){const n={};129&i&&(n.$$scope={dirty:i,ctx:t}),e.$set(n)},i(t){i||(Et(e.$$.fragment,t),i=!0)},o(t){Tt(e.$$.fragment,t),i=!1},d(t){qt(e,t)}}}function _n(t,e,i){let{registry:n}=e,{name:o}=e,{block:r}=e;const s=n.phrases.search;let l=r.keyword;const c=void 0===s.placeholder.collections?s.defaultPlaceholder:s.placeholder.collections;return t.$$set=t=>{"registry"in t&&i(2,n=t.registry),"name"in t&&i(3,o=t.name),"block"in t&&i(4,r=t.block)},t.$$.update=()=>{29&t.$$.dirty&&l!==r.keyword&&n.router.action(o,l)},[l,c,n,o,r,function(t){l=t,i(0,l)}]}class vn extends zt{constructor(t){super(),Ut(this,t,_n,bn,K,{registry:2,name:3,block:4})}}function kn(t){let e,i;return{c(){i=st(),e=new dt(i)},m(n,o){e.m(t[0],n,o),tt(n,i,o)},p(t,[i]){1&i&&e.p(t[0])},i:H,o:H,d(t){t&&et(i),t&&e.d()}}}const wn={0:{paths:{line:{d:"M24 68h8c6 0 12 6 12 12v32c0 6-6 12-12 12H16c-6 0-12-6-12-12V80c0-6 5-12 12-12h8z"}},width:48},1:{paths:{line:{d:"M4 68c6 0 12 6 12 12v44H4h24"}},width:32},2:{paths:{line:{d:"M4 80c0-6 6-12 12-12h16c6 0 12 6 12 12v8c0 6-6 12-12 12H16c-6 0-12 6-12 12v12h40"}},width:48},3:{paths:{line:{d:"M4 80c0-6 6-12 12-12h16c6 0 12 6 12 12v4c0 6-6 12-12 12h-4 4c6 0 12 6 12 12v4c0 6-6 12-12 12H16c-6 0-12-6-12-12"}},width:48},4:{paths:{line:{d:"M4 68v20c0 6 6 12 12 12h16c6 0 12-6 12-12V68v56"}},width:48},5:{paths:{line:{d:"M44 68H4v24h28c6 0 12 6 12 12v8c0 6-6 12-12 12H16c-6 0-12-6-12-12"}},width:48},6:{paths:{line:{d:"M44 80c0-6-6-12-12-12H16c-6 0-12 6-12 12v32c0 6 6 12 12 12h16c6 0 12-6 12-12v-8c0-6-6-12-12-12H16c-6 0-12 6-12 12"}},width:48},7:{paths:{line:{d:"M4 68h28c6 0 12 6 12 12 0 4-6.667 18.667-20 44"}},width:48},8:{paths:{line:{d:"M24 68h8c6 0 12 6 12 12v4c0 6-6 12-12 12 6 0 12 6 12 12v4c0 6-6 12-12 12H16c-6 0-12-6-12-12v-4c0-6 6-12 12-12-6 0-12-6-12-12v-4c0-6 6-12 12-12h8z"}},width:48},9:{paths:{line:{d:"M44 88c0 6-6 12-12 12H16c-6 0-12-6-12-12v-8c0-6 6-12 12-12h16c6 0 12 6 12 12v32c0 6-6 12-12 12H16c-6 0-12-6-12-12"}},width:48},"|":{paths:{"top-arrow":{d:"M4 48l24-24 24 24"},"bottom-arrow":{d:"M4 144l24 24 24-24"},"mid-line":{d:"M28 48v96"}},width:56},",":{paths:{line:{d:"M8 124c-2 0-4-2-4-4s2-4 4-4 4 2 4 4v8c0 2-2 6-4 8"}},width:16},".":{paths:{line:{d:"M8 116c2 0 4 2 4 4s-2 4-4 4-4-2-4-4 2-4 4-4z"}},width:16}},xn={line:!1,animate:!1,height:24};function Cn(t,e,i){let n,{text:o}=e;return t.$$set=t=>{"text"in t&&i(1,o=t.text)},t.$$.update=()=>{2&t.$$.dirty&&i(0,n=function(t,e){let i,n,o,r,s=8,l=192,c="";for("number"==typeof t&&(t=""+t),"object"!=typeof e&&(e={}),Object.keys(xn).forEach(t=>{void 0===e[t]&&(e[t]=xn[t])}),r=l/e.height,e.line&&(s+=8),i=0;i<t.length;i++)n=t.slice(i,i+1),void 0!==wn[n]?("|"===n&&(e.line=!0),o=wn[n],s>8&&(c+='<g transform="translate('+s+')">'),Object.keys(o.paths).forEach((function(t){let e=o.paths[t];c+='<path d="'+e.d+'" />'})),s>8&&(c+="</g>"),s+=o.width+8):" "===n&&(s+=16);return e.line&&(c+='<path d="M4 4h'+(s-8)+'" />',c+='<path d="M4 188h'+(s-8)+'" />'),c='<g stroke-width="8" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">'+c+"</g>",'<svg xmlns="http://www.w3.org/2000/svg" focusable="false" width="'+s/r+'" height="'+l/r+'" viewBox="0 0 '+s+' 192"> '+c+"</svg>"}(o))},[n,o]}class jn extends zt{constructor(t){super(),Ut(this,t,Cn,kn,K,{text:1})}}function Pn(t,e,i){const n=t.slice();return n[12]=e[i],n}function In(t){let e,i,n,o=t[0].collection.by+"";function r(t,e){return On}let s=r(),l=s(t);return{c(){e=nt("small"),i=ot(o),n=rt(),l.c()},m(t,o){tt(t,e,o),Z(e,i),Z(e,n),l.m(e,null)},p(t,n){1&n&&o!==(o=t[0].collection.by+"")&&ut(i,o),s===(s=r())&&l?l.p(t,n):(l.d(1),l=s(t),l&&(l.c(),l.m(e,null)))},d(t){t&&et(e),l.d()}}}function On(t){let e,i=t[3].author.name+"";return{c(){e=ot(i)},m(t,i){tt(t,e,i)},p(t,n){8&n&&i!==(i=t[3].author.name+"")&&ut(e,i)},d(t){t&&et(e)}}}function Rn(t){let e,i;return{c(){e=nt("span"),at(e,"class","iconify"),at(e,"data-icon",i=(""===t[1]?"":"@"+t[1]+":")+t[2]+":"+t[12]),at(e,"data-inline","false")},m(t,i){tt(t,e,i)},p(t,n){6&n&&i!==(i=(""===t[1]?"":"@"+t[1]+":")+t[2]+":"+t[12])&&at(e,"data-icon",i)},d(t){t&&et(e)}}}function Bn(t){let e,i,n;return i=new jn({props:{text:t[9]}}),{c(){e=nt("div"),Vt(i.$$.fragment),at(e,"class","iif-collection-height")},m(t,o){tt(t,e,o),Ht(i,e,null),n=!0},p:H,i(t){n||(Et(i.$$.fragment,t),n=!0)},o(t){Tt(i.$$.fragment,t),n=!1},d(t){t&&et(e),qt(i)}}}function Sn(t){let e,i,n,o,r,s,l,c,a,u,f,d,h,p,g=t[3].name+"",m=t[3].author&&In(t),y=t[7].length>0&&function(t){let e,i,n=t[7],o=[];for(let e=0;e<n.length;e+=1)o[e]=Rn(Pn(t,n,e));return{c(){e=nt("div");for(let t=0;t<o.length;t+=1)o[t].c();at(e,"class",i="iif-collection-samples"+(t[8]?" iif-collection-samples--"+t[8]:""))},m(t,i){tt(t,e,i);for(let t=0;t<o.length;t+=1)o[t].m(e,null)},p(t,i){if(134&i){let r;for(n=t[7],r=0;r<n.length;r+=1){const s=Pn(t,n,r);o[r]?o[r].p(s,i):(o[r]=Rn(s),o[r].c(),o[r].m(e,null))}for(;r<o.length;r+=1)o[r].d(1);o.length=n.length}},d(t){t&&et(e),it(o,t)}}}(t),$=t[3].height&&Bn(t);return f=new jn({props:{text:t[3].total}}),{c(){e=nt("li"),i=nt("div"),n=nt("a"),o=ot(g),r=rt(),m&&m.c(),s=rt(),l=nt("div"),y&&y.c(),c=rt(),$&&$.c(),a=rt(),u=nt("div"),Vt(f.$$.fragment),at(n,"href",t[5]),at(i,"class","iif-collection-text"),at(u,"class","iif-collection-total"),at(l,"class","iif-collection-data"),at(e,"class",t[6])},m(g,b){tt(g,e,b),Z(e,i),Z(i,n),Z(n,o),Z(i,r),m&&m.m(i,null),Z(e,s),Z(e,l),y&&y.m(l,null),Z(l,c),$&&$.m(l,null),Z(l,a),Z(l,u),Ht(f,u,null),d=!0,h||(p=[lt(n,"click",ct(t[11])),lt(e,"click",t[10])],h=!0)},p(t,[r]){(!d||8&r)&&g!==(g=t[3].name+"")&&ut(o,g),(!d||32&r)&&at(n,"href",t[5]),t[3].author?m?m.p(t,r):(m=In(t),m.c(),m.m(i,null)):m&&(m.d(1),m=null),t[7].length>0&&y.p(t,r),t[3].height?$?($.p(t,r),8&r&&Et($,1)):($=Bn(t),$.c(),Et($,1),$.m(l,a)):$&&(Bt(),Tt($,1,1,()=>{$=null}),St());const s={};8&r&&(s.text=t[3].total),f.$set(s),(!d||64&r)&&at(e,"class",t[6])},i(t){d||(Et($),Et(f.$$.fragment,t),d=!0)},o(t){Tt($),Tt(f.$$.fragment,t),d=!1},d(t){t&&et(e),m&&m.d(),y&&y.d(),$&&$.d(),qt(f),h=!1,z(p)}}}const En="iif-collection";function Tn(t,e,i){let n,o,{phrases:r}=e,{provider:s}=e,{prefix:l}=e,{info:c}=e,{onClick:a}=e;const u=function(t){return t.samples instanceof Array?t.samples.slice(0,3):[]}(c),f=function(t){return t.displayHeight?t.displayHeight:"number"==typeof t.height?t.height:0}(c),d="|"+("object"!=typeof c.height?c.height:c.height.join(", "));return t.$$set=t=>{"phrases"in t&&i(0,r=t.phrases),"provider"in t&&i(1,s=t.provider),"prefix"in t&&i(2,l=t.prefix),"info"in t&&i(3,c=t.info),"onClick"in t&&i(4,a=t.onClick)},t.$$.update=()=>{if(38&t.$$.dirty){const t=M.getProvider(s);t?(i(5,n=t.links.collection.replace("{prefix}",l)),""===n&&i(5,n="#")):i(5,n="#")}14&t.$$.dirty&&i(6,o=En+" "+En+"--prefix--"+l+(""===s?"":" iif-collection--provider--"+s)+(c.index?" iif-collection--"+c.index%13:""))},[r,s,l,c,a,n,o,u,f,d,function(t){},()=>a(l)]}class Ln extends zt{constructor(t){super(),Ut(this,t,Tn,Sn,K,{phrases:0,provider:1,prefix:2,info:3,onClick:4})}}function Mn(t,e,i){const n=t.slice();return n[7]=e[i][0],n[8]=e[i][1],n[10]=i,n}function An(t){let e,i;return{c(){e=nt("div"),i=ot(t[3]),at(e,"class","iif-collections-list-title")},m(t,n){tt(t,e,n),Z(e,i)},p(t,e){8&e&&ut(i,t[3])},d(t){t&&et(e)}}}function Nn(t,e){let i,n,o;return n=new Ln({props:{registry:e[0],phrases:e[1],provider:e[5],prefix:e[7],info:e[8],onClick:e[6]}}),{key:t,first:null,c(){i=st(),Vt(n.$$.fragment),this.first=i},m(t,e){tt(t,i,e),Ht(n,t,e),o=!0},p(t,e){const i={};1&e&&(i.registry=t[0]),2&e&&(i.phrases=t[1]),32&e&&(i.provider=t[5]),16&e&&(i.prefix=t[7]),16&e&&(i.info=t[8]),64&e&&(i.onClick=t[6]),n.$set(i)},i(t){o||(Et(n.$$.fragment,t),o=!0)},o(t){Tt(n.$$.fragment,t),o=!1},d(t){t&&et(i),qt(n,t)}}}function Fn(t){let e,i,n,o,r=[],s=new Map,l=t[2]&&An(t),c=Object.entries(t[4]);const a=t=>t[7];for(let e=0;e<c.length;e+=1){let i=Mn(t,c,e),n=a(i);s.set(n,r[e]=Nn(n,i))}return{c(){e=nt("div"),l&&l.c(),i=rt(),n=nt("ul");for(let t=0;t<r.length;t+=1)r[t].c();at(n,"class","iif-collections-list-items"),at(e,"class","iif-collections-list-category")},m(t,s){tt(t,e,s),l&&l.m(e,null),Z(e,i),Z(e,n);for(let t=0;t<r.length;t+=1)r[t].m(n,null);o=!0},p(t,[o]){if(t[2]?l?l.p(t,o):(l=An(t),l.c(),l.m(e,i)):l&&(l.d(1),l=null),115&o){const e=Object.entries(t[4]);Bt(),r=At(r,o,a,1,t,e,s,n,Mt,Nn,null,Mn),St()}},i(t){if(!o){for(let t=0;t<c.length;t+=1)Et(r[t]);o=!0}},o(t){for(let t=0;t<r.length;t+=1)Tt(r[t]);o=!1},d(t){t&&et(e),l&&l.d();for(let t=0;t<r.length;t+=1)r[t].d()}}}function Dn(t,e,i){let{registry:n}=e,{phrases:o}=e,{showCategories:r}=e,{category:s}=e,{items:l}=e,{provider:c}=e,{onClick:a}=e;return t.$$set=t=>{"registry"in t&&i(0,n=t.registry),"phrases"in t&&i(1,o=t.phrases),"showCategories"in t&&i(2,r=t.showCategories),"category"in t&&i(3,s=t.category),"items"in t&&i(4,l=t.items),"provider"in t&&i(5,c=t.provider),"onClick"in t&&i(6,a=t.onClick)},[n,o,r,s,l,c,a]}class Vn extends zt{constructor(t){super(),Ut(this,t,Dn,Fn,K,{registry:0,phrases:1,showCategories:2,category:3,items:4,provider:5,onClick:6})}}function Hn(t){let e,i;return{c(){e=nt("div"),i=ot(t[0]),at(e,"class","iif-content-error")},m(t,n){tt(t,e,n),Z(e,i)},p(t,[e]){1&e&&ut(i,t[0])},i:H,o:H,d(t){t&&et(e)}}}function qn(t,e,i){let{error:n}=e;return t.$$set=t=>{"error"in t&&i(0,n=t.error)},[n]}class Gn extends zt{constructor(t){super(),Ut(this,t,qn,Hn,K,{error:0})}}function Un(t,e,i){const n=t.slice();return n[6]=e[i][0],n[7]=e[i][1],n[9]=i,n}function zn(t){let e,i;return e=new Gn({props:{error:t[3].errors.noCollections}}),{c(){Vt(e.$$.fragment)},m(t,n){Ht(e,t,n),i=!0},p:H,i(t){i||(Et(e.$$.fragment,t),i=!0)},o(t){Tt(e.$$.fragment,t),i=!1},d(t){qt(e,t)}}}function Wn(t,e){let i,n,o;return n=new Vn({props:{registry:e[0],phrases:e[3],onClick:e[4],showCategories:e[1].showCategories,category:e[6],provider:e[2],items:e[7]}}),{key:t,first:null,c(){i=st(),Vt(n.$$.fragment),this.first=i},m(t,e){tt(t,i,e),Ht(n,t,e),o=!0},p(t,e){const i={};1&e&&(i.registry=t[0]),2&e&&(i.showCategories=t[1].showCategories),2&e&&(i.category=t[6]),4&e&&(i.provider=t[2]),2&e&&(i.items=t[7]),n.$set(i)},i(t){o||(Et(n.$$.fragment,t),o=!0)},o(t){Tt(n.$$.fragment,t),o=!1},d(t){t&&et(i),qt(n,t)}}}function Kn(t){let e,i,n=[],o=new Map,r=Object.entries(t[1].collections);const s=t=>t[6];for(let e=0;e<r.length;e+=1){let i=Un(t,r,e),l=s(i);o.set(l,n[e]=Wn(l,i))}let l=null;return r.length||(l=zn(t)),{c(){for(let t=0;t<n.length;t+=1)n[t].c();e=st(),l&&l.c()},m(t,o){for(let e=0;e<n.length;e+=1)n[e].m(t,o);tt(t,e,o),l&&l.m(t,o),i=!0},p(t,i){if(31&i){const r=Object.entries(t[1].collections);Bt(),n=At(n,i,s,1,t,r,o,e.parentNode,Mt,Wn,e,Un),St(),!r.length&&l?l.p(t,i):r.length?l&&(Bt(),Tt(l,1,1,()=>{l=null}),St()):(l=zn(t),l.c(),Et(l,1),l.m(e.parentNode,e))}},i(t){if(!i){for(let t=0;t<r.length;t+=1)Et(n[t]);i=!0}},o(t){for(let t=0;t<n.length;t+=1)Tt(n[t]);i=!1},d(t){for(let e=0;e<n.length;e+=1)n[e].d(t);t&&et(e),l&&l.d(t)}}}function Qn(t){let e,i;return e=new te({props:{type:"collections",$$slots:{default:[Kn]},$$scope:{ctx:t}}}),{c(){Vt(e.$$.fragment)},m(t,n){Ht(e,t,n),i=!0},p(t,[i]){const n={};1031&i&&(n.$$scope={dirty:i,ctx:t}),e.$set(n)},i(t){i||(Et(e.$$.fragment,t),i=!0)},o(t){Tt(e.$$.fragment,t),i=!1},d(t){qt(e,t)}}}function Jn(t,e,i){let{registry:n}=e,{name:o}=e,{block:r}=e,{provider:s}=e;const l=n.phrases;return t.$$set=t=>{"registry"in t&&i(0,n=t.registry),"name"in t&&i(5,o=t.name),"block"in t&&i(1,r=t.block),"provider"in t&&i(2,s=t.provider)},[n,r,s,l,function(t){n.router.action(o,t)},o]}class Xn extends zt{constructor(t){super(),Ut(this,t,Jn,Qn,K,{registry:0,name:5,block:1,provider:2})}}function Yn(t){let e,i;return e=new yn({props:{registry:t[0],name:"categories",block:t[1].categories}}),{c(){Vt(e.$$.fragment)},m(t,n){Ht(e,t,n),i=!0},p(t,i){const n={};1&i&&(n.registry=t[0]),2&i&&(n.block=t[1].categories),e.$set(n)},i(t){i||(Et(e.$$.fragment,t),i=!0)},o(t){Tt(e.$$.fragment,t),i=!1},d(t){qt(e,t)}}}function Zn(t){let e,i,n,o,r,s,l,c=t[1].categories&&Yn(t);return o=new vn({props:{registry:t[0],name:"filter",block:t[1].filter}}),s=new Xn({props:{registry:t[0],provider:t[2],name:"collections",block:t[1].collections}}),{c(){e=nt("div"),i=nt("div"),c&&c.c(),n=rt(),Vt(o.$$.fragment),r=rt(),Vt(s.$$.fragment),at(i,"class","iif-collections-header"),at(e,"class","iif-view iif-view--collections")},m(t,a){tt(t,e,a),Z(e,i),c&&c.m(i,null),Z(i,n),Ht(o,i,null),Z(e,r),Ht(s,e,null),l=!0},p(t,[e]){t[1].categories?c?(c.p(t,e),2&e&&Et(c,1)):(c=Yn(t),c.c(),Et(c,1),c.m(i,n)):c&&(Bt(),Tt(c,1,1,()=>{c=null}),St());const r={};1&e&&(r.registry=t[0]),2&e&&(r.block=t[1].filter),o.$set(r);const l={};1&e&&(l.registry=t[0]),4&e&&(l.provider=t[2]),2&e&&(l.block=t[1].collections),s.$set(l)},i(t){l||(Et(c),Et(o.$$.fragment,t),Et(s.$$.fragment,t),l=!0)},o(t){Tt(c),Tt(o.$$.fragment,t),Tt(s.$$.fragment,t),l=!1},d(t){t&&et(e),c&&c.d(),qt(o),qt(s)}}}function to(t,e,i){let n,{registry:o}=e,{blocks:r}=e,{route:s}=e;return t.$$set=t=>{"registry"in t&&i(0,o=t.registry),"blocks"in t&&i(1,r=t.blocks),"route"in t&&i(3,s=t.route)},t.$$.update=()=>{8&t.$$.dirty&&i(2,n=s.params&&s.params.provider?s.params.provider:"")},[o,r,n,s]}class eo extends zt{constructor(t){super(),Ut(this,t,to,Zn,K,{registry:0,blocks:1,route:3})}}function io(t){let e,i;return{c(){i=st(),e=new dt(i)},m(n,o){e.m(t[3],n,o),tt(n,i,o)},p(t,i){8&i&&e.p(t[3])},d(t){t&&et(i),t&&e.d()}}}function no(t){let e,i,n,o,r=!1!==t[3]&&io(t);return{c(){e=nt("li"),i=nt("a"),r&&r.c(),at(i,"href",t[1]),at(i,"target","_blank"),at(i,"title",t[0]),at(e,"class",t[2])},m(s,l){tt(s,e,l),Z(e,i),r&&r.m(i,null),n||(o=lt(i,"click",ct(t[4])),n=!0)},p(t,[n]){!1!==t[3]?r?r.p(t,n):(r=io(t),r.c(),r.m(i,null)):r&&(r.d(1),r=null),2&n&&at(i,"href",t[1]),1&n&&at(i,"title",t[0]),4&n&&at(e,"class",t[2])},i:H,o:H,d(t){t&&et(e),r&&r.d(),n=!1,o()}}}const oo="iif-icon-grid";function ro(t,e,n){let{name:o}=e,{tooltip:r}=e,{icon:s}=e,{exists:l}=e,{selected:c}=e,{link:a}=e,{onClick:u}=e,f="",d=!1;return t.$$set=t=>{"name"in t&&n(5,o=t.name),"tooltip"in t&&n(0,r=t.tooltip),"icon"in t&&n(6,s=t.icon),"exists"in t&&n(7,l=t.exists),"selected"in t&&n(8,c=t.selected),"link"in t&&n(1,a=t.link),"onClick"in t&&n(9,u=t.onClick)},t.$$.update=()=>{if(388&t.$$.dirty){const t=oo+" "+oo+(l?"--loaded":"--loading")+(c?" iif-icon-grid--selected":"");t!==f&&n(2,f=t)}if(168&t.$$.dirty){const t=!!l&&i.default.renderHTML(o,{width:"1em",height:"1em",inline:!1});t!==d&&n(3,d=t)}},[r,a,f,d,function(){u("icons",s)},o,s,l,c,u]}class so extends zt{constructor(t){super(),Ut(this,t,ro,no,K,{name:5,tooltip:0,icon:6,exists:7,selected:8,link:1,onClick:9})}}function lo(t,e,i){const n=t.slice();return n[15]=e[i],n}function co(t){let e,i;return{c(){i=st(),e=new dt(i)},m(n,o){e.m(t[8],n,o),tt(n,i,o)},p(t,i){256&i&&e.p(t[8])},d(t){t&&et(i),t&&e.d()}}}function ao(t){let e,i,n,o,r=t[9].width+"",s=t[9].height+"";return{c(){e=nt("div"),i=ot(r),n=ot(" x "),o=ot(s),at(e,"class","iif-icon-size")},m(t,r){tt(t,e,r),Z(e,i),Z(e,n),Z(e,o)},p(t,e){512&e&&r!==(r=t[9].width+"")&&ut(i,r),512&e&&s!==(s=t[9].height+"")&&ut(o,s)},d(t){t&&et(e)}}}function uo(t){let e,i,n=t[4],o=[];for(let e=0;e<n.length;e+=1)o[e]=fo(lo(t,n,e));const r=t=>Tt(o[t],1,1,()=>{o[t]=null});return{c(){for(let t=0;t<o.length;t+=1)o[t].c();e=st()},m(t,n){for(let e=0;e<o.length;e+=1)o[e].m(t,n);tt(t,e,n),i=!0},p(t,i){if(112&i){let s;for(n=t[4],s=0;s<n.length;s+=1){const r=lo(t,n,s);o[s]?(o[s].p(r,i),Et(o[s],1)):(o[s]=fo(r),o[s].c(),Et(o[s],1),o[s].m(e.parentNode,e))}for(Bt(),s=n.length;s<o.length;s+=1)r(s);St()}},i(t){if(!i){for(let t=0;t<n.length;t+=1)Et(o[t]);i=!0}},o(t){o=o.filter(Boolean);for(let t=0;t<o.length;t+=1)Tt(o[t]);i=!1},d(t){it(o,t),t&&et(e)}}}function fo(t){let e,i;function n(...e){return t[14](t[15],...e)}return e=new an({props:{filter:t[15].item,title:""===t[15].item.title?t[6]:t[15].item.title,onClick:n}}),{c(){Vt(e.$$.fragment)},m(t,n){Ht(e,t,n),i=!0},p(i,o){t=i;const r={};16&o&&(r.filter=t[15].item),80&o&&(r.title=""===t[15].item.title?t[6]:t[15].item.title),48&o&&(r.onClick=n),e.$set(r)},i(t){i||(Et(e.$$.fragment,t),i=!0)},o(t){Tt(e.$$.fragment,t),i=!1},d(t){qt(e,t)}}}function ho(t){let e,i,n,o,r,s,l,c,a,u,f,d,h,p=!1!==t[8]&&co(t),g=t[2]&&ao(t),m=t[4]&&uo(t);return{c(){e=nt("li"),i=nt("div"),n=nt("a"),p&&p.c(),o=rt(),r=nt("div"),s=nt("a"),l=ot(t[1]),c=rt(),g&&g.c(),a=rt(),m&&m.c(),at(n,"href",t[3]),at(n,"target","_blank"),at(n,"title",t[0]),at(i,"class","iif-icon-sample"),at(s,"class","iif-icon-name"),at(s,"href",t[3]),at(s,"title",t[0]),at(r,"class",u="iif-icon-data iif-icon-data--filters--"+t[4].length),at(e,"class",t[7])},m(u,y){tt(u,e,y),Z(e,i),Z(i,n),p&&p.m(n,null),Z(e,o),Z(e,r),Z(r,s),Z(s,l),Z(r,c),g&&g.m(r,null),Z(r,a),m&&m.m(r,null),f=!0,d||(h=[lt(n,"click",ct(t[10])),lt(s,"click",ct(t[10]))],d=!0)},p(t,[i]){!1!==t[8]?p?p.p(t,i):(p=co(t),p.c(),p.m(n,null)):p&&(p.d(1),p=null),(!f||8&i)&&at(n,"href",t[3]),(!f||1&i)&&at(n,"title",t[0]),(!f||2&i)&&ut(l,t[1]),(!f||8&i)&&at(s,"href",t[3]),(!f||1&i)&&at(s,"title",t[0]),t[2]?g?g.p(t,i):(g=ao(t),g.c(),g.m(r,a)):g&&(g.d(1),g=null),t[4]?m?(m.p(t,i),16&i&&Et(m,1)):(m=uo(t),m.c(),Et(m,1),m.m(r,null)):m&&(Bt(),Tt(m,1,1,()=>{m=null}),St()),(!f||16&i&&u!==(u="iif-icon-data iif-icon-data--filters--"+t[4].length))&&at(r,"class",u),(!f||128&i)&&at(e,"class",t[7])},i(t){f||(Et(m),f=!0)},o(t){Tt(m),f=!1},d(t){t&&et(e),p&&p.d(),g&&g.d(),m&&m.d(),d=!1,z(h)}}}const po="iif-icon-list";function go(t,e,n){let{name:o}=e,{tooltip:r}=e,{text:s}=e,{icon:l}=e,{exists:c}=e,{selected:a}=e,{link:u}=e,{filters:f}=e,{onClick:d}=e,{uncategorised:h}=e,p="",g=!1,m=null;return t.$$set=t=>{"name"in t&&n(11,o=t.name),"tooltip"in t&&n(0,r=t.tooltip),"text"in t&&n(1,s=t.text),"icon"in t&&n(12,l=t.icon),"exists"in t&&n(2,c=t.exists),"selected"in t&&n(13,a=t.selected),"link"in t&&n(3,u=t.link),"filters"in t&&n(4,f=t.filters),"onClick"in t&&n(5,d=t.onClick),"uncategorised"in t&&n(6,h=t.uncategorised)},t.$$.update=()=>{if(8324&t.$$.dirty){const t=po+" "+po+(c?"--loaded":"--loading")+(a?" iif-icon-list--selected":"");t!==p&&n(7,p=t)}if(2308&t.$$.dirty){const t=!!c&&i.default.renderHTML(o,{width:"1em",height:"1em",inline:!1});t!==g&&n(8,g=t)}if(2564&t.$$.dirty){const t=c?i.default.getIcon(o):null;t!==m&&n(9,m=t)}},[r,s,c,u,f,d,h,p,g,m,function(){d("icons",l)},o,l,a,t=>d(t.action,t.value)]}class mo extends zt{constructor(t){super(),Ut(this,t,go,ho,K,{name:11,tooltip:0,text:1,icon:12,exists:2,selected:13,link:3,filters:4,onClick:5,uncategorised:6})}}function yo(t,e,i){const n=t.slice();return n[15]=e[i],n[17]=i,n}function $o(t){let e,i;const n=[t[15],{onClick:t[3]}];let o={};for(let t=0;t<n.length;t+=1)o=q(o,n[t]);return e=new so({props:o}),{c(){Vt(e.$$.fragment)},m(t,n){Ht(e,t,n),i=!0},p(t,i){const o=10&i?Nt(n,[2&i&&Ft(t[15]),8&i&&{onClick:t[3]}]):{};e.$set(o)},i(t){i||(Et(e.$$.fragment,t),i=!0)},o(t){Tt(e.$$.fragment,t),i=!1},d(t){qt(e,t)}}}function bo(t){let e,i;const n=[t[15],{onClick:t[3]},{uncategorised:t[2]}];let o={};for(let t=0;t<n.length;t+=1)o=q(o,n[t]);return e=new mo({props:o}),{c(){Vt(e.$$.fragment)},m(t,n){Ht(e,t,n),i=!0},p(t,i){const o=14&i?Nt(n,[2&i&&Ft(t[15]),8&i&&{onClick:t[3]},4&i&&{uncategorised:t[2]}]):{};e.$set(o)},i(t){i||(Et(e.$$.fragment,t),i=!0)},o(t){Tt(e.$$.fragment,t),i=!1},d(t){qt(e,t)}}}function _o(t,e){let i,n,o,r,s;const l=[bo,$o],c=[];function a(t,e){return t[0]?0:1}return n=a(e),o=c[n]=l[n](e),{key:t,first:null,c(){i=st(),o.c(),r=st(),this.first=i},m(t,e){tt(t,i,e),c[n].m(t,e),tt(t,r,e),s=!0},p(t,e){let i=n;n=a(t),n===i?c[n].p(t,e):(Bt(),Tt(c[i],1,1,()=>{c[i]=null}),St(),o=c[n],o||(o=c[n]=l[n](t),o.c()),Et(o,1),o.m(r.parentNode,r))},i(t){s||(Et(o),s=!0)},o(t){Tt(o),s=!1},d(t){t&&et(i),c[n].d(t),t&&et(r)}}}function vo(t){let e,i,n,o,r=[],s=new Map,l=t[1];const c=t=>t[15].name;for(let e=0;e<l.length;e+=1){let i=yo(t,l,e),n=c(i);s.set(n,r[e]=_o(n,i))}return{c(){e=nt("div"),i=nt("ul");for(let t=0;t<r.length;t+=1)r[t].c();at(e,"class",n=ko+" "+ko+(t[0]?"--list":"--grid"))},m(t,n){tt(t,e,n),Z(e,i);for(let t=0;t<r.length;t+=1)r[t].m(i,null);o=!0},p(t,[l]){if(15&l){const e=t[1];Bt(),r=At(r,l,c,1,t,e,s,i,Mt,_o,null,yo),St()}(!o||1&l&&n!==(n=ko+" "+ko+(t[0]?"--list":"--grid")))&&at(e,"class",n)},i(t){if(!o){for(let t=0;t<l.length;t+=1)Et(r[t]);o=!0}},o(t){for(let t=0;t<r.length;t+=1)Tt(r[t]);o=!1},d(t){t&&et(e);for(let t=0;t<r.length;t+=1)r[t].d()}}}i.default.enableCache("local",!1),i.default.enableCache("session",!1);const ko="iif-icons",wo={tags:"tags",themePrefixes:"themePrefix",themeSuffixes:"themeSuffix"},xo=Object.keys(wo);function Co(t,e,n){let{registry:o}=e,{route:r}=e,{selectedIcon:s}=e,{blocks:l}=e,{isList:c}=e;const a=o.phrases,u=a.filters.uncategorised,f=a.icons.tooltip;let d,h=null,p=0;const g=()=>{n(10,p++,p)};let m=[];return mt(()=>{null!==h&&(h(),n(9,h=null))}),t.$$set=t=>{"registry"in t&&n(4,o=t.registry),"route"in t&&n(5,r=t.route),"selectedIcon"in t&&n(6,s=t.selectedIcon),"blocks"in t&&n(7,l=t.blocks),"isList"in t&&n(0,c=t.isList)},t.$$.update=()=>{if(32&t.$$.dirty&&n(8,d="collection"!==r.type),1987&t.$$.dirty){let t=[],e=[],o=null===s?"":M.iconToString(s);const a=Object.create(null);m.forEach(t=>{a[t.name]=t});let u=!1;l.icons.icons.forEach(n=>{const s=M.iconToString(n),h=i.default.getIcon(s),p=null!==h;let g=d?s:n.name;p&&(g+=f.size.replace("{size}",h.width+" x "+h.height),g+=f.length.replace("{length}",h.body.length),void 0!==n.chars&&(g+=f.char.replace("{char}","string"==typeof n.chars?n.chars:n.chars.join(", "))),g+=f[-1===h.body.indexOf("currentColor")?"colorful":"colorless"]);const m=M.getProvider(n.provider);let y;m?(y=m.links.icon.replace("{prefix}",n.prefix).replace("{name}",n.name),""===y&&(y="#")):y="#";let $={name:s,text:d?s:n.name,tooltip:g,icon:M.cloneObject(n),exists:p,link:y,selected:s===o};c&&($.filters=function(t){let e=[];const i=t.icon;if(xo.forEach(t=>{if(!l[t])return;const n=wo[t];if(void 0===i[n])return;const o=l[t],r=o.active,s=i[n];("string"==typeof s?[s]:s).forEach(i=>{i!==r&&void 0!==o.filters[i]&&e.push({action:t,value:i,item:M.cloneObject(o.filters[i])})})}),"search"===r.type&&l.collections){const i=t.icon.prefix;l.collections.filters[i]&&e.push({action:"collections",value:i,item:M.cloneObject(l.collections.filters[i])})}return e}($)),void 0===a[s]?(u=!0,p||e.push(s)):M.compareObjects(a[s],$)?$=a[s]:u=!0,t.push($)}),e.length&&(null!==h&&h(),n(9,h=i.default.loadIcons(e,g))),(u||m.length!==t.length)&&n(1,m=t)}},[c,m,u,function(t,e){"icons"!==t?o.router.action(t,e):o.callback({type:"selection",icon:e})},o,r,s,l]}class jo extends zt{constructor(t){super(),Ut(this,t,Co,vo,K,{registry:4,route:5,selectedIcon:6,blocks:7,isList:0})}}function Po(t){let e,i,n,o,r;return i=new le({props:{icon:t[0]}}),{c(){e=nt("button"),Vt(i.$$.fragment),at(e,"class","iif-icon-button"),at(e,"title",t[1])},m(s,l){tt(s,e,l),Ht(i,e,null),n=!0,o||(r=lt(e,"click",(function(){W(t[2])&&t[2].apply(this,arguments)})),o=!0)},p(o,[r]){t=o;const s={};1&r&&(s.icon=t[0]),i.$set(s),(!n||2&r)&&at(e,"title",t[1])},i(t){n||(Et(i.$$.fragment,t),n=!0)},o(t){Tt(i.$$.fragment,t),n=!1},d(t){t&&et(e),qt(i),o=!1,r()}}}function Io(t,e,i){let{icon:n}=e,{title:o}=e,{onClick:r}=e;return t.$$set=t=>{"icon"in t&&i(0,n=t.icon),"title"in t&&i(1,o=t.title),"onClick"in t&&i(2,r=t.onClick)},[n,o,r]}class Oo extends zt{constructor(t){super(),Ut(this,t,Io,Po,K,{icon:0,title:1,onClick:2})}}function Ro(t,e,i){const n=t.slice();return n[5]=e[i],n}function Bo(t){let e,i,n=[],o=new Map,r=[t[1]?"grid":"list"];const s=t=>t[5];for(let e=0;e<1;e+=1){let i=Ro(t,r,e),l=s(i);o.set(l,n[e]=So(l,i))}return{c(){e=nt("div");for(let t=0;t<1;t+=1)n[t].c();at(e,"class","iif-icons-header-modes")},m(t,o){tt(t,e,o);for(let t=0;t<1;t+=1)n[t].m(e,null);i=!0},p(t,i){if(26&i){const r=[t[1]?"grid":"list"];Bt(),n=At(n,i,s,1,t,r,o,e,Mt,So,null,Ro),St()}},i(t){if(!i){for(let t=0;t<1;t+=1)Et(n[t]);i=!0}},o(t){for(let t=0;t<1;t+=1)Tt(n[t]);i=!1},d(t){t&&et(e);for(let t=0;t<1;t+=1)n[t].d()}}}function So(t,e){let i,n,o;return n=new Oo({props:{icon:e[5],onClick:e[4],title:e[3].icons.header[e[5]+"Mode"]}}),{key:t,first:null,c(){i=st(),Vt(n.$$.fragment),this.first=i},m(t,e){tt(t,i,e),Ht(n,t,e),o=!0},p(t,e){const i={};2&e&&(i.icon=t[5]),16&e&&(i.onClick=t[4]),10&e&&(i.title=t[3].icons.header[t[5]+"Mode"]),n.$set(i)},i(t){o||(Et(n.$$.fragment,t),o=!0)},o(t){Tt(n.$$.fragment,t),o=!1},d(t){t&&et(i),qt(n,t)}}}function Eo(t){let e,i,n,o,r,s=t[2]&&Bo(t);return{c(){e=nt("div"),i=nt("div"),n=ot(t[0]),o=rt(),s&&s.c(),at(i,"class","iif-icons-header-text"),at(e,"class","iif-icons-header")},m(t,l){tt(t,e,l),Z(e,i),Z(i,n),Z(e,o),s&&s.m(e,null),r=!0},p(t,[i]){(!r||1&i)&&ut(n,t[0]),t[2]?s?(s.p(t,i),4&i&&Et(s,1)):(s=Bo(t),s.c(),Et(s,1),s.m(e,null)):s&&(Bt(),Tt(s,1,1,()=>{s=null}),St())},i(t){r||(Et(s),r=!0)},o(t){Tt(s),r=!1},d(t){t&&et(e),s&&s.d()}}}function To(t,e,i){let{headerText:n}=e,{isList:o}=e,{canChangeLayout:r}=e,{phrases:s}=e,{changeLayout:l}=e;return t.$$set=t=>{"headerText"in t&&i(0,n=t.headerText),"isList"in t&&i(1,o=t.isList),"canChangeLayout"in t&&i(2,r=t.canChangeLayout),"phrases"in t&&i(3,s=t.phrases),"changeLayout"in t&&i(4,l=t.changeLayout)},[n,o,r,s,l]}class Lo extends zt{constructor(t){super(),Ut(this,t,To,Eo,K,{headerText:0,isList:1,canChangeLayout:2,phrases:3,changeLayout:4})}}function Mo(t,e,i){const n=t.slice();return n[10]=e[i],n[12]=i,n}function Ao(t){let e,i,n,o,r,s=[],l=new Map,c=-1!==t[3]&&No(t),a=t[2];const u=t=>t[10].text;for(let e=0;e<a.length;e+=1){let i=Mo(t,a,e),n=u(i);l.set(n,s[e]=Do(n,i))}let f=t[1].more&&Vo(t),d=-1!==t[4]&&Ho(t);return{c(){e=nt("div"),c&&c.c(),i=rt();for(let t=0;t<s.length;t+=1)s[t].c();n=rt(),f&&f.c(),o=rt(),d&&d.c(),at(e,"class","iif-pagination")},m(t,l){tt(t,e,l),c&&c.m(e,null),Z(e,i);for(let t=0;t<s.length;t+=1)s[t].m(e,null);Z(e,n),f&&f.m(e,null),Z(e,o),d&&d.m(e,null),r=!0},p(t,r){if(-1!==t[3]?c?(c.p(t,r),8&r&&Et(c,1)):(c=No(t),c.c(),Et(c,1),c.m(e,i)):c&&(Bt(),Tt(c,1,1,()=>{c=null}),St()),4&r){const i=t[2];s=At(s,r,u,1,t,i,l,e,Lt,Do,n,Mo)}t[1].more?f?f.p(t,r):(f=Vo(t),f.c(),f.m(e,o)):f&&(f.d(1),f=null),-1!==t[4]?d?(d.p(t,r),16&r&&Et(d,1)):(d=Ho(t),d.c(),Et(d,1),d.m(e,null)):d&&(Bt(),Tt(d,1,1,()=>{d=null}),St())},i(t){r||(Et(c),Et(d),r=!0)},o(t){Tt(c),Tt(d),r=!1},d(t){t&&et(e),c&&c.d();for(let t=0;t<s.length;t+=1)s[t].d();f&&f.d(),d&&d.d()}}}function No(t){let e,i,n,o,r,s;return i=new le({props:{icon:"left"}}),{c(){e=nt("a"),Vt(i.$$.fragment),at(e,"href","# "),at(e,"class",n=Uo+"prev")},m(n,l){tt(n,e,l),Ht(i,e,null),o=!0,r||(s=lt(e,"click",ct(t[7])),r=!0)},p:H,i(t){o||(Et(i.$$.fragment,t),o=!0)},o(t){Tt(i.$$.fragment,t),o=!1},d(t){t&&et(e),qt(i),r=!1,s()}}}function Fo(t){let e;return{c(){e=nt("span"),e.textContent="..."},m(t,i){tt(t,e,i)},d(t){t&&et(e)}}}function Do(t,e){let i,n,o,r,s,l,c,a,u=e[10].text+"",f=e[10].dot&&Fo();return{key:t,first:null,c(){i=st(),f&&f.c(),n=rt(),o=nt("a"),r=ot(u),at(o,"href",s=e[10].selected?void 0:"# "),at(o,"class",l=e[10].className),this.first=i},m(t,s){tt(t,i,s),f&&f.m(t,s),tt(t,n,s),tt(t,o,s),Z(o,r),c||(a=lt(o,"click",ct((function(){W(e[10].onClick)&&e[10].onClick.apply(this,arguments)}))),c=!0)},p(t,i){(e=t)[10].dot?f||(f=Fo(),f.c(),f.m(n.parentNode,n)):f&&(f.d(1),f=null),4&i&&u!==(u=e[10].text+"")&&ut(r,u),4&i&&s!==(s=e[10].selected?void 0:"# ")&&at(o,"href",s),4&i&&l!==(l=e[10].className)&&at(o,"class",l)},d(t){t&&et(i),f&&f.d(t),t&&et(n),t&&et(o),c=!1,a()}}}function Vo(t){let e,i,n,o,r=t[0].phrases.icons.more+"";return{c(){e=nt("a"),i=ot(r),at(e,"href","# "),at(e,"class",zo)},m(r,s){tt(r,e,s),Z(e,i),n||(o=lt(e,"click",ct(t[8])),n=!0)},p(t,e){1&e&&r!==(r=t[0].phrases.icons.more+"")&&ut(i,r)},d(t){t&&et(e),n=!1,o()}}}function Ho(t){let e,i,n,o,r,s;return i=new le({props:{icon:"right"}}),{c(){e=nt("a"),Vt(i.$$.fragment),at(e,"href","# "),at(e,"class",n=Uo+"next")},m(n,l){tt(n,e,l),Ht(i,e,null),o=!0,r||(s=lt(e,"click",ct(t[9])),r=!0)},p:H,i(t){o||(Et(i.$$.fragment,t),o=!0)},o(t){Tt(i.$$.fragment,t),o=!1},d(t){t&&et(e),qt(i),r=!1,s()}}}function qo(t){let e,i,n=t[2].length>0&&Ao(t);return{c(){n&&n.c(),e=st()},m(t,o){n&&n.m(t,o),tt(t,e,o),i=!0},p(t,[i]){t[2].length>0?n?(n.p(t,i),4&i&&Et(n,1)):(n=Ao(t),n.c(),Et(n,1),n.m(e.parentNode,e)):n&&(Bt(),Tt(n,1,1,()=>{n=null}),St())},i(t){i||(Et(n),i=!0)},o(t){Tt(n),i=!1},d(t){n&&n.d(t),t&&et(e)}}}const Go="iif-page",Uo="iif-page iif-page--arrow iif-page--",zo="iif-page iif-page--more";function Wo(t,e,i){let n,o,{registry:r}=e,{name:s}=e,{block:l}=e,c=[];function a(t){r.router.action(s,t)}return t.$$set=t=>{"registry"in t&&i(0,r=t.registry),"name"in t&&i(6,s=t.name),"block"in t&&i(1,l=t.block)},t.$$.update=()=>{6&t.$$.dirty&&(i(2,c=M.showPagination(l)),c.length&&(i(4,o=l.more||c[c.length-1]>l.page?l.page+1:-1),i(3,n=l.page>0?l.page-1:-1),i(2,c=c.map((t,e)=>{const i=e>0&&c[e-1]<t-1,n=t===l.page;return{selected:n,dot:i,page:t,text:t+1,className:n?"iif-page iif-page--selected":Go,onClick:()=>a(t)}}))))},[r,l,c,n,o,a,s,()=>a(n),()=>a(r.phrases.icons.moreAsNumber?2:"more"),()=>a(o)]}class Ko extends zt{constructor(t){super(),Ut(this,t,Wo,qo,K,{registry:0,name:6,block:1})}}function Qo(t){let e,i;return e=new te({props:{type:"icons",$$slots:{default:[Xo]},$$scope:{ctx:t}}}),{c(){Vt(e.$$.fragment)},m(t,n){Ht(e,t,n),i=!0},p(t,i){const n={};4207&i&&(n.$$scope={dirty:i,ctx:t}),e.$set(n)},i(t){i||(Et(e.$$.fragment,t),i=!0)},o(t){Tt(e.$$.fragment,t),i=!1},d(t){qt(e,t)}}}function Jo(t){let e,i;return e=new Gn({props:{error:t[7].errors.noIconsFound}}),{c(){Vt(e.$$.fragment)},m(t,n){Ht(e,t,n),i=!0},p:H,i(t){i||(Et(e.$$.fragment,t),i=!0)},o(t){Tt(e.$$.fragment,t),i=!1},d(t){qt(e,t)}}}function Xo(t){let e,i,n,o,r,s;return e=new Lo({props:{headerText:t[5],isList:t[6],canChangeLayout:t[8],phrases:t[7],changeLayout:t[9]}}),n=new jo({props:{registry:t[0],selectedIcon:t[2],blocks:t[3],route:t[1],isList:t[6]}}),r=new Ko({props:{registry:t[0],name:"pagination",block:t[3].pagination}}),{c(){Vt(e.$$.fragment),i=rt(),Vt(n.$$.fragment),o=rt(),Vt(r.$$.fragment)},m(t,l){Ht(e,t,l),tt(t,i,l),Ht(n,t,l),tt(t,o,l),Ht(r,t,l),s=!0},p(t,i){const o={};32&i&&(o.headerText=t[5]),64&i&&(o.isList=t[6]),e.$set(o);const s={};1&i&&(s.registry=t[0]),4&i&&(s.selectedIcon=t[2]),8&i&&(s.blocks=t[3]),2&i&&(s.route=t[1]),64&i&&(s.isList=t[6]),n.$set(s);const l={};1&i&&(l.registry=t[0]),8&i&&(l.block=t[3].pagination),r.$set(l)},i(t){s||(Et(e.$$.fragment,t),Et(n.$$.fragment,t),Et(r.$$.fragment,t),s=!0)},o(t){Tt(e.$$.fragment,t),Tt(n.$$.fragment,t),Tt(r.$$.fragment,t),s=!1},d(t){qt(e,t),t&&et(i),qt(n,t),t&&et(o),qt(r,t)}}}function Yo(t){let e,i,n,o;const r=[Jo,Qo],s=[];function l(t,e){return t[4]?0:1}return e=l(t),i=s[e]=r[e](t),{c(){i.c(),n=st()},m(t,i){s[e].m(t,i),tt(t,n,i),o=!0},p(t,[o]){let c=e;e=l(t),e===c?s[e].p(t,o):(Bt(),Tt(s[c],1,1,()=>{s[c]=null}),St(),i=s[e],i||(i=s[e]=r[e](t),i.c()),Et(i,1),i.m(n.parentNode,n))},i(t){o||(Et(i),o=!0)},o(t){Tt(i),o=!1},d(t){s[e].d(t),t&&et(n)}}}function Zo(t,e,i){let{registry:n}=e,{route:o}=e,{selectedIcon:r}=e,{blocks:s}=e;const l=n.phrases,c=n.config.components;let a,u;const f=c.toggleList;let d=c.list;return t.$$set=t=>{"registry"in t&&i(0,n=t.registry),"route"in t&&i(1,o=t.route),"selectedIcon"in t&&i(2,r=t.selectedIcon),"blocks"in t&&i(3,s=t.blocks)},t.$$.update=()=>{24&t.$$.dirty&&(i(4,a=!s.pagination||!s.icons||s.icons.icons.length<1),a||i(5,u=function(){const t=s.pagination.length,e=l.icons;return s.pagination.more&&t>0?e.header.full:void 0!==e.headerWithCount[t]?e.headerWithCount[t]:e.header.full}().replace("{count}",s.pagination.length)))},[n,o,r,s,a,u,d,l,f,function(){f&&(i(6,d=c.list=!c.list),n.callback({type:"config"}))}]}class tr extends zt{constructor(t){super(),Ut(this,t,Zo,Yo,K,{registry:0,route:1,selectedIcon:2,blocks:3})}}function er(t){let e,i,n,o;return e=new Ie({props:{type:"text",value:t[1].keyword,onInput:t[4],placeholder:t[2],icon:"search",autofocus:nr}}),{c(){Vt(e.$$.fragment),i=rt(),n=nt("button"),n.textContent=""+t[3].button,at(n,"class","iif-form-button iif-form-button--primary"),at(n,"focusable","false")},m(t,r){Ht(e,t,r),tt(t,i,r),tt(t,n,r),o=!0},p(t,i){const n={};2&i&&(n.value=t[1].keyword),4&i&&(n.placeholder=t[2]),e.$set(n)},i(t){o||(Et(e.$$.fragment,t),o=!0)},o(t){Tt(e.$$.fragment,t),o=!1},d(t){qt(e,t),t&&et(i),t&&et(n)}}}function ir(t){let e,i;return e=new te({props:{type:"search",name:t[0],extra:"search-form",$$slots:{default:[er]},$$scope:{ctx:t}}}),{c(){Vt(e.$$.fragment)},m(t,n){Ht(e,t,n),i=!0},p(t,[i]){const n={};1&i&&(n.name=t[0]),262&i&&(n.$$scope={dirty:i,ctx:t}),e.$set(n)},i(t){i||(Et(e.$$.fragment,t),i=!0)},o(t){Tt(e.$$.fragment,t),i=!1},d(t){qt(e,t)}}}const nr=!0;function or(t,e,i){let{registry:n}=e,{name:o}=e,{block:r}=e,{info:s=null}=e,{customType:l=""}=e;const c=n.phrases.search;let a;return t.$$set=t=>{"registry"in t&&i(5,n=t.registry),"name"in t&&i(0,o=t.name),"block"in t&&i(1,r=t.block),"info"in t&&i(6,s=t.info),"customType"in t&&i(7,l=t.customType)},t.$$.update=()=>{192&t.$$.dirty&&(""!==l&&void 0!==c.placeholder[l]?i(2,a=c.placeholder[l]):s&&s.name&&void 0!==c.placeholder.collection?i(2,a=c.placeholder.collection.replace("{name}",s.name)):i(2,a=c.defaultPlaceholder))},[o,r,a,c,function(t){n.router.action(o,t.trim().toLowerCase())},n,s,l]}class rr extends zt{constructor(t){super(),Ut(this,t,or,ir,K,{registry:5,name:0,block:1,info:6,customType:7})}}function sr(t,e,i){const n=t.slice();return n[9]=e[i],n[11]=i,n}function lr(t){let e,i,n;return i=new yn({props:{registry:t[0],name:"collections",parent:t[3].parent?t[3].parent.type:"collections",link:t[7],block:t[2].collections}}),{c(){e=nt("div"),Vt(i.$$.fragment),at(e,"class","iff-filters")},m(t,o){tt(t,e,o),Ht(i,e,null),n=!0},p(t,e){const n={};1&e&&(n.registry=t[0]),8&e&&(n.parent=t[3].parent?t[3].parent.type:"collections"),128&e&&(n.link=t[7]),4&e&&(n.block=t[2].collections),i.$set(n)},i(t){n||(Et(i.$$.fragment,t),n=!0)},o(t){Tt(i.$$.fragment,t),n=!1},d(t){t&&et(e),qt(i)}}}function cr(t){let e,i,n=[],o=new Map,r=dr;const s=t=>t[9];for(let e=0;e<r.length;e+=1){let i=sr(t,r,e),l=s(i);o.set(l,n[e]=ur(l,i))}return{c(){e=nt("div");for(let t=0;t<n.length;t+=1)n[t].c();at(e,"class","iff-filters")},m(t,o){tt(t,e,o);for(let t=0;t<n.length;t+=1)n[t].m(e,null);i=!0},p(t,i){if(5&i){const r=dr;Bt(),n=At(n,i,s,1,t,r,o,e,Mt,ur,null,sr),St()}},i(t){if(!i){for(let t=0;t<r.length;t+=1)Et(n[t]);i=!0}},o(t){for(let t=0;t<n.length;t+=1)Tt(n[t]);i=!1},d(t){t&&et(e);for(let t=0;t<n.length;t+=1)n[t].d()}}}function ar(t){let e,i;return e=new yn({props:{registry:t[0],name:t[9],block:t[2][t[9]]}}),{c(){Vt(e.$$.fragment)},m(t,n){Ht(e,t,n),i=!0},p(t,i){const n={};1&i&&(n.registry=t[0]),4&i&&(n.block=t[2][t[9]]),e.$set(n)},i(t){i||(Et(e.$$.fragment,t),i=!0)},o(t){Tt(e.$$.fragment,t),i=!1},d(t){qt(e,t)}}}function ur(t,e){let i,n,o,r=e[2][e[9]]&&ar(e);return{key:t,first:null,c(){i=st(),r&&r.c(),n=st(),this.first=i},m(t,e){tt(t,i,e),r&&r.m(t,e),tt(t,n,e),o=!0},p(t,e){t[2][t[9]]?r?(r.p(t,e),4&e&&Et(r,1)):(r=ar(t),r.c(),Et(r,1),r.m(n.parentNode,n)):r&&(Bt(),Tt(r,1,1,()=>{r=null}),St())},i(t){o||(Et(r),o=!0)},o(t){Tt(r),o=!1},d(t){t&&et(i),r&&r.d(t),t&&et(n)}}}function fr(t){let e,i,n,o,r,s,l,c,a,u=t[2].collections&&lr(t),f=pr;o=new rr({props:{registry:t[0],name:"filter",block:t[2].filter,info:t[6]}});let d=t[8]&&cr(t);return l=new tr({props:{registry:t[0],blocks:t[2],selectedIcon:t[1],route:t[3]}}),{c(){e=nt("div"),u&&u.c(),i=rt(),n=rt(),Vt(o.$$.fragment),r=rt(),d&&d.c(),s=rt(),Vt(l.$$.fragment),at(e,"class",c="iif-view "+hr+"\n\t"+hr+"--prefix--"+t[5]+(""===t[4]?"":" "+hr+"--provider--"+t[4]))},m(t,c){tt(t,e,c),u&&u.m(e,null),Z(e,i),Z(e,n),Ht(o,e,null),Z(e,r),d&&d.m(e,null),Z(e,s),Ht(l,e,null),a=!0},p(t,[n]){t[2].collections?u?(u.p(t,n),4&n&&Et(u,1)):(u=lr(t),u.c(),Et(u,1),u.m(e,i)):u&&(Bt(),Tt(u,1,1,()=>{u=null}),St());const r={};1&n&&(r.registry=t[0]),4&n&&(r.block=t[2].filter),64&n&&(r.info=t[6]),o.$set(r),t[8]?d?(d.p(t,n),256&n&&Et(d,1)):(d=cr(t),d.c(),Et(d,1),d.m(e,s)):d&&(Bt(),Tt(d,1,1,()=>{d=null}),St());const f={};1&n&&(f.registry=t[0]),4&n&&(f.blocks=t[2]),2&n&&(f.selectedIcon=t[1]),8&n&&(f.route=t[3]),l.$set(f),(!a||48&n&&c!==(c="iif-view "+hr+"\n\t"+hr+"--prefix--"+t[5]+(""===t[4]?"":" "+hr+"--provider--"+t[4])))&&at(e,"class",c)},i(t){a||(Et(u),Et(f),Et(o.$$.fragment,t),Et(d),Et(l.$$.fragment,t),a=!0)},o(t){Tt(u),Tt(f),Tt(o.$$.fragment,t),Tt(d),Tt(l.$$.fragment,t),a=!1},d(t){t&&et(e),u&&u.d(),qt(o),d&&d.d(),qt(l)}}}const dr=["tags","themePrefixes","themeSuffixes"],hr="iif-view--collection",pr=!1;function gr(t,e,i){let n,o,r,s,l,{registry:c}=e,{selectedIcon:a}=e,{blocks:u}=e,{route:f}=e;return t.$$set=t=>{"registry"in t&&i(0,c=t.registry),"selectedIcon"in t&&i(1,a=t.selectedIcon),"blocks"in t&&i(2,u=t.blocks),"route"in t&&i(3,f=t.route)},t.$$.update=()=>{if(28&t.$$.dirty){i(4,n=f.params.provider),"string"!=typeof n&&i(4,n=""),i(5,o=f.params.prefix),i(6,r=null===u.info?null:u.info.info);const t=M.getProvider(n);i(7,s=t?t.links.collection:"")}4&t.$$.dirty&&i(8,l=dr.filter(t=>!!u[t]).length>0)},[c,a,u,f,n,o,r,s,l]}class mr extends zt{constructor(t){super(),Ut(this,t,gr,fr,K,{registry:0,selectedIcon:1,blocks:2,route:3})}}function yr(t){let e,i;return e=new yn({props:{registry:t[0],name:"collections",block:t[3].collections,link:t[4]}}),{c(){Vt(e.$$.fragment)},m(t,n){Ht(e,t,n),i=!0},p(t,i){const n={};1&i&&(n.registry=t[0]),8&i&&(n.block=t[3].collections),16&i&&(n.link=t[4]),e.$set(n)},i(t){i||(Et(e.$$.fragment,t),i=!0)},o(t){Tt(e.$$.fragment,t),i=!1},d(t){qt(e,t)}}}function $r(t){let e,i,n,o,r=t[3].collections&&yr(t);return n=new tr({props:{registry:t[0],blocks:t[3],selectedIcon:t[2],route:t[1]}}),{c(){e=nt("div"),r&&r.c(),i=rt(),Vt(n.$$.fragment),at(e,"class","iif-view iif-view--search")},m(t,s){tt(t,e,s),r&&r.m(e,null),Z(e,i),Ht(n,e,null),o=!0},p(t,[o]){t[3].collections?r?(r.p(t,o),8&o&&Et(r,1)):(r=yr(t),r.c(),Et(r,1),r.m(e,i)):r&&(Bt(),Tt(r,1,1,()=>{r=null}),St());const s={};1&o&&(s.registry=t[0]),8&o&&(s.blocks=t[3]),4&o&&(s.selectedIcon=t[2]),2&o&&(s.route=t[1]),n.$set(s)},i(t){o||(Et(r),Et(n.$$.fragment,t),o=!0)},o(t){Tt(r),Tt(n.$$.fragment,t),o=!1},d(t){t&&et(e),r&&r.d(),qt(n)}}}function br(t,e,i){let n,o,{registry:r}=e,{route:s}=e,{selectedIcon:l}=e,{blocks:c}=e;return t.$$set=t=>{"registry"in t&&i(0,r=t.registry),"route"in t&&i(1,s=t.route),"selectedIcon"in t&&i(2,l=t.selectedIcon),"blocks"in t&&i(3,c=t.blocks)},t.$$.update=()=>{if(2&t.$$.dirty&&(n=s.params.keyword),2&t.$$.dirty){let t=s.params.provider;"string"!=typeof t&&(t="");const e=M.getProvider(t);i(4,o=e?e.links.collection:"")}},[r,s,l,c,o]}class _r extends zt{constructor(t){super(),Ut(this,t,br,$r,K,{registry:0,route:1,selectedIcon:2,blocks:3})}}function vr(t){let e,i,n,o,r,s;return i=new rr({props:{registry:t[0],name:"filter",block:t[3].filter,customType:t[4]}}),o=new tr({props:{registry:t[0],blocks:t[3],selectedIcon:t[2],route:t[1]}}),{c(){e=nt("div"),Vt(i.$$.fragment),n=rt(),Vt(o.$$.fragment),at(e,"class",r="iif-view iif-view--custom iif-view--custom--"+t[4])},m(t,r){tt(t,e,r),Ht(i,e,null),Z(e,n),Ht(o,e,null),s=!0},p(t,[n]){const l={};1&n&&(l.registry=t[0]),8&n&&(l.block=t[3].filter),16&n&&(l.customType=t[4]),i.$set(l);const c={};1&n&&(c.registry=t[0]),8&n&&(c.blocks=t[3]),4&n&&(c.selectedIcon=t[2]),2&n&&(c.route=t[1]),o.$set(c),(!s||16&n&&r!==(r="iif-view iif-view--custom iif-view--custom--"+t[4]))&&at(e,"class",r)},i(t){s||(Et(i.$$.fragment,t),Et(o.$$.fragment,t),s=!0)},o(t){Tt(i.$$.fragment,t),Tt(o.$$.fragment,t),s=!1},d(t){t&&et(e),qt(i),qt(o)}}}function kr(t,e,i){let n,{registry:o}=e,{route:r}=e,{selectedIcon:s}=e,{blocks:l}=e;return t.$$set=t=>{"registry"in t&&i(0,o=t.registry),"route"in t&&i(1,r=t.route),"selectedIcon"in t&&i(2,s=t.selectedIcon),"blocks"in t&&i(3,l=t.blocks)},t.$$.update=()=>{2&t.$$.dirty&&i(4,n=r.params.customType)},[o,r,s,l,n]}class wr extends zt{constructor(t){super(),Ut(this,t,kr,vr,K,{registry:0,route:1,selectedIcon:2,blocks:3})}}function xr(t){let e,i;return e=new Fi({props:{registry:t[0],viewChanged:t[2],error:t[3],route:t[4]}}),{c(){Vt(e.$$.fragment)},m(t,n){Ht(e,t,n),i=!0},p(t,i){const n={};1&i&&(n.registry=t[0]),4&i&&(n.viewChanged=t[2]),8&i&&(n.error=t[3]),16&i&&(n.route=t[4]),e.$set(n)},i(t){i||(Et(e.$$.fragment,t),i=!0)},o(t){Tt(e.$$.fragment,t),i=!1},d(t){qt(e,t)}}}function Cr(t){let e,i;return e=new Qi({props:{registry:t[0],route:t[4]}}),{c(){Vt(e.$$.fragment)},m(t,n){Ht(e,t,n),i=!0},p(t,i){const n={};1&i&&(n.registry=t[0]),16&i&&(n.route=t[4]),e.$set(n)},i(t){i||(Et(e.$$.fragment,t),i=!0)},o(t){Tt(e.$$.fragment,t),i=!1},d(t){qt(e,t)}}}function jr(t){let e,i,n,o;const r=[Sr,Br,Rr,Or,Ir,Pr],s=[];function l(t,e){return""===t[3]&&t[4]?"collections"===t[4].type?1:"collection"===t[4].type?2:"search"===t[4].type?3:"custom"===t[4].type?4:5:0}return e=l(t),i=s[e]=r[e](t),{c(){i.c(),n=st()},m(t,i){s[e].m(t,i),tt(t,n,i),o=!0},p(t,o){let c=e;e=l(t),e===c?s[e].p(t,o):(Bt(),Tt(s[c],1,1,()=>{s[c]=null}),St(),i=s[e],i||(i=s[e]=r[e](t),i.c()),Et(i,1),i.m(n.parentNode,n))},i(t){o||(Et(i),o=!0)},o(t){Tt(i),o=!1},d(t){s[e].d(t),t&&et(n)}}}function Pr(t){let e,i;return e=new nn({props:{registry:t[0],error:"bad_route",route:t[4]}}),{c(){Vt(e.$$.fragment)},m(t,n){Ht(e,t,n),i=!0},p(t,i){const n={};1&i&&(n.registry=t[0]),16&i&&(n.route=t[4]),e.$set(n)},i(t){i||(Et(e.$$.fragment,t),i=!0)},o(t){Tt(e.$$.fragment,t),i=!1},d(t){qt(e,t)}}}function Ir(t){let e,i;return e=new wr({props:{registry:t[0],route:t[4],blocks:t[5],selectedIcon:t[1]}}),{c(){Vt(e.$$.fragment)},m(t,n){Ht(e,t,n),i=!0},p(t,i){const n={};1&i&&(n.registry=t[0]),16&i&&(n.route=t[4]),32&i&&(n.blocks=t[5]),2&i&&(n.selectedIcon=t[1]),e.$set(n)},i(t){i||(Et(e.$$.fragment,t),i=!0)},o(t){Tt(e.$$.fragment,t),i=!1},d(t){qt(e,t)}}}function Or(t){let e,i;return e=new _r({props:{registry:t[0],route:t[4],blocks:t[5],selectedIcon:t[1]}}),{c(){Vt(e.$$.fragment)},m(t,n){Ht(e,t,n),i=!0},p(t,i){const n={};1&i&&(n.registry=t[0]),16&i&&(n.route=t[4]),32&i&&(n.blocks=t[5]),2&i&&(n.selectedIcon=t[1]),e.$set(n)},i(t){i||(Et(e.$$.fragment,t),i=!0)},o(t){Tt(e.$$.fragment,t),i=!1},d(t){qt(e,t)}}}function Rr(t){let e,i;return e=new mr({props:{registry:t[0],route:t[4],blocks:t[5],selectedIcon:t[1]}}),{c(){Vt(e.$$.fragment)},m(t,n){Ht(e,t,n),i=!0},p(t,i){const n={};1&i&&(n.registry=t[0]),16&i&&(n.route=t[4]),32&i&&(n.blocks=t[5]),2&i&&(n.selectedIcon=t[1]),e.$set(n)},i(t){i||(Et(e.$$.fragment,t),i=!0)},o(t){Tt(e.$$.fragment,t),i=!1},d(t){qt(e,t)}}}function Br(t){let e,i;return e=new eo({props:{registry:t[0],route:t[4],blocks:t[5]}}),{c(){Vt(e.$$.fragment)},m(t,n){Ht(e,t,n),i=!0},p(t,i){const n={};1&i&&(n.registry=t[0]),16&i&&(n.route=t[4]),32&i&&(n.blocks=t[5]),e.$set(n)},i(t){i||(Et(e.$$.fragment,t),i=!0)},o(t){Tt(e.$$.fragment,t),i=!1},d(t){qt(e,t)}}}function Sr(t){let e,i;return e=new nn({props:{registry:t[0],error:""!==t[3]?t[3]:"bad_route",route:t[4]}}),{c(){Vt(e.$$.fragment)},m(t,n){Ht(e,t,n),i=!0},p(t,i){const n={};1&i&&(n.registry=t[0]),8&i&&(n.error=""!==t[3]?t[3]:"bad_route"),16&i&&(n.route=t[4]),e.$set(n)},i(t){i||(Et(e.$$.fragment,t),i=!0)},o(t){Tt(e.$$.fragment,t),i=!1},d(t){qt(e,t)}}}function Er(t){let e,i,n,o,r,s=Tr,l=t[7]&&xr(t),c=t[4]&&t[4].parent&&Cr(t),a=(!t[4]||"empty"!==t[4].type)&&jr(t);return{c(){e=nt("div"),i=rt(),l&&l.c(),n=rt(),c&&c.c(),o=rt(),a&&a.c(),at(e,"class",t[6])},m(t,s){tt(t,e,s),Z(e,i),l&&l.m(e,null),Z(e,n),c&&c.m(e,null),Z(e,o),a&&a.m(e,null),r=!0},p(t,[i]){t[7]?l?(l.p(t,i),128&i&&Et(l,1)):(l=xr(t),l.c(),Et(l,1),l.m(e,n)):l&&(Bt(),Tt(l,1,1,()=>{l=null}),St()),t[4]&&t[4].parent?c?(c.p(t,i),16&i&&Et(c,1)):(c=Cr(t),c.c(),Et(c,1),c.m(e,o)):c&&(Bt(),Tt(c,1,1,()=>{c=null}),St()),t[4]&&"empty"===t[4].type?a&&(Bt(),Tt(a,1,1,()=>{a=null}),St()):a?(a.p(t,i),16&i&&Et(a,1)):(a=jr(t),a.c(),Et(a,1),a.m(e,null)),(!r||64&i)&&at(e,"class",t[6])},i(t){r||(Et(s),Et(l),Et(c),Et(a),r=!0)},o(t){Tt(s),Tt(l),Tt(c),Tt(a),r=!1},d(t){t&&et(e),l&&l.d(),c&&c.d(),a&&a.d()}}}const Tr=!1,Lr="iif-content";function Mr(t,e,i){let n,o,{registry:r}=e,{selectedIcon:s}=e,{viewChanged:l}=e,{error:c}=e,{route:a}=e,{blocks:u}=e,f=false;return t.$$set=t=>{"registry"in t&&i(0,r=t.registry),"selectedIcon"in t&&i(1,s=t.selectedIcon),"viewChanged"in t&&i(2,l=t.viewChanged),"error"in t&&i(3,c=t.error),"route"in t&&i(4,a=t.route),"blocks"in t&&i(5,u=t.blocks)},t.$$.update=()=>{if(88&t.$$.dirty&&(i(6,n=Lr),""!==c?i(6,n+=" iif-content--error iif-content--error--"+c):(i(6,n+=" iif-content--view iif-content--view--"+a.type),a.params&&("search"===a.type||"collections"===a.type||"collection"===a.type)&&a.params.provider&&i(6,n+=" iif-content--view--"+a.type+"--provider--"+a.params.provider),"collection"===a.type?i(6,n+=" iif-content--view--collection--prefix--"+a.params.prefix):"custom"===a.type&&i(6,n+=" iif-content--view--custom--"+a.params.customType))),144&t.$$.dirty){i(7,o=!1);let t=a;for(;!o&&null!==t;)"collections"===t.type?i(7,o=!0):t=t.parent?t.parent:null}1040&t.$$.dirty&&i(8,f=!1)},[r,s,l,c,a,u,n,o,f,"",[""]]}class Ar extends zt{constructor(t){super(),Ut(this,t,Mr,Er,K,{registry:0,selectedIcon:1,viewChanged:2,error:3,route:4,blocks:5})}}function Nr(t){let e,i;return e=new Qt({props:{$$slots:{default:[Fr]},$$scope:{ctx:t}}}),{c(){Vt(e.$$.fragment)},m(t,n){Ht(e,t,n),i=!0},p(t,i){const n={};119&i&&(n.$$scope={dirty:i,ctx:t}),e.$set(n)},i(t){i||(Et(e.$$.fragment,t),i=!0)},o(t){Tt(e.$$.fragment,t),i=!1},d(t){qt(e,t)}}}function Fr(t){let e,i,n,o,r,s;e=new Jt({props:{registry:t[0],route:t[4]}});const l=[t[5]];let c={};for(let t=0;t<l.length;t+=1)c=q(c,l[t]);return n=new Ar({props:c}),r=new Ei({props:{registry:t[0],selectedIcon:t[1],route:t[4],customisations:t[2]}}),{c(){Vt(e.$$.fragment),i=rt(),Vt(n.$$.fragment),o=rt(),Vt(r.$$.fragment)},m(t,l){Ht(e,t,l),tt(t,i,l),Ht(n,t,l),tt(t,o,l),Ht(r,t,l),s=!0},p(t,i){const o={};1&i&&(o.registry=t[0]),16&i&&(o.route=t[4]),e.$set(o);const s=32&i?Nt(l,[Ft(t[5])]):{};n.$set(s);const c={};1&i&&(c.registry=t[0]),2&i&&(c.selectedIcon=t[1]),16&i&&(c.route=t[4]),4&i&&(c.customisations=t[2]),r.$set(c)},i(t){s||(Et(e.$$.fragment,t),Et(n.$$.fragment,t),Et(r.$$.fragment,t),s=!0)},o(t){Tt(e.$$.fragment,t),Tt(n.$$.fragment,t),Tt(r.$$.fragment,t),s=!1},d(t){qt(e,t),t&&et(i),qt(n,t),t&&et(o),qt(r,t)}}}function Dr(t){let e,i,n=!0!==t[3]&&Nr(t);return{c(){n&&n.c(),e=st()},m(t,o){n&&n.m(t,o),tt(t,e,o),i=!0},p(t,[i]){!0!==t[3]?n?(n.p(t,i),8&i&&Et(n,1)):(n=Nr(t),n.c(),Et(n,1),n.m(e.parentNode,e)):n&&(Bt(),Tt(n,1,1,()=>{n=null}),St())},i(t){i||(Et(n),i=!0)},o(t){Tt(n),i=!1},d(t){n&&n.d(t),t&&et(e)}}}function Vr(t,e,i){let{registry:n}=e,{selectedIcon:o}=e,{customisations:r}=e,{hidden:s}=e,{route:l}=e;return t.$$set=t=>{i(5,e=q(q({},e),Y(t))),"registry"in t&&i(0,n=t.registry),"selectedIcon"in t&&i(1,o=t.selectedIcon),"customisations"in t&&i(2,r=t.customisations),"hidden"in t&&i(3,s=t.hidden),"route"in t&&i(4,l=t.route)},e=Y(e),[n,o,r,s,l,e]}class Hr extends zt{constructor(t){super(),Ut(this,t,Vr,Dr,K,{registry:0,selectedIcon:1,customisations:2,hidden:3,route:4})}}fetch("./line-md.json").then(t=>t.json()).then(t=>{const e=document.getElementById("container"),i="line-md";e.innerHTML="",new V.Wrapper({container:e,component:Hr,callback:t=>{console.log("Event:",t)},iconSets:{iconSets:[t],merge:"only-custom",info:{[i]:{name:"Material Line Icons",author:"Iconify",url:"https://github.com/iconify",license:"Apache 2.0",height:24,samples:["home","image-twotone","edit-twotone"],palette:!1,category:"General"}}},state:{route:{type:"collection",params:{prefix:i}},config:{ui:{itemsPerPage:60},components:{list:!1}}}})}).catch(t=>{document.getElementById("container").innerHTML="Error fetching icon sets"})}(Iconify)}();
package/index.html DELETED
@@ -1,67 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta charset="utf8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <link rel="stylesheet" href="./icon-finder/iconify2.css" />
7
- <link rel="stylesheet" href="./line-md.css" />
8
-
9
- <title>Material Line Icons Demo</title>
10
-
11
- <style>
12
- html {
13
- background: #f2f2f2;
14
- }
15
- body {
16
- max-width: 976px;
17
- margin: 0 auto;
18
- background: #f2f2f2;
19
- }
20
- .iif-wrapper--line-md,
21
- .iif-wrapper--line-md .iif-block:last-child,
22
- .iif-wrapper--line-md p:last-child {
23
- margin-bottom: 0;
24
- padding-bottom: 0;
25
- }
26
- </style>
27
- <script src="./icon-finder/iconify.min.js"></script>
28
- </head>
29
-
30
- <body>
31
- <div class="iif-wrapper iif-wrapper--line-md iif-content">
32
- <div class="iif-block iif-block--collection-info no-bottom-spacing">
33
- <div class="iif-collection-info-title">Material Line Icons</div>
34
- <p>
35
- This icon set has 24x24 icons designed to Material Design guidelines
36
- that are used for 'Round' and 'TwoTone' icons in official Material
37
- Design Icons with one minor change: thin 1px stroke is allowed where
38
- it makes sense.
39
- </p>
40
- <p>
41
- Icons use stroke that can be animated on first render. All you have to
42
- do is add class "iconify--line-md" to SVG element (Iconify SVG
43
- framework does it automatically) and include stylesheet from
44
- https://code.iconify.design/css/line-md.css
45
- </p>
46
- <p>
47
- To refresh animation you can either re-render icon or use display to
48
- hide and show it.
49
- </p>
50
- </div>
51
- </div>
52
- <div id="container">
53
- <div class="iif-wrapper iif-content">
54
- <p>Loading icons...</p>
55
- </div>
56
- </div>
57
- <script>
58
- (function () {
59
- var node = document.createElement('script');
60
- node.type = 'text/javascript';
61
- node.async = true;
62
- node.src = './icon-finder/iconify2.js';
63
- document.head.appendChild(node);
64
- })();
65
- </script>
66
- </body>
67
- </html>
package/line-md.css DELETED
@@ -1,46 +0,0 @@
1
- @supports (animation: foo 1s) and (not (-ms-ime-align: auto)) and (not (overflow: -webkit-marquee)) {
2
- .iconify--line-md .il-md-fill { animation: il-md-fill 0.5s forwards; opacity: 0; }
3
- .iconify--line-md .il-md-length-15 { animation: il-md-length-15 0s forwards; stroke-dasharray: 15; stroke-dashoffset: 15; opacity: 0; }
4
- .iconify--line-md .il-md-length-25 { animation: il-md-length-25 0s forwards; stroke-dasharray: 25; stroke-dashoffset: 25; opacity: 0; }
5
- .iconify--line-md .il-md-length-40 { animation: il-md-length-40 0s forwards; stroke-dasharray: 40; stroke-dashoffset: 40; opacity: 0; }
6
- .iconify--line-md .il-md-length-70 { animation: il-md-length-70 0s forwards; stroke-dasharray: 70; stroke-dashoffset: 70; opacity: 0; }
7
- .iconify--line-md .il-md-length-100 { animation: il-md-length-100 0s forwards; stroke-dasharray: 100; stroke-dashoffset: 100; opacity: 0; }
8
- .iconify--line-md .il-md-length-150 { animation: il-md-length-150 0s forwards; stroke-dasharray: 150; stroke-dashoffset: 150; opacity: 0; }
9
- .iconify--line-md .il-md-delay-0 { animation-delay: 0s; }
10
- .iconify--line-md .il-md-delay-1 { animation-delay: 0.1s; }
11
- .iconify--line-md .il-md-delay-2 { animation-delay: 0.2s; }
12
- .iconify--line-md .il-md-delay-3 { animation-delay: 0.3s; }
13
- .iconify--line-md .il-md-delay-4 { animation-delay: 0.4s; }
14
- .iconify--line-md .il-md-delay-5 { animation-delay: 0.5s; }
15
- .iconify--line-md .il-md-delay-6 { animation-delay: 0.6s; }
16
- .iconify--line-md .il-md-delay-7 { animation-delay: 0.7s; }
17
- .iconify--line-md .il-md-delay-8 { animation-delay: 0.8s; }
18
- .iconify--line-md .il-md-delay-9 { animation-delay: 0.9s; }
19
- .iconify--line-md .il-md-delay-10 { animation-delay: 1s; }
20
- .iconify--line-md .il-md-delay-11 { animation-delay: 1.1s; }
21
- .iconify--line-md .il-md-delay-12 { animation-delay: 1.2s; }
22
- .iconify--line-md .il-md-delay-13 { animation-delay: 1.3s; }
23
- .iconify--line-md .il-md-delay-14 { animation-delay: 1.4s; }
24
- .iconify--line-md .il-md-delay-15 { animation-delay: 1.5s; }
25
- .iconify--line-md .il-md-delay-16 { animation-delay: 1.6s; }
26
- .iconify--line-md .il-md-delay-17 { animation-delay: 1.7s; }
27
- .iconify--line-md .il-md-delay-18 { animation-delay: 1.8s; }
28
- .iconify--line-md .il-md-delay-19 { animation-delay: 1.9s; }
29
- .iconify--line-md .il-md-duration-0 { animation-duration: 0.2s; }
30
- .iconify--line-md .il-md-duration-1 { animation-duration: 0.3s; }
31
- .iconify--line-md .il-md-duration-2 { animation-duration: 0.4s; }
32
- .iconify--line-md .il-md-duration-3 { animation-duration: 0.5s; }
33
- .iconify--line-md .il-md-duration-4 { animation-duration: 0.6s; }
34
- .iconify--line-md .il-md-duration-5 { animation-duration: 0.7s; }
35
- .iconify--line-md .il-md-duration-6 { animation-duration: 0.8s; }
36
- .iconify--line-md .il-md-duration-7 { animation-duration: 0.9s; }
37
- .iconify--line-md .il-md-duration-8 { animation-duration: 1s; }
38
- .iconify--line-md .il-md-duration-9 { animation-duration: 1.1s; }
39
- @keyframes il-md-fill { from { opacity: 0; } to { opacity: 1; } }
40
- @keyframes il-md-length-15 { 0% { stroke-dashoffset: 15; opacity: 0; } 1% { stroke-dashoffset: 15; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 1; } }
41
- @keyframes il-md-length-25 { 0% { stroke-dashoffset: 25; opacity: 0; } 1% { stroke-dashoffset: 25; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 1; } }
42
- @keyframes il-md-length-40 { 0% { stroke-dashoffset: 40; opacity: 0; } 1% { stroke-dashoffset: 40; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 1; } }
43
- @keyframes il-md-length-70 { 0% { stroke-dashoffset: 70; opacity: 0; } 1% { stroke-dashoffset: 70; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 1; } }
44
- @keyframes il-md-length-100 { 0% { stroke-dashoffset: 100; opacity: 0; } 1% { stroke-dashoffset: 100; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 1; } }
45
- @keyframes il-md-length-150 { 0% { stroke-dashoffset: 150; opacity: 0; } 1% { stroke-dashoffset: 150; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 1; } }
46
- }
package/svg/iconify2.svg DELETED
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24" class="iconify iconify--line-md" width="24" height="24"><g fill="none"><path d="M4 7V21" stroke="currentColor" stroke-width="2" class="il-md-length-15 il-md-duration-2 il-md-delay-0"/><path d="M4 3V5" stroke="currentColor" stroke-width="2" class="il-md-length-15 il-md-duration-2 il-md-delay-0"/><path d="M18 4.25204C17.3608 4.08751 16.6906 4 16 4C11.5817 4 8 7.58172 8 12C8 16.4183 11.5817 20 16 20C16.6906 20 17.3608 19.9125 18 19.748" stroke="currentColor" stroke-width="2" stroke-linecap="round" class="il-md-length-40 il-md-duration-3 il-md-delay-2"/><g><path d="M16 8C13.7909 8 12 9.79086 12 12C12 14.2091 13.7909 16 16 16C18.2091 16 20 14.2091 20 12C20 9.79086 18.2091 8 16 8Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" class="il-md-length-40 il-md-duration-5 il-md-delay-5"/></g></g></svg>