cozy-bar 8.4.2 → 8.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (103) hide show
  1. package/dist/cozy-bar.min.js +4 -4
  2. package/dist/cozy-bar.min.js.map +1 -1
  3. package/package.json +2 -2
  4. package/CHANGELOG.md +0 -493
  5. package/transpiled/assets/icons/16/icon-storage-16.svg +0 -3
  6. package/transpiled/assets/icons/24/icon-arrow-left.svg +0 -3
  7. package/transpiled/assets/icons/32/icon-claudy.svg +0 -1
  8. package/transpiled/assets/icons/apps/icon-collect.svg +0 -25
  9. package/transpiled/assets/icons/apps/icon-drive.svg +0 -17
  10. package/transpiled/assets/icons/apps/icon-market-soon.svg +0 -25
  11. package/transpiled/assets/icons/apps/icon-photos.svg +0 -19
  12. package/transpiled/assets/icons/apps/icon-soon.svg +0 -21
  13. package/transpiled/assets/icons/apps/icon-store.svg +0 -19
  14. package/transpiled/assets/icons/claudyActions/icon-bills.svg +0 -6
  15. package/transpiled/assets/icons/claudyActions/icon-laptop.svg +0 -7
  16. package/transpiled/assets/icons/claudyActions/icon-phone.svg +0 -8
  17. package/transpiled/assets/icons/claudyActions/icon-question-mark.svg +0 -6
  18. package/transpiled/assets/icons/comingsoon/icon-bank.svg +0 -12
  19. package/transpiled/assets/icons/comingsoon/icon-sante.svg +0 -12
  20. package/transpiled/assets/icons/comingsoon/icon-store.svg +0 -6
  21. package/transpiled/assets/icons/icon-cozy.svg +0 -3
  22. package/transpiled/assets/icons/icon-shield.svg +0 -3
  23. package/transpiled/assets/icons/spinner.svg +0 -4
  24. package/transpiled/assets/sprites/icon-apps.svg +0 -1
  25. package/transpiled/assets/sprites/icon-cozy-home.svg +0 -16
  26. package/transpiled/components/Apps/AppItem.js +0 -134
  27. package/transpiled/components/Apps/AppItemPlaceholder.js +0 -14
  28. package/transpiled/components/Apps/AppNavButtons.js +0 -108
  29. package/transpiled/components/Apps/AppsContent.js +0 -124
  30. package/transpiled/components/Apps/ButtonCozyHome.js +0 -25
  31. package/transpiled/components/Apps/ButtonCozyHome.spec.jsx +0 -53
  32. package/transpiled/components/Apps/IconCozyHome.js +0 -67
  33. package/transpiled/components/Apps/index.js +0 -102
  34. package/transpiled/components/Banner.js +0 -76
  35. package/transpiled/components/Bar.js +0 -329
  36. package/transpiled/components/Bar.spec.jsx +0 -133
  37. package/transpiled/components/Claudy.js +0 -123
  38. package/transpiled/components/ClaudyIcon.js +0 -16
  39. package/transpiled/components/Drawer.js +0 -367
  40. package/transpiled/components/Drawer.spec.jsx +0 -98
  41. package/transpiled/components/SearchBar.js +0 -407
  42. package/transpiled/components/Settings/SettingsContent.js +0 -128
  43. package/transpiled/components/Settings/StorageData.js +0 -24
  44. package/transpiled/components/Settings/helper.js +0 -9
  45. package/transpiled/components/Settings/index.js +0 -225
  46. package/transpiled/components/StorageIcon.js +0 -16
  47. package/transpiled/components/SupportModal.js +0 -86
  48. package/transpiled/components/__snapshots__/Bar.spec.jsx.snap +0 -302
  49. package/transpiled/config/claudyActions.json +0 -20
  50. package/transpiled/config/persistWhitelist.json +0 -4
  51. package/transpiled/cozy-bar.css +0 -5905
  52. package/transpiled/dom.js +0 -84
  53. package/transpiled/index.js +0 -246
  54. package/transpiled/index.spec.jsx +0 -34
  55. package/transpiled/lib/api/helpers.js +0 -12
  56. package/transpiled/lib/api/index.js +0 -175
  57. package/transpiled/lib/exceptions.js +0 -156
  58. package/transpiled/lib/expiringMemoize.js +0 -17
  59. package/transpiled/lib/icon.js +0 -154
  60. package/transpiled/lib/intents.js +0 -17
  61. package/transpiled/lib/logger.js +0 -10
  62. package/transpiled/lib/middlewares/appsI18n.js +0 -64
  63. package/transpiled/lib/realtime.js +0 -76
  64. package/transpiled/lib/reducers/apps.js +0 -291
  65. package/transpiled/lib/reducers/apps.spec.js +0 -59
  66. package/transpiled/lib/reducers/content.js +0 -68
  67. package/transpiled/lib/reducers/context.js +0 -138
  68. package/transpiled/lib/reducers/index.js +0 -59
  69. package/transpiled/lib/reducers/locale.js +0 -27
  70. package/transpiled/lib/reducers/settings.js +0 -253
  71. package/transpiled/lib/reducers/theme.js +0 -64
  72. package/transpiled/lib/reducers/unserializable.js +0 -31
  73. package/transpiled/lib/stack-client.js +0 -442
  74. package/transpiled/lib/stack.js +0 -122
  75. package/transpiled/lib/store/index.js +0 -42
  76. package/transpiled/locales/de.json +0 -57
  77. package/transpiled/locales/en.json +0 -57
  78. package/transpiled/locales/es.json +0 -57
  79. package/transpiled/locales/fr.json +0 -57
  80. package/transpiled/locales/it.json +0 -57
  81. package/transpiled/locales/ja.json +0 -57
  82. package/transpiled/locales/nl_NL.json +0 -57
  83. package/transpiled/locales/pl.json +0 -57
  84. package/transpiled/locales/ru.json +0 -57
  85. package/transpiled/locales/sq.json +0 -57
  86. package/transpiled/locales/zh_CN.json +0 -57
  87. package/transpiled/proptypes/index.js +0 -11
  88. package/transpiled/queries/index.js +0 -19
  89. package/transpiled/styles/apps.css +0 -248
  90. package/transpiled/styles/banner.css +0 -64
  91. package/transpiled/styles/bar.css +0 -106
  92. package/transpiled/styles/base.css +0 -21
  93. package/transpiled/styles/claudy.css +0 -98
  94. package/transpiled/styles/drawer.css +0 -126
  95. package/transpiled/styles/index.styl +0 -33
  96. package/transpiled/styles/indicators.css +0 -58
  97. package/transpiled/styles/nav.css +0 -81
  98. package/transpiled/styles/navigation_item.css +0 -34
  99. package/transpiled/styles/searchbar.css +0 -156
  100. package/transpiled/styles/settings.css +0 -34
  101. package/transpiled/styles/storage.css +0 -22
  102. package/transpiled/styles/supportModal.css +0 -20
  103. package/transpiled/styles/theme.styl +0 -25
@@ -3,17 +3,17 @@
3
3
  Copyright (c) 2017 Jed Watson.
4
4
  Licensed under the MIT License (MIT), see
5
5
  http://jedwatson.github.io/classnames
6
- */!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)&&r.length){var a=o.apply(null,r);a&&e.push(a)}else if("object"===i)for(var u in r)n.call(r,u)&&r[u]&&e.push(u)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},function(e,t,n){(t=e.exports=n(70)(!0)).push([e.i,"html{--white:#fff;--paleGrey:#f5f6f7;--silver:#d6d8da;--coolGrey:#95999d;--slateGrey:#5d6165;--charcoalGrey:#32363f;--black:#000;--overlay:rgba(50,54,63,.5);--zircon:#f5faff;--dodgerBlue:#297ef2;--scienceBlue:#0b61d6;--weirdGreen:#40de8e;--emerald:#35ce68;--malachite:#08b442;--mango:#ff962f;--chablis:#fff2f2;--yourPink:#fdcbcb;--fuchsia:#fc4c83;--pomegranate:#f52d2d;--monza:#dd0505}html,.cozy-ui-bar-CozyTheme--normal--GgDII{--primaryColor:#297ef2;--primaryColorDark:#0b61d6;--primaryColorLight:#5c9df5;--primaryColorLightest:#9fc4fb;--secondaryColor:#fd7461;--secondaryColorDark:#e3503b;--secondaryColorLight:#ffdeda;--secondaryColorLightest:#fecdc6;--primaryBackgroundLight:#f5faff;--paperBackgroundColor:#fff;--defaultBackgroundColor:#f5f6f7;--primaryTextColor:#32363f;--secondaryTextColor:#95999d;--primaryContrastTextColor:#fff;--secondaryContrastTextColor:#fff;--dividerColor:rgba(29,33,42,.122);--successColor:#35ce68;--warningColor:#ff962f;--errorColor:#f52d2d;--errorColorDark:#a00808;--errorColorLight:#fcbfbf;--errorColorLightest:#fee6e6;--errorBackground:#fff2f2;--spinnerColor:var(--primaryColor);--linkColor:var(--primaryColor);--linkTextDecoration:none;--linkColorActive:var(--primaryColorDark);--invertedTabsActiveTextColor:var(--primaryContrastTextColor);--invertedTabsInactiveTextColor:var(--primaryContrastTextColor);--invertedTabsIndicatorColor:var(--primaryContrastTextColor);--invertedTabsBackgroundColor:var(--primaryColor);--regularButtonPrimaryColor:var(--primaryColor);--regularButtonSecondaryColor:var(--primaryColor);--regularButtonActiveColor:var(--primaryColorDark);--regularButtonConstrastColor:var(--primaryContrastTextColor);--secondaryButtonPrimaryColor:#fff;--secondaryButtonSecondaryColor:var(--silver);--secondaryButtonActiveColor:var(--silver);--secondaryButtonContrastColor:var(--black);--dividerColor2:var(--coolGrey);--iconColor:currentColor;--textIconColor:var(--charcoalGrey);--actionMenuIconColor:var(--slateGrey);--neutralBackground:var(--paleGrey);--buttonTextTransform:uppercase;--buttonBorderRadius:.125rem;--navTextColor:var(--slateGrey);--navTextActiveColor:var(--slateGrey);--navTextHoverColor:var(--charcoalGrey);--alertErrorColor:#fff;--alertErrorBackgroundColor:var(--errorColor);--alertSuccessColor:#fff;--alertSuccessBackgroundColor:var(--successColor);--alertInfoColor:#fff;--alertInfoBackgroundColor:var(--slateGrey)}@-webkit-keyframes cozy-ui-bar-spin--1NeSh{from{transform:rotate(0deg)}to{transform:rotate(359deg)}}@keyframes cozy-ui-bar-spin--1NeSh{from{transform:rotate(0deg)}to{transform:rotate(359deg)}}@-webkit-keyframes cozy-ui-bar-shake--8T61M{10%,90%{transform:translate3d(-1px,0,0)}20%,80%{transform:translate3d(2px,0,0)}30%,50%,70%{transform:translate3d(-4px,0,0)}40%,60%{transform:translate3d(4px,0,0)}}@keyframes cozy-ui-bar-shake--8T61M{10%,90%{transform:translate3d(-1px,0,0)}20%,80%{transform:translate3d(2px,0,0)}30%,50%,70%{transform:translate3d(-4px,0,0)}40%,60%{transform:translate3d(4px,0,0)}}.u-visuallyhidden{position:absolute!important;border:0!important;width:.063rem!important;height:.063rem!important;overflow:hidden!important;padding:0!important;white-space:nowrap!important;clip:rect(.063rem,.063rem,.063rem,.063rem)!important;-webkit-clip-path:inset(50%)!important;clip-path:inset(50%)!important}.u-hide{display:none!important;visibility:hidden!important}.u-dn{display:none}.u-di{display:inline}.u-db{display:block}.u-dib{display:inline-block}.u-dit{display:inline-table}.u-dt{display:table}.u-dtc{display:table-cell}.u-dt-row{display:table-row}.u-dt-row-group{display:table-row-group}.u-dt-column{display:table-column}.u-dt-column-group{display:table-column-group}.u-black{color:var(--black)!important}.u-charcoalGrey{color:var(--charcoalGrey)!important}.u-coolGrey{color:var(--coolGrey)!important}.u-silver{color:var(--silver)!important}.u-slateGrey{color:var(--slateGrey)!important}.u-lightishPurple{color:#b449e7!important}.u-dodgerBlue{color:#297ef2!important}.u-overlay{color:var(--overlay)!important}.u-paleGrey{color:var(--paleGrey)!important}.u-monza{color:#dd0505!important}.u-pomegranate{color:#f52d2d!important}.u-primaryBackgroundLight{color:var(--primaryBackgroundLight)!important}.u-primaryColor{color:var(--primaryColor)!important}.u-primaryColorLight{color:var(--primaryColorLight)!important}.u-primaryContrastTextColor{color:var(--primaryContrastTextColor)!important}.u-error{color:var(--errorColor)!important}.u-errorBackground{color:var(--errorBackground)!important}.u-success{color:var(--successColor)!important}.u-warning{color:var(--warningColor)!important}.u-info{color:var(--infoColor)!important}.u-weirdGreen{color:#40de8e!important}.u-white{color:var(--white)!important}.u-breakword{word-break:break-word}.u-ellipsis{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.u-spacellipsis{overflow:hidden;text-overflow:ellipsis;white-space:break-spaces}.u-midellipsis{display:flex;flex-wrap:nowrap}.u-midellipsis>*{display:inline-block;max-width:50%;overflow:hidden;white-space:pre}.u-midellipsis>:first-child{text-overflow:ellipsis}.u-midellipsis>:last-child{text-overflow:clip;direction:rtl}@supports(text-overflow:'[...]'){.u-midellipsis>:first-child{text-overflow:'[...]'}}.u-link:link{color:var(--linkColor)!important;-webkit-text-decoration:var(--linkTextDecoration)!important;text-decoration:var(--linkTextDecoration)!important}.u-link:visited,.u-link:active,.u-link:hover,.u-link:focus{color:var(--linkColorActive)!important}.u-lh-tiny{line-height:1!important}.u-lh-xsmall{line-height:1.1!important}.u-lh-small{line-height:1.2!important}.u-lh-medium{line-height:1.3!important}.u-lh-large{line-height:1.4!important}.u-lh-xlarge{line-height:1.5!important}.u-fz-tiny{font-size:.75rem!important;line-height:1.3!important}.u-fz-xsmall{font-size:.813rem!important;line-height:1.4!important}.u-fz-small{font-size:.875rem!important;line-height:1.4!important}.u-fz-medium{font-size:1rem!important;line-height:1.5!important}.u-fz-large{font-size:1.125rem!important;line-height:1.5!important}.u-ta-left{text-align:left!important}.u-ta-right{text-align:right!important}.u-ta-center{text-align:center!important}.u-ta-justify{text-align:justify!important}.u-fs-normal{font-style:normal!important}.u-fs-italic{font-style:italic!important}.u-fw-normal{font-weight:400}.u-fw-bold{font-weight:700}html{--zIndex-below:-1;--zIndex-app:0;--zIndex-low:1;--zIndex-alertMobile:10;--zIndex-nav:20;--zIndex-bar:21;--zIndex-selection:30;--zIndex-popover:40;--zIndex-overlay:50;--zIndex-fileActionMenu:60;--zIndex-drawer:60;--zIndex-modal:70;--zindex-alert:80}html{--primaryFont:Lato,sans-serif}body,body button,body input,body optgroup,body select,body textarea{font-family:var(--primaryFont)}html{font-size:100%}body{font:100%/1.5;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}html{height:100%}body{display:flex;flex-direction:column;align-items:stretch;width:100vw;height:100%;margin:0}[role=application]{display:flex;height:inherit;flex:1 1 100%;overflow-x:hidden;overflow-y:auto}html,body{background-color:var(--white);color:var(--black)}[data-input=radio],[data-input=checkbox]{display:flex}[data-input=radio] input[type=radio],[data-input=checkbox] input[type=radio],[data-input=radio] input[type=checkbox],[data-input=checkbox] input[type=checkbox]{display:none!important;visibility:hidden!important}[data-input=radio] label,[data-input=checkbox] label{position:relative;display:inline-block;width:1rem;height:1rem;padding-left:1.4rem;cursor:pointer}[data-input=radio] label:before,[data-input=checkbox] label:before,[data-input=radio] label:after,[data-input=checkbox] label:after{content:'';position:absolute;left:0;top:0;box-sizing:border-box;width:1rem;height:1rem}[data-input=radio] label:before,[data-input=checkbox] label:before{transition:box-shadow .35s cubic-bezier(0,.89,.44,1)}[data-input=radio] label:after,[data-input=checkbox] label:after{transition-duration:.2s;transition-property:opacity,transform}[data-input=radio] label:before{border-radius:50%;border:.125rem solid var(--coolGrey);box-shadow:inset 0 0 0 1rem transparent}[data-input=radio] input[type=radio]:checked+label:before{box-shadow:inset 0 0 0 .188rem var(--paleGrey),inset 0 0 0 1rem var(--dodgerBlue)}[data-input=checkbox] label:before,[data-input=checkbox] label:after{border-radius:.125rem}[data-input=checkbox] label:before{background-color:var(--white);box-shadow:inset 0 0 0 .125rem var(--silver)}[data-input=checkbox] label:before:hover{box-shadow:inset 0 0 0 .125rem var(--dodgerBlue)}[data-input=checkbox] label:after{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMjAnIGhlaWdodD0nMjAnIHZpZXdCb3g9JzAgMCAyMCAyMCcgeG1sbnM9J2h0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnJz4KICAgIDxwYXRoIGQ9J00zIDEwLjAxOWw0LjUyMyA0LjUyMyA5LjU0MS05LjU0MScgc3Ryb2tlPScjRkZGJyBzdHJva2Utd2lkdGg9JzInIGZpbGw9Im5vbmUiLz4KPC9zdmc+Cg==);background-size:contain}[data-input=checkbox][aria-checked=mixed] label:after{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgdmlld0JveD0iMCAwIDIwIDIwIj48cGF0aCBkPSJNMy40OTcgMTBoMTMuMDA2IiBzdHJva2U9IiNGRkYiIHN0cm9rZS13aWR0aD0iMiIgLz48L3N2Zz4K);background-size:contain}[data-input=checkbox] input[type=checkbox]:checked+label:before{box-shadow:inset 0 0 0 1rem var(--dodgerBlue)}[data-input=checkbox] input[type=checkbox]:checked+label:after{opacity:1;transform:scale(1)}[data-input=checkbox] input[type=checkbox]:not(:checked)+label:after{opacity:0;transform:scale(0)}.cozy-ui-bar-c-modal--2ICub{display:flex;flex-flow:column nowrap;align-items:stretch}.cozy-ui-bar-c-modal-content--KVDws{background:linear-gradient(#fff 30%,rgba(255,255,255,0)),linear-gradient(rgba(255,255,255,0),#fff 70%) 0 100%,linear-gradient(rgba(214,216,218,.25) 0,rgba(214,216,218,.25) 25%,rgba(255,255,255,0) 26%,rgba(255,255,255,0) 100%),linear-gradient(rgba(255,255,255,0) 0,rgba(255,255,255,0) 74%,rgba(214,216,218,.25) 75%,rgba(214,216,218,.25) 100%) 0 100%;background-repeat:no-repeat;background-color:var(--white);background-size:100% 2rem,100% 2rem,100% .5rem,100% .5rem;background-attachment:local,local,scroll,scroll;background-clip:padding-box;overflow:auto;-webkit-overflow-scrolling:touch}.cozy-ui-bar-c-modal-header--XED91,.cozy-ui-bar-c-modal-header--branded--uEj-8,.cozy-ui-bar-c-modal-footer--14fzp{flex:0 0 auto}.cozy-ui-bar-c-modal-container--30qmf{position:relative;z-index:70}.cozy-ui-bar-c-modal-wrapper--17kzj{position:fixed;top:0;left:0;display:flex;flex-direction:column;align-items:center;box-sizing:border-box;width:100vw;height:100%;overflow-y:auto;padding:3rem}.cozy-ui-bar-c-modal--2ICub{position:relative;border-radius:.5rem;max-height:100%;max-width:100%;background-color:var(--white);color:var(--charcoalGrey)}.cozy-ui-bar-c-modal--xsmall--35998{width:24rem}.cozy-ui-bar-c-modal--small--3G05m{width:34rem}.cozy-ui-bar-c-modal--medium--39Q8p{width:36rem}.cozy-ui-bar-c-modal--large--NVdKg{width:40rem}.cozy-ui-bar-c-modal--xlarge--2JDmw{width:50rem}.cozy-ui-bar-c-modal--xxlarge--2GW6J{width:60rem}.cozy-ui-bar-c-modal-header--XED91,.cozy-ui-bar-c-modal-header--branded--uEj-8{margin:0 0 1rem;padding:1.687rem 3rem 0 2rem;overflow:visible;min-height:2.5rem}.cozy-ui-bar-c-modal-header--XED91 h2,.cozy-ui-bar-c-modal-header--branded--uEj-8 h2{margin:0;font-weight:700}.cozy-ui-bar-c-modal-header--branded--uEj-8{padding:1rem 3rem}.cozy-ui-bar-c-modal-header--branded--uEj-8 img{display:block;max-height:3.5rem;margin:0 auto}.cozy-ui-bar-c-modal-illu-header--2k0gQ,.cozy-ui-bar-c-modal-illu-header--ghost--3zgoT{display:flex;align-items:center;justify-content:center;margin:0 0 1rem;max-width:100%}.cozy-ui-bar-c-modal-illu-header--2k0gQ>*,.cozy-ui-bar-c-modal-illu-header--ghost--3zgoT>*{max-width:inherit}.cozy-ui-bar-c-modal-illu-header--ghost--3zgoT{position:absolute;left:0;right:0;top:1rem;margin:.5rem 0;opacity:0;max-height:2rem;transition:opacity .15s ease-in,top .15s 50ms ease-in}.cozy-ui-bar-c-modal-illu-header--ghost--3zgoT>*{max-height:inherit}.cozy-ui-bar-c-modal-illu-header--ghost--3zgoT.cozy-ui-bar-is-active--M5uQG{top:0;opacity:1;transition:opacity .15s 50ms ease-in,top .15s ease-in}.cozy-ui-bar-c-modal--small-spacing--2NmIi .cozy-ui-bar-c-modal-header--XED91{padding:1.187rem 3rem 0 1.5rem}.cozy-ui-bar-c-modal--large-spacing--oIddB .cozy-ui-bar-c-modal-header--XED91{padding:2.687rem 3rem 0}.cozy-ui-bar-c-modal-app--1Vluy{display:flex;align-items:center;font-size:1.25rem;color:var(--charcoalGrey)}.cozy-ui-bar-c-app-editor--2Ha3Y{font-weight:400}.cozy-ui-bar-c-modal-app-icon--2Pyc-{height:1.125rem;margin-right:.5rem}.cozy-ui-bar-c-modal-content-fixed--2C_-7{border-bottom:.063rem solid var(--dividerColor);flex:0 0 auto;padding:0 2rem}.cozy-ui-bar-c-modal--small-spacing--2NmIi .cozy-ui-bar-c-modal-content-fixed--2C_-7{padding:0 1.5rem}.cozy-ui-bar-c-modal--large-spacing--oIddB .cozy-ui-bar-c-modal-content-fixed--2C_-7{padding:0 3rem}.cozy-ui-bar-c-modal-content--KVDws{padding:0 2rem}.cozy-ui-bar-c-modal-content--KVDws:last-child{padding-bottom:2rem;border-bottom-right-radius:.5rem;border-bottom-left-radius:.5rem}.cozy-ui-bar-c-modal--small-spacing--2NmIi .cozy-ui-bar-c-modal-content--KVDws{padding:0 1.5rem}.cozy-ui-bar-c-modal--small-spacing--2NmIi .cozy-ui-bar-c-modal-content--KVDws:last-child{padding-bottom:1.5rem}.cozy-ui-bar-c-modal--large-spacing--oIddB .cozy-ui-bar-c-modal-content--KVDws{padding:0 3rem}.cozy-ui-bar-c-modal--large-spacing--oIddB .cozy-ui-bar-c-modal-content--KVDws:last-child{padding-bottom:3rem}.cozy-ui-bar-c-modal-footer--14fzp{padding:1rem 1.25rem 1.25rem}.cozy-ui-bar-c-modal-footer--button--3yPje button{margin-bottom:.25rem}.cozy-ui-bar-c-modal-section--2tQ5k{border-top:.063rem solid var(--dividerColor)}.cozy-ui-bar-c-modal-close--HM_QO{box-sizing:border-box;position:absolute;top:1.5rem;right:1.5rem;margin:0;padding:.5rem;background-color:transparent;border:0;cursor:pointer;display:block;width:2.5rem;height:2.5rem;z-index:1}.cozy-ui-bar-c-modal--small-spacing--2NmIi .cozy-ui-bar-c-modal-close--HM_QO{top:1rem;right:1rem}.cozy-ui-bar-c-modal--closable--2sytJ .cozy-ui-bar-c-modal-header--XED91{padding-right:4.5rem}.cozy-ui-bar-c-modal--large-spacing--oIddB .cozy-ui-bar-c-modal-close--HM_QO{top:2.5rem;right:2.5rem}.cozy-ui-bar-c-modal-close--notitle--2a-O4{top:.375rem;right:.375rem}.cozy-ui-bar-c-modal--overflowHidden--JNfIY{overflow:hidden}.cozy-ui-bar-c-modal-back-button--aTdxE{top:.375rem;left:.375rem;color:var(--coolGrey)}.cozy-ui-bar-c-modal-close--notitle--2a-O4+.cozy-ui-bar-c-modal-content--KVDws{margin-top:3rem}@media(max-width:63.938rem){.u-hide--mob{display:none!important}.u-dn-m{display:none}.u-di-m{display:inline}.u-db-m{display:block}.u-dib-m{display:inline-block}.u-dit-m{display:inline-table}.u-dt-m{display:table}.u-dtc-m{display:table-cell}.u-dt-row-m{display:table-row}.u-dt-row-group-m{display:table-row-group}.u-dt-column-m{display:table-column}.u-dt-column-group-m{display:table-column-group}.u-spacellipsis-m{overflow:hidden;text-overflow:ellipsis;white-space:break-spaces}.u-fz-tiny-m{font-size:.75rem!important;line-height:1.3!important}.u-fz-xsmall-m{font-size:.813rem!important;line-height:1.4!important}.u-fz-small-m{font-size:.875rem!important;line-height:1.4!important}.u-fz-medium-m{font-size:1rem!important;line-height:1.5!important}.u-fz-large-m{font-size:1.125rem!important;line-height:1.5!important}.u-ta-left-m{text-align:left!important}.u-ta-right-m{text-align:right!important}.u-ta-center-m{text-align:center!important}.u-ta-justify-m{text-align:justify!important}.u-fs-normal-m{font-style:normal!important}.u-fs-italic-m{font-style:italic!important}.u-fw-normal-m{font-weight:400}.u-fw-bold-m{font-weight:700}html,body{display:block;height:auto}[role=application]{overflow:visible}}@media(min-width:64rem){.u-hide--tablet{display:none!important}}@media(min-width:48.063rem){.u-hide--desk{display:none!important}}@media(max-width:30rem){.u-dn-t{display:none}.u-di-t{display:inline}.u-db-t{display:block}.u-dib-t{display:inline-block}.u-dit-t{display:inline-table}.u-dt-t{display:table}.u-dtc-t{display:table-cell}.u-dt-row-t{display:table-row}.u-dt-row-group-t{display:table-row-group}.u-dt-column-t{display:table-column}.u-dt-column-group-t{display:table-column-group}.u-spacellipsis-t{overflow:hidden;text-overflow:ellipsis;white-space:break-spaces}.u-fz-tiny-t{font-size:.75rem!important;line-height:1.3!important}.u-fz-xsmall-t{font-size:.813rem!important;line-height:1.4!important}.u-fz-small-t{font-size:.875rem!important;line-height:1.4!important}.u-fz-medium-t{font-size:1rem!important;line-height:1.5!important}.u-fz-large-t{font-size:1.125rem!important;line-height:1.5!important}.u-ta-left-t{text-align:left!important}.u-ta-right-t{text-align:right!important}.u-ta-center-t{text-align:center!important}.u-ta-justify-t{text-align:justify!important}.u-fs-normal-t{font-style:normal!important}.u-fs-italic-t{font-style:italic!important}.u-fw-normal-t{font-weight:400}.u-fw-bold-t{font-weight:700}.cozy-ui-bar-c-modal-wrapper--17kzj{padding:.5rem}.cozy-ui-bar-c-modal-header--XED91,.cozy-ui-bar-c-modal-header--branded--uEj-8{margin-bottom:.5rem;padding:1.187rem 2rem 0 1.5rem}.cozy-ui-bar-c-modal-header--XED91 h2,.cozy-ui-bar-c-modal-header--branded--uEj-8 h2{font-size:1.25rem}.cozy-ui-bar-c-modal--small-spacing--2NmIi .cozy-ui-bar-c-modal-header--XED91{padding:.687rem 2rem 0 1rem}.cozy-ui-bar-c-modal--small-spacing--2NmIi .cozy-ui-bar-c-modal-content-fixed--2C_-7{padding:0 1rem}.cozy-ui-bar-c-modal--large-spacing--oIddB .cozy-ui-bar-c-modal-content-fixed--2C_-7{padding:0 2rem}.cozy-ui-bar-c-modal-content--KVDws{padding:0 1.5rem}.cozy-ui-bar-c-modal-content--KVDws:last-child{padding-bottom:1.5rem}.cozy-ui-bar-c-modal--small-spacing--2NmIi .cozy-ui-bar-c-modal-content--KVDws{padding:0 1rem}.cozy-ui-bar-c-modal--small-spacing--2NmIi .cozy-ui-bar-c-modal-content--KVDws:last-child{padding-bottom:1rem}.cozy-ui-bar-c-modal-close--HM_QO{top:.813rem;right:1rem}.cozy-ui-bar-c-modal--small-spacing--2NmIi .cozy-ui-bar-c-modal-close--HM_QO{top:.313rem;right:.5rem}}@media(max-width:48rem){.u-dn-s{display:none}.u-di-s{display:inline}.u-db-s{display:block}.u-dib-s{display:inline-block}.u-dit-s{display:inline-table}.u-dt-s{display:table}.u-dtc-s{display:table-cell}.u-dt-row-s{display:table-row}.u-dt-row-group-s{display:table-row-group}.u-dt-column-s{display:table-column}.u-dt-column-group-s{display:table-column-group}.u-spacellipsis-s{overflow:hidden;text-overflow:ellipsis;white-space:break-spaces}.u-fz-tiny-s{font-size:.75rem!important;line-height:1.3!important}.u-fz-xsmall-s{font-size:.813rem!important;line-height:1.4!important}.u-fz-small-s{font-size:.875rem!important;line-height:1.4!important}.u-fz-medium-s{font-size:1rem!important;line-height:1.5!important}.u-fz-large-s{font-size:1.125rem!important;line-height:1.5!important}.u-ta-left-s{text-align:left!important}.u-ta-right-s{text-align:right!important}.u-ta-center-s{text-align:center!important}.u-ta-justify-s{text-align:justify!important}.u-fs-normal-s{font-style:normal!important}.u-fs-italic-s{font-style:italic!important}.u-fw-normal-s{font-weight:400}.u-fw-bold-s{font-weight:700}.cozy-ui-bar-c-modal-wrapper--17kzj{justify-content:center;padding:1.5rem}.cozy-ui-bar-c-modal-wrapper--17kzj.cozy-ui-bar-c-modal-wrapper--fullscreen--12m40{padding:0}.cozy-ui-bar-c-modal--2ICub.cozy-ui-bar-c-modal--fullscreen--1k9gf{height:100%;width:100%;border-radius:0;box-sizing:border-box}.cozy-ui-bar-c-modal--large-spacing--oIddB .cozy-ui-bar-c-modal-header--XED91{padding:1.687rem 2rem 0}.cozy-ui-bar-c-modal--large-spacing--oIddB .cozy-ui-bar-c-modal-content--KVDws{padding:0 2rem}.cozy-ui-bar-c-modal--large-spacing--oIddB .cozy-ui-bar-c-modal-content--KVDws:last-child{padding-bottom:2rem}.cozy-ui-bar-c-modal-footer--button--3yPje button{min-width:calc(50% - .5rem)}.cozy-ui-bar-c-modal--large-spacing--oIddB .cozy-ui-bar-c-modal-close--HM_QO{top:1.313rem;right:1.5rem}.cozy-ui-bar-c-modal-back-button--aTdxE{top:0;left:0}}@media(max-width:25rem){.cozy-ui-bar-c-modal--xsmall--35998{width:100%}}@media(max-width:35rem){.cozy-ui-bar-c-modal--small--3G05m{width:100%}}@media(max-width:39rem){.cozy-ui-bar-c-modal--medium--39Q8p{width:100%}}@media(max-width:46rem){.cozy-ui-bar-c-modal--large--NVdKg{width:100%}}@media(max-width:56rem){.cozy-ui-bar-c-modal--xlarge--2JDmw{width:100%}}@media(max-width:66rem){.cozy-ui-bar-c-modal--xxlarge--2GW6J{width:100%}}","",{version:3,sources:["/home/travis/build/cozy/cozy-bar/node_modules/cozy-ui/react/Modal/node_modules/cozy-ui/stylus/settings/palette.styl","/home/travis/build/cozy/cozy-bar/node_modules/cozy-ui/react/Modal/styles.styl","/home/travis/build/cozy/cozy-bar/node_modules/cozy-ui/react/Modal/node_modules/cozy-ui/stylus/generic/animations.styl","/home/travis/build/cozy/cozy-bar/node_modules/cozy-ui/react/Modal/node_modules/cozy-ui/stylus/utilities/display.styl","/home/travis/build/cozy/cozy-bar/node_modules/cozy-ui/react/Modal/node_modules/cozy-ui/stylus/tools/mixins.styl","/home/travis/build/cozy/cozy-bar/node_modules/cozy-ui/react/Modal/node_modules/cozy-ui/stylus/utilities/text.styl","/home/travis/build/cozy/cozy-bar/node_modules/cozy-ui/react/Modal/node_modules/cozy-ui/stylus/settings/z-index.styl","/home/travis/build/cozy/cozy-bar/node_modules/cozy-ui/react/Modal/node_modules/cozy-ui/stylus/settings/fontstack.styl","/home/travis/build/cozy/cozy-bar/node_modules/cozy-ui/react/Modal/node_modules/cozy-ui/stylus/elements/defaults.styl","/home/travis/build/cozy/cozy-bar/node_modules/cozy-ui/react/Modal/node_modules/cozy-ui/stylus/components/forms.styl","/home/travis/build/cozy/cozy-bar/node_modules/cozy-ui/react/Modal/node_modules/cozy-ui/stylus/objects/layouts.styl","/home/travis/build/cozy/cozy-bar/node_modules/cozy-ui/react/Modal/node_modules/cozy-ui/stylus/components/modals.styl","/home/travis/build/cozy/cozy-bar/node_modules/cozy-ui/react/Modal/node_modules/cozy-ui/react/Modal/styles.styl","/home/travis/build/cozy/cozy-bar/node_modules/cozy-ui/react/Modal/node_modules/cozy-ui/stylus/settings/breakpoints.styl"],names:[],mappings:"AAwCA,KAeI,aACA,mBACA,iBACA,mBACA,oBACA,uBACA,aACA,4BAWA,iBACA,qBACA,sBAWA,qBACA,kBACA,oBASA,gBAaA,kBACA,mBACA,kBACA,sBACA,eC3CJ,CD0DA,2CAYI,uBACA,2BACA,4BACA,+BAYA,yBACA,6BACA,8BACA,iCAWA,iCACA,4BACA,iCAYA,2BACA,6BACA,gCACA,kCAaA,mCAYA,uBACA,uBAEA,qBACA,yBACA,0BACA,6BACA,0BAMA,mCAEA,gCACA,0BACA,0CAEA,8DACA,gEACA,6DACA,kDAEA,gDACA,kDACA,mDACA,8DAEA,mCACA,8CACA,2CACA,4CAEA,gCAEA,yBACA,oCACA,uCAEA,oCAEA,gCACA,6BAEA,gCACA,sCACA,wCAEA,uBACA,8CAEA,yBACA,kDAEA,sBACA,2CC3EJ,CCrLA,2CACI,KACI,sBD+LN,CC9LE,GACI,wBDgMN,CACF,CCrMA,mCACI,KACI,sBD+MN,CC9ME,GACI,wBDgNN,CACF,CC/MA,4CACI,QACI,+BD+NN,CC7NE,QACI,8BD+NN,CC7NE,YACI,+BD+NN,CC7NE,QACI,8BD+NN,CACF,CC3OA,oCACI,QACI,+BD2PN,CCzPE,QACI,8BD2PN,CCzPE,YACI,+BD2PN,CCzPE,QACI,8BD2PN,CACF,CE/PA,kBAXI,4BACA,mBACA,wBACA,yBACA,0BACA,oBACA,6BACA,qDACA,uCAAA,8BF6QJ,CElQA,QCoCI,uBACA,2BHiOJ,CGtKgB,MDzEZ,YFiQJ,CGxLgB,MDtEZ,cFiQJ,CG3LgB,MDnEZ,aFiQJ,CG9LgB,ODhEZ,oBFiQJ,CGjMgB,OD7DZ,oBFiQJ,CGpMgB,MD1DZ,aFiQJ,CGvMgB,ODvDZ,kBFiQJ,CG1MgB,UDpDZ,iBFiQJ,CG7MgB,gBDjDZ,uBFiQJ,CGhNgB,aD9CZ,oBFiQJ,CGnNgB,mBD3CZ,0BFiQJ,CI9UI,SACI,4BJybR,CI1bI,gBACI,mCJ4bR,CI7bI,YACI,+BJ+bR,CIhcI,UACI,6BJkcR,CIncI,aACI,gCJqcR,CItcI,kBACI,uBJwcR,CIzcI,cACI,uBJ2cR,CI5cI,WACI,8BJ8cR,CI/cI,YACI,+BJidR,CIldI,SACI,uBJodR,CIrdI,eACI,uBJudR,CIxdI,0BACI,6CJ0dR,CI3dI,gBACI,mCJ6dR,CI9dI,qBACI,wCJgeR,CIjeI,4BACI,+CJmeR,CIpeI,SACI,iCJseR,CIveI,mBACI,sCJyeR,CI1eI,WACI,mCJ4eR,CI7eI,WACI,mCJ+eR,CIhfI,QACI,gCJkfR,CInfI,cACI,uBJqfR,CItfI,SACI,4BJwfR,CInfA,aACI,qBJqfJ,CInfA,YACI,mBACA,gBACA,sBJqfJ,CGzYgB,gBCzGZ,gBACA,uBACA,wBJqfJ,CI1eA,eACI,aACA,gBJigBJ,CI/fI,iBACI,qBACA,cACA,gBACA,eJigBR,CI/fI,4BACI,sBJigBR,CI/fI,2BACI,mBACA,aJigBR,CI/foC,iCAC5B,4BACI,qBJigBV,CACF,CI/fI,aACI,iCACA,4DAAA,mDJigBR,CI/fI,2DAII,sCJigBR,CG7cY,WChDR,uBJggBJ,CGhdY,aC7CR,yBJggBJ,CGndY,YC1CR,yBJggBJ,CGtdY,aCvCR,yBJggBJ,CGzdY,YCpCR,yBJggBJ,CG5dY,aCjCR,yBJggBJ,CGrdgB,WC5BZ,2BArBA,yBJ0gBJ,CGzdgB,aCxBZ,4BAtBA,yBJ2gBJ,CG7dgB,YCpBZ,4BA1BA,yBJ+gBJ,CGjegB,aChBZ,yBA3BA,yBJghBJ,CGregB,YCZZ,6BA/BA,yBJohBJ,CGzegB,WCKZ,yBJyiBJ,CG9iBgB,YCQZ,0BJyiBJ,CGjjBgB,aCWZ,2BJyiBJ,CGpjBgB,cCcZ,4BJyiBJ,CGvjBgB,aC6BZ,2BJukBJ,CGpmBgB,aCgCZ,2BJukBJ,CGvmBgB,aC4CZ,eJslBJ,CGloBgB,WC+CZ,eJslBJ,CKjtBA,KACI,kBACA,eACA,eACA,wBACA,gBACA,gBACA,sBACA,oBACA,oBACA,2BACA,mBACA,kBACA,iBL6uBJ,CMjyBA,KACI,6BNmyBJ,CMjyBA,oEACI,8BNwyBJ,COpzBA,KACI,cPszBJ,COpzBA,KACI,cACA,kCACA,kCPszBJ,CO1yBA,KACE,WP4yBF,CO1yBA,KACE,aACA,sBACA,oBACA,YACA,YACA,QP4yBF,COpyBA,mBACI,aACA,eACA,cACA,kBACA,eP6yBJ,COvyBA,UAEI,8BACA,kBP8yBJ,CQ7rBA,yCAEI,YR+rBJ,CQ7rBI,gKLvGA,uBACA,2BH0yBJ,CQhsBI,qDACI,kBACA,qBACA,WACA,YACA,oBACA,cRmsBR,CQjsBQ,oIAEI,WACA,kBACA,OACA,MACA,sBACA,WACA,WRqsBZ,CQnsBQ,mEACI,oDRssBZ,CQpsBQ,iEACI,wBACA,qCRusBZ,CO/0BI,gCACI,kBACA,qCACA,uCPq1BR,COn1BI,0DACI,iFPq1BR,CO90BQ,qEAEI,qBPg1BZ,CO90BQ,mCACI,8BACA,4CPg1BZ,CO90BY,yCACI,gDPg1BhB,CO90BQ,kCACI,ySACA,uBPg1BZ,CO90BI,sDACQ,yPACA,uBPg1BZ,CO50BY,gEACI,6CP80BhB,CO50BY,+DACI,UACA,kBP80BhB,CO50BQ,qEACI,UACA,kBP80BZ,CSr5BA,4BACI,aACA,wBACA,mBTu5BJ,CSr5BA,oCAEI,6VAIA,4BACA,8BACA,0DACA,gDACA,4BACA,cACA,gCTm5BJ,CSj5BA,kHACI,aTq5BJ,CUx6BA,sCACI,kBACA,UV86BJ,CU56BA,oCACI,eACA,MACA,OACA,aACA,sBACA,mBACA,sBACA,YACA,YACA,gBACA,YV86BJ,CUr6BA,4BAEI,kBACA,oBACA,gBACA,eACA,8BACA,yBVi7BJ,CU96BI,oCACI,WVg7BR,CUj7BI,mCACI,WVw7BR,CUz7BI,oCACI,WVg8BR,CUj8BI,mCACI,WVw8BR,CUz8BI,oCACI,WVg9BR,CUj9BI,qCACI,WVw9BR,CUv8BA,+EAEI,gBACA,6BACA,iBACA,iBV29BJ,CUz9BI,qFACI,SACA,eV49BR,CUn9BA,4CAEI,iBV+9BJ,CU79BI,gDACI,cACA,kBACA,aV+9BR,CU79BA,uFACI,aACA,mBACA,uBACA,gBACA,cVg+BJ,CU99BI,2FACI,iBVi+BR,CU/9BA,+CAEI,kBACA,OACA,QACA,SACA,eACA,UACA,gBACA,qDVg+BJ,CU99BI,iDACI,kBVg+BR,CU99BA,4EACI,MACA,UACA,qDVg+BJ,CU99BA,8EACI,8BVg+BJ,CU39BA,8EACI,uBVk+BJ,CU79BA,gCACI,aACA,mBACA,kBACA,yBVo+BJ,CUl+BA,iCACI,eVo+BJ,CUl+BA,qCACI,gBACA,kBVo+BJ,CUl+BA,0CACI,gDACA,cACA,cVo+BJ,CUl+BA,qFACI,gBVo+BJ,CU/9BA,qFACI,cVs+BJ,CUj+BA,oCAEI,cVu+BJ,CUr+BI,+CACI,oBACA,iCACA,+BVu+BR,CU/9BA,+EACI,gBVy+BJ,CUv+BI,0FACI,qBVy+BR,CUj+BA,+EACI,cV2+BJ,CUz+BI,0FACI,mBV2+BR,CUn+BA,mCAEI,4BV4+BJ,CUz+BI,kDACI,oBV2+BR,CUt+BA,oCACI,4CV6+BJ,CUz+BA,kCACI,sBACA,kBACA,WACA,aACA,SACA,cACA,6BACA,SACA,eACA,cACA,aACA,cACA,SV2+BJ,CUr+BA,6EACI,SACA,UV6+BJ,CUv+BA,yEACI,oBV++BJ,CU5+BA,6EACI,WACA,YV8+BJ,CUx+BA,2CACI,YACA,aVg/BJ,CU9+BA,4CACI,eVg/BJ,CU9+BA,wCACI,YACA,aACA,qBVg/BJ,CWpqCA,+EACI,eX4qCJ,CY3qCqE,4BAAA,aV1E7D,sBFqQN,CGrKkB,QD9EhB,YFyWF,CG3RkB,QD3EhB,cFyWF,CG9RkB,QDxEhB,aFyWF,CGjSkB,SDrEhB,oBFyWF,CGpSkB,SDlEhB,oBFyWF,CGvSkB,QD/DhB,aFyWF,CG1SkB,SD5DhB,kBFyWF,CG7SkB,YDzDhB,iBFyWF,CGhTkB,kBDtDhB,uBFyWF,CGnTkB,eDnDhB,oBFyWF,CGtTkB,qBDhDhB,0BFyWF,CGzTkB,kBC9GhB,gBACA,uBACA,wBJygBF,CG7ZkB,aCjChB,2BArBA,yBJ2kBF,CGrhBkB,eC7BhB,4BAtBA,yBJ4kBF,CGzhBkB,cCzBhB,4BA1BA,yBJglBF,CG7hBkB,eCrBhB,yBA3BA,yBJilBF,CGjiBkB,cCjBhB,6BA/BA,yBJqlBF,CGriBkB,aCAhB,yBJklBF,CGllBkB,cCGhB,0BJklBF,CGrlBkB,eCMhB,2BJklBF,CGxlBkB,gBCShB,4BJklBF,CG3lBkB,eCwBhB,2BJ8lBF,CGtnBkB,eC2BhB,2BJ8lBF,CGznBkB,eCuChB,eJ6mBF,CGppBkB,aC0ChB,eJ6mBF,CY7qBmE,UL1E7D,cACA,WP4yBN,CYnuBmE,mBL/D7D,gBP8yBN,CAnjBF,CY/DyD,wBAAA,gBVnMjD,sBFsQN,CACF,CYjFwD,4BAAA,cVlLhD,sBFuQN,CACF,CGlLqD,wBAEjC,QD9EhB,YFmSF,CGrNkB,QD3EhB,cFmSF,CGxNkB,QDxEhB,aFmSF,CG3NkB,SDrEhB,oBFmSF,CG9NkB,SDlEhB,oBFmSF,CGjOkB,QD/DhB,aFmSF,CGpOkB,SD5DhB,kBFmSF,CGvOkB,YDzDhB,iBFmSF,CG1OkB,kBDtDhB,uBFmSF,CG7OkB,eDnDhB,oBFmSF,CGhPkB,qBDhDhB,0BFmSF,CGnPkB,kBC9GhB,gBACA,uBACA,wBJ2fF,CG/YkB,aCjChB,2BArBA,yBJ+hBF,CGzekB,eC7BhB,4BAtBA,yBJgiBF,CG7ekB,cCzBhB,4BA1BA,yBJoiBF,CGjfkB,eCrBhB,yBA3BA,yBJqiBF,CGrfkB,cCjBhB,6BA/BA,yBJyiBF,CGzfkB,aCAhB,yBJsjBF,CGtjBkB,cCGhB,0BJsjBF,CGzjBkB,eCMhB,2BJsjBF,CG5jBkB,gBCShB,4BJsjBF,CG/jBkB,eCwBhB,2BJ8kBF,CGtmBkB,eC2BhB,2BJ8kBF,CGzmBkB,eCuChB,eJ6lBF,CGpoBkB,aC0ChB,eJ6lBF,CYzrBiE,oCF1B3D,aVi7BN,CYv5BiE,+EFgB3D,oBACA,8BV89BN,CU59BM,qFACI,iBV+9BV,CYn/BiE,8EFgE3D,2BVi+BN,CYjiCiE,qFF8F3D,cVq+BN,CYnkCiE,qFFoG3D,cVu+BN,CY3kCiE,oCFgH3D,gBVw+BN,CUt+BM,+CACI,qBVw+BV,CY3lCiE,+EF4H3D,cV0+BN,CUx+BM,0FACI,mBV0+BV,CYzmCiE,kCF6K3D,YACA,UV4+BN,CY1pCiE,6EFqL3D,YACA,WV8+BN,CA93BF,CGtPqD,wBAEjC,QD9EhB,YFsUF,CGxPkB,QD3EhB,cFsUF,CG3PkB,QDxEhB,aFsUF,CG9PkB,SDrEhB,oBFsUF,CGjQkB,SDlEhB,oBFsUF,CGpQkB,QD/DhB,aFsUF,CGvQkB,SD5DhB,kBFsUF,CG1QkB,YDzDhB,iBFsUF,CG7QkB,kBDtDhB,uBFsUF,CGhRkB,eDnDhB,oBFsUF,CGnRkB,qBDhDhB,0BFsUF,CGtRkB,kBC9GhB,gBACA,uBACA,wBJkgBF,CGtZkB,aCjChB,2BArBA,yBJqjBF,CG/fkB,eC7BhB,4BAtBA,yBJsjBF,CGngBkB,cCzBhB,4BA1BA,yBJ0jBF,CGvgBkB,eCrBhB,yBA3BA,yBJ2jBF,CG3gBkB,cCjBhB,6BA/BA,yBJ+jBF,CG/gBkB,aCAhB,yBJokBF,CGpkBkB,cCGhB,0BJokBF,CGvkBkB,eCMhB,2BJokBF,CG1kBkB,gBCShB,4BJokBF,CG7kBkB,eCwBhB,2BJslBF,CG9mBkB,eC2BhB,2BJslBF,CGjnBkB,eCuChB,eJqmBF,CG5oBkB,aC0ChB,eJqmBF,CYnrBkE,oCF5C5D,uBACA,cV+6BN,CYp4BkE,mFFnB5D,SVy9BN,CYt8BkE,mEFf5D,YACA,WACA,gBACA,qBV09BN,CY98BkE,8EFwD5D,uBVm+BN,CY3hCkE,+EF0H5D,cV4+BN,CU1+BM,0FACI,mBV4+BV,CYzmCkE,kDFwIxD,2BV4+BV,CYpnCkE,6EFmL5D,aACA,YV++BN,CYnqCkE,wCFmM5D,MACA,MVi/BN,CA13BF,CUnVqC,wBAAA,oCACzB,UVg7BV,CACF,CUl7BqC,wBAAA,mCACzB,UVw7BV,CACF,CU17BqC,wBAAA,oCACzB,UVg8BV,CACF,CUl8BqC,wBAAA,mCACzB,UVw8BV,CACF,CU18BqC,wBAAA,oCACzB,UVg9BV,CACF,CUl9BqC,wBAAA,qCACzB,UVw9BV,CACF,CAAA",file:"styles.styl",sourcesContent:["@require '../tools/mixins'\n\n$errorColor=#F52D2D\n$errorBackground=#FFF2F2\n\n$successColor=#35CE68\n$warningColor=#FF962F\n$infoColor=#34373F\n\n// @stylint off\n/*------------------------------------*\\\n Palette\n =====\n\\*------------------------------------*/\n/*\n Settings\n\n Weight: -10\n\n Styleguide Settings\n*/\n\n/*\n Colors\n\n Colors used in the user interface.\n\n ℹ️ In general, you are advised to use [theme colors](#kssref-settings-theme) when\n building your components: this will ensure your components react correctly when\n changing the theme.\n\n If you need to access an absolute color that is not semantic, you can use\n\n ```\n import palette from 'cozy-ui/transpiled/react/palette'\n <div style={{ backgroundColor: palette.melon }} />\n ```\n\n Styleguide Settings.colors\n*/\nhtml\n /*\n Grey\n\n Stylus: white - #FFFFFF, CSS: var(--white)\n Stylus: paleGrey - #F5F6F7, CSS: var(--paleGrey)\n Stylus: silver - #D6D8Da, CSS: var(--silver)\n Stylus: coolGrey - #95999D, CSS: var(--coolGrey)\n Stylus: slateGrey - #5D6165, CSS: var(--slateGrey)\n Stylus: charcoalGrey - #32363F, CSS: var(--charcoalGrey)\n Stylus: black - #000000, CSS: var(--black)\n\n\n Styleguide Settings.colors.grey\n */\n --white #FFFFFF\n --paleGrey #F5F6F7\n --silver #D6D8Da\n --coolGrey #95999D\n --slateGrey #5D6165\n --charcoalGrey #32363F\n --black #000000\n --overlay rgba(50, 54, 63, .5)\n\n /*\n Blue\n\n Stylus: zircon - #F5FAFF, CSS: var(--zircon)\n Stylus: dodgerBlue - #297EF2, CSS: var(--dodgerBlue)\n Stylus: scienceBlue - #0B61D6, CSS: var(--scienceBlue)\n\n Styleguide Settings.colors.blue\n */\n --zircon #F5FAFF\n --dodgerBlue #297EF2\n --scienceBlue #0B61D6\n\n /*\n Green\n\n Stylus: weirdGreen - #40DE8E, CSS: var(--weirdGreen)\n Stylus: emerald - #35CE68, CSS: var(--emerald)\n Stylus: malachite - #08b442, CSS: var(--malachite)\n\n Styleguide Settings.colors.green\n */\n --weirdGreen #40DE8E\n --emerald #35CE68\n --malachite #08b442\n\n /*\n Orange\n\n Stylus: mango - #FF962F, CSS: var(--mango)\n\n Styleguide Settings.colors.orange\n */\n --mango #FF962F\n\n /*\n Red\n\n Stylus: chablis - #FFF2F2, CSS: var(--chablis)\n Stylus: yourPink - #FDCBCB, CSS: var(--yourPink)\n Stylus: fuchsia - #FC4C83, CSS: var(--fuchsia)\n Stylus: pomegranate - #F52D2D, CSS: var(--pomegranate)\n Stylus: monza - #DD0505, CSS: var(--monza)\n\n Styleguide Settings.colors.red\n */\n --chablis #FFF2F2\n --yourPink #FDCBCB\n --fuchsia #FC4C83\n --pomegranate #F52D2D\n --monza #DD0505\n\n/*\n Theme\n\n Semantic colors suitable for theming. We encourage users of cozy-ui to use semantic colors\n instead of absolute colors to facilitate theming.\n\n We try to use a naming schema that is close to what is use in [Material-UI React's theming](https://material-ui.com/customization/palette/#palette-colors).\n It is possible that we have some discrepancies. If you see something that seems out\n of the ordinary and where you think we could reduce the difference with MUI, please\n do not hesitate to [open an issue](https://github.com/cozy/cozy-ui/issues/new).\n\n Styleguide Settings.theme\n*/\nhtml, .CozyTheme--normal\n /*\n Primary\n\n Stylus: primaryColor - #297EF2, CSS: var(--primaryColor)\n Stylus: primaryColorDark - #0B61D6, CSS: var(--primaryColorDark)\n Stylus: primaryColorLight - #5C9DF5, CSS: var(--primaryColorLight)\n Stylus: primaryColorLightest - #9FC4FB, CSS: var(--primaryColorLightest)\n Stylus: primaryContrastTextColor - #FFFFFF, CSS: var(--primaryContrastTextColor)\n\n Styleguide Settings.theme.primary\n */\n --primaryColor #297EF2\n --primaryColorDark #0B61D6\n --primaryColorLight #5C9DF5\n --primaryColorLightest #9FC4FB\n\n /*\n Secondary\n\n Stylus: secondaryColor - #fd7461, CSS: var(--secondaryColor)\n Stylus: secondaryColorDark - #E3503B, CSS: var(--secondaryColorDark)\n Stylus: secondaryColorLight - #ffdeda, CSS: var(--secondaryColorLight)\n Stylus: secondaryColorLightest - #FECDC6, CSS: var(--secondaryColorLightest)\n\n Styleguide Settings.theme.secondary\n */\n --secondaryColor #fd7461\n --secondaryColorDark #E3503B\n --secondaryColorLight #ffdeda // lighten(dodgerBlue, 24)\n --secondaryColorLightest #FECDC6\n\n /*\n Background colors\n\n Stylus: primaryBackgroundLight - #F5FAFF, CSS: var(--primaryBackgroundLight)\n Stylus: paperBackgroundColor - #FFF, CSS: var(--paperBackgroundColor)\n Stylus: defaultBackgroundColor - #F5F6F7, CSS: var(--defaultBackgroundColor)\n\n Styleguide Settings.theme.background\n */\n --primaryBackgroundLight: #F5FAFF\n --paperBackgroundColor: #FFF\n --defaultBackgroundColor: #F5F6F7 // paleGrey\n\n /*\n Text colors\n\n Stylus: primaryTextColor - #32363F, CSS: var(--primaryTextColor)\n Stylus: secondaryTextColor - #95999D, CSS: var(--secondaryTextColor)\n Stylus: primaryContrastTextColor - #FFF, CSS: var(--primaryContrastTextColor)\n Stylus: secondaryContrastTextColor - #FFF, CSS: var(--secondaryContrastTextColor)\n\n Styleguide Settings.theme.text\n */\n --primaryTextColor #32363F\n --secondaryTextColor #95999D\n --primaryContrastTextColor #FFF\n --secondaryContrastTextColor #FFF\n\n\n /*\n Components colors\n\n Be careful to use the semantic variable, not the hexa color.\n In this case the real color is `#1D212A1F`, and becomes `#E3E4E5` on a white background.\n\n Stylus: dividerColor - #E3E4E5, CSS: var(--dividerColor)\n\n Styleguide Settings.theme.components\n */\n --dividerColor: #1D212A1F // grey[900] with 12% opacity\n\n /*\n Intention colors\n\n Stylus: successColor - #35CE68, CSS: var(--successColor)\n Stylus: warningColor - #FF962F, CSS: var(--warningColor)\n Stylus: errorColor - #F52D2D, CSS: var(--errorColor)\n Stylus: infoColor - #34373F, CSS: var(--infoColor)\n\n Styleguide Settings.theme.intention\n */\n --successColor: $successColor\n --warningColor: $warningColor\n\n --errorColor: $errorColor\n --errorColorDark: darken($errorColor, 24)\n --errorColorLight: lighten($errorColor, 30)\n --errorColorLightest: lighten($errorColor, 38)\n --errorBackground: $errorBackground\n\n /*\n The CSS variables below are historic and we should strive not to\n use them. Prefer to use directly semantic colors above.\n */\n --spinnerColor var(--primaryColor)\n\n --linkColor var(--primaryColor)\n --linkTextDecoration none\n --linkColorActive var(--primaryColorDark)\n\n --invertedTabsActiveTextColor var(--primaryContrastTextColor)\n --invertedTabsInactiveTextColor var(--primaryContrastTextColor)\n --invertedTabsIndicatorColor var(--primaryContrastTextColor)\n --invertedTabsBackgroundColor var(--primaryColor)\n\n --regularButtonPrimaryColor: var(--primaryColor)\n --regularButtonSecondaryColor: var(--primaryColor)\n --regularButtonActiveColor: var(--primaryColorDark)\n --regularButtonConstrastColor: var(--primaryContrastTextColor)\n\n --secondaryButtonPrimaryColor: #FFF\n --secondaryButtonSecondaryColor: var(--silver)\n --secondaryButtonActiveColor: var(--silver)\n --secondaryButtonContrastColor: var(--black)\n\n --dividerColor2: var(--coolGrey)\n\n --iconColor: currentColor\n --textIconColor: var(--charcoalGrey)\n --actionMenuIconColor: var(--slateGrey)\n\n --neutralBackground: var(--paleGrey)\n\n --buttonTextTransform uppercase\n --buttonBorderRadius rem(2)\n\n --navTextColor var(--slateGrey)\n --navTextActiveColor var(--slateGrey)\n --navTextHoverColor var(--charcoalGrey)\n\n --alertErrorColor #fff\n --alertErrorBackgroundColor var(--errorColor)\n\n --alertSuccessColor #fff\n --alertSuccessBackgroundColor var(--successColor)\n\n --alertInfoColor #fff\n --alertInfoBackgroundColor var(--slateGrey)\n// @stylint on\n","html {\n/*\n Grey\n\n Stylus: white - #FFFFFF, CSS: var(--white)\n Stylus: paleGrey - #F5F6F7, CSS: var(--paleGrey)\n Stylus: silver - #D6D8Da, CSS: var(--silver)\n Stylus: coolGrey - #95999D, CSS: var(--coolGrey)\n Stylus: slateGrey - #5D6165, CSS: var(--slateGrey)\n Stylus: charcoalGrey - #32363F, CSS: var(--charcoalGrey)\n Stylus: black - #000000, CSS: var(--black)\n\n\n Styleguide Settings.colors.grey\n */\n --white: #fff;\n --paleGrey: #f5f6f7;\n --silver: #d6d8da;\n --coolGrey: #95999d;\n --slateGrey: #5d6165;\n --charcoalGrey: #32363f;\n --black: #000;\n --overlay: rgba(50,54,63,0.5);\n/*\n Blue\n\n Stylus: zircon - #F5FAFF, CSS: var(--zircon)\n Stylus: dodgerBlue - #297EF2, CSS: var(--dodgerBlue)\n Stylus: scienceBlue - #0B61D6, CSS: var(--scienceBlue)\n\n Styleguide Settings.colors.blue\n */\n --zircon: #f5faff;\n --dodgerBlue: #297ef2;\n --scienceBlue: #0b61d6;\n/*\n Green\n\n Stylus: weirdGreen - #40DE8E, CSS: var(--weirdGreen)\n Stylus: emerald - #35CE68, CSS: var(--emerald)\n Stylus: malachite - #08b442, CSS: var(--malachite)\n\n Styleguide Settings.colors.green\n */\n --weirdGreen: #40de8e;\n --emerald: #35ce68;\n --malachite: #08b442;\n/*\n Orange\n\n Stylus: mango - #FF962F, CSS: var(--mango)\n\n Styleguide Settings.colors.orange\n */\n --mango: #ff962f;\n/*\n Red\n\n Stylus: chablis - #FFF2F2, CSS: var(--chablis)\n Stylus: yourPink - #FDCBCB, CSS: var(--yourPink)\n Stylus: fuchsia - #FC4C83, CSS: var(--fuchsia)\n Stylus: pomegranate - #F52D2D, CSS: var(--pomegranate)\n Stylus: monza - #DD0505, CSS: var(--monza)\n\n Styleguide Settings.colors.red\n */\n --chablis: #fff2f2;\n --yourPink: #fdcbcb;\n --fuchsia: #fc4c83;\n --pomegranate: #f52d2d;\n --monza: #dd0505;\n}\nhtml,\n.CozyTheme--normal {\n/*\n Primary\n\n Stylus: primaryColor - #297EF2, CSS: var(--primaryColor)\n Stylus: primaryColorDark - #0B61D6, CSS: var(--primaryColorDark)\n Stylus: primaryColorLight - #5C9DF5, CSS: var(--primaryColorLight)\n Stylus: primaryColorLightest - #9FC4FB, CSS: var(--primaryColorLightest)\n Stylus: primaryContrastTextColor - #FFFFFF, CSS: var(--primaryContrastTextColor)\n\n Styleguide Settings.theme.primary\n */\n --primaryColor: #297ef2;\n --primaryColorDark: #0b61d6;\n --primaryColorLight: #5c9df5;\n --primaryColorLightest: #9fc4fb;\n/*\n Secondary\n\n Stylus: secondaryColor - #fd7461, CSS: var(--secondaryColor)\n Stylus: secondaryColorDark - #E3503B, CSS: var(--secondaryColorDark)\n Stylus: secondaryColorLight - #ffdeda, CSS: var(--secondaryColorLight)\n Stylus: secondaryColorLightest - #FECDC6, CSS: var(--secondaryColorLightest)\n\n Styleguide Settings.theme.secondary\n */\n --secondaryColor: #fd7461;\n --secondaryColorDark: #e3503b;\n --secondaryColorLight: #ffdeda;\n --secondaryColorLightest: #fecdc6;\n/*\n Background colors\n\n Stylus: primaryBackgroundLight - #F5FAFF, CSS: var(--primaryBackgroundLight)\n Stylus: paperBackgroundColor - #FFF, CSS: var(--paperBackgroundColor)\n Stylus: defaultBackgroundColor - #F5F6F7, CSS: var(--defaultBackgroundColor)\n\n Styleguide Settings.theme.background\n */\n --primaryBackgroundLight: #f5faff;\n --paperBackgroundColor: #fff;\n --defaultBackgroundColor: #f5f6f7;\n/*\n Text colors\n\n Stylus: primaryTextColor - #32363F, CSS: var(--primaryTextColor)\n Stylus: secondaryTextColor - #95999D, CSS: var(--secondaryTextColor)\n Stylus: primaryContrastTextColor - #FFF, CSS: var(--primaryContrastTextColor)\n Stylus: secondaryContrastTextColor - #FFF, CSS: var(--secondaryContrastTextColor)\n\n Styleguide Settings.theme.text\n */\n --primaryTextColor: #32363f;\n --secondaryTextColor: #95999d;\n --primaryContrastTextColor: #fff;\n --secondaryContrastTextColor: #fff;\n/*\n Components colors\n\n Be careful to use the semantic variable, not the hexa color.\n In this case the real color is `#1D212A1F`, and becomes `#E3E4E5` on a white background.\n\n Stylus: dividerColor - #E3E4E5, CSS: var(--dividerColor)\n\n Styleguide Settings.theme.components\n */\n --dividerColor: rgba(29,33,42,0.122);\n/*\n Intention colors\n\n Stylus: successColor - #35CE68, CSS: var(--successColor)\n Stylus: warningColor - #FF962F, CSS: var(--warningColor)\n Stylus: errorColor - #F52D2D, CSS: var(--errorColor)\n Stylus: infoColor - #34373F, CSS: var(--infoColor)\n\n Styleguide Settings.theme.intention\n */\n --successColor: #35ce68;\n --warningColor: #ff962f;\n --errorColor: #f52d2d;\n --errorColorDark: #a00808;\n --errorColorLight: #fcbfbf;\n --errorColorLightest: #fee6e6;\n --errorBackground: #fff2f2;\n/*\n The CSS variables below are historic and we should strive not to\n use them. Prefer to use directly semantic colors above.\n */\n --spinnerColor: var(--primaryColor);\n --linkColor: var(--primaryColor);\n --linkTextDecoration: none;\n --linkColorActive: var(--primaryColorDark);\n --invertedTabsActiveTextColor: var(--primaryContrastTextColor);\n --invertedTabsInactiveTextColor: var(--primaryContrastTextColor);\n --invertedTabsIndicatorColor: var(--primaryContrastTextColor);\n --invertedTabsBackgroundColor: var(--primaryColor);\n --regularButtonPrimaryColor: var(--primaryColor);\n --regularButtonSecondaryColor: var(--primaryColor);\n --regularButtonActiveColor: var(--primaryColorDark);\n --regularButtonConstrastColor: var(--primaryContrastTextColor);\n --secondaryButtonPrimaryColor: #fff;\n --secondaryButtonSecondaryColor: var(--silver);\n --secondaryButtonActiveColor: var(--silver);\n --secondaryButtonContrastColor: var(--black);\n --dividerColor2: var(--coolGrey);\n --iconColor: currentColor;\n --textIconColor: var(--charcoalGrey);\n --actionMenuIconColor: var(--slateGrey);\n --neutralBackground: var(--paleGrey);\n --buttonTextTransform: uppercase;\n --buttonBorderRadius: 0.125rem;\n --navTextColor: var(--slateGrey);\n --navTextActiveColor: var(--slateGrey);\n --navTextHoverColor: var(--charcoalGrey);\n --alertErrorColor: #fff;\n --alertErrorBackgroundColor: var(--errorColor);\n --alertSuccessColor: #fff;\n --alertSuccessBackgroundColor: var(--successColor);\n --alertInfoColor: #fff;\n --alertInfoBackgroundColor: var(--slateGrey);\n}\n@-moz-keyframes spin {\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(359deg);\n }\n}\n@-webkit-keyframes spin {\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(359deg);\n }\n}\n@-o-keyframes spin {\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(359deg);\n }\n}\n@keyframes spin {\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(359deg);\n }\n}\n@-moz-keyframes shake {\n 10%, 90% {\n transform: translate3d(-1px, 0, 0);\n }\n 20%, 80% {\n transform: translate3d(2px, 0, 0);\n }\n 30%, 50%, 70% {\n transform: translate3d(-4px, 0, 0);\n }\n 40%, 60% {\n transform: translate3d(4px, 0, 0);\n }\n}\n@-webkit-keyframes shake {\n 10%, 90% {\n transform: translate3d(-1px, 0, 0);\n }\n 20%, 80% {\n transform: translate3d(2px, 0, 0);\n }\n 30%, 50%, 70% {\n transform: translate3d(-4px, 0, 0);\n }\n 40%, 60% {\n transform: translate3d(4px, 0, 0);\n }\n}\n@-o-keyframes shake {\n 10%, 90% {\n transform: translate3d(-1px, 0, 0);\n }\n 20%, 80% {\n transform: translate3d(2px, 0, 0);\n }\n 30%, 50%, 70% {\n transform: translate3d(-4px, 0, 0);\n }\n 40%, 60% {\n transform: translate3d(4px, 0, 0);\n }\n}\n@keyframes shake {\n 10%, 90% {\n transform: translate3d(-1px, 0, 0);\n }\n 20%, 80% {\n transform: translate3d(2px, 0, 0);\n }\n 30%, 50%, 70% {\n transform: translate3d(-4px, 0, 0);\n }\n 40%, 60% {\n transform: translate3d(4px, 0, 0);\n }\n}\n:global(.u-visuallyhidden) {\n position: absolute !important;\n border: 0 !important;\n width: 0.063rem !important;\n height: 0.063rem !important;\n overflow: hidden !important;\n padding: 0 !important;\n white-space: nowrap !important;\n clip: rect(0.063rem, 0.063rem, 0.063rem, 0.063rem) !important;\n clip-path: inset(50%) !important;\n}\n:global(.u-hide) {\n display: none !important;\n visibility: hidden !important;\n}\n@media (max-width: 63.938rem) {\n :global(.u-hide--mob) {\n display: none !important;\n }\n}\n@media (min-width: 64rem) {\n :global(.u-hide--tablet) {\n display: none !important;\n }\n}\n@media (min-width: 48.063rem) {\n :global(.u-hide--desk) {\n display: none !important;\n }\n}\n:global(.u-dn) {\n display: none;\n}\n:global(.u-di) {\n display: inline;\n}\n:global(.u-db) {\n display: block;\n}\n:global(.u-dib) {\n display: inline-block;\n}\n:global(.u-dit) {\n display: inline-table;\n}\n:global(.u-dt) {\n display: table;\n}\n:global(.u-dtc) {\n display: table-cell;\n}\n:global(.u-dt-row) {\n display: table-row;\n}\n:global(.u-dt-row-group) {\n display: table-row-group;\n}\n:global(.u-dt-column) {\n display: table-column;\n}\n:global(.u-dt-column-group) {\n display: table-column-group;\n}\n@media (max-width: 30rem) {\n :global(.u-dn-t) {\n display: none;\n }\n :global(.u-di-t) {\n display: inline;\n }\n :global(.u-db-t) {\n display: block;\n }\n :global(.u-dib-t) {\n display: inline-block;\n }\n :global(.u-dit-t) {\n display: inline-table;\n }\n :global(.u-dt-t) {\n display: table;\n }\n :global(.u-dtc-t) {\n display: table-cell;\n }\n :global(.u-dt-row-t) {\n display: table-row;\n }\n :global(.u-dt-row-group-t) {\n display: table-row-group;\n }\n :global(.u-dt-column-t) {\n display: table-column;\n }\n :global(.u-dt-column-group-t) {\n display: table-column-group;\n }\n}\n@media (max-width: 48rem) {\n :global(.u-dn-s) {\n display: none;\n }\n :global(.u-di-s) {\n display: inline;\n }\n :global(.u-db-s) {\n display: block;\n }\n :global(.u-dib-s) {\n display: inline-block;\n }\n :global(.u-dit-s) {\n display: inline-table;\n }\n :global(.u-dt-s) {\n display: table;\n }\n :global(.u-dtc-s) {\n display: table-cell;\n }\n :global(.u-dt-row-s) {\n display: table-row;\n }\n :global(.u-dt-row-group-s) {\n display: table-row-group;\n }\n :global(.u-dt-column-s) {\n display: table-column;\n }\n :global(.u-dt-column-group-s) {\n display: table-column-group;\n }\n}\n@media (max-width: 63.938rem) {\n :global(.u-dn-m) {\n display: none;\n }\n :global(.u-di-m) {\n display: inline;\n }\n :global(.u-db-m) {\n display: block;\n }\n :global(.u-dib-m) {\n display: inline-block;\n }\n :global(.u-dit-m) {\n display: inline-table;\n }\n :global(.u-dt-m) {\n display: table;\n }\n :global(.u-dtc-m) {\n display: table-cell;\n }\n :global(.u-dt-row-m) {\n display: table-row;\n }\n :global(.u-dt-row-group-m) {\n display: table-row-group;\n }\n :global(.u-dt-column-m) {\n display: table-column;\n }\n :global(.u-dt-column-group-m) {\n display: table-column-group;\n }\n}\n:global(.u-black) {\n color: var(--black) !important;\n}\n:global(.u-charcoalGrey) {\n color: var(--charcoalGrey) !important;\n}\n:global(.u-coolGrey) {\n color: var(--coolGrey) !important;\n}\n:global(.u-silver) {\n color: var(--silver) !important;\n}\n:global(.u-slateGrey) {\n color: var(--slateGrey) !important;\n}\n:global(.u-lightishPurple) {\n color: #b449e7 !important;\n}\n:global(.u-dodgerBlue) {\n color: #297ef2 !important;\n}\n:global(.u-overlay) {\n color: var(--overlay) !important;\n}\n:global(.u-paleGrey) {\n color: var(--paleGrey) !important;\n}\n:global(.u-monza) {\n color: #dd0505 !important;\n}\n:global(.u-pomegranate) {\n color: #f52d2d !important;\n}\n:global(.u-primaryBackgroundLight) {\n color: var(--primaryBackgroundLight) !important;\n}\n:global(.u-primaryColor) {\n color: var(--primaryColor) !important;\n}\n:global(.u-primaryColorLight) {\n color: var(--primaryColorLight) !important;\n}\n:global(.u-primaryContrastTextColor) {\n color: var(--primaryContrastTextColor) !important;\n}\n:global(.u-error) {\n color: var(--errorColor) !important;\n}\n:global(.u-errorBackground) {\n color: var(--errorBackground) !important;\n}\n:global(.u-success) {\n color: var(--successColor) !important;\n}\n:global(.u-warning) {\n color: var(--warningColor) !important;\n}\n:global(.u-info) {\n color: var(--infoColor) !important;\n}\n:global(.u-weirdGreen) {\n color: #40de8e !important;\n}\n:global(.u-white) {\n color: var(--white) !important;\n}\n:global(.u-breakword) {\n word-break: break-word;\n}\n:global(.u-ellipsis) {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n:global(.u-spacellipsis) {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: break-spaces;\n}\n@media (max-width: 30rem) {\n :global(.u-spacellipsis-t) {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: break-spaces;\n }\n}\n@media (max-width: 48rem) {\n :global(.u-spacellipsis-s) {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: break-spaces;\n }\n}\n@media (max-width: 63.938rem) {\n :global(.u-spacellipsis-m) {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: break-spaces;\n }\n}\n:global(.u-midellipsis) {\n display: flex;\n flex-wrap: nowrap;\n}\n:global(.u-midellipsis) > * {\n display: inline-block;\n max-width: 50%;\n overflow: hidden;\n white-space: pre;\n}\n:global(.u-midellipsis) > :first-child {\n text-overflow: ellipsis;\n}\n:global(.u-midellipsis) > :last-child {\n text-overflow: clip;\n direction: rtl;\n}\n@supports (text-overflow: '[...]') {\n :global(.u-midellipsis) > :first-child {\n text-overflow: '[...]';\n }\n}\n:global(.u-link):link {\n color: var(--linkColor) !important;\n text-decoration: var(--linkTextDecoration) !important;\n}\n:global(.u-link):visited,\n:global(.u-link):active,\n:global(.u-link):hover,\n:global(.u-link):focus {\n color: var(--linkColorActive) !important;\n}\n:global(.u-lh-tiny) {\n line-height: 1 !important;\n}\n:global(.u-lh-xsmall) {\n line-height: 1.1 !important;\n}\n:global(.u-lh-small) {\n line-height: 1.2 !important;\n}\n:global(.u-lh-medium) {\n line-height: 1.3 !important;\n}\n:global(.u-lh-large) {\n line-height: 1.4 !important;\n}\n:global(.u-lh-xlarge) {\n line-height: 1.5 !important;\n}\n:global(.u-fz-tiny) {\n font-size: 0.75rem !important;\n line-height: 1.3 !important;\n}\n:global(.u-fz-xsmall) {\n font-size: 0.813rem !important;\n line-height: 1.4 !important;\n}\n:global(.u-fz-small) {\n font-size: 0.875rem !important;\n line-height: 1.4 !important;\n}\n:global(.u-fz-medium) {\n font-size: 1rem !important;\n line-height: 1.5 !important;\n}\n:global(.u-fz-large) {\n font-size: 1.125rem !important;\n line-height: 1.5 !important;\n}\n@media (max-width: 30rem) {\n :global(.u-fz-tiny-t) {\n font-size: 0.75rem !important;\n line-height: 1.3 !important;\n }\n :global(.u-fz-xsmall-t) {\n font-size: 0.813rem !important;\n line-height: 1.4 !important;\n }\n :global(.u-fz-small-t) {\n font-size: 0.875rem !important;\n line-height: 1.4 !important;\n }\n :global(.u-fz-medium-t) {\n font-size: 1rem !important;\n line-height: 1.5 !important;\n }\n :global(.u-fz-large-t) {\n font-size: 1.125rem !important;\n line-height: 1.5 !important;\n }\n}\n@media (max-width: 48rem) {\n :global(.u-fz-tiny-s) {\n font-size: 0.75rem !important;\n line-height: 1.3 !important;\n }\n :global(.u-fz-xsmall-s) {\n font-size: 0.813rem !important;\n line-height: 1.4 !important;\n }\n :global(.u-fz-small-s) {\n font-size: 0.875rem !important;\n line-height: 1.4 !important;\n }\n :global(.u-fz-medium-s) {\n font-size: 1rem !important;\n line-height: 1.5 !important;\n }\n :global(.u-fz-large-s) {\n font-size: 1.125rem !important;\n line-height: 1.5 !important;\n }\n}\n@media (max-width: 63.938rem) {\n :global(.u-fz-tiny-m) {\n font-size: 0.75rem !important;\n line-height: 1.3 !important;\n }\n :global(.u-fz-xsmall-m) {\n font-size: 0.813rem !important;\n line-height: 1.4 !important;\n }\n :global(.u-fz-small-m) {\n font-size: 0.875rem !important;\n line-height: 1.4 !important;\n }\n :global(.u-fz-medium-m) {\n font-size: 1rem !important;\n line-height: 1.5 !important;\n }\n :global(.u-fz-large-m) {\n font-size: 1.125rem !important;\n line-height: 1.5 !important;\n }\n}\n:global(.u-ta-left) {\n text-align: left !important;\n}\n:global(.u-ta-right) {\n text-align: right !important;\n}\n:global(.u-ta-center) {\n text-align: center !important;\n}\n:global(.u-ta-justify) {\n text-align: justify !important;\n}\n@media (max-width: 30rem) {\n :global(.u-ta-left-t) {\n text-align: left !important;\n }\n :global(.u-ta-right-t) {\n text-align: right !important;\n }\n :global(.u-ta-center-t) {\n text-align: center !important;\n }\n :global(.u-ta-justify-t) {\n text-align: justify !important;\n }\n}\n@media (max-width: 48rem) {\n :global(.u-ta-left-s) {\n text-align: left !important;\n }\n :global(.u-ta-right-s) {\n text-align: right !important;\n }\n :global(.u-ta-center-s) {\n text-align: center !important;\n }\n :global(.u-ta-justify-s) {\n text-align: justify !important;\n }\n}\n@media (max-width: 63.938rem) {\n :global(.u-ta-left-m) {\n text-align: left !important;\n }\n :global(.u-ta-right-m) {\n text-align: right !important;\n }\n :global(.u-ta-center-m) {\n text-align: center !important;\n }\n :global(.u-ta-justify-m) {\n text-align: justify !important;\n }\n}\n:global(.u-fs-normal) {\n font-style: normal !important;\n}\n:global(.u-fs-italic) {\n font-style: italic !important;\n}\n@media (max-width: 30rem) {\n :global(.u-fs-normal-t) {\n font-style: normal !important;\n }\n :global(.u-fs-italic-t) {\n font-style: italic !important;\n }\n}\n@media (max-width: 48rem) {\n :global(.u-fs-normal-s) {\n font-style: normal !important;\n }\n :global(.u-fs-italic-s) {\n font-style: italic !important;\n }\n}\n@media (max-width: 63.938rem) {\n :global(.u-fs-normal-m) {\n font-style: normal !important;\n }\n :global(.u-fs-italic-m) {\n font-style: italic !important;\n }\n}\n:global(.u-fw-normal) {\n font-weight: normal;\n}\n:global(.u-fw-bold) {\n font-weight: bold;\n}\n@media (max-width: 30rem) {\n :global(.u-fw-normal-t) {\n font-weight: normal;\n }\n :global(.u-fw-bold-t) {\n font-weight: bold;\n }\n}\n@media (max-width: 48rem) {\n :global(.u-fw-normal-s) {\n font-weight: normal;\n }\n :global(.u-fw-bold-s) {\n font-weight: bold;\n }\n}\n@media (max-width: 63.938rem) {\n :global(.u-fw-normal-m) {\n font-weight: normal;\n }\n :global(.u-fw-bold-m) {\n font-weight: bold;\n }\n}\n@media (pointer: coarse) {\n}\nhtml {\n --zIndex-below: -1;\n --zIndex-app: 0;\n --zIndex-low: 1;\n --zIndex-alertMobile: 10;\n --zIndex-nav: 20;\n --zIndex-bar: 21;\n --zIndex-selection: 30;\n --zIndex-popover: 40;\n --zIndex-overlay: 50;\n --zIndex-fileActionMenu: 60;\n --zIndex-drawer: 60;\n --zIndex-modal: 70;\n --zindex-alert: 80;\n}\nhtml {\n --primaryFont: Lato, sans-serif;\n}\nbody,\nbody button,\nbody input,\nbody optgroup,\nbody select,\nbody textarea {\n font-family: var(--primaryFont);\n}\nhtml {\n font-size: 100%;\n}\nbody {\n font: 100%/1.5;\n -moz-osx-font-smoothing: grayscale;\n -webkit-font-smoothing: antialiased;\n}\nhtml {\n height: 100%;\n}\nbody {\n display: flex;\n flex-direction: column;\n align-items: stretch;\n width: 100vw;\n height: 100%;\n margin: 0;\n}\n@media (max-width: 63.938rem) {\n html,\n body {\n display: block;\n height: auto;\n }\n}\n[role=application] {\n display: flex;\n height: inherit;\n flex: 1 1 100%;\n overflow-x: hidden;\n overflow-y: auto;\n}\n@media (max-width: 63.938rem) {\n [role=application] {\n overflow: visible;\n }\n}\nhtml,\nbody {\n background-color: var(--white);\n color: var(--black);\n}\n[data-input=radio],\n[data-input=checkbox] {\n display: flex;\n}\n[data-input=radio] input[type=radio],\n[data-input=checkbox] input[type=radio],\n[data-input=radio] input[type=checkbox],\n[data-input=checkbox] input[type=checkbox] {\n display: none !important;\n visibility: hidden !important;\n}\n[data-input=radio] label,\n[data-input=checkbox] label {\n position: relative;\n display: inline-block;\n width: 1rem;\n height: 1rem;\n padding-left: 1.4rem;\n cursor: pointer;\n}\n[data-input=radio] label::before,\n[data-input=checkbox] label::before,\n[data-input=radio] label::after,\n[data-input=checkbox] label::after {\n content: '';\n position: absolute;\n left: 0;\n top: 0;\n box-sizing: border-box;\n width: 1rem;\n height: 1rem;\n}\n[data-input=radio] label::before,\n[data-input=checkbox] label::before {\n transition: box-shadow 350ms cubic-bezier(0, 0.89, 0.44, 1);\n}\n[data-input=radio] label::after,\n[data-input=checkbox] label::after {\n transition-duration: 0.2s;\n transition-property: opacity, transform;\n}\n@media (max-width: 48rem) {\n}\n@media (max-width: 48rem) {\n}\n[data-input=radio] label::before {\n border-radius: 50%;\n border: 0.125rem solid var(--coolGrey);\n box-shadow: inset 0 0 0 1rem transparent;\n}\n[data-input=radio] input[type=radio]:checked + label::before {\n box-shadow: inset 0 0 0 0.188rem var(--paleGrey), inset 0 0 0 1rem var(--dodgerBlue);\n}\n[data-input=checkbox] label::before,\n[data-input=checkbox] label::after {\n border-radius: 0.125rem;\n}\n[data-input=checkbox] label::before {\n background-color: var(--white);\n box-shadow: inset 0 0 0 0.125rem var(--silver);\n}\n[data-input=checkbox] label::before:hover {\n box-shadow: inset 0 0 0 0.125rem var(--dodgerBlue);\n}\n[data-input=checkbox] label::after {\n background-image: url(\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMjAnIGhlaWdodD0nMjAnIHZpZXdCb3g9JzAgMCAyMCAyMCcgeG1sbnM9J2h0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnJz4KICAgIDxwYXRoIGQ9J00zIDEwLjAxOWw0LjUyMyA0LjUyMyA5LjU0MS05LjU0MScgc3Ryb2tlPScjRkZGJyBzdHJva2Utd2lkdGg9JzInIGZpbGw9Im5vbmUiLz4KPC9zdmc+Cg==\");\n background-size: contain;\n}\n[data-input=checkbox][aria-checked='mixed'] label::after {\n background-image: url(\"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgdmlld0JveD0iMCAwIDIwIDIwIj48cGF0aCBkPSJNMy40OTcgMTBoMTMuMDA2IiBzdHJva2U9IiNGRkYiIHN0cm9rZS13aWR0aD0iMiIgLz48L3N2Zz4K\");\n background-size: contain;\n}\n[data-input=checkbox] input[type=checkbox]:checked + label::before {\n box-shadow: inset 0 0 0 1rem var(--dodgerBlue);\n}\n[data-input=checkbox] input[type=checkbox]:checked + label::after {\n opacity: 1;\n transform: scale(1);\n}\n[data-input=checkbox] input[type=checkbox]:not(:checked) + label::after {\n opacity: 0;\n transform: scale(0);\n}\n.c-modal {\n display: flex;\n flex-flow: column nowrap;\n align-items: stretch;\n}\n.c-modal-content {\n background: linear-gradient(#fff 30%, rgba(255,255,255,0)), linear-gradient(rgba(255,255,255,0), #fff 70%) 0 100%, linear-gradient(rgba(214,216,218,0.25) 0, rgba(214,216,218,0.25) 25%, rgba(255,255,255,0) 26%, rgba(255,255,255,0) 100%), linear-gradient(rgba(255,255,255,0) 0, rgba(255,255,255,0) 74%, rgba(214,216,218,0.25) 75%, rgba(214,216,218,0.25) 100%) 0 100%;\n background-repeat: no-repeat;\n background-color: var(--white);\n background-size: 100% 2rem, 100% 2rem, 100% 0.5rem, 100% 0.5rem;\n background-attachment: local, local, scroll, scroll;\n background-clip: padding-box;\n overflow: auto;\n -webkit-overflow-scrolling: touch;\n}\n.c-modal-header,\n.c-modal-header--branded,\n.c-modal-footer {\n flex: 0 0 auto;\n}\n@media (max-width: 63.938rem) {\n}\n@media (max-width: 63.938rem) {\n}\n.c-modal-container {\n position: relative;\n z-index: 70;\n}\n.c-modal-wrapper {\n position: fixed;\n top: 0;\n left: 0;\n display: flex;\n flex-direction: column;\n align-items: center;\n box-sizing: border-box;\n width: 100vw;\n height: 100%;\n overflow-y: auto;\n padding: 3rem;\n}\n@media (max-width: 48rem) {\n .c-modal-wrapper {\n justify-content: center;\n padding: 1.5rem;\n }\n}\n@media (max-width: 30rem) {\n .c-modal-wrapper {\n padding: 0.5rem;\n }\n}\n.c-modal {\n position: relative;\n border-radius: 0.5rem;\n max-height: 100%;\n max-width: 100%;\n background-color: var(--white);\n color: var(--charcoalGrey);\n}\n.c-modal--xsmall {\n width: 24rem;\n}\n@media (max-width: 25rem) {\n .c-modal--xsmall {\n width: 100%;\n }\n}\n.c-modal--small {\n width: 34rem;\n}\n@media (max-width: 35rem) {\n .c-modal--small {\n width: 100%;\n }\n}\n.c-modal--medium {\n width: 36rem;\n}\n@media (max-width: 39rem) {\n .c-modal--medium {\n width: 100%;\n }\n}\n.c-modal--large {\n width: 40rem;\n}\n@media (max-width: 46rem) {\n .c-modal--large {\n width: 100%;\n }\n}\n.c-modal--xlarge {\n width: 50rem;\n}\n@media (max-width: 56rem) {\n .c-modal--xlarge {\n width: 100%;\n }\n}\n.c-modal--xxlarge {\n width: 60rem;\n}\n@media (max-width: 66rem) {\n .c-modal--xxlarge {\n width: 100%;\n }\n}\n@media (max-width: 48rem) {\n .c-modal-wrapper.c-modal-wrapper--fullscreen {\n padding: 0;\n }\n}\n@media (max-width: 48rem) {\n .c-modal.c-modal--fullscreen {\n height: 100%;\n width: 100%;\n border-radius: 0;\n box-sizing: border-box;\n }\n}\n.c-modal-header,\n.c-modal-header--branded {\n margin: 0 0 1rem;\n padding: 1.687rem 3rem 0 2rem;\n overflow: visible;\n min-height: 2.5rem;\n}\n.c-modal-header h2,\n.c-modal-header--branded h2 {\n margin: 0;\n font-weight: bold;\n}\n@media (max-width: 30rem) {\n .c-modal-header,\n .c-modal-header--branded {\n margin-bottom: 0.5rem;\n padding: 1.187rem 2rem 0 1.5rem;\n }\n .c-modal-header h2,\n .c-modal-header--branded h2 {\n font-size: 1.25rem;\n }\n}\n.c-modal-header--branded {\n padding: 1rem 3rem;\n}\n.c-modal-header--branded img {\n display: block;\n max-height: 3.5rem;\n margin: 0 auto;\n}\n.c-modal-illu-header,\n.c-modal-illu-header--ghost {\n display: flex;\n align-items: center;\n justify-content: center;\n margin: 0 0 1rem;\n max-width: 100%;\n}\n.c-modal-illu-header > *,\n.c-modal-illu-header--ghost > * {\n max-width: inherit;\n}\n.c-modal-illu-header--ghost {\n position: absolute;\n left: 0;\n right: 0;\n top: 1rem;\n margin: 0.5rem 0;\n opacity: 0;\n max-height: 2rem;\n transition: opacity 150ms ease-in, top 150ms 50ms ease-in;\n}\n.c-modal-illu-header--ghost > * {\n max-height: inherit;\n}\n.c-modal-illu-header--ghost.is-active {\n top: 0;\n opacity: 1;\n transition: opacity 150ms 50ms ease-in, top 150ms ease-in;\n}\n.c-modal--small-spacing .c-modal-header {\n padding: 1.187rem 3rem 0 1.5rem;\n}\n@media (max-width: 30rem) {\n .c-modal--small-spacing .c-modal-header {\n padding: 0.687rem 2rem 0 1rem;\n }\n}\n.c-modal--large-spacing .c-modal-header {\n padding: 2.687rem 3rem 0 3rem;\n}\n@media (max-width: 48rem) {\n .c-modal--large-spacing .c-modal-header {\n padding: 1.687rem 2rem 0 2rem;\n }\n}\n.c-modal-app {\n display: flex;\n align-items: center;\n font-size: 1.25rem;\n color: var(--charcoalGrey);\n}\n.c-app-editor {\n font-weight: normal;\n}\n.c-modal-app-icon {\n height: 1.125rem;\n margin-right: 0.5rem;\n}\n.c-modal-content-fixed {\n border-bottom: 0.063rem solid var(--dividerColor);\n flex: 0 0 auto;\n padding: 0 2rem;\n}\n.c-modal--small-spacing .c-modal-content-fixed {\n padding: 0 1.5rem;\n}\n@media (max-width: 30rem) {\n .c-modal--small-spacing .c-modal-content-fixed {\n padding: 0 1rem;\n }\n}\n.c-modal--large-spacing .c-modal-content-fixed {\n padding: 0 3rem;\n}\n@media (max-width: 30rem) {\n .c-modal--large-spacing .c-modal-content-fixed {\n padding: 0 2rem;\n }\n}\n.c-modal-content {\n padding: 0 2rem;\n}\n.c-modal-content:last-child {\n padding-bottom: 2rem;\n border-bottom-right-radius: 0.5rem;\n border-bottom-left-radius: 0.5rem;\n}\n@media (max-width: 30rem) {\n .c-modal-content {\n padding: 0 1.5rem;\n }\n .c-modal-content:last-child {\n padding-bottom: 1.5rem;\n }\n}\n.c-modal--small-spacing .c-modal-content {\n padding: 0 1.5rem;\n}\n.c-modal--small-spacing .c-modal-content:last-child {\n padding-bottom: 1.5rem;\n}\n@media (max-width: 30rem) {\n .c-modal--small-spacing .c-modal-content {\n padding: 0 1rem;\n }\n .c-modal--small-spacing .c-modal-content:last-child {\n padding-bottom: 1rem;\n }\n}\n.c-modal--large-spacing .c-modal-content {\n padding: 0 3rem;\n}\n.c-modal--large-spacing .c-modal-content:last-child {\n padding-bottom: 3rem;\n}\n@media (max-width: 48rem) {\n .c-modal--large-spacing .c-modal-content {\n padding: 0 2rem;\n }\n .c-modal--large-spacing .c-modal-content:last-child {\n padding-bottom: 2rem;\n }\n}\n.c-modal-footer {\n padding: 1rem 1.25rem 1.25rem;\n}\n.c-modal-footer--button button {\n margin-bottom: 0.25rem;\n}\n@media (max-width: 48rem) {\n .c-modal-footer--button button {\n min-width: calc(50% - 0.5rem);\n }\n}\n.c-modal-section {\n border-top: 0.063rem solid var(--dividerColor);\n}\n.c-modal-close {\n box-sizing: border-box;\n position: absolute;\n top: 1.5rem;\n right: 1.5rem;\n margin: 0;\n padding: 0.5rem;\n background-color: transparent;\n border: 0;\n cursor: pointer;\n display: block;\n width: 2.5rem;\n height: 2.5rem;\n z-index: 1;\n}\n@media (max-width: 30rem) {\n .c-modal-close {\n top: 0.813rem;\n right: 1rem;\n }\n}\n.c-modal--small-spacing .c-modal-close {\n top: 1rem;\n right: 1rem;\n}\n@media (max-width: 30rem) {\n .c-modal--small-spacing .c-modal-close {\n top: 0.313rem;\n right: 0.5rem;\n }\n}\n.c-modal--closable .c-modal-header {\n padding-right: 4.5rem;\n}\n.c-modal--large-spacing .c-modal-close {\n top: 2.5rem;\n right: 2.5rem;\n}\n@media (max-width: 48rem) {\n .c-modal--large-spacing .c-modal-close {\n top: 1.313rem;\n right: 1.5rem;\n }\n}\n.c-modal-close--notitle {\n top: 0.375rem;\n right: 0.375rem;\n}\n.c-modal--overflowHidden {\n overflow: hidden;\n}\n.c-modal-back-button {\n top: 0.375rem;\n left: 0.375rem;\n color: var(--coolGrey);\n}\n@media (max-width: 48rem) {\n .c-modal-back-button {\n top: 0;\n left: 0;\n }\n}\n.c-modal-close--notitle + .c-modal-content {\n margin-top: 3rem;\n}\n","/*------------------------------------*\\\n Animations\n\\*------------------------------------*/\n/*\n Animations\n\n Available animations:\n\n spin - Animates an element by rotating it endlessly by 360 deg (used by the loading spinner)\n\n Styleguide Generic.animation\n*/\n@keyframes spin\n from\n transform rotate(0deg)\n to\n transform rotate(359deg)\n \n@keyframes shake\n 10%, 90%\n transform translate3d(-1px, 0, 0)\n \n 20%, 80%\n transform translate3d(2px, 0, 0)\n\n 30%, 50%, 70%\n transform translate3d(-4px, 0, 0)\n\n 40%, 60%\n transform translate3d(4px, 0, 0)\n\n$transition-transform-ease-out\n transition transform .1s ease-out\n\n$spin-anim\n // arguments' order is important: the animation name must stay first\n // so that scoping works\n animation spin 1s linear infinite\n\n@media (prefers-reduced-motion: reduce)\n $transition-transform-ease-out\n transition none\n $spin-anim\n animation none","@require '../settings/breakpoints'\n@require '../tools/mixins'\n\n/*------------------------------------*\\\n Display utilities\n\\*------------------------------------*/\n\n/*\n Visually hidden element but still readable by screen-readers\n FR : http://www.ffoodd.fr/cache-cache-css/\n EN : http://hugogiraudel.com/2016/10/13/css-hide-and-seek/\n*/\n\nhidden()\n // @stylint off\n position absolute !important\n border 0 !important\n width rem(1) !important\n height rem(1) !important\n overflow hidden !important\n padding 0 !important\n white-space nowrap !important\n clip rect(rem(1), rem(1), rem(1), rem(1)) !important\n clip-path inset(50%) !important\n // @stylint on\n\n$visuallyhidden\n hidden()\n\n// Because Stylus doesn't allow me to @extend inside @media… yeah… that sucks\n+medium-screen()\n $visuallyhidden-mobile\n hidden()\n\n$hide\n hide()\n\n$hide--mob\n +lt-desktop()\n display none !important // @stylint ignore\n\n$hide--tablet\n +gt-tablet()\n display none !important // @stylint ignore\n\n$hide--desk\n +gt-mobile()\n display none !important // @stylint ignore\n\n// Global classes\nglobal('.u-visuallyhidden', $visuallyhidden)\nglobal('.u-hide', $hide)\nglobal('.u-hide--mob', $hide--mob)\nglobal('.u-hide--tablet', $hide--tablet)\nglobal('.u-hide--desk', $hide--desk)\n\ndisplay-none()\n display none\n\ndisplay-inline()\n display inline\n\ndisplay-block()\n display block\n\ndisplay-inline-block()\n display inline-block\n\ndisplay-inline-table()\n display inline-table\n\ndisplay-table()\n display table\n\ndisplay-table-cell()\n display table-cell\n\ndisplay-table-row()\n display table-row\n\ndisplay-table-row-group()\n display table-row-group\n\ndisplay-table-column()\n display table-column\n\ndisplay-table-column-group()\n display table-column-group\n\nprops = {\n 'display-none': 'dn',\n 'display-inline': 'di',\n 'display-block': 'db',\n 'display-inline-block': 'dib',\n 'display-inline-table': 'dit',\n 'display-table': 'dt',\n 'display-table-cell': 'dtc',\n 'display-table-row': 'dt-row',\n 'display-table-row-group': 'dt-row-group',\n 'display-table-column': 'dt-column',\n 'display-table-column-group': 'dt-column-group'\n}\n\nif cssmodules == true\n cssModulesUtils(props, breakpoints)\nelse\n nativeUtils(props, breakpoints)\n\n\n","/*------------------------------------*\\\n Mixins\n =====\n\n This file contains mixins:\n - hide()\n - reset()\n\\*------------------------------------*/\n/*\n Tools\n\n Weight: -9\n\n Styleguide Tools\n*/\n/*\n Mixins\n\n Available mixins\n\n Styleguide Tools.mixins\n*/\n// @stylint off\nuse('../scripts/deprecate.js')\n// @stylint on\n\n// Default Font-size\n$basefont ?= 16px\n\nrem($value, $base = $basefont)\n $max = length($value)\n\n $remValues = ()\n for $i in (0...$max)\n push($remValues, _convert-to-rem($value[$i], $base))\n\n return $remValues\n\n_convert-to-rem($px, $base)\n if (typeof($px) == 'unit')\n if ((unit($px) == '' || unit($px) == 'px') && ($px != 0))\n return (round($px / $base, 3))rem\n else\n return 0\n\n/*\n rem($value, $basefont)\n\n rem() takes one or more numeric values in pixel and calculates the rem values from it.\n\n NB: you don't have to explicitly write the `px` unit.\n\n $value - The value in pixel you want to translate in rem. For multiple values you can use `rem(14 12)` for shorthand properties such as `margin`. ⚠ Multiples values should be separated by spaces.\n $basefont - If you need to overwrite the default `$basefont` value of `16`\n\n Weight: 1\n\n Styleguide Tools.mixins.rem\n*/\n\n/*\n hide()\n\n hide() mixin definitely hides an element. This mixin doesn't take parameters.\n\n Weight: 2\n\n Styleguide Tools.mixins.hide\n*/\nhide()\n display none !important // @stylint ignore\n visibility hidden !important // @stylint ignore\n\n/*\n visually-hide()\n\n visually-hide() mixin visually hides an element. The element is still visible by screen readers.\n This mixin doesn't take parameters.\n\n Weight: 3\n\n Styleguide Tools.mixins.hide\n*/\nvisually-hide()\n border 0\n clip rect(0 0 0 0)\n clip-path polygon(0 0, 0 0, 0 0)\n height 1px\n margin -1px\n overflow hidden\n padding 0\n position absolute\n width 1px\n white-space nowrap\n\n/*\n reset()\n\n reset() mixin removes every padding, margin and border of an element.\n This mixin doesn't take parameters.\n\n Weight: 4\n\n Styleguide Tools.mixins.reset\n*/\nreset()\n margin 0\n padding 0\n border 0\n\nglobal(selector, placeholder, type = extend)\n if type == extend\n if cssmodules == true\n :global({selector})\n @extend {placeholder} // @stylint ignore\n else\n {selector}\n @extend {placeholder} // @stylint ignore\n else if type == mixin\n if cssmodules == true\n :global({selector})\n {placeholder}() // @stylint ignore\n else\n {selector}\n {placeholder}() // @stylint ignore\n\ncssModulesUtils(props, breakpoints)\n for kBp, vBp in breakpoints\n if vBp == ''\n for kProp, vProp in props\n :global(.u-{vProp})\n {kProp}()\n else\n @media (max-width: rem(lookup('BP-'+kBp)))\n for kProp, vProp in props\n :global(.u-{vProp}-{vBp}) // @stylint ignore\n {kProp}()\n\nnativeUtils(props, breakpoints)\n for kBp, vBp in breakpoints\n if vBp == ''\n for kProp, vProp in props\n .u-{vProp}\n {kProp}()\n else\n @media (max-width: rem(lookup('BP-'+kBp)))\n for kProp, vProp in props\n .u-{vProp}-{vBp} // @stylint ignore\n {kProp}()\n\n// @stylint on\n","@require '../tools/mixins'\n@require './colors'\n\n/*------------------------------------*\\\n Text utilities\n\\*------------------------------------*/\n\njson_colors=json('../settings/palette.json', { hash: true })\n\nfor color in utility_colors\n $color-{color}\n color: json_colors[color] !important // @stylint ignore\n\n global('.u-' + color, '$color-' + color)\n\n\n$breakword\n word-break break-word\n\n$ellipsis\n white-space nowrap\n overflow hidden\n text-overflow ellipsis\n\nspacellipsis()\n overflow hidden\n text-overflow ellipsis\n white-space break-spaces\n\nspace-ellipsis = {\n 'spacellipsis': 'spacellipsis'\n}\n\nif cssmodules == true\n cssModulesUtils(space-ellipsis, breakpoints)\nelse\n nativeUtils(space-ellipsis, breakpoints)\n\n$midellipsis\n display flex\n flex-wrap nowrap\n\n > * // @stylint ignore\n display inline-block\n max-width 50%\n overflow hidden\n white-space pre\n\n > :first-child\n text-overflow ellipsis\n\n > :last-child\n text-overflow clip\n direction rtl\n\n @supports(text-overflow: '[...]')\n > :first-child\n text-overflow '[...]'\n\n$link\n &:link\n color var(--linkColor) !important // @stylint ignore\n text-decoration var(--linkTextDecoration) !important // @stylint ignore\n\n &:visited\n &:active\n &:hover\n &:focus\n color var(--linkColorActive) !important // @stylint ignore\n\n// @stylint off\nlh-tiny()\n line-height 1!important\n\nlh-xsmall()\n line-height 1.1!important\n\nlh-small()\n line-height 1.2!important\n\nlh-medium()\n line-height 1.3!important\n\nlh-large()\n line-height 1.4!important\n\nlh-xlarge()\n line-height 1.5!important\n\nglobal('.u-lh-tiny', lh-tiny, mixin)\n\nglobal('.u-lh-xsmall', lh-xsmall, mixin)\n\nglobal('.u-lh-small', lh-small, mixin)\n\nglobal('.u-lh-medium', lh-medium, mixin)\n\nglobal('.u-lh-large', lh-large, mixin)\n\nglobal('.u-lh-xlarge', lh-xlarge, mixin)\n\nfz-tiny()\n font-size rem(12)!important\n lh-medium()\n\nfz-xsmall()\n font-size rem(13)!important\n lh-large()\n\nfz-small()\n font-size rem(14)!important\n lh-large()\n\nfz-medium()\n font-size rem(16)!important\n lh-xlarge()\n\nfz-large()\n font-size rem(18)!important\n lh-xlarge()\n\nfontsize = {\n 'fz-tiny': 'fz-tiny',\n 'fz-xsmall': 'fz-xsmall',\n 'fz-small': 'fz-small',\n 'fz-medium': 'fz-medium',\n 'fz-large': 'fz-large'\n}\n\nif cssmodules == true\n cssModulesUtils(fontsize, breakpoints)\nelse\n nativeUtils(fontsize, breakpoints)\n\nta-left()\n text-align left!important\n\nta-right()\n text-align right!important\n\nta-center()\n text-align center!important\n\nta-justify()\n text-align justify!important\n\ntextalign = {\n 'ta-left': 'ta-left',\n 'ta-right': 'ta-right',\n 'ta-center': 'ta-center',\n 'ta-justify': 'ta-justify'\n}\n\nif cssmodules == true\n cssModulesUtils(textalign, breakpoints)\nelse\n nativeUtils(textalign, breakpoints)\n\nfs-normal()\n font-style normal!important\n\nfs-italic()\n font-style italic!important\n\nfontstyle = {\n 'fs-normal': 'fs-normal',\n 'fs-italic': 'fs-italic'\n}\nif cssmodules == true\n cssModulesUtils(fontstyle, breakpoints)\nelse\n nativeUtils(fontstyle, breakpoints)\n\nfw-normal()\n font-weight normal\n\nfw-bold()\n font-weight bold\n\nfontweight = {\n 'fw-normal': 'fw-normal',\n 'fw-bold': 'fw-bold'\n}\nif cssmodules == true\n cssModulesUtils(fontweight, breakpoints)\nelse\n nativeUtils(fontweight, breakpoints)\n// @stylint on\n\n// Global classes\nglobal('.u-breakword', $breakword)\nglobal('.u-ellipsis', $ellipsis)\nglobal('.u-midellipsis', $midellipsis)\nglobal('.u-link', $link)\n","/*------------------------------------*\\\n Please, edit this file properly, with a 10 based incrementation,\n and keep things in order so it remains easily readable.\n\n How to use: just import this file in your component's style and call\n the related variable\n e.g.\n .my-app\n z-index $app-index\n\\*------------------------------------*/\n\n/*\n Z-Index\n\n List of every z-index related to components in order to keep a clean\n & maintainable order of indexes.\n\n Those indexes are 10 based so you can deal with extra layers using `$index + 1`\n\n $below-index - **index -1** Layer below the app, mostly for hiding purpose\n $app-index - **index 0** App index, the ground zero.\n $low-index - **index 1** Low level index, to make sure a positionned element goes over elements with z-index 0.\n $alert-index-mobile - **index 10** Alert index like success, errors, infos *mobile only*\n $nav-index - **index 20** Nav index\n $bar-index - **index 21** Bar index equals Nav index + 1, not actually used, just as reference.\n $selection-index - **index 30** Selection bar index, with actions for selected items\n $popover-index - **index 40** Popover index used by dropdown menu for example\n $overlay - **index 50** Overlay index for modals background\n $file-action-menu - **index 60** File action menu index *mobile only*\n $modal-index - **index 70** Modal index\n $modal-footer-index - **index 71** Modal footer index\n $modal-toolbar-index - **index 72** Modal toolbar index\n $alert-index - **index 80** Alert index such as success, errors, infos\n\n Styleguide Settings.z-index\n*/\n\n$below-index = -1\n$app-index = 0\n$low-index = 1\n$alert-index-mobile = 10\n$nav-index = 20\n$bar-index = $nav-index + 1 // Not actually used, just as reference\n$selection-index = 30\n$popover-index = 40\n$overlay-index = 50\n$file-action-menu = 60 // replaced by $drawer-index\n$drawer-index = 60\n$modal-index = 70\n$modal-footer-index = $modal-index + 1\n$modal-toolbar-index = $modal-footer-index + 1\n$alert-index = 80\n\n// @stylint off\nhtml\n --zIndex-below $below-index\n --zIndex-app $app-index\n --zIndex-low $low-index\n --zIndex-alertMobile $alert-index-mobile\n --zIndex-nav $nav-index\n --zIndex-bar $bar-index\n --zIndex-selection $selection-index\n --zIndex-popover $popover-index\n --zIndex-overlay $overlay-index\n --zIndex-fileActionMenu $file-action-menu\n --zIndex-drawer $drawer-index\n --zIndex-modal $modal-index\n --zindex-alert $alert-index\n// @stylint on\n\n","/*------------------------------------*\\\n Font Stack\n\\*------------------------------------*/\n\n/*\n Font Stack\n\n There's only one font available, Lato, which is used on body, so basically everywhere. It's also available in bold.\n\n Markup:\n <p>This is basic text</p>\n <p><strong>And this is bold text</strong></p>\n\n Styleguide Settings.fonts\n*/\nhtml\n --primaryFont Lato, sans-serif\n\n$font-labor\n font-family var(--primaryFont)\n","// @stylint off\n\n// FONTS\n@require '../settings/fontstack'\n@require '../settings/breakpoints'\n@require '../tools/mixins'\n\nhtml\n font-size 100%\n\nbody\n font 100%/1.5\n -moz-osx-font-smoothing grayscale\n -webkit-font-smoothing antialiased\n @extend $font-labor\n\n // Overrides Normalize.css default style\n button,\n input,\n optgroup,\n select,\n textarea\n @extend $font-labor\n\n// LAYOUT\nhtml\n height 100%\n\nbody\n display flex\n flex-direction column\n align-items stretch\n width 100vw\n height 100%\n margin 0\n\nhtml\nbody\n +medium-screen()\n display block\n height auto\n\n[role=application]\n display flex\n height inherit\n flex 1 1 100%\n overflow-x hidden\n overflow-y auto\n\n +medium-screen()\n overflow visible\n\n// COLORS\nhtml,\nbody\n background-color var(--white)\n color var(--black)\n\n// FORMS\n@require '../components/forms'\n\n[data-input=radio]\n @extend $form-checkbox\n\n label::before\n border-radius 50%\n border rem(2) solid var(--coolGrey)\n box-shadow inset 0 0 0 checkbox-size transparent\n\n input[type=radio]:checked + label::before\n box-shadow inset 0 0 0 rem(3) var(--paleGrey), inset 0 0 0 checkbox-size var(--dodgerBlue)\n\n\n[data-input=checkbox]\n @extend $form-checkbox\n\n label\n &::before\n &::after\n border-radius rem(2)\n\n &::before\n background-color var(--white)\n box-shadow inset 0 0 0 rem(2) var(--silver)\n\n &:hover\n box-shadow inset 0 0 0 rem(2) var(--dodgerBlue)\n\n &::after\n background-image embedurl('../../assets/icons/illus/check-white.svg')\n background-size contain\n\n &[aria-checked='mixed'] label::after\n background-image embedurl('../../assets/icons/illus/dash-white.svg')\n background-size contain\n\n input[type=checkbox]\n &:checked\n & + label::before\n box-shadow inset 0 0 0 checkbox-size var(--dodgerBlue)\n\n & + label::after\n opacity 1\n transform scale(1)\n\n &:not(:checked) + label::after\n opacity 0\n transform scale(0)\n// @stylint on\n","/*------------------------------------*\\\n Forms\n =====\n\n This file contains all needs for forms, inputs, labels...\n\\*------------------------------------*/\n\n@require '../components/button'\n@require '../tools/mixins'\n\ncheckbox-size = rem(16)\n\n$form\n .coz-form\n margin rem(16 0 8)\n\n a,\n a:visited\n color var(--dodgerBlue)\n text-decoration none\n\n a:hover,\n a:active\n text-decoration underline\n\n .coz-form\n .coz-form-group\n position relative\n // Managing input width with flex\n display flex\n flex-direction column\n\n .coz-form-desc\n margin-bottom rem(8)\n line-height 1.5\n\n .coz-form-label // Deprecated\n display block\n text-transform uppercase\n color var(--coolGrey)\n font-size rem(12)\n padding rem(9) 0\n margin-top rem(16)\n\n .coz-form-label--error // Deprecated\n display none\n color var(--pomegranate)\n\n .coz-form-errors\n color var(--pomegranate)\n\n$form-button\n .coz-form-controls\n display flex\n flex-direction row\n justify-content flex-end\n margin rem(16 0 8)\n\n a\n button\n input[type=submit]\n flex 0 0 auto\n margin rem(0 0 8 8)\n\n .coz-form-controls--full\n a\n button\n input[type=submit]\n flex 0 0 100%\n margin-bottom rem(8)\n\n .coz-form-controls--dispatch\n justify-content space-between\n\n a\n button\n input[type=submit]\n flex 0 0 49%\n margin 0 0 rem(8)\n\n &:last-child\n margin-left auto\n\n\n$form-text\n input[type=text]\n input[type=password]\n input[type=email]\n input[type=url]\n display inline-block\n padding rem(14) rem(12) rem(12) rem(14)\n box-sizing border-box\n border-radius rem(2)\n background var(--white)\n border rem(1) solid var(--dividerColor)\n color var(--black)\n\n &::placeholder\n color var(--coolGrey)\n font-size rem(16)\n\n &:focus\n border rem(1) solid var(--dodgerBlue)\n outline 0\n\n &:hover\n border rem(1) solid var(--coolGrey)\n\n &.error\n border rem(1) solid var(--pomegranate)\n\n\n$form-textarea\n textarea\n display inline-block\n padding rem(14 12 12 14)\n box-sizing border-box\n border-radius rem(2)\n background var(--white)\n border rem(1) solid var(--dividerColor)\n color var(--black)\n\n &::placeholder\n color var(--coolGrey)\n font-size rem(16)\n\n &:focus\n border rem(1) solid var(--dodgerBlue)\n outline 0\n\n &:hover\n border rem(1) solid var(--coolGrey)\n\n &.error\n border rem(1) solid var(--pomegranate)\n\n\n$form-select\n select\n display inline-block\n padding rem(12 12 14)\n border-radius rem(4)\n box-sizing border-box\n background var(--white)\n border rem(1) solid var(--dividerColor)\n color var(--black)\n appearance none\n background-image embedurl('../../assets/icons/ui/dropdown.svg')\n background-position right rem(8) center\n background-repeat no-repeat\n\n &::-ms-expand\n display none\n\n &::placeholder\n color var(--slateGrey)\n font-size rem(17)\n\n &:focus\n border rem(1) solid var(--dodgerBlue)\n\n &:hover\n border rem(1) solid var(--coolGrey)\n\n &.error\n border rem(1) solid var(--pomegranate)\n background none\n\n\n$form-checkbox\n // To make sure that checkbox's wrapper have the height of the checkbox\n display flex\n\n input[type=radio]\n input[type=checkbox]\n hide()\n\n label\n position relative\n display inline-block\n width checkbox-size\n height checkbox-size\n padding-left checkbox-size * 1.4\n cursor pointer\n\n &::before\n &::after\n content ''\n position absolute\n left 0\n top 0\n box-sizing border-box\n width checkbox-size\n height checkbox-size\n\n &::before\n transition box-shadow 350ms cubic-bezier(0, .89, .44, 1)\n\n &::after\n transition-duration .2s\n transition-property opacity, transform\n\n\n$form-progress\n progress\n margin rem(8) 0\n width 100%\n height rem(8)\n color var(--dodgerBlue)\n background var(--paleGrey)\n border 0\n border-radius rem(18)\n\n // chrome and safari\n &::-webkit-progress-bar\n background var(--paleGrey)\n border-radius rem(18)\n\n &::-webkit-progress-value\n background var(--charcoalGrey)\n border-radius rem(18)\n\n // firefox\n &::-moz-progress-bar\n background var(--charcoalGrey)\n border-radius rem(18)\n\n// New styles\n$label\n text-transform uppercase\n color var(--secondaryTextColor)\n font-size rem(13)\n font-weight bold\n line-height rem(16)\n\n &.is-error\n color var(--pomegranate)\n\n$label--block\n display block\n padding rem(8) 0\n\n$input--disabled\n cursor not-allowed\n background-color var(--paleGrey)\n color var(--charcoalGrey)\n\n &:hover\n &:focus\n border rem(1) solid var(--dividerColor)\n\n$input-text\n display inline-block\n width 100%\n max-width rem(512)\n padding rem(13 16)\n box-sizing border-box\n border-radius rem(3)\n background var(--white)\n border rem(1) solid var(--dividerColor)\n font-size rem(16)\n line-height 1.25\n color var(--charcoalGrey)\n outline 0\n\n &::placeholder\n color var(--coolGrey)\n font-size rem(16)\n\n &:hover\n border rem(1) solid var(--coolGrey)\n\n &:focus\n border rem(1) solid var(--dodgerBlue)\n outline 0\n\n &.is-error\n &:not(:focus):invalid\n border rem(1) solid var(--pomegranate)\n\n &[aria-disabled=true]\n &[disabled]\n @extend $input--disabled\n\n\ninput-text--tiny =\n border-radius rem(2)\n padding rem(4 8 6)\n$input-text--tiny\n {input-text--tiny}\n\ninput-text--medium =\n border-radius rem(2)\n padding rem(8 16 10)\n$input-text--medium\n {input-text--medium}\n\ninput-text--large =\n border-radius rem(3)\n padding rem(13 16)\n$input-text--large\n {input-text--large}\n\ninput-text--fullwidth =\n max-width 100%\n$input-text--fullwidth\n {input-text--fullwidth}\n\n$checkbox\n // To make sure that checkbox's wrapper have the height of the checkbox\n display flex\n align-items center\n min-width checkbox-size\n min-height checkbox-size\n\n span\n position relative\n display inline-block\n padding-left checkbox-size * 1.5\n cursor pointer\n line-height 1.5\n\n &::before\n &::after\n content ''\n position absolute\n left 0\n top 50%\n box-sizing border-box\n width checkbox-size\n height checkbox-size\n border-radius rem(2)\n\n &::before\n transition box-shadow 350ms cubic-bezier(0, .89, .44, 1)\n background-color var(--white)\n box-shadow inset 0 0 0 rem(2) var(--silver)\n transform translateY(-50%)\n\n &:hover::before\n box-shadow inset 0 0 0 rem(2) var(--dodgerBlue)\n\n &::after\n background-image embedurl('../../assets/icons/illus/check-white.svg')\n background-size contain\n transition-duration .2s\n transition-property opacity, transform\n\n &[aria-checked='mixed'] span::after\n background-image embedurl('../../assets/icons/illus/dash-white.svg')\n background-size contain\n\n &[aria-disabled=true]\n span\n opacity .5\n cursor not-allowed\n\n :hover::before\n box-shadow inset 0 0 0 rem(2) var(--silver)\n\n ::before\n background-color var(--paleGrey)\n\n input\n visually-hide()\n\n &:focus + span::before\n box-shadow inset 0 0 0 rem(2) var(--dodgerBlue)\n\n &:checked\n & + span::before\n box-shadow inset 0 0 0 checkbox-size var(--dodgerBlue)\n\n & + span::after\n opacity 1\n transform translateY(-50%) scale(1)\n\n &:not(:checked) + span::after\n opacity 0\n transform translateY(-50%) scale(0)\n\n &.is-error span\n color var(--pomegranate)\n\n &::before\n box-shadow inset 0 0 0 rem(2) var(--pomegranate)\n background-color var(--yourPink)\n\n &--noGutter span\n padding-left 0\n\n\n$radio\n @extend $checkbox\n span\n &::before\n &::after\n border-radius 50%\n\n &::after\n content ''\n background var(--white)\n border rem(5) solid var(--dodgerBlue)\n box-sizing border-box\n width rem(16)\n height rem(16)\n\n$textarea\n @extend $input-text\n display block\n width 100%\n min-height rem(120)\n resize vertical\n\n$textarea--tiny\n @extend $input-text--tiny\n min-height rem(48)\n\n$textarea--medium\n @extend $input-text--medium\n min-height rem(80)\n\n$textarea--fullwidth\n @extend $input-text--fullwidth\n\n\n$select-arrow-padding\n padding-right rem(38)\n\n$select\n @extend $input-text\n @extend $select-arrow-padding\n appearance none\n background embedurl('../../assets/icons/illus/bottom-select.svg') right rem(16) center no-repeat\n background-size rem(14)\n text-align left\n\n &::-ms-expand\n display none\n\n$select--disabled\n @extend $input--disabled\n\n &:hover\n &:focus\n // Border is set to 0, otherwise SelectBox will\n // get large borders on hover\n border-width 0\n\n$select--tiny\n @extend $input-text--tiny\n @extend $select-arrow-padding\n\n$select--medium\n @extend $input-text--medium\n @extend $select-arrow-padding\n\n$select--fullwidth\n @extend $input-text--fullwidth\n @extend $select-arrow-padding\n\n$field\n position relative\n display flex\n flex-direction column\n margin rem(8 0 16)\n\n$field-inline\n display flex\n align-items flex-start\n flex-direction row\n margin rem(8 0 8 24)\n\n +small-screen()\n flex-direction column\n margin-left 0\n\n$inputgroup\n display inline-flex\n flex-direction row\n box-sizing border-box\n align-items stretch\n width 100%\n max-width rem(512)\n border rem(1) solid var(--dividerColor)\n border-radius rem(2)\n &:hover\n border rem(1) solid var(--coolGrey)\n\n$inputgroup--focus\n &\n &:hover\n border-color var(--dodgerBlue)\n\n$inputgroup--error\n border-color var(--pomegranate)\n\n$inputgroup--fullwidth\n max-width none\n\n$inputgroup-main\n flex 1 1 auto\n\n$inputgroup-input\n @extend $input-text\n border 0\n padding-right rem(8)\n &:hover\n &:focus\n position relative\n z-index 1\n border 0\n outline 0\n\n$inputgroup-side\n display flex\n flex-direction column\n justify-content center\n flex 0 1 auto\n max-width rem(140)\n\n$double-field\n width 100%\n\n$double-field--with-button\n box-sizing border-box\n position relative\n padding-right 2.5rem\n\n$double-field-line\n position relative\n\n$double-field-label\n min-height rem(40)\n\n$double-field-button\n position absolute\n right rem(-40)\n top rem(10)\n\n$double-field-wrapper\n display inline-flex\n width 100%\n margin-bottom rem(8)\n\n +small-screen()\n flex-direction column\n\n$double-field-input\n box-sizing border-box\n flex 1 1 70%\n & + &\n flex 1 1 auto\n","@require '../tools/mixins'\n@require '../settings/breakpoints'\n@require '../settings/z-index'\n@require '../elements/defaults'\n\n/*------------------------------------*\\\n Layout vars\n\\*------------------------------------*/\nbarHeight = rem(48)\nnavHeight = rem(48)\n\n/*------------------------------------*\\\n Layouts\n\\*------------------------------------*/\n\n$centerized\n position absolute\n top 50%\n left 50%\n transform translateX(-50%) translateY(-50%)\n\n\n$content-center\n display flex\n align-items center\n justify-content center\n\n\n$fullbleed\n position fixed\n bottom 0\n top 0\n left 0\n right 0\n\n// Elastic Layout — Usually with fixed header and/or fixed footer and an extensible content zone with scrolling inside\n$elastic\n display flex\n flex-flow column nowrap\n align-items stretch\n\n$elastic-content\n // Those backgrounds give a visual information that the content is scrollable\n background linear-gradient(white 30%, rgba(255, 255, 255, 0)),\n linear-gradient(rgba(255, 255, 255, 0), white 70%) 0 100%,\n linear-gradient(rgba(214, 216, 218, .25) 0, rgba(214, 216, 218, .25) 25%, rgba(255, 255, 255, 0) 26%, rgba(255, 255, 255, 0) 100%),\n linear-gradient(rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0) 74%, rgba(214, 216, 218, .25) 75%, rgba(214, 216, 218, .25) 100%) 0 100%\n background-repeat no-repeat\n background-color var(--white)\n background-size 100% rem(32), 100% rem(32), 100% rem(8), 100% rem(8)\n background-attachment local, local, scroll, scroll\n background-clip padding-box\n overflow auto\n -webkit-overflow-scrolling touch\n\n$elastic-bar\n flex 0 0 auto\n\n// One column layout\n$app\n box-sizing border-box\n display flex\n max-width 100%\n width 100%\n height 100%\n\n main\n display flex\n flex-direction column\n flex 0 0 auto\n\n main,\n main > [role=contentinfo], // Deprecated\n main > [role=main]\n position relative\n display flex\n flex-direction column\n flex 1 1 auto\n box-sizing border-box\n height 100%\n overflow-x hidden\n overflow-y auto\n\n +medium-screen()\n display block\n\n // iPhone X environment tweak\n main\n padding-left env(safe-area-inset-left)\n padding-right env(safe-area-inset-right)\n padding-bottom env(safe-area-inset-bottom)\n\n main,\n main > [role=contentinfo], // Deprecated\n main > [role=main]\n display block\n overflow visible\n\n // These pseudo-element are \"ghost\" elements replacing bar and nav\n &:before\n &:after\n content ''\n display block\n\n &:before\n height barHeight\n\n &:after\n height navHeight\n\n// STICKY layout\n// When you want a sidebar and you want it to act like a sticky footer on mobile\n$app-2panes-sticky\n @extend $app\n flex 0 0 100%\n align-items stretch\n\n & > aside\n display flex\n flex-direction column\n flex 0 0 auto\n\n main,\n main > [role=contentinfo], // Deprecated\n main > [role=main]\n height auto\n\n +medium-screen()\n > aside\n position fixed\n bottom 0\n left 0\n display block\n z-index $nav-index\n width 100%\n","@require '../settings/z-index'\n@require '../settings/breakpoints'\n@require '../objects/layouts'\n@require '../tools/mixins'\n\n/*------------------------------------*\\\n Modals\n ======\n\n This file contains all needs for modals\n\\*------------------------------------*/\n\n// Modal sizes\nxsmall-width = rem(384)\nsmall-width = rem(544)\nmedium-width = rem(576)\nlarge-width = rem(640)\nxlarge-width = rem(800)\nxxlarge-width = rem(960)\n\n// Modal margins\nxsmall-margin = rem(8)\nsmall-margin = rem(8)\nmedium-margin = rem(24)\nlarge-margin = rem(48)\nxlarge-margin = rem(48)\nxxlarge-margin = rem(48)\n\n// Modal paddings\ntiny-padding = rem(16)\nsmall-padding = rem(24)\nmedium-padding = rem(32)\nlarge-padding = rem(48)\nxlarge-padding = rem(48)\nxxlarge-padding = rem(48)\n\n\n$modals\n position relative\n z-index $modal-index\n\n$modal-wrapper\n position fixed\n top 0\n left 0\n display flex\n flex-direction column\n align-items center\n box-sizing border-box\n width 100vw\n height 100%\n overflow-y auto\n padding large-margin\n\n +small-screen()\n justify-content center\n padding medium-margin\n\n +tiny-screen()\n padding small-margin\n\n$modal\n @extend $elastic\n position relative\n border-radius rem(8)\n max-height 100%\n max-width 100%\n background-color var(--white)\n color var(--charcoalGrey)\n\nfor size in 'xsmall' 'small' 'medium' 'large' 'xlarge' 'xxlarge'\n $modal--{size}\n width lookup(size + '-width')\n\n $max-width=lookup(size + '-width') + lookup(size + '-margin') * 2\n @media (max-width: $max-width)\n width 100%\n\n$modal-wrapper--fullscreen\n +small-screen()\n padding 0\n\n$modal--fullscreen\n +small-screen()\n height 100%\n width 100%\n border-radius 0\n box-sizing border-box\n\n$modal-header\n @extend $elastic-bar\n margin 0 0 rem(16)\n padding (medium-padding - rem(5)) rem(48) 0 medium-padding\n overflow visible\n min-height rem(40)\n\n h2\n margin 0\n font-weight bold\n\n +tiny-screen()\n margin-bottom rem(8)\n padding (small-padding - rem(5)) rem(32) 0 small-padding\n\n h2\n font-size rem(20)\n\n$modal-header--branded\n @extend $modal-header\n padding rem(16 48)\n\n img\n display block\n max-height rem(56)\n margin 0 auto\n\n$modal-header-icon\n display flex\n align-items center\n justify-content center\n margin 0 0 rem(16)\n max-width 100%\n\n > * // @stylint ignore\n max-width inherit\n\n$modal-header-icon--ghost\n @extend $modal-header-icon\n position absolute\n left 0\n right 0\n top rem(16)\n margin rem(8) 0\n opacity 0\n max-height rem(32)\n transition opacity 150ms ease-in, top 150ms 50ms ease-in\n\n > * // @stylint ignore\n max-height inherit\n\n$modal-header-icon--ghost-active\n top 0\n opacity 1\n transition opacity 150ms 50ms ease-in, top 150ms ease-in\n\n$modal-header--small\n padding (small-padding - rem(5)) rem(48) 0 small-padding\n\n +tiny-screen()\n padding (tiny-padding - rem(5)) rem(32) 0 tiny-padding\n\n$modal-header--large\n padding (large-padding - rem(5)) rem(48) 0 large-padding\n\n +small-screen()\n padding (medium-padding - rem(5)) rem(32) 0 medium-padding\n\n$modal-header-app\n display flex\n align-items center\n font-size rem(20)\n color var(--charcoalGrey)\n\n$modal-header-app-editor\n font-weight normal\n\n$modal-header-app-icon\n height rem(18)\n margin-right rem(8)\n\n$modal-content-fixed\n border-bottom rem(1) solid var(--dividerColor)\n flex 0 0 auto\n padding 0 medium-padding\n\n$modal-content-fixed--small\n padding 0 small-padding\n\n +tiny-screen()\n padding 0 tiny-padding\n\n$modal-content-fixed--large\n padding 0 large-padding\n\n +tiny-screen()\n padding 0 medium-padding\n\n$modal-content\n @extend $elastic-content\n padding 0 medium-padding\n\n &:last-child\n padding-bottom medium-padding\n border-bottom-right-radius rem(8)\n border-bottom-left-radius rem(8)\n\n +tiny-screen()\n padding 0 small-padding\n\n &:last-child\n padding-bottom small-padding\n\n$modal-content--small\n padding 0 small-padding\n\n &:last-child\n padding-bottom small-padding\n\n +tiny-screen()\n padding 0 tiny-padding\n\n &:last-child\n padding-bottom tiny-padding\n\n$modal-content--large\n padding 0 large-padding\n\n &:last-child\n padding-bottom large-padding\n\n +small-screen()\n padding 0 medium-padding\n\n &:last-child\n padding-bottom medium-padding\n\n$modal-footer\n @extend $elastic-bar\n padding tiny-padding (small-padding - rem(4)) (small-padding - rem(4))\n\n$modal-footer--button\n button\n margin-bottom rem(4)\n\n +small-screen()\n min-width calc(50% - .5rem)\n\n$modal-section\n border-top rem(1) solid var(--dividerColor)\n\ncross-size=rem(40)\n\n$modal-close\n box-sizing border-box\n position absolute\n top rem(24)\n right rem(24)\n margin 0\n padding rem(8)\n background-color transparent\n border 0\n cursor pointer\n display block\n width cross-size\n height cross-size\n z-index 1\n\n +tiny-screen()\n top rem(13)\n right rem(16)\n\n$modal-close--small\n top rem(16)\n right rem(16)\n\n +tiny-screen()\n top rem(5)\n right rem(8)\n\n$modal-header--closable\n padding-right cross-size + rem(32)\n\n\n$modal-close--large\n top rem(40)\n right rem(40)\n\n +small-screen()\n top rem(21)\n right rem(24)\n\n$modal-close--notitle\n top rem(6)\n right rem(6)\n\n$modal--hidden\n overflow hidden\n\n$modal-back-button\n top rem(6)\n left rem(6)\n color var(--coolGrey)\n\n +small-screen()\n top 0\n left 0\n","@require '../../stylus/tools/mixins'\n@require '../../stylus/settings/palette'\n@require '../../stylus/components/button'\n@require '../../stylus/utilities/display'\n@require '../../stylus/components/modals'\n\n.c-modal-container\n @extend $modals\n\n.c-modal-wrapper\n @extend $modal-wrapper\n\n &.c-modal-wrapper--fullscreen\n @extend $modal-wrapper--fullscreen\n\n.c-modal\n @extend $modal\n\n &.c-modal--fullscreen\n @extend $modal--fullscreen\n\n.c-modal--xsmall\n @extend $modal--xsmall\n\n.c-modal--small\n @extend $modal--small\n\n.c-modal--medium\n @extend $modal--medium\n\n.c-modal--large\n @extend $modal--large\n\n.c-modal--xlarge\n @extend $modal--xlarge\n\n.c-modal--xxlarge\n @extend $modal--xxlarge\n\n\n.c-modal-header\n @extend $modal-header\n\n .c-modal--closable &\n @extend $modal-header--closable\n\n.c-modal-header--branded\n @extend $modal-header--branded\n\n.c-modal-illu-header\n @extend $modal-header-icon\n\n.c-modal-illu-header--ghost\n @extend $modal-header-icon--ghost\n\n &.is-active\n @extend $modal-header-icon--ghost-active\n\n.c-modal-app\n @extend $modal-header-app\n\n.c-app-editor\n @extend $modal-header-app-editor\n\n.c-modal-app-icon\n @extend $modal-header-app-icon\n\n.c-modal-footer\n @extend $modal-footer\n\n.c-modal-footer--button\n @extend $modal-footer--button\n\n.c-modal-section\n @extend $modal-section\n\n.c-modal-content\n @extend $modal-content\n\n.c-modal-content-fixed\n @extend $modal-content-fixed\n\n.c-modal--small-spacing\n .c-modal-close\n @extend $modal-close--small\n .c-modal-header\n @extend $modal-header--small\n .c-modal-content\n @extend $modal-content--small\n .c-modal-content-fixed\n @extend $modal-content-fixed--small\n\n.c-modal--large-spacing\n .c-modal-close\n @extend $modal-close--large\n .c-modal-header\n @extend $modal-header--large\n .c-modal-content\n @extend $modal-content--large\n .c-modal-content-fixed\n @extend $modal-content-fixed--large\n\n.c-modal-close\n @extend $modal-close\n\n.c-modal-close--notitle\n @extend $modal-close--notitle\n\n.c-modal--overflowHidden\n @extend $modal--hidden\n\n.c-modal-close--notitle + .c-modal-content\n margin-top rem(48)\n\n.c-modal-back-button\n @extend $modal-back-button\n","@require '../tools/mixins'\n\n/*------------------------------------*\\\n Breakpoints\n =====\n\\*------------------------------------*/\n\n// variables\n\nBP-teeny = 375\nBP-tiny = 480\nBP-small = 768\nBP-medium = 1023\nBP-large = 1200\nBP-extra-large = 1439\n\n// Standard breakpoints collection for utilities\nbreakpoints = {\n 'none': '',\n 'tiny': 't',\n 'small': 's',\n 'medium': 'm',\n}\n\n/*\n Breakpoints\n\n This is the collection of available breakpoint variables:<br><br>\n - `BP-teeny` - 375px\n - `BP-tiny` - 480px\n - `BP-small` - 768px\n - `BP-medium` - 1023px\n - `BP-large` - 1200px\n - `BP-extra-large` - 1439px\n\n <br>Also we have a standard breakpoints collection meant to be used as suffixes for some utility classes<br>\n\n If you want a utility class to trigger only at defined breakpoints you can use those:<br><br>\n - `-t` - refers to `tiny` breakpoint (max-width: 480px)\n - `-s` - refers to `small` breakpoint (max-width: 768px)\n - `-m` - refers to `medium` breakpoint (max-width: 1023px)\n\n Styleguide Settings.breakpoints\n*/\n\n/*\n Media Queries mixins\n\n You can use these mixins with no arguments and they will output\n the desired a `max-width` media-query. Use the direction argument\n to set it to `min`.\n\n Styleguide Settings.breakpoints.mixins\n*/\n\n// mixins\n// @stylint off\nsize-helper(direction, size)\n direction == 'min' ? size + 1 : size\n\n/*\n teeny-screen()\n\n teeny-screen() Refers to (max-width: 375px)\n teeny-screen('min') Refers to (min-width: 376px)\n\n Weight: -6\n\n Styleguide Settings.breakpoints.mixins.teeny\n*/\nteeny-screen(direction='max')\n @media ({direction}-width: rem(size-helper(direction, BP-teeny)))\n {block}\n\n/*\n tiny-screen()\n\n tiny-screen() Refers to (max-width: 480px)\n tiny-screen('min') Refers to (min-width: 481px)\n\n Weight: -5\n\n Styleguide Settings.breakpoints.mixins.tiny\n*/\ntiny-screen(direction='max')\n @media ({direction}-width: rem(size-helper(direction, BP-tiny)))\n {block}\n\n/*\n small-screen()\n\n small-screen() Refers to (max-width: 768px)\n small-screen('min') Refers to (min-width: 769px)\n\n Weight: -4\n\n Styleguide Settings.breakpoints.mixins.small\n*/\nsmall-screen(direction='max')\n @media ({direction}-width: rem(size-helper(direction, BP-small)))\n {block}\n\n/*\n medium-screen()\n\n medium-screen() Refers to (max-width: 1023px)\n medium-screen('min') Refers to (min-width: 1024px)\n\n Weight: -3\n\n Styleguide Settings.breakpoints.mixins.medium\n*/\nmedium-screen(direction='max')\n @media ({direction}-width: rem(size-helper(direction, BP-medium)))\n {block}\n\n/*\n large-screen()\n\n large-screen() Refers to (max-width: 1200px)\n large-screen('min') Refers to (min-width: 1201px)\n\n Weight: -2\n\n Styleguide Settings.breakpoints.mixins.large\n*/\nlarge-screen(direction='max')\n @media ({direction}-width: rem(size-helper(direction, BP-large)))\n {block}\n\n/*\n extra-large-screen()\n\n extra-large-screen() Refers to (max-width: 1439px)\n extra-large-screen('min') Refers to (min-width: 1440px)\n\n Weight: -1\n\n Styleguide Settings.breakpoints.mixins.extra-large\n*/\nextra-large-screen(direction='max')\n @media ({direction}-width: rem(size-helper(direction, BP-extra-large)))\n {block}\n\n// mixins named\n\n/*\n small-device()\n\n Refers to (max-width: 543px), (max-height: 375px)\n Triggers when the viewport has a width smaller than 543px OR a height smaller than 375px\n\n Weight: 0\n\n Styleguide Settings.breakpoints.mixins.small-device\n*/\n\nsmall-device()\n @media (max-width: rem(size-helper('max', BP-tiny))), (max-height: rem(size-helper('max', BP-teeny)))\n {block}\n\n/*\n medium-device()\n\n Refers to (min-width: 543px) and (min-height: 375px)\n Triggers when the viewport has a width bigger than 543px AND a height bigger than 375px\n\n Weight: 0\n\n Styleguide Settings.breakpoints.mixins.medium-device\n*/\n\nmedium-device()\n @media (min-width: rem(size-helper('min', BP-tiny))) and (min-height: rem(size-helper('min', BP-teeny)))\n {block}\n\n/*\n desktop()\n\n Refers to (min-width: 1024px)\n\n Weight: 0\n\n Styleguide Settings.breakpoints.mixins.desktop\n*/\ndesktop()\n @media (min-width: rem(size-helper('min', BP-medium)))\n {block}\n\n/*\n tablet()\n\n Refers to (min-width: 769px) and (max-width: 1023px)\n\n Weight: 1\n\n Styleguide Settings.breakpoints.mixins.tablet\n*/\ntablet()\n @media (min-width: rem(size-helper('min', BP-small))) and (max-width: rem(size-helper('max', BP-medium)))\n {block}\n\n/*\n mobile()\n\n Refers to small-screen() which is (max-width: 768px)\n\n Weight: 2\n\n Styleguide Settings.breakpoints.mixins.mobile\n*/\nmobile()\n +small-screen()\n {block}\n\n/*\n gt-mobile()\n\n Refers to (min-width: 769px)\n\n Weight: 3\n\n Styleguide Settings.breakpoints.mixins.gt-mobile\n*/\ngt-mobile()\n @media (min-width: rem(size-helper('min', BP-small)))\n {block}\n\n/*\n gt-tablet()\n\n Refers to (min-width: 1024px)\n\n Weight: 4\n\n Styleguide Settings.breakpoints.mixins.gt-tablet\n*/\ngt-tablet()\n @media (min-width: rem(size-helper('min', BP-medium)))\n {block}\n\n/*\n lt-desktop()\n\n Refers to medium-screen() which is (max-width: 1023px)\n\n Weight: 5\n\n Styleguide Settings.breakpoints.mixins.lt-desktop\n*/\nlt-desktop()\n +medium-screen()\n {block}\n// @stylint on\n"],sourceRoot:""}]),t.locals={"CozyTheme--normal":"cozy-ui-bar-CozyTheme--normal--GgDII","c-modal":"cozy-ui-bar-c-modal--2ICub","c-modal-content":"cozy-ui-bar-c-modal-content--KVDws","c-modal-header":"cozy-ui-bar-c-modal-header--XED91","c-modal-header--branded":"cozy-ui-bar-c-modal-header--branded--uEj-8","c-modal-footer":"cozy-ui-bar-c-modal-footer--14fzp","c-modal-container":"cozy-ui-bar-c-modal-container--30qmf","c-modal-wrapper":"cozy-ui-bar-c-modal-wrapper--17kzj","c-modal--xsmall":"cozy-ui-bar-c-modal--xsmall--35998","c-modal--small":"cozy-ui-bar-c-modal--small--3G05m","c-modal--medium":"cozy-ui-bar-c-modal--medium--39Q8p","c-modal--large":"cozy-ui-bar-c-modal--large--NVdKg","c-modal--xlarge":"cozy-ui-bar-c-modal--xlarge--2JDmw","c-modal--xxlarge":"cozy-ui-bar-c-modal--xxlarge--2GW6J","c-modal-illu-header":"cozy-ui-bar-c-modal-illu-header--2k0gQ","c-modal-illu-header--ghost":"cozy-ui-bar-c-modal-illu-header--ghost--3zgoT","is-active":"cozy-ui-bar-is-active--M5uQG","c-modal--small-spacing":"cozy-ui-bar-c-modal--small-spacing--2NmIi","c-modal--large-spacing":"cozy-ui-bar-c-modal--large-spacing--oIddB","c-modal-app":"cozy-ui-bar-c-modal-app--1Vluy","c-app-editor":"cozy-ui-bar-c-app-editor--2Ha3Y","c-modal-app-icon":"cozy-ui-bar-c-modal-app-icon--2Pyc-","c-modal-content-fixed":"cozy-ui-bar-c-modal-content-fixed--2C_-7","c-modal-footer--button":"cozy-ui-bar-c-modal-footer--button--3yPje","c-modal-section":"cozy-ui-bar-c-modal-section--2tQ5k","c-modal-close":"cozy-ui-bar-c-modal-close--HM_QO","c-modal--closable":"cozy-ui-bar-c-modal--closable--2sytJ","c-modal-close--notitle":"cozy-ui-bar-c-modal-close--notitle--2a-O4","c-modal--overflowHidden":"cozy-ui-bar-c-modal--overflowHidden--JNfIY","c-modal-back-button":"cozy-ui-bar-c-modal-back-button--aTdxE","c-modal-wrapper--fullscreen":"cozy-ui-bar-c-modal-wrapper--fullscreen--12m40","c-modal--fullscreen":"cozy-ui-bar-c-modal--fullscreen--1k9gf",spin:"cozy-ui-bar-spin--1NeSh",shake:"cozy-ui-bar-shake--8T61M"}},function(e,t,n){var r=n(467);e.exports=function(e,t){if(null==e)return{};var n,o,i=r(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},function(e,t,n){var r=n(116);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},function(e,t,n){var r=n(211),o=n(366),i=n(149),a=n(213);e.exports=function(e,t){return r(e)||o(e,t)||i(e,t)||a()}},function(e,t,n){var r=n(83);function o(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}e.exports=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var u=i?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(n,a,u):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.QueryDefinition=t.MutationTypes=t.Mutations=t.getDoctypeFromOperation=t.uploadFile=t.removeReferencedBy=t.addReferencedBy=t.removeReferencesTo=t.addReferencesTo=t.deleteDocument=t.updateDocuments=t.updateDocument=t.createDocument=t.isAGetByIdQuery=t.Q=void 0;var o=r(n(2)),i=r(n(4)),a=r(n(6)),u=r(n(26)),c=r(n(507));n(22);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var f=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,i.default)(this,e),this.doctype=t.doctype,this.id=t.id,this.ids=t.ids,this.selector=t.selector,this.fields=t.fields,this.indexedFields=t.indexedFields,this.partialFilter=t.partialFilter,this.sort=t.sort,this.includes=t.includes,this.referenced=t.referenced,this.limit=t.limit,this.skip=t.skip,this.cursor=t.cursor,this.bookmark=t.bookmark}return(0,a.default)(e,[{key:"checkSortOrder",value:function(e){var t=e.sort,n=e.selector,r=e.indexedFields,o=this.sort||t,i=this.selector||n||{},a=this.indexedFields||r;if(o){var u=a||Object.keys(i);if(u&&!(u.length<1))if(o.length>u.length)console.warn("You should not sort on non-indexed fields.\n\n Sort: ".concat(JSON.stringify(o),"\n\n Indexed fields: ").concat(u));else for(var c=0;c<o.length;c++)if(Object.keys(o[c])[0]!==u[c])return void console.warn("The sort order should be the same than the indexed fields.\n\n Sort: ".concat(JSON.stringify(o),"\n\n Indexed fields: ").concat(u,"\n"))}}},{key:"checkSelector",value:function(e){(0,c.default)(e,["$exists",!1])&&console.warn('The "$exists: false" predicate should be defined as a partial index for better performance.\n\n Selector: '.concat(e)),(0,c.default)(e,"$ne")&&console.info("The use of the $ne operator is more efficient with a partial index.\n\n Selector: ".concat(e))}},{key:"getById",value:function(t){if(!t)throw new Error("getById called with undefined id");return new e(l(l({},this.toDefinition()),{},{id:t}))}},{key:"getByIds",value:function(t){return new e(l(l({},this.toDefinition()),{},{ids:t}))}},{key:"where",value:function(t){return this.checkSortOrder({selector:t}),this.checkSelector(t),new e(l(l({},this.toDefinition()),{},{selector:t}))}},{key:"select",value:function(t){return new e(l(l({},this.toDefinition()),{},{fields:t}))}},{key:"indexFields",value:function(t){return this.checkSortOrder({indexedFields:t}),new e(l(l({},this.toDefinition()),{},{indexedFields:t}))}},{key:"partialIndex",value:function(t){return new e(l(l({},this.toDefinition()),{},{partialFilter:t}))}},{key:"sortBy",value:function(t){if(!(0,u.default)(t))throw new Error('Invalid sort, should be an array ([{ label: "desc"}, { name: "asc"}]), you passed '.concat(JSON.stringify(t),"."));return this.checkSortOrder({sort:t}),new e(l(l({},this.toDefinition()),{},{sort:t}))}},{key:"include",value:function(t){if(!Array.isArray(t))throw new Error("include() takes an array of relationship names");return new e(l(l({},this.toDefinition()),{},{includes:t}))}},{key:"limitBy",value:function(t){return new e(l(l({},this.toDefinition()),{},{limit:t}))}},{key:"UNSAFE_noLimit",value:function(){return new e(l(l({},this.toDefinition()),{},{limit:null}))}},{key:"offset",value:function(t){return new e(l(l({},this.toDefinition()),{},{bookmark:void 0,cursor:void 0,skip:t}))}},{key:"offsetCursor",value:function(t){return new e(l(l({},this.toDefinition()),{},{bookmark:void 0,skip:void 0,cursor:t}))}},{key:"offsetBookmark",value:function(t){return new e(l(l({},this.toDefinition()),{},{skip:void 0,cursor:void 0,bookmark:t}))}},{key:"referencedBy",value:function(t){return new e(l(l({},this.toDefinition()),{},{referenced:t}))}},{key:"toDefinition",value:function(){return{doctype:this.doctype,id:this.id,ids:this.ids,selector:this.selector,fields:this.fields,indexedFields:this.indexedFields,partialFilter:this.partialFilter,sort:this.sort,includes:this.includes,referenced:this.referenced,limit:this.limit,skip:this.skip,cursor:this.cursor,bookmark:this.bookmark}}}]),e}();t.QueryDefinition=f;t.Q=function(e){return new f({doctype:e})};t.isAGetByIdQuery=function(e){if(!e)return!1;var t=Object.values(e);return 0!==t.length&&(2===t.filter((function(e){return void 0!==e})).length&&void 0!==e.id)};var d=function(e){return{mutationType:C.CREATE_DOCUMENT,document:e}};t.createDocument=d;var p=function(e){return{mutationType:C.UPDATE_DOCUMENT,document:e}};t.updateDocument=p;var h=function(e){return{mutationType:C.UPDATE_DOCUMENTS,documents:e}};t.updateDocuments=h;var m=function(e){return{mutationType:C.DELETE_DOCUMENT,document:e}};t.deleteDocument=m;var y=function(e,t){return{mutationType:C.ADD_REFERENCES_TO,referencedDocuments:t,document:e}};t.addReferencesTo=y;var v=function(e,t){return{mutationType:C.REMOVE_REFERENCES_TO,referencedDocuments:t,document:e}};t.removeReferencesTo=v;var g=function(e,t){return{mutationType:C.ADD_REFERENCED_BY,referencedDocuments:t,document:e}};t.addReferencedBy=g;var b=function(e,t){return{mutationType:C.REMOVE_REFERENCED_BY,referencedDocuments:t,document:e}};t.removeReferencedBy=b;var w=function(e,t){return{mutationType:C.UPLOAD_FILE,file:e,dirPath:t}};t.uploadFile=w;t.getDoctypeFromOperation=function(e){if(!e.mutationType)return e.doctype;var t=e.mutationType;switch(t){case"CREATE_DOCUMENT":case"UPDATE_DOCUMENT":return e.document._type;case"UPDATE_DOCUMENTS":return e.documents[0]._type;case"DELETE_DOCUMENT":return e.document._type;case"ADD_REFERENCES_TO":case"UPLOAD_FILE":throw new Error("Not implemented");default:throw new Error("Unknown mutationType ".concat(t))}};var x={createDocument:d,updateDocument:p,updateDocuments:h,deleteDocument:m,addReferencesTo:y,removeReferencesTo:v,addReferencedBy:g,removeReferencedBy:b,uploadFile:w};t.Mutations=x;var C={CREATE_DOCUMENT:"CREATE_DOCUMENT",UPDATE_DOCUMENT:"UPDATE_DOCUMENT",UPDATE_DOCUMENTS:"UPDATE_DOCUMENTS",DELETE_DOCUMENT:"DELETE_DOCUMENT",ADD_REFERENCES_TO:"ADD_REFERENCES_TO",REMOVE_REFERENCES_TO:"REMOVE_REFERENCES_TO",ADD_REFERENCED_BY:"ADD_REFERENCED_BY",REMOVE_REFERENCED_BY:"REMOVE_REFERENCED_BY",UPLOAD_FILE:"UPLOAD_FILE"};t.MutationTypes=C},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;n(21);t.default={}},function(e,t,n){"use strict";n.r(t);var r=n(12),o=n.n(r),i=n(4),a=n.n(i),u=n(6),c=n.n(u),s=n(11),l=n.n(s),f=n(8),d=n.n(f),p=n(10),h=n.n(p),m=n(5),y=n.n(m),v=n(2),g=n.n(v),b=n(0),w=n.n(b),x=n(1),C=n.n(x),k=n(135),S=n.n(k),_=n(102),A=n(336),O=n.n(A),E=function(e){return'The "'.concat(e,"\" locale isn't supported by date-fns. or has not been included in the build. Check if you have configured a ContextReplacementPlugin that is too restrictive.")},B=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:P,r={};try{r[t]=n(242)("./".concat(t,"/index.js"))}catch(e){console.warn(E(t))}if(e&&e!==t)try{r[e]=n(242)("./".concat(e,"/index.js"))}catch(t){console.warn(E(e))}return function(t,n){return O()(t,n,{locale:r[e]})}};function j(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h()(this,n)}}n.d(t,"DEFAULT_LANG",(function(){return P})),n.d(t,"I18nContext",(function(){return T})),n.d(t,"I18n",(function(){return z})),n.d(t,"translate",(function(){return I})),n.d(t,"useI18n",(function(){return D})),n.d(t,"createUseI18n",(function(){return R})),n.d(t,"initTranslation",(function(){return _.b})),n.d(t,"extend",(function(){return _.a}));var P="en",T=w.a.createContext(),z=function(e){d()(n,e);var t=j(n);function n(e){var r;return a()(this,n),r=t.call(this,e),g()(l()(r),"UNSAFE_componentWillReceiveProps",(function(e){e.lang!==r.props.lang&&r.init(e)})),r.init(r.props),r}return c()(n,[{key:"init",value:function(e){var t=e.polyglot,n=e.lang,r=e.dictRequire,o=e.context,i=e.defaultLang;this.translator=t||Object(_.b)(n,r,o,i),this.format=B(n,i),this.t=this.translator.t.bind(this.translator),this.contextValue=this.getContextValue(e)}},{key:"getContextValue",value:function(e){return{t:this.t,f:this.format,lang:(e||this.props).lang}}},{key:"getChildContext",value:function(){return this.contextValue}},{key:"render",value:function(){return w.a.createElement(T.Provider,{value:this.contextValue},this.props.children)}}]),n}(b.Component);z.propTypes={lang:C.a.string.isRequired,polyglot:C.a.object,dictRequire:C.a.func,context:C.a.string,defaultLang:C.a.string},z.defaultProps={defaultLang:P},z.childContextTypes={t:C.a.func,f:C.a.func,lang:C.a.string};var I=function(){return function(e){var t=function(t){var n=Object(b.useContext)(T);return w.a.createElement(e,o()({},t,{t:n&&n.t,f:n&&n.f,lang:n&&n.lang}))};return t.displayName="withI18n(".concat(e.displayName||e.name,")"),t}},D=function(){return Object(b.useContext)(T)},R=function(e){return function(){var t=(D()||{lang:P}).lang;return Object(b.useMemo)((function(){var n=new S.a({lang:t,phrases:e[t]}),r=B(t);return{t:n.t.bind(n),f:r,lang:t}}),[t])}};t.default=z},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"checkApp",{enumerable:!0,get:function(){return i.checkApp}}),Object.defineProperty(t,"getDeviceName",{enumerable:!0,get:function(){return o.getDeviceName}}),Object.defineProperty(t,"getPlatform",{enumerable:!0,get:function(){return r.getPlatform}}),Object.defineProperty(t,"hasDevicePlugin",{enumerable:!0,get:function(){return a.hasDevicePlugin}}),Object.defineProperty(t,"hasInAppBrowserPlugin",{enumerable:!0,get:function(){return a.hasInAppBrowserPlugin}}),Object.defineProperty(t,"hasNetworkInformationPlugin",{enumerable:!0,get:function(){return a.hasNetworkInformationPlugin}}),Object.defineProperty(t,"hasSafariPlugin",{enumerable:!0,get:function(){return a.hasSafariPlugin}}),Object.defineProperty(t,"isAndroid",{enumerable:!0,get:function(){return r.isAndroid}}),Object.defineProperty(t,"isAndroidApp",{enumerable:!0,get:function(){return r.isAndroidApp}}),Object.defineProperty(t,"isCordova",{enumerable:!0,get:function(){return u.isCordova}}),Object.defineProperty(t,"isFlagshipApp",{enumerable:!0,get:function(){return r.isFlagshipApp}}),Object.defineProperty(t,"isIOS",{enumerable:!0,get:function(){return r.isIOS}}),Object.defineProperty(t,"isIOSApp",{enumerable:!0,get:function(){return r.isIOSApp}}),Object.defineProperty(t,"isMobile",{enumerable:!0,get:function(){return r.isMobile}}),Object.defineProperty(t,"isMobileApp",{enumerable:!0,get:function(){return r.isMobileApp}}),Object.defineProperty(t,"isWebApp",{enumerable:!0,get:function(){return r.isWebApp}}),Object.defineProperty(t,"nativeLinkOpen",{enumerable:!0,get:function(){return c.nativeLinkOpen}}),Object.defineProperty(t,"openDeeplinkOrRedirect",{enumerable:!0,get:function(){return s.openDeeplinkOrRedirect}}),Object.defineProperty(t,"startApp",{enumerable:!0,get:function(){return i.startApp}});var r=n(144),o=n(349),i=n(357),a=n(147),u=n(103),c=n(358),s=n(359)},function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"c",(function(){return c}));var r,o=n(139),i=function(){if(!r)throw new Error("client not initialized in cozy-bar");return r},a={init:function(e){return(r=o.b).init(e)},get:{app:function(){var e;return(e=i().get).app.apply(e,arguments)},apps:function(){var e;return(e=i().get).apps.apply(e,arguments)},context:function(){var e;return(e=i().get).context.apply(e,arguments)},storageData:function(){var e;return(e=i().get).storageData.apply(e,arguments)},iconProps:function(){var e;return(e=i().get).iconProps.apply(e,arguments)},cozyURL:function(){var e;return(e=i().get).cozyURL.apply(e,arguments)},settingsAppURL:function(){var e;return(e=i().get).settingsAppURL.apply(e,arguments)}},updateAccessToken:function(){var e;return(e=i()).updateAccessToken.apply(e,arguments)},logout:function(){var e;return(e=i()).logout.apply(e,arguments)},cozyFetchJSON:function(){var e;return(e=i()).cozyFetchJSON.apply(e,arguments)},getStack:i,getIntents:function(){return i().get.intents()}};t.b=a;var u=a.cozyFetchJSON,c=a.getIntents},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){"use strict";var r=SyntaxError,o=Function,i=TypeError,a=function(e){try{return o('"use strict"; return ('+e+").constructor;")()}catch(e){}},u=Object.getOwnPropertyDescriptor;if(u)try{u({},"")}catch(e){u=null}var c=function(){throw new i},s=u?function(){try{return c}catch(e){try{return u(arguments,"callee").get}catch(e){return c}}}():c,l=n(168)(),f=Object.getPrototypeOf||function(e){return e.__proto__},d={},p="undefined"==typeof Uint8Array?void 0:f(Uint8Array),h={"%AggregateError%":"undefined"==typeof AggregateError?void 0:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"%ArrayIteratorPrototype%":l?f([][Symbol.iterator]()):void 0,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":d,"%AsyncGenerator%":d,"%AsyncGeneratorFunction%":d,"%AsyncIteratorPrototype%":d,"%Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"%BigInt%":"undefined"==typeof BigInt?void 0:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?void 0:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?void 0:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":d,"%Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":l?f(f([][Symbol.iterator]())):void 0,"%JSON%":"object"==typeof JSON?JSON:void 0,"%Map%":"undefined"==typeof Map?void 0:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&l?f((new Map)[Symbol.iterator]()):void 0,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?void 0:Promise,"%Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?void 0:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&l?f((new Set)[Symbol.iterator]()):void 0,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":l?f(""[Symbol.iterator]()):void 0,"%Symbol%":l?Symbol:void 0,"%SyntaxError%":r,"%ThrowTypeError%":s,"%TypedArray%":p,"%TypeError%":i,"%Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?void 0:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet},m={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},y=n(89),v=n(167),g=y.call(Function.call,Array.prototype.concat),b=y.call(Function.apply,Array.prototype.splice),w=y.call(Function.call,String.prototype.replace),x=y.call(Function.call,String.prototype.slice),C=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,k=/\\(\\)?/g,S=function(e){var t=x(e,0,1),n=x(e,-1);if("%"===t&&"%"!==n)throw new r("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new r("invalid intrinsic syntax, expected opening `%`");var o=[];return w(e,C,(function(e,t,n,r){o[o.length]=n?w(r,k,"$1"):t||e})),o},_=function(e,t){var n,o=e;if(v(m,o)&&(o="%"+(n=m[o])[0]+"%"),v(h,o)){var u=h[o];if(u===d&&(u=function e(t){var n;if("%AsyncFunction%"===t)n=a("async function () {}");else if("%GeneratorFunction%"===t)n=a("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=a("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&(n=f(o.prototype))}return h[t]=n,n}(o)),void 0===u&&!t)throw new i("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:o,value:u}}throw new r("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new i("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new i('"allowMissing" argument must be a boolean');var n=S(e),o=n.length>0?n[0]:"",a=_("%"+o+"%",t),c=a.name,s=a.value,l=!1,f=a.alias;f&&(o=f[0],b(n,g([0,1],f)));for(var d=1,p=!0;d<n.length;d+=1){var m=n[d],y=x(m,0,1),w=x(m,-1);if(('"'===y||"'"===y||"`"===y||'"'===w||"'"===w||"`"===w)&&y!==w)throw new r("property names with quotes must have matching quotes");if("constructor"!==m&&p||(l=!0),v(h,c="%"+(o+="."+m)+"%"))s=h[c];else if(null!=s){if(!(m in s)){if(!t)throw new i("base intrinsic for "+e+" exists, but the property is not available.");return}if(u&&d+1>=n.length){var C=u(s,m);s=(p=!!C)&&"get"in C&&!("originalValue"in C.get)?C.get:s[m]}else p=v(s,m),s=s[m];p&&!l&&(h[c]=s)}}return s}},function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(20),o=n(3);Object.defineProperty(t,"__esModule",{value:!0});var i={CozyLink:!0,StackLink:!0,compose:!0,QueryDefinition:!0,Q:!0,Mutations:!0,MutationTypes:!0,getDoctypeFromOperation:!0,Association:!0,HasMany:!0,HasOne:!0,HasOneInPlace:!0,HasManyInPlace:!0,HasManyTriggers:!0,isReferencedBy:!0,isReferencedById:!0,getReferencedBy:!0,getReferencedById:!0,dehydrate:!0,generateWebLink:!0,rootCozyUrl:!0,InvalidCozyUrlError:!0,InvalidProtocolError:!0,cancelable:!0,isQueryLoading:!0,hasQueryBeenLoaded:!0,getQueryFromState:!0,Registry:!0,RealTimeQueries:!0,manifest:!0,CozyProvider:!0,withMutation:!0,withMutations:!0,Query:!0,queryConnect:!0,queryConnectFlat:!0,withClient:!0,models:!0,fetchPolicies:!0,BulkEditError:!0};Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"CozyLink",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"StackLink",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"compose",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"QueryDefinition",{enumerable:!0,get:function(){return l.QueryDefinition}}),Object.defineProperty(t,"Q",{enumerable:!0,get:function(){return l.Q}}),Object.defineProperty(t,"Mutations",{enumerable:!0,get:function(){return l.Mutations}}),Object.defineProperty(t,"MutationTypes",{enumerable:!0,get:function(){return l.MutationTypes}}),Object.defineProperty(t,"getDoctypeFromOperation",{enumerable:!0,get:function(){return l.getDoctypeFromOperation}}),Object.defineProperty(t,"Association",{enumerable:!0,get:function(){return f.Association}}),Object.defineProperty(t,"HasMany",{enumerable:!0,get:function(){return f.HasMany}}),Object.defineProperty(t,"HasOne",{enumerable:!0,get:function(){return f.HasOne}}),Object.defineProperty(t,"HasOneInPlace",{enumerable:!0,get:function(){return f.HasOneInPlace}}),Object.defineProperty(t,"HasManyInPlace",{enumerable:!0,get:function(){return f.HasManyInPlace}}),Object.defineProperty(t,"HasManyTriggers",{enumerable:!0,get:function(){return f.HasManyTriggers}}),Object.defineProperty(t,"isReferencedBy",{enumerable:!0,get:function(){return d.isReferencedBy}}),Object.defineProperty(t,"isReferencedById",{enumerable:!0,get:function(){return d.isReferencedById}}),Object.defineProperty(t,"getReferencedBy",{enumerable:!0,get:function(){return d.getReferencedBy}}),Object.defineProperty(t,"getReferencedById",{enumerable:!0,get:function(){return d.getReferencedById}}),Object.defineProperty(t,"dehydrate",{enumerable:!0,get:function(){return p.dehydrate}}),Object.defineProperty(t,"generateWebLink",{enumerable:!0,get:function(){return p.generateWebLink}}),Object.defineProperty(t,"rootCozyUrl",{enumerable:!0,get:function(){return p.rootCozyUrl}}),Object.defineProperty(t,"InvalidCozyUrlError",{enumerable:!0,get:function(){return p.InvalidCozyUrlError}}),Object.defineProperty(t,"InvalidProtocolError",{enumerable:!0,get:function(){return p.InvalidProtocolError}}),Object.defineProperty(t,"cancelable",{enumerable:!0,get:function(){return h.cancelable}}),Object.defineProperty(t,"isQueryLoading",{enumerable:!0,get:function(){return h.isQueryLoading}}),Object.defineProperty(t,"hasQueryBeenLoaded",{enumerable:!0,get:function(){return h.hasQueryBeenLoaded}}),Object.defineProperty(t,"getQueryFromState",{enumerable:!0,get:function(){return m.getQueryFromState}}),Object.defineProperty(t,"Registry",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(t,"RealTimeQueries",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(t,"CozyProvider",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(t,"withMutation",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(t,"withMutations",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(t,"Query",{enumerable:!0,get:function(){return C.default}}),Object.defineProperty(t,"queryConnect",{enumerable:!0,get:function(){return k.queryConnect}}),Object.defineProperty(t,"queryConnectFlat",{enumerable:!0,get:function(){return k.queryConnectFlat}}),Object.defineProperty(t,"withClient",{enumerable:!0,get:function(){return k.withClient}}),Object.defineProperty(t,"fetchPolicies",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(t,"BulkEditError",{enumerable:!0,get:function(){return E.BulkEditError}}),t.models=t.manifest=void 0;var a=o(n(41)),u=o(n(186)),c=o(n(274)),s=o(n(586)),l=n(21),f=n(126),d=n(191),p=n(192),h=n(592),m=n(60),y=o(n(178)),v=o(n(593)),g=r(n(594));t.manifest=g;var b=o(n(595)),w=o(n(596)),x=o(n(597)),C=o(n(299)),k=n(598),S=r(n(600));t.models=S;var _=o(n(294)),A=n(665);Object.keys(A).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(i,e)||e in t&&t[e]===A[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return A[e]}}))}));var O=n(666);Object.keys(O).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(i,e)||e in t&&t[e]===O[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return O[e]}}))}));var E=n(275)},function(e,t,n){"use strict";var r=n(20),o=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.normalizeDoc=F,t.normalizeDoctype=t.default=void 0;var i=o(n(31)),a=o(n(17)),u=o(n(7)),c=o(n(46)),s=o(n(9)),l=o(n(4)),f=o(n(6)),d=o(n(2)),p=o(n(503)),h=n(44),m=o(n(125)),y=o(n(76)),v=o(n(264)),g=o(n(512)),b=o(n(516)),w=n(267),x=r(n(72)),C=r(n(183));n(58);function k(){var e=(0,c.default)(["/data/","/_design/","/copy?rev=",""]);return k=function(){return e},e}function S(){var e=(0,c.default)(["/data/","/_design/","?rev=",""]);return S=function(){return e},e}function _(){var e=(0,c.default)(["/data/","/_design_docs?include_docs=true"]);return _=function(){return e},e}function A(){var e=(0,c.default)(["/data/","/_index"]);return A=function(){return e},e}function O(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return E(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return E(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function E(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function B(){var e=(0,c.default)(["/data/","/","?rev=",""]);return B=function(){return e},e}function j(){var e=(0,c.default)(["/data/","/",""]);return j=function(){return e},e}function P(){var e=(0,c.default)(["/data/","/",""]);return P=function(){return e},e}function T(){var e=(0,c.default)(["/data/","/_all_docs?include_docs=true"]);return T=function(){return e},e}function z(){var e=(0,c.default)(["/data/","/_find"]);return z=function(){return e},e}function I(){var e=(0,c.default)(["/data/","/",""]);return I=function(){return e},e}function D(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function R(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?D(Object(n),!0).forEach((function(t){(0,d.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function F(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=e._id||e.id;return R({id:n,_id:n,_type:t},e)}var M=function(e){return Object.assign({},(0,y.default)(e,"_type"),{_deleted:!0})},N=function(){function e(t,n){(0,l.default)(this,e),this.doctype=t,this.stackClient=n,this.indexes={},this.endpoint="/data/".concat(this.doctype,"/")}var t,n,r,o,c,E,D,N,L,U,$,G,q,J,H,W,Q,V,Y,K,Z;return(0,f.default)(e,[{key:"all",value:(Z=(0,s.default)(u.default.mark((function e(){var t,n,r,o,i,a,c,s,l,f,d,p,m,y,v,b=this,w=arguments;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=w.length>0&&void 0!==w[0]?w[0]:{},n=t.limit,r=void 0===n?100:n,o=t.skip,i=void 0===o?0:o,a=t.bookmark,c=t.keys,l=(s=!!c||null===r)?"_all_docs":"_normal_docs",f=(0,h.uri)(I(),this.doctype,l),d={include_docs:!0,limit:r,skip:i,keys:c,bookmark:a},p=C.buildURL(f,d),e.prev=7,e.next=10,this.stackClient.fetchJSON("GET",p);case 10:m=e.sent,e.next=16;break;case 13:return e.prev=13,e.t0=e.catch(7),e.abrupt("return",(0,x.dontThrowNotFoundError)(e.t0));case 16:return y=s?m.rows.filter((function(e){return e&&null!==e.doc&&!e.error&&!(0,g.default)(e.id,"_design")})).map((function(e){return F(e.doc,b.doctype)})):m.rows.map((function(e){return F(e,b.doctype)})),v=a?m.rows.length>=r:i+m.rows.length<m.total_rows,e.abrupt("return",{data:y,meta:{count:s?y.length:m.total_rows},skip:i,bookmark:m.bookmark,next:v});case 19:case"end":return e.stop()}}),e,this,[[7,13]])}))),function(){return Z.apply(this,arguments)})},{key:"fetchDocumentsWithMango",value:(K=(0,s.default)(u.default.mark((function e(t,n){var r,o=arguments;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=o.length>2&&void 0!==o[2]?o[2]:{},e.abrupt("return",this.stackClient.fetchJSON("POST",t,this.toMangoOptions(n,r)));case 2:case"end":return e.stop()}}),e,this)}))),function(e,t){return K.apply(this,arguments)})},{key:"migrateUnamedIndex",value:(Y=(0,s.default)(u.default.mark((function e(t,n){return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.copyIndex(t,n);case 3:return e.next=5,this.destroyIndex(t);case 5:e.next=16;break;case 7:if(e.prev=7,e.t0=e.catch(0),(0,x.isDocumentUpdateConflict)(e.t0)){e.next=11;break}throw e.t0;case 11:return(0,h.sleep)(1e3),e.next=14,this.copyIndex(t,n);case 14:return e.next=16,this.destroyIndex(t);case 16:case"end":return e.stop()}}),e,this,[[0,7]])}))),function(e,t){return Y.apply(this,arguments)})},{key:"handleMissingIndex",value:(V=(0,s.default)(u.default.mark((function e(t,n){var r,o,i,a;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.indexedFields,o=n.partialFilter,r||(r=(0,w.getIndexFields)({sort:n.sort,selector:t})),e.next=4,this.findExistingIndex(t,n);case 4:if(i=e.sent,a=(0,w.getIndexNameFromFields)(r),i){e.next=11;break}return e.next=9,this.createIndex(r,{partialFilter:o,indexName:a});case 9:e.next=17;break;case 11:if(i._id==="_design/".concat(a)){e.next=16;break}return e.next=14,this.migrateUnamedIndex(i,a);case 14:e.next=17;break;case 16:throw new Error("Index unusable for query, index used: ".concat(a));case 17:case"end":return e.stop()}}),e,this)}))),function(e,t){return V.apply(this,arguments)})},{key:"findWithMango",value:(Q=(0,s.default)(u.default.mark((function e(t,n){var r,o,i=arguments;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=i.length>2&&void 0!==i[2]?i[2]:{},e.prev=1,e.next=4,this.fetchDocumentsWithMango(t,n,r);case 4:o=e.sent,e.next=18;break;case 7:if(e.prev=7,e.t0=e.catch(1),(0,x.isIndexNotFoundError)(e.t0)||(0,x.isNoUsableIndexError)(e.t0)){e.next=13;break}throw e.t0;case 13:return e.next=15,this.handleMissingIndex(n,r);case 15:return e.next=17,this.fetchDocumentsWithMango(t,n,r);case 17:o=e.sent;case 18:return e.abrupt("return",o);case 19:case"end":return e.stop()}}),e,this,[[1,7]])}))),function(e,t){return Q.apply(this,arguments)})},{key:"find",value:(W=(0,s.default)(u.default.mark((function e(t){var n,r,o,i,a,c=this,s=arguments;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=s.length>1&&void 0!==s[1]?s[1]:{},r=n.skip,o=void 0===r?0:r,e.prev=2,a=(0,h.uri)(z(),this.doctype),e.next=6,this.findWithMango(a,t,n);case 6:i=e.sent,e.next=12;break;case 9:return e.prev=9,e.t0=e.catch(2),e.abrupt("return",(0,x.dontThrowNotFoundError)(e.t0));case 12:return e.abrupt("return",{data:i.docs.map((function(e){return F(e,c.doctype)})),next:i.next,skip:o,bookmark:i.bookmark,execution_stats:i.execution_stats});case 13:case"end":return e.stop()}}),e,this,[[2,9]])}))),function(e){return W.apply(this,arguments)})},{key:"get",value:(H=(0,s.default)(u.default.mark((function e(t){return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",x.default.get(this.stackClient,"".concat(this.endpoint).concat(encodeURIComponent(t)),{normalize:this.constructor.normalizeDoctype(this.doctype)}));case 1:case"end":return e.stop()}}),e,this)}))),function(e){return H.apply(this,arguments)})},{key:"getAll",value:(J=(0,s.default)(u.default.mark((function e(t){var n,r,o=this;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.stackClient.fetchJSON("POST",(0,h.uri)(T(),this.doctype),{keys:t});case 3:n=e.sent,e.next=9;break;case 6:return e.prev=6,e.t0=e.catch(0),e.abrupt("return",(0,x.dontThrowNotFoundError)(e.t0));case 9:return r=n.rows.filter((function(e){return e.doc})),e.abrupt("return",{data:r.map((function(e){return F(e.doc,o.doctype)})),meta:{count:r.length}});case 11:case"end":return e.stop()}}),e,this,[[0,6]])}))),function(e){return J.apply(this,arguments)})},{key:"create",value:(q=(0,s.default)(u.default.mark((function e(t){var n,r,o,i,c,s;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t._id,t._type,r=(0,a.default)(t,["_id","_type"]),i=(o=!!n)?"PUT":"POST",c=(0,h.uri)(P(),this.doctype,o?n:""),e.next=6,this.stackClient.fetchJSON(i,c,r);case 6:return s=e.sent,e.abrupt("return",{data:F(s.data,this.doctype)});case 8:case"end":return e.stop()}}),e,this)}))),function(e){return q.apply(this,arguments)})},{key:"update",value:(G=(0,s.default)(u.default.mark((function e(t){var n;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.stackClient.fetchJSON("PUT",(0,h.uri)(j(),this.doctype,t._id),t);case 2:return n=e.sent,e.abrupt("return",{data:F(n.data,this.doctype)});case 4:case"end":return e.stop()}}),e,this)}))),function(e){return G.apply(this,arguments)})},{key:"destroy",value:($=(0,s.default)(u.default.mark((function e(t){var n,r,o,i;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t._id,r=t._rev,o=(0,a.default)(t,["_id","_rev"]),e.next=3,this.stackClient.fetchJSON("DELETE",(0,h.uri)(B(),this.doctype,n,r));case 3:return i=e.sent,e.abrupt("return",{data:F(R(R({},o),{},{_id:n,_rev:i.rev,_deleted:!0}),this.doctype)});case 5:case"end":return e.stop()}}),e,this)}))),function(e){return $.apply(this,arguments)})},{key:"updateAll",value:(U=(0,s.default)(u.default.mark((function e(t){var n,r,o,i,a;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this.stackClient,(r=t?t.map((function(e){return(0,y.default)(e,"_type")})):t)&&r.length){e.next=4;break}return e.abrupt("return",Promise.resolve([]));case 4:return e.prev=4,e.next=7,n.fetchJSON("POST","/data/".concat(this.doctype,"/_bulk_docs"),{docs:r});case 7:return o=e.sent,e.abrupt("return",o);case 11:if(e.prev=11,e.t0=e.catch(4),!e.t0.reason||!e.t0.reason.reason||"Database does not exist."!==e.t0.reason.reason){e.next=24;break}return e.next=16,this.create(r[0]);case 16:return i=e.sent,e.next=19,this.updateAll(r.slice(1));case 19:return(a=e.sent).unshift({ok:!0,id:i._id,rev:i._rev}),e.abrupt("return",a);case 24:throw e.t0;case 25:case"end":return e.stop()}}),e,this,[[4,11]])}))),function(e){return U.apply(this,arguments)})},{key:"destroyAll",value:function(e){return this.updateAll(e.map(M))}},{key:"toMangoOptions",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.sort,r=t.indexedFields,o=t.fields,a=t.skip,u=void 0===a?0:a,c=t.limit,s=t.bookmark;n=(0,w.transformSort)(n),r=r||(0,w.getIndexFields)({sort:n,selector:e});var l=t.indexId||"_design/".concat((0,w.getIndexNameFromFields)(r));if(n){var f=(0,m.default)(n.map((function(e){return(0,v.default)(Object.values(e))})));if(f.length>1)throw new Error("Mango sort can only use a single order (asc or desc).");var h,y=f.length>0?(0,v.default)(f):"asc",g=O(r);try{var b=function(){var e=h.value;n.find((function(t){return(0,v.default)(Object.keys(t))===e}))||n.push((0,d.default)({},e,y))};for(g.s();!(h=g.n()).done;)b()}catch(e){g.e(e)}finally{g.f()}}var x={selector:e,use_index:l,fields:o?[].concat((0,i.default)(o),["_id","_type","class"]):void 0,limit:c,skip:u,bookmark:t.bookmark||s,sort:n,execution_stats:!!(0,p.default)("debug")||void 0};return x}},{key:"checkUniquenessOf",value:(L=(0,s.default)(u.default.mark((function e(t,n){var r,o;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getUniqueIndexId(t);case 2:return r=e.sent,e.next=5,this.find((0,d.default)({},t,n),{indexId:r,fields:["_id"]});case 5:return o=e.sent,e.abrupt("return",0===o.data.length);case 7:case"end":return e.stop()}}),e,this)}))),function(e,t){return L.apply(this,arguments)})},{key:"getUniqueIndexId",value:function(e){return this.getIndexId([e],{indexName:"".concat(this.doctype,"/").concat(e)})}},{key:"getIndexId",value:(N=(0,s.default)(u.default.mark((function e(t,n){var r,o,i,a;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=n.partialFilter,o=n.indexName,i=void 0===o?this.getIndexNameFromFields(t):o,this.indexes[i]){e.next=20;break}return e.prev=2,e.next=5,this.createIndex(t,{partialFilter:r});case 5:a=e.sent,e.next=19;break;case 8:if(e.prev=8,e.t0=e.catch(2),(0,x.isIndexConflictError)(e.t0)){e.next=14;break}throw e.t0;case 14:return e.next=16,(0,h.sleep)(1e3);case 16:return e.next=18,this.createIndex(t,{partialFilter:r});case 18:a=e.sent;case 19:this.indexes[i]=a;case 20:return e.abrupt("return",this.indexes[i].id);case 21:case"end":return e.stop()}}),e,this,[[2,8]])}))),function(e,t){return N.apply(this,arguments)})},{key:"createIndex",value:(D=(0,s.default)(u.default.mark((function e(t){var n,r,o,i,a,c,s,l,f=arguments;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=f.length>1&&void 0!==f[1]?f[1]:{},r=n.partialFilter,o=n.indexName,i={index:{fields:t}},o&&(i.ddoc=o),r&&(i.index.partial_filter_selector=r),e.prev=4,e.next=7,this.stackClient.fetchJSON("POST",(0,h.uri)(A(),this.doctype),i);case 7:a=e.sent,e.next=17;break;case 10:if(e.prev=10,e.t0=e.catch(4),(0,x.isIndexConflictError)(e.t0)){e.next=16;break}throw e.t0;case 16:return e.abrupt("return");case 17:if(c={id:a.id,fields:t},"exists"!==a.result){e.next=20;break}return e.abrupt("return",c);case 20:return s={},t.forEach((function(e){return s[e]={$gt:null}})),l={indexId:c.id,limit:1},e.next=25,(0,h.attempt)(this.find(s,l));case 25:if(!e.sent){e.next=27;break}return e.abrupt("return",c);case 27:return e.next=29,(0,h.sleep)(1e3);case 29:return e.next=31,(0,h.attempt)(this.find(s,l));case 31:if(!e.sent){e.next=33;break}return e.abrupt("return",c);case 33:return e.next=35,(0,h.sleep)(500);case 35:return e.abrupt("return",c);case 36:case"end":return e.stop()}}),e,this,[[4,10]])}))),function(e){return D.apply(this,arguments)})},{key:"fetchAllMangoIndexes",value:(E=(0,s.default)(u.default.mark((function e(){var t,n;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,h.uri)(_(),this.doctype),e.next=3,this.stackClient.fetchJSON("GET",t);case 3:return n=e.sent,e.abrupt("return",n.rows.filter((function(e){return"query"===e.doc.language})).map((function(e){return(0,w.normalizeDesignDoc)(e)})));case 5:case"end":return e.stop()}}),e,this)}))),function(){return E.apply(this,arguments)})},{key:"destroyIndex",value:(c=(0,s.default)(u.default.mark((function e(t){var n,r,o;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t._id.split("/")[1],r=t._rev,o=(0,h.uri)(S(),this.doctype,n,r),e.abrupt("return",this.stackClient.fetchJSON("DELETE",o));case 4:case"end":return e.stop()}}),e,this)}))),function(e){return c.apply(this,arguments)})},{key:"copyIndex",value:(o=(0,s.default)(u.default.mark((function e(t,n){var r,o,i,a;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t._id.split("/")[1],o=t._rev,i=(0,h.uri)(k(),this.doctype,r,o),a={headers:{Destination:"_design/".concat(n)}},e.abrupt("return",this.stackClient.fetchJSON("POST",i,null,a));case 5:case"end":return e.stop()}}),e,this)}))),function(e,t){return o.apply(this,arguments)})},{key:"findExistingIndex",value:(r=(0,s.default)(u.default.mark((function e(t,n){var r,o,i,a,c,s,l,f,d;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.sort,o=n.indexedFields,i=n.partialFilter,e.next=3,this.fetchAllMangoIndexes();case 3:if(!((a=e.sent).length<1)){e.next=6;break}return e.abrupt("return",null);case 6:r=(0,w.transformSort)(r),c=o||(0,w.getIndexFields)({sort:r,selector:t}),s=a.find((function(e){return(0,w.isMatchingIndex)(e,c,i)})),l=O(a),e.prev=10,l.s();case 12:if((f=l.n()).done){e.next=19;break}if(d=f.value,!(0,w.isInconsistentIndex)(d)){e.next=17;break}return e.next=17,this.destroyIndex(d);case 17:e.next=12;break;case 19:e.next=24;break;case 21:e.prev=21,e.t0=e.catch(10),l.e(e.t0);case 24:return e.prev=24,l.f(),e.finish(24);case 27:return e.abrupt("return",s);case 28:case"end":return e.stop()}}),e,this,[[10,21,24,27]])}))),function(e,t){return r.apply(this,arguments)})},{key:"fetchChangesRaw",value:(n=(0,s.default)(u.default.mark((function e(t){var n,r,o,i,a,c;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.doc_ids&&t.doc_ids.length>0,r="?".concat([b.default.stringify(R(R({},(0,y.default)(t,["doc_ids","includeDocs"])),{},{include_docs:t.includeDocs})),n&&void 0===t.filter?"filter=_doc_ids":void 0].filter(Boolean).join("&")),o=n?"POST":"GET",i="/data/".concat(this.doctype,"/_changes").concat(r),a=n?{doc_ids:t.doc_ids}:void 0,e.next=7,this.stackClient.fetchJSON(o,i,a);case 7:return c=e.sent,e.abrupt("return",c);case 9:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"fetchChanges",value:(t=(0,s.default)(u.default.mark((function e(){var t,n,r,o,i,a,c=arguments;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=c.length>0&&void 0!==c[0]?c[0]:{},n=c.length>1&&void 0!==c[1]?c[1]:{},r={includeDocs:!0},"object"!=typeof t?(r.since=t,console.warn('fetchChanges use couchOptions as Object not a string, since is deprecated, please use fetchChanges({since: "'.concat(t,'"}).'))):Object.keys(t).length>0&&Object.assign(r,t),e.next=6,this.fetchChangesRaw(r);case 6:return o=e.sent,i=o.last_seq,a=o.results.map((function(e){return e.doc})).filter(Boolean),n.includeDesign||(a=a.filter((function(e){return 0!==e._id.indexOf("_design")}))),n.includeDeleted||(a=a.filter((function(e){return!e._deleted}))),e.abrupt("return",{newLastSeq:i,documents:a});case 12:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})}],[{key:"normalizeDoctype",value:function(e){return this.normalizeDoctypeRawApi(e)}},{key:"normalizeDoctypeJsonApi",value:function(e){return function(t,n){return F(t,e)}}},{key:"normalizeDoctypeRawApi",value:function(e){return function(t,n){return F(n,e)}}}]),e}(),L=N;t.default=L;var U=N.normalizeDoctype;t.normalizeDoctype=U},function(e,t,n){var r=n(469),o=n(247),i=n(149),a=n(470);e.exports=function(e){return r(e)||o(e)||i(e)||a()}},function(e,t,n){"use strict";var r=n(331),o="object"==typeof self&&self&&self.Object===Object&&self,i=(r.a||o||Function("return this")()).Symbol,a=Object.prototype,u=a.hasOwnProperty,c=a.toString,s=i?i.toStringTag:void 0;var l=function(e){var t=u.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var o=c.call(e);return r&&(t?e[s]=n:delete e[s]),o},f=Object.prototype.toString;var d=function(e){return f.call(e)},p=i?i.toStringTag:void 0;var h=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":p&&p in Object(e)?l(e):d(e)};var m=function(e,t){return function(n){return e(t(n))}}(Object.getPrototypeOf,Object);var y=function(e){return null!=e&&"object"==typeof e},v=Function.prototype,g=Object.prototype,b=v.toString,w=g.hasOwnProperty,x=b.call(Object);var C=function(e){if(!y(e)||"[object Object]"!=h(e))return!1;var t=m(e);if(null===t)return!0;var n=w.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&b.call(n)==x},k=n(134),S="@@redux/INIT";function _(e,t,n){var r;if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(_)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var o=e,i=t,a=[],u=a,c=!1;function s(){u===a&&(u=a.slice())}function l(){return i}function f(e){if("function"!=typeof e)throw new Error("Expected listener to be a function.");var t=!0;return s(),u.push(e),function(){if(t){t=!1,s();var n=u.indexOf(e);u.splice(n,1)}}}function d(e){if(!C(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(c)throw new Error("Reducers may not dispatch actions.");try{c=!0,i=o(i,e)}finally{c=!1}for(var t=a=u,n=0;n<t.length;n++){(0,t[n])()}return e}return d({type:S}),(r={dispatch:d,subscribe:f,getState:l,replaceReducer:function(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");o=e,d({type:S})}})[k.default]=function(){var e,t=f;return(e={subscribe:function(e){if("object"!=typeof e)throw new TypeError("Expected the observer to be an object.");function n(){e.next&&e.next(l())}return n(),{unsubscribe:t(n)}}})[k.default]=function(){return this},e},r}function A(e,t){var n=t&&t.type;return"Given action "+(n&&'"'+n.toString()+'"'||"an action")+', reducer "'+e+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'}function O(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var o=t[r];0,"function"==typeof e[o]&&(n[o]=e[o])}var i=Object.keys(n);var a=void 0;try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if(void 0===n(void 0,{type:S}))throw new Error('Reducer "'+t+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if(void 0===n(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION_"+Math.random().toString(36).substring(7).split("").join(".")}))throw new Error('Reducer "'+t+"\" returned undefined when probed with a random type. Don't try to handle "+S+' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.')}))}(n)}catch(e){a=e}return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(a)throw a;for(var r=!1,o={},u=0;u<i.length;u++){var c=i[u],s=n[c],l=e[c],f=s(l,t);if(void 0===f){var d=A(c,t);throw new Error(d)}o[c]=f,r=r||f!==l}return r?o:e}}function E(e,t){return function(){return t(e.apply(void 0,arguments))}}function B(e,t){if("function"==typeof e)return E(e,t);if("object"!=typeof e||null===e)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===e?"null":typeof e)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');for(var n=Object.keys(e),r={},o=0;o<n.length;o++){var i=n[o],a=e[i];"function"==typeof a&&(r[i]=E(a,t))}return r}function j(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}var P=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function T(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(n,r,o){var i,a=e(n,r,o),u=a.dispatch,c={getState:a.getState,dispatch:function(e){return u(e)}};return i=t.map((function(e){return e(c)})),u=j.apply(void 0,i)(a.dispatch),P({},a,{dispatch:u})}}}n.d(t,"e",(function(){return _})),n.d(t,"c",(function(){return O})),n.d(t,"b",(function(){return B})),n.d(t,"a",(function(){return T})),n.d(t,"d",(function(){return j}))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){var r=n(5),o=n(165),i=n(427),a=n(428);function u(t){var n="function"==typeof Map?new Map:void 0;return e.exports=u=function(e){if(null===e||!i(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return a(e,arguments,r(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),o(t,e)},u(t)}e.exports=u},function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=function(){};e.exports=r},function(e,t,n){"use strict";function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}n.r(t);var o=n(0),i=n(1),a=n.n(i),u=a.a.shape({trySubscribe:a.a.func.isRequired,tryUnsubscribe:a.a.func.isRequired,notifyNestedSubs:a.a.func.isRequired,isSubscribed:a.a.func.isRequired}),c=a.a.shape({subscribe:a.a.func.isRequired,dispatch:a.a.func.isRequired,getState:a.a.func.isRequired});function s(e){var t;void 0===e&&(e="store");var n=e+"Subscription",i=function(t){r(a,t);var i=a.prototype;function a(n,r){var o;return(o=t.call(this,n,r)||this)[e]=n.store,o}return i.getChildContext=function(){var t;return(t={})[e]=this[e],t[n]=null,t},i.render=function(){return o.Children.only(this.props.children)},a}(o.Component);return i.propTypes={store:c.isRequired,children:a.a.element.isRequired},i.childContextTypes=((t={})[e]=c.isRequired,t[n]=u,t),i}var l=s();function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var d=n(28),p=n(36),h=n(79),m=n.n(h),y=n(141),v=n.n(y),g=n(77),b={notify:function(){}};var w=function(){function e(e,t,n){this.store=e,this.parentSub=t,this.onStateChange=n,this.unsubscribe=null,this.listeners=b}var t=e.prototype;return t.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},t.notifyNestedSubs=function(){this.listeners.notify()},t.isSubscribed=function(){return Boolean(this.unsubscribe)},t.trySubscribe=function(){var e,t;this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.onStateChange):this.store.subscribe(this.onStateChange),this.listeners=(e=[],t=[],{clear:function(){t=null,e=null},notify:function(){for(var n=e=t,r=0;r<n.length;r++)n[r]()},get:function(){return t},subscribe:function(n){var r=!0;return t===e&&(t=e.slice()),t.push(n),function(){r&&null!==e&&(r=!1,t===e&&(t=e.slice()),t.splice(t.indexOf(n),1))}}}))},t.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=b)},e}(),x=0,C={};function k(){}function S(e,t){var n,i;void 0===t&&(t={});var a=t,s=a.getDisplayName,l=void 0===s?function(e){return"ConnectAdvanced("+e+")"}:s,h=a.methodName,y=void 0===h?"connectAdvanced":h,b=a.renderCountProp,S=void 0===b?void 0:b,_=a.shouldHandleStateChanges,A=void 0===_||_,O=a.storeKey,E=void 0===O?"store":O,B=a.withRef,j=void 0!==B&&B,P=Object(p.a)(a,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef"]),T=E+"Subscription",z=x++,I=((n={})[E]=c,n[T]=u,n),D=((i={})[T]=u,i);return function(t){v()(Object(g.isValidElementType)(t),"You must pass a component to the function returned by "+y+". Instead received "+JSON.stringify(t));var n=t.displayName||t.name||"Component",i=l(n),a=Object(d.a)({},P,{getDisplayName:l,methodName:y,renderCountProp:S,shouldHandleStateChanges:A,storeKey:E,withRef:j,displayName:i,wrappedComponentName:n,WrappedComponent:t}),u=function(n){function u(e,t){var r;return(r=n.call(this,e,t)||this).version=z,r.state={},r.renderCount=0,r.store=e[E]||t[E],r.propsMode=Boolean(e[E]),r.setWrappedInstance=r.setWrappedInstance.bind(f(f(r))),v()(r.store,'Could not find "'+E+'" in either the context or props of "'+i+'". Either wrap the root component in a <Provider>, or explicitly pass "'+E+'" as a prop to "'+i+'".'),r.initSelector(),r.initSubscription(),r}r(u,n);var c=u.prototype;return c.getChildContext=function(){var e,t=this.propsMode?null:this.subscription;return(e={})[T]=t||this.context[T],e},c.componentDidMount=function(){A&&(this.subscription.trySubscribe(),this.selector.run(this.props),this.selector.shouldComponentUpdate&&this.forceUpdate())},c.componentWillReceiveProps=function(e){this.selector.run(e)},c.shouldComponentUpdate=function(){return this.selector.shouldComponentUpdate},c.componentWillUnmount=function(){this.subscription&&this.subscription.tryUnsubscribe(),this.subscription=null,this.notifyNestedSubs=k,this.store=null,this.selector.run=k,this.selector.shouldComponentUpdate=!1},c.getWrappedInstance=function(){return v()(j,"To access the wrapped instance, you need to specify { withRef: true } in the options argument of the "+y+"() call."),this.wrappedInstance},c.setWrappedInstance=function(e){this.wrappedInstance=e},c.initSelector=function(){var t=e(this.store.dispatch,a);this.selector=function(e,t){var n={run:function(r){try{var o=e(t.getState(),r);(o!==n.props||n.error)&&(n.shouldComponentUpdate=!0,n.props=o,n.error=null)}catch(e){n.shouldComponentUpdate=!0,n.error=e}}};return n}(t,this.store),this.selector.run(this.props)},c.initSubscription=function(){if(A){var e=(this.propsMode?this.props:this.context)[T];this.subscription=new w(this.store,e,this.onStateChange.bind(this)),this.notifyNestedSubs=this.subscription.notifyNestedSubs.bind(this.subscription)}},c.onStateChange=function(){this.selector.run(this.props),this.selector.shouldComponentUpdate?(this.componentDidUpdate=this.notifyNestedSubsOnComponentDidUpdate,this.setState(C)):this.notifyNestedSubs()},c.notifyNestedSubsOnComponentDidUpdate=function(){this.componentDidUpdate=void 0,this.notifyNestedSubs()},c.isSubscribed=function(){return Boolean(this.subscription)&&this.subscription.isSubscribed()},c.addExtraProps=function(e){if(!(j||S||this.propsMode&&this.subscription))return e;var t=Object(d.a)({},e);return j&&(t.ref=this.setWrappedInstance),S&&(t[S]=this.renderCount++),this.propsMode&&this.subscription&&(t[T]=this.subscription),t},c.render=function(){var e=this.selector;if(e.shouldComponentUpdate=!1,e.error)throw e.error;return Object(o.createElement)(t,this.addExtraProps(e.props))},u}(o.Component);return u.WrappedComponent=t,u.displayName=i,u.childContextTypes=D,u.contextTypes=I,u.propTypes=I,m()(u,t)}}var _=Object.prototype.hasOwnProperty;function A(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function O(e,t){if(A(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;o<n.length;o++)if(!_.call(t,n[o])||!A(e[n[o]],t[n[o]]))return!1;return!0}var E=n(32);function B(e){return function(t,n){var r=e(t,n);function o(){return r}return o.dependsOnOwnProps=!1,o}}function j(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function P(e,t){return function(t,n){n.displayName;var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=j(e);var o=r(t,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=j(o),o=r(t,n)),o},r}}var T=[function(e){return"function"==typeof e?P(e):void 0},function(e){return e?void 0:B((function(e){return{dispatch:e}}))},function(e){return e&&"object"==typeof e?B((function(t){return Object(E.b)(e,t)})):void 0}];var z=[function(e){return"function"==typeof e?P(e):void 0},function(e){return e?void 0:B((function(){return{}}))}];function I(e,t,n){return Object(d.a)({},n,e,t)}var D=[function(e){return"function"==typeof e?function(e){return function(t,n){n.displayName;var r,o=n.pure,i=n.areMergedPropsEqual,a=!1;return function(t,n,u){var c=e(t,n,u);return a?o&&i(c,r)||(r=c):(a=!0,r=c),r}}}(e):void 0},function(e){return e?void 0:function(){return I}}];function R(e,t,n,r){return function(o,i){return n(e(o,i),t(r,i),i)}}function F(e,t,n,r,o){var i,a,u,c,s,l=o.areStatesEqual,f=o.areOwnPropsEqual,d=o.areStatePropsEqual,p=!1;function h(o,p){var h,m,y=!f(p,a),v=!l(o,i);return i=o,a=p,y&&v?(u=e(i,a),t.dependsOnOwnProps&&(c=t(r,a)),s=n(u,c,a)):y?(e.dependsOnOwnProps&&(u=e(i,a)),t.dependsOnOwnProps&&(c=t(r,a)),s=n(u,c,a)):v?(h=e(i,a),m=!d(h,u),u=h,m&&(s=n(u,c,a)),s):s}return function(o,l){return p?h(o,l):(u=e(i=o,a=l),c=t(r,a),s=n(u,c,a),p=!0,s)}}function M(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,o=t.initMergeProps,i=Object(p.a)(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),a=n(e,i),u=r(e,i),c=o(e,i);return(i.pure?F:R)(a,u,c,e,i)}function N(e,t,n){for(var r=t.length-1;r>=0;r--){var o=t[r](e);if(o)return o}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function L(e,t){return e===t}var U,$,G,q,J,H,W,Q,V,Y,K,Z,X=(G=($=void 0===U?{}:U).connectHOC,q=void 0===G?S:G,J=$.mapStateToPropsFactories,H=void 0===J?z:J,W=$.mapDispatchToPropsFactories,Q=void 0===W?T:W,V=$.mergePropsFactories,Y=void 0===V?D:V,K=$.selectorFactory,Z=void 0===K?M:K,function(e,t,n,r){void 0===r&&(r={});var o=r,i=o.pure,a=void 0===i||i,u=o.areStatesEqual,c=void 0===u?L:u,s=o.areOwnPropsEqual,l=void 0===s?O:s,f=o.areStatePropsEqual,h=void 0===f?O:f,m=o.areMergedPropsEqual,y=void 0===m?O:m,v=Object(p.a)(o,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),g=N(e,H,"mapStateToProps"),b=N(t,Q,"mapDispatchToProps"),w=N(n,Y,"mergeProps");return q(Z,Object(d.a)({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:g,initMapDispatchToProps:b,initMergeProps:w,pure:a,areStatesEqual:c,areOwnPropsEqual:l,areStatePropsEqual:h,areMergedPropsEqual:y},v))});n.d(t,"Provider",(function(){return l})),n.d(t,"createProvider",(function(){return s})),n.d(t,"connectAdvanced",(function(){return S})),n.d(t,"connect",(function(){return X}))},function(e,t,n){var r=n(207),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){"use strict";(function(e){var r=n(20),o=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(246)),a=o(n(19)),u=o(n(31)),c=o(n(17)),s=o(n(7)),l=o(n(9)),f=o(n(4)),d=o(n(6)),p=o(n(2)),h=o(n(75)),m=o(n(472)),y=o(n(171)),v=o(n(474)),g=o(n(479)),b=o(n(483)),w=o(n(18)),x=o(n(45)),C=r(n(256)),k=n(59),S=o(n(274)),_=n(126),A=n(191),O=n(192),E=n(21),B=n(569),j=o(n(570)),P=r(n(60)),T=o(n(294)),z=o(n(572)),I=n(186),D=o(n(295)),R=n(578),F=o(n(187)),M=(n(22),n(188)),N=o(n(579)),L=o(n(583)),U=n(584);function $(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function G(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$(Object(n),!0).forEach((function(t){(0,p.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function q(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return J(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return J(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function J(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var H=function(e){return Array.isArray(e)?e:[e]},W=function(e){return{get:function(t,n){return console.warn(e),t[n]}}},Q=function(e){return e.prototype.addReferences&&e.prototype.removeReferences},V=function(){function t(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,f.default)(this,t),(0,p.default)(this,"fetchQueryAndGetFromState",function(){var t=(0,l.default)(s.default.mark((function t(n){return s.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.query(n.definition,n.options);case 3:return t.abrupt("return",e.getQueryFromState(n.options.as));case 6:throw t.prev=6,t.t0=t.catch(0),t.t0;case 9:case"end":return t.stop()}}),t,null,[[0,6]])})));return function(e){return t.apply(this,arguments)}}());var r=n.link,o=n.links,i=n.schema,a=void 0===i?{}:i,u=n.appMetadata,d=void 0===u?{}:u,h=n.capabilities,m=(0,c.default)(n,["link","links","schema","appMetadata","capabilities"]);r&&console.warn("`link` is deprecated, use `links`"),this.appMetadata=d,this.options=m,this.queryIdGenerator=new M.QueryIDGenerator,this.isLogged=!1,this.instanceOptions={},this.handleRevocationChange=this.handleRevocationChange.bind(this),this.handleTokenRefresh=this.handleTokenRefresh.bind(this),this.createClient();var y=this.getStackClient();y.on("error",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.emit.apply(e,["error"].concat(n))})),this.links=H(r||o||new S.default),this.registerClientOnLinks(),this.chain=(0,I.chain)(this.links),this.schema=new z.default(a,y),this.capabilities=h||null,this.plugins={};try{this.loadInstanceOptionsFromDOM()}catch(e){}m.uri&&m.token&&this.login(),this.storeAccesors=null,!1!==m.store&&this.ensureStore(),this._promiseCache=new L.default}var n,r,o,x,T,$,J,V,Y,K,Z,X,ee,te,ne,re;return(0,d.default)(t,[{key:"emit",value:function(){}},{key:"on",value:function(){}},{key:"removeListener",value:function(){}},{key:"registerPlugin",value:function(e,t){if(!e.pluginName)throw new Error("Cannot register a plugin whose class does not have `pluginName` attribute.");if(this.plugins[e.pluginName])throw new Error("Cannot register plugin ".concat(e.pluginName,". A plugin with the same name has already been registered."));var n=new e(this,t);return this.plugins[e.pluginName]=n,n}},{key:"addSchema",value:function(e){this.schema.add(e)}},{key:"registerClientOnLinks",value:function(){var e,t=q(this.links);try{for(t.s();!(e=t.n()).done;){var n=e.value;if(n.registerClient)try{n.registerClient(this)}catch(e){console.warn(e)}}}catch(e){t.e(e)}finally{t.f()}}},{key:"login",value:function(e){return this.isLogged&&!this.isRevoked?(console.warn("CozyClient is already logged."),this.loginPromise):this.loginPromise=this._login(e)}},{key:"_login",value:(re=(0,l.default)(s.default.mark((function e(t){var n,r,o;return s.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.emit("beforeLogin"),this.registerClientOnLinks(),t&&(t.uri&&this.stackClient.setUri(t.uri),t.token&&this.stackClient.setToken(t.token)),n=q(this.links),e.prev=4,n.s();case 6:if((r=n.n()).done){e.next=13;break}if(!(o=r.value).onLogin){e.next=11;break}return e.next=11,o.onLogin();case 11:e.next=6;break;case 13:e.next=18;break;case 15:e.prev=15,e.t0=e.catch(4),n.e(e.t0);case 18:return e.prev=18,n.f(),e.finish(18);case 21:this.isLogged=!0,this.isRevoked=!1,this.emit("login");case 24:case"end":return e.stop()}}),e,this,[[4,15,18,21]])}))),function(e){return re.apply(this,arguments)})},{key:"logout",value:(ne=(0,l.default)(s.default.mark((function e(){var t,n,r;return s.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.isLogged){e.next=3;break}return F.default.warn("CozyClient isn't logged."),e.abrupt("return");case 3:if(this.emit("beforeLogout"),this.isLogged=!1,!(this.stackClient instanceof C.OAuthClient)){e.next=17;break}if(e.prev=6,!this.stackClient.unregister||this.stackClient.isRegistered&&!this.stackClient.isRegistered()){e.next=10;break}return e.next=10,this.stackClient.unregister();case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(6),F.default.warn("Impossible to unregister client on stack: ".concat(e.t0));case 15:e.next=25;break;case 17:return e.prev=17,e.next=20,this.stackClient.fetch("DELETE","/auth/login");case 20:e.next=25;break;case 22:e.prev=22,e.t1=e.catch(17),F.default.warn("Impossible to log out: ".concat(e.t1));case 25:t=q(this.links),e.prev=26,t.s();case 28:if((n=t.n()).done){e.next=41;break}if(!(r=n.value).reset){e.next=39;break}return e.prev=31,e.next=34,r.reset();case 34:e.next=39;break;case 36:e.prev=36,e.t2=e.catch(31),console.warn(e.t2);case 39:e.next=28;break;case 41:e.next=46;break;case 43:e.prev=43,e.t3=e.catch(26),t.e(e.t3);case 46:return e.prev=46,t.f(),e.finish(46);case 49:this.store&&this.dispatch((0,P.resetState)()),this.emit("logout");case 51:case"end":return e.stop()}}),e,this,[[6,12],[17,22],[26,43,46,49],[31,36]])}))),function(){return ne.apply(this,arguments)})},{key:"collection",value:function(e){return this.getStackClient().collection(e)}},{key:"fetch",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.getStackClient().fetch(e,t,n,r)}},{key:"all",value:function(e){return F.default.warn("\nclient.all is deprecated, prefer to use the Q helper to build a new QueryDefinition.\n\nimport { Q } from 'cozy-client'\nclient.query(Q('io.cozy.bills'))"),(0,E.Q)(e)}},{key:"find",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return console.warn("client.find(doctype, selector) is deprecated, please use Q(doctype).where(selector) to build the same query."),new E.QueryDefinition({doctype:e,selector:t})}},{key:"get",value:function(e,t){return console.warn("client.get(".concat(e,", id) is deprecated, please use Q(").concat(e,").getById(id) to build the same query.")),new E.QueryDefinition({doctype:e,id:t})}},{key:"create",value:(te=(0,l.default)(s.default.mark((function e(t,n,r){var o,i,a,u=arguments;return s.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=u.length>3&&void 0!==u[3]?u[3]:{},n._type,i=(0,c.default)(n,["_type"]),a=G({_type:t},i),e.next=5,this.schema.validate(a);case 5:if(!0===e.sent){e.next=8;break}throw new Error("Validation failed");case 8:return e.abrupt("return",this.mutate(this.getDocumentSavePlan(a,r),o));case 9:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return te.apply(this,arguments)})},{key:"validate",value:function(e){return this.schema.validate(e)}},{key:"save",value:(ee=(0,l.default)(s.default.mark((function e(t){var n,r,o,i,a=arguments;return s.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=a.length>1&&void 0!==a[1]?a[1]:{},r=t._type,o=(0,c.default)(t,["_type"]),r){e.next=4;break}throw new Error("The document must have a `_type` property");case 4:return i=G({_type:r},o),e.next=7,this.schema.validate(i);case 7:if(!0===e.sent){e.next=10;break}throw new Error("Validation failed");case 10:return e.abrupt("return",this.mutate(this.getDocumentSavePlan(i),n));case 11:case"end":return e.stop()}}),e,this)}))),function(e){return ee.apply(this,arguments)})},{key:"saveAll",value:(X=(0,l.default)(s.default.mark((function e(t){var n,r,o,i,a,u=this,c=arguments;return s.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=c.length>1&&void 0!==c[1]?c[1]:{},1===Array.from(new Set(t.map((function(e){return e._type})))).length){e.next=4;break}throw new Error("saveAll can only save documents with the same doctype");case 4:return e.next=6,Promise.all(t.map((function(e){return u.schema.validate(e)})));case 6:if(r=e.sent,!((o=r.filter((function(e){return!0!==e}))).length>0)){e.next=11;break}throw console.warn("There has been some validation errors while bulk saving",o),new Error("Validation failed for at least one doc");case 11:return i=t.map((function(e){return u.prepareDocumentForSave(e)})),a=E.Mutations.updateDocuments(i),e.abrupt("return",this.mutate(a,n));case 14:case"end":return e.stop()}}),e,this)}))),function(e){return X.apply(this,arguments)})},{key:"ensureCozyMetadata",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{event:"creation"},r=1;if(void 0===this.appMetadata)return e;if(e._type){var o=this.schema.getDoctypeSchema(e._type);t=(0,w.default)(o,"doctypeVersion")}var i=this.appMetadata,a=i.slug,c=i.sourceAccount,s=i.version,l=(new Date).toISOString(),f=(0,w.default)(e,"cozyMetadata",{});return"creation"===n.event?f=G({metadataVersion:r,doctypeVersion:t,createdByApp:a,sourceAccount:c,createdAt:l,createdByAppVersion:s,updatedAt:l,updatedByApps:a?[{date:l,slug:a,version:s}]:[]},f):"update"===n.event&&(f=G(G({},f),{},{updatedAt:l,updatedByApps:[{date:l,slug:a,version:s}].concat((0,u.default)((0,w.default)(e,"cozyMetadata.updatedByApps",[]).filter((function(e){return e.slug!==a}))))})),G(G({},e),{},{cozyMetadata:f})}},{key:"prepareDocumentForSave",value:function(e){var t=!e._rev;return this.ensureCozyMetadata((0,O.dehydrate)(e),{event:t?"creation":"update"})}},{key:"getDocumentSavePlan",value:function(e,t){var n,r=this,o=!e._rev,i=this.prepareDocumentForSave(e),u=o?E.Mutations.createDocument(i):E.Mutations.updateDocument(i);if(!(t&&Object.values(t).filter((function(e){return Array.isArray(e)?e.length>0:e})).length>0))return u;for(var c=0,s=Object.keys(t);c<s.length;c++){var l=s[c],f=e._type,d=this.schema.getRelationship(f,l),p=d.type;if(!Q(p))throw n=d.name,new Error('The "'.concat(n,'" relationship does not support references. If you need to add references to a document, its relationship class must have the methods {add,remove}References'))}if(t&&!o)throw new Error("Unable to save external relationships on a not-new document");return[u,function(e){var n=r.hydrateDocument(e.data);return Object.entries(t).map((function(e){var t=(0,a.default)(e,2),r=t[0],o=t[1];return n[r].addReferences(o)}))}]}},{key:"triggerHook",value:function(e,n){if(t.hooks){var r,o=q((t.hooks[n._type]||{})[e]||[]);try{for(o.s();!(r=o.n()).done;){(0,r.value)(this,n)}}catch(e){o.e(e)}finally{o.f()}}}},{key:"destroy",value:(Z=(0,l.default)(s.default.mark((function e(t){var n,r,o=arguments;return s.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=o.length>1&&void 0!==o[1]?o[1]:{},e.next=3,this.triggerHook("before:destroy",t);case 3:return e.next=5,this.mutate(E.Mutations.deleteDocument(t),n);case 5:return r=e.sent,e.next=8,this.triggerHook("after:destroy",t);case 8:return e.abrupt("return",r);case 9:case"end":return e.stop()}}),e,this)}))),function(e){return Z.apply(this,arguments)})},{key:"upload",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.mutate(E.Mutations.uploadFile(e,t),n)}},{key:"ensureQueryExists",value:function(e,t,n){this.ensureStore(),"loaded"===(0,P.getQueryFromState)(this.store.getState(),e).fetchStatus&&(t.skip||t.bookmark)||this.dispatch((0,P.initQuery)(e,t,n))}},{key:"query",value:(K=(0,l.default)(s.default.mark((function e(t){var n,r,o,i,a,u,l=this,f=arguments;return s.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=f.length>1&&void 0!==f[1]?f[1]:{},r=n.update,o=(0,c.default)(n,["update"]),this.ensureStore(),i=o.as||this.queryIdGenerator.generateId(t),a=this.getQueryFromState(i),!o.fetchPolicy){e.next=11;break}if(o.as){e.next=8;break}throw new Error("Cannot use `fetchPolicy` without naming the query, please use `as` to name the query");case 8:if(o.fetchPolicy(a)){e.next=11;break}return e.abrupt("return");case 11:if(!(a&&Object.keys(a).length>0)){e.next=14;break}if("loading"!==a.fetchStatus){e.next=14;break}return e.abrupt("return",this._promiseCache.get((function(){return(0,N.default)(t)})));case 14:return this.ensureQueryExists(i,t,o),e.prev=15,this.dispatch((0,P.loadQuery)(i)),e.next=19,this._promiseCache.exec((function(){return l.requestQuery(t)}),(function(){return(0,N.default)(t)}));case 19:return u=e.sent,this.dispatch((0,P.receiveQueryResult)(i,u,{update:r})),e.abrupt("return",u);case 24:if(e.prev=24,e.t0=e.catch(15),this.dispatch((0,P.receiveQueryError)(i,e.t0)),!o.onError){e.next=31;break}o.onError(e.t0),e.next=36;break;case 31:if(!this.options.onError){e.next=35;break}this.options.onError(e.t0),e.next=36;break;case 35:throw e.t0;case 36:case"end":return e.stop()}}),e,this,[[15,24]])}))),function(e){return K.apply(this,arguments)})},{key:"queryAll",value:(Y=(0,l.default)(s.default.mark((function e(t){var n,r,o,i,a,c,l=arguments;return s.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=l.length>1&&void 0!==l[1]?l[1]:{},r=n.as||this.queryIdGenerator.generateId(t),o=G(G({},n),{},{as:r}),e.next=5,this.query(t,o);case 5:i=e.sent,a=i.data;case 7:if(!i||!i.next){e.next=21;break}if(!i.bookmark){e.next=14;break}return e.next=11,this.query(t.offsetBookmark(i.bookmark),o);case 11:i=e.sent,e.next=18;break;case 14:return c=(0,P.getRawQueryFromState)(this.store.getState(),r),e.next=17,this.query(t.offset(c.data.length),o);case 17:i=e.sent;case 18:a.push.apply(a,(0,u.default)(i.data)),e.next=7;break;case 21:return e.abrupt("return",a);case 22:case"end":return e.stop()}}),e,this)}))),function(e){return Y.apply(this,arguments)})},{key:"watchQuery",value:function(){return console.warn("client.watchQuery is deprecated, please use client.makeObservableQuery."),this.makeObservableQuery.apply(this,arguments)}},{key:"makeObservableQuery",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.ensureStore();var n=t.as||this.queryIdGenerator.generateId(e);return this.ensureQueryExists(n,e),new D.default(n,e,this,t)}},{key:"mutate",value:(V=(0,l.default)(s.default.mark((function e(t){var n,r,o,i,a,u,l=arguments;return s.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=l.length>1&&void 0!==l[1]?l[1]:{},r=n.update,o=n.updateQueries,i=(0,c.default)(n,["update","updateQueries"]),this.ensureStore(),a=i.as||this.queryIdGenerator.generateId(t),this.dispatch((0,P.initMutation)(a,t)),e.prev=5,e.next=8,this.requestMutation(t);case 8:return u=e.sent,this.dispatch((0,P.receiveMutationResult)(a,u,{update:r,updateQueries:o},t)),e.abrupt("return",u);case 13:throw e.prev=13,e.t0=e.catch(5),this.dispatch((0,P.receiveMutationError)(a,e.t0,t)),e.t0;case 17:case"end":return e.stop()}}),e,this,[[5,13]])}))),function(e){return V.apply(this,arguments)})},{key:"requestQuery",value:(J=(0,l.default)(s.default.mark((function e(t){var n,r;return s.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.chain.request(t);case 2:if(n=e.sent,t.includes){e.next=5;break}return e.abrupt("return",n);case 5:return e.next=7,this.fetchRelationships(n,this.getIncludesRelationships(t));case 7:return r=e.sent,e.abrupt("return",r);case 9:case"end":return e.stop()}}),e,this)}))),function(e){return J.apply(this,arguments)})},{key:"fetchRelationships",value:($=(0,l.default)(s.default.mark((function e(t,n){var r,o,i,u,c,l,f,d,p,h,m,w,x,C,k,S,_,O,B,P=this;return s.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((r=!Array.isArray(t.data))||0!==t.data.length){e.next=3;break}return e.abrupt("return",t);case 3:return o=r?[t.data]:t.data,i=new Map,u=[],c=[],o.forEach((function(e){return(0,b.default)(n,(function(t,n){try{var r=t.type.query(e,P,t),o=e._id;i.set(r,[o,n]),r instanceof E.QueryDefinition?c.push(r):u.push(r)}catch(e){}}))})),l=(0,j.default)(c),e.next=11,Promise.all(l.map((function(e){return P.chain.request(e)})));case 11:f=e.sent,d=(0,v.default)((0,y.default)(u),"_id"),p=(0,y.default)(f.map((function(e){return e.included||e.data}))).concat(d).filter(Boolean),h={},m=q((0,g.default)(l,f));try{for(m.s();!(w=m.n()).done;)x=(0,a.default)(w.value,2),C=x[0],k=x[1],(S=i.get(C))&&(_=(0,a.default)(S,2),O=_[0],B=_[1],h[O]=h[O]||{},h[O][B]=(0,A.responseToRelationship)(k))}catch(e){m.e(e)}finally{m.f()}return e.abrupt("return",G(G({},(0,A.attachRelationships)(t,h)),{},{included:p}));case 18:case"end":return e.stop()}}),e)}))),function(e,t){return $.apply(this,arguments)})},{key:"requestMutation",value:(T=(0,l.default)(s.default.mark((function e(t){var n,r,o,a,u=this;return s.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Array.isArray(t)){e.next=8;break}return n=(0,i.default)(t),r=n[0],o=n.slice(1),e.next=4,this.requestMutation(r);case 4:return a=e.sent,e.next=7,Promise.all(o.map((function(e){var t="function"==typeof e?e(a):e;return u.requestMutation(t)})));case 7:return e.abrupt("return",a);case 8:return e.abrupt("return",this.chain.request(t));case 9:case"end":return e.stop()}}),e,this)}))),function(e){return T.apply(this,arguments)})},{key:"getIncludesRelationships",value:function(e){var t=this,n=e.includes,r=e.doctype;return n?(0,m.default)(n.map((function(e){return[e,t.schema.getRelationship(r,e)]}))):{}}},{key:"hydrateDocuments",value:function(e,t){var n=this;if(!1===this.options.autoHydrate)return t;var r=this.schema.getDoctypeSchema(e);return r.relationships?t.map((function(e){return n.hydrateDocument(e,r)})):t}},{key:"hydrateDocument",value:function(e,t){if(!e)return e;var n=t||this.schema.getDoctypeSchema(e._type);return G(G({},e),this.hydrateRelationships(e,n.relationships))}},{key:"hydrateRelationships",value:function(e,t){var n=this.getRelationshipStoreAccessors();return(0,h.default)(t,(function(t,r){return(0,_.create)(e,t,n)}))}},{key:"makeNewDocument",value:function(e){var t={_type:e};return this.hydrateDocument(t)}},{key:"generateRandomId",value:function(){return this.queryIdGenerator.generateRandomId()}},{key:"getAssociation",value:function(e,t){return(0,_.create)(e,this.schema.getRelationship(e._type,t),this.getRelationshipStoreAccessors())}},{key:"getRelationshipStoreAccessors",value:function(){var e=this;return this.storeAccesors||(this.storeAccessors={get:this.getDocumentFromState.bind(this),save:function(t,n){return e.save.call(e,t,n)},dispatch:this.dispatch.bind(this),query:function(t,n){return e.query.call(e,t,n)},mutate:function(t,n){return e.mutate.call(e,t,n)}}),this.storeAccessors}},{key:"getCollectionFromState",value:function(e){try{return(0,P.getCollectionFromState)(this.store.getState(),e)}catch(t){return F.default.warn("Could not getCollectionFromState",e,t.message),null}}},{key:"getDocumentFromState",value:function(e,t){try{return(0,P.getDocumentFromState)(this.store.getState(),e,t)}catch(n){return F.default.warn("Could not getDocumentFromState",e,t,n.message),null}}},{key:"getQueryFromState",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.hydrated||!1,r=t.singleDocData||!1;try{var o=(0,P.getQueryFromState)(this.store.getState(),e),i=o.definition&&o.definition.doctype,a=o.definition&&o.definition.id;if(!n&&!r)return o;var u=n&&i?this.hydrateDocuments(i,o.data):o.data;return G(G({},o),{},{data:a&&r?u[0]:u})}catch(t){return console.warn("Could not get query from state. queryId: ".concat(e,", error: ").concat(t.message)),null}}},{key:"register",value:function(e){return this.getStackClient().setUri(e),this.startOAuthFlow(B.authFunction)}},{key:"isReactNative",value:function(){return"undefined"!=typeof navigator&&"ReactNative"==navigator.product}},{key:"startOAuthFlow",value:(x=(0,l.default)(s.default.mark((function e(t){var n;return s.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this.getStackClient(),e.next=3,n.register();case 3:if(!n.oauthOptions.shouldRequireFlagshipPermissions){e.next=6;break}return e.next=6,(0,U.certifyFlagship)(n.oauthOptions.certificationConfig,this);case 6:return e.abrupt("return",this.authorize(t));case 7:case"end":return e.stop()}}),e,this)}))),function(e){return x.apply(this,arguments)})},{key:"authorize",value:(o=(0,l.default)(s.default.mark((function e(t){var n,r,o,i,a,u;return s.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,n=this.getStackClient(),r=n.generateStateCode(),o=n.getAuthCodeURL(r),e.next=6,t(o);case 6:return i=e.sent,a=n.getAccessCodeFromURL(i,r),e.next=10,n.fetchAccessToken(a);case 10:return u=e.sent,n.setToken(u),e.abrupt("return",{token:u,infos:n.oauthOptions,client:n.oauthOptions});case 15:throw e.prev=15,e.t0=e.catch(0),e.t0.message===k.REGISTRATION_ABORT&&this.getStackClient().unregister(),e.t0;case 19:case"end":return e.stop()}}),e,this,[[0,15]])}))),function(e){return o.apply(this,arguments)})},{key:"renewAuthorization",value:function(){return this.authorize(B.authFunction)}},{key:"setStore",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.force,r=void 0!==n&&n;if(void 0===e)throw new Error("Store is undefined");if(this.store&&!r)throw new Error("Client already has a store, it is forbidden to change store.\nsetStore must be called before any query is executed. Try to\ncall setStore earlier in your code, preferably just after the\ninstantiation of the client.");this.store=e}},{key:"ensureStore",value:function(){this.store||this.setStore((0,P.createStore)())}},{key:"checkForRevocation",value:(r=(0,l.default)(s.default.mark((function e(){return s.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.stackClient.checkForRevocation());case 1:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"handleRevocationChange",value:function(e){e?(this.isRevoked=!0,this.emit("revoked")):(this.isRevoked=!1,this.emit("unrevoked"))}},{key:"handleTokenRefresh",value:function(e){this.emit("tokenRefreshed"),this.options.onTokenRefresh&&(W("Using onTokenRefresh is deprecated, please use events like this: cozyClient.on('tokenRefreshed', token => console.log('Token has been refreshed', token)). https://git.io/fj3M3"),this.options.onTokenRefresh(e))}},{key:"createClient",value:function(){this.options.client&&console.warn("CozyClient: Using options.client is deprecated, please use options.stackClient.");var e=void 0===this.options.warningForCustomHandlers||this.options.warningForCustomHandlers,t=this.options.client||this.options.stackClient,n={onRevocationChange:this.handleRevocationChange,onTokenRefresh:this.handleTokenRefresh};if(t){this.stackClient=t,t.options||(t.options={});for(var r=0,o=Object.keys(n);r<o.length;r++){var i=o[r];t.options[i]?e&&console.warn("You passed a stackClient with its own ".concat(i,". It is not supported, unexpected things might happen.")):t.options[i]=n[i]}}else{var a=G(G({},this.options),n);this.stackClient=this.options.oauth?new C.OAuthClient(a):new C.default(a)}this.client=new Proxy(this.stackClient,W("Using cozyClient.client is deprecated, please use cozyClient.stackClient."))}},{key:"getClient",value:function(){return console.warn("CozyClient: getClient() is deprecated, please use getStackClient()."),this.getStackClient()}},{key:"getStackClient",value:function(){return this.stackClient||this.createClient(),this.stackClient}},{key:"reducer",value:function(){return P.default}},{key:"dispatch",value:function(e){return this.store.dispatch(e)}},{key:"getInstanceOptions",value:function(){return this.instanceOptions}},{key:"loadInstanceOptionsFromDOM",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"[role=application]",t=document.querySelector(e);if(!(t instanceof HTMLElement))throw new Error("The selector that is passed does not return an HTMLElement");var n=t.dataset,r=n.cozy,o=void 0===r?"{}":r,i=(0,c.default)(n,["cozy"]);this.instanceOptions=G(G({},JSON.parse(o)),i),this.capabilities=this.instanceOptions.capabilities||null}},{key:"setData",value:function(e){var t=this;this.ensureStore(),Object.entries(e).forEach((function(e){var n=(0,a.default)(e,2),r=(n[0],n[1]);t.dispatch((0,P.receiveQueryResult)(null,{data:r}))}))}},{key:"setOnError",value:function(e){if(this.options&&this.options.onError)throw new Error("On Error is already defined");this.options.onError=e}},{key:"toJSON",value:function(){return new R.CozyClient({uri:this.options.uri})}}],[{key:"fromOldClient",value:function(e,n){return new t(G({uri:e._url,token:e._token.token},n))}},{key:"fromOldOAuthClient",value:(n=(0,l.default)(s.default.mark((function e(n,r){var o,i;return s.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!n._oauth){e.next=8;break}return e.next=3,n.authorize();case 3:return o=e.sent,i={oauth:o.client,token:o.token,scope:o.token.scope},e.abrupt("return",new t(G(G({uri:n._url},i),r)));case 8:throw new Error("Cannot instantiate a new client: old client is not an OAuth client. CozyClient.fromOldClient might be more suitable.");case 9:case"end":return e.stop()}}),e)}))),function(e,t){return n.apply(this,arguments)})},{key:"fromEnv",value:function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=n||(void 0!==e?Object({USE_REACT:!0}):{}),i=o.COZY_URL,a=o.COZY_CREDENTIALS,u=o.NODE_ENV;if(!i||!a)throw new Error("Env used to instantiate CozyClient must have COZY_URL and COZY_CREDENTIALS");return"development"===u?r.oauth=JSON.parse(a):r.token=a.trim(),r.uri=i.trim(),new t(G({},r))}},{key:"fromDOM",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"[role=application]",r=document.querySelector(n);if(!(r instanceof HTMLElement))throw new Error("Cannot find an HTMLElement corresponding to ".concat(n));if(!r||!r.dataset)throw new Error("Found no data in ".concat(n," to instantiate cozyClient"));var o=r.dataset.cozy?JSON.parse(r.dataset.cozy):G({},r.dataset),i=o.domain,a=o.token;if(i&&a||(i=i||o.cozyDomain,a=a||o.cozyToken),!i||!a)throw new Error("Found no data in ".concat(r.dataset," to instantiate cozyClient"));return new t(G({uri:"".concat(window.location.protocol,"//").concat(i),token:a,capabilities:o.capabilities},e))}},{key:"registerHook",value:function(e,n,r){var o=t.hooks[e]=t.hooks[e]||{};o[n]=o[n]||[],o[n].push(r)}}]),t}();V.hooks=V.hooks||{},V.fetchPolicies=T.default,V.version="27.14.4",x.default.mixin(V);var Y=V;t.default=Y}).call(this,n(468))},function(e,t,n){var r=n(153);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(o.Cache||r),n}o.Cache=r,e.exports=o},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatBytes=t.slugify=t.sleep=t.attempt=t.uri=void 0;t.uri=function(e){for(var t=[e[0]],n=0;n<(arguments.length<=1?0:arguments.length-1);n++)t.push(encodeURIComponent(n+1<1||arguments.length<=n+1?void 0:arguments[n+1])+e[n+1]);return t.join("")};t.attempt=function(e){return e.then((function(){return!0})).catch((function(){return!1}))};t.sleep=function(e,t){return new Promise((function(n){setTimeout(n,e,t)}))};t.slugify=function(e){return e.toString().toLowerCase().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,"")};t.formatBytes=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;if(0===e)return"0 Bytes";var n=1024,r=t<0?0:t,o=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],i=Math.floor(Math.log(e)/Math.log(n));return parseFloat((e/Math.pow(n,i)).toFixed(r))+" "+o[i]}},function(e,t){function n(){this._events={}}n.prototype={on:function(e,t){this._events||(this._events={});var n=this._events;return(n[e]||(n[e]=[])).push(t),this},removeListener:function(e,t){var n,r=this._events[e]||[];for(n=r.length-1;n>=0&&r[n];n--)r[n]!==t&&r[n].cb!==t||r.splice(n,1)},removeAllListeners:function(e){e?this._events[e]&&(this._events[e]=[]):this._events={}},listeners:function(e){return this._events&&this._events[e]||[]},emit:function(e){this._events||(this._events={});var t,n=Array.prototype.slice.call(arguments,1),r=this._events[e]||[];for(t=r.length-1;t>=0&&r[t];t--)r[t].apply(this,n);return this},when:function(e,t){return this.once(e,t,!0)},once:function(e,t,n){if(!t)return this;function r(){n||this.removeListener(e,r),t.apply(this,arguments)&&n&&this.removeListener(e,r)}return r.cb=t,this.on(e,r),this}},n.mixin=function(e){var t,r=n.prototype;for(t in r)r.hasOwnProperty(t)&&(e.prototype[t]=r[t])},e.exports=n},function(e,t){e.exports=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}},function(e,t,n){var r=n(152),o=n(157);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},function(e,t,n){function r(){}n(45).mixin(r),r.prototype.write=function(e,t,n){this.emit("item",e,t,n)},r.prototype.end=function(){this.emit("end"),this.removeAllListeners()},r.prototype.pipe=function(e){var t=this;function n(){e.write.apply(e,Array.prototype.slice.call(arguments))}function r(){!e._isStdio&&e.end()}return t.emit("unpipe",e),e.emit("pipe",t),t.on("item",n),t.on("end",r),t.when("unpipe",(function(o){var i=o===e||void 0===o;return i&&(t.removeListener("item",n),t.removeListener("end",r),e.emit("unpipe")),i})),e},r.prototype.unpipe=function(e){return this.emit("unpipe",e),this},r.prototype.format=function(e){throw new Error(["Warning: .format() is deprecated in Minilog v2! Use .pipe() instead. For example:","var Minilog = require('minilog');","Minilog"," .pipe(Minilog.backends.console.formatClean)"," .pipe(Minilog.backends.console);"].join("\n"))},r.mixin=function(e){var t,n=r.prototype;for(t in n)n.hasOwnProperty(t)&&(e.prototype[t]=n[t])},e.exports=r},function(e,t,n){"use strict";var r=n(449),o="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),i=Object.prototype.toString,a=Array.prototype.concat,u=Object.defineProperty,c=u&&function(){var e={};try{for(var t in u(e,"x",{enumerable:!1,value:e}),e)return!1;return e.x===e}catch(e){return!1}}(),s=function(e,t,n,r){var o;(!(t in e)||"function"==typeof(o=r)&&"[object Function]"===i.call(o)&&r())&&(c?u(e,t,{configurable:!0,enumerable:!1,value:n,writable:!0}):e[t]=n)},l=function(e,t){var n=arguments.length>2?arguments[2]:{},i=r(t);o&&(i=a.call(i,Object.getOwnPropertySymbols(t)));for(var u=0;u<i.length;u+=1)s(e,i[u],t[i[u]],n[i[u]])};l.supportsDescriptors=!!c,e.exports=l},function(e,t,n){function r(){}n(45).mixin(r),r.prototype.write=function(e,t,n){this.emit("item",e,t,n)},r.prototype.end=function(){this.emit("end"),this.removeAllListeners()},r.prototype.pipe=function(e){var t=this;function n(){e.write.apply(e,Array.prototype.slice.call(arguments))}function r(){!e._isStdio&&e.end()}return t.emit("unpipe",e),e.emit("pipe",t),t.on("item",n),t.on("end",r),t.when("unpipe",(function(o){var i=o===e||void 0===o;return i&&(t.removeListener("item",n),t.removeListener("end",r),e.emit("unpipe")),i})),e},r.prototype.unpipe=function(e){return this.emit("unpipe",e),this},r.prototype.format=function(e){throw new Error(["Warning: .format() is deprecated in Minilog v2! Use .pipe() instead. For example:","var Minilog = require('minilog');","Minilog"," .pipe(Minilog.backends.console.formatClean)"," .pipe(Minilog.backends.console);"].join("\n"))},r.mixin=function(e){var t,n=r.prototype;for(t in n)n.hasOwnProperty(t)&&(e.prototype[t]=n[t])},e.exports=r},function(e,t,n){(t=e.exports=n(70)(!0)).push([e.i,"@-webkit-keyframes cozy-ui-bar-spin--39OaW{from{transform:rotate(0deg)}to{transform:rotate(359deg)}}@keyframes cozy-ui-bar-spin--39OaW{from{transform:rotate(0deg)}to{transform:rotate(359deg)}}@-webkit-keyframes cozy-ui-bar-shake--34qwk{10%,90%{transform:translate3d(-1px,0,0)}20%,80%{transform:translate3d(2px,0,0)}30%,50%,70%{transform:translate3d(-4px,0,0)}40%,60%{transform:translate3d(4px,0,0)}}@keyframes cozy-ui-bar-shake--34qwk{10%,90%{transform:translate3d(-1px,0,0)}20%,80%{transform:translate3d(2px,0,0)}30%,50%,70%{transform:translate3d(-4px,0,0)}40%,60%{transform:translate3d(4px,0,0)}}.u-visuallyhidden{position:absolute!important;border:0!important;width:.063rem!important;height:.063rem!important;overflow:hidden!important;padding:0!important;white-space:nowrap!important;clip:rect(.063rem,.063rem,.063rem,.063rem)!important;-webkit-clip-path:inset(50%)!important;clip-path:inset(50%)!important}.u-hide{display:none!important;visibility:hidden!important}.u-dn{display:none}.u-di{display:inline}.u-db{display:block}.u-dib{display:inline-block}.u-dit{display:inline-table}.u-dt{display:table}.u-dtc{display:table-cell}.u-dt-row{display:table-row}.u-dt-row-group{display:table-row-group}.u-dt-column{display:table-column}.u-dt-column-group{display:table-column-group}.u-black{color:var(--black)!important}.u-charcoalGrey{color:var(--charcoalGrey)!important}.u-coolGrey{color:var(--coolGrey)!important}.u-silver{color:var(--silver)!important}.u-slateGrey{color:var(--slateGrey)!important}.u-lightishPurple{color:#b449e7!important}.u-dodgerBlue{color:#297ef2!important}.u-overlay{color:var(--overlay)!important}.u-paleGrey{color:var(--paleGrey)!important}.u-monza{color:#dd0505!important}.u-pomegranate{color:#f52d2d!important}.u-primaryBackgroundLight{color:var(--primaryBackgroundLight)!important}.u-primaryColor{color:var(--primaryColor)!important}.u-primaryColorLight{color:var(--primaryColorLight)!important}.u-primaryContrastTextColor{color:var(--primaryContrastTextColor)!important}.u-error{color:var(--errorColor)!important}.u-errorBackground{color:var(--errorBackground)!important}.u-success{color:var(--successColor)!important}.u-warning{color:var(--warningColor)!important}.u-info{color:var(--infoColor)!important}.u-weirdGreen{color:#40de8e!important}.u-white{color:var(--white)!important}.u-breakword{word-break:break-word}.u-ellipsis{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.u-spacellipsis{overflow:hidden;text-overflow:ellipsis;white-space:break-spaces}.u-midellipsis{display:flex;flex-wrap:nowrap}.u-midellipsis>*{display:inline-block;max-width:50%;overflow:hidden;white-space:pre}.u-midellipsis>:first-child{text-overflow:ellipsis}.u-midellipsis>:last-child{text-overflow:clip;direction:rtl}@supports(text-overflow:'[...]'){.u-midellipsis>:first-child{text-overflow:'[...]'}}.u-link:link{color:var(--linkColor)!important;-webkit-text-decoration:var(--linkTextDecoration)!important;text-decoration:var(--linkTextDecoration)!important}.u-link:visited,.u-link:active,.u-link:hover,.u-link:focus{color:var(--linkColorActive)!important}.u-lh-tiny{line-height:1!important}.u-lh-xsmall{line-height:1.1!important}.u-lh-small{line-height:1.2!important}.u-lh-medium{line-height:1.3!important}.u-lh-large{line-height:1.4!important}.u-lh-xlarge{line-height:1.5!important}.u-fz-tiny{font-size:.75rem!important;line-height:1.3!important}.u-fz-xsmall{font-size:.813rem!important;line-height:1.4!important}.u-fz-small{font-size:.875rem!important;line-height:1.4!important}.u-fz-medium{font-size:1rem!important;line-height:1.5!important}.u-fz-large{font-size:1.125rem!important;line-height:1.5!important}.u-ta-left{text-align:left!important}.u-ta-right{text-align:right!important}.u-ta-center{text-align:center!important}.u-ta-justify{text-align:justify!important}.u-fs-normal{font-style:normal!important}.u-fs-italic{font-style:italic!important}.u-fw-normal{font-weight:400}.u-fw-bold{font-weight:700}.cozy-ui-bar-c-btn--3Vk8q,.cozy-ui-bar-c-btn--regular--2vXm9{position:relative;box-sizing:border-box;display:inline-flex;margin:0 .25rem;border-width:.063rem;border-style:solid;border-radius:var(--buttonBorderRadius);min-height:2.5rem;min-width:7rem;padding:.188rem 1rem;vertical-align:top;text-align:center;font-size:.875rem;font-weight:700;line-height:1;text-transform:var(--buttonTextTransform);text-decoration:none;cursor:pointer;align-items:center;background-color:var(--regularButtonPrimaryColor);color:var(--regularButtonConstrastColor);border-color:var(--regularButtonSecondaryColor)}.cozy-ui-bar-c-btn--3Vk8q svg,.cozy-ui-bar-c-btn--regular--2vXm9 svg{fill:currentColor}.cozy-ui-bar-c-btn--3Vk8q svg+span,.cozy-ui-bar-c-btn--regular--2vXm9 svg+span{margin-left:.375rem}.cozy-ui-bar-c-btn--3Vk8q input,.cozy-ui-bar-c-btn--regular--2vXm9 input{cursor:pointer}.cozy-ui-bar-c-btn--3Vk8q>span,.cozy-ui-bar-c-btn--regular--2vXm9>span{display:flex;align-items:center;justify-content:center;width:100%}.cozy-ui-bar-c-btn--3Vk8q[disabled],.cozy-ui-bar-c-btn--regular--2vXm9[disabled],.cozy-ui-bar-c-btn--3Vk8q[aria-disabled=true],.cozy-ui-bar-c-btn--regular--2vXm9[aria-disabled=true]{opacity:.5;cursor:not-allowed}.cozy-ui-bar-c-btn--3Vk8q[disabled] input,.cozy-ui-bar-c-btn--regular--2vXm9[disabled] input,.cozy-ui-bar-c-btn--3Vk8q[aria-disabled=true] input,.cozy-ui-bar-c-btn--regular--2vXm9[aria-disabled=true] input{cursor:not-allowed}.cozy-ui-bar-c-btn--3Vk8q[aria-busy=true],.cozy-ui-bar-c-btn--regular--2vXm9[aria-busy=true]{opacity:.5;pointer-events:none}.cozy-ui-bar-c-btn--3Vk8q:visited,.cozy-ui-bar-c-btn--regular--2vXm9:visited{color:var(--regularButtonConstrastColor)}.cozy-ui-bar-c-btn--3Vk8q:active,.cozy-ui-bar-c-btn--regular--2vXm9:active,.cozy-ui-bar-c-btn--3Vk8q:hover,.cozy-ui-bar-c-btn--regular--2vXm9:hover,.cozy-ui-bar-c-btn--3Vk8q:focus,.cozy-ui-bar-c-btn--regular--2vXm9:focus{border-color:var(--regularButtonActiveColor);background-color:var(--regularButtonActiveColor)}.cozy-ui-bar-c-btn--3Vk8q[disabled]:hover,.cozy-ui-bar-c-btn--regular--2vXm9[disabled]:hover,.cozy-ui-bar-c-btn--3Vk8q[aria-disabled=true]:hover,.cozy-ui-bar-c-btn--regular--2vXm9[aria-disabled=true]:hover{border-color:var(--regularButtonSecondaryColor);background-color:var(--regularButtonPrimaryColor)}.cozy-ui-bar-c-btn--ghost--2erzD{background-color:var(--zircon);color:var(--primaryColor);border-color:#c2dcff;border-style:dashed}.cozy-ui-bar-c-btn--ghost--2erzD:visited{color:var(--primaryColor)}.cozy-ui-bar-c-btn--ghost--2erzD:active,.cozy-ui-bar-c-btn--ghost--2erzD:hover,.cozy-ui-bar-c-btn--ghost--2erzD:focus{border-color:#c2dcff;background-color:#c2dcff}.cozy-ui-bar-c-btn--ghost--2erzD[disabled]:hover,.cozy-ui-bar-c-btn--ghost--2erzD[aria-disabled=true]:hover{border-color:#c2dcff;background-color:var(--zircon)}.cozy-ui-bar-c-btn--highlight--139k0{background-color:#35ce68;color:var(--white);border-color:#35ce68}.cozy-ui-bar-c-btn--highlight--139k0:visited{color:var(--white)}.cozy-ui-bar-c-btn--highlight--139k0:active,.cozy-ui-bar-c-btn--highlight--139k0:hover,.cozy-ui-bar-c-btn--highlight--139k0:focus{border-color:#08b442;background-color:#08b442}.cozy-ui-bar-c-btn--highlight--139k0[disabled]:hover,.cozy-ui-bar-c-btn--highlight--139k0[aria-disabled=true]:hover{border-color:#35ce68;background-color:#35ce68}.cozy-ui-bar-c-btn--alpha--3xuwd,.cozy-ui-bar-c-btn--action--1mNtp,.cozy-ui-bar-c-btn--close--m97vB{background-color:transparent;color:var(--white);border-color:var(--white)}.cozy-ui-bar-c-btn--alpha--3xuwd:visited,.cozy-ui-bar-c-btn--action--1mNtp:visited,.cozy-ui-bar-c-btn--close--m97vB:visited{color:var(--white)}.cozy-ui-bar-c-btn--alpha--3xuwd:active,.cozy-ui-bar-c-btn--action--1mNtp:active,.cozy-ui-bar-c-btn--close--m97vB:active,.cozy-ui-bar-c-btn--alpha--3xuwd:hover,.cozy-ui-bar-c-btn--action--1mNtp:hover,.cozy-ui-bar-c-btn--close--m97vB:hover,.cozy-ui-bar-c-btn--alpha--3xuwd:focus,.cozy-ui-bar-c-btn--action--1mNtp:focus,.cozy-ui-bar-c-btn--close--m97vB:focus{border-color:var(--scienceBlue);background-color:var(--scienceBlue)}.cozy-ui-bar-c-btn--alpha--3xuwd[disabled]:hover,.cozy-ui-bar-c-btn--action--1mNtp[disabled]:hover,.cozy-ui-bar-c-btn--close--m97vB[disabled]:hover,.cozy-ui-bar-c-btn--alpha--3xuwd[aria-disabled=true]:hover,.cozy-ui-bar-c-btn--action--1mNtp[aria-disabled=true]:hover,.cozy-ui-bar-c-btn--close--m97vB[aria-disabled=true]:hover{border-color:var(--white);background-color:transparent}.cozy-ui-bar-c-btn--danger--3pdnK{background-color:#f52d2d;color:var(--white);border-color:#f52d2d}.cozy-ui-bar-c-btn--danger--3pdnK:visited{color:var(--white)}.cozy-ui-bar-c-btn--danger--3pdnK:active,.cozy-ui-bar-c-btn--danger--3pdnK:hover,.cozy-ui-bar-c-btn--danger--3pdnK:focus{border-color:var(--monza);background-color:var(--monza)}.cozy-ui-bar-c-btn--danger--3pdnK[disabled]:hover,.cozy-ui-bar-c-btn--danger--3pdnK[aria-disabled=true]:hover{border-color:#f52d2d;background-color:#f52d2d}.cozy-ui-bar-c-btn--secondary--2JUsA{background-color:var(--secondaryButtonPrimaryColor);color:var(--secondaryButtonContrastColor);border-color:var(--secondaryButtonSecondaryColor)}.cozy-ui-bar-c-btn--secondary--2JUsA:visited{color:var(--secondaryButtonContrastColor)}.cozy-ui-bar-c-btn--secondary--2JUsA:active,.cozy-ui-bar-c-btn--secondary--2JUsA:hover,.cozy-ui-bar-c-btn--secondary--2JUsA:focus{border-color:var(--secondaryButtonActiveColor);background-color:var(--secondaryButtonActiveColor)}.cozy-ui-bar-c-btn--secondary--2JUsA[disabled]:hover,.cozy-ui-bar-c-btn--secondary--2JUsA[aria-disabled=true]:hover{border-color:var(--secondaryButtonSecondaryColor);background-color:var(--secondaryButtonPrimaryColor)}.cozy-ui-bar-c-btn--danger-outline--2Bltk{background-color:var(--white);color:#f52d2d;border-color:#fdcbcb}.cozy-ui-bar-c-btn--danger-outline--2Bltk:visited{color:#f52d2d}.cozy-ui-bar-c-btn--danger-outline--2Bltk:active,.cozy-ui-bar-c-btn--danger-outline--2Bltk:hover,.cozy-ui-bar-c-btn--danger-outline--2Bltk:focus{border-color:#fdcbcb;background-color:#fdcbcb}.cozy-ui-bar-c-btn--danger-outline--2Bltk[disabled]:hover,.cozy-ui-bar-c-btn--danger-outline--2Bltk[aria-disabled=true]:hover{border-color:#fdcbcb;background-color:var(--white)}.cozy-ui-bar-c-btn--text--1M_ap{background-color:transparent;color:var(--primaryColor);border-color:transparent}.cozy-ui-bar-c-btn--text--1M_ap:visited{color:var(--primaryColor)}.cozy-ui-bar-c-btn--text--1M_ap:active,.cozy-ui-bar-c-btn--text--1M_ap:hover,.cozy-ui-bar-c-btn--text--1M_ap:focus{border-color:transparent;background-color:transparent}.cozy-ui-bar-c-btn--text--1M_ap[disabled]:hover,.cozy-ui-bar-c-btn--text--1M_ap[aria-disabled=true]:hover{border-color:transparent;background-color:transparent}.cozy-ui-bar-c-btn--text--1M_ap:hover,.cozy-ui-bar-c-btn--text--1M_ap:focus{color:var(--primaryColorDark)}.cozy-ui-bar-c-btn--action--1mNtp{border-color:transparent;padding:.5rem;opacity:.5}.cozy-ui-bar-c-btn--action--1mNtp:active,.cozy-ui-bar-c-btn--action--1mNtp:hover,.cozy-ui-bar-c-btn--action--1mNtp:focus{background-color:transparent;border-color:transparent}.cozy-ui-bar-c-btn--close--m97vB{border-color:transparent;padding:.5rem}.cozy-ui-bar-c-btn--close--m97vB:active,.cozy-ui-bar-c-btn--close--m97vB:hover,.cozy-ui-bar-c-btn--close--m97vB:focus{background-color:transparent;border-color:transparent}.cozy-ui-bar-c-btn--left--3xEmE>span{justify-content:flex-start}.cozy-ui-bar-c-btn--center--T8nT8>span{justify-content:center}.cozy-ui-bar-c-btn--right--3pX-0>span{justify-content:flex-end}.cozy-ui-bar-c-btn--3Vk8q.cozy-ui-bar-c-btn--tiny--15Am0{min-height:1.5rem;min-width:5rem;padding:.125rem 1rem;font-size:.75rem;line-height:1.3}.cozy-ui-bar-c-btn--3Vk8q.cozy-ui-bar-c-btn--small--gNd1_{min-height:2rem;min-width:6rem;padding:.188rem .5rem;font-size:.813rem;line-height:1.4}.cozy-ui-bar-c-btn--3Vk8q.cozy-ui-bar-c-btn--large--VoQ1T{min-height:3rem;min-width:10rem;padding:.5rem 1.5rem;font-size:1rem;line-height:1.5}.cozy-ui-bar-c-btn--3Vk8q.cozy-ui-bar-c-btn--full--257V_{width:100%;margin-left:0;margin-right:0}.cozy-ui-bar-c-btn--3Vk8q.cozy-ui-bar-c-btn--narrow--37r_T,.cozy-ui-bar-c-btn--3Vk8q.cozy-ui-bar-c-btn--round--TSd9o{min-width:auto}.cozy-ui-bar-c-btn--3Vk8q.cozy-ui-bar-c-btn--round--TSd9o{border-radius:100%;min-height:auto;padding:.25rem}.cozy-ui-bar-c-btn--3Vk8q.cozy-ui-bar-c-btn--round--TSd9o svg{width:.625rem;height:.625rem}.cozy-ui-bar-c-btn--subtle--225Zu{color:var(--regularButtonSecondaryColor);min-height:auto;min-width:auto;border:0;margin:1rem 0;padding:0;vertical-align:baseline;background:transparent;cursor:pointer;font-size:.875rem;font-weight:700;text-transform:uppercase}.cozy-ui-bar-c-btn--subtle--225Zu:active,.cozy-ui-bar-c-btn--subtle--225Zu:focus,.cozy-ui-bar-c-btn--subtle--225Zu:hover{color:var(--regularButtonActiveColor)}.cozy-ui-bar-c-btn--subtle--225Zu>span{display:flex;align-items:center;justify-content:center;width:100%}.cozy-ui-bar-c-btn--subtle--225Zu[disabled],.cozy-ui-bar-c-btn--subtle--225Zu[aria-disabled=true]{opacity:.5;cursor:not-allowed}.cozy-ui-bar-c-btn--subtle--225Zu[disabled]:hover,.cozy-ui-bar-c-btn--subtle--225Zu[aria-disabled=true]:hover{background:transparent}.cozy-ui-bar-c-btn--subtle--225Zu[aria-busy=true]{opacity:.5;cursor:not-allowed;pointer-events:none}.cozy-ui-bar-c-btn--subtle--225Zu[aria-busy=true]:hover{background:transparent}.cozy-ui-bar-c-btn--subtle--225Zu:active,.cozy-ui-bar-c-btn--subtle--225Zu:hover,.cozy-ui-bar-c-btn--subtle--225Zu:focus,.cozy-ui-bar-c-btn--subtle--225Zu:visited{color:var(--primaryColorDark);background:transparent}*+.cozy-ui-bar-c-btn--subtle--225Zu{margin-left:.063rem}.cozy-ui-bar-c-btn--subtle--225Zu.cozy-ui-bar-c-btn--tiny--15Am0{min-height:0;min-width:0;padding:0;font-size:.563rem}.cozy-ui-bar-c-btn--subtle--225Zu.cozy-ui-bar-c-btn--small--gNd1_{min-height:0;min-width:0;padding:0;font-size:.75rem}.cozy-ui-bar-c-btn--subtle--225Zu.cozy-ui-bar-c-btn--large--VoQ1T{min-height:0;min-width:0;padding:0;font-size:1rem}.cozy-ui-bar-c-btn--subtle--225Zu.cozy-ui-bar-c-btn--danger--3pdnK{color:#f52d2d}.cozy-ui-bar-c-btn--subtle--225Zu.cozy-ui-bar-c-btn--danger--3pdnK:active,.cozy-ui-bar-c-btn--subtle--225Zu.cozy-ui-bar-c-btn--danger--3pdnK:focus,.cozy-ui-bar-c-btn--subtle--225Zu.cozy-ui-bar-c-btn--danger--3pdnK:hover{color:var(--monza)}.cozy-ui-bar-c-btn--subtle--225Zu.cozy-ui-bar-c-btn--highlight--139k0{color:#35ce68}.cozy-ui-bar-c-btn--subtle--225Zu.cozy-ui-bar-c-btn--highlight--139k0:active,.cozy-ui-bar-c-btn--subtle--225Zu.cozy-ui-bar-c-btn--highlight--139k0:focus,.cozy-ui-bar-c-btn--subtle--225Zu.cozy-ui-bar-c-btn--highlight--139k0:hover{color:#08b442}.cozy-ui-bar-c-btn--subtle--225Zu.cozy-ui-bar-c-btn--regular--2vXm9{color:var(--regularButtonSecondaryColor)}.cozy-ui-bar-c-btn--subtle--225Zu.cozy-ui-bar-c-btn--regular--2vXm9:active,.cozy-ui-bar-c-btn--subtle--225Zu.cozy-ui-bar-c-btn--regular--2vXm9:focus,.cozy-ui-bar-c-btn--subtle--225Zu.cozy-ui-bar-c-btn--regular--2vXm9:hover{color:var(--regularButtonActiveColor)}.cozy-ui-bar-c-btn--subtle--225Zu.cozy-ui-bar-c-btn--secondary--2JUsA{color:var(--slateGrey)}.cozy-ui-bar-c-btn--subtle--225Zu.cozy-ui-bar-c-btn--secondary--2JUsA:active,.cozy-ui-bar-c-btn--subtle--225Zu.cozy-ui-bar-c-btn--secondary--2JUsA:focus,.cozy-ui-bar-c-btn--subtle--225Zu.cozy-ui-bar-c-btn--secondary--2JUsA:hover{color:var(--charcoalGrey)}.cozy-ui-bar-c-btn--subtle--225Zu.cozy-ui-bar-c-btn--secondary--2JUsA:active svg,.cozy-ui-bar-c-btn--subtle--225Zu.cozy-ui-bar-c-btn--secondary--2JUsA:focus svg,.cozy-ui-bar-c-btn--subtle--225Zu.cozy-ui-bar-c-btn--secondary--2JUsA:hover svg{color:var(--slateGrey)}.cozy-ui-bar-c-btn--subtle--225Zu.cozy-ui-bar-c-btn--secondary--2JUsA svg{color:var(--coolGrey)}@media(max-width:63.938rem){.u-hide--mob{display:none!important}.u-dn-m{display:none}.u-di-m{display:inline}.u-db-m{display:block}.u-dib-m{display:inline-block}.u-dit-m{display:inline-table}.u-dt-m{display:table}.u-dtc-m{display:table-cell}.u-dt-row-m{display:table-row}.u-dt-row-group-m{display:table-row-group}.u-dt-column-m{display:table-column}.u-dt-column-group-m{display:table-column-group}.u-spacellipsis-m{overflow:hidden;text-overflow:ellipsis;white-space:break-spaces}.u-fz-tiny-m{font-size:.75rem!important;line-height:1.3!important}.u-fz-xsmall-m{font-size:.813rem!important;line-height:1.4!important}.u-fz-small-m{font-size:.875rem!important;line-height:1.4!important}.u-fz-medium-m{font-size:1rem!important;line-height:1.5!important}.u-fz-large-m{font-size:1.125rem!important;line-height:1.5!important}.u-ta-left-m{text-align:left!important}.u-ta-right-m{text-align:right!important}.u-ta-center-m{text-align:center!important}.u-ta-justify-m{text-align:justify!important}.u-fs-normal-m{font-style:normal!important}.u-fs-italic-m{font-style:italic!important}.u-fw-normal-m{font-weight:400}.u-fw-bold-m{font-weight:700}}@media(min-width:64rem){.u-hide--tablet{display:none!important}}@media(min-width:48.063rem){.u-hide--desk{display:none!important}}@media(max-width:30rem){.u-dn-t{display:none}.u-di-t{display:inline}.u-db-t{display:block}.u-dib-t{display:inline-block}.u-dit-t{display:inline-table}.u-dt-t{display:table}.u-dtc-t{display:table-cell}.u-dt-row-t{display:table-row}.u-dt-row-group-t{display:table-row-group}.u-dt-column-t{display:table-column}.u-dt-column-group-t{display:table-column-group}.u-spacellipsis-t{overflow:hidden;text-overflow:ellipsis;white-space:break-spaces}.u-fz-tiny-t{font-size:.75rem!important;line-height:1.3!important}.u-fz-xsmall-t{font-size:.813rem!important;line-height:1.4!important}.u-fz-small-t{font-size:.875rem!important;line-height:1.4!important}.u-fz-medium-t{font-size:1rem!important;line-height:1.5!important}.u-fz-large-t{font-size:1.125rem!important;line-height:1.5!important}.u-ta-left-t{text-align:left!important}.u-ta-right-t{text-align:right!important}.u-ta-center-t{text-align:center!important}.u-ta-justify-t{text-align:justify!important}.u-fs-normal-t{font-style:normal!important}.u-fs-italic-t{font-style:italic!important}.u-fw-normal-t{font-weight:400}.u-fw-bold-t{font-weight:700}}@media(max-width:48rem){.u-dn-s{display:none}.u-di-s{display:inline}.u-db-s{display:block}.u-dib-s{display:inline-block}.u-dit-s{display:inline-table}.u-dt-s{display:table}.u-dtc-s{display:table-cell}.u-dt-row-s{display:table-row}.u-dt-row-group-s{display:table-row-group}.u-dt-column-s{display:table-column}.u-dt-column-group-s{display:table-column-group}.u-spacellipsis-s{overflow:hidden;text-overflow:ellipsis;white-space:break-spaces}.u-fz-tiny-s{font-size:.75rem!important;line-height:1.3!important}.u-fz-xsmall-s{font-size:.813rem!important;line-height:1.4!important}.u-fz-small-s{font-size:.875rem!important;line-height:1.4!important}.u-fz-medium-s{font-size:1rem!important;line-height:1.5!important}.u-fz-large-s{font-size:1.125rem!important;line-height:1.5!important}.u-ta-left-s{text-align:left!important}.u-ta-right-s{text-align:right!important}.u-ta-center-s{text-align:center!important}.u-ta-justify-s{text-align:justify!important}.u-fs-normal-s{font-style:normal!important}.u-fs-italic-s{font-style:italic!important}.u-fw-normal-s{font-weight:400}.u-fw-bold-s{font-weight:700}}@media(pointer:coarse){.cozy-ui-bar-c-btn--3Vk8q.cozy-ui-bar-c-btn--round--TSd9o:after{content:'';position:absolute;top:-.875rem;right:-.875rem;bottom:-.875rem;left:-.875rem}}","",{version:3,sources:["/home/travis/build/cozy/cozy-bar/node_modules/cozy-ui/react/Button/node_modules/cozy-ui/stylus/generic/animations.styl","/home/travis/build/cozy/cozy-bar/node_modules/cozy-ui/react/Button/styles.styl","/home/travis/build/cozy/cozy-bar/node_modules/cozy-ui/react/Button/node_modules/cozy-ui/stylus/utilities/display.styl","/home/travis/build/cozy/cozy-bar/node_modules/cozy-ui/react/Button/node_modules/cozy-ui/stylus/tools/mixins.styl","/home/travis/build/cozy/cozy-bar/node_modules/cozy-ui/react/Button/node_modules/cozy-ui/stylus/utilities/text.styl","/home/travis/build/cozy/cozy-bar/node_modules/cozy-ui/react/Button/node_modules/cozy-ui/stylus/components/button.styl","/home/travis/build/cozy/cozy-bar/node_modules/cozy-ui/react/Button/node_modules/cozy-ui/stylus/settings/breakpoints.styl"],names:[],mappings:"AAYA,2CACI,KACI,sBCHN,CDIE,GACI,wBCFN,CACF,CDHA,mCACI,KACI,sBCaN,CDZE,GACI,wBCcN,CACF,CDbA,4CACI,QACI,+BC6BN,CD3BE,QACI,8BC6BN,CD3BE,YACI,+BC6BN,CD3BE,QACI,8BC6BN,CACF,CDzCA,oCACI,QACI,+BCyDN,CDvDE,QACI,8BCyDN,CDvDE,YACI,+BCyDN,CDvDE,QACI,8BCyDN,CACF,CC7DA,kBAXI,4BACA,mBACA,wBACA,yBACA,0BACA,oBACA,6BACA,qDACA,uCAAA,8BD2EJ,CChEA,QCoCI,uBACA,2BF+BJ,CE4BgB,MDzEZ,YD+DJ,CEUgB,MDtEZ,cD+DJ,CEOgB,MDnEZ,aD+DJ,CEIgB,ODhEZ,oBD+DJ,CECgB,OD7DZ,oBD+DJ,CEFgB,MD1DZ,aD+DJ,CELgB,ODvDZ,kBD+DJ,CERgB,UDpDZ,iBD+DJ,CEXgB,gBDjDZ,uBD+DJ,CEdgB,aD9CZ,oBD+DJ,CEjBgB,mBD3CZ,0BD+DJ,CG5II,SACI,4BHuPR,CGxPI,gBACI,mCH0PR,CG3PI,YACI,+BH6PR,CG9PI,UACI,6BHgQR,CGjQI,aACI,gCHmQR,CGpQI,kBACI,uBHsQR,CGvQI,cACI,uBHyQR,CG1QI,WACI,8BH4QR,CG7QI,YACI,+BH+QR,CGhRI,SACI,uBHkRR,CGnRI,eACI,uBHqRR,CGtRI,0BACI,6CHwRR,CGzRI,gBACI,mCH2RR,CG5RI,qBACI,wCH8RR,CG/RI,4BACI,+CHiSR,CGlSI,SACI,iCHoSR,CGrSI,mBACI,sCHuSR,CGxSI,WACI,mCH0SR,CG3SI,WACI,mCH6SR,CG9SI,QACI,gCHgTR,CGjTI,cACI,uBHmTR,CGpTI,SACI,4BHsTR,CGjTA,aACI,qBHmTJ,CGjTA,YACI,mBACA,gBACA,sBHmTJ,CEvMgB,gBCzGZ,gBACA,uBACA,wBHmTJ,CGxSA,eACI,aACA,gBH+TJ,CG7TI,iBACI,qBACA,cACA,gBACA,eH+TR,CG7TI,4BACI,sBH+TR,CG7TI,2BACI,mBACA,aH+TR,CG7ToC,iCAC5B,4BACI,qBH+TV,CACF,CG7TI,aACI,iCACA,4DAAA,mDH+TR,CG7TI,2DAII,sCH+TR,CE3QY,WChDR,uBH8TJ,CE9QY,aC7CR,yBH8TJ,CEjRY,YC1CR,yBH8TJ,CEpRY,aCvCR,yBH8TJ,CEvRY,YCpCR,yBH8TJ,CE1RY,aCjCR,yBH8TJ,CEnRgB,WC5BZ,2BArBA,yBHwUJ,CEvRgB,aCxBZ,4BAtBA,yBHyUJ,CE3RgB,YCpBZ,4BA1BA,yBH6UJ,CE/RgB,aChBZ,yBA3BA,yBH8UJ,CEnSgB,YCZZ,6BA/BA,yBHkVJ,CEvSgB,WCKZ,yBHuWJ,CE5WgB,YCQZ,0BHuWJ,CE/WgB,aCWZ,2BHuWJ,CElXgB,cCcZ,4BHuWJ,CErXgB,aC6BZ,2BHqYJ,CElagB,aCgCZ,2BHqYJ,CEragB,aC4CZ,eHoZJ,CEhcgB,WC+CZ,eHoZJ,CIjgBA,6DACI,kBACA,sBACA,oBACA,gBACA,qBACA,mBACA,wCACA,kBACA,eACA,qBACA,mBACA,kBACA,kBACA,gBACA,cACA,0CACA,qBACA,eACA,mBA1CA,kDACA,yCACA,+CJukBJ,CI7hBI,qEACI,iBJgiBR,CI9hBQ,+EACI,mBJiiBZ,CI/hBI,yEACI,cJkiBR,CIhiBI,uEACI,aACA,mBACA,uBACA,UJmiBR,CIjiBI,sLAEI,WACA,kBJqiBR,CIniBQ,8MACI,kBJwiBZ,CItiBI,6FACI,WACA,mBJyiBR,CI1mBI,6EACI,wCJ6mBR,CI3mBI,6NAGI,6CACA,gDJgnBR,CI5mBQ,8MACI,gDACA,iDJinBZ,CInjBA,iCA/EI,+BACA,0BACA,qBA+EA,mBJujBJ,CIpoBI,yCACI,yBJsoBR,CIpoBI,sHAGI,qBACA,wBJsoBR,CIloBQ,4GACI,qBACA,8BJqoBZ,CInkBA,qCAnFI,yBACA,mBACA,oBJypBJ,CIvpBI,6CACI,kBJypBR,CIvpBI,kIAGI,qBACA,wBJypBR,CIrpBQ,oHACI,qBACA,wBJwpBZ,CInlBA,oGAtFI,6BACA,mBACA,yBJ8qBJ,CI5qBI,4HACI,kBJgrBR,CI9qBI,qWAGI,gCACA,mCJsrBR,CIlrBQ,sUACI,0BACA,4BJyrBZ,CIjnBA,kCAzFI,yBACA,mBACA,oBJ6sBJ,CI3sBI,0CACI,kBJ6sBR,CI3sBI,yHAGI,0BACA,6BJ6sBR,CIzsBQ,8GACI,qBACA,wBJ4sBZ,CIjoBA,qCA5FI,oDACA,0CACA,iDJguBJ,CI9tBI,6CACI,yCJguBR,CI9tBI,kIAGI,+CACA,kDJguBR,CI5tBQ,oHACI,kDACA,mDJ+tBZ,CI9oBA,0CAlGI,8BACA,cACA,oBJmvBJ,CIjvBI,kDACI,aJmvBR,CIjvBI,iJAGI,qBACA,wBJmvBR,CI/uBQ,8HACI,qBACA,6BJkvBZ,CI9pBA,gCArGI,6BACA,0BACA,wBJswBJ,CIpwBI,wCACI,yBJswBR,CIpwBI,mHAGI,yBACA,4BJswBR,CIlwBQ,0GACI,yBACA,4BJqwBZ,CI3qBI,4EAEI,6BJ6qBR,CI3qBA,kCAEI,yBACA,cACA,UJ4qBJ,CI1qBI,yHAGI,6BACA,wBJ4qBR,CI1qBA,iCAEI,yBACA,aJ2qBJ,CIzqBI,sHAGI,6BACA,wBJ2qBR,CI9iBI,qCACI,0BJgjBR,CI3iBI,uCACI,sBJ6iBR,CIxiBI,sCACI,wBJ0iBR,CI7hBA,yDALI,kBACA,eACA,qBACA,iBACA,eJqiBJ,CI3hBA,0DALI,gBACA,eACA,sBACA,kBACA,eJmiBJ,CIzhBA,0DALI,gBACA,gBACA,qBACA,eACA,eJiiBJ,CI1hBA,yDACI,WACA,cACA,cJ4hBJ,CI1hBA,qHACI,cJ6hBJ,CIxhBA,0DAEI,mBACA,gBACA,cJyhBJ,CIvhBI,8DACI,cACA,cJyhBR,CIpZA,kCAjBI,yCAmBA,gBACA,eACA,SACA,cACA,UACA,wBACA,uBACA,eACA,kBACA,gBACA,wBJgaJ,CI3bI,yHAGI,qCJ6bR,CInaI,uCACI,aACA,mBACA,uBACA,UJqaR,CInaI,kGAEI,WACA,kBJqaR,CInaQ,8GACI,sBJsaZ,CIpaI,kDACI,WACA,mBACA,mBJsaR,CIpaQ,wDACI,sBJsaZ,CIpaI,mKAII,8BACA,sBJsaR,CIpaI,oCACI,mBJsaR,CIpaA,iEAnDI,aACA,YACA,UACA,iBJ0dJ,CIvaA,kEAtDI,aACA,YACA,UACA,gBJgeJ,CI1aA,kEAzDI,aACA,YACA,UACA,cJseJ,CI7aA,mEAxEI,aJwfJ,CItfI,4NAGI,kBJwfR,CIlbA,sEA3EI,aJggBJ,CI9fI,qOAGI,aJggBR,CIvbA,oEA9EI,wCJwgBJ,CItgBI,+NAGI,qCJwgBR,CI5bA,sEAGI,sBJ4bJ,CI1bI,qOAGI,yBJ4bR,CI3bQ,iPACK,sBJ+bb,CI9bI,0EACI,qBJgcR,CKn5BqE,4BAAA,aJ1E7D,sBDmEN,CE6BkB,QD9EhB,YDuKF,CEzFkB,QD3EhB,cDuKF,CE5FkB,QDxEhB,aDuKF,CE/FkB,SDrEhB,oBDuKF,CElGkB,SDlEhB,oBDuKF,CErGkB,QD/DhB,aDuKF,CExGkB,SD5DhB,kBDuKF,CE3GkB,YDzDhB,iBDuKF,CE9GkB,kBDtDhB,uBDuKF,CEjHkB,eDnDhB,oBDuKF,CEpHkB,qBDhDhB,0BDuKF,CEvHkB,kBC9GhB,gBACA,uBACA,wBHuUF,CE3NkB,aCjChB,2BArBA,yBHyYF,CEnVkB,eC7BhB,4BAtBA,yBH0YF,CEvVkB,cCzBhB,4BA1BA,yBH8YF,CE3VkB,eCrBhB,yBA3BA,yBH+YF,CE/VkB,cCjBhB,6BA/BA,yBHmZF,CEnWkB,aCAhB,yBHgZF,CEhZkB,cCGhB,0BHgZF,CEnZkB,eCMhB,2BHgZF,CEtZkB,gBCShB,4BHgZF,CEzZkB,eCwBhB,2BH4ZF,CEpbkB,eC2BhB,2BH4ZF,CEvbkB,eCuChB,eH2aF,CEldkB,aC0ChB,eH2aF,CAjfF,CKmIyD,wBAAA,gBJnMjD,sBDoEN,CACF,CKiHwD,4BAAA,cJlLhD,sBDqEN,CACF,CEgBqD,wBAEjC,QD9EhB,YDiGF,CEnBkB,QD3EhB,cDiGF,CEtBkB,QDxEhB,aDiGF,CEzBkB,SDrEhB,oBDiGF,CE5BkB,SDlEhB,oBDiGF,CE/BkB,QD/DhB,aDiGF,CElCkB,SD5DhB,kBDiGF,CErCkB,YDzDhB,iBDiGF,CExCkB,kBDtDhB,uBDiGF,CE3CkB,eDnDhB,oBDiGF,CE9CkB,qBDhDhB,0BDiGF,CEjDkB,kBC9GhB,gBACA,uBACA,wBHyTF,CE7MkB,aCjChB,2BArBA,yBH6VF,CEvSkB,eC7BhB,4BAtBA,yBH8VF,CE3SkB,cCzBhB,4BA1BA,yBHkWF,CE/SkB,eCrBhB,yBA3BA,yBHmWF,CEnTkB,cCjBhB,6BA/BA,yBHuWF,CEvTkB,aCAhB,yBHoXF,CEpXkB,cCGhB,0BHoXF,CEvXkB,eCMhB,2BHoXF,CE1XkB,gBCShB,4BHoXF,CE7XkB,eCwBhB,2BH4YF,CEpakB,eC2BhB,2BH4YF,CEvakB,eCuChB,eH2ZF,CElckB,aC0ChB,eH2ZF,CAnZF,CEpDqD,wBAEjC,QD9EhB,YDoIF,CEtDkB,QD3EhB,cDoIF,CEzDkB,QDxEhB,aDoIF,CE5DkB,SDrEhB,oBDoIF,CE/DkB,SDlEhB,oBDoIF,CElEkB,QD/DhB,aDoIF,CErEkB,SD5DhB,kBDoIF,CExEkB,YDzDhB,iBDoIF,CE3EkB,kBDtDhB,uBDoIF,CE9EkB,eDnDhB,oBDoIF,CEjFkB,qBDhDhB,0BDoIF,CEpFkB,kBC9GhB,gBACA,uBACA,wBHgUF,CEpNkB,aCjChB,2BArBA,yBHmXF,CE7TkB,eC7BhB,4BAtBA,yBHoXF,CEjUkB,cCzBhB,4BA1BA,yBHwXF,CErUkB,eCrBhB,yBA3BA,yBHyXF,CEzUkB,cCjBhB,6BA/BA,yBH6XF,CE7UkB,aCAhB,yBHkYF,CElYkB,cCGhB,0BHkYF,CErYkB,eCMhB,2BHkYF,CExYkB,gBCShB,4BHkYF,CE3YkB,eCwBhB,2BHoZF,CE5akB,eC2BhB,2BHoZF,CE/akB,eCuChB,eHmaF,CE1ckB,aC0ChB,eHmaF,CAxXF,CI0J2B,uBACnB,gEACI,WACA,kBACA,aACA,eACA,gBACA,aJwhBV,CACF,CAAA",file:"styles.styl",sourcesContent:["/*------------------------------------*\\\n Animations\n\\*------------------------------------*/\n/*\n Animations\n\n Available animations:\n\n spin - Animates an element by rotating it endlessly by 360 deg (used by the loading spinner)\n\n Styleguide Generic.animation\n*/\n@keyframes spin\n from\n transform rotate(0deg)\n to\n transform rotate(359deg)\n \n@keyframes shake\n 10%, 90%\n transform translate3d(-1px, 0, 0)\n \n 20%, 80%\n transform translate3d(2px, 0, 0)\n\n 30%, 50%, 70%\n transform translate3d(-4px, 0, 0)\n\n 40%, 60%\n transform translate3d(4px, 0, 0)\n\n$transition-transform-ease-out\n transition transform .1s ease-out\n\n$spin-anim\n // arguments' order is important: the animation name must stay first\n // so that scoping works\n animation spin 1s linear infinite\n\n@media (prefers-reduced-motion: reduce)\n $transition-transform-ease-out\n transition none\n $spin-anim\n animation none","@-moz-keyframes spin {\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(359deg);\n }\n}\n@-webkit-keyframes spin {\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(359deg);\n }\n}\n@-o-keyframes spin {\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(359deg);\n }\n}\n@keyframes spin {\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(359deg);\n }\n}\n@-moz-keyframes shake {\n 10%, 90% {\n transform: translate3d(-1px, 0, 0);\n }\n 20%, 80% {\n transform: translate3d(2px, 0, 0);\n }\n 30%, 50%, 70% {\n transform: translate3d(-4px, 0, 0);\n }\n 40%, 60% {\n transform: translate3d(4px, 0, 0);\n }\n}\n@-webkit-keyframes shake {\n 10%, 90% {\n transform: translate3d(-1px, 0, 0);\n }\n 20%, 80% {\n transform: translate3d(2px, 0, 0);\n }\n 30%, 50%, 70% {\n transform: translate3d(-4px, 0, 0);\n }\n 40%, 60% {\n transform: translate3d(4px, 0, 0);\n }\n}\n@-o-keyframes shake {\n 10%, 90% {\n transform: translate3d(-1px, 0, 0);\n }\n 20%, 80% {\n transform: translate3d(2px, 0, 0);\n }\n 30%, 50%, 70% {\n transform: translate3d(-4px, 0, 0);\n }\n 40%, 60% {\n transform: translate3d(4px, 0, 0);\n }\n}\n@keyframes shake {\n 10%, 90% {\n transform: translate3d(-1px, 0, 0);\n }\n 20%, 80% {\n transform: translate3d(2px, 0, 0);\n }\n 30%, 50%, 70% {\n transform: translate3d(-4px, 0, 0);\n }\n 40%, 60% {\n transform: translate3d(4px, 0, 0);\n }\n}\n:global(.u-visuallyhidden) {\n position: absolute !important;\n border: 0 !important;\n width: 0.063rem !important;\n height: 0.063rem !important;\n overflow: hidden !important;\n padding: 0 !important;\n white-space: nowrap !important;\n clip: rect(0.063rem, 0.063rem, 0.063rem, 0.063rem) !important;\n clip-path: inset(50%) !important;\n}\n:global(.u-hide) {\n display: none !important;\n visibility: hidden !important;\n}\n@media (max-width: 63.938rem) {\n :global(.u-hide--mob) {\n display: none !important;\n }\n}\n@media (min-width: 64rem) {\n :global(.u-hide--tablet) {\n display: none !important;\n }\n}\n@media (min-width: 48.063rem) {\n :global(.u-hide--desk) {\n display: none !important;\n }\n}\n:global(.u-dn) {\n display: none;\n}\n:global(.u-di) {\n display: inline;\n}\n:global(.u-db) {\n display: block;\n}\n:global(.u-dib) {\n display: inline-block;\n}\n:global(.u-dit) {\n display: inline-table;\n}\n:global(.u-dt) {\n display: table;\n}\n:global(.u-dtc) {\n display: table-cell;\n}\n:global(.u-dt-row) {\n display: table-row;\n}\n:global(.u-dt-row-group) {\n display: table-row-group;\n}\n:global(.u-dt-column) {\n display: table-column;\n}\n:global(.u-dt-column-group) {\n display: table-column-group;\n}\n@media (max-width: 30rem) {\n :global(.u-dn-t) {\n display: none;\n }\n :global(.u-di-t) {\n display: inline;\n }\n :global(.u-db-t) {\n display: block;\n }\n :global(.u-dib-t) {\n display: inline-block;\n }\n :global(.u-dit-t) {\n display: inline-table;\n }\n :global(.u-dt-t) {\n display: table;\n }\n :global(.u-dtc-t) {\n display: table-cell;\n }\n :global(.u-dt-row-t) {\n display: table-row;\n }\n :global(.u-dt-row-group-t) {\n display: table-row-group;\n }\n :global(.u-dt-column-t) {\n display: table-column;\n }\n :global(.u-dt-column-group-t) {\n display: table-column-group;\n }\n}\n@media (max-width: 48rem) {\n :global(.u-dn-s) {\n display: none;\n }\n :global(.u-di-s) {\n display: inline;\n }\n :global(.u-db-s) {\n display: block;\n }\n :global(.u-dib-s) {\n display: inline-block;\n }\n :global(.u-dit-s) {\n display: inline-table;\n }\n :global(.u-dt-s) {\n display: table;\n }\n :global(.u-dtc-s) {\n display: table-cell;\n }\n :global(.u-dt-row-s) {\n display: table-row;\n }\n :global(.u-dt-row-group-s) {\n display: table-row-group;\n }\n :global(.u-dt-column-s) {\n display: table-column;\n }\n :global(.u-dt-column-group-s) {\n display: table-column-group;\n }\n}\n@media (max-width: 63.938rem) {\n :global(.u-dn-m) {\n display: none;\n }\n :global(.u-di-m) {\n display: inline;\n }\n :global(.u-db-m) {\n display: block;\n }\n :global(.u-dib-m) {\n display: inline-block;\n }\n :global(.u-dit-m) {\n display: inline-table;\n }\n :global(.u-dt-m) {\n display: table;\n }\n :global(.u-dtc-m) {\n display: table-cell;\n }\n :global(.u-dt-row-m) {\n display: table-row;\n }\n :global(.u-dt-row-group-m) {\n display: table-row-group;\n }\n :global(.u-dt-column-m) {\n display: table-column;\n }\n :global(.u-dt-column-group-m) {\n display: table-column-group;\n }\n}\n:global(.u-black) {\n color: var(--black) !important;\n}\n:global(.u-charcoalGrey) {\n color: var(--charcoalGrey) !important;\n}\n:global(.u-coolGrey) {\n color: var(--coolGrey) !important;\n}\n:global(.u-silver) {\n color: var(--silver) !important;\n}\n:global(.u-slateGrey) {\n color: var(--slateGrey) !important;\n}\n:global(.u-lightishPurple) {\n color: #b449e7 !important;\n}\n:global(.u-dodgerBlue) {\n color: #297ef2 !important;\n}\n:global(.u-overlay) {\n color: var(--overlay) !important;\n}\n:global(.u-paleGrey) {\n color: var(--paleGrey) !important;\n}\n:global(.u-monza) {\n color: #dd0505 !important;\n}\n:global(.u-pomegranate) {\n color: #f52d2d !important;\n}\n:global(.u-primaryBackgroundLight) {\n color: var(--primaryBackgroundLight) !important;\n}\n:global(.u-primaryColor) {\n color: var(--primaryColor) !important;\n}\n:global(.u-primaryColorLight) {\n color: var(--primaryColorLight) !important;\n}\n:global(.u-primaryContrastTextColor) {\n color: var(--primaryContrastTextColor) !important;\n}\n:global(.u-error) {\n color: var(--errorColor) !important;\n}\n:global(.u-errorBackground) {\n color: var(--errorBackground) !important;\n}\n:global(.u-success) {\n color: var(--successColor) !important;\n}\n:global(.u-warning) {\n color: var(--warningColor) !important;\n}\n:global(.u-info) {\n color: var(--infoColor) !important;\n}\n:global(.u-weirdGreen) {\n color: #40de8e !important;\n}\n:global(.u-white) {\n color: var(--white) !important;\n}\n:global(.u-breakword) {\n word-break: break-word;\n}\n:global(.u-ellipsis) {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n:global(.u-spacellipsis) {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: break-spaces;\n}\n@media (max-width: 30rem) {\n :global(.u-spacellipsis-t) {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: break-spaces;\n }\n}\n@media (max-width: 48rem) {\n :global(.u-spacellipsis-s) {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: break-spaces;\n }\n}\n@media (max-width: 63.938rem) {\n :global(.u-spacellipsis-m) {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: break-spaces;\n }\n}\n:global(.u-midellipsis) {\n display: flex;\n flex-wrap: nowrap;\n}\n:global(.u-midellipsis) > * {\n display: inline-block;\n max-width: 50%;\n overflow: hidden;\n white-space: pre;\n}\n:global(.u-midellipsis) > :first-child {\n text-overflow: ellipsis;\n}\n:global(.u-midellipsis) > :last-child {\n text-overflow: clip;\n direction: rtl;\n}\n@supports (text-overflow: '[...]') {\n :global(.u-midellipsis) > :first-child {\n text-overflow: '[...]';\n }\n}\n:global(.u-link):link {\n color: var(--linkColor) !important;\n text-decoration: var(--linkTextDecoration) !important;\n}\n:global(.u-link):visited,\n:global(.u-link):active,\n:global(.u-link):hover,\n:global(.u-link):focus {\n color: var(--linkColorActive) !important;\n}\n:global(.u-lh-tiny) {\n line-height: 1 !important;\n}\n:global(.u-lh-xsmall) {\n line-height: 1.1 !important;\n}\n:global(.u-lh-small) {\n line-height: 1.2 !important;\n}\n:global(.u-lh-medium) {\n line-height: 1.3 !important;\n}\n:global(.u-lh-large) {\n line-height: 1.4 !important;\n}\n:global(.u-lh-xlarge) {\n line-height: 1.5 !important;\n}\n:global(.u-fz-tiny) {\n font-size: 0.75rem !important;\n line-height: 1.3 !important;\n}\n:global(.u-fz-xsmall) {\n font-size: 0.813rem !important;\n line-height: 1.4 !important;\n}\n:global(.u-fz-small) {\n font-size: 0.875rem !important;\n line-height: 1.4 !important;\n}\n:global(.u-fz-medium) {\n font-size: 1rem !important;\n line-height: 1.5 !important;\n}\n:global(.u-fz-large) {\n font-size: 1.125rem !important;\n line-height: 1.5 !important;\n}\n@media (max-width: 30rem) {\n :global(.u-fz-tiny-t) {\n font-size: 0.75rem !important;\n line-height: 1.3 !important;\n }\n :global(.u-fz-xsmall-t) {\n font-size: 0.813rem !important;\n line-height: 1.4 !important;\n }\n :global(.u-fz-small-t) {\n font-size: 0.875rem !important;\n line-height: 1.4 !important;\n }\n :global(.u-fz-medium-t) {\n font-size: 1rem !important;\n line-height: 1.5 !important;\n }\n :global(.u-fz-large-t) {\n font-size: 1.125rem !important;\n line-height: 1.5 !important;\n }\n}\n@media (max-width: 48rem) {\n :global(.u-fz-tiny-s) {\n font-size: 0.75rem !important;\n line-height: 1.3 !important;\n }\n :global(.u-fz-xsmall-s) {\n font-size: 0.813rem !important;\n line-height: 1.4 !important;\n }\n :global(.u-fz-small-s) {\n font-size: 0.875rem !important;\n line-height: 1.4 !important;\n }\n :global(.u-fz-medium-s) {\n font-size: 1rem !important;\n line-height: 1.5 !important;\n }\n :global(.u-fz-large-s) {\n font-size: 1.125rem !important;\n line-height: 1.5 !important;\n }\n}\n@media (max-width: 63.938rem) {\n :global(.u-fz-tiny-m) {\n font-size: 0.75rem !important;\n line-height: 1.3 !important;\n }\n :global(.u-fz-xsmall-m) {\n font-size: 0.813rem !important;\n line-height: 1.4 !important;\n }\n :global(.u-fz-small-m) {\n font-size: 0.875rem !important;\n line-height: 1.4 !important;\n }\n :global(.u-fz-medium-m) {\n font-size: 1rem !important;\n line-height: 1.5 !important;\n }\n :global(.u-fz-large-m) {\n font-size: 1.125rem !important;\n line-height: 1.5 !important;\n }\n}\n:global(.u-ta-left) {\n text-align: left !important;\n}\n:global(.u-ta-right) {\n text-align: right !important;\n}\n:global(.u-ta-center) {\n text-align: center !important;\n}\n:global(.u-ta-justify) {\n text-align: justify !important;\n}\n@media (max-width: 30rem) {\n :global(.u-ta-left-t) {\n text-align: left !important;\n }\n :global(.u-ta-right-t) {\n text-align: right !important;\n }\n :global(.u-ta-center-t) {\n text-align: center !important;\n }\n :global(.u-ta-justify-t) {\n text-align: justify !important;\n }\n}\n@media (max-width: 48rem) {\n :global(.u-ta-left-s) {\n text-align: left !important;\n }\n :global(.u-ta-right-s) {\n text-align: right !important;\n }\n :global(.u-ta-center-s) {\n text-align: center !important;\n }\n :global(.u-ta-justify-s) {\n text-align: justify !important;\n }\n}\n@media (max-width: 63.938rem) {\n :global(.u-ta-left-m) {\n text-align: left !important;\n }\n :global(.u-ta-right-m) {\n text-align: right !important;\n }\n :global(.u-ta-center-m) {\n text-align: center !important;\n }\n :global(.u-ta-justify-m) {\n text-align: justify !important;\n }\n}\n:global(.u-fs-normal) {\n font-style: normal !important;\n}\n:global(.u-fs-italic) {\n font-style: italic !important;\n}\n@media (max-width: 30rem) {\n :global(.u-fs-normal-t) {\n font-style: normal !important;\n }\n :global(.u-fs-italic-t) {\n font-style: italic !important;\n }\n}\n@media (max-width: 48rem) {\n :global(.u-fs-normal-s) {\n font-style: normal !important;\n }\n :global(.u-fs-italic-s) {\n font-style: italic !important;\n }\n}\n@media (max-width: 63.938rem) {\n :global(.u-fs-normal-m) {\n font-style: normal !important;\n }\n :global(.u-fs-italic-m) {\n font-style: italic !important;\n }\n}\n:global(.u-fw-normal) {\n font-weight: normal;\n}\n:global(.u-fw-bold) {\n font-weight: bold;\n}\n@media (max-width: 30rem) {\n :global(.u-fw-normal-t) {\n font-weight: normal;\n }\n :global(.u-fw-bold-t) {\n font-weight: bold;\n }\n}\n@media (max-width: 48rem) {\n :global(.u-fw-normal-s) {\n font-weight: normal;\n }\n :global(.u-fw-bold-s) {\n font-weight: bold;\n }\n}\n@media (max-width: 63.938rem) {\n :global(.u-fw-normal-m) {\n font-weight: normal;\n }\n :global(.u-fw-bold-m) {\n font-weight: bold;\n }\n}\n.c-btn,\n.c-btn--regular {\n position: relative;\n box-sizing: border-box;\n display: inline-flex;\n margin: 0 0.25rem;\n border-width: 0.063rem;\n border-style: solid;\n border-radius: var(--buttonBorderRadius);\n min-height: 2.5rem;\n min-width: 7rem;\n padding: 0.188rem 1rem;\n vertical-align: top;\n text-align: center;\n font-size: 0.875rem;\n font-weight: bold;\n line-height: 1;\n text-transform: var(--buttonTextTransform);\n text-decoration: none;\n cursor: pointer;\n align-items: center;\n background-color: var(--regularButtonPrimaryColor);\n color: var(--regularButtonConstrastColor);\n border-color: var(--regularButtonSecondaryColor);\n}\n.c-btn svg,\n.c-btn--regular svg {\n fill: currentColor;\n}\n.c-btn svg + span,\n.c-btn--regular svg + span {\n margin-left: 0.375rem;\n}\n.c-btn input,\n.c-btn--regular input {\n cursor: pointer;\n}\n.c-btn > span,\n.c-btn--regular > span {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 100%;\n}\n.c-btn[disabled],\n.c-btn--regular[disabled],\n.c-btn[aria-disabled=true],\n.c-btn--regular[aria-disabled=true] {\n opacity: 0.5;\n cursor: not-allowed;\n}\n.c-btn[disabled] input,\n.c-btn--regular[disabled] input,\n.c-btn[aria-disabled=true] input,\n.c-btn--regular[aria-disabled=true] input {\n cursor: not-allowed;\n}\n.c-btn[aria-busy=true],\n.c-btn--regular[aria-busy=true] {\n opacity: 0.5;\n pointer-events: none;\n}\n.c-btn:visited,\n.c-btn--regular:visited {\n color: var(--regularButtonConstrastColor);\n}\n.c-btn:active,\n.c-btn--regular:active,\n.c-btn:hover,\n.c-btn--regular:hover,\n.c-btn:focus,\n.c-btn--regular:focus {\n border-color: var(--regularButtonActiveColor);\n background-color: var(--regularButtonActiveColor);\n}\n.c-btn[disabled]:hover,\n.c-btn--regular[disabled]:hover,\n.c-btn[aria-disabled=true]:hover,\n.c-btn--regular[aria-disabled=true]:hover {\n border-color: var(--regularButtonSecondaryColor);\n background-color: var(--regularButtonPrimaryColor);\n}\n.c-btn--ghost {\n background-color: var(--zircon);\n color: var(--primaryColor);\n border-color: #c2dcff;\n border-style: dashed;\n}\n.c-btn--ghost:visited {\n color: var(--primaryColor);\n}\n.c-btn--ghost:active,\n.c-btn--ghost:hover,\n.c-btn--ghost:focus {\n border-color: #c2dcff;\n background-color: #c2dcff;\n}\n.c-btn--ghost[disabled]:hover,\n.c-btn--ghost[aria-disabled=true]:hover {\n border-color: #c2dcff;\n background-color: var(--zircon);\n}\n.c-btn--highlight {\n background-color: #35ce68;\n color: var(--white);\n border-color: #35ce68;\n}\n.c-btn--highlight:visited {\n color: var(--white);\n}\n.c-btn--highlight:active,\n.c-btn--highlight:hover,\n.c-btn--highlight:focus {\n border-color: #08b442;\n background-color: #08b442;\n}\n.c-btn--highlight[disabled]:hover,\n.c-btn--highlight[aria-disabled=true]:hover {\n border-color: #35ce68;\n background-color: #35ce68;\n}\n.c-btn--alpha,\n.c-btn--action,\n.c-btn--close {\n background-color: transparent;\n color: var(--white);\n border-color: var(--white);\n}\n.c-btn--alpha:visited,\n.c-btn--action:visited,\n.c-btn--close:visited {\n color: var(--white);\n}\n.c-btn--alpha:active,\n.c-btn--action:active,\n.c-btn--close:active,\n.c-btn--alpha:hover,\n.c-btn--action:hover,\n.c-btn--close:hover,\n.c-btn--alpha:focus,\n.c-btn--action:focus,\n.c-btn--close:focus {\n border-color: var(--scienceBlue);\n background-color: var(--scienceBlue);\n}\n.c-btn--alpha[disabled]:hover,\n.c-btn--action[disabled]:hover,\n.c-btn--close[disabled]:hover,\n.c-btn--alpha[aria-disabled=true]:hover,\n.c-btn--action[aria-disabled=true]:hover,\n.c-btn--close[aria-disabled=true]:hover {\n border-color: var(--white);\n background-color: transparent;\n}\n.c-btn--danger {\n background-color: #f52d2d;\n color: var(--white);\n border-color: #f52d2d;\n}\n.c-btn--danger:visited {\n color: var(--white);\n}\n.c-btn--danger:active,\n.c-btn--danger:hover,\n.c-btn--danger:focus {\n border-color: var(--monza);\n background-color: var(--monza);\n}\n.c-btn--danger[disabled]:hover,\n.c-btn--danger[aria-disabled=true]:hover {\n border-color: #f52d2d;\n background-color: #f52d2d;\n}\n.c-btn--secondary {\n background-color: var(--secondaryButtonPrimaryColor);\n color: var(--secondaryButtonContrastColor);\n border-color: var(--secondaryButtonSecondaryColor);\n}\n.c-btn--secondary:visited {\n color: var(--secondaryButtonContrastColor);\n}\n.c-btn--secondary:active,\n.c-btn--secondary:hover,\n.c-btn--secondary:focus {\n border-color: var(--secondaryButtonActiveColor);\n background-color: var(--secondaryButtonActiveColor);\n}\n.c-btn--secondary[disabled]:hover,\n.c-btn--secondary[aria-disabled=true]:hover {\n border-color: var(--secondaryButtonSecondaryColor);\n background-color: var(--secondaryButtonPrimaryColor);\n}\n.c-btn--danger-outline {\n background-color: var(--white);\n color: #f52d2d;\n border-color: #fdcbcb;\n}\n.c-btn--danger-outline:visited {\n color: #f52d2d;\n}\n.c-btn--danger-outline:active,\n.c-btn--danger-outline:hover,\n.c-btn--danger-outline:focus {\n border-color: #fdcbcb;\n background-color: #fdcbcb;\n}\n.c-btn--danger-outline[disabled]:hover,\n.c-btn--danger-outline[aria-disabled=true]:hover {\n border-color: #fdcbcb;\n background-color: var(--white);\n}\n.c-btn--text {\n background-color: transparent;\n color: var(--primaryColor);\n border-color: transparent;\n}\n.c-btn--text:visited {\n color: var(--primaryColor);\n}\n.c-btn--text:active,\n.c-btn--text:hover,\n.c-btn--text:focus {\n border-color: transparent;\n background-color: transparent;\n}\n.c-btn--text[disabled]:hover,\n.c-btn--text[aria-disabled=true]:hover {\n border-color: transparent;\n background-color: transparent;\n}\n.c-btn--text:hover,\n.c-btn--text:focus {\n color: var(--primaryColorDark);\n}\n.c-btn--action {\n border-color: transparent;\n padding: 0.5rem;\n opacity: 0.5;\n}\n.c-btn--action:active,\n.c-btn--action:hover,\n.c-btn--action:focus {\n background-color: transparent;\n border-color: transparent;\n}\n.c-btn--close {\n border-color: transparent;\n padding: 0.5rem;\n}\n.c-btn--close:active,\n.c-btn--close:hover,\n.c-btn--close:focus {\n background-color: transparent;\n border-color: transparent;\n}\n.c-btn--left > span {\n justify-content: flex-start;\n}\n.c-btn--center > span {\n justify-content: center;\n}\n.c-btn--right > span {\n justify-content: flex-end;\n}\n.c-btn.c-btn--tiny {\n min-height: 1.5rem;\n min-width: 5rem;\n padding: 0.125rem 1rem;\n font-size: 0.75rem;\n line-height: 1.3;\n}\n.c-btn.c-btn--small {\n min-height: 2rem;\n min-width: 6rem;\n padding: 0.188rem 0.5rem;\n font-size: 0.813rem;\n line-height: 1.4;\n}\n.c-btn.c-btn--large {\n min-height: 3rem;\n min-width: 10rem;\n padding: 0.5rem 1.5rem;\n font-size: 1rem;\n line-height: 1.5;\n}\n.c-btn.c-btn--full {\n width: 100%;\n margin-left: 0;\n margin-right: 0;\n}\n.c-btn.c-btn--narrow,\n.c-btn.c-btn--round {\n min-width: auto;\n}\n.c-btn.c-btn--round {\n border-radius: 100%;\n min-height: auto;\n padding: 0.25rem;\n}\n.c-btn.c-btn--round svg {\n width: 0.625rem;\n height: 0.625rem;\n}\n@media (pointer: coarse) {\n .c-btn.c-btn--round:after {\n content: '';\n position: absolute;\n top: -0.875rem;\n right: -0.875rem;\n bottom: -0.875rem;\n left: -0.875rem;\n }\n}\n.c-btn--subtle {\n color: var(--regularButtonSecondaryColor);\n min-height: auto;\n min-width: auto;\n border: 0;\n margin: 1rem 0;\n padding: 0;\n vertical-align: baseline;\n background: transparent;\n cursor: pointer;\n font-size: 0.875rem;\n font-weight: bold;\n text-transform: uppercase;\n}\n.c-btn--subtle:active,\n.c-btn--subtle:focus,\n.c-btn--subtle:hover {\n color: var(--regularButtonActiveColor);\n}\n.c-btn--subtle > span {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 100%;\n}\n.c-btn--subtle[disabled],\n.c-btn--subtle[aria-disabled=true] {\n opacity: 0.5;\n cursor: not-allowed;\n}\n.c-btn--subtle[disabled]:hover,\n.c-btn--subtle[aria-disabled=true]:hover {\n background: transparent;\n}\n.c-btn--subtle[aria-busy=true] {\n opacity: 0.5;\n cursor: not-allowed;\n pointer-events: none;\n}\n.c-btn--subtle[aria-busy=true]:hover {\n background: transparent;\n}\n.c-btn--subtle:active,\n.c-btn--subtle:hover,\n.c-btn--subtle:focus,\n.c-btn--subtle:visited {\n color: var(--primaryColorDark);\n background: transparent;\n}\n* + .c-btn--subtle {\n margin-left: 0.063rem;\n}\n.c-btn--subtle.c-btn--tiny {\n min-height: 0;\n min-width: 0;\n padding: 0;\n font-size: 0.563rem;\n}\n.c-btn--subtle.c-btn--small {\n min-height: 0;\n min-width: 0;\n padding: 0;\n font-size: 0.75rem;\n}\n.c-btn--subtle.c-btn--large {\n min-height: 0;\n min-width: 0;\n padding: 0;\n font-size: 1rem;\n}\n.c-btn--subtle.c-btn--danger {\n color: #f52d2d;\n}\n.c-btn--subtle.c-btn--danger:active,\n.c-btn--subtle.c-btn--danger:focus,\n.c-btn--subtle.c-btn--danger:hover {\n color: var(--monza);\n}\n.c-btn--subtle.c-btn--highlight {\n color: #35ce68;\n}\n.c-btn--subtle.c-btn--highlight:active,\n.c-btn--subtle.c-btn--highlight:focus,\n.c-btn--subtle.c-btn--highlight:hover {\n color: #08b442;\n}\n.c-btn--subtle.c-btn--regular {\n color: var(--regularButtonSecondaryColor);\n}\n.c-btn--subtle.c-btn--regular:active,\n.c-btn--subtle.c-btn--regular:focus,\n.c-btn--subtle.c-btn--regular:hover {\n color: var(--regularButtonActiveColor);\n}\n.c-btn--subtle.c-btn--secondary {\n color: var(--slateGrey);\n}\n.c-btn--subtle.c-btn--secondary:active,\n.c-btn--subtle.c-btn--secondary:focus,\n.c-btn--subtle.c-btn--secondary:hover {\n color: var(--charcoalGrey);\n}\n.c-btn--subtle.c-btn--secondary:active svg,\n.c-btn--subtle.c-btn--secondary:focus svg,\n.c-btn--subtle.c-btn--secondary:hover svg {\n color: var(--slateGrey);\n}\n.c-btn--subtle.c-btn--secondary svg {\n color: var(--coolGrey);\n}\n","@require '../settings/breakpoints'\n@require '../tools/mixins'\n\n/*------------------------------------*\\\n Display utilities\n\\*------------------------------------*/\n\n/*\n Visually hidden element but still readable by screen-readers\n FR : http://www.ffoodd.fr/cache-cache-css/\n EN : http://hugogiraudel.com/2016/10/13/css-hide-and-seek/\n*/\n\nhidden()\n // @stylint off\n position absolute !important\n border 0 !important\n width rem(1) !important\n height rem(1) !important\n overflow hidden !important\n padding 0 !important\n white-space nowrap !important\n clip rect(rem(1), rem(1), rem(1), rem(1)) !important\n clip-path inset(50%) !important\n // @stylint on\n\n$visuallyhidden\n hidden()\n\n// Because Stylus doesn't allow me to @extend inside @media… yeah… that sucks\n+medium-screen()\n $visuallyhidden-mobile\n hidden()\n\n$hide\n hide()\n\n$hide--mob\n +lt-desktop()\n display none !important // @stylint ignore\n\n$hide--tablet\n +gt-tablet()\n display none !important // @stylint ignore\n\n$hide--desk\n +gt-mobile()\n display none !important // @stylint ignore\n\n// Global classes\nglobal('.u-visuallyhidden', $visuallyhidden)\nglobal('.u-hide', $hide)\nglobal('.u-hide--mob', $hide--mob)\nglobal('.u-hide--tablet', $hide--tablet)\nglobal('.u-hide--desk', $hide--desk)\n\ndisplay-none()\n display none\n\ndisplay-inline()\n display inline\n\ndisplay-block()\n display block\n\ndisplay-inline-block()\n display inline-block\n\ndisplay-inline-table()\n display inline-table\n\ndisplay-table()\n display table\n\ndisplay-table-cell()\n display table-cell\n\ndisplay-table-row()\n display table-row\n\ndisplay-table-row-group()\n display table-row-group\n\ndisplay-table-column()\n display table-column\n\ndisplay-table-column-group()\n display table-column-group\n\nprops = {\n 'display-none': 'dn',\n 'display-inline': 'di',\n 'display-block': 'db',\n 'display-inline-block': 'dib',\n 'display-inline-table': 'dit',\n 'display-table': 'dt',\n 'display-table-cell': 'dtc',\n 'display-table-row': 'dt-row',\n 'display-table-row-group': 'dt-row-group',\n 'display-table-column': 'dt-column',\n 'display-table-column-group': 'dt-column-group'\n}\n\nif cssmodules == true\n cssModulesUtils(props, breakpoints)\nelse\n nativeUtils(props, breakpoints)\n\n\n","/*------------------------------------*\\\n Mixins\n =====\n\n This file contains mixins:\n - hide()\n - reset()\n\\*------------------------------------*/\n/*\n Tools\n\n Weight: -9\n\n Styleguide Tools\n*/\n/*\n Mixins\n\n Available mixins\n\n Styleguide Tools.mixins\n*/\n// @stylint off\nuse('../scripts/deprecate.js')\n// @stylint on\n\n// Default Font-size\n$basefont ?= 16px\n\nrem($value, $base = $basefont)\n $max = length($value)\n\n $remValues = ()\n for $i in (0...$max)\n push($remValues, _convert-to-rem($value[$i], $base))\n\n return $remValues\n\n_convert-to-rem($px, $base)\n if (typeof($px) == 'unit')\n if ((unit($px) == '' || unit($px) == 'px') && ($px != 0))\n return (round($px / $base, 3))rem\n else\n return 0\n\n/*\n rem($value, $basefont)\n\n rem() takes one or more numeric values in pixel and calculates the rem values from it.\n\n NB: you don't have to explicitly write the `px` unit.\n\n $value - The value in pixel you want to translate in rem. For multiple values you can use `rem(14 12)` for shorthand properties such as `margin`. ⚠ Multiples values should be separated by spaces.\n $basefont - If you need to overwrite the default `$basefont` value of `16`\n\n Weight: 1\n\n Styleguide Tools.mixins.rem\n*/\n\n/*\n hide()\n\n hide() mixin definitely hides an element. This mixin doesn't take parameters.\n\n Weight: 2\n\n Styleguide Tools.mixins.hide\n*/\nhide()\n display none !important // @stylint ignore\n visibility hidden !important // @stylint ignore\n\n/*\n visually-hide()\n\n visually-hide() mixin visually hides an element. The element is still visible by screen readers.\n This mixin doesn't take parameters.\n\n Weight: 3\n\n Styleguide Tools.mixins.hide\n*/\nvisually-hide()\n border 0\n clip rect(0 0 0 0)\n clip-path polygon(0 0, 0 0, 0 0)\n height 1px\n margin -1px\n overflow hidden\n padding 0\n position absolute\n width 1px\n white-space nowrap\n\n/*\n reset()\n\n reset() mixin removes every padding, margin and border of an element.\n This mixin doesn't take parameters.\n\n Weight: 4\n\n Styleguide Tools.mixins.reset\n*/\nreset()\n margin 0\n padding 0\n border 0\n\nglobal(selector, placeholder, type = extend)\n if type == extend\n if cssmodules == true\n :global({selector})\n @extend {placeholder} // @stylint ignore\n else\n {selector}\n @extend {placeholder} // @stylint ignore\n else if type == mixin\n if cssmodules == true\n :global({selector})\n {placeholder}() // @stylint ignore\n else\n {selector}\n {placeholder}() // @stylint ignore\n\ncssModulesUtils(props, breakpoints)\n for kBp, vBp in breakpoints\n if vBp == ''\n for kProp, vProp in props\n :global(.u-{vProp})\n {kProp}()\n else\n @media (max-width: rem(lookup('BP-'+kBp)))\n for kProp, vProp in props\n :global(.u-{vProp}-{vBp}) // @stylint ignore\n {kProp}()\n\nnativeUtils(props, breakpoints)\n for kBp, vBp in breakpoints\n if vBp == ''\n for kProp, vProp in props\n .u-{vProp}\n {kProp}()\n else\n @media (max-width: rem(lookup('BP-'+kBp)))\n for kProp, vProp in props\n .u-{vProp}-{vBp} // @stylint ignore\n {kProp}()\n\n// @stylint on\n","@require '../tools/mixins'\n@require './colors'\n\n/*------------------------------------*\\\n Text utilities\n\\*------------------------------------*/\n\njson_colors=json('../settings/palette.json', { hash: true })\n\nfor color in utility_colors\n $color-{color}\n color: json_colors[color] !important // @stylint ignore\n\n global('.u-' + color, '$color-' + color)\n\n\n$breakword\n word-break break-word\n\n$ellipsis\n white-space nowrap\n overflow hidden\n text-overflow ellipsis\n\nspacellipsis()\n overflow hidden\n text-overflow ellipsis\n white-space break-spaces\n\nspace-ellipsis = {\n 'spacellipsis': 'spacellipsis'\n}\n\nif cssmodules == true\n cssModulesUtils(space-ellipsis, breakpoints)\nelse\n nativeUtils(space-ellipsis, breakpoints)\n\n$midellipsis\n display flex\n flex-wrap nowrap\n\n > * // @stylint ignore\n display inline-block\n max-width 50%\n overflow hidden\n white-space pre\n\n > :first-child\n text-overflow ellipsis\n\n > :last-child\n text-overflow clip\n direction rtl\n\n @supports(text-overflow: '[...]')\n > :first-child\n text-overflow '[...]'\n\n$link\n &:link\n color var(--linkColor) !important // @stylint ignore\n text-decoration var(--linkTextDecoration) !important // @stylint ignore\n\n &:visited\n &:active\n &:hover\n &:focus\n color var(--linkColorActive) !important // @stylint ignore\n\n// @stylint off\nlh-tiny()\n line-height 1!important\n\nlh-xsmall()\n line-height 1.1!important\n\nlh-small()\n line-height 1.2!important\n\nlh-medium()\n line-height 1.3!important\n\nlh-large()\n line-height 1.4!important\n\nlh-xlarge()\n line-height 1.5!important\n\nglobal('.u-lh-tiny', lh-tiny, mixin)\n\nglobal('.u-lh-xsmall', lh-xsmall, mixin)\n\nglobal('.u-lh-small', lh-small, mixin)\n\nglobal('.u-lh-medium', lh-medium, mixin)\n\nglobal('.u-lh-large', lh-large, mixin)\n\nglobal('.u-lh-xlarge', lh-xlarge, mixin)\n\nfz-tiny()\n font-size rem(12)!important\n lh-medium()\n\nfz-xsmall()\n font-size rem(13)!important\n lh-large()\n\nfz-small()\n font-size rem(14)!important\n lh-large()\n\nfz-medium()\n font-size rem(16)!important\n lh-xlarge()\n\nfz-large()\n font-size rem(18)!important\n lh-xlarge()\n\nfontsize = {\n 'fz-tiny': 'fz-tiny',\n 'fz-xsmall': 'fz-xsmall',\n 'fz-small': 'fz-small',\n 'fz-medium': 'fz-medium',\n 'fz-large': 'fz-large'\n}\n\nif cssmodules == true\n cssModulesUtils(fontsize, breakpoints)\nelse\n nativeUtils(fontsize, breakpoints)\n\nta-left()\n text-align left!important\n\nta-right()\n text-align right!important\n\nta-center()\n text-align center!important\n\nta-justify()\n text-align justify!important\n\ntextalign = {\n 'ta-left': 'ta-left',\n 'ta-right': 'ta-right',\n 'ta-center': 'ta-center',\n 'ta-justify': 'ta-justify'\n}\n\nif cssmodules == true\n cssModulesUtils(textalign, breakpoints)\nelse\n nativeUtils(textalign, breakpoints)\n\nfs-normal()\n font-style normal!important\n\nfs-italic()\n font-style italic!important\n\nfontstyle = {\n 'fs-normal': 'fs-normal',\n 'fs-italic': 'fs-italic'\n}\nif cssmodules == true\n cssModulesUtils(fontstyle, breakpoints)\nelse\n nativeUtils(fontstyle, breakpoints)\n\nfw-normal()\n font-weight normal\n\nfw-bold()\n font-weight bold\n\nfontweight = {\n 'fw-normal': 'fw-normal',\n 'fw-bold': 'fw-bold'\n}\nif cssmodules == true\n cssModulesUtils(fontweight, breakpoints)\nelse\n nativeUtils(fontweight, breakpoints)\n// @stylint on\n\n// Global classes\nglobal('.u-breakword', $breakword)\nglobal('.u-ellipsis', $ellipsis)\nglobal('.u-midellipsis', $midellipsis)\nglobal('.u-link', $link)\n","@require '../settings/icons'\n@require '../utilities/display'\n@require '../utilities/text'\n@require '../tools/mixins'\n\npalette=json('../settings/palette.json', { hash: true })\n\n/*------------------------------------*\\\n Variants\n\\*------------------------------------*/\nregularTheme = {\n primaryColor: var(--regularButtonPrimaryColor),\n secondaryColor: var(--regularButtonSecondaryColor),\n activeColor: var(--regularButtonActiveColor),\n contrastColor: var(--regularButtonConstrastColor)\n}\nsecondaryTheme = {\n primaryColor: var(--secondaryButtonPrimaryColor),\n secondaryColor: var(--secondaryButtonSecondaryColor),\n activeColor: var(--secondaryButtonActiveColor),\n contrastColor: var(--secondaryButtonContrastColor)\n}\nghostTheme = {\n primaryColor: var(--zircon), secondaryColor: palette['frenchPass'], activeColor: palette['frenchPass'], contrastColor: var(--primaryColor)\n}\nhighlightTheme = {\n primaryColor: palette['emerald'], secondaryColor: palette['emerald'], activeColor: palette['malachite'], contrastColor: var(--white)\n}\ndangerTheme = {\n primaryColor: palette['pomegranate'], secondaryColor: palette['pomegranate'], activeColor: var(--monza), contrastColor: var(--white)\n}\nalphaTheme = {\n primaryColor: transparent, secondaryColor: var(--white), activeColor: var(--scienceBlue), contrastColor: var(--white)\n}\ndangerOutlineTheme = {\n primaryColor: var(--white), secondaryColor: palette['yourPink'], activeColor: palette['yourPink'], contrastColor: palette['pomegranate']\n}\ntext = {\n primaryColor: transparent, secondaryColor: transparent, activeColor: transparent, contrastColor: var(--primaryColor)\n}\n\n// We turn stylint off since without semicolons, stylus fails to\n// parse the following code block.\n// @stylint off\nthemedBtn(theme)\n background-color: theme['primaryColor']\n color: theme['contrastColor']\n border-color: theme['secondaryColor']\n\n &:visited\n color: theme['contrastColor']\n\n &:active\n &:hover\n &:focus\n border-color: theme['activeColor']\n background-color: theme['activeColor']\n\n &[disabled]\n &[aria-disabled=true]\n &:hover\n border-color: theme['secondaryColor']\n background-color: theme['primaryColor']\n\n/*------------------------------------*\\\n Button\n\\*------------------------------------*/\n\n$button\n position relative\n box-sizing border-box\n display inline-flex\n margin 0 rem(4)\n border-width rem(1)\n border-style solid\n border-radius var(--buttonBorderRadius)\n min-height rem(40)\n min-width rem(112)\n padding rem(3 16)\n vertical-align top\n text-align center\n font-size rem(14)\n font-weight bold\n line-height 1\n text-transform var(--buttonTextTransform)\n text-decoration none\n cursor pointer\n align-items center\n\n svg\n fill currentColor\n\n & + span\n margin-left rem(6)\n\n input\n cursor pointer\n\n > span\n display flex\n align-items center\n justify-content center\n width 100%\n\n &[disabled]\n &[aria-disabled=true]\n opacity .5\n cursor not-allowed\n\n input\n cursor not-allowed\n\n &[aria-busy=true]\n opacity .5\n pointer-events none\n\n themedBtn(regularTheme)\n\n$button--regular // Deprecated\n @extend $button\n\n$button--regularInverted\n themedBtn(regularInvertedTheme)\n\n$button--ghost\n themedBtn(ghostTheme)\n border-style dashed\n\n$button--highlight\n themedBtn(highlightTheme)\n\n$button--alpha\n themedBtn(alphaTheme)\n\n$button--danger\n themedBtn(dangerTheme)\n\n$button--secondary\n themedBtn(secondaryTheme)\n\n$button--secondaryInverted\n themedBtn(secondaryInvertedTheme)\n\n$button--danger-outline\n themedBtn(dangerOutlineTheme)\n\n$button--text\n themedBtn(text)\n\n// @stylint on\n\n$button--text\n &:hover\n &:focus\n color var(--primaryColorDark)\n\n$button--action\n @extend $button--alpha\n border-color transparent\n padding rem(8)\n opacity .5\n\n &:active\n &:hover\n &:focus\n background-color transparent\n border-color transparent\n\n$button--close\n @extend $button--alpha\n border-color transparent\n padding rem(8)\n\n &:active\n &:hover\n &:focus\n background-color transparent\n border-color transparent\n\n$button-alert\n border 0\n height auto\n padding rem(8 16)\n background-color var(--white)\n font-weight bold\n font-size rem(14)\n text-decoration none\n\n$button-alert--error\n @extend $button-alert\n color: palette['pomegranate'] // @stylint ignore\n\n &:visited\n color: palette['pomegranate'] // @stylint ignore\n\n &:active\n &:hover\n &:focus\n color var(--monza)\n background-color: palette['yourPink'] // @stylint ignore\n\n$button-alert--info\n @extend $button-alert\n color var(--white)\n background-color var(--coolGrey)\n\n &[disabled]\n &[aria-disabled=true]\n &:hover\n background-color var(--coolGrey)\n\n &:visited\n color var(--white)\n\n &:active\n &:hover\n &:focus\n background-color var(--charcoalGrey)\n\n$button-alert--success\n @extend $button-alert\n color: palette['emerald'] // @stylint ignore\n\n &:visited\n color: palette['emerald'] // @stylint ignore\n\n &:active\n &:hover\n &:focus\n color: palette['malachite'] // @stylint ignore\n background-color: palette['grannyApple'] // @stylint ignore\n\n$button-client\n @extend $button\n @extend $button--secondary\n display flex\n justify-content center\n align-items center\n height auto\n min-height rem(56)\n margin 0\n padding-left rem(16)\n padding-right rem(16)\n background-color transparent\n text-align left\n font-size rem(13)\n font-weight bold\n line-height 1.3\n color var(--slateGrey)\n\n &:visited\n color var(--slateGrey)\n\n span\n flex 0 1 auto\n\n figure\n flex 0 0 rem(32)\n margin 0 rem(12) 0 0\n\n\n$button-client-mobile\n @extend $button-client\n display flex\n justify-content flex-start\n background-color var(--dodgerBlue)\n border 0\n border-radius 0\n margin 0\n padding rem(8 48 8 16)\n font-size rem(16)\n font-weight normal\n color var(--white)\n text-decoration none\n text-transform none\n\n &[disabled]\n &[aria-disabled=true]\n &:hover\n background-color var(--dodgerBlue)\n\n &:visited\n color var(--white)\n\n &:active\n &:hover\n &:focus\n background-color var(--dodgerBlue)\n\n figure\n flex 0 0 rem(44)\n border-radius rem(8)\n border rem(5) solid var(--white)\n background-color var(--white)\n\n svg\n display block\n\n/*------------------------------------*\\\n Text alignment\n\\*------------------------------------*/\nbutton--left =\n & > span\n justify-content flex-start\n$button--left\n {button--left}\n\nbutton--center =\n & > span\n justify-content center\n$button--center\n {button--center}\n\nbutton--right =\n & > span\n justify-content flex-end\n$button--right\n {button--right}\n\n/*------------------------------------*\\\n Sizes\n\\*------------------------------------*/\nbutton--tiny =\n min-height rem(24)\n min-width rem(80)\n padding rem(2 16)\n font-size rem(12)\n line-height 1.3\n$button--tiny\n {button--tiny}\n\nbutton--small =\n min-height rem(32)\n min-width rem(96)\n padding rem(3 8)\n font-size rem(13)\n line-height 1.4\n$button--small\n {button--small}\n\nbutton--large =\n min-height rem(48)\n min-width rem(160)\n padding rem(8 24)\n font-size rem(16)\n line-height 1.5\n$button--large\n {button--large}\n\n/*------------------------------------*\\\n Extensions\n\\*------------------------------------*/\n$button--full\n width 100%\n margin-left 0\n margin-right 0\n\n$button--narrow\n min-width auto\n\n/*------------------------------------*\\\n Round button\n\\*------------------------------------*/\n$button--round\n @extend $button--narrow\n border-radius 100%\n min-height auto\n padding rem(4)\n\n svg\n width rem(10)\n height rem(10)\n\n // Expand clickable area for touch devices\n @media (pointer: coarse)\n &:after\n content ''\n position absolute\n top rem(-14)\n right rem(-14)\n bottom rem(-14)\n left rem(-14)\n\n/*------------------------------------*\\\n Action button\n\\*------------------------------------*/\n$actionbtn\n @extend $button\n border-color var(--silver)\n text-transform none\n max-width rem(200)\n min-height rem(32)\n width 100%\n padding-right rem(8)\n text-align left\n line-height 1.3\n outline 0\n\n > span\n justify-content flex-start\n flex-wrap nowrap\n\n [data-action='icon']\n border-left rem(1) solid var(--dividerColor)\n\n &:not([disabled]):hover\n &:not([disabled]):focus\n [data-action='icon']\n border-color currentColor\n\n$actionbtn--compact\n @extend $button--narrow\n position relative\n border 0\n background-color transparent\n padding 0\n margin 0\n min-height rem(32)\n width rem(40)\n\n > span\n justify-content center\n\n [data-action='label']\n @extend $hide\n\n [data-action='icon']\n border-left none\n margin-left 0\n padding 0\n\n &:hover\n &:focus\n background-color var(--paleGrey)\n border 0\n\nactionbtnVariant(bgColor, txtColor, bdColor)\n background-color bgColor\n color txtColor\n border-color bdColor\n\n [data-action='icon']\n border-color bdColor\n\n &:hover\n &:focus\n background-color bdColor\n border-color bdColor\n\n &[disabled]:hover\n &[aria-disabled=true]:hover\n background-color bgColor\n\n$actionbtn--normal\n actionbtnVariant(var(--paleGrey), var(--charcoalGrey), var(--silver))\n\n$actionbtn--error\n actionbtnVariant(var(--chablis), palette['pomegranate'], palette['yourPink'])\n\n$actionbtn--new\n actionbtnVariant(var(--zircon), var(--dodgerBlue), palette['frenchPass'])\n border-width rem(1)\n border-style dashed\n\n &:hover:not([disabled])\n &:focus:not([disabled])\n border-style solid\n\n$actionbtn-label\n @extend $ellipsis\n padding-right rem(8)\n\n$actionbtn-icon\n display block\n margin-left auto\n padding-left rem(8)\n\n svg\n display block\n\n/*------------------------------------*\\\n Variants\n\\*------------------------------------*/\n// We turn stylint off since without semicolons, stylus fails to\n// parse the following code block.\n// @stylint off\nthemedBtnSubtle(theme)\n color: theme['secondaryColor']\n\n &:active\n &:focus\n &:hover\n color: theme['activeColor']\n\nsizedBtnSubtle(size)\n sizes = {\n tiny: rem(9), small: rem(12), large: rem(16)\n }\n\n min-height 0\n min-width 0\n padding 0\n font-size sizes[size]\n\n$button-subtle\n themedBtnSubtle(regularTheme)\n min-height auto\n min-width auto\n border 0\n margin rem(16) 0\n padding 0\n vertical-align baseline\n background transparent\n cursor pointer\n font-size rem(14)\n font-weight bold\n text-transform uppercase\n\n > span\n display flex\n align-items center\n justify-content center\n width 100%\n\n &[disabled]\n &[aria-disabled=true]\n opacity .5\n cursor not-allowed\n\n &:hover\n background transparent\n\n &[aria-busy=true]\n opacity .5\n cursor not-allowed\n pointer-events none\n\n &:hover\n background transparent\n\n &:active\n &:hover\n &:focus\n &:visited\n color var(--primaryColorDark)\n background transparent\n\n * + &\n margin-left rem(1)\n\n$button-subtle--tiny\n sizedBtnSubtle('tiny')\n\n$button-subtle--small\n sizedBtnSubtle('small')\n\n$button-subtle--large\n sizedBtnSubtle('large')\n\n$button-subtle--danger\n themedBtnSubtle(dangerTheme)\n\n$button-subtle--highlight\n themedBtnSubtle(highlightTheme)\n\n$button-subtle--regular\n themedBtnSubtle(regularTheme)\n\n$button-subtle--secondary\n // Not using themedBtnSubtle(secondaryTheme) because\n // silver color for a single text was too bright\n color var(--slateGrey)\n\n &:active\n &:focus\n &:hover\n color var(--charcoalGrey)\n svg\n color var(--slateGrey)\n svg\n color var(--coolGrey)\n// @stylint on\n","@require '../tools/mixins'\n\n/*------------------------------------*\\\n Breakpoints\n =====\n\\*------------------------------------*/\n\n// variables\n\nBP-teeny = 375\nBP-tiny = 480\nBP-small = 768\nBP-medium = 1023\nBP-large = 1200\nBP-extra-large = 1439\n\n// Standard breakpoints collection for utilities\nbreakpoints = {\n 'none': '',\n 'tiny': 't',\n 'small': 's',\n 'medium': 'm',\n}\n\n/*\n Breakpoints\n\n This is the collection of available breakpoint variables:<br><br>\n - `BP-teeny` - 375px\n - `BP-tiny` - 480px\n - `BP-small` - 768px\n - `BP-medium` - 1023px\n - `BP-large` - 1200px\n - `BP-extra-large` - 1439px\n\n <br>Also we have a standard breakpoints collection meant to be used as suffixes for some utility classes<br>\n\n If you want a utility class to trigger only at defined breakpoints you can use those:<br><br>\n - `-t` - refers to `tiny` breakpoint (max-width: 480px)\n - `-s` - refers to `small` breakpoint (max-width: 768px)\n - `-m` - refers to `medium` breakpoint (max-width: 1023px)\n\n Styleguide Settings.breakpoints\n*/\n\n/*\n Media Queries mixins\n\n You can use these mixins with no arguments and they will output\n the desired a `max-width` media-query. Use the direction argument\n to set it to `min`.\n\n Styleguide Settings.breakpoints.mixins\n*/\n\n// mixins\n// @stylint off\nsize-helper(direction, size)\n direction == 'min' ? size + 1 : size\n\n/*\n teeny-screen()\n\n teeny-screen() Refers to (max-width: 375px)\n teeny-screen('min') Refers to (min-width: 376px)\n\n Weight: -6\n\n Styleguide Settings.breakpoints.mixins.teeny\n*/\nteeny-screen(direction='max')\n @media ({direction}-width: rem(size-helper(direction, BP-teeny)))\n {block}\n\n/*\n tiny-screen()\n\n tiny-screen() Refers to (max-width: 480px)\n tiny-screen('min') Refers to (min-width: 481px)\n\n Weight: -5\n\n Styleguide Settings.breakpoints.mixins.tiny\n*/\ntiny-screen(direction='max')\n @media ({direction}-width: rem(size-helper(direction, BP-tiny)))\n {block}\n\n/*\n small-screen()\n\n small-screen() Refers to (max-width: 768px)\n small-screen('min') Refers to (min-width: 769px)\n\n Weight: -4\n\n Styleguide Settings.breakpoints.mixins.small\n*/\nsmall-screen(direction='max')\n @media ({direction}-width: rem(size-helper(direction, BP-small)))\n {block}\n\n/*\n medium-screen()\n\n medium-screen() Refers to (max-width: 1023px)\n medium-screen('min') Refers to (min-width: 1024px)\n\n Weight: -3\n\n Styleguide Settings.breakpoints.mixins.medium\n*/\nmedium-screen(direction='max')\n @media ({direction}-width: rem(size-helper(direction, BP-medium)))\n {block}\n\n/*\n large-screen()\n\n large-screen() Refers to (max-width: 1200px)\n large-screen('min') Refers to (min-width: 1201px)\n\n Weight: -2\n\n Styleguide Settings.breakpoints.mixins.large\n*/\nlarge-screen(direction='max')\n @media ({direction}-width: rem(size-helper(direction, BP-large)))\n {block}\n\n/*\n extra-large-screen()\n\n extra-large-screen() Refers to (max-width: 1439px)\n extra-large-screen('min') Refers to (min-width: 1440px)\n\n Weight: -1\n\n Styleguide Settings.breakpoints.mixins.extra-large\n*/\nextra-large-screen(direction='max')\n @media ({direction}-width: rem(size-helper(direction, BP-extra-large)))\n {block}\n\n// mixins named\n\n/*\n small-device()\n\n Refers to (max-width: 543px), (max-height: 375px)\n Triggers when the viewport has a width smaller than 543px OR a height smaller than 375px\n\n Weight: 0\n\n Styleguide Settings.breakpoints.mixins.small-device\n*/\n\nsmall-device()\n @media (max-width: rem(size-helper('max', BP-tiny))), (max-height: rem(size-helper('max', BP-teeny)))\n {block}\n\n/*\n medium-device()\n\n Refers to (min-width: 543px) and (min-height: 375px)\n Triggers when the viewport has a width bigger than 543px AND a height bigger than 375px\n\n Weight: 0\n\n Styleguide Settings.breakpoints.mixins.medium-device\n*/\n\nmedium-device()\n @media (min-width: rem(size-helper('min', BP-tiny))) and (min-height: rem(size-helper('min', BP-teeny)))\n {block}\n\n/*\n desktop()\n\n Refers to (min-width: 1024px)\n\n Weight: 0\n\n Styleguide Settings.breakpoints.mixins.desktop\n*/\ndesktop()\n @media (min-width: rem(size-helper('min', BP-medium)))\n {block}\n\n/*\n tablet()\n\n Refers to (min-width: 769px) and (max-width: 1023px)\n\n Weight: 1\n\n Styleguide Settings.breakpoints.mixins.tablet\n*/\ntablet()\n @media (min-width: rem(size-helper('min', BP-small))) and (max-width: rem(size-helper('max', BP-medium)))\n {block}\n\n/*\n mobile()\n\n Refers to small-screen() which is (max-width: 768px)\n\n Weight: 2\n\n Styleguide Settings.breakpoints.mixins.mobile\n*/\nmobile()\n +small-screen()\n {block}\n\n/*\n gt-mobile()\n\n Refers to (min-width: 769px)\n\n Weight: 3\n\n Styleguide Settings.breakpoints.mixins.gt-mobile\n*/\ngt-mobile()\n @media (min-width: rem(size-helper('min', BP-small)))\n {block}\n\n/*\n gt-tablet()\n\n Refers to (min-width: 1024px)\n\n Weight: 4\n\n Styleguide Settings.breakpoints.mixins.gt-tablet\n*/\ngt-tablet()\n @media (min-width: rem(size-helper('min', BP-medium)))\n {block}\n\n/*\n lt-desktop()\n\n Refers to medium-screen() which is (max-width: 1023px)\n\n Weight: 5\n\n Styleguide Settings.breakpoints.mixins.lt-desktop\n*/\nlt-desktop()\n +medium-screen()\n {block}\n// @stylint on\n"],sourceRoot:""}]),t.locals={"c-btn":"cozy-ui-bar-c-btn--3Vk8q","c-btn--regular":"cozy-ui-bar-c-btn--regular--2vXm9","c-btn--ghost":"cozy-ui-bar-c-btn--ghost--2erzD","c-btn--highlight":"cozy-ui-bar-c-btn--highlight--139k0","c-btn--alpha":"cozy-ui-bar-c-btn--alpha--3xuwd","c-btn--action":"cozy-ui-bar-c-btn--action--1mNtp","c-btn--close":"cozy-ui-bar-c-btn--close--m97vB","c-btn--danger":"cozy-ui-bar-c-btn--danger--3pdnK","c-btn--secondary":"cozy-ui-bar-c-btn--secondary--2JUsA","c-btn--danger-outline":"cozy-ui-bar-c-btn--danger-outline--2Bltk","c-btn--text":"cozy-ui-bar-c-btn--text--1M_ap","c-btn--left":"cozy-ui-bar-c-btn--left--3xEmE","c-btn--center":"cozy-ui-bar-c-btn--center--T8nT8","c-btn--right":"cozy-ui-bar-c-btn--right--3pX-0","c-btn--tiny":"cozy-ui-bar-c-btn--tiny--15Am0","c-btn--small":"cozy-ui-bar-c-btn--small--gNd1_","c-btn--large":"cozy-ui-bar-c-btn--large--VoQ1T","c-btn--full":"cozy-ui-bar-c-btn--full--257V_","c-btn--narrow":"cozy-ui-bar-c-btn--narrow--37r_T","c-btn--round":"cozy-ui-bar-c-btn--round--TSd9o","c-btn--subtle":"cozy-ui-bar-c-btn--subtle--225Zu",spin:"cozy-ui-bar-spin--39OaW",shake:"cozy-ui-bar-shake--34qwk"}},function(e,t,n){var r=n(64),o=n(351),i=n(352),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},function(e,t,n){var r=n(368),o=n(410),i=n(88),a=n(26),u=n(414);e.exports=function(e){return"function"==typeof e?e:null==e?i:"object"==typeof e?a(e)?o(e[0],e[1]):r(e):u(e)}},function(e,t,n){var r=n(380),o=n(383);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},function(e,t,n){var r=n(456),o=n(240),i=/[T ]/,a=/:/,u=/^(\d{2})$/,c=[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],s=/^(\d{4})/,l=[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],f=/^-(\d{2})$/,d=/^-?(\d{3})$/,p=/^-?(\d{2})-?(\d{2})$/,h=/^-?W(\d{2})$/,m=/^-?W(\d{2})-?(\d{1})$/,y=/^(\d{2}([.,]\d*)?)$/,v=/^(\d{2}):?(\d{2}([.,]\d*)?)$/,g=/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,b=/([Z+-].*)$/,w=/^(Z)$/,x=/^([+-])(\d{2})$/,C=/^([+-])(\d{2}):?(\d{2})$/;function k(e,t,n){t=t||0,n=n||0;var r=new Date(0);r.setUTCFullYear(e,0,4);var o=7*t+n+1-(r.getUTCDay()||7);return r.setUTCDate(r.getUTCDate()+o),r}e.exports=function(e,t){if(o(e))return new Date(e.getTime());if("string"!=typeof e)return new Date(e);var n=(t||{}).additionalDigits;n=null==n?2:Number(n);var S=function(e){var t,n={},r=e.split(i);a.test(r[0])?(n.date=null,t=r[0]):(n.date=r[0],t=r[1]);if(t){var o=b.exec(t);o?(n.time=t.replace(o[1],""),n.timezone=o[1]):n.time=t}return n}(e),_=function(e,t){var n,r=c[t],o=l[t];if(n=s.exec(e)||o.exec(e)){var i=n[1];return{year:parseInt(i,10),restDateString:e.slice(i.length)}}if(n=u.exec(e)||r.exec(e)){var a=n[1];return{year:100*parseInt(a,10),restDateString:e.slice(a.length)}}return{year:null}}(S.date,n),A=_.year,O=function(e,t){if(null===t)return null;var n,r,o,i;if(0===e.length)return(r=new Date(0)).setUTCFullYear(t),r;if(n=f.exec(e))return r=new Date(0),o=parseInt(n[1],10)-1,r.setUTCFullYear(t,o),r;if(n=d.exec(e)){r=new Date(0);var a=parseInt(n[1],10);return r.setUTCFullYear(t,0,a),r}if(n=p.exec(e)){r=new Date(0),o=parseInt(n[1],10)-1;var u=parseInt(n[2],10);return r.setUTCFullYear(t,o,u),r}if(n=h.exec(e))return i=parseInt(n[1],10)-1,k(t,i);if(n=m.exec(e)){i=parseInt(n[1],10)-1;var c=parseInt(n[2],10)-1;return k(t,i,c)}return null}(_.restDateString,A);if(O){var E,B=O.getTime(),j=0;if(S.time&&(j=function(e){var t,n,r;if(t=y.exec(e))return(n=parseFloat(t[1].replace(",",".")))%24*36e5;if(t=v.exec(e))return n=parseInt(t[1],10),r=parseFloat(t[2].replace(",",".")),n%24*36e5+6e4*r;if(t=g.exec(e)){n=parseInt(t[1],10),r=parseInt(t[2],10);var o=parseFloat(t[3].replace(",","."));return n%24*36e5+6e4*r+1e3*o}return null}(S.time)),S.timezone)E=6e4*function(e){var t,n;if(t=w.exec(e))return 0;if(t=x.exec(e))return n=60*parseInt(t[2],10),"+"===t[1]?-n:n;if(t=C.exec(e))return n=60*parseInt(t[2],10)+parseInt(t[3],10),"+"===t[1]?-n:n;return 0}(S.timezone);else{var P=B+j,T=new Date(P);E=r(T);var z=new Date(P);z.setDate(T.getDate()+1);var I=r(z)-r(T);I>0&&(E+=I)}return new Date(B+j+E)}return new Date(e)}},function(e,t){var n=["M","MM","Q","D","DD","DDD","DDDD","d","E","W","WW","YY","YYYY","GG","GGGG","H","HH","h","hh","m","mm","s","ss","S","SS","SSS","Z","ZZ","X","x"];e.exports=function(e){var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(r);var o=n.concat(t).sort().reverse();return new RegExp("(\\[[^\\[]*\\])|(\\\\)?("+o.join("|")+"|.)","g")}},function(e,t,n){var r=n(88),o=n(251),i=n(253);e.exports=function(e,t){return i(o(e,t,r),e+"")}},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.FetchError=t.default=void 0;var o=r(n(4)),i=r(n(11)),a=r(n(8)),u=r(n(10)),c=r(n(5)),s=r(n(35));function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,c.default)(e);if(t){var o=(0,c.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,u.default)(this,n)}}var f={EXPIRED_TOKEN:/Expired token/,CLIENT_NOT_FOUND:/Client not found/,INVALID_TOKEN:/Invalid JWT token/};t.default=f;var d=function(e){(0,a.default)(n,e);var t=l(n);function n(e,r){var a;return(0,o.default)(this,n),a=t.call(this),Error.captureStackTrace&&Error.captureStackTrace((0,i.default)(a),a.constructor),a.name="FetchError",a.response=e,a.url=e.url,a.status=e.status,a.reason=r,Object.defineProperty((0,i.default)(a),"message",{value:r.message||("string"==typeof r?r:JSON.stringify(r))}),a}return n}((0,s.default)(Error));t.FetchError=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DOCTYPE_FILES=t.REGISTRATION_ABORT=void 0;t.REGISTRATION_ABORT="REGISTRATION_ABORT";t.DOCTYPE_FILES="io.cozy.files"},function(e,t,n){"use strict";var r=n(20),o=n(3);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"initQuery",{enumerable:!0,get:function(){return f.initQuery}}),Object.defineProperty(t,"loadQuery",{enumerable:!0,get:function(){return f.loadQuery}}),Object.defineProperty(t,"receiveQueryResult",{enumerable:!0,get:function(){return f.receiveQueryResult}}),Object.defineProperty(t,"receiveQueryError",{enumerable:!0,get:function(){return f.receiveQueryError}}),Object.defineProperty(t,"initMutation",{enumerable:!0,get:function(){return d.initMutation}}),Object.defineProperty(t,"receiveMutationResult",{enumerable:!0,get:function(){return d.receiveMutationResult}}),Object.defineProperty(t,"receiveMutationError",{enumerable:!0,get:function(){return d.receiveMutationError}}),t.resetState=t.getRawQueryFromState=t.getQueryFromState=t.getQueryFromStore=t.getDocumentFromState=t.getCollectionFromState=t.getStateRoot=t.createStore=t.default=t.StoreProxy=void 0;var i=o(n(2)),a=o(n(4)),u=o(n(6)),c=n(205),s=o(n(203)),l=r(n(278)),f=r(n(188)),d=n(190);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){(0,i.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.resetState=function(){return{type:"COZY_CLIENT.RESET_STATE"}};var m=function(){function e(t){(0,a.default)(this,e),this.state=t}return(0,u.default)(e,[{key:"readDocument",value:function(e,t){return this.state.documents[e][t]}},{key:"writeDocument",value:function(e){this.setState((function(t){return h(h({},t),{},{documents:h(h({},t.documents),{},(0,i.default)({},e._type,h(h({},t.documents[e._type]),{},(0,i.default)({},e._id,e))))})}))}},{key:"setState",value:function(e){this.state=e(this.state)}},{key:"getState",value:function(){return this.state}}]),e}();t.StoreProxy=m;var y={documents:{},queries:{}},v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:y,t=arguments.length>1?arguments[1]:void 0;if("COZY_CLIENT.RESET_STATE"==t.type)return y;if(!(0,f.isQueryAction)(t)&&!(0,d.isMutationAction)(t))return e;if(t.update){var n=new m(e);return t.update(n,t.response),{documents:n.getState().documents,queries:(0,f.default)(n.getState().queries,t,n.getState().documents)}}var r=(0,l.default)(e.documents,t),o=r!==e.documents;return{documents:r,queries:(0,f.default)(e.queries,t,r,o)}},g=v;t.default=g;t.createStore=function(){return(0,c.createStore)((0,c.combineReducers)({cozy:v}),(0,c.applyMiddleware)(s.default))};var b=function(e){return e.cozy||{}};t.getStateRoot=b;t.getCollectionFromState=function(e,t){return(0,l.getCollectionFromSlice)(b(e).documents,t)};t.getDocumentFromState=function(e,t,n){return(0,l.getDocumentFromSlice)(b(e).documents,t,n)};t.getQueryFromStore=function(e,t){return w(e.getState(),t)};var w=function(e,t){return(0,f.getQueryFromSlice)(b(e).queries,t,b(e).documents)};t.getQueryFromState=w;t.getRawQueryFromState=function(e,t){return(0,f.getQueryFromSlice)(b(e).queries,t)}},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(4)),i=r(n(6)),a=(n(22),n(21),function(){function e(t,n,r,i){(0,o.default)(this,e);var a=i.dispatch,u=i.get,c=i.query,s=i.mutate,l=i.save;this.target=t,this.name=n,this.doctype=r,this.get=u,this.query=c,this.mutate=s,this.save=l,this.dispatch=a}return(0,i.default)(e,[{key:"raw",get:function(){throw new Error("A relationship must define its raw getter")}},{key:"data",get:function(){throw new Error("A relationship must define its data getter")}}],[{key:"query",value:function(e,t,n){throw new Error("A custom relationship must define its query() function")}}]),e}());t.default=a},function(e,t,n){"use strict";var r=n(27),o=n(99),i=o(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&i(e,".prototype.")>-1?o(n):n}},function(e,t,n){var r=n(145);e.exports=function(e){return null==e?"":r(e)}},function(e,t,n){var r=n(39).Symbol;e.exports=r},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,n){var r=n(407),o=n(151),i=n(408),a=n(224),u=n(225),c=n(52),s=n(214),l=s(r),f=s(o),d=s(i),p=s(a),h=s(u),m=c;(r&&"[object DataView]"!=m(new r(new ArrayBuffer(1)))||o&&"[object Map]"!=m(new o)||i&&"[object Promise]"!=m(i.resolve())||a&&"[object Set]"!=m(new a)||u&&"[object WeakMap]"!=m(new u))&&(m=function(e){var t=c(e),n="[object Object]"==t?e.constructor:void 0,r=n?s(n):"";if(r)switch(r){case l:return"[object DataView]";case f:return"[object Map]";case d:return"[object Promise]";case p:return"[object Set]";case h:return"[object WeakMap]"}return t}),e.exports=m},function(e,t,n){var r=n(26),o=n(160),i=n(411),a=n(63);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:i(a(e))}},function(e,t,n){var r=n(82);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},function(e,t,n){var r=n(232);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},function(e,t){e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var o=(a=r,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */"),i=r.sources.map((function(e){return"/*# sourceURL="+r.sourceRoot+e+" */"}));return[n].concat(i).concat([o]).join("\n")}var a;return[n].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n})).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},o=0;o<this.length;o++){var i=this[o][0];"number"==typeof i&&(r[i]=!0)}for(o=0;o<e.length;o++){var a=e[o];"number"==typeof a[0]&&r[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),t.push(a))}},t}},function(e,t,n){var r=n(162),o=n(69);e.exports=function(e,t,n,i){var a=!n;n||(n={});for(var u=-1,c=t.length;++u<c;){var s=t[u],l=i?i(n[s],e[s],s,n,e):void 0;void 0===l&&(l=e[s]),a?o(n,s,l):r(n,s,l)}return n}},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Collection=t.isDocumentUpdateConflict=t.isNoUsableIndexError=t.isIndexConflictError=t.isIndexNotFoundError=t.dontThrowNotFoundError=void 0;var o=r(n(7)),i=r(n(9)),a=r(n(4)),u=r(n(6)),c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(e.message.match(/not_found/)){var n=Array.isArray(t);return n?{data:t,meta:{count:0},skip:0,next:!1}:{data:t}}throw e};t.dontThrowNotFoundError=c;t.isIndexNotFoundError=function(e){return e.message.match(/no_index/)};t.isIndexConflictError=function(e){return e.message.match(/error_saving_ddoc/)};t.isNoUsableIndexError=function(e){return e.message.match(/no_usable_index/)};t.isDocumentUpdateConflict=function(e){return e.message.match(/Document update conflict/)};var s=function(){function e(){(0,a.default)(this,e)}var t;return(0,u.default)(e,null,[{key:"get",value:(t=(0,i.default)(o.default.mark((function e(t,n,r){var i,a,u,s,l;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.normalize,a=void 0===i?function(e,t){return e}:i,u=r.method,s=void 0===u?"GET":u,e.prev=1,e.next=4,t.fetchJSON(s,n);case 4:return l=e.sent,e.abrupt("return",{data:a(l.data,l)});case 8:return e.prev=8,e.t0=e.catch(1),e.abrupt("return",c(e.t0,null));case 11:case"end":return e.stop()}}),e,null,[[1,8]])}))),function(e,n,r){return t.apply(this,arguments)})}]),e}();t.Collection=s;var l=s;t.default=l},function(e,t,n){"use strict";e.exports=function(){}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=s(n(73)),u=s(n(200)),c=s(n(130));function s(e){return e&&e.__esModule?e:{default:e}}var l=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.type="style",this.isProcessed=!1;var o=r.sheet,i=r.Renderer,a=r.selector;this.key=t,this.options=r,this.style=n,a&&(this.selectorText=a),this.renderer=o?o.renderer:new i}return i(e,[{key:"prop",value:function(e,t){if(void 0===t)return this.style[e];if(this.style[e]===t)return this;var n=null==(t=this.options.jss.plugins.onChangeValue(t,e,this))||!1===t,r=e in this.style;if(n&&!r)return this;var o=n&&r;if(o?delete this.style[e]:this.style[e]=t,this.renderable)return o?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,t),this;var i=this.options.sheet;return i&&i.attached&&(0,a.default)(!1,'Rule is not linked. Missing sheet option "link: true".'),this}},{key:"applyTo",value:function(e){var t=this.toJSON();for(var n in t)this.renderer.setProperty(e,n,t[n]);return this}},{key:"toJSON",value:function(){var e={};for(var t in this.style){var n=this.style[t];"object"!==(void 0===n?"undefined":o(n))?e[t]=n:Array.isArray(n)&&(e[t]=(0,c.default)(n))}return e}},{key:"toString",value:function(e){var t=this.options.sheet,n=!!t&&t.options.link?r({},e,{allowEmpty:!0}):e;return(0,u.default)(this.selector,this.style,n)}},{key:"selector",set:function(e){if(e!==this.selectorText&&(this.selectorText=e,this.renderable&&!this.renderer.setSelector(this.renderable,e)&&this.renderable)){var t=this.renderer.replaceRule(this.renderable,this);t&&(this.renderable=t)}},get:function(){return this.selectorText}}]),e}();t.default=l},function(e,t,n){var r=n(69),o=n(170),i=n(53);e.exports=function(e,t){var n={};return t=i(t,3),o(e,(function(e,o,i){r(n,o,t(e,o,i))})),n}},function(e,t,n){var r=n(43),o=n(258),i=n(509),a=n(67),u=n(71),c=n(511),s=n(180),l=n(163),f=s((function(e,t){var n={};if(null==e)return n;var s=!1;t=r(t,(function(t){return t=a(t,e),s||(s=t.length>1),t})),u(e,l(e),n),s&&(n=o(n,7,c));for(var f=t.length;f--;)i(n,t[f]);return n}));e.exports=f},function(e,t,n){"use strict";e.exports=n(444)},function(e,t,n){"use strict";var r=n(3)(n(118));"undefined"!=typeof window&&(r.default.connect=n(433).default,r.default.FlagSwitcher=n(436).default,r.default.useFlag=n(437).default),"undefined"!=typeof __ENABLED_FLAGS__&&r.default.enable(__ENABLED_FLAGS__),e.exports=r.default},function(e,t,n){"use strict";var r=n(77),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},u={};function c(e){return r.isMemo(e)?a:u[e.$$typeof]||o}u[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},u[r.Memo]=a;var s=Object.defineProperty,l=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=p(n);o&&o!==h&&e(t,o,r)}var a=l(n);f&&(a=a.concat(f(n)));for(var u=c(t),m=c(n),y=0;y<a.length;++y){var v=a[y];if(!(i[v]||r&&r[v]||m&&m[v]||u&&u[v])){var g=d(n,v);try{s(t,v,g)}catch(e){}}}}return t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"d",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"b",(function(){return u}));var r="SET_LOCALE",o=function(e){return{type:r,lang:e}},i=function(){return document.documentElement.getAttribute("lang")||"en"},a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i(),t=arguments.length>1?arguments[1]:void 0;return t.type===r?t.lang:e},u=function(e){return e}},function(e,t,n){(t=e.exports=n(70)(!0)).push([e.i,".cozy-ui-bar-c-loading-placeholder--215aK{-webkit-animation-delay:.1s;animation-delay:.1s;-webkit-animation-duration:2s;animation-duration:2s;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-name:cozy-ui-bar-placeHolderShimmer--3-jlD;animation-name:cozy-ui-bar-placeHolderShimmer--3-jlD;-webkit-animation-timing-function:linear;animation-timing-function:linear;background-position:-20rem 0;background-image:linear-gradient(to right,silver 0,#fcfcfc 50%,silver 100%);background-size:20rem 10rem;background-repeat:no-repeat;background-color:silver;border-radius:.15rem;max-width:100%;position:relative;margin:.1rem 0}.cozy-ui-bar-c-app-icon--3Xbeb,.cozy-ui-bar-c-app-icon--3Xbeb svg{height:100%;width:100%;flex-grow:0;flex-shrink:0;-o-object-fit:contain;object-fit:contain}.cozy-ui-bar-c-app-icon-default--2Jv93{color:var(--silver)}@-webkit-keyframes cozy-ui-bar-placeHolderShimmer--3-jlD{0%{background-position:-20rem 0}80%{background-position:20rem 0}80.1%{background-position:-20rem 0}100%{background-position:-20rem 0}}@keyframes cozy-ui-bar-placeHolderShimmer--3-jlD{0%{background-position:-20rem 0}80%{background-position:20rem 0}80.1%{background-position:-20rem 0}100%{background-position:-20rem 0}}","",{version:3,sources:["/home/travis/build/cozy/cozy-bar/node_modules/cozy-ui/react/AppIcon/node_modules/cozy-ui/react/AppIcon/styles.styl","/home/travis/build/cozy/cozy-bar/node_modules/cozy-ui/react/AppIcon/styles.styl"],names:[],mappings:"AAOA,0CACI,4BAAA,oBACA,8BAAA,sBACA,2CAAA,mCACA,6DAAA,qDACA,yCAAA,iCACA,6BACA,4EACA,4BACA,4BACA,wBACA,qBACA,eACA,kBACA,cCNJ,CDSA,kEAEI,YACA,WAEA,YACA,cACA,sBAAA,kBCRJ,CDWA,uCACI,mBCTJ,CD1BA,yDACE,GAAK,4BC2CL,CD1CA,IAAM,2BC6CN,CD5CA,MAAQ,4BC+CR,CD9CA,KAAO,4BCiDP,CACF,CDtDA,iDACE,GAAK,4BCuEL,CDtEA,IAAM,2BCyEN,CDxEA,MAAQ,4BC2ER,CD1EA,KAAO,4BC6EP,CACF,CAAA",file:"styles.styl",sourcesContent:["@keyframes placeHolderShimmer {\n 0% { background-position: -20rem 0; }\n 80% { background-position: 20rem 0; }\n 80.1% { background-position: -20rem 0; }\n 100% { background-position: -20rem 0; }\n}\n\n.c-loading-placeholder {\n animation-delay: 0.1s;\n animation-duration: 2s;\n animation-iteration-count: infinite;\n animation-name: placeHolderShimmer;\n animation-timing-function: linear;\n background-position: -20rem 0;\n background-image: linear-gradient(to right, silver 0%, #fcfcfc 50%, silver 100%);\n background-size: 20rem 10rem;\n background-repeat: no-repeat;\n background-color: silver;\n border-radius: 0.15rem;\n max-width: 100%;\n position: relative;\n margin: .1rem 0;\n}\n\n.c-app-icon,\n.c-app-icon svg {\n height 100%\n width 100%\n // Prevent flex-grow and flex-shrink\n flex-grow 0\n flex-shrink 0\n object-fit contain\n}\n\n.c-app-icon-default {\n color var(--silver)\n}\n",".c-loading-placeholder {\n animation-delay: 0.1s;\n animation-duration: 2s;\n animation-iteration-count: infinite;\n animation-name: placeHolderShimmer;\n animation-timing-function: linear;\n background-position: -20rem 0;\n background-image: linear-gradient(to right, #c0c0c0 0%, #fcfcfc 50%, #c0c0c0 100%);\n background-size: 20rem 10rem;\n background-repeat: no-repeat;\n background-color: #c0c0c0;\n border-radius: 0.15rem;\n max-width: 100%;\n position: relative;\n margin: 0.1rem 0;\n}\n.c-app-icon,\n.c-app-icon svg {\n height: 100%;\n width: 100%;\n flex-grow: 0;\n flex-shrink: 0;\n object-fit: contain;\n}\n.c-app-icon-default {\n color: var(--silver);\n}\n@-moz-keyframes placeHolderShimmer {\n 0% {\n background-position: -20rem 0;\n }\n 80% {\n background-position: 20rem 0;\n }\n 80.1% {\n background-position: -20rem 0;\n }\n 100% {\n background-position: -20rem 0;\n }\n}\n@-webkit-keyframes placeHolderShimmer {\n 0% {\n background-position: -20rem 0;\n }\n 80% {\n background-position: 20rem 0;\n }\n 80.1% {\n background-position: -20rem 0;\n }\n 100% {\n background-position: -20rem 0;\n }\n}\n@-o-keyframes placeHolderShimmer {\n 0% {\n background-position: -20rem 0;\n }\n 80% {\n background-position: 20rem 0;\n }\n 80.1% {\n background-position: -20rem 0;\n }\n 100% {\n background-position: -20rem 0;\n }\n}\n@keyframes placeHolderShimmer {\n 0% {\n background-position: -20rem 0;\n }\n 80% {\n background-position: 20rem 0;\n }\n 80.1% {\n background-position: -20rem 0;\n }\n 100% {\n background-position: -20rem 0;\n }\n}\n"],sourceRoot:""}]),t.locals={"c-loading-placeholder":"cozy-ui-bar-c-loading-placeholder--215aK",placeHolderShimmer:"cozy-ui-bar-placeHolderShimmer--3-jlD","c-app-icon":"cozy-ui-bar-c-app-icon--3Xbeb","c-app-icon-default":"cozy-ui-bar-c-app-icon-default--2Jv93"}},function(e,t,n){var r=n(52),o=n(40);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=n=function(e){return typeof e}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}e.exports=n},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,n){var r=n(221),o=n(159),i=n(47);e.exports=function(e){return i(e)?r(e):o(e)}},function(e,t,n){var r=n(403),o=n(40),i=Object.prototype,a=i.hasOwnProperty,u=i.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(e){return o(e)&&a.call(e,"callee")&&!u.call(e,"callee")};e.exports=c},function(e,t,n){(function(e){var r=n(39),o=n(404),i=t&&!t.nodeType&&t,a=i&&"object"==typeof e&&e&&!e.nodeType&&e,u=a&&a.exports===i?r.Buffer:void 0,c=(u?u.isBuffer:void 0)||o;e.exports=c}).call(this,n(112)(e))},function(e,t){e.exports=function(e){return e}},function(e,t,n){"use strict";var r=n(446);e.exports=Function.prototype.bind||r},function(e,t,n){var r=n(91),o=n(92);e.exports={distanceInWords:r(),format:o()}},function(e,t){e.exports=function(){var e={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};return{localize:function(t,n,r){var o;return r=r||{},o="string"==typeof e[t]?e[t]:1===n?e[t].one:e[t].other.replace("{{count}}",n),r.addSuffix?r.comparison>0?"in "+o:o+" ago":o}}}},function(e,t,n){var r=n(56);e.exports=function(){var e=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],t=["January","February","March","April","May","June","July","August","September","October","November","December"],n=["Su","Mo","Tu","We","Th","Fr","Sa"],o=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],i=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],a=["AM","PM"],u=["am","pm"],c=["a.m.","p.m."],s={MMM:function(t){return e[t.getMonth()]},MMMM:function(e){return t[e.getMonth()]},dd:function(e){return n[e.getDay()]},ddd:function(e){return o[e.getDay()]},dddd:function(e){return i[e.getDay()]},A:function(e){return e.getHours()/12>=1?a[1]:a[0]},a:function(e){return e.getHours()/12>=1?u[1]:u[0]},aa:function(e){return e.getHours()/12>=1?c[1]:c[0]}};return["M","D","DDD","d","Q","W"].forEach((function(e){s[e+"o"]=function(t,n){return function(e){var t=e%100;if(t>20||t<10)switch(t%10){case 1:return e+"st";case 2:return e+"nd";case 3:return e+"rd"}return e+"th"}(n[e](t))}})),{formatters:s,formattingTokensRegExp:r(s)}}},function(e,t){e.exports=function(){var e={lessThanXSeconds:{one:"menos de un segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"medio minuto",lessThanXMinutes:{one:"menos de un minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"alrededor de 1 hora",other:"alrededor de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 día",other:"{{count}} días"},aboutXMonths:{one:"alrededor de 1 mes",other:"alrededor de {{count}} meses"},xMonths:{one:"1 mes",other:"{{count}} meses"},aboutXYears:{one:"alrededor de 1 año",other:"alrededor de {{count}} años"},xYears:{one:"1 año",other:"{{count}} años"},overXYears:{one:"más de 1 año",other:"más de {{count}} años"},almostXYears:{one:"casi 1 año",other:"casi {{count}} años"}};return{localize:function(t,n,r){var o;return r=r||{},o="string"==typeof e[t]?e[t]:1===n?e[t].one:e[t].other.replace("{{count}}",n),r.addSuffix?r.comparison>0?"en "+o:"hace "+o:o}}}},function(e,t,n){var r=n(56);e.exports=function(){var e=["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],t=["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"],n=["do","lu","ma","mi","ju","vi","sa"],o=["dom","lun","mar","mié","jue","vie","sáb"],i=["domingo","lunes","martes","miércoles","jueves","viernes","sábado"],a=["AM","PM"],u=["am","pm"],c=["a.m.","p.m."],s={MMM:function(t){return e[t.getMonth()]},MMMM:function(e){return t[e.getMonth()]},dd:function(e){return n[e.getDay()]},ddd:function(e){return o[e.getDay()]},dddd:function(e){return i[e.getDay()]},A:function(e){return e.getHours()/12>=1?a[1]:a[0]},a:function(e){return e.getHours()/12>=1?u[1]:u[0]},aa:function(e){return e.getHours()/12>=1?c[1]:c[0]}};return["M","D","DDD","d","Q","W"].forEach((function(e){s[e+"o"]=function(t,n){return n[e](t)+"º"}})),{formatters:s,formattingTokensRegExp:r(s)}}},function(e,t){e.exports=function(){var e={lessThanXSeconds:{one:"moins d’une seconde",other:"moins de {{count}} secondes"},xSeconds:{one:"1 seconde",other:"{{count}} secondes"},halfAMinute:"30 secondes",lessThanXMinutes:{one:"moins d’une minute",other:"moins de {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"environ 1 heure",other:"environ {{count}} heures"},xHours:{one:"1 heure",other:"{{count}} heures"},xDays:{one:"1 jour",other:"{{count}} jours"},aboutXMonths:{one:"environ 1 mois",other:"environ {{count}} mois"},xMonths:{one:"1 mois",other:"{{count}} mois"},aboutXYears:{one:"environ 1 an",other:"environ {{count}} ans"},xYears:{one:"1 an",other:"{{count}} ans"},overXYears:{one:"plus d’un an",other:"plus de {{count}} ans"},almostXYears:{one:"presqu’un an",other:"presque {{count}} ans"}};return{localize:function(t,n,r){var o;return r=r||{},o="string"==typeof e[t]?e[t]:1===n?e[t].one:e[t].other.replace("{{count}}",n),r.addSuffix?r.comparison>0?"dans "+o:"il y a "+o:o}}}},function(e,t,n){var r=n(56);e.exports=function(){var e=["janv.","févr.","mars","avr.","mai","juin","juill.","août","sept.","oct.","nov.","déc."],t=["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"],n=["di","lu","ma","me","je","ve","sa"],o=["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],i=["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],a=["AM","PM"],u=["am","pm"],c=["du matin","de l’après-midi","du soir"],s={MMM:function(t){return e[t.getMonth()]},MMMM:function(e){return t[e.getMonth()]},dd:function(e){return n[e.getDay()]},ddd:function(e){return o[e.getDay()]},dddd:function(e){return i[e.getDay()]},A:function(e){return e.getHours()/12>=1?a[1]:a[0]},a:function(e){return e.getHours()/12>=1?u[1]:u[0]},aa:function(e){var t=e.getHours();return t<=12?c[0]:t<=16?c[1]:c[2]},Wo:function(e,t){return function(e){if(1===e)return"1re";return e+"e"}(t.W(e))}};return["M","D","DDD","d","Q"].forEach((function(e){s[e+"o"]=function(t,n){return function(e){if(1===e)return"1er";return e+"e"}(n[e](t))}})),["MMM","MMMM"].forEach((function(e){s["Do "+e]=function(t,n){var r=1===t.getDate()?"Do":"D";return(s[r]||n[r])(t,n)+" "+s[e](t)}})),{formatters:s,formattingTokensRegExp:r(s)}}},function(e,t,n){var r=n(526);function o(t,n,i){return"undefined"!=typeof Reflect&&Reflect.get?e.exports=o=Reflect.get:e.exports=o=function(e,t,n){var o=r(e,t);if(o){var i=Object.getOwnPropertyDescriptor(o,t);return i.get?i.get.call(n):i.value}},o(t,n,i||t)}e.exports=o},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.updateRelationship=t.updateHasManyItem=t.removeHasManyItem=t.setHasManyItem=t.getHasManyItems=t.getHasManyItem=void 0;var o=r(n(4)),i=r(n(6)),a=r(n(11)),u=r(n(8)),c=r(n(10)),s=r(n(5)),l=r(n(2)),f=r(n(31)),d=r(n(18)),p=r(n(127)),h=n(21),m=n(60),y=(n(22),r(n(61)));function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){(0,l.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,s.default)(e);if(t){var o=(0,s.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,c.default)(this,n)}}var w=function(e){(0,u.default)(n,e);var t=b(n);function n(){var e;(0,o.default)(this,n);for(var r=arguments.length,i=new Array(r),u=0;u<r;u++)i[u]=arguments[u];return e=t.call.apply(t,[this].concat(i)),(0,l.default)((0,a.default)(e),"updateRelationshipData",(function(t){return function(n,r){var o=(0,m.getDocumentFromState)(r(),e.target._type,e.target._id);n((0,m.receiveQueryResult)(null,{data:g(g({},o),{},{relationships:g(g({},o.relationships),{},(0,l.default)({},e.name,t(o.relationships[e.name])))})}))}})),e}return(0,i.default)(n,[{key:"fetchMore",value:function(){throw"Not implemented"}},{key:"exists",value:function(e){return this.existsById(e._id)}},{key:"containsById",value:function(e){return void 0!==this.getRelationship().data.find((function(t){var n=t._id;return e===n}))}},{key:"existsById",value:function(e){return Boolean(this.containsById(e)&&this.get(this.doctype,e))}},{key:"add",value:function(e){var t=(Array.isArray(e)?e:[e]).map((function(e){return e._id}));return this.addById(t)}},{key:"remove",value:function(e){var t=(Array.isArray(e)?e:[e]).map((function(e){return e._id}));return this.removeById(t)}},{key:"addTargetRelationships",value:function(e){var t,n=this;this.target.relationships||(this.target.relationships={}),this.target.relationships[this.name]||(this.target.relationships[this.name]={data:[]});var r=(Array.isArray(e)?e:[e]).filter((function(e){return!n.existsById(e)})).map((function(e){return{_id:e,_type:n.doctype}}));(t=this.target.relationships[this.name].data).push.apply(t,(0,f.default)(r)),this.updateMetaCount()}},{key:"addById",value:function(e){return this.addTargetRelationships(e),this.save(this.target)}},{key:"removeTargetRelationships",value:function(e){var t=Array.isArray(e)?e:[e];this.target.relationships[this.name].data=this.target.relationships[this.name].data.filter((function(e){var n=e._id;return!t.includes(n)})),this.updateMetaCount()}},{key:"removeById",value:function(e){return this.removeTargetRelationships(e),this.save(this.target)}},{key:"updateMetaCount",value:function(){void 0!==(0,d.default)(this.target.relationships[this.name],"meta.count")&&(this.target.relationships[this.name].meta=g(g({},this.target.relationships[this.name].meta),{},{count:this.target.relationships[this.name].data.length}))}},{key:"getRelationship",value:function(){var e=this.target[this.name],t=(0,d.default)(this.target,"relationships.".concat(this.name));return t||(e&&e.length&&console.warn("You're trying to access data on a relationship that appear to not be loaded yet. You may want to use 'include()' on your query"),{data:[],next:!0,meta:{count:0}})}},{key:"updateTargetRelationship",value:function(e,t){var n=e.readDocument(this.target._type,this.target._id);e.writeDocument(this.updateRelationship(n,t))}},{key:"updateRelationship",value:function(e,t){return n.updateRelationship(e,this.name,t)}},{key:"dehydrate",value:function(e){return g(g({},e),{},{relationships:g(g({},e.relationships),{},(0,l.default)({},this.name,{data:this.raw}))})}},{key:"raw",get:function(){return this.getRelationship().data}},{key:"data",get:function(){var e=this;return this.getRelationship().data.map((function(t){var n=t._id,r=t._type;return e.get(r,n)})).filter(Boolean)}},{key:"hasMore",get:function(){return this.getRelationship().next}},{key:"count",get:function(){var e=this.getRelationship();return e.meta?e.meta.count:e.data.length}}],[{key:"query",value:function(e,t,n){var r=(0,d.default)(e,"relationships.".concat(n.name,".data"),[]).map((function(e){return e._id}));return new h.QueryDefinition({doctype:n.doctype,ids:r})}}]),n}(y.default),x=w.getHasManyItem=function(e,t,n){return(0,d.default)(e,"relationships.".concat(t,".data"),[]).find((function(e){return e._id==n}))};t.getHasManyItem=x;var C=w.getHasManyItems=function(e,t){return(0,d.default)(e,"relationships.".concat(t,".data"),[])};t.getHasManyItems=C;var k=w.setHasManyItem=function(e,t,n,r){var o,i,a,u,c=w.getHasManyItems(e,t),s=c.findIndex((function(e){return e._id===n})),l=(0,p.default)({},c[s],r),d=(o=c,a=l,u=-1===(i=s)?o.length:i,[].concat((0,f.default)(o.slice(0,u)),[a],(0,f.default)(o.slice(u+1))));return w.updateRelationship(e,t,(function(e){return(0,p.default)({},e,{data:d})}))};t.setHasManyItem=k;var S=w.removeHasManyItem=function(e,t,n){var r=w.getHasManyItems(e,t).filter((function(e){return e._id!==n}));return w.updateRelationship(e,t,(function(){return{data:r}}))};t.removeHasManyItem=S;var _=w.updateHasManyItem=function(e,t,n,r){var o=r(w.getHasManyItem(e,t,n));return w.setHasManyItem(e,t,n,o)};t.updateHasManyItem=_;var A=w.updateRelationship=function(e,t,n){return g(g({},e),{},{relationships:g(g({},e.relationships),{},(0,l.default)({},t,g(g({},e.relationships?e.relationships[t]:{}),n(e.relationships?e.relationships[t]:{}))))})};t.updateRelationship=A;var O=w;t.default=O},function(e,t,n){"use strict";var r=n(89),o=n(27),i=o("%Function.prototype.apply%"),a=o("%Function.prototype.call%"),u=o("%Reflect.apply%",!0)||r.call(a,i),c=o("%Object.getOwnPropertyDescriptor%",!0),s=o("%Object.defineProperty%",!0),l=o("%Math.max%");if(s)try{s({},"a",{value:1})}catch(e){s=null}e.exports=function(e){var t=u(r,a,arguments);if(c&&s){var n=c(t,"length");n.configurable&&s(t,"length",{value:1+l(0,e.length-(arguments.length-1))})}return t};var f=function(){return u(r,i,arguments)};s?s(e.exports,"apply",{value:f}):e.exports.apply=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=s(n(131)),a=s(n(324)),u=s(n(74)),c=s(n(689));function s(e){return e&&e.__esModule?e:{default:e}}var l=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.map={},this.raw={},this.index=[],this.update=function(e,t){var r=n.options,o=r.jss.plugins,i=r.sheet;if("string"==typeof e)o.onUpdate(t,n.get(e),i);else for(var a=0;a<n.index.length;a++)o.onUpdate(e,n.index[a],i)},this.options=t,this.classes=t.classes}return o(e,[{key:"add",value:function(e,t,n){var o=this.options,a=o.parent,s=o.sheet,l=o.jss,f=o.Renderer,d=o.generateClassName;!(n=r({classes:this.classes,parent:a,sheet:s,jss:l,Renderer:f,generateClassName:d},n)).selector&&this.classes[e]&&(n.selector="."+(0,c.default)(this.classes[e])),this.raw[e]=t;var p=(0,i.default)(e,t,n),h=void 0;!n.selector&&p instanceof u.default&&(h=d(p,s),p.selector="."+(0,c.default)(h)),this.register(p,h);var m=void 0===n.index?this.index.length:n.index;return this.index.splice(m,0,p),p}},{key:"get",value:function(e){return this.map[e]}},{key:"remove",value:function(e){this.unregister(e),this.index.splice(this.indexOf(e),1)}},{key:"indexOf",value:function(e){return this.index.indexOf(e)}},{key:"process",value:function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)}},{key:"register",value:function(e,t){this.map[e.key]=e,e instanceof u.default&&(this.map[e.selector]=e,t&&(this.classes[e.key]=t))}},{key:"unregister",value:function(e){delete this.map[e.key],e instanceof u.default&&(delete this.map[e.selector],delete this.classes[e.key])}},{key:"link",value:function(e){for(var t=this.options.sheet.renderer.getUnescapedKeysMap(this.index),n=0;n<e.length;n++){var r=e[n],o=this.options.sheet.renderer.getKey(r);t[o]&&(o=t[o]);var i=this.map[o];i&&(0,a.default)(i,r)}}},{key:"toString",value:function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,o=0;o<this.index.length;o++){var i=this.index[o].toString(e);(i||r)&&(t&&(t+="\n"),t+=i)}return t}}]),e}();t.default=l},function(e,t,n){e.exports=window.ReactDOM||n(438)},function(e,t,n){"use strict";n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return c}));var r,o=n(135),i=n.n(o),a=n(23),u=function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:a.DEFAULT_LANG;if(r=new i.a({phrases:t(o),locale:o}),e&&e!==o)try{var u=t(e);r.extend(u),r.locale(e)}catch(t){console.warn('The dict phrases for "'.concat(e,"\" can't be loaded"))}if(n)try{var c=t(e,n);r.extend(c)}catch(t){console.warn("The context ".concat(n," cannot be loaded for lang ").concat(e))}return r},c=function(e){return r&&r.extend(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isCordova=void 0;t.isCordova=function(){return"undefined"!=typeof window&&void 0!==window.cordova}},function(e,t,n){var r=n(105),o=n(375),i=n(376),a=n(377),u=n(378),c=n(379);function s(e){var t=this.__data__=new r(e);this.size=t.size}s.prototype.clear=o,s.prototype.delete=i,s.prototype.get=a,s.prototype.has=u,s.prototype.set=c,e.exports=s},function(e,t,n){var r=n(370),o=n(371),i=n(372),a=n(373),u=n(374);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=u,e.exports=c},function(e,t,n){var r=n(84);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},function(e,t,n){var r=n(54)(Object,"create");e.exports=r},function(e,t,n){var r=n(392);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},function(e,t,n){var r=n(153),o=n(397),i=n(398);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,e.exports=a},function(e,t){e.exports=function(e,t){return e.has(t)}},function(e,t){e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t){var n=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&n.test(e))&&e>-1&&e%1==0&&e<t}},function(e,t,n){var r=n(405),o=n(65),i=n(158),a=i&&i.isTypedArray,u=a?o(a):r;e.exports=u},function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},function(e,t,n){var r=n(67),o=n(68);e.exports=function(e,t){for(var n=0,i=(t=r(t,e)).length;null!=e&&n<i;)e=e[o(t[n++])];return n&&n==i?e:void 0}},function(e,t,n){var r=n(221),o=n(416),i=n(47);e.exports=function(e){return i(e)?r(e,!0):o(e)}},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.initialize=t.initializeFromDOM=t.getTemplateData=t.initializeFromRemote=t.enable=t.resetFlags=t.listFlags=void 0;var o=r(n(4)),i=r(n(6)),a=r(n(7)),u=r(n(9)),c=r(n(19)),s=new(r(n(431)).default),l=function(){var e=[].slice.call(arguments);return 1===e.length?s.get(e[0]):(s.set(e[0],e[1]),e[1])},f=function(){return s.keys().sort()};t.listFlags=f;var d=function(){f().forEach((function(e){return s.remove(e)}))};t.resetFlags=d;var p=function(e){var t;if(Array.isArray(e)?(console.log("flags.enable: Deprecation warning: prefer to use an object { flag1: true, flag2: true } instead of an array when using flags.enable"),t=e.map((function(e){return[e,!0]}))):"object"==typeof e&&(t=Object.entries(e)),t){var n=!0,r=!1,o=void 0;try{for(var i,a=t[Symbol.iterator]();!(n=(i=a.next()).done);n=!0){var u=(0,c.default)(i.value,2),s=u[0],f=u[1];l(s,f)}}catch(e){r=!0,o=e}finally{try{n||null==a.return||a.return()}finally{if(r)throw o}}}};t.enable=p;var h=function(){var e=(0,u.default)(a.default.mark((function e(t){var n,r;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.query(t.get("io.cozy.settings","flags"));case 2:n=e.sent,r=n.data.attributes,p(r);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();t.initializeFromRemote=h;var m=function(e){if("undefined"==typeof document)return null;var t,n=document.querySelector("[data-cozy]"),r=document.querySelector("[data-cozy-".concat(e,"]"));try{return n?JSON.parse(n.dataset.cozy)[e]:r?(console.warn('Prefer to use [data-cozy] to store template data. <div data-cozy="{{.CozyData}}></div>. "'),JSON.parse(r.dataset["cozy".concat((t=e,t[0].toUpperCase()+t.slice(1)))])):null}catch(e){return null}};t.getTemplateData=m;var y=function(){var e=(0,u.default)(a.default.mark((function e(){var t;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=m("flags")){e.next=3;break}return e.abrupt("return",!1);case 3:return p(t),e.abrupt("return",!0);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();t.initializeFromDOM=y;var v=function(){var e=(0,u.default)(a.default.mark((function e(t){return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,y();case 2:if(0!=e.sent){e.next=6;break}return e.next=6,h(t);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();t.initialize=v;var g=function(){function e(t){(0,o.default)(this,e),this.client=t,this.handleLogin=this.handleLogin.bind(this),this.handleLogout=this.handleLogout.bind(this),this.client.on("login",this.handleLogin),this.client.on("logout",this.handleLogout),this.setupInitializing(),t.isLogged&&this.handleLogin()}var t,n,r;return(0,i.default)(e,[{key:"refresh",value:(r=(0,u.default)(a.default.mark((function e(){return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,l.initializeFromRemote(this.client);case 2:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"setupInitializing",value:function(){var e=this;this.initializing=new Promise((function(t){e.resolveInitializing=t}))}},{key:"handleLogin",value:(n=(0,u.default)(a.default.mark((function e(){return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,l.initialize(this.client);case 2:this.resolveInitializing(),this.client.emit("plugin:flag:login");case 4:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"handleLogout",value:(t=(0,u.default)(a.default.mark((function e(){return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:l.reset(),this.setupInitializing(),this.client.emit("plugin:flag:logout");case 3:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})}]),e}();g.pluginName="flags",l.store=s,l.list=f,l.reset=d,l.enable=p,l.initializeFromRemote=h,l.initializeFromDOM=y,l.initialize=v,l.plugin=g;var b=l;t.default=b},function(e,t,n){"use strict";var r=TypeError,o=Object.getOwnPropertyDescriptor;if(o)try{o({},"")}catch(e){o=null}var i=function(){throw new r},a=o?function(){try{return i}catch(e){try{return o(arguments,"callee").get}catch(e){return i}}}():i,u=n(168)(),c=Object.getPrototypeOf||function(e){return e.__proto__},s=void 0,l="undefined"==typeof Uint8Array?void 0:c(Uint8Array),f={"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"%ArrayBufferPrototype%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer.prototype,"%ArrayIteratorPrototype%":u?c([][Symbol.iterator]()):void 0,"%ArrayPrototype%":Array.prototype,"%ArrayProto_entries%":Array.prototype.entries,"%ArrayProto_forEach%":Array.prototype.forEach,"%ArrayProto_keys%":Array.prototype.keys,"%ArrayProto_values%":Array.prototype.values,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":void 0,"%AsyncFunctionPrototype%":void 0,"%AsyncGenerator%":void 0,"%AsyncGeneratorFunction%":void 0,"%AsyncGeneratorPrototype%":void 0,"%AsyncIteratorPrototype%":s&&u&&Symbol.asyncIterator?s[Symbol.asyncIterator]():void 0,"%Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"%Boolean%":Boolean,"%BooleanPrototype%":Boolean.prototype,"%DataView%":"undefined"==typeof DataView?void 0:DataView,"%DataViewPrototype%":"undefined"==typeof DataView?void 0:DataView.prototype,"%Date%":Date,"%DatePrototype%":Date.prototype,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%ErrorPrototype%":Error.prototype,"%eval%":eval,"%EvalError%":EvalError,"%EvalErrorPrototype%":EvalError.prototype,"%Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"%Float32ArrayPrototype%":"undefined"==typeof Float32Array?void 0:Float32Array.prototype,"%Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"%Float64ArrayPrototype%":"undefined"==typeof Float64Array?void 0:Float64Array.prototype,"%Function%":Function,"%FunctionPrototype%":Function.prototype,"%Generator%":void 0,"%GeneratorFunction%":void 0,"%GeneratorPrototype%":void 0,"%Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"%Int8ArrayPrototype%":"undefined"==typeof Int8Array?void 0:Int8Array.prototype,"%Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"%Int16ArrayPrototype%":"undefined"==typeof Int16Array?void 0:Int8Array.prototype,"%Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"%Int32ArrayPrototype%":"undefined"==typeof Int32Array?void 0:Int32Array.prototype,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":u?c(c([][Symbol.iterator]())):void 0,"%JSON%":"object"==typeof JSON?JSON:void 0,"%JSONParse%":"object"==typeof JSON?JSON.parse:void 0,"%Map%":"undefined"==typeof Map?void 0:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&u?c((new Map)[Symbol.iterator]()):void 0,"%MapPrototype%":"undefined"==typeof Map?void 0:Map.prototype,"%Math%":Math,"%Number%":Number,"%NumberPrototype%":Number.prototype,"%Object%":Object,"%ObjectPrototype%":Object.prototype,"%ObjProto_toString%":Object.prototype.toString,"%ObjProto_valueOf%":Object.prototype.valueOf,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?void 0:Promise,"%PromisePrototype%":"undefined"==typeof Promise?void 0:Promise.prototype,"%PromiseProto_then%":"undefined"==typeof Promise?void 0:Promise.prototype.then,"%Promise_all%":"undefined"==typeof Promise?void 0:Promise.all,"%Promise_reject%":"undefined"==typeof Promise?void 0:Promise.reject,"%Promise_resolve%":"undefined"==typeof Promise?void 0:Promise.resolve,"%Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"%RangeError%":RangeError,"%RangeErrorPrototype%":RangeError.prototype,"%ReferenceError%":ReferenceError,"%ReferenceErrorPrototype%":ReferenceError.prototype,"%Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"%RegExp%":RegExp,"%RegExpPrototype%":RegExp.prototype,"%Set%":"undefined"==typeof Set?void 0:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&u?c((new Set)[Symbol.iterator]()):void 0,"%SetPrototype%":"undefined"==typeof Set?void 0:Set.prototype,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"%SharedArrayBufferPrototype%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer.prototype,"%String%":String,"%StringIteratorPrototype%":u?c(""[Symbol.iterator]()):void 0,"%StringPrototype%":String.prototype,"%Symbol%":u?Symbol:void 0,"%SymbolPrototype%":u?Symbol.prototype:void 0,"%SyntaxError%":SyntaxError,"%SyntaxErrorPrototype%":SyntaxError.prototype,"%ThrowTypeError%":a,"%TypedArray%":l,"%TypedArrayPrototype%":l?l.prototype:void 0,"%TypeError%":r,"%TypeErrorPrototype%":r.prototype,"%Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"%Uint8ArrayPrototype%":"undefined"==typeof Uint8Array?void 0:Uint8Array.prototype,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"%Uint8ClampedArrayPrototype%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray.prototype,"%Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"%Uint16ArrayPrototype%":"undefined"==typeof Uint16Array?void 0:Uint16Array.prototype,"%Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"%Uint32ArrayPrototype%":"undefined"==typeof Uint32Array?void 0:Uint32Array.prototype,"%URIError%":URIError,"%URIErrorPrototype%":URIError.prototype,"%WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"%WeakMapPrototype%":"undefined"==typeof WeakMap?void 0:WeakMap.prototype,"%WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet,"%WeakSetPrototype%":"undefined"==typeof WeakSet?void 0:WeakSet.prototype},d=n(89).call(Function.call,String.prototype.replace),p=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,h=/\\(\\)?/g,m=function(e){var t=[];return d(e,p,(function(e,n,r,o){t[t.length]=r?d(o,h,"$1"):n||e})),t},y=function(e,t){if(!(e in f))throw new SyntaxError("intrinsic "+e+" does not exist!");if(void 0===f[e]&&!t)throw new r("intrinsic "+e+" exists, but is not available. Please file an issue!");return f[e]};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new TypeError("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new TypeError('"allowMissing" argument must be a boolean');for(var n=m(e),i=y("%"+(n.length>0?n[0]:"")+"%",t),a=1;a<n.length;a+=1)if(null!=i)if(o&&a+1>=n.length){var u=o(i,n[a]);if(!t&&!(n[a]in i))throw new r("base intrinsic for "+e+" exists, but the property is not available.");i=u?u.get||u.value:i[n[a]]}else i=i[n[a]];return i}},function(e,t,n){var r=n(93),o=n(94);e.exports={distanceInWords:r(),format:o()}},function(e,t,n){var r=n(95),o=n(96);e.exports={distanceInWords:r(),format:o()}},function(e,t,n){var r=n(111),o=n(473);e.exports=function e(t,n,i,a,u){var c=-1,s=t.length;for(i||(i=o),u||(u=[]);++c<s;){var l=t[c];n>0&&i(l)?n>1?e(l,n-1,i,a,u):r(u,l):a||(u[u.length]=l)}return u}},function(e,t,n){var r=n(47),o=n(40);e.exports=function(e){return o(e)&&r(e)}},function(e,t){e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},function(e,t,n){var r=n(172);e.exports=function(e){return e&&e.length?r(e):[]}},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"HasManyFiles",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"HasMany",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"HasOne",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"HasOneInPlace",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"HasManyInPlace",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"HasManyTriggers",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"Association",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"resolveClass",{enumerable:!0,get:function(){return f.resolveClass}}),Object.defineProperty(t,"create",{enumerable:!0,get:function(){return f.create}}),Object.defineProperty(t,"isReferencedBy",{enumerable:!0,get:function(){return f.isReferencedBy}}),Object.defineProperty(t,"isReferencedById",{enumerable:!0,get:function(){return f.isReferencedById}}),Object.defineProperty(t,"getReferencedBy",{enumerable:!0,get:function(){return f.getReferencedBy}}),Object.defineProperty(t,"getReferencedById",{enumerable:!0,get:function(){return f.getReferencedById}});var o=r(n(277)),i=r(n(98)),a=r(n(291)),u=r(n(292)),c=r(n(293)),s=r(n(568)),l=r(n(61)),f=n(191)},function(e,t,n){var r=n(563),o=n(566)((function(e,t,n){r(e,t,n)}));e.exports=o},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(0),i=r(n(196)),a=(r(n(41)),function(){return(0,o.useContext)(i.default).client});t.default=a},function(e,t,n){"use strict";n.r(t);var r=n(316),o=n.n(r);n.d(t,"componentPropType",(function(){return o.a}));var i=n(317),a=n.n(i);n.d(t,"chainPropTypes",(function(){return a.a}));var u=n(318),c=n.n(u);n.d(t,"exactProp",(function(){return c.a}));var s=n(319),l=n.n(s);n.d(t,"getDisplayName",(function(){return l.a}));var f=n(320),d=n.n(f);n.d(t,"ponyfillGlobal",(function(){return d.a}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!Array.isArray(e))return e;var n="";if(Array.isArray(e[0]))for(var o=0;o<e.length&&"!important"!==e[o];o++)n&&(n+=", "),n+=r(e[o]," ");else n=r(e,", ");t||"!important"!==e[e.length-1]||(n+=" !important");return n};var r=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"unnamed",t=arguments[1],n=arguments[2],a=n.jss,u=(0,i.default)(t),c=a.plugins.onCreateRule(e,u,n);if(c)return c;"@"===e[0]&&(0,r.default)(!1,"[JSS] Unknown at-rule %s",e);return new o.default(e,u,n)};var r=a(n(73)),o=a(n(74)),i=a(n(688));function a(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";n.r(t),n.d(t,"isBrowser",(function(){return o}));var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o="object"===("undefined"==typeof window?"undefined":r(window))&&"object"===("undefined"==typeof document?"undefined":r(document))&&9===document.nodeType;t.default=o},function(e,t,n){e.exports=function(){"use strict";var e=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var n=Object.prototype.toString.call(e);return"[object RegExp]"===n||"[object Date]"===n||function(e){return e.$$typeof===t}(e)}(e)},t="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(e,t){return!1!==t.clone&&t.isMergeableObject(e)?a((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function r(e,t,r){return e.concat(t).map((function(e){return n(e,r)}))}function o(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function i(e,t,r){var i={};return r.isMergeableObject(e)&&o(e).forEach((function(t){i[t]=n(e[t],r)})),o(t).forEach((function(o){r.isMergeableObject(t[o])&&e[o]?i[o]=function(e,t){if(!t.customMerge)return a;var n=t.customMerge(e);return"function"==typeof n?n:a}(o,r)(e[o],t[o],r):i[o]=n(t[o],r)})),i}function a(t,o,a){(a=a||{}).arrayMerge=a.arrayMerge||r,a.isMergeableObject=a.isMergeableObject||e;var u=Array.isArray(o);return u===Array.isArray(t)?u?a.arrayMerge(t,o,a):i(t,o,a):n(o,a)}return a.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return a(e,n,t)}),{})},a}()},function(e,t,n){"use strict";n.r(t),function(e,r){var o,i=n(330);o="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:r;var a=Object(i.a)(o);t.default=a}.call(this,n(33),n(430)(e))},function(e,t,n){"use strict";var r=n(445),o=n(37),i=n(167),a=n(447),u=function(e){o(!1,e)},c=String.prototype.replace,s=String.prototype.split,l=function(e){var t=e%100,n=t%10;return 11!==t&&1===n?0:2<=n&&n<=4&&!(t>=12&&t<=14)?1:2},f={pluralTypes:{arabic:function(e){if(e<3)return e;var t=e%100;return t>=3&&t<=10?3:t>=11?4:5},bosnian_serbian:l,chinese:function(){return 0},croatian:l,french:function(e){return e>1?1:0},german:function(e){return 1!==e?1:0},russian:l,lithuanian:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=9&&(e%100<11||e%100>19)?1:2},czech:function(e){return 1===e?0:e>=2&&e<=4?1:2},polish:function(e){if(1===e)return 0;var t=e%10;return 2<=t&&t<=4&&(e%100<10||e%100>=20)?1:2},icelandic:function(e){return e%10!=1||e%100==11?1:0},slovenian:function(e){var t=e%100;return 1===t?0:2===t?1:3===t||4===t?2:3}},pluralTypeToLanguages:{arabic:["ar"],bosnian_serbian:["bs-Latn-BA","bs-Cyrl-BA","srl-RS","sr-RS"],chinese:["id","id-ID","ja","ko","ko-KR","lo","ms","th","th-TH","zh"],croatian:["hr","hr-HR"],german:["fa","da","de","en","es","fi","el","he","hi-IN","hu","hu-HU","it","nl","no","pt","sv","tr"],french:["fr","tl","pt-br"],russian:["ru","ru-RU"],lithuanian:["lt"],czech:["cs","cs-CZ","sk"],polish:["pl"],icelandic:["is"],slovenian:["sl-SL"]}};function d(e,t){var n,o,i=(n=e.pluralTypeToLanguages,o={},r(n,(function(e,t){r(e,(function(e){o[e]=t}))})),o);return i[t]||i[s.call(t,/-/,1)[0]]||i.en}function p(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var h=/%\{(.*?)\}/g;function m(e,t,n,r,o){if("string"!=typeof e)throw new TypeError("Polyglot.transformPhrase expects argument #1 to be string");if(null==t)return e;var u=e,l=r||h,p=o||f,m="number"==typeof t?{smart_count:t}:t;if(null!=m.smart_count&&u){var y=s.call(u,"||||");u=a(y[function(e,t,n){return e.pluralTypes[d(e,t)](n)}(p,n||"en",m.smart_count)]||y[0])}return u=c.call(u,l,(function(e,t){return i(m,t)&&null!=m[t]?m[t]:e}))}function y(e){var t=e||{};this.phrases={},this.extend(t.phrases||{}),this.currentLocale=t.locale||"en";var n=t.allowMissing?m:null;this.onMissingKey="function"==typeof t.onMissingKey?t.onMissingKey:n,this.warn=t.warn||u,this.tokenRegex=function(e){var t=e&&e.prefix||"%{",n=e&&e.suffix||"}";if("||||"===t||"||||"===n)throw new RangeError('"||||" token is reserved for pluralization');return new RegExp(p(t)+"(.*?)"+p(n),"g")}(t.interpolation),this.pluralRules=t.pluralRules||f}y.prototype.locale=function(e){return e&&(this.currentLocale=e),this.currentLocale},y.prototype.extend=function(e,t){r(e,(function(e,n){var r=t?t+"."+n:n;"object"==typeof e?this.extend(e,r):this.phrases[r]=e}),this)},y.prototype.unset=function(e,t){"string"==typeof e?delete this.phrases[e]:r(e,(function(e,n){var r=t?t+"."+n:n;"object"==typeof e?this.unset(e,r):delete this.phrases[r]}),this)},y.prototype.clear=function(){this.phrases={}},y.prototype.replace=function(e){this.clear(),this.extend(e)},y.prototype.t=function(e,t){var n,r,o=null==t?{}:t;if("string"==typeof this.phrases[e])n=this.phrases[e];else if("string"==typeof o._)n=o._;else if(this.onMissingKey){r=(0,this.onMissingKey)(e,o,this.currentLocale,this.tokenRegex,this.pluralRules)}else this.warn('Missing translation for key: "'+e+'"'),r=e;return"string"==typeof n&&(r=m(n,o,this.currentLocale,this.tokenRegex,this.pluralRules)),r},y.prototype.has=function(e){return i(this.phrases,e)},y.transformPhrase=function(e,t,n){return m(e,t,n)},e.exports=y},function(e,t){e.exports={black:"var(--black)",white:"var(--white)",paleGrey:"var(--paleGrey)",silver:"var(--silver)",coolGrey:"var(--coolGrey)",slateGrey:"var(--slateGrey)",charcoalGrey:"var(--charcoalGrey)",overlay:"var(--overlay)",primaryColor:"var(--primaryColor)",primaryColorLight:"var(--primaryColorLight)",primaryContrastTextColor:"var(--primaryContrastTextColor)",success:"var(--successColor)",warning:"var(--warningColor)",error:"var(--errorColor)",info:"var(--infoColor)",errorBackground:"var(--errorBackground)",primaryBackgroundLight:"var(--primaryBackgroundLight)",neutralBackground:"var(--neutralBackground)",zircon:"#F5FAFF",frenchPass:"#C2DCFF",dodgerBlue:"#297EF2",scienceBlue:"#0B61D6",puertoRico:"#0DCBCF",grannyApple:"#DEF7E7",emerald:"#35CE68",malachite:"#08b442",seafoamGreen:"#3DA67E",brightSun:"#FFC644",texasRose:"#FFAE5F",chablis:"#FFF2F2",yourPink:"#FDCBCB",fuchsia:"#FC4C83",pomegranate:"#F52D2D",monza:"#DD0505",portage:"#9169F2",azure:"#1FA8F1",melon:"#FD7461",blazeOrange:"#FC6D00",mango:"#FF962F",pumpkinOrange:"#FF7F1B",lavender:"#C2ADF4",darkPeriwinkle:"#6984CE",purpley:"#7F6BEE",lightishPurple:"#B449E7",barney:"#922BC2",weirdGreen:"#40DE8E"}},function(e,t,n){var r=n(671),o=n(34);e.exports=function(e,t,n){var i=!0,a=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return o(n)&&(i="leading"in n?!!n.leading:i,a="trailing"in n?!!n.trailing:a),r(e,t,{leading:i,maxWait:t,trailing:a})}},function(e,t,n){"use strict";var r=n(78),o=n.n(r),i=n(204),a=n.n(i),u=window.minilog||a.a,c=u("cozy-bar");o()("bar.debug")||u.suggest.deny("cozy-bar","info"),t.a=c},function(e,t,n){"use strict";var r=n(7),o=n.n(r),i=n(9),a=n.n(i),u=n(327),c=n.n(u),s=n(328),l={},f={gif:"image/gif",ico:"image/vnd.microsoft.icon",jpeg:"image/jpeg",jpg:"image/jpeg",png:"image/png",svg:"image/svg+xml"};function d(){return(d=a()(o.a.mark((function e(t){var n,r,i,a,u,c,s,d=arguments;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=d.length>1&&void 0!==d[1]?d[1]:{},!((r=!(d.length>2&&void 0!==d[2])||d[2])&&l.icons&&l.icons[i])){e.next=4;break}return e.abrupt("return",l.icons[i]);case 4:if(i=n.links&&n.links.icon){e.next=7;break}return e.abrupt("return","");case 7:return e.prev=7,e.next=10,t(i);case 10:if((u=e.sent).ok){e.next=13;break}throw new Error("Error while fetching icon ".concat(u.statusText,": ").concat(i));case 13:return e.next=15,u.blob();case 15:a=e.sent,e.next=21;break;case 18:throw e.prev=18,e.t0=e.catch(7),e.t0;case 21:if(a.type){e.next=30;break}if(n.icon){e.next=24;break}throw new Error("".concat(n.name,": Cannot detect mime type for icon ").concat(i));case 24:if(c=n.icon.split(".").pop()){e.next=27;break}throw new Error("".concat(n.name,": Unable to detect icon mime type from extension (").concat(n.icon,")"));case 27:if(f[c]){e.next=29;break}throw new Error("".concat(n.name,": 'Unexpected icon extension (").concat(n.icon,")"));case 29:a=new Blob([a],{type:f[c]});case 30:if(!a.type.match(/^image\/.*$/)){e.next=34;break}return s=URL.createObjectURL(a),r&&(l.icons=l.icons||{},l.icons[i]=s),e.abrupt("return",s);case 34:throw new Error("".concat(n.name,": icon ").concat(i," is not an image."));case 35:case"end":return e.stop()}}),e,null,[[7,18]])})))).apply(this,arguments)}var p=n(329),h=n.n(p);var m=function(e){var t=e.getApp,n=e.onCreate,r=e.onDelete,i=e.cozyClient,u=function(){var e=a()(o.a.mark((function e(r){var i;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t(r.slug);case 3:i=e.sent,e.next=9;break;case 6:throw e.prev=6,e.t0=e.catch(0),new Error("Cannot fetch app ".concat(r.slug,": ").concat(e.t0.message));case 9:"function"==typeof n&&n(i);case 10:case"end":return e.stop()}}),e,null,[[0,6]])})));return function(t){return e.apply(this,arguments)}}();try{var c=new h.a({client:i});c.subscribe("created","io.cozy.apps",u),c.subscribe("deleted","io.cozy.apps",(function(e){"function"==typeof r&&r(e)}))}catch(e){console.warn("Cannot initialize realtime in Cozy-bar: ".concat(e.message))}},y=n(4),v=n.n(y),g=n(8),b=n.n(g),w=n(10),x=n.n(w),C=n(5),k=n.n(C),S=n(35),_=n.n(S);function A(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=k()(e);if(t){var o=k()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return x()(this,n)}}var O=function(e){b()(n,e);var t=A(n);function n(e){var r;return v()(this,n),(r=t.call(this)).name="Forbidden",r.status=403,r.message=e||"The application does not have permission to access this resource.",r.stack=(new Error).stack,r}return n}(_()(Error)),E=function(e){b()(n,e);var t=A(n);function n(e){var r;return v()(this,n),(r=t.call(this)).name="ServerError",r.status=500,r.message=e||"A server error occurred",r.stack=(new Error).stack,r}return n}(_()(Error)),B=function(e){b()(n,e);var t=A(n);function n(e){var r;return v()(this,n),(r=t.call(this)).name="NotFound",r.status=404,r.message=e||"The ressource was not found",r.stack=(new Error).stack,r}return n}(_()(Error)),j=function(e){b()(n,e);var t=A(n);function n(e){var r;return v()(this,n),(r=t.call(this)).name="MethodNotAllowed",r.status=405,r.message=e||"Method not allowed",r.stack=(new Error).stack,r}return n}(_()(Error)),P=function(e){b()(n,e);var t=A(n);function n(e){var r;return v()(this,n),(r=t.call(this)).name="UnavailableStack",r.message=e||"The stack is temporarily unavailable",r.stack=(new Error).stack,r}return n}(_()(Error)),T=function(e){b()(n,e);var t=A(n);function n(e){var r;return v()(this,n),(r=t.call(this)).name="UnauthorizedStack",r.status=401,r.message=e||"The app is not allowed to access to the requested resource",r.stack=(new Error).stack,r}return n}(_()(Error)),z=function(e){b()(n,e);var t=A(n);function n(e){var r;return v()(this,n),(r=t.call(this)).name="UnavailableSettings",r.message=e||"The 'Settings' application isn't available or installed in the stack",r.stack=(new Error).stack,r}return n}(_()(Error)),I=n(24);n.d(t,"a",(function(){return H}));var D,R,F,M,N={401:T,403:O,404:B,405:j,500:E},L=function(){return D.getStackClient()},U=function(){return new URL(L().uri)},$=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=r.headers=r.headers||{};return o.Accept="application/json","GET"!==e&&"HEAD"!==e&&void 0!==n&&(o["Content-Type"]||(o["Content-Type"]="application/json",n=JSON.stringify(n))),L().fetch(e,t,n,r).then((function(e){if("function"==typeof N[e.status])throw new N[e.status];if(!e.headers.get("content-type").includes("json"))throw new Error("Server response not in JSON");return e.json()}))},G=function(e){if(!e)throw new Error("Missing slug");return $("GET","/apps/".concat(e)).then((function(e){if(e.error)throw new Error(e.error);return e.data}))},q=Math.pow(10,12),J=function(e){return L().fetch("GET",e)},H=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=D?D.constructor:{},r=null!==t?t:n;if(!r.version)return!1;var o=c()(r.version,e);return o>=0};t.b={get:{app:G,apps:function(){return $("GET","/apps/").then((function(e){if(e.error)throw new Error(e.error);return e.data}))},context:(R=function(){return $("GET","/settings/context")},F={},M=void 0,a()(o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0!==M){e.next=10;break}return e.prev=1,e.next=4,R();case 4:M=e.sent,e.next=10;break;case 7:e.prev=7,e.t0=e.catch(1),t=e.t0,M=["NotFoundException","NotFound","FetchError"].includes(t.name)&&t.status&&404===t.status?F:void 0;case 10:return e.abrupt("return",M);case 11:case"end":return e.stop()}var t}),e,null,[[1,7]])})))),storageData:function(){return $("GET","/settings/disk-usage").then((function(e){var t=parseInt(e.data.attributes.used,10);return{usage:t,quota:parseInt(e.data.attributes.quota,10)||Math.max(q,10*t),isLimited:e.data.attributes.is_limited}})).catch((function(){throw new P}))},iconProps:function(){var e={fetchIcon:function(e){return function(e){return d.apply(this,arguments)}(J,e,!0)}},t={domain:U().host,secure:"https:"===U().protocol};return Object(I.isMobileApp)()?e:t},cozyURL:function(){return U().origin},intents:function(){return new s.Intents({client:D})},settingsAppURL:function(){return G("settings").then((function(e){if(!e)throw new z;return e.links.related}))}},updateAccessToken:function(){throw new Error("updateAccessToken should not be used with a cozy-client instance initialization")},cozyFetchJSON:function(e,t,n,r){return $(t,n,r).then((function(e){var t=Object.assign({},e.data);return t.id&&(t._id=t.id),t}))},logout:function(){return L().fetch("DELETE","/auth/login").then((function(e){if(401===e.status)throw new T;return 204===e.status&&window.location.reload(),!0})).catch((function(){throw new P}))},init:function(e){var t=e.cozyClient,n=e.onCreate,r=e.onDelete;(D=t).isLogged&&m({getApp:G,onCreate:n,onDelete:r,cozyClient:D})}}},function(e){e.exports=JSON.parse('{"desktop":{"icon":"icon-laptop.svg","link":{"type":"external"}},"mobile":{"icon":"icon-phone.svg","link":{"type":"external"}},"support":{"icon":"icon-question-mark.svg","link":{"type":"external"}}}')},function(e,t,n){"use strict";e.exports=function(e,t,n,r,o,i,a,u){if(!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[n,r,o,i,a,u],l=0;(c=new Error(t.replace(/%s/g,(function(){return s[l++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}},function(e,t,n){var r;
6
+ */!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)&&r.length){var a=o.apply(null,r);a&&e.push(a)}else if("object"===i)for(var u in r)n.call(r,u)&&r[u]&&e.push(u)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},function(e,t,n){(t=e.exports=n(70)(!0)).push([e.i,"html{--white:#fff;--paleGrey:#f5f6f7;--silver:#d6d8da;--coolGrey:#95999d;--slateGrey:#5d6165;--charcoalGrey:#32363f;--black:#000;--overlay:rgba(50,54,63,.5);--zircon:#f5faff;--dodgerBlue:#297ef2;--scienceBlue:#0b61d6;--weirdGreen:#40de8e;--emerald:#35ce68;--malachite:#08b442;--mango:#ff962f;--chablis:#fff2f2;--yourPink:#fdcbcb;--fuchsia:#fc4c83;--pomegranate:#f52d2d;--monza:#dd0505}html,.cozy-ui-bar-CozyTheme--normal--GgDII{--primaryColor:#297ef2;--primaryColorDark:#0b61d6;--primaryColorLight:#5c9df5;--primaryColorLightest:#9fc4fb;--secondaryColor:#fd7461;--secondaryColorDark:#e3503b;--secondaryColorLight:#ffdeda;--secondaryColorLightest:#fecdc6;--primaryBackgroundLight:#f5faff;--paperBackgroundColor:#fff;--defaultBackgroundColor:#f5f6f7;--primaryTextColor:#32363f;--secondaryTextColor:#95999d;--primaryContrastTextColor:#fff;--secondaryContrastTextColor:#fff;--dividerColor:rgba(29,33,42,.122);--successColor:#35ce68;--warningColor:#ff962f;--errorColor:#f52d2d;--errorColorDark:#a00808;--errorColorLight:#fcbfbf;--errorColorLightest:#fee6e6;--errorBackground:#fff2f2;--spinnerColor:var(--primaryColor);--linkColor:var(--primaryColor);--linkTextDecoration:none;--linkColorActive:var(--primaryColorDark);--invertedTabsActiveTextColor:var(--primaryContrastTextColor);--invertedTabsInactiveTextColor:var(--primaryContrastTextColor);--invertedTabsIndicatorColor:var(--primaryContrastTextColor);--invertedTabsBackgroundColor:var(--primaryColor);--regularButtonPrimaryColor:var(--primaryColor);--regularButtonSecondaryColor:var(--primaryColor);--regularButtonActiveColor:var(--primaryColorDark);--regularButtonConstrastColor:var(--primaryContrastTextColor);--secondaryButtonPrimaryColor:#fff;--secondaryButtonSecondaryColor:var(--silver);--secondaryButtonActiveColor:var(--silver);--secondaryButtonContrastColor:var(--black);--dividerColor2:var(--coolGrey);--iconColor:currentColor;--textIconColor:var(--charcoalGrey);--actionMenuIconColor:var(--slateGrey);--neutralBackground:var(--paleGrey);--buttonTextTransform:uppercase;--buttonBorderRadius:.125rem;--navTextColor:var(--slateGrey);--navTextActiveColor:var(--slateGrey);--navTextHoverColor:var(--charcoalGrey);--alertErrorColor:#fff;--alertErrorBackgroundColor:var(--errorColor);--alertSuccessColor:#fff;--alertSuccessBackgroundColor:var(--successColor);--alertInfoColor:#fff;--alertInfoBackgroundColor:var(--slateGrey)}@-webkit-keyframes cozy-ui-bar-spin--1NeSh{from{transform:rotate(0deg)}to{transform:rotate(359deg)}}@keyframes cozy-ui-bar-spin--1NeSh{from{transform:rotate(0deg)}to{transform:rotate(359deg)}}@-webkit-keyframes cozy-ui-bar-shake--8T61M{10%,90%{transform:translate3d(-1px,0,0)}20%,80%{transform:translate3d(2px,0,0)}30%,50%,70%{transform:translate3d(-4px,0,0)}40%,60%{transform:translate3d(4px,0,0)}}@keyframes cozy-ui-bar-shake--8T61M{10%,90%{transform:translate3d(-1px,0,0)}20%,80%{transform:translate3d(2px,0,0)}30%,50%,70%{transform:translate3d(-4px,0,0)}40%,60%{transform:translate3d(4px,0,0)}}.u-visuallyhidden{position:absolute!important;border:0!important;width:.063rem!important;height:.063rem!important;overflow:hidden!important;padding:0!important;white-space:nowrap!important;clip:rect(.063rem,.063rem,.063rem,.063rem)!important;-webkit-clip-path:inset(50%)!important;clip-path:inset(50%)!important}.u-hide{display:none!important;visibility:hidden!important}.u-dn{display:none}.u-di{display:inline}.u-db{display:block}.u-dib{display:inline-block}.u-dit{display:inline-table}.u-dt{display:table}.u-dtc{display:table-cell}.u-dt-row{display:table-row}.u-dt-row-group{display:table-row-group}.u-dt-column{display:table-column}.u-dt-column-group{display:table-column-group}.u-black{color:var(--black)!important}.u-charcoalGrey{color:var(--charcoalGrey)!important}.u-coolGrey{color:var(--coolGrey)!important}.u-silver{color:var(--silver)!important}.u-slateGrey{color:var(--slateGrey)!important}.u-lightishPurple{color:#b449e7!important}.u-dodgerBlue{color:#297ef2!important}.u-overlay{color:var(--overlay)!important}.u-paleGrey{color:var(--paleGrey)!important}.u-monza{color:#dd0505!important}.u-pomegranate{color:#f52d2d!important}.u-primaryBackgroundLight{color:var(--primaryBackgroundLight)!important}.u-primaryColor{color:var(--primaryColor)!important}.u-primaryColorLight{color:var(--primaryColorLight)!important}.u-primaryContrastTextColor{color:var(--primaryContrastTextColor)!important}.u-error{color:var(--errorColor)!important}.u-errorBackground{color:var(--errorBackground)!important}.u-success{color:var(--successColor)!important}.u-warning{color:var(--warningColor)!important}.u-info{color:var(--infoColor)!important}.u-weirdGreen{color:#40de8e!important}.u-white{color:var(--white)!important}.u-breakword{word-break:break-word}.u-ellipsis{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.u-spacellipsis{overflow:hidden;text-overflow:ellipsis;white-space:break-spaces}.u-midellipsis{display:flex;flex-wrap:nowrap}.u-midellipsis>*{display:inline-block;max-width:50%;overflow:hidden;white-space:pre}.u-midellipsis>:first-child{text-overflow:ellipsis}.u-midellipsis>:last-child{text-overflow:clip;direction:rtl}@supports(text-overflow:'[...]'){.u-midellipsis>:first-child{text-overflow:'[...]'}}.u-link:link{color:var(--linkColor)!important;-webkit-text-decoration:var(--linkTextDecoration)!important;text-decoration:var(--linkTextDecoration)!important}.u-link:visited,.u-link:active,.u-link:hover,.u-link:focus{color:var(--linkColorActive)!important}.u-lh-tiny{line-height:1!important}.u-lh-xsmall{line-height:1.1!important}.u-lh-small{line-height:1.2!important}.u-lh-medium{line-height:1.3!important}.u-lh-large{line-height:1.4!important}.u-lh-xlarge{line-height:1.5!important}.u-fz-tiny{font-size:.75rem!important;line-height:1.3!important}.u-fz-xsmall{font-size:.813rem!important;line-height:1.4!important}.u-fz-small{font-size:.875rem!important;line-height:1.4!important}.u-fz-medium{font-size:1rem!important;line-height:1.5!important}.u-fz-large{font-size:1.125rem!important;line-height:1.5!important}.u-ta-left{text-align:left!important}.u-ta-right{text-align:right!important}.u-ta-center{text-align:center!important}.u-ta-justify{text-align:justify!important}.u-fs-normal{font-style:normal!important}.u-fs-italic{font-style:italic!important}.u-fw-normal{font-weight:400}.u-fw-bold{font-weight:700}html{--zIndex-below:-1;--zIndex-app:0;--zIndex-low:1;--zIndex-alertMobile:10;--zIndex-nav:20;--zIndex-bar:21;--zIndex-selection:30;--zIndex-popover:40;--zIndex-overlay:50;--zIndex-fileActionMenu:60;--zIndex-drawer:60;--zIndex-modal:70;--zindex-alert:80}html{--primaryFont:Lato,sans-serif}body,body button,body input,body optgroup,body select,body textarea{font-family:var(--primaryFont)}html{font-size:100%}body{font:100%/1.5;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}html{height:100%}body{display:flex;flex-direction:column;align-items:stretch;width:100vw;height:100%;margin:0}[role=application]{display:flex;height:inherit;flex:1 1 100%;overflow-x:hidden;overflow-y:auto}html,body{background-color:var(--white);color:var(--black)}[data-input=radio],[data-input=checkbox]{display:flex}[data-input=radio] input[type=radio],[data-input=checkbox] input[type=radio],[data-input=radio] input[type=checkbox],[data-input=checkbox] input[type=checkbox]{display:none!important;visibility:hidden!important}[data-input=radio] label,[data-input=checkbox] label{position:relative;display:inline-block;width:1rem;height:1rem;padding-left:1.4rem;cursor:pointer}[data-input=radio] label:before,[data-input=checkbox] label:before,[data-input=radio] label:after,[data-input=checkbox] label:after{content:'';position:absolute;left:0;top:0;box-sizing:border-box;width:1rem;height:1rem}[data-input=radio] label:before,[data-input=checkbox] label:before{transition:box-shadow .35s cubic-bezier(0,.89,.44,1)}[data-input=radio] label:after,[data-input=checkbox] label:after{transition-duration:.2s;transition-property:opacity,transform}[data-input=radio] label:before{border-radius:50%;border:.125rem solid var(--coolGrey);box-shadow:inset 0 0 0 1rem transparent}[data-input=radio] input[type=radio]:checked+label:before{box-shadow:inset 0 0 0 .188rem var(--paleGrey),inset 0 0 0 1rem var(--dodgerBlue)}[data-input=checkbox] label:before,[data-input=checkbox] label:after{border-radius:.125rem}[data-input=checkbox] label:before{background-color:var(--white);box-shadow:inset 0 0 0 .125rem var(--silver)}[data-input=checkbox] label:before:hover{box-shadow:inset 0 0 0 .125rem var(--dodgerBlue)}[data-input=checkbox] label:after{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMjAnIGhlaWdodD0nMjAnIHZpZXdCb3g9JzAgMCAyMCAyMCcgeG1sbnM9J2h0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnJz4KICAgIDxwYXRoIGQ9J00zIDEwLjAxOWw0LjUyMyA0LjUyMyA5LjU0MS05LjU0MScgc3Ryb2tlPScjRkZGJyBzdHJva2Utd2lkdGg9JzInIGZpbGw9Im5vbmUiLz4KPC9zdmc+Cg==);background-size:contain}[data-input=checkbox][aria-checked=mixed] label:after{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgdmlld0JveD0iMCAwIDIwIDIwIj48cGF0aCBkPSJNMy40OTcgMTBoMTMuMDA2IiBzdHJva2U9IiNGRkYiIHN0cm9rZS13aWR0aD0iMiIgLz48L3N2Zz4K);background-size:contain}[data-input=checkbox] input[type=checkbox]:checked+label:before{box-shadow:inset 0 0 0 1rem var(--dodgerBlue)}[data-input=checkbox] input[type=checkbox]:checked+label:after{opacity:1;transform:scale(1)}[data-input=checkbox] input[type=checkbox]:not(:checked)+label:after{opacity:0;transform:scale(0)}.cozy-ui-bar-c-modal--2ICub{display:flex;flex-flow:column nowrap;align-items:stretch}.cozy-ui-bar-c-modal-content--KVDws{background:linear-gradient(#fff 30%,rgba(255,255,255,0)),linear-gradient(rgba(255,255,255,0),#fff 70%) 0 100%,linear-gradient(rgba(214,216,218,.25) 0,rgba(214,216,218,.25) 25%,rgba(255,255,255,0) 26%,rgba(255,255,255,0) 100%),linear-gradient(rgba(255,255,255,0) 0,rgba(255,255,255,0) 74%,rgba(214,216,218,.25) 75%,rgba(214,216,218,.25) 100%) 0 100%;background-repeat:no-repeat;background-color:var(--white);background-size:100% 2rem,100% 2rem,100% .5rem,100% .5rem;background-attachment:local,local,scroll,scroll;background-clip:padding-box;overflow:auto;-webkit-overflow-scrolling:touch}.cozy-ui-bar-c-modal-header--XED91,.cozy-ui-bar-c-modal-header--branded--uEj-8,.cozy-ui-bar-c-modal-footer--14fzp{flex:0 0 auto}.cozy-ui-bar-c-modal-container--30qmf{position:relative;z-index:70}.cozy-ui-bar-c-modal-wrapper--17kzj{position:fixed;top:0;left:0;display:flex;flex-direction:column;align-items:center;box-sizing:border-box;width:100vw;height:100%;overflow-y:auto;padding:3rem}.cozy-ui-bar-c-modal--2ICub{position:relative;border-radius:.5rem;max-height:100%;max-width:100%;background-color:var(--white);color:var(--charcoalGrey)}.cozy-ui-bar-c-modal--xsmall--35998{width:24rem}.cozy-ui-bar-c-modal--small--3G05m{width:34rem}.cozy-ui-bar-c-modal--medium--39Q8p{width:36rem}.cozy-ui-bar-c-modal--large--NVdKg{width:40rem}.cozy-ui-bar-c-modal--xlarge--2JDmw{width:50rem}.cozy-ui-bar-c-modal--xxlarge--2GW6J{width:60rem}.cozy-ui-bar-c-modal-header--XED91,.cozy-ui-bar-c-modal-header--branded--uEj-8{margin:0 0 1rem;padding:1.687rem 3rem 0 2rem;overflow:visible;min-height:2.5rem}.cozy-ui-bar-c-modal-header--XED91 h2,.cozy-ui-bar-c-modal-header--branded--uEj-8 h2{margin:0;font-weight:700}.cozy-ui-bar-c-modal-header--branded--uEj-8{padding:1rem 3rem}.cozy-ui-bar-c-modal-header--branded--uEj-8 img{display:block;max-height:3.5rem;margin:0 auto}.cozy-ui-bar-c-modal-illu-header--2k0gQ,.cozy-ui-bar-c-modal-illu-header--ghost--3zgoT{display:flex;align-items:center;justify-content:center;margin:0 0 1rem;max-width:100%}.cozy-ui-bar-c-modal-illu-header--2k0gQ>*,.cozy-ui-bar-c-modal-illu-header--ghost--3zgoT>*{max-width:inherit}.cozy-ui-bar-c-modal-illu-header--ghost--3zgoT{position:absolute;left:0;right:0;top:1rem;margin:.5rem 0;opacity:0;max-height:2rem;transition:opacity .15s ease-in,top .15s 50ms ease-in}.cozy-ui-bar-c-modal-illu-header--ghost--3zgoT>*{max-height:inherit}.cozy-ui-bar-c-modal-illu-header--ghost--3zgoT.cozy-ui-bar-is-active--M5uQG{top:0;opacity:1;transition:opacity .15s 50ms ease-in,top .15s ease-in}.cozy-ui-bar-c-modal--small-spacing--2NmIi .cozy-ui-bar-c-modal-header--XED91{padding:1.187rem 3rem 0 1.5rem}.cozy-ui-bar-c-modal--large-spacing--oIddB .cozy-ui-bar-c-modal-header--XED91{padding:2.687rem 3rem 0}.cozy-ui-bar-c-modal-app--1Vluy{display:flex;align-items:center;font-size:1.25rem;color:var(--charcoalGrey)}.cozy-ui-bar-c-app-editor--2Ha3Y{font-weight:400}.cozy-ui-bar-c-modal-app-icon--2Pyc-{height:1.125rem;margin-right:.5rem}.cozy-ui-bar-c-modal-content-fixed--2C_-7{border-bottom:.063rem solid var(--dividerColor);flex:0 0 auto;padding:0 2rem}.cozy-ui-bar-c-modal--small-spacing--2NmIi .cozy-ui-bar-c-modal-content-fixed--2C_-7{padding:0 1.5rem}.cozy-ui-bar-c-modal--large-spacing--oIddB .cozy-ui-bar-c-modal-content-fixed--2C_-7{padding:0 3rem}.cozy-ui-bar-c-modal-content--KVDws{padding:0 2rem}.cozy-ui-bar-c-modal-content--KVDws:last-child{padding-bottom:2rem;border-bottom-right-radius:.5rem;border-bottom-left-radius:.5rem}.cozy-ui-bar-c-modal--small-spacing--2NmIi .cozy-ui-bar-c-modal-content--KVDws{padding:0 1.5rem}.cozy-ui-bar-c-modal--small-spacing--2NmIi .cozy-ui-bar-c-modal-content--KVDws:last-child{padding-bottom:1.5rem}.cozy-ui-bar-c-modal--large-spacing--oIddB .cozy-ui-bar-c-modal-content--KVDws{padding:0 3rem}.cozy-ui-bar-c-modal--large-spacing--oIddB .cozy-ui-bar-c-modal-content--KVDws:last-child{padding-bottom:3rem}.cozy-ui-bar-c-modal-footer--14fzp{padding:1rem 1.25rem 1.25rem}.cozy-ui-bar-c-modal-footer--button--3yPje button{margin-bottom:.25rem}.cozy-ui-bar-c-modal-section--2tQ5k{border-top:.063rem solid var(--dividerColor)}.cozy-ui-bar-c-modal-close--HM_QO{box-sizing:border-box;position:absolute;top:1.5rem;right:1.5rem;margin:0;padding:.5rem;background-color:transparent;border:0;cursor:pointer;display:block;width:2.5rem;height:2.5rem;z-index:1}.cozy-ui-bar-c-modal--small-spacing--2NmIi .cozy-ui-bar-c-modal-close--HM_QO{top:1rem;right:1rem}.cozy-ui-bar-c-modal--closable--2sytJ .cozy-ui-bar-c-modal-header--XED91{padding-right:4.5rem}.cozy-ui-bar-c-modal--large-spacing--oIddB .cozy-ui-bar-c-modal-close--HM_QO{top:2.5rem;right:2.5rem}.cozy-ui-bar-c-modal-close--notitle--2a-O4{top:.375rem;right:.375rem}.cozy-ui-bar-c-modal--overflowHidden--JNfIY{overflow:hidden}.cozy-ui-bar-c-modal-back-button--aTdxE{top:.375rem;left:.375rem;color:var(--coolGrey)}.cozy-ui-bar-c-modal-close--notitle--2a-O4+.cozy-ui-bar-c-modal-content--KVDws{margin-top:3rem}@media(max-width:63.938rem){.u-hide--mob{display:none!important}.u-dn-m{display:none}.u-di-m{display:inline}.u-db-m{display:block}.u-dib-m{display:inline-block}.u-dit-m{display:inline-table}.u-dt-m{display:table}.u-dtc-m{display:table-cell}.u-dt-row-m{display:table-row}.u-dt-row-group-m{display:table-row-group}.u-dt-column-m{display:table-column}.u-dt-column-group-m{display:table-column-group}.u-spacellipsis-m{overflow:hidden;text-overflow:ellipsis;white-space:break-spaces}.u-fz-tiny-m{font-size:.75rem!important;line-height:1.3!important}.u-fz-xsmall-m{font-size:.813rem!important;line-height:1.4!important}.u-fz-small-m{font-size:.875rem!important;line-height:1.4!important}.u-fz-medium-m{font-size:1rem!important;line-height:1.5!important}.u-fz-large-m{font-size:1.125rem!important;line-height:1.5!important}.u-ta-left-m{text-align:left!important}.u-ta-right-m{text-align:right!important}.u-ta-center-m{text-align:center!important}.u-ta-justify-m{text-align:justify!important}.u-fs-normal-m{font-style:normal!important}.u-fs-italic-m{font-style:italic!important}.u-fw-normal-m{font-weight:400}.u-fw-bold-m{font-weight:700}html,body{display:block;height:auto}[role=application]{overflow:visible}}@media(min-width:64rem){.u-hide--tablet{display:none!important}}@media(min-width:48.063rem){.u-hide--desk{display:none!important}}@media(max-width:30rem){.u-dn-t{display:none}.u-di-t{display:inline}.u-db-t{display:block}.u-dib-t{display:inline-block}.u-dit-t{display:inline-table}.u-dt-t{display:table}.u-dtc-t{display:table-cell}.u-dt-row-t{display:table-row}.u-dt-row-group-t{display:table-row-group}.u-dt-column-t{display:table-column}.u-dt-column-group-t{display:table-column-group}.u-spacellipsis-t{overflow:hidden;text-overflow:ellipsis;white-space:break-spaces}.u-fz-tiny-t{font-size:.75rem!important;line-height:1.3!important}.u-fz-xsmall-t{font-size:.813rem!important;line-height:1.4!important}.u-fz-small-t{font-size:.875rem!important;line-height:1.4!important}.u-fz-medium-t{font-size:1rem!important;line-height:1.5!important}.u-fz-large-t{font-size:1.125rem!important;line-height:1.5!important}.u-ta-left-t{text-align:left!important}.u-ta-right-t{text-align:right!important}.u-ta-center-t{text-align:center!important}.u-ta-justify-t{text-align:justify!important}.u-fs-normal-t{font-style:normal!important}.u-fs-italic-t{font-style:italic!important}.u-fw-normal-t{font-weight:400}.u-fw-bold-t{font-weight:700}.cozy-ui-bar-c-modal-wrapper--17kzj{padding:.5rem}.cozy-ui-bar-c-modal-header--XED91,.cozy-ui-bar-c-modal-header--branded--uEj-8{margin-bottom:.5rem;padding:1.187rem 2rem 0 1.5rem}.cozy-ui-bar-c-modal-header--XED91 h2,.cozy-ui-bar-c-modal-header--branded--uEj-8 h2{font-size:1.25rem}.cozy-ui-bar-c-modal--small-spacing--2NmIi .cozy-ui-bar-c-modal-header--XED91{padding:.687rem 2rem 0 1rem}.cozy-ui-bar-c-modal--small-spacing--2NmIi .cozy-ui-bar-c-modal-content-fixed--2C_-7{padding:0 1rem}.cozy-ui-bar-c-modal--large-spacing--oIddB .cozy-ui-bar-c-modal-content-fixed--2C_-7{padding:0 2rem}.cozy-ui-bar-c-modal-content--KVDws{padding:0 1.5rem}.cozy-ui-bar-c-modal-content--KVDws:last-child{padding-bottom:1.5rem}.cozy-ui-bar-c-modal--small-spacing--2NmIi .cozy-ui-bar-c-modal-content--KVDws{padding:0 1rem}.cozy-ui-bar-c-modal--small-spacing--2NmIi .cozy-ui-bar-c-modal-content--KVDws:last-child{padding-bottom:1rem}.cozy-ui-bar-c-modal-close--HM_QO{top:.813rem;right:1rem}.cozy-ui-bar-c-modal--small-spacing--2NmIi .cozy-ui-bar-c-modal-close--HM_QO{top:.313rem;right:.5rem}}@media(max-width:48rem){.u-dn-s{display:none}.u-di-s{display:inline}.u-db-s{display:block}.u-dib-s{display:inline-block}.u-dit-s{display:inline-table}.u-dt-s{display:table}.u-dtc-s{display:table-cell}.u-dt-row-s{display:table-row}.u-dt-row-group-s{display:table-row-group}.u-dt-column-s{display:table-column}.u-dt-column-group-s{display:table-column-group}.u-spacellipsis-s{overflow:hidden;text-overflow:ellipsis;white-space:break-spaces}.u-fz-tiny-s{font-size:.75rem!important;line-height:1.3!important}.u-fz-xsmall-s{font-size:.813rem!important;line-height:1.4!important}.u-fz-small-s{font-size:.875rem!important;line-height:1.4!important}.u-fz-medium-s{font-size:1rem!important;line-height:1.5!important}.u-fz-large-s{font-size:1.125rem!important;line-height:1.5!important}.u-ta-left-s{text-align:left!important}.u-ta-right-s{text-align:right!important}.u-ta-center-s{text-align:center!important}.u-ta-justify-s{text-align:justify!important}.u-fs-normal-s{font-style:normal!important}.u-fs-italic-s{font-style:italic!important}.u-fw-normal-s{font-weight:400}.u-fw-bold-s{font-weight:700}.cozy-ui-bar-c-modal-wrapper--17kzj{justify-content:center;padding:1.5rem}.cozy-ui-bar-c-modal-wrapper--17kzj.cozy-ui-bar-c-modal-wrapper--fullscreen--12m40{padding:0}.cozy-ui-bar-c-modal--2ICub.cozy-ui-bar-c-modal--fullscreen--1k9gf{height:100%;width:100%;border-radius:0;box-sizing:border-box}.cozy-ui-bar-c-modal--large-spacing--oIddB .cozy-ui-bar-c-modal-header--XED91{padding:1.687rem 2rem 0}.cozy-ui-bar-c-modal--large-spacing--oIddB .cozy-ui-bar-c-modal-content--KVDws{padding:0 2rem}.cozy-ui-bar-c-modal--large-spacing--oIddB .cozy-ui-bar-c-modal-content--KVDws:last-child{padding-bottom:2rem}.cozy-ui-bar-c-modal-footer--button--3yPje button{min-width:calc(50% - .5rem)}.cozy-ui-bar-c-modal--large-spacing--oIddB .cozy-ui-bar-c-modal-close--HM_QO{top:1.313rem;right:1.5rem}.cozy-ui-bar-c-modal-back-button--aTdxE{top:0;left:0}}@media(max-width:25rem){.cozy-ui-bar-c-modal--xsmall--35998{width:100%}}@media(max-width:35rem){.cozy-ui-bar-c-modal--small--3G05m{width:100%}}@media(max-width:39rem){.cozy-ui-bar-c-modal--medium--39Q8p{width:100%}}@media(max-width:46rem){.cozy-ui-bar-c-modal--large--NVdKg{width:100%}}@media(max-width:56rem){.cozy-ui-bar-c-modal--xlarge--2JDmw{width:100%}}@media(max-width:66rem){.cozy-ui-bar-c-modal--xxlarge--2GW6J{width:100%}}","",{version:3,sources:["/home/anc/cozy/cozy-bar/node_modules/cozy-ui/react/Modal/node_modules/cozy-ui/stylus/settings/palette.styl","/home/anc/cozy/cozy-bar/node_modules/cozy-ui/react/Modal/styles.styl","/home/anc/cozy/cozy-bar/node_modules/cozy-ui/react/Modal/node_modules/cozy-ui/stylus/generic/animations.styl","/home/anc/cozy/cozy-bar/node_modules/cozy-ui/react/Modal/node_modules/cozy-ui/stylus/utilities/display.styl","/home/anc/cozy/cozy-bar/node_modules/cozy-ui/react/Modal/node_modules/cozy-ui/stylus/tools/mixins.styl","/home/anc/cozy/cozy-bar/node_modules/cozy-ui/react/Modal/node_modules/cozy-ui/stylus/utilities/text.styl","/home/anc/cozy/cozy-bar/node_modules/cozy-ui/react/Modal/node_modules/cozy-ui/stylus/settings/z-index.styl","/home/anc/cozy/cozy-bar/node_modules/cozy-ui/react/Modal/node_modules/cozy-ui/stylus/settings/fontstack.styl","/home/anc/cozy/cozy-bar/node_modules/cozy-ui/react/Modal/node_modules/cozy-ui/stylus/elements/defaults.styl","/home/anc/cozy/cozy-bar/node_modules/cozy-ui/react/Modal/node_modules/cozy-ui/stylus/components/forms.styl","/home/anc/cozy/cozy-bar/node_modules/cozy-ui/react/Modal/node_modules/cozy-ui/stylus/objects/layouts.styl","/home/anc/cozy/cozy-bar/node_modules/cozy-ui/react/Modal/node_modules/cozy-ui/stylus/components/modals.styl","/home/anc/cozy/cozy-bar/node_modules/cozy-ui/react/Modal/node_modules/cozy-ui/react/Modal/styles.styl","/home/anc/cozy/cozy-bar/node_modules/cozy-ui/react/Modal/node_modules/cozy-ui/stylus/settings/breakpoints.styl"],names:[],mappings:"AAwCA,KAeI,aACA,mBACA,iBACA,mBACA,oBACA,uBACA,aACA,4BAWA,iBACA,qBACA,sBAWA,qBACA,kBACA,oBASA,gBAaA,kBACA,mBACA,kBACA,sBACA,eC3CJ,CD0DA,2CAYI,uBACA,2BACA,4BACA,+BAYA,yBACA,6BACA,8BACA,iCAWA,iCACA,4BACA,iCAYA,2BACA,6BACA,gCACA,kCAaA,mCAYA,uBACA,uBAEA,qBACA,yBACA,0BACA,6BACA,0BAMA,mCAEA,gCACA,0BACA,0CAEA,8DACA,gEACA,6DACA,kDAEA,gDACA,kDACA,mDACA,8DAEA,mCACA,8CACA,2CACA,4CAEA,gCAEA,yBACA,oCACA,uCAEA,oCAEA,gCACA,6BAEA,gCACA,sCACA,wCAEA,uBACA,8CAEA,yBACA,kDAEA,sBACA,2CC3EJ,CCrLA,2CACI,KACI,sBD+LN,CC9LE,GACI,wBDgMN,CACF,CCrMA,mCACI,KACI,sBD+MN,CC9ME,GACI,wBDgNN,CACF,CC/MA,4CACI,QACI,+BD+NN,CC7NE,QACI,8BD+NN,CC7NE,YACI,+BD+NN,CC7NE,QACI,8BD+NN,CACF,CC3OA,oCACI,QACI,+BD2PN,CCzPE,QACI,8BD2PN,CCzPE,YACI,+BD2PN,CCzPE,QACI,8BD2PN,CACF,CE/PA,kBAXI,4BACA,mBACA,wBACA,yBACA,0BACA,oBACA,6BACA,qDACA,uCAAA,8BF6QJ,CElQA,QCoCI,uBACA,2BHiOJ,CGtKgB,MDzEZ,YFiQJ,CGxLgB,MDtEZ,cFiQJ,CG3LgB,MDnEZ,aFiQJ,CG9LgB,ODhEZ,oBFiQJ,CGjMgB,OD7DZ,oBFiQJ,CGpMgB,MD1DZ,aFiQJ,CGvMgB,ODvDZ,kBFiQJ,CG1MgB,UDpDZ,iBFiQJ,CG7MgB,gBDjDZ,uBFiQJ,CGhNgB,aD9CZ,oBFiQJ,CGnNgB,mBD3CZ,0BFiQJ,CI9UI,SACI,4BJybR,CI1bI,gBACI,mCJ4bR,CI7bI,YACI,+BJ+bR,CIhcI,UACI,6BJkcR,CIncI,aACI,gCJqcR,CItcI,kBACI,uBJwcR,CIzcI,cACI,uBJ2cR,CI5cI,WACI,8BJ8cR,CI/cI,YACI,+BJidR,CIldI,SACI,uBJodR,CIrdI,eACI,uBJudR,CIxdI,0BACI,6CJ0dR,CI3dI,gBACI,mCJ6dR,CI9dI,qBACI,wCJgeR,CIjeI,4BACI,+CJmeR,CIpeI,SACI,iCJseR,CIveI,mBACI,sCJyeR,CI1eI,WACI,mCJ4eR,CI7eI,WACI,mCJ+eR,CIhfI,QACI,gCJkfR,CInfI,cACI,uBJqfR,CItfI,SACI,4BJwfR,CInfA,aACI,qBJqfJ,CInfA,YACI,mBACA,gBACA,sBJqfJ,CGzYgB,gBCzGZ,gBACA,uBACA,wBJqfJ,CI1eA,eACI,aACA,gBJigBJ,CI/fI,iBACI,qBACA,cACA,gBACA,eJigBR,CI/fI,4BACI,sBJigBR,CI/fI,2BACI,mBACA,aJigBR,CI/foC,iCAC5B,4BACI,qBJigBV,CACF,CI/fI,aACI,iCACA,4DAAA,mDJigBR,CI/fI,2DAII,sCJigBR,CG7cY,WChDR,uBJggBJ,CGhdY,aC7CR,yBJggBJ,CGndY,YC1CR,yBJggBJ,CGtdY,aCvCR,yBJggBJ,CGzdY,YCpCR,yBJggBJ,CG5dY,aCjCR,yBJggBJ,CGrdgB,WC5BZ,2BArBA,yBJ0gBJ,CGzdgB,aCxBZ,4BAtBA,yBJ2gBJ,CG7dgB,YCpBZ,4BA1BA,yBJ+gBJ,CGjegB,aChBZ,yBA3BA,yBJghBJ,CGregB,YCZZ,6BA/BA,yBJohBJ,CGzegB,WCKZ,yBJyiBJ,CG9iBgB,YCQZ,0BJyiBJ,CGjjBgB,aCWZ,2BJyiBJ,CGpjBgB,cCcZ,4BJyiBJ,CGvjBgB,aC6BZ,2BJukBJ,CGpmBgB,aCgCZ,2BJukBJ,CGvmBgB,aC4CZ,eJslBJ,CGloBgB,WC+CZ,eJslBJ,CKjtBA,KACI,kBACA,eACA,eACA,wBACA,gBACA,gBACA,sBACA,oBACA,oBACA,2BACA,mBACA,kBACA,iBL6uBJ,CMjyBA,KACI,6BNmyBJ,CMjyBA,oEACI,8BNwyBJ,COpzBA,KACI,cPszBJ,COpzBA,KACI,cACA,kCACA,kCPszBJ,CO1yBA,KACE,WP4yBF,CO1yBA,KACE,aACA,sBACA,oBACA,YACA,YACA,QP4yBF,COpyBA,mBACI,aACA,eACA,cACA,kBACA,eP6yBJ,COvyBA,UAEI,8BACA,kBP8yBJ,CQ7rBA,yCAEI,YR+rBJ,CQ7rBI,gKLvGA,uBACA,2BH0yBJ,CQhsBI,qDACI,kBACA,qBACA,WACA,YACA,oBACA,cRmsBR,CQjsBQ,oIAEI,WACA,kBACA,OACA,MACA,sBACA,WACA,WRqsBZ,CQnsBQ,mEACI,oDRssBZ,CQpsBQ,iEACI,wBACA,qCRusBZ,CO/0BI,gCACI,kBACA,qCACA,uCPq1BR,COn1BI,0DACI,iFPq1BR,CO90BQ,qEAEI,qBPg1BZ,CO90BQ,mCACI,8BACA,4CPg1BZ,CO90BY,yCACI,gDPg1BhB,CO90BQ,kCACI,ySACA,uBPg1BZ,CO90BI,sDACQ,yPACA,uBPg1BZ,CO50BY,gEACI,6CP80BhB,CO50BY,+DACI,UACA,kBP80BhB,CO50BQ,qEACI,UACA,kBP80BZ,CSr5BA,4BACI,aACA,wBACA,mBTu5BJ,CSr5BA,oCAEI,6VAIA,4BACA,8BACA,0DACA,gDACA,4BACA,cACA,gCTm5BJ,CSj5BA,kHACI,aTq5BJ,CUx6BA,sCACI,kBACA,UV86BJ,CU56BA,oCACI,eACA,MACA,OACA,aACA,sBACA,mBACA,sBACA,YACA,YACA,gBACA,YV86BJ,CUr6BA,4BAEI,kBACA,oBACA,gBACA,eACA,8BACA,yBVi7BJ,CU96BI,oCACI,WVg7BR,CUj7BI,mCACI,WVw7BR,CUz7BI,oCACI,WVg8BR,CUj8BI,mCACI,WVw8BR,CUz8BI,oCACI,WVg9BR,CUj9BI,qCACI,WVw9BR,CUv8BA,+EAEI,gBACA,6BACA,iBACA,iBV29BJ,CUz9BI,qFACI,SACA,eV49BR,CUn9BA,4CAEI,iBV+9BJ,CU79BI,gDACI,cACA,kBACA,aV+9BR,CU79BA,uFACI,aACA,mBACA,uBACA,gBACA,cVg+BJ,CU99BI,2FACI,iBVi+BR,CU/9BA,+CAEI,kBACA,OACA,QACA,SACA,eACA,UACA,gBACA,qDVg+BJ,CU99BI,iDACI,kBVg+BR,CU99BA,4EACI,MACA,UACA,qDVg+BJ,CU99BA,8EACI,8BVg+BJ,CU39BA,8EACI,uBVk+BJ,CU79BA,gCACI,aACA,mBACA,kBACA,yBVo+BJ,CUl+BA,iCACI,eVo+BJ,CUl+BA,qCACI,gBACA,kBVo+BJ,CUl+BA,0CACI,gDACA,cACA,cVo+BJ,CUl+BA,qFACI,gBVo+BJ,CU/9BA,qFACI,cVs+BJ,CUj+BA,oCAEI,cVu+BJ,CUr+BI,+CACI,oBACA,iCACA,+BVu+BR,CU/9BA,+EACI,gBVy+BJ,CUv+BI,0FACI,qBVy+BR,CUj+BA,+EACI,cV2+BJ,CUz+BI,0FACI,mBV2+BR,CUn+BA,mCAEI,4BV4+BJ,CUz+BI,kDACI,oBV2+BR,CUt+BA,oCACI,4CV6+BJ,CUz+BA,kCACI,sBACA,kBACA,WACA,aACA,SACA,cACA,6BACA,SACA,eACA,cACA,aACA,cACA,SV2+BJ,CUr+BA,6EACI,SACA,UV6+BJ,CUv+BA,yEACI,oBV++BJ,CU5+BA,6EACI,WACA,YV8+BJ,CUx+BA,2CACI,YACA,aVg/BJ,CU9+BA,4CACI,eVg/BJ,CU9+BA,wCACI,YACA,aACA,qBVg/BJ,CWpqCA,+EACI,eX4qCJ,CY3qCqE,4BAAA,aV1E7D,sBFqQN,CGrKkB,QD9EhB,YFyWF,CG3RkB,QD3EhB,cFyWF,CG9RkB,QDxEhB,aFyWF,CGjSkB,SDrEhB,oBFyWF,CGpSkB,SDlEhB,oBFyWF,CGvSkB,QD/DhB,aFyWF,CG1SkB,SD5DhB,kBFyWF,CG7SkB,YDzDhB,iBFyWF,CGhTkB,kBDtDhB,uBFyWF,CGnTkB,eDnDhB,oBFyWF,CGtTkB,qBDhDhB,0BFyWF,CGzTkB,kBC9GhB,gBACA,uBACA,wBJygBF,CG7ZkB,aCjChB,2BArBA,yBJ2kBF,CGrhBkB,eC7BhB,4BAtBA,yBJ4kBF,CGzhBkB,cCzBhB,4BA1BA,yBJglBF,CG7hBkB,eCrBhB,yBA3BA,yBJilBF,CGjiBkB,cCjBhB,6BA/BA,yBJqlBF,CGriBkB,aCAhB,yBJklBF,CGllBkB,cCGhB,0BJklBF,CGrlBkB,eCMhB,2BJklBF,CGxlBkB,gBCShB,4BJklBF,CG3lBkB,eCwBhB,2BJ8lBF,CGtnBkB,eC2BhB,2BJ8lBF,CGznBkB,eCuChB,eJ6mBF,CGppBkB,aC0ChB,eJ6mBF,CY7qBmE,UL1E7D,cACA,WP4yBN,CYnuBmE,mBL/D7D,gBP8yBN,CAnjBF,CY/DyD,wBAAA,gBVnMjD,sBFsQN,CACF,CYjFwD,4BAAA,cVlLhD,sBFuQN,CACF,CGlLqD,wBAEjC,QD9EhB,YFmSF,CGrNkB,QD3EhB,cFmSF,CGxNkB,QDxEhB,aFmSF,CG3NkB,SDrEhB,oBFmSF,CG9NkB,SDlEhB,oBFmSF,CGjOkB,QD/DhB,aFmSF,CGpOkB,SD5DhB,kBFmSF,CGvOkB,YDzDhB,iBFmSF,CG1OkB,kBDtDhB,uBFmSF,CG7OkB,eDnDhB,oBFmSF,CGhPkB,qBDhDhB,0BFmSF,CGnPkB,kBC9GhB,gBACA,uBACA,wBJ2fF,CG/YkB,aCjChB,2BArBA,yBJ+hBF,CGzekB,eC7BhB,4BAtBA,yBJgiBF,CG7ekB,cCzBhB,4BA1BA,yBJoiBF,CGjfkB,eCrBhB,yBA3BA,yBJqiBF,CGrfkB,cCjBhB,6BA/BA,yBJyiBF,CGzfkB,aCAhB,yBJsjBF,CGtjBkB,cCGhB,0BJsjBF,CGzjBkB,eCMhB,2BJsjBF,CG5jBkB,gBCShB,4BJsjBF,CG/jBkB,eCwBhB,2BJ8kBF,CGtmBkB,eC2BhB,2BJ8kBF,CGzmBkB,eCuChB,eJ6lBF,CGpoBkB,aC0ChB,eJ6lBF,CYzrBiE,oCF1B3D,aVi7BN,CYv5BiE,+EFgB3D,oBACA,8BV89BN,CU59BM,qFACI,iBV+9BV,CYn/BiE,8EFgE3D,2BVi+BN,CYjiCiE,qFF8F3D,cVq+BN,CYnkCiE,qFFoG3D,cVu+BN,CY3kCiE,oCFgH3D,gBVw+BN,CUt+BM,+CACI,qBVw+BV,CY3lCiE,+EF4H3D,cV0+BN,CUx+BM,0FACI,mBV0+BV,CYzmCiE,kCF6K3D,YACA,UV4+BN,CY1pCiE,6EFqL3D,YACA,WV8+BN,CA93BF,CGtPqD,wBAEjC,QD9EhB,YFsUF,CGxPkB,QD3EhB,cFsUF,CG3PkB,QDxEhB,aFsUF,CG9PkB,SDrEhB,oBFsUF,CGjQkB,SDlEhB,oBFsUF,CGpQkB,QD/DhB,aFsUF,CGvQkB,SD5DhB,kBFsUF,CG1QkB,YDzDhB,iBFsUF,CG7QkB,kBDtDhB,uBFsUF,CGhRkB,eDnDhB,oBFsUF,CGnRkB,qBDhDhB,0BFsUF,CGtRkB,kBC9GhB,gBACA,uBACA,wBJkgBF,CGtZkB,aCjChB,2BArBA,yBJqjBF,CG/fkB,eC7BhB,4BAtBA,yBJsjBF,CGngBkB,cCzBhB,4BA1BA,yBJ0jBF,CGvgBkB,eCrBhB,yBA3BA,yBJ2jBF,CG3gBkB,cCjBhB,6BA/BA,yBJ+jBF,CG/gBkB,aCAhB,yBJokBF,CGpkBkB,cCGhB,0BJokBF,CGvkBkB,eCMhB,2BJokBF,CG1kBkB,gBCShB,4BJokBF,CG7kBkB,eCwBhB,2BJslBF,CG9mBkB,eC2BhB,2BJslBF,CGjnBkB,eCuChB,eJqmBF,CG5oBkB,aC0ChB,eJqmBF,CYnrBkE,oCF5C5D,uBACA,cV+6BN,CYp4BkE,mFFnB5D,SVy9BN,CYt8BkE,mEFf5D,YACA,WACA,gBACA,qBV09BN,CY98BkE,8EFwD5D,uBVm+BN,CY3hCkE,+EF0H5D,cV4+BN,CU1+BM,0FACI,mBV4+BV,CYzmCkE,kDFwIxD,2BV4+BV,CYpnCkE,6EFmL5D,aACA,YV++BN,CYnqCkE,wCFmM5D,MACA,MVi/BN,CA13BF,CUnVqC,wBAAA,oCACzB,UVg7BV,CACF,CUl7BqC,wBAAA,mCACzB,UVw7BV,CACF,CU17BqC,wBAAA,oCACzB,UVg8BV,CACF,CUl8BqC,wBAAA,mCACzB,UVw8BV,CACF,CU18BqC,wBAAA,oCACzB,UVg9BV,CACF,CUl9BqC,wBAAA,qCACzB,UVw9BV,CACF,CAAA",file:"styles.styl",sourcesContent:["@require '../tools/mixins'\n\n$errorColor=#F52D2D\n$errorBackground=#FFF2F2\n\n$successColor=#35CE68\n$warningColor=#FF962F\n$infoColor=#34373F\n\n// @stylint off\n/*------------------------------------*\\\n Palette\n =====\n\\*------------------------------------*/\n/*\n Settings\n\n Weight: -10\n\n Styleguide Settings\n*/\n\n/*\n Colors\n\n Colors used in the user interface.\n\n ℹ️ In general, you are advised to use [theme colors](#kssref-settings-theme) when\n building your components: this will ensure your components react correctly when\n changing the theme.\n\n If you need to access an absolute color that is not semantic, you can use\n\n ```\n import palette from 'cozy-ui/transpiled/react/palette'\n <div style={{ backgroundColor: palette.melon }} />\n ```\n\n Styleguide Settings.colors\n*/\nhtml\n /*\n Grey\n\n Stylus: white - #FFFFFF, CSS: var(--white)\n Stylus: paleGrey - #F5F6F7, CSS: var(--paleGrey)\n Stylus: silver - #D6D8Da, CSS: var(--silver)\n Stylus: coolGrey - #95999D, CSS: var(--coolGrey)\n Stylus: slateGrey - #5D6165, CSS: var(--slateGrey)\n Stylus: charcoalGrey - #32363F, CSS: var(--charcoalGrey)\n Stylus: black - #000000, CSS: var(--black)\n\n\n Styleguide Settings.colors.grey\n */\n --white #FFFFFF\n --paleGrey #F5F6F7\n --silver #D6D8Da\n --coolGrey #95999D\n --slateGrey #5D6165\n --charcoalGrey #32363F\n --black #000000\n --overlay rgba(50, 54, 63, .5)\n\n /*\n Blue\n\n Stylus: zircon - #F5FAFF, CSS: var(--zircon)\n Stylus: dodgerBlue - #297EF2, CSS: var(--dodgerBlue)\n Stylus: scienceBlue - #0B61D6, CSS: var(--scienceBlue)\n\n Styleguide Settings.colors.blue\n */\n --zircon #F5FAFF\n --dodgerBlue #297EF2\n --scienceBlue #0B61D6\n\n /*\n Green\n\n Stylus: weirdGreen - #40DE8E, CSS: var(--weirdGreen)\n Stylus: emerald - #35CE68, CSS: var(--emerald)\n Stylus: malachite - #08b442, CSS: var(--malachite)\n\n Styleguide Settings.colors.green\n */\n --weirdGreen #40DE8E\n --emerald #35CE68\n --malachite #08b442\n\n /*\n Orange\n\n Stylus: mango - #FF962F, CSS: var(--mango)\n\n Styleguide Settings.colors.orange\n */\n --mango #FF962F\n\n /*\n Red\n\n Stylus: chablis - #FFF2F2, CSS: var(--chablis)\n Stylus: yourPink - #FDCBCB, CSS: var(--yourPink)\n Stylus: fuchsia - #FC4C83, CSS: var(--fuchsia)\n Stylus: pomegranate - #F52D2D, CSS: var(--pomegranate)\n Stylus: monza - #DD0505, CSS: var(--monza)\n\n Styleguide Settings.colors.red\n */\n --chablis #FFF2F2\n --yourPink #FDCBCB\n --fuchsia #FC4C83\n --pomegranate #F52D2D\n --monza #DD0505\n\n/*\n Theme\n\n Semantic colors suitable for theming. We encourage users of cozy-ui to use semantic colors\n instead of absolute colors to facilitate theming.\n\n We try to use a naming schema that is close to what is use in [Material-UI React's theming](https://material-ui.com/customization/palette/#palette-colors).\n It is possible that we have some discrepancies. If you see something that seems out\n of the ordinary and where you think we could reduce the difference with MUI, please\n do not hesitate to [open an issue](https://github.com/cozy/cozy-ui/issues/new).\n\n Styleguide Settings.theme\n*/\nhtml, .CozyTheme--normal\n /*\n Primary\n\n Stylus: primaryColor - #297EF2, CSS: var(--primaryColor)\n Stylus: primaryColorDark - #0B61D6, CSS: var(--primaryColorDark)\n Stylus: primaryColorLight - #5C9DF5, CSS: var(--primaryColorLight)\n Stylus: primaryColorLightest - #9FC4FB, CSS: var(--primaryColorLightest)\n Stylus: primaryContrastTextColor - #FFFFFF, CSS: var(--primaryContrastTextColor)\n\n Styleguide Settings.theme.primary\n */\n --primaryColor #297EF2\n --primaryColorDark #0B61D6\n --primaryColorLight #5C9DF5\n --primaryColorLightest #9FC4FB\n\n /*\n Secondary\n\n Stylus: secondaryColor - #fd7461, CSS: var(--secondaryColor)\n Stylus: secondaryColorDark - #E3503B, CSS: var(--secondaryColorDark)\n Stylus: secondaryColorLight - #ffdeda, CSS: var(--secondaryColorLight)\n Stylus: secondaryColorLightest - #FECDC6, CSS: var(--secondaryColorLightest)\n\n Styleguide Settings.theme.secondary\n */\n --secondaryColor #fd7461\n --secondaryColorDark #E3503B\n --secondaryColorLight #ffdeda // lighten(dodgerBlue, 24)\n --secondaryColorLightest #FECDC6\n\n /*\n Background colors\n\n Stylus: primaryBackgroundLight - #F5FAFF, CSS: var(--primaryBackgroundLight)\n Stylus: paperBackgroundColor - #FFF, CSS: var(--paperBackgroundColor)\n Stylus: defaultBackgroundColor - #F5F6F7, CSS: var(--defaultBackgroundColor)\n\n Styleguide Settings.theme.background\n */\n --primaryBackgroundLight: #F5FAFF\n --paperBackgroundColor: #FFF\n --defaultBackgroundColor: #F5F6F7 // paleGrey\n\n /*\n Text colors\n\n Stylus: primaryTextColor - #32363F, CSS: var(--primaryTextColor)\n Stylus: secondaryTextColor - #95999D, CSS: var(--secondaryTextColor)\n Stylus: primaryContrastTextColor - #FFF, CSS: var(--primaryContrastTextColor)\n Stylus: secondaryContrastTextColor - #FFF, CSS: var(--secondaryContrastTextColor)\n\n Styleguide Settings.theme.text\n */\n --primaryTextColor #32363F\n --secondaryTextColor #95999D\n --primaryContrastTextColor #FFF\n --secondaryContrastTextColor #FFF\n\n\n /*\n Components colors\n\n Be careful to use the semantic variable, not the hexa color.\n In this case the real color is `#1D212A1F`, and becomes `#E3E4E5` on a white background.\n\n Stylus: dividerColor - #E3E4E5, CSS: var(--dividerColor)\n\n Styleguide Settings.theme.components\n */\n --dividerColor: #1D212A1F // grey[900] with 12% opacity\n\n /*\n Intention colors\n\n Stylus: successColor - #35CE68, CSS: var(--successColor)\n Stylus: warningColor - #FF962F, CSS: var(--warningColor)\n Stylus: errorColor - #F52D2D, CSS: var(--errorColor)\n Stylus: infoColor - #34373F, CSS: var(--infoColor)\n\n Styleguide Settings.theme.intention\n */\n --successColor: $successColor\n --warningColor: $warningColor\n\n --errorColor: $errorColor\n --errorColorDark: darken($errorColor, 24)\n --errorColorLight: lighten($errorColor, 30)\n --errorColorLightest: lighten($errorColor, 38)\n --errorBackground: $errorBackground\n\n /*\n The CSS variables below are historic and we should strive not to\n use them. Prefer to use directly semantic colors above.\n */\n --spinnerColor var(--primaryColor)\n\n --linkColor var(--primaryColor)\n --linkTextDecoration none\n --linkColorActive var(--primaryColorDark)\n\n --invertedTabsActiveTextColor var(--primaryContrastTextColor)\n --invertedTabsInactiveTextColor var(--primaryContrastTextColor)\n --invertedTabsIndicatorColor var(--primaryContrastTextColor)\n --invertedTabsBackgroundColor var(--primaryColor)\n\n --regularButtonPrimaryColor: var(--primaryColor)\n --regularButtonSecondaryColor: var(--primaryColor)\n --regularButtonActiveColor: var(--primaryColorDark)\n --regularButtonConstrastColor: var(--primaryContrastTextColor)\n\n --secondaryButtonPrimaryColor: #FFF\n --secondaryButtonSecondaryColor: var(--silver)\n --secondaryButtonActiveColor: var(--silver)\n --secondaryButtonContrastColor: var(--black)\n\n --dividerColor2: var(--coolGrey)\n\n --iconColor: currentColor\n --textIconColor: var(--charcoalGrey)\n --actionMenuIconColor: var(--slateGrey)\n\n --neutralBackground: var(--paleGrey)\n\n --buttonTextTransform uppercase\n --buttonBorderRadius rem(2)\n\n --navTextColor var(--slateGrey)\n --navTextActiveColor var(--slateGrey)\n --navTextHoverColor var(--charcoalGrey)\n\n --alertErrorColor #fff\n --alertErrorBackgroundColor var(--errorColor)\n\n --alertSuccessColor #fff\n --alertSuccessBackgroundColor var(--successColor)\n\n --alertInfoColor #fff\n --alertInfoBackgroundColor var(--slateGrey)\n// @stylint on\n","html {\n/*\n Grey\n\n Stylus: white - #FFFFFF, CSS: var(--white)\n Stylus: paleGrey - #F5F6F7, CSS: var(--paleGrey)\n Stylus: silver - #D6D8Da, CSS: var(--silver)\n Stylus: coolGrey - #95999D, CSS: var(--coolGrey)\n Stylus: slateGrey - #5D6165, CSS: var(--slateGrey)\n Stylus: charcoalGrey - #32363F, CSS: var(--charcoalGrey)\n Stylus: black - #000000, CSS: var(--black)\n\n\n Styleguide Settings.colors.grey\n */\n --white: #fff;\n --paleGrey: #f5f6f7;\n --silver: #d6d8da;\n --coolGrey: #95999d;\n --slateGrey: #5d6165;\n --charcoalGrey: #32363f;\n --black: #000;\n --overlay: rgba(50,54,63,0.5);\n/*\n Blue\n\n Stylus: zircon - #F5FAFF, CSS: var(--zircon)\n Stylus: dodgerBlue - #297EF2, CSS: var(--dodgerBlue)\n Stylus: scienceBlue - #0B61D6, CSS: var(--scienceBlue)\n\n Styleguide Settings.colors.blue\n */\n --zircon: #f5faff;\n --dodgerBlue: #297ef2;\n --scienceBlue: #0b61d6;\n/*\n Green\n\n Stylus: weirdGreen - #40DE8E, CSS: var(--weirdGreen)\n Stylus: emerald - #35CE68, CSS: var(--emerald)\n Stylus: malachite - #08b442, CSS: var(--malachite)\n\n Styleguide Settings.colors.green\n */\n --weirdGreen: #40de8e;\n --emerald: #35ce68;\n --malachite: #08b442;\n/*\n Orange\n\n Stylus: mango - #FF962F, CSS: var(--mango)\n\n Styleguide Settings.colors.orange\n */\n --mango: #ff962f;\n/*\n Red\n\n Stylus: chablis - #FFF2F2, CSS: var(--chablis)\n Stylus: yourPink - #FDCBCB, CSS: var(--yourPink)\n Stylus: fuchsia - #FC4C83, CSS: var(--fuchsia)\n Stylus: pomegranate - #F52D2D, CSS: var(--pomegranate)\n Stylus: monza - #DD0505, CSS: var(--monza)\n\n Styleguide Settings.colors.red\n */\n --chablis: #fff2f2;\n --yourPink: #fdcbcb;\n --fuchsia: #fc4c83;\n --pomegranate: #f52d2d;\n --monza: #dd0505;\n}\nhtml,\n.CozyTheme--normal {\n/*\n Primary\n\n Stylus: primaryColor - #297EF2, CSS: var(--primaryColor)\n Stylus: primaryColorDark - #0B61D6, CSS: var(--primaryColorDark)\n Stylus: primaryColorLight - #5C9DF5, CSS: var(--primaryColorLight)\n Stylus: primaryColorLightest - #9FC4FB, CSS: var(--primaryColorLightest)\n Stylus: primaryContrastTextColor - #FFFFFF, CSS: var(--primaryContrastTextColor)\n\n Styleguide Settings.theme.primary\n */\n --primaryColor: #297ef2;\n --primaryColorDark: #0b61d6;\n --primaryColorLight: #5c9df5;\n --primaryColorLightest: #9fc4fb;\n/*\n Secondary\n\n Stylus: secondaryColor - #fd7461, CSS: var(--secondaryColor)\n Stylus: secondaryColorDark - #E3503B, CSS: var(--secondaryColorDark)\n Stylus: secondaryColorLight - #ffdeda, CSS: var(--secondaryColorLight)\n Stylus: secondaryColorLightest - #FECDC6, CSS: var(--secondaryColorLightest)\n\n Styleguide Settings.theme.secondary\n */\n --secondaryColor: #fd7461;\n --secondaryColorDark: #e3503b;\n --secondaryColorLight: #ffdeda;\n --secondaryColorLightest: #fecdc6;\n/*\n Background colors\n\n Stylus: primaryBackgroundLight - #F5FAFF, CSS: var(--primaryBackgroundLight)\n Stylus: paperBackgroundColor - #FFF, CSS: var(--paperBackgroundColor)\n Stylus: defaultBackgroundColor - #F5F6F7, CSS: var(--defaultBackgroundColor)\n\n Styleguide Settings.theme.background\n */\n --primaryBackgroundLight: #f5faff;\n --paperBackgroundColor: #fff;\n --defaultBackgroundColor: #f5f6f7;\n/*\n Text colors\n\n Stylus: primaryTextColor - #32363F, CSS: var(--primaryTextColor)\n Stylus: secondaryTextColor - #95999D, CSS: var(--secondaryTextColor)\n Stylus: primaryContrastTextColor - #FFF, CSS: var(--primaryContrastTextColor)\n Stylus: secondaryContrastTextColor - #FFF, CSS: var(--secondaryContrastTextColor)\n\n Styleguide Settings.theme.text\n */\n --primaryTextColor: #32363f;\n --secondaryTextColor: #95999d;\n --primaryContrastTextColor: #fff;\n --secondaryContrastTextColor: #fff;\n/*\n Components colors\n\n Be careful to use the semantic variable, not the hexa color.\n In this case the real color is `#1D212A1F`, and becomes `#E3E4E5` on a white background.\n\n Stylus: dividerColor - #E3E4E5, CSS: var(--dividerColor)\n\n Styleguide Settings.theme.components\n */\n --dividerColor: rgba(29,33,42,0.122);\n/*\n Intention colors\n\n Stylus: successColor - #35CE68, CSS: var(--successColor)\n Stylus: warningColor - #FF962F, CSS: var(--warningColor)\n Stylus: errorColor - #F52D2D, CSS: var(--errorColor)\n Stylus: infoColor - #34373F, CSS: var(--infoColor)\n\n Styleguide Settings.theme.intention\n */\n --successColor: #35ce68;\n --warningColor: #ff962f;\n --errorColor: #f52d2d;\n --errorColorDark: #a00808;\n --errorColorLight: #fcbfbf;\n --errorColorLightest: #fee6e6;\n --errorBackground: #fff2f2;\n/*\n The CSS variables below are historic and we should strive not to\n use them. Prefer to use directly semantic colors above.\n */\n --spinnerColor: var(--primaryColor);\n --linkColor: var(--primaryColor);\n --linkTextDecoration: none;\n --linkColorActive: var(--primaryColorDark);\n --invertedTabsActiveTextColor: var(--primaryContrastTextColor);\n --invertedTabsInactiveTextColor: var(--primaryContrastTextColor);\n --invertedTabsIndicatorColor: var(--primaryContrastTextColor);\n --invertedTabsBackgroundColor: var(--primaryColor);\n --regularButtonPrimaryColor: var(--primaryColor);\n --regularButtonSecondaryColor: var(--primaryColor);\n --regularButtonActiveColor: var(--primaryColorDark);\n --regularButtonConstrastColor: var(--primaryContrastTextColor);\n --secondaryButtonPrimaryColor: #fff;\n --secondaryButtonSecondaryColor: var(--silver);\n --secondaryButtonActiveColor: var(--silver);\n --secondaryButtonContrastColor: var(--black);\n --dividerColor2: var(--coolGrey);\n --iconColor: currentColor;\n --textIconColor: var(--charcoalGrey);\n --actionMenuIconColor: var(--slateGrey);\n --neutralBackground: var(--paleGrey);\n --buttonTextTransform: uppercase;\n --buttonBorderRadius: 0.125rem;\n --navTextColor: var(--slateGrey);\n --navTextActiveColor: var(--slateGrey);\n --navTextHoverColor: var(--charcoalGrey);\n --alertErrorColor: #fff;\n --alertErrorBackgroundColor: var(--errorColor);\n --alertSuccessColor: #fff;\n --alertSuccessBackgroundColor: var(--successColor);\n --alertInfoColor: #fff;\n --alertInfoBackgroundColor: var(--slateGrey);\n}\n@-moz-keyframes spin {\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(359deg);\n }\n}\n@-webkit-keyframes spin {\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(359deg);\n }\n}\n@-o-keyframes spin {\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(359deg);\n }\n}\n@keyframes spin {\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(359deg);\n }\n}\n@-moz-keyframes shake {\n 10%, 90% {\n transform: translate3d(-1px, 0, 0);\n }\n 20%, 80% {\n transform: translate3d(2px, 0, 0);\n }\n 30%, 50%, 70% {\n transform: translate3d(-4px, 0, 0);\n }\n 40%, 60% {\n transform: translate3d(4px, 0, 0);\n }\n}\n@-webkit-keyframes shake {\n 10%, 90% {\n transform: translate3d(-1px, 0, 0);\n }\n 20%, 80% {\n transform: translate3d(2px, 0, 0);\n }\n 30%, 50%, 70% {\n transform: translate3d(-4px, 0, 0);\n }\n 40%, 60% {\n transform: translate3d(4px, 0, 0);\n }\n}\n@-o-keyframes shake {\n 10%, 90% {\n transform: translate3d(-1px, 0, 0);\n }\n 20%, 80% {\n transform: translate3d(2px, 0, 0);\n }\n 30%, 50%, 70% {\n transform: translate3d(-4px, 0, 0);\n }\n 40%, 60% {\n transform: translate3d(4px, 0, 0);\n }\n}\n@keyframes shake {\n 10%, 90% {\n transform: translate3d(-1px, 0, 0);\n }\n 20%, 80% {\n transform: translate3d(2px, 0, 0);\n }\n 30%, 50%, 70% {\n transform: translate3d(-4px, 0, 0);\n }\n 40%, 60% {\n transform: translate3d(4px, 0, 0);\n }\n}\n:global(.u-visuallyhidden) {\n position: absolute !important;\n border: 0 !important;\n width: 0.063rem !important;\n height: 0.063rem !important;\n overflow: hidden !important;\n padding: 0 !important;\n white-space: nowrap !important;\n clip: rect(0.063rem, 0.063rem, 0.063rem, 0.063rem) !important;\n clip-path: inset(50%) !important;\n}\n:global(.u-hide) {\n display: none !important;\n visibility: hidden !important;\n}\n@media (max-width: 63.938rem) {\n :global(.u-hide--mob) {\n display: none !important;\n }\n}\n@media (min-width: 64rem) {\n :global(.u-hide--tablet) {\n display: none !important;\n }\n}\n@media (min-width: 48.063rem) {\n :global(.u-hide--desk) {\n display: none !important;\n }\n}\n:global(.u-dn) {\n display: none;\n}\n:global(.u-di) {\n display: inline;\n}\n:global(.u-db) {\n display: block;\n}\n:global(.u-dib) {\n display: inline-block;\n}\n:global(.u-dit) {\n display: inline-table;\n}\n:global(.u-dt) {\n display: table;\n}\n:global(.u-dtc) {\n display: table-cell;\n}\n:global(.u-dt-row) {\n display: table-row;\n}\n:global(.u-dt-row-group) {\n display: table-row-group;\n}\n:global(.u-dt-column) {\n display: table-column;\n}\n:global(.u-dt-column-group) {\n display: table-column-group;\n}\n@media (max-width: 30rem) {\n :global(.u-dn-t) {\n display: none;\n }\n :global(.u-di-t) {\n display: inline;\n }\n :global(.u-db-t) {\n display: block;\n }\n :global(.u-dib-t) {\n display: inline-block;\n }\n :global(.u-dit-t) {\n display: inline-table;\n }\n :global(.u-dt-t) {\n display: table;\n }\n :global(.u-dtc-t) {\n display: table-cell;\n }\n :global(.u-dt-row-t) {\n display: table-row;\n }\n :global(.u-dt-row-group-t) {\n display: table-row-group;\n }\n :global(.u-dt-column-t) {\n display: table-column;\n }\n :global(.u-dt-column-group-t) {\n display: table-column-group;\n }\n}\n@media (max-width: 48rem) {\n :global(.u-dn-s) {\n display: none;\n }\n :global(.u-di-s) {\n display: inline;\n }\n :global(.u-db-s) {\n display: block;\n }\n :global(.u-dib-s) {\n display: inline-block;\n }\n :global(.u-dit-s) {\n display: inline-table;\n }\n :global(.u-dt-s) {\n display: table;\n }\n :global(.u-dtc-s) {\n display: table-cell;\n }\n :global(.u-dt-row-s) {\n display: table-row;\n }\n :global(.u-dt-row-group-s) {\n display: table-row-group;\n }\n :global(.u-dt-column-s) {\n display: table-column;\n }\n :global(.u-dt-column-group-s) {\n display: table-column-group;\n }\n}\n@media (max-width: 63.938rem) {\n :global(.u-dn-m) {\n display: none;\n }\n :global(.u-di-m) {\n display: inline;\n }\n :global(.u-db-m) {\n display: block;\n }\n :global(.u-dib-m) {\n display: inline-block;\n }\n :global(.u-dit-m) {\n display: inline-table;\n }\n :global(.u-dt-m) {\n display: table;\n }\n :global(.u-dtc-m) {\n display: table-cell;\n }\n :global(.u-dt-row-m) {\n display: table-row;\n }\n :global(.u-dt-row-group-m) {\n display: table-row-group;\n }\n :global(.u-dt-column-m) {\n display: table-column;\n }\n :global(.u-dt-column-group-m) {\n display: table-column-group;\n }\n}\n:global(.u-black) {\n color: var(--black) !important;\n}\n:global(.u-charcoalGrey) {\n color: var(--charcoalGrey) !important;\n}\n:global(.u-coolGrey) {\n color: var(--coolGrey) !important;\n}\n:global(.u-silver) {\n color: var(--silver) !important;\n}\n:global(.u-slateGrey) {\n color: var(--slateGrey) !important;\n}\n:global(.u-lightishPurple) {\n color: #b449e7 !important;\n}\n:global(.u-dodgerBlue) {\n color: #297ef2 !important;\n}\n:global(.u-overlay) {\n color: var(--overlay) !important;\n}\n:global(.u-paleGrey) {\n color: var(--paleGrey) !important;\n}\n:global(.u-monza) {\n color: #dd0505 !important;\n}\n:global(.u-pomegranate) {\n color: #f52d2d !important;\n}\n:global(.u-primaryBackgroundLight) {\n color: var(--primaryBackgroundLight) !important;\n}\n:global(.u-primaryColor) {\n color: var(--primaryColor) !important;\n}\n:global(.u-primaryColorLight) {\n color: var(--primaryColorLight) !important;\n}\n:global(.u-primaryContrastTextColor) {\n color: var(--primaryContrastTextColor) !important;\n}\n:global(.u-error) {\n color: var(--errorColor) !important;\n}\n:global(.u-errorBackground) {\n color: var(--errorBackground) !important;\n}\n:global(.u-success) {\n color: var(--successColor) !important;\n}\n:global(.u-warning) {\n color: var(--warningColor) !important;\n}\n:global(.u-info) {\n color: var(--infoColor) !important;\n}\n:global(.u-weirdGreen) {\n color: #40de8e !important;\n}\n:global(.u-white) {\n color: var(--white) !important;\n}\n:global(.u-breakword) {\n word-break: break-word;\n}\n:global(.u-ellipsis) {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n:global(.u-spacellipsis) {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: break-spaces;\n}\n@media (max-width: 30rem) {\n :global(.u-spacellipsis-t) {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: break-spaces;\n }\n}\n@media (max-width: 48rem) {\n :global(.u-spacellipsis-s) {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: break-spaces;\n }\n}\n@media (max-width: 63.938rem) {\n :global(.u-spacellipsis-m) {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: break-spaces;\n }\n}\n:global(.u-midellipsis) {\n display: flex;\n flex-wrap: nowrap;\n}\n:global(.u-midellipsis) > * {\n display: inline-block;\n max-width: 50%;\n overflow: hidden;\n white-space: pre;\n}\n:global(.u-midellipsis) > :first-child {\n text-overflow: ellipsis;\n}\n:global(.u-midellipsis) > :last-child {\n text-overflow: clip;\n direction: rtl;\n}\n@supports (text-overflow: '[...]') {\n :global(.u-midellipsis) > :first-child {\n text-overflow: '[...]';\n }\n}\n:global(.u-link):link {\n color: var(--linkColor) !important;\n text-decoration: var(--linkTextDecoration) !important;\n}\n:global(.u-link):visited,\n:global(.u-link):active,\n:global(.u-link):hover,\n:global(.u-link):focus {\n color: var(--linkColorActive) !important;\n}\n:global(.u-lh-tiny) {\n line-height: 1 !important;\n}\n:global(.u-lh-xsmall) {\n line-height: 1.1 !important;\n}\n:global(.u-lh-small) {\n line-height: 1.2 !important;\n}\n:global(.u-lh-medium) {\n line-height: 1.3 !important;\n}\n:global(.u-lh-large) {\n line-height: 1.4 !important;\n}\n:global(.u-lh-xlarge) {\n line-height: 1.5 !important;\n}\n:global(.u-fz-tiny) {\n font-size: 0.75rem !important;\n line-height: 1.3 !important;\n}\n:global(.u-fz-xsmall) {\n font-size: 0.813rem !important;\n line-height: 1.4 !important;\n}\n:global(.u-fz-small) {\n font-size: 0.875rem !important;\n line-height: 1.4 !important;\n}\n:global(.u-fz-medium) {\n font-size: 1rem !important;\n line-height: 1.5 !important;\n}\n:global(.u-fz-large) {\n font-size: 1.125rem !important;\n line-height: 1.5 !important;\n}\n@media (max-width: 30rem) {\n :global(.u-fz-tiny-t) {\n font-size: 0.75rem !important;\n line-height: 1.3 !important;\n }\n :global(.u-fz-xsmall-t) {\n font-size: 0.813rem !important;\n line-height: 1.4 !important;\n }\n :global(.u-fz-small-t) {\n font-size: 0.875rem !important;\n line-height: 1.4 !important;\n }\n :global(.u-fz-medium-t) {\n font-size: 1rem !important;\n line-height: 1.5 !important;\n }\n :global(.u-fz-large-t) {\n font-size: 1.125rem !important;\n line-height: 1.5 !important;\n }\n}\n@media (max-width: 48rem) {\n :global(.u-fz-tiny-s) {\n font-size: 0.75rem !important;\n line-height: 1.3 !important;\n }\n :global(.u-fz-xsmall-s) {\n font-size: 0.813rem !important;\n line-height: 1.4 !important;\n }\n :global(.u-fz-small-s) {\n font-size: 0.875rem !important;\n line-height: 1.4 !important;\n }\n :global(.u-fz-medium-s) {\n font-size: 1rem !important;\n line-height: 1.5 !important;\n }\n :global(.u-fz-large-s) {\n font-size: 1.125rem !important;\n line-height: 1.5 !important;\n }\n}\n@media (max-width: 63.938rem) {\n :global(.u-fz-tiny-m) {\n font-size: 0.75rem !important;\n line-height: 1.3 !important;\n }\n :global(.u-fz-xsmall-m) {\n font-size: 0.813rem !important;\n line-height: 1.4 !important;\n }\n :global(.u-fz-small-m) {\n font-size: 0.875rem !important;\n line-height: 1.4 !important;\n }\n :global(.u-fz-medium-m) {\n font-size: 1rem !important;\n line-height: 1.5 !important;\n }\n :global(.u-fz-large-m) {\n font-size: 1.125rem !important;\n line-height: 1.5 !important;\n }\n}\n:global(.u-ta-left) {\n text-align: left !important;\n}\n:global(.u-ta-right) {\n text-align: right !important;\n}\n:global(.u-ta-center) {\n text-align: center !important;\n}\n:global(.u-ta-justify) {\n text-align: justify !important;\n}\n@media (max-width: 30rem) {\n :global(.u-ta-left-t) {\n text-align: left !important;\n }\n :global(.u-ta-right-t) {\n text-align: right !important;\n }\n :global(.u-ta-center-t) {\n text-align: center !important;\n }\n :global(.u-ta-justify-t) {\n text-align: justify !important;\n }\n}\n@media (max-width: 48rem) {\n :global(.u-ta-left-s) {\n text-align: left !important;\n }\n :global(.u-ta-right-s) {\n text-align: right !important;\n }\n :global(.u-ta-center-s) {\n text-align: center !important;\n }\n :global(.u-ta-justify-s) {\n text-align: justify !important;\n }\n}\n@media (max-width: 63.938rem) {\n :global(.u-ta-left-m) {\n text-align: left !important;\n }\n :global(.u-ta-right-m) {\n text-align: right !important;\n }\n :global(.u-ta-center-m) {\n text-align: center !important;\n }\n :global(.u-ta-justify-m) {\n text-align: justify !important;\n }\n}\n:global(.u-fs-normal) {\n font-style: normal !important;\n}\n:global(.u-fs-italic) {\n font-style: italic !important;\n}\n@media (max-width: 30rem) {\n :global(.u-fs-normal-t) {\n font-style: normal !important;\n }\n :global(.u-fs-italic-t) {\n font-style: italic !important;\n }\n}\n@media (max-width: 48rem) {\n :global(.u-fs-normal-s) {\n font-style: normal !important;\n }\n :global(.u-fs-italic-s) {\n font-style: italic !important;\n }\n}\n@media (max-width: 63.938rem) {\n :global(.u-fs-normal-m) {\n font-style: normal !important;\n }\n :global(.u-fs-italic-m) {\n font-style: italic !important;\n }\n}\n:global(.u-fw-normal) {\n font-weight: normal;\n}\n:global(.u-fw-bold) {\n font-weight: bold;\n}\n@media (max-width: 30rem) {\n :global(.u-fw-normal-t) {\n font-weight: normal;\n }\n :global(.u-fw-bold-t) {\n font-weight: bold;\n }\n}\n@media (max-width: 48rem) {\n :global(.u-fw-normal-s) {\n font-weight: normal;\n }\n :global(.u-fw-bold-s) {\n font-weight: bold;\n }\n}\n@media (max-width: 63.938rem) {\n :global(.u-fw-normal-m) {\n font-weight: normal;\n }\n :global(.u-fw-bold-m) {\n font-weight: bold;\n }\n}\n@media (pointer: coarse) {\n}\nhtml {\n --zIndex-below: -1;\n --zIndex-app: 0;\n --zIndex-low: 1;\n --zIndex-alertMobile: 10;\n --zIndex-nav: 20;\n --zIndex-bar: 21;\n --zIndex-selection: 30;\n --zIndex-popover: 40;\n --zIndex-overlay: 50;\n --zIndex-fileActionMenu: 60;\n --zIndex-drawer: 60;\n --zIndex-modal: 70;\n --zindex-alert: 80;\n}\nhtml {\n --primaryFont: Lato, sans-serif;\n}\nbody,\nbody button,\nbody input,\nbody optgroup,\nbody select,\nbody textarea {\n font-family: var(--primaryFont);\n}\nhtml {\n font-size: 100%;\n}\nbody {\n font: 100%/1.5;\n -moz-osx-font-smoothing: grayscale;\n -webkit-font-smoothing: antialiased;\n}\nhtml {\n height: 100%;\n}\nbody {\n display: flex;\n flex-direction: column;\n align-items: stretch;\n width: 100vw;\n height: 100%;\n margin: 0;\n}\n@media (max-width: 63.938rem) {\n html,\n body {\n display: block;\n height: auto;\n }\n}\n[role=application] {\n display: flex;\n height: inherit;\n flex: 1 1 100%;\n overflow-x: hidden;\n overflow-y: auto;\n}\n@media (max-width: 63.938rem) {\n [role=application] {\n overflow: visible;\n }\n}\nhtml,\nbody {\n background-color: var(--white);\n color: var(--black);\n}\n[data-input=radio],\n[data-input=checkbox] {\n display: flex;\n}\n[data-input=radio] input[type=radio],\n[data-input=checkbox] input[type=radio],\n[data-input=radio] input[type=checkbox],\n[data-input=checkbox] input[type=checkbox] {\n display: none !important;\n visibility: hidden !important;\n}\n[data-input=radio] label,\n[data-input=checkbox] label {\n position: relative;\n display: inline-block;\n width: 1rem;\n height: 1rem;\n padding-left: 1.4rem;\n cursor: pointer;\n}\n[data-input=radio] label::before,\n[data-input=checkbox] label::before,\n[data-input=radio] label::after,\n[data-input=checkbox] label::after {\n content: '';\n position: absolute;\n left: 0;\n top: 0;\n box-sizing: border-box;\n width: 1rem;\n height: 1rem;\n}\n[data-input=radio] label::before,\n[data-input=checkbox] label::before {\n transition: box-shadow 350ms cubic-bezier(0, 0.89, 0.44, 1);\n}\n[data-input=radio] label::after,\n[data-input=checkbox] label::after {\n transition-duration: 0.2s;\n transition-property: opacity, transform;\n}\n@media (max-width: 48rem) {\n}\n@media (max-width: 48rem) {\n}\n[data-input=radio] label::before {\n border-radius: 50%;\n border: 0.125rem solid var(--coolGrey);\n box-shadow: inset 0 0 0 1rem transparent;\n}\n[data-input=radio] input[type=radio]:checked + label::before {\n box-shadow: inset 0 0 0 0.188rem var(--paleGrey), inset 0 0 0 1rem var(--dodgerBlue);\n}\n[data-input=checkbox] label::before,\n[data-input=checkbox] label::after {\n border-radius: 0.125rem;\n}\n[data-input=checkbox] label::before {\n background-color: var(--white);\n box-shadow: inset 0 0 0 0.125rem var(--silver);\n}\n[data-input=checkbox] label::before:hover {\n box-shadow: inset 0 0 0 0.125rem var(--dodgerBlue);\n}\n[data-input=checkbox] label::after {\n background-image: url(\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMjAnIGhlaWdodD0nMjAnIHZpZXdCb3g9JzAgMCAyMCAyMCcgeG1sbnM9J2h0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnJz4KICAgIDxwYXRoIGQ9J00zIDEwLjAxOWw0LjUyMyA0LjUyMyA5LjU0MS05LjU0MScgc3Ryb2tlPScjRkZGJyBzdHJva2Utd2lkdGg9JzInIGZpbGw9Im5vbmUiLz4KPC9zdmc+Cg==\");\n background-size: contain;\n}\n[data-input=checkbox][aria-checked='mixed'] label::after {\n background-image: url(\"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCIgdmlld0JveD0iMCAwIDIwIDIwIj48cGF0aCBkPSJNMy40OTcgMTBoMTMuMDA2IiBzdHJva2U9IiNGRkYiIHN0cm9rZS13aWR0aD0iMiIgLz48L3N2Zz4K\");\n background-size: contain;\n}\n[data-input=checkbox] input[type=checkbox]:checked + label::before {\n box-shadow: inset 0 0 0 1rem var(--dodgerBlue);\n}\n[data-input=checkbox] input[type=checkbox]:checked + label::after {\n opacity: 1;\n transform: scale(1);\n}\n[data-input=checkbox] input[type=checkbox]:not(:checked) + label::after {\n opacity: 0;\n transform: scale(0);\n}\n.c-modal {\n display: flex;\n flex-flow: column nowrap;\n align-items: stretch;\n}\n.c-modal-content {\n background: linear-gradient(#fff 30%, rgba(255,255,255,0)), linear-gradient(rgba(255,255,255,0), #fff 70%) 0 100%, linear-gradient(rgba(214,216,218,0.25) 0, rgba(214,216,218,0.25) 25%, rgba(255,255,255,0) 26%, rgba(255,255,255,0) 100%), linear-gradient(rgba(255,255,255,0) 0, rgba(255,255,255,0) 74%, rgba(214,216,218,0.25) 75%, rgba(214,216,218,0.25) 100%) 0 100%;\n background-repeat: no-repeat;\n background-color: var(--white);\n background-size: 100% 2rem, 100% 2rem, 100% 0.5rem, 100% 0.5rem;\n background-attachment: local, local, scroll, scroll;\n background-clip: padding-box;\n overflow: auto;\n -webkit-overflow-scrolling: touch;\n}\n.c-modal-header,\n.c-modal-header--branded,\n.c-modal-footer {\n flex: 0 0 auto;\n}\n@media (max-width: 63.938rem) {\n}\n@media (max-width: 63.938rem) {\n}\n.c-modal-container {\n position: relative;\n z-index: 70;\n}\n.c-modal-wrapper {\n position: fixed;\n top: 0;\n left: 0;\n display: flex;\n flex-direction: column;\n align-items: center;\n box-sizing: border-box;\n width: 100vw;\n height: 100%;\n overflow-y: auto;\n padding: 3rem;\n}\n@media (max-width: 48rem) {\n .c-modal-wrapper {\n justify-content: center;\n padding: 1.5rem;\n }\n}\n@media (max-width: 30rem) {\n .c-modal-wrapper {\n padding: 0.5rem;\n }\n}\n.c-modal {\n position: relative;\n border-radius: 0.5rem;\n max-height: 100%;\n max-width: 100%;\n background-color: var(--white);\n color: var(--charcoalGrey);\n}\n.c-modal--xsmall {\n width: 24rem;\n}\n@media (max-width: 25rem) {\n .c-modal--xsmall {\n width: 100%;\n }\n}\n.c-modal--small {\n width: 34rem;\n}\n@media (max-width: 35rem) {\n .c-modal--small {\n width: 100%;\n }\n}\n.c-modal--medium {\n width: 36rem;\n}\n@media (max-width: 39rem) {\n .c-modal--medium {\n width: 100%;\n }\n}\n.c-modal--large {\n width: 40rem;\n}\n@media (max-width: 46rem) {\n .c-modal--large {\n width: 100%;\n }\n}\n.c-modal--xlarge {\n width: 50rem;\n}\n@media (max-width: 56rem) {\n .c-modal--xlarge {\n width: 100%;\n }\n}\n.c-modal--xxlarge {\n width: 60rem;\n}\n@media (max-width: 66rem) {\n .c-modal--xxlarge {\n width: 100%;\n }\n}\n@media (max-width: 48rem) {\n .c-modal-wrapper.c-modal-wrapper--fullscreen {\n padding: 0;\n }\n}\n@media (max-width: 48rem) {\n .c-modal.c-modal--fullscreen {\n height: 100%;\n width: 100%;\n border-radius: 0;\n box-sizing: border-box;\n }\n}\n.c-modal-header,\n.c-modal-header--branded {\n margin: 0 0 1rem;\n padding: 1.687rem 3rem 0 2rem;\n overflow: visible;\n min-height: 2.5rem;\n}\n.c-modal-header h2,\n.c-modal-header--branded h2 {\n margin: 0;\n font-weight: bold;\n}\n@media (max-width: 30rem) {\n .c-modal-header,\n .c-modal-header--branded {\n margin-bottom: 0.5rem;\n padding: 1.187rem 2rem 0 1.5rem;\n }\n .c-modal-header h2,\n .c-modal-header--branded h2 {\n font-size: 1.25rem;\n }\n}\n.c-modal-header--branded {\n padding: 1rem 3rem;\n}\n.c-modal-header--branded img {\n display: block;\n max-height: 3.5rem;\n margin: 0 auto;\n}\n.c-modal-illu-header,\n.c-modal-illu-header--ghost {\n display: flex;\n align-items: center;\n justify-content: center;\n margin: 0 0 1rem;\n max-width: 100%;\n}\n.c-modal-illu-header > *,\n.c-modal-illu-header--ghost > * {\n max-width: inherit;\n}\n.c-modal-illu-header--ghost {\n position: absolute;\n left: 0;\n right: 0;\n top: 1rem;\n margin: 0.5rem 0;\n opacity: 0;\n max-height: 2rem;\n transition: opacity 150ms ease-in, top 150ms 50ms ease-in;\n}\n.c-modal-illu-header--ghost > * {\n max-height: inherit;\n}\n.c-modal-illu-header--ghost.is-active {\n top: 0;\n opacity: 1;\n transition: opacity 150ms 50ms ease-in, top 150ms ease-in;\n}\n.c-modal--small-spacing .c-modal-header {\n padding: 1.187rem 3rem 0 1.5rem;\n}\n@media (max-width: 30rem) {\n .c-modal--small-spacing .c-modal-header {\n padding: 0.687rem 2rem 0 1rem;\n }\n}\n.c-modal--large-spacing .c-modal-header {\n padding: 2.687rem 3rem 0 3rem;\n}\n@media (max-width: 48rem) {\n .c-modal--large-spacing .c-modal-header {\n padding: 1.687rem 2rem 0 2rem;\n }\n}\n.c-modal-app {\n display: flex;\n align-items: center;\n font-size: 1.25rem;\n color: var(--charcoalGrey);\n}\n.c-app-editor {\n font-weight: normal;\n}\n.c-modal-app-icon {\n height: 1.125rem;\n margin-right: 0.5rem;\n}\n.c-modal-content-fixed {\n border-bottom: 0.063rem solid var(--dividerColor);\n flex: 0 0 auto;\n padding: 0 2rem;\n}\n.c-modal--small-spacing .c-modal-content-fixed {\n padding: 0 1.5rem;\n}\n@media (max-width: 30rem) {\n .c-modal--small-spacing .c-modal-content-fixed {\n padding: 0 1rem;\n }\n}\n.c-modal--large-spacing .c-modal-content-fixed {\n padding: 0 3rem;\n}\n@media (max-width: 30rem) {\n .c-modal--large-spacing .c-modal-content-fixed {\n padding: 0 2rem;\n }\n}\n.c-modal-content {\n padding: 0 2rem;\n}\n.c-modal-content:last-child {\n padding-bottom: 2rem;\n border-bottom-right-radius: 0.5rem;\n border-bottom-left-radius: 0.5rem;\n}\n@media (max-width: 30rem) {\n .c-modal-content {\n padding: 0 1.5rem;\n }\n .c-modal-content:last-child {\n padding-bottom: 1.5rem;\n }\n}\n.c-modal--small-spacing .c-modal-content {\n padding: 0 1.5rem;\n}\n.c-modal--small-spacing .c-modal-content:last-child {\n padding-bottom: 1.5rem;\n}\n@media (max-width: 30rem) {\n .c-modal--small-spacing .c-modal-content {\n padding: 0 1rem;\n }\n .c-modal--small-spacing .c-modal-content:last-child {\n padding-bottom: 1rem;\n }\n}\n.c-modal--large-spacing .c-modal-content {\n padding: 0 3rem;\n}\n.c-modal--large-spacing .c-modal-content:last-child {\n padding-bottom: 3rem;\n}\n@media (max-width: 48rem) {\n .c-modal--large-spacing .c-modal-content {\n padding: 0 2rem;\n }\n .c-modal--large-spacing .c-modal-content:last-child {\n padding-bottom: 2rem;\n }\n}\n.c-modal-footer {\n padding: 1rem 1.25rem 1.25rem;\n}\n.c-modal-footer--button button {\n margin-bottom: 0.25rem;\n}\n@media (max-width: 48rem) {\n .c-modal-footer--button button {\n min-width: calc(50% - 0.5rem);\n }\n}\n.c-modal-section {\n border-top: 0.063rem solid var(--dividerColor);\n}\n.c-modal-close {\n box-sizing: border-box;\n position: absolute;\n top: 1.5rem;\n right: 1.5rem;\n margin: 0;\n padding: 0.5rem;\n background-color: transparent;\n border: 0;\n cursor: pointer;\n display: block;\n width: 2.5rem;\n height: 2.5rem;\n z-index: 1;\n}\n@media (max-width: 30rem) {\n .c-modal-close {\n top: 0.813rem;\n right: 1rem;\n }\n}\n.c-modal--small-spacing .c-modal-close {\n top: 1rem;\n right: 1rem;\n}\n@media (max-width: 30rem) {\n .c-modal--small-spacing .c-modal-close {\n top: 0.313rem;\n right: 0.5rem;\n }\n}\n.c-modal--closable .c-modal-header {\n padding-right: 4.5rem;\n}\n.c-modal--large-spacing .c-modal-close {\n top: 2.5rem;\n right: 2.5rem;\n}\n@media (max-width: 48rem) {\n .c-modal--large-spacing .c-modal-close {\n top: 1.313rem;\n right: 1.5rem;\n }\n}\n.c-modal-close--notitle {\n top: 0.375rem;\n right: 0.375rem;\n}\n.c-modal--overflowHidden {\n overflow: hidden;\n}\n.c-modal-back-button {\n top: 0.375rem;\n left: 0.375rem;\n color: var(--coolGrey);\n}\n@media (max-width: 48rem) {\n .c-modal-back-button {\n top: 0;\n left: 0;\n }\n}\n.c-modal-close--notitle + .c-modal-content {\n margin-top: 3rem;\n}\n","/*------------------------------------*\\\n Animations\n\\*------------------------------------*/\n/*\n Animations\n\n Available animations:\n\n spin - Animates an element by rotating it endlessly by 360 deg (used by the loading spinner)\n\n Styleguide Generic.animation\n*/\n@keyframes spin\n from\n transform rotate(0deg)\n to\n transform rotate(359deg)\n \n@keyframes shake\n 10%, 90%\n transform translate3d(-1px, 0, 0)\n \n 20%, 80%\n transform translate3d(2px, 0, 0)\n\n 30%, 50%, 70%\n transform translate3d(-4px, 0, 0)\n\n 40%, 60%\n transform translate3d(4px, 0, 0)\n\n$transition-transform-ease-out\n transition transform .1s ease-out\n\n$spin-anim\n // arguments' order is important: the animation name must stay first\n // so that scoping works\n animation spin 1s linear infinite\n\n@media (prefers-reduced-motion: reduce)\n $transition-transform-ease-out\n transition none\n $spin-anim\n animation none","@require '../settings/breakpoints'\n@require '../tools/mixins'\n\n/*------------------------------------*\\\n Display utilities\n\\*------------------------------------*/\n\n/*\n Visually hidden element but still readable by screen-readers\n FR : http://www.ffoodd.fr/cache-cache-css/\n EN : http://hugogiraudel.com/2016/10/13/css-hide-and-seek/\n*/\n\nhidden()\n // @stylint off\n position absolute !important\n border 0 !important\n width rem(1) !important\n height rem(1) !important\n overflow hidden !important\n padding 0 !important\n white-space nowrap !important\n clip rect(rem(1), rem(1), rem(1), rem(1)) !important\n clip-path inset(50%) !important\n // @stylint on\n\n$visuallyhidden\n hidden()\n\n// Because Stylus doesn't allow me to @extend inside @media… yeah… that sucks\n+medium-screen()\n $visuallyhidden-mobile\n hidden()\n\n$hide\n hide()\n\n$hide--mob\n +lt-desktop()\n display none !important // @stylint ignore\n\n$hide--tablet\n +gt-tablet()\n display none !important // @stylint ignore\n\n$hide--desk\n +gt-mobile()\n display none !important // @stylint ignore\n\n// Global classes\nglobal('.u-visuallyhidden', $visuallyhidden)\nglobal('.u-hide', $hide)\nglobal('.u-hide--mob', $hide--mob)\nglobal('.u-hide--tablet', $hide--tablet)\nglobal('.u-hide--desk', $hide--desk)\n\ndisplay-none()\n display none\n\ndisplay-inline()\n display inline\n\ndisplay-block()\n display block\n\ndisplay-inline-block()\n display inline-block\n\ndisplay-inline-table()\n display inline-table\n\ndisplay-table()\n display table\n\ndisplay-table-cell()\n display table-cell\n\ndisplay-table-row()\n display table-row\n\ndisplay-table-row-group()\n display table-row-group\n\ndisplay-table-column()\n display table-column\n\ndisplay-table-column-group()\n display table-column-group\n\nprops = {\n 'display-none': 'dn',\n 'display-inline': 'di',\n 'display-block': 'db',\n 'display-inline-block': 'dib',\n 'display-inline-table': 'dit',\n 'display-table': 'dt',\n 'display-table-cell': 'dtc',\n 'display-table-row': 'dt-row',\n 'display-table-row-group': 'dt-row-group',\n 'display-table-column': 'dt-column',\n 'display-table-column-group': 'dt-column-group'\n}\n\nif cssmodules == true\n cssModulesUtils(props, breakpoints)\nelse\n nativeUtils(props, breakpoints)\n\n\n","/*------------------------------------*\\\n Mixins\n =====\n\n This file contains mixins:\n - hide()\n - reset()\n\\*------------------------------------*/\n/*\n Tools\n\n Weight: -9\n\n Styleguide Tools\n*/\n/*\n Mixins\n\n Available mixins\n\n Styleguide Tools.mixins\n*/\n// @stylint off\nuse('../scripts/deprecate.js')\n// @stylint on\n\n// Default Font-size\n$basefont ?= 16px\n\nrem($value, $base = $basefont)\n $max = length($value)\n\n $remValues = ()\n for $i in (0...$max)\n push($remValues, _convert-to-rem($value[$i], $base))\n\n return $remValues\n\n_convert-to-rem($px, $base)\n if (typeof($px) == 'unit')\n if ((unit($px) == '' || unit($px) == 'px') && ($px != 0))\n return (round($px / $base, 3))rem\n else\n return 0\n\n/*\n rem($value, $basefont)\n\n rem() takes one or more numeric values in pixel and calculates the rem values from it.\n\n NB: you don't have to explicitly write the `px` unit.\n\n $value - The value in pixel you want to translate in rem. For multiple values you can use `rem(14 12)` for shorthand properties such as `margin`. ⚠ Multiples values should be separated by spaces.\n $basefont - If you need to overwrite the default `$basefont` value of `16`\n\n Weight: 1\n\n Styleguide Tools.mixins.rem\n*/\n\n/*\n hide()\n\n hide() mixin definitely hides an element. This mixin doesn't take parameters.\n\n Weight: 2\n\n Styleguide Tools.mixins.hide\n*/\nhide()\n display none !important // @stylint ignore\n visibility hidden !important // @stylint ignore\n\n/*\n visually-hide()\n\n visually-hide() mixin visually hides an element. The element is still visible by screen readers.\n This mixin doesn't take parameters.\n\n Weight: 3\n\n Styleguide Tools.mixins.hide\n*/\nvisually-hide()\n border 0\n clip rect(0 0 0 0)\n clip-path polygon(0 0, 0 0, 0 0)\n height 1px\n margin -1px\n overflow hidden\n padding 0\n position absolute\n width 1px\n white-space nowrap\n\n/*\n reset()\n\n reset() mixin removes every padding, margin and border of an element.\n This mixin doesn't take parameters.\n\n Weight: 4\n\n Styleguide Tools.mixins.reset\n*/\nreset()\n margin 0\n padding 0\n border 0\n\nglobal(selector, placeholder, type = extend)\n if type == extend\n if cssmodules == true\n :global({selector})\n @extend {placeholder} // @stylint ignore\n else\n {selector}\n @extend {placeholder} // @stylint ignore\n else if type == mixin\n if cssmodules == true\n :global({selector})\n {placeholder}() // @stylint ignore\n else\n {selector}\n {placeholder}() // @stylint ignore\n\ncssModulesUtils(props, breakpoints)\n for kBp, vBp in breakpoints\n if vBp == ''\n for kProp, vProp in props\n :global(.u-{vProp})\n {kProp}()\n else\n @media (max-width: rem(lookup('BP-'+kBp)))\n for kProp, vProp in props\n :global(.u-{vProp}-{vBp}) // @stylint ignore\n {kProp}()\n\nnativeUtils(props, breakpoints)\n for kBp, vBp in breakpoints\n if vBp == ''\n for kProp, vProp in props\n .u-{vProp}\n {kProp}()\n else\n @media (max-width: rem(lookup('BP-'+kBp)))\n for kProp, vProp in props\n .u-{vProp}-{vBp} // @stylint ignore\n {kProp}()\n\n// @stylint on\n","@require '../tools/mixins'\n@require './colors'\n\n/*------------------------------------*\\\n Text utilities\n\\*------------------------------------*/\n\njson_colors=json('../settings/palette.json', { hash: true })\n\nfor color in utility_colors\n $color-{color}\n color: json_colors[color] !important // @stylint ignore\n\n global('.u-' + color, '$color-' + color)\n\n\n$breakword\n word-break break-word\n\n$ellipsis\n white-space nowrap\n overflow hidden\n text-overflow ellipsis\n\nspacellipsis()\n overflow hidden\n text-overflow ellipsis\n white-space break-spaces\n\nspace-ellipsis = {\n 'spacellipsis': 'spacellipsis'\n}\n\nif cssmodules == true\n cssModulesUtils(space-ellipsis, breakpoints)\nelse\n nativeUtils(space-ellipsis, breakpoints)\n\n$midellipsis\n display flex\n flex-wrap nowrap\n\n > * // @stylint ignore\n display inline-block\n max-width 50%\n overflow hidden\n white-space pre\n\n > :first-child\n text-overflow ellipsis\n\n > :last-child\n text-overflow clip\n direction rtl\n\n @supports(text-overflow: '[...]')\n > :first-child\n text-overflow '[...]'\n\n$link\n &:link\n color var(--linkColor) !important // @stylint ignore\n text-decoration var(--linkTextDecoration) !important // @stylint ignore\n\n &:visited\n &:active\n &:hover\n &:focus\n color var(--linkColorActive) !important // @stylint ignore\n\n// @stylint off\nlh-tiny()\n line-height 1!important\n\nlh-xsmall()\n line-height 1.1!important\n\nlh-small()\n line-height 1.2!important\n\nlh-medium()\n line-height 1.3!important\n\nlh-large()\n line-height 1.4!important\n\nlh-xlarge()\n line-height 1.5!important\n\nglobal('.u-lh-tiny', lh-tiny, mixin)\n\nglobal('.u-lh-xsmall', lh-xsmall, mixin)\n\nglobal('.u-lh-small', lh-small, mixin)\n\nglobal('.u-lh-medium', lh-medium, mixin)\n\nglobal('.u-lh-large', lh-large, mixin)\n\nglobal('.u-lh-xlarge', lh-xlarge, mixin)\n\nfz-tiny()\n font-size rem(12)!important\n lh-medium()\n\nfz-xsmall()\n font-size rem(13)!important\n lh-large()\n\nfz-small()\n font-size rem(14)!important\n lh-large()\n\nfz-medium()\n font-size rem(16)!important\n lh-xlarge()\n\nfz-large()\n font-size rem(18)!important\n lh-xlarge()\n\nfontsize = {\n 'fz-tiny': 'fz-tiny',\n 'fz-xsmall': 'fz-xsmall',\n 'fz-small': 'fz-small',\n 'fz-medium': 'fz-medium',\n 'fz-large': 'fz-large'\n}\n\nif cssmodules == true\n cssModulesUtils(fontsize, breakpoints)\nelse\n nativeUtils(fontsize, breakpoints)\n\nta-left()\n text-align left!important\n\nta-right()\n text-align right!important\n\nta-center()\n text-align center!important\n\nta-justify()\n text-align justify!important\n\ntextalign = {\n 'ta-left': 'ta-left',\n 'ta-right': 'ta-right',\n 'ta-center': 'ta-center',\n 'ta-justify': 'ta-justify'\n}\n\nif cssmodules == true\n cssModulesUtils(textalign, breakpoints)\nelse\n nativeUtils(textalign, breakpoints)\n\nfs-normal()\n font-style normal!important\n\nfs-italic()\n font-style italic!important\n\nfontstyle = {\n 'fs-normal': 'fs-normal',\n 'fs-italic': 'fs-italic'\n}\nif cssmodules == true\n cssModulesUtils(fontstyle, breakpoints)\nelse\n nativeUtils(fontstyle, breakpoints)\n\nfw-normal()\n font-weight normal\n\nfw-bold()\n font-weight bold\n\nfontweight = {\n 'fw-normal': 'fw-normal',\n 'fw-bold': 'fw-bold'\n}\nif cssmodules == true\n cssModulesUtils(fontweight, breakpoints)\nelse\n nativeUtils(fontweight, breakpoints)\n// @stylint on\n\n// Global classes\nglobal('.u-breakword', $breakword)\nglobal('.u-ellipsis', $ellipsis)\nglobal('.u-midellipsis', $midellipsis)\nglobal('.u-link', $link)\n","/*------------------------------------*\\\n Please, edit this file properly, with a 10 based incrementation,\n and keep things in order so it remains easily readable.\n\n How to use: just import this file in your component's style and call\n the related variable\n e.g.\n .my-app\n z-index $app-index\n\\*------------------------------------*/\n\n/*\n Z-Index\n\n List of every z-index related to components in order to keep a clean\n & maintainable order of indexes.\n\n Those indexes are 10 based so you can deal with extra layers using `$index + 1`\n\n $below-index - **index -1** Layer below the app, mostly for hiding purpose\n $app-index - **index 0** App index, the ground zero.\n $low-index - **index 1** Low level index, to make sure a positionned element goes over elements with z-index 0.\n $alert-index-mobile - **index 10** Alert index like success, errors, infos *mobile only*\n $nav-index - **index 20** Nav index\n $bar-index - **index 21** Bar index equals Nav index + 1, not actually used, just as reference.\n $selection-index - **index 30** Selection bar index, with actions for selected items\n $popover-index - **index 40** Popover index used by dropdown menu for example\n $overlay - **index 50** Overlay index for modals background\n $file-action-menu - **index 60** File action menu index *mobile only*\n $modal-index - **index 70** Modal index\n $modal-footer-index - **index 71** Modal footer index\n $modal-toolbar-index - **index 72** Modal toolbar index\n $alert-index - **index 80** Alert index such as success, errors, infos\n\n Styleguide Settings.z-index\n*/\n\n$below-index = -1\n$app-index = 0\n$low-index = 1\n$alert-index-mobile = 10\n$nav-index = 20\n$bar-index = $nav-index + 1 // Not actually used, just as reference\n$selection-index = 30\n$popover-index = 40\n$overlay-index = 50\n$file-action-menu = 60 // replaced by $drawer-index\n$drawer-index = 60\n$modal-index = 70\n$modal-footer-index = $modal-index + 1\n$modal-toolbar-index = $modal-footer-index + 1\n$alert-index = 80\n\n// @stylint off\nhtml\n --zIndex-below $below-index\n --zIndex-app $app-index\n --zIndex-low $low-index\n --zIndex-alertMobile $alert-index-mobile\n --zIndex-nav $nav-index\n --zIndex-bar $bar-index\n --zIndex-selection $selection-index\n --zIndex-popover $popover-index\n --zIndex-overlay $overlay-index\n --zIndex-fileActionMenu $file-action-menu\n --zIndex-drawer $drawer-index\n --zIndex-modal $modal-index\n --zindex-alert $alert-index\n// @stylint on\n\n","/*------------------------------------*\\\n Font Stack\n\\*------------------------------------*/\n\n/*\n Font Stack\n\n There's only one font available, Lato, which is used on body, so basically everywhere. It's also available in bold.\n\n Markup:\n <p>This is basic text</p>\n <p><strong>And this is bold text</strong></p>\n\n Styleguide Settings.fonts\n*/\nhtml\n --primaryFont Lato, sans-serif\n\n$font-labor\n font-family var(--primaryFont)\n","// @stylint off\n\n// FONTS\n@require '../settings/fontstack'\n@require '../settings/breakpoints'\n@require '../tools/mixins'\n\nhtml\n font-size 100%\n\nbody\n font 100%/1.5\n -moz-osx-font-smoothing grayscale\n -webkit-font-smoothing antialiased\n @extend $font-labor\n\n // Overrides Normalize.css default style\n button,\n input,\n optgroup,\n select,\n textarea\n @extend $font-labor\n\n// LAYOUT\nhtml\n height 100%\n\nbody\n display flex\n flex-direction column\n align-items stretch\n width 100vw\n height 100%\n margin 0\n\nhtml\nbody\n +medium-screen()\n display block\n height auto\n\n[role=application]\n display flex\n height inherit\n flex 1 1 100%\n overflow-x hidden\n overflow-y auto\n\n +medium-screen()\n overflow visible\n\n// COLORS\nhtml,\nbody\n background-color var(--white)\n color var(--black)\n\n// FORMS\n@require '../components/forms'\n\n[data-input=radio]\n @extend $form-checkbox\n\n label::before\n border-radius 50%\n border rem(2) solid var(--coolGrey)\n box-shadow inset 0 0 0 checkbox-size transparent\n\n input[type=radio]:checked + label::before\n box-shadow inset 0 0 0 rem(3) var(--paleGrey), inset 0 0 0 checkbox-size var(--dodgerBlue)\n\n\n[data-input=checkbox]\n @extend $form-checkbox\n\n label\n &::before\n &::after\n border-radius rem(2)\n\n &::before\n background-color var(--white)\n box-shadow inset 0 0 0 rem(2) var(--silver)\n\n &:hover\n box-shadow inset 0 0 0 rem(2) var(--dodgerBlue)\n\n &::after\n background-image embedurl('../../assets/icons/illus/check-white.svg')\n background-size contain\n\n &[aria-checked='mixed'] label::after\n background-image embedurl('../../assets/icons/illus/dash-white.svg')\n background-size contain\n\n input[type=checkbox]\n &:checked\n & + label::before\n box-shadow inset 0 0 0 checkbox-size var(--dodgerBlue)\n\n & + label::after\n opacity 1\n transform scale(1)\n\n &:not(:checked) + label::after\n opacity 0\n transform scale(0)\n// @stylint on\n","/*------------------------------------*\\\n Forms\n =====\n\n This file contains all needs for forms, inputs, labels...\n\\*------------------------------------*/\n\n@require '../components/button'\n@require '../tools/mixins'\n\ncheckbox-size = rem(16)\n\n$form\n .coz-form\n margin rem(16 0 8)\n\n a,\n a:visited\n color var(--dodgerBlue)\n text-decoration none\n\n a:hover,\n a:active\n text-decoration underline\n\n .coz-form\n .coz-form-group\n position relative\n // Managing input width with flex\n display flex\n flex-direction column\n\n .coz-form-desc\n margin-bottom rem(8)\n line-height 1.5\n\n .coz-form-label // Deprecated\n display block\n text-transform uppercase\n color var(--coolGrey)\n font-size rem(12)\n padding rem(9) 0\n margin-top rem(16)\n\n .coz-form-label--error // Deprecated\n display none\n color var(--pomegranate)\n\n .coz-form-errors\n color var(--pomegranate)\n\n$form-button\n .coz-form-controls\n display flex\n flex-direction row\n justify-content flex-end\n margin rem(16 0 8)\n\n a\n button\n input[type=submit]\n flex 0 0 auto\n margin rem(0 0 8 8)\n\n .coz-form-controls--full\n a\n button\n input[type=submit]\n flex 0 0 100%\n margin-bottom rem(8)\n\n .coz-form-controls--dispatch\n justify-content space-between\n\n a\n button\n input[type=submit]\n flex 0 0 49%\n margin 0 0 rem(8)\n\n &:last-child\n margin-left auto\n\n\n$form-text\n input[type=text]\n input[type=password]\n input[type=email]\n input[type=url]\n display inline-block\n padding rem(14) rem(12) rem(12) rem(14)\n box-sizing border-box\n border-radius rem(2)\n background var(--white)\n border rem(1) solid var(--dividerColor)\n color var(--black)\n\n &::placeholder\n color var(--coolGrey)\n font-size rem(16)\n\n &:focus\n border rem(1) solid var(--dodgerBlue)\n outline 0\n\n &:hover\n border rem(1) solid var(--coolGrey)\n\n &.error\n border rem(1) solid var(--pomegranate)\n\n\n$form-textarea\n textarea\n display inline-block\n padding rem(14 12 12 14)\n box-sizing border-box\n border-radius rem(2)\n background var(--white)\n border rem(1) solid var(--dividerColor)\n color var(--black)\n\n &::placeholder\n color var(--coolGrey)\n font-size rem(16)\n\n &:focus\n border rem(1) solid var(--dodgerBlue)\n outline 0\n\n &:hover\n border rem(1) solid var(--coolGrey)\n\n &.error\n border rem(1) solid var(--pomegranate)\n\n\n$form-select\n select\n display inline-block\n padding rem(12 12 14)\n border-radius rem(4)\n box-sizing border-box\n background var(--white)\n border rem(1) solid var(--dividerColor)\n color var(--black)\n appearance none\n background-image embedurl('../../assets/icons/ui/dropdown.svg')\n background-position right rem(8) center\n background-repeat no-repeat\n\n &::-ms-expand\n display none\n\n &::placeholder\n color var(--slateGrey)\n font-size rem(17)\n\n &:focus\n border rem(1) solid var(--dodgerBlue)\n\n &:hover\n border rem(1) solid var(--coolGrey)\n\n &.error\n border rem(1) solid var(--pomegranate)\n background none\n\n\n$form-checkbox\n // To make sure that checkbox's wrapper have the height of the checkbox\n display flex\n\n input[type=radio]\n input[type=checkbox]\n hide()\n\n label\n position relative\n display inline-block\n width checkbox-size\n height checkbox-size\n padding-left checkbox-size * 1.4\n cursor pointer\n\n &::before\n &::after\n content ''\n position absolute\n left 0\n top 0\n box-sizing border-box\n width checkbox-size\n height checkbox-size\n\n &::before\n transition box-shadow 350ms cubic-bezier(0, .89, .44, 1)\n\n &::after\n transition-duration .2s\n transition-property opacity, transform\n\n\n$form-progress\n progress\n margin rem(8) 0\n width 100%\n height rem(8)\n color var(--dodgerBlue)\n background var(--paleGrey)\n border 0\n border-radius rem(18)\n\n // chrome and safari\n &::-webkit-progress-bar\n background var(--paleGrey)\n border-radius rem(18)\n\n &::-webkit-progress-value\n background var(--charcoalGrey)\n border-radius rem(18)\n\n // firefox\n &::-moz-progress-bar\n background var(--charcoalGrey)\n border-radius rem(18)\n\n// New styles\n$label\n text-transform uppercase\n color var(--secondaryTextColor)\n font-size rem(13)\n font-weight bold\n line-height rem(16)\n\n &.is-error\n color var(--pomegranate)\n\n$label--block\n display block\n padding rem(8) 0\n\n$input--disabled\n cursor not-allowed\n background-color var(--paleGrey)\n color var(--charcoalGrey)\n\n &:hover\n &:focus\n border rem(1) solid var(--dividerColor)\n\n$input-text\n display inline-block\n width 100%\n max-width rem(512)\n padding rem(13 16)\n box-sizing border-box\n border-radius rem(3)\n background var(--white)\n border rem(1) solid var(--dividerColor)\n font-size rem(16)\n line-height 1.25\n color var(--charcoalGrey)\n outline 0\n\n &::placeholder\n color var(--coolGrey)\n font-size rem(16)\n\n &:hover\n border rem(1) solid var(--coolGrey)\n\n &:focus\n border rem(1) solid var(--dodgerBlue)\n outline 0\n\n &.is-error\n &:not(:focus):invalid\n border rem(1) solid var(--pomegranate)\n\n &[aria-disabled=true]\n &[disabled]\n @extend $input--disabled\n\n\ninput-text--tiny =\n border-radius rem(2)\n padding rem(4 8 6)\n$input-text--tiny\n {input-text--tiny}\n\ninput-text--medium =\n border-radius rem(2)\n padding rem(8 16 10)\n$input-text--medium\n {input-text--medium}\n\ninput-text--large =\n border-radius rem(3)\n padding rem(13 16)\n$input-text--large\n {input-text--large}\n\ninput-text--fullwidth =\n max-width 100%\n$input-text--fullwidth\n {input-text--fullwidth}\n\n$checkbox\n // To make sure that checkbox's wrapper have the height of the checkbox\n display flex\n align-items center\n min-width checkbox-size\n min-height checkbox-size\n\n span\n position relative\n display inline-block\n padding-left checkbox-size * 1.5\n cursor pointer\n line-height 1.5\n\n &::before\n &::after\n content ''\n position absolute\n left 0\n top 50%\n box-sizing border-box\n width checkbox-size\n height checkbox-size\n border-radius rem(2)\n\n &::before\n transition box-shadow 350ms cubic-bezier(0, .89, .44, 1)\n background-color var(--white)\n box-shadow inset 0 0 0 rem(2) var(--silver)\n transform translateY(-50%)\n\n &:hover::before\n box-shadow inset 0 0 0 rem(2) var(--dodgerBlue)\n\n &::after\n background-image embedurl('../../assets/icons/illus/check-white.svg')\n background-size contain\n transition-duration .2s\n transition-property opacity, transform\n\n &[aria-checked='mixed'] span::after\n background-image embedurl('../../assets/icons/illus/dash-white.svg')\n background-size contain\n\n &[aria-disabled=true]\n span\n opacity .5\n cursor not-allowed\n\n :hover::before\n box-shadow inset 0 0 0 rem(2) var(--silver)\n\n ::before\n background-color var(--paleGrey)\n\n input\n visually-hide()\n\n &:focus + span::before\n box-shadow inset 0 0 0 rem(2) var(--dodgerBlue)\n\n &:checked\n & + span::before\n box-shadow inset 0 0 0 checkbox-size var(--dodgerBlue)\n\n & + span::after\n opacity 1\n transform translateY(-50%) scale(1)\n\n &:not(:checked) + span::after\n opacity 0\n transform translateY(-50%) scale(0)\n\n &.is-error span\n color var(--pomegranate)\n\n &::before\n box-shadow inset 0 0 0 rem(2) var(--pomegranate)\n background-color var(--yourPink)\n\n &--noGutter span\n padding-left 0\n\n\n$radio\n @extend $checkbox\n span\n &::before\n &::after\n border-radius 50%\n\n &::after\n content ''\n background var(--white)\n border rem(5) solid var(--dodgerBlue)\n box-sizing border-box\n width rem(16)\n height rem(16)\n\n$textarea\n @extend $input-text\n display block\n width 100%\n min-height rem(120)\n resize vertical\n\n$textarea--tiny\n @extend $input-text--tiny\n min-height rem(48)\n\n$textarea--medium\n @extend $input-text--medium\n min-height rem(80)\n\n$textarea--fullwidth\n @extend $input-text--fullwidth\n\n\n$select-arrow-padding\n padding-right rem(38)\n\n$select\n @extend $input-text\n @extend $select-arrow-padding\n appearance none\n background embedurl('../../assets/icons/illus/bottom-select.svg') right rem(16) center no-repeat\n background-size rem(14)\n text-align left\n\n &::-ms-expand\n display none\n\n$select--disabled\n @extend $input--disabled\n\n &:hover\n &:focus\n // Border is set to 0, otherwise SelectBox will\n // get large borders on hover\n border-width 0\n\n$select--tiny\n @extend $input-text--tiny\n @extend $select-arrow-padding\n\n$select--medium\n @extend $input-text--medium\n @extend $select-arrow-padding\n\n$select--fullwidth\n @extend $input-text--fullwidth\n @extend $select-arrow-padding\n\n$field\n position relative\n display flex\n flex-direction column\n margin rem(8 0 16)\n\n$field-inline\n display flex\n align-items flex-start\n flex-direction row\n margin rem(8 0 8 24)\n\n +small-screen()\n flex-direction column\n margin-left 0\n\n$inputgroup\n display inline-flex\n flex-direction row\n box-sizing border-box\n align-items stretch\n width 100%\n max-width rem(512)\n border rem(1) solid var(--dividerColor)\n border-radius rem(2)\n &:hover\n border rem(1) solid var(--coolGrey)\n\n$inputgroup--focus\n &\n &:hover\n border-color var(--dodgerBlue)\n\n$inputgroup--error\n border-color var(--pomegranate)\n\n$inputgroup--fullwidth\n max-width none\n\n$inputgroup-main\n flex 1 1 auto\n\n$inputgroup-input\n @extend $input-text\n border 0\n padding-right rem(8)\n &:hover\n &:focus\n position relative\n z-index 1\n border 0\n outline 0\n\n$inputgroup-side\n display flex\n flex-direction column\n justify-content center\n flex 0 1 auto\n max-width rem(140)\n\n$double-field\n width 100%\n\n$double-field--with-button\n box-sizing border-box\n position relative\n padding-right 2.5rem\n\n$double-field-line\n position relative\n\n$double-field-label\n min-height rem(40)\n\n$double-field-button\n position absolute\n right rem(-40)\n top rem(10)\n\n$double-field-wrapper\n display inline-flex\n width 100%\n margin-bottom rem(8)\n\n +small-screen()\n flex-direction column\n\n$double-field-input\n box-sizing border-box\n flex 1 1 70%\n & + &\n flex 1 1 auto\n","@require '../tools/mixins'\n@require '../settings/breakpoints'\n@require '../settings/z-index'\n@require '../elements/defaults'\n\n/*------------------------------------*\\\n Layout vars\n\\*------------------------------------*/\nbarHeight = rem(48)\nnavHeight = rem(48)\n\n/*------------------------------------*\\\n Layouts\n\\*------------------------------------*/\n\n$centerized\n position absolute\n top 50%\n left 50%\n transform translateX(-50%) translateY(-50%)\n\n\n$content-center\n display flex\n align-items center\n justify-content center\n\n\n$fullbleed\n position fixed\n bottom 0\n top 0\n left 0\n right 0\n\n// Elastic Layout — Usually with fixed header and/or fixed footer and an extensible content zone with scrolling inside\n$elastic\n display flex\n flex-flow column nowrap\n align-items stretch\n\n$elastic-content\n // Those backgrounds give a visual information that the content is scrollable\n background linear-gradient(white 30%, rgba(255, 255, 255, 0)),\n linear-gradient(rgba(255, 255, 255, 0), white 70%) 0 100%,\n linear-gradient(rgba(214, 216, 218, .25) 0, rgba(214, 216, 218, .25) 25%, rgba(255, 255, 255, 0) 26%, rgba(255, 255, 255, 0) 100%),\n linear-gradient(rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0) 74%, rgba(214, 216, 218, .25) 75%, rgba(214, 216, 218, .25) 100%) 0 100%\n background-repeat no-repeat\n background-color var(--white)\n background-size 100% rem(32), 100% rem(32), 100% rem(8), 100% rem(8)\n background-attachment local, local, scroll, scroll\n background-clip padding-box\n overflow auto\n -webkit-overflow-scrolling touch\n\n$elastic-bar\n flex 0 0 auto\n\n// One column layout\n$app\n box-sizing border-box\n display flex\n max-width 100%\n width 100%\n height 100%\n\n main\n display flex\n flex-direction column\n flex 0 0 auto\n\n main,\n main > [role=contentinfo], // Deprecated\n main > [role=main]\n position relative\n display flex\n flex-direction column\n flex 1 1 auto\n box-sizing border-box\n height 100%\n overflow-x hidden\n overflow-y auto\n\n +medium-screen()\n display block\n\n // iPhone X environment tweak\n main\n padding-left env(safe-area-inset-left)\n padding-right env(safe-area-inset-right)\n padding-bottom env(safe-area-inset-bottom)\n\n main,\n main > [role=contentinfo], // Deprecated\n main > [role=main]\n display block\n overflow visible\n\n // These pseudo-element are \"ghost\" elements replacing bar and nav\n &:before\n &:after\n content ''\n display block\n\n &:before\n height barHeight\n\n &:after\n height navHeight\n\n// STICKY layout\n// When you want a sidebar and you want it to act like a sticky footer on mobile\n$app-2panes-sticky\n @extend $app\n flex 0 0 100%\n align-items stretch\n\n & > aside\n display flex\n flex-direction column\n flex 0 0 auto\n\n main,\n main > [role=contentinfo], // Deprecated\n main > [role=main]\n height auto\n\n +medium-screen()\n > aside\n position fixed\n bottom 0\n left 0\n display block\n z-index $nav-index\n width 100%\n","@require '../settings/z-index'\n@require '../settings/breakpoints'\n@require '../objects/layouts'\n@require '../tools/mixins'\n\n/*------------------------------------*\\\n Modals\n ======\n\n This file contains all needs for modals\n\\*------------------------------------*/\n\n// Modal sizes\nxsmall-width = rem(384)\nsmall-width = rem(544)\nmedium-width = rem(576)\nlarge-width = rem(640)\nxlarge-width = rem(800)\nxxlarge-width = rem(960)\n\n// Modal margins\nxsmall-margin = rem(8)\nsmall-margin = rem(8)\nmedium-margin = rem(24)\nlarge-margin = rem(48)\nxlarge-margin = rem(48)\nxxlarge-margin = rem(48)\n\n// Modal paddings\ntiny-padding = rem(16)\nsmall-padding = rem(24)\nmedium-padding = rem(32)\nlarge-padding = rem(48)\nxlarge-padding = rem(48)\nxxlarge-padding = rem(48)\n\n\n$modals\n position relative\n z-index $modal-index\n\n$modal-wrapper\n position fixed\n top 0\n left 0\n display flex\n flex-direction column\n align-items center\n box-sizing border-box\n width 100vw\n height 100%\n overflow-y auto\n padding large-margin\n\n +small-screen()\n justify-content center\n padding medium-margin\n\n +tiny-screen()\n padding small-margin\n\n$modal\n @extend $elastic\n position relative\n border-radius rem(8)\n max-height 100%\n max-width 100%\n background-color var(--white)\n color var(--charcoalGrey)\n\nfor size in 'xsmall' 'small' 'medium' 'large' 'xlarge' 'xxlarge'\n $modal--{size}\n width lookup(size + '-width')\n\n $max-width=lookup(size + '-width') + lookup(size + '-margin') * 2\n @media (max-width: $max-width)\n width 100%\n\n$modal-wrapper--fullscreen\n +small-screen()\n padding 0\n\n$modal--fullscreen\n +small-screen()\n height 100%\n width 100%\n border-radius 0\n box-sizing border-box\n\n$modal-header\n @extend $elastic-bar\n margin 0 0 rem(16)\n padding (medium-padding - rem(5)) rem(48) 0 medium-padding\n overflow visible\n min-height rem(40)\n\n h2\n margin 0\n font-weight bold\n\n +tiny-screen()\n margin-bottom rem(8)\n padding (small-padding - rem(5)) rem(32) 0 small-padding\n\n h2\n font-size rem(20)\n\n$modal-header--branded\n @extend $modal-header\n padding rem(16 48)\n\n img\n display block\n max-height rem(56)\n margin 0 auto\n\n$modal-header-icon\n display flex\n align-items center\n justify-content center\n margin 0 0 rem(16)\n max-width 100%\n\n > * // @stylint ignore\n max-width inherit\n\n$modal-header-icon--ghost\n @extend $modal-header-icon\n position absolute\n left 0\n right 0\n top rem(16)\n margin rem(8) 0\n opacity 0\n max-height rem(32)\n transition opacity 150ms ease-in, top 150ms 50ms ease-in\n\n > * // @stylint ignore\n max-height inherit\n\n$modal-header-icon--ghost-active\n top 0\n opacity 1\n transition opacity 150ms 50ms ease-in, top 150ms ease-in\n\n$modal-header--small\n padding (small-padding - rem(5)) rem(48) 0 small-padding\n\n +tiny-screen()\n padding (tiny-padding - rem(5)) rem(32) 0 tiny-padding\n\n$modal-header--large\n padding (large-padding - rem(5)) rem(48) 0 large-padding\n\n +small-screen()\n padding (medium-padding - rem(5)) rem(32) 0 medium-padding\n\n$modal-header-app\n display flex\n align-items center\n font-size rem(20)\n color var(--charcoalGrey)\n\n$modal-header-app-editor\n font-weight normal\n\n$modal-header-app-icon\n height rem(18)\n margin-right rem(8)\n\n$modal-content-fixed\n border-bottom rem(1) solid var(--dividerColor)\n flex 0 0 auto\n padding 0 medium-padding\n\n$modal-content-fixed--small\n padding 0 small-padding\n\n +tiny-screen()\n padding 0 tiny-padding\n\n$modal-content-fixed--large\n padding 0 large-padding\n\n +tiny-screen()\n padding 0 medium-padding\n\n$modal-content\n @extend $elastic-content\n padding 0 medium-padding\n\n &:last-child\n padding-bottom medium-padding\n border-bottom-right-radius rem(8)\n border-bottom-left-radius rem(8)\n\n +tiny-screen()\n padding 0 small-padding\n\n &:last-child\n padding-bottom small-padding\n\n$modal-content--small\n padding 0 small-padding\n\n &:last-child\n padding-bottom small-padding\n\n +tiny-screen()\n padding 0 tiny-padding\n\n &:last-child\n padding-bottom tiny-padding\n\n$modal-content--large\n padding 0 large-padding\n\n &:last-child\n padding-bottom large-padding\n\n +small-screen()\n padding 0 medium-padding\n\n &:last-child\n padding-bottom medium-padding\n\n$modal-footer\n @extend $elastic-bar\n padding tiny-padding (small-padding - rem(4)) (small-padding - rem(4))\n\n$modal-footer--button\n button\n margin-bottom rem(4)\n\n +small-screen()\n min-width calc(50% - .5rem)\n\n$modal-section\n border-top rem(1) solid var(--dividerColor)\n\ncross-size=rem(40)\n\n$modal-close\n box-sizing border-box\n position absolute\n top rem(24)\n right rem(24)\n margin 0\n padding rem(8)\n background-color transparent\n border 0\n cursor pointer\n display block\n width cross-size\n height cross-size\n z-index 1\n\n +tiny-screen()\n top rem(13)\n right rem(16)\n\n$modal-close--small\n top rem(16)\n right rem(16)\n\n +tiny-screen()\n top rem(5)\n right rem(8)\n\n$modal-header--closable\n padding-right cross-size + rem(32)\n\n\n$modal-close--large\n top rem(40)\n right rem(40)\n\n +small-screen()\n top rem(21)\n right rem(24)\n\n$modal-close--notitle\n top rem(6)\n right rem(6)\n\n$modal--hidden\n overflow hidden\n\n$modal-back-button\n top rem(6)\n left rem(6)\n color var(--coolGrey)\n\n +small-screen()\n top 0\n left 0\n","@require '../../stylus/tools/mixins'\n@require '../../stylus/settings/palette'\n@require '../../stylus/components/button'\n@require '../../stylus/utilities/display'\n@require '../../stylus/components/modals'\n\n.c-modal-container\n @extend $modals\n\n.c-modal-wrapper\n @extend $modal-wrapper\n\n &.c-modal-wrapper--fullscreen\n @extend $modal-wrapper--fullscreen\n\n.c-modal\n @extend $modal\n\n &.c-modal--fullscreen\n @extend $modal--fullscreen\n\n.c-modal--xsmall\n @extend $modal--xsmall\n\n.c-modal--small\n @extend $modal--small\n\n.c-modal--medium\n @extend $modal--medium\n\n.c-modal--large\n @extend $modal--large\n\n.c-modal--xlarge\n @extend $modal--xlarge\n\n.c-modal--xxlarge\n @extend $modal--xxlarge\n\n\n.c-modal-header\n @extend $modal-header\n\n .c-modal--closable &\n @extend $modal-header--closable\n\n.c-modal-header--branded\n @extend $modal-header--branded\n\n.c-modal-illu-header\n @extend $modal-header-icon\n\n.c-modal-illu-header--ghost\n @extend $modal-header-icon--ghost\n\n &.is-active\n @extend $modal-header-icon--ghost-active\n\n.c-modal-app\n @extend $modal-header-app\n\n.c-app-editor\n @extend $modal-header-app-editor\n\n.c-modal-app-icon\n @extend $modal-header-app-icon\n\n.c-modal-footer\n @extend $modal-footer\n\n.c-modal-footer--button\n @extend $modal-footer--button\n\n.c-modal-section\n @extend $modal-section\n\n.c-modal-content\n @extend $modal-content\n\n.c-modal-content-fixed\n @extend $modal-content-fixed\n\n.c-modal--small-spacing\n .c-modal-close\n @extend $modal-close--small\n .c-modal-header\n @extend $modal-header--small\n .c-modal-content\n @extend $modal-content--small\n .c-modal-content-fixed\n @extend $modal-content-fixed--small\n\n.c-modal--large-spacing\n .c-modal-close\n @extend $modal-close--large\n .c-modal-header\n @extend $modal-header--large\n .c-modal-content\n @extend $modal-content--large\n .c-modal-content-fixed\n @extend $modal-content-fixed--large\n\n.c-modal-close\n @extend $modal-close\n\n.c-modal-close--notitle\n @extend $modal-close--notitle\n\n.c-modal--overflowHidden\n @extend $modal--hidden\n\n.c-modal-close--notitle + .c-modal-content\n margin-top rem(48)\n\n.c-modal-back-button\n @extend $modal-back-button\n","@require '../tools/mixins'\n\n/*------------------------------------*\\\n Breakpoints\n =====\n\\*------------------------------------*/\n\n// variables\n\nBP-teeny = 375\nBP-tiny = 480\nBP-small = 768\nBP-medium = 1023\nBP-large = 1200\nBP-extra-large = 1439\n\n// Standard breakpoints collection for utilities\nbreakpoints = {\n 'none': '',\n 'tiny': 't',\n 'small': 's',\n 'medium': 'm',\n}\n\n/*\n Breakpoints\n\n This is the collection of available breakpoint variables:<br><br>\n - `BP-teeny` - 375px\n - `BP-tiny` - 480px\n - `BP-small` - 768px\n - `BP-medium` - 1023px\n - `BP-large` - 1200px\n - `BP-extra-large` - 1439px\n\n <br>Also we have a standard breakpoints collection meant to be used as suffixes for some utility classes<br>\n\n If you want a utility class to trigger only at defined breakpoints you can use those:<br><br>\n - `-t` - refers to `tiny` breakpoint (max-width: 480px)\n - `-s` - refers to `small` breakpoint (max-width: 768px)\n - `-m` - refers to `medium` breakpoint (max-width: 1023px)\n\n Styleguide Settings.breakpoints\n*/\n\n/*\n Media Queries mixins\n\n You can use these mixins with no arguments and they will output\n the desired a `max-width` media-query. Use the direction argument\n to set it to `min`.\n\n Styleguide Settings.breakpoints.mixins\n*/\n\n// mixins\n// @stylint off\nsize-helper(direction, size)\n direction == 'min' ? size + 1 : size\n\n/*\n teeny-screen()\n\n teeny-screen() Refers to (max-width: 375px)\n teeny-screen('min') Refers to (min-width: 376px)\n\n Weight: -6\n\n Styleguide Settings.breakpoints.mixins.teeny\n*/\nteeny-screen(direction='max')\n @media ({direction}-width: rem(size-helper(direction, BP-teeny)))\n {block}\n\n/*\n tiny-screen()\n\n tiny-screen() Refers to (max-width: 480px)\n tiny-screen('min') Refers to (min-width: 481px)\n\n Weight: -5\n\n Styleguide Settings.breakpoints.mixins.tiny\n*/\ntiny-screen(direction='max')\n @media ({direction}-width: rem(size-helper(direction, BP-tiny)))\n {block}\n\n/*\n small-screen()\n\n small-screen() Refers to (max-width: 768px)\n small-screen('min') Refers to (min-width: 769px)\n\n Weight: -4\n\n Styleguide Settings.breakpoints.mixins.small\n*/\nsmall-screen(direction='max')\n @media ({direction}-width: rem(size-helper(direction, BP-small)))\n {block}\n\n/*\n medium-screen()\n\n medium-screen() Refers to (max-width: 1023px)\n medium-screen('min') Refers to (min-width: 1024px)\n\n Weight: -3\n\n Styleguide Settings.breakpoints.mixins.medium\n*/\nmedium-screen(direction='max')\n @media ({direction}-width: rem(size-helper(direction, BP-medium)))\n {block}\n\n/*\n large-screen()\n\n large-screen() Refers to (max-width: 1200px)\n large-screen('min') Refers to (min-width: 1201px)\n\n Weight: -2\n\n Styleguide Settings.breakpoints.mixins.large\n*/\nlarge-screen(direction='max')\n @media ({direction}-width: rem(size-helper(direction, BP-large)))\n {block}\n\n/*\n extra-large-screen()\n\n extra-large-screen() Refers to (max-width: 1439px)\n extra-large-screen('min') Refers to (min-width: 1440px)\n\n Weight: -1\n\n Styleguide Settings.breakpoints.mixins.extra-large\n*/\nextra-large-screen(direction='max')\n @media ({direction}-width: rem(size-helper(direction, BP-extra-large)))\n {block}\n\n// mixins named\n\n/*\n small-device()\n\n Refers to (max-width: 543px), (max-height: 375px)\n Triggers when the viewport has a width smaller than 543px OR a height smaller than 375px\n\n Weight: 0\n\n Styleguide Settings.breakpoints.mixins.small-device\n*/\n\nsmall-device()\n @media (max-width: rem(size-helper('max', BP-tiny))), (max-height: rem(size-helper('max', BP-teeny)))\n {block}\n\n/*\n medium-device()\n\n Refers to (min-width: 543px) and (min-height: 375px)\n Triggers when the viewport has a width bigger than 543px AND a height bigger than 375px\n\n Weight: 0\n\n Styleguide Settings.breakpoints.mixins.medium-device\n*/\n\nmedium-device()\n @media (min-width: rem(size-helper('min', BP-tiny))) and (min-height: rem(size-helper('min', BP-teeny)))\n {block}\n\n/*\n desktop()\n\n Refers to (min-width: 1024px)\n\n Weight: 0\n\n Styleguide Settings.breakpoints.mixins.desktop\n*/\ndesktop()\n @media (min-width: rem(size-helper('min', BP-medium)))\n {block}\n\n/*\n tablet()\n\n Refers to (min-width: 769px) and (max-width: 1023px)\n\n Weight: 1\n\n Styleguide Settings.breakpoints.mixins.tablet\n*/\ntablet()\n @media (min-width: rem(size-helper('min', BP-small))) and (max-width: rem(size-helper('max', BP-medium)))\n {block}\n\n/*\n mobile()\n\n Refers to small-screen() which is (max-width: 768px)\n\n Weight: 2\n\n Styleguide Settings.breakpoints.mixins.mobile\n*/\nmobile()\n +small-screen()\n {block}\n\n/*\n gt-mobile()\n\n Refers to (min-width: 769px)\n\n Weight: 3\n\n Styleguide Settings.breakpoints.mixins.gt-mobile\n*/\ngt-mobile()\n @media (min-width: rem(size-helper('min', BP-small)))\n {block}\n\n/*\n gt-tablet()\n\n Refers to (min-width: 1024px)\n\n Weight: 4\n\n Styleguide Settings.breakpoints.mixins.gt-tablet\n*/\ngt-tablet()\n @media (min-width: rem(size-helper('min', BP-medium)))\n {block}\n\n/*\n lt-desktop()\n\n Refers to medium-screen() which is (max-width: 1023px)\n\n Weight: 5\n\n Styleguide Settings.breakpoints.mixins.lt-desktop\n*/\nlt-desktop()\n +medium-screen()\n {block}\n// @stylint on\n"],sourceRoot:""}]),t.locals={"CozyTheme--normal":"cozy-ui-bar-CozyTheme--normal--GgDII","c-modal":"cozy-ui-bar-c-modal--2ICub","c-modal-content":"cozy-ui-bar-c-modal-content--KVDws","c-modal-header":"cozy-ui-bar-c-modal-header--XED91","c-modal-header--branded":"cozy-ui-bar-c-modal-header--branded--uEj-8","c-modal-footer":"cozy-ui-bar-c-modal-footer--14fzp","c-modal-container":"cozy-ui-bar-c-modal-container--30qmf","c-modal-wrapper":"cozy-ui-bar-c-modal-wrapper--17kzj","c-modal--xsmall":"cozy-ui-bar-c-modal--xsmall--35998","c-modal--small":"cozy-ui-bar-c-modal--small--3G05m","c-modal--medium":"cozy-ui-bar-c-modal--medium--39Q8p","c-modal--large":"cozy-ui-bar-c-modal--large--NVdKg","c-modal--xlarge":"cozy-ui-bar-c-modal--xlarge--2JDmw","c-modal--xxlarge":"cozy-ui-bar-c-modal--xxlarge--2GW6J","c-modal-illu-header":"cozy-ui-bar-c-modal-illu-header--2k0gQ","c-modal-illu-header--ghost":"cozy-ui-bar-c-modal-illu-header--ghost--3zgoT","is-active":"cozy-ui-bar-is-active--M5uQG","c-modal--small-spacing":"cozy-ui-bar-c-modal--small-spacing--2NmIi","c-modal--large-spacing":"cozy-ui-bar-c-modal--large-spacing--oIddB","c-modal-app":"cozy-ui-bar-c-modal-app--1Vluy","c-app-editor":"cozy-ui-bar-c-app-editor--2Ha3Y","c-modal-app-icon":"cozy-ui-bar-c-modal-app-icon--2Pyc-","c-modal-content-fixed":"cozy-ui-bar-c-modal-content-fixed--2C_-7","c-modal-footer--button":"cozy-ui-bar-c-modal-footer--button--3yPje","c-modal-section":"cozy-ui-bar-c-modal-section--2tQ5k","c-modal-close":"cozy-ui-bar-c-modal-close--HM_QO","c-modal--closable":"cozy-ui-bar-c-modal--closable--2sytJ","c-modal-close--notitle":"cozy-ui-bar-c-modal-close--notitle--2a-O4","c-modal--overflowHidden":"cozy-ui-bar-c-modal--overflowHidden--JNfIY","c-modal-back-button":"cozy-ui-bar-c-modal-back-button--aTdxE","c-modal-wrapper--fullscreen":"cozy-ui-bar-c-modal-wrapper--fullscreen--12m40","c-modal--fullscreen":"cozy-ui-bar-c-modal--fullscreen--1k9gf",spin:"cozy-ui-bar-spin--1NeSh",shake:"cozy-ui-bar-shake--8T61M"}},function(e,t,n){var r=n(467);e.exports=function(e,t){if(null==e)return{};var n,o,i=r(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},function(e,t,n){var r=n(116);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},function(e,t,n){var r=n(211),o=n(366),i=n(149),a=n(213);e.exports=function(e,t){return r(e)||o(e,t)||i(e,t)||a()}},function(e,t,n){var r=n(83);function o(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}e.exports=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var u=i?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(n,a,u):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.QueryDefinition=t.MutationTypes=t.Mutations=t.getDoctypeFromOperation=t.uploadFile=t.removeReferencedBy=t.addReferencedBy=t.removeReferencesTo=t.addReferencesTo=t.deleteDocument=t.updateDocuments=t.updateDocument=t.createDocument=t.isAGetByIdQuery=t.Q=void 0;var o=r(n(2)),i=r(n(4)),a=r(n(6)),u=r(n(26)),c=r(n(507));n(22);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var f=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,i.default)(this,e),this.doctype=t.doctype,this.id=t.id,this.ids=t.ids,this.selector=t.selector,this.fields=t.fields,this.indexedFields=t.indexedFields,this.partialFilter=t.partialFilter,this.sort=t.sort,this.includes=t.includes,this.referenced=t.referenced,this.limit=t.limit,this.skip=t.skip,this.cursor=t.cursor,this.bookmark=t.bookmark}return(0,a.default)(e,[{key:"checkSortOrder",value:function(e){var t=e.sort,n=e.selector,r=e.indexedFields,o=this.sort||t,i=this.selector||n||{},a=this.indexedFields||r;if(o){var u=a||Object.keys(i);if(u&&!(u.length<1))if(o.length>u.length)console.warn("You should not sort on non-indexed fields.\n\n Sort: ".concat(JSON.stringify(o),"\n\n Indexed fields: ").concat(u));else for(var c=0;c<o.length;c++)if(Object.keys(o[c])[0]!==u[c])return void console.warn("The sort order should be the same than the indexed fields.\n\n Sort: ".concat(JSON.stringify(o),"\n\n Indexed fields: ").concat(u,"\n"))}}},{key:"checkSelector",value:function(e){(0,c.default)(e,["$exists",!1])&&console.warn('The "$exists: false" predicate should be defined as a partial index for better performance.\n\n Selector: '.concat(e)),(0,c.default)(e,"$ne")&&console.info("The use of the $ne operator is more efficient with a partial index.\n\n Selector: ".concat(e))}},{key:"getById",value:function(t){if(!t)throw new Error("getById called with undefined id");return new e(l(l({},this.toDefinition()),{},{id:t}))}},{key:"getByIds",value:function(t){return new e(l(l({},this.toDefinition()),{},{ids:t}))}},{key:"where",value:function(t){return this.checkSortOrder({selector:t}),this.checkSelector(t),new e(l(l({},this.toDefinition()),{},{selector:t}))}},{key:"select",value:function(t){return new e(l(l({},this.toDefinition()),{},{fields:t}))}},{key:"indexFields",value:function(t){return this.checkSortOrder({indexedFields:t}),new e(l(l({},this.toDefinition()),{},{indexedFields:t}))}},{key:"partialIndex",value:function(t){return new e(l(l({},this.toDefinition()),{},{partialFilter:t}))}},{key:"sortBy",value:function(t){if(!(0,u.default)(t))throw new Error('Invalid sort, should be an array ([{ label: "desc"}, { name: "asc"}]), you passed '.concat(JSON.stringify(t),"."));return this.checkSortOrder({sort:t}),new e(l(l({},this.toDefinition()),{},{sort:t}))}},{key:"include",value:function(t){if(!Array.isArray(t))throw new Error("include() takes an array of relationship names");return new e(l(l({},this.toDefinition()),{},{includes:t}))}},{key:"limitBy",value:function(t){return new e(l(l({},this.toDefinition()),{},{limit:t}))}},{key:"UNSAFE_noLimit",value:function(){return new e(l(l({},this.toDefinition()),{},{limit:null}))}},{key:"offset",value:function(t){return new e(l(l({},this.toDefinition()),{},{bookmark:void 0,cursor:void 0,skip:t}))}},{key:"offsetCursor",value:function(t){return new e(l(l({},this.toDefinition()),{},{bookmark:void 0,skip:void 0,cursor:t}))}},{key:"offsetBookmark",value:function(t){return new e(l(l({},this.toDefinition()),{},{skip:void 0,cursor:void 0,bookmark:t}))}},{key:"referencedBy",value:function(t){return new e(l(l({},this.toDefinition()),{},{referenced:t}))}},{key:"toDefinition",value:function(){return{doctype:this.doctype,id:this.id,ids:this.ids,selector:this.selector,fields:this.fields,indexedFields:this.indexedFields,partialFilter:this.partialFilter,sort:this.sort,includes:this.includes,referenced:this.referenced,limit:this.limit,skip:this.skip,cursor:this.cursor,bookmark:this.bookmark}}}]),e}();t.QueryDefinition=f;t.Q=function(e){return new f({doctype:e})};t.isAGetByIdQuery=function(e){if(!e)return!1;var t=Object.values(e);return 0!==t.length&&(2===t.filter((function(e){return void 0!==e})).length&&void 0!==e.id)};var d=function(e){return{mutationType:C.CREATE_DOCUMENT,document:e}};t.createDocument=d;var p=function(e){return{mutationType:C.UPDATE_DOCUMENT,document:e}};t.updateDocument=p;var h=function(e){return{mutationType:C.UPDATE_DOCUMENTS,documents:e}};t.updateDocuments=h;var m=function(e){return{mutationType:C.DELETE_DOCUMENT,document:e}};t.deleteDocument=m;var y=function(e,t){return{mutationType:C.ADD_REFERENCES_TO,referencedDocuments:t,document:e}};t.addReferencesTo=y;var v=function(e,t){return{mutationType:C.REMOVE_REFERENCES_TO,referencedDocuments:t,document:e}};t.removeReferencesTo=v;var g=function(e,t){return{mutationType:C.ADD_REFERENCED_BY,referencedDocuments:t,document:e}};t.addReferencedBy=g;var b=function(e,t){return{mutationType:C.REMOVE_REFERENCED_BY,referencedDocuments:t,document:e}};t.removeReferencedBy=b;var w=function(e,t){return{mutationType:C.UPLOAD_FILE,file:e,dirPath:t}};t.uploadFile=w;t.getDoctypeFromOperation=function(e){if(!e.mutationType)return e.doctype;var t=e.mutationType;switch(t){case"CREATE_DOCUMENT":case"UPDATE_DOCUMENT":return e.document._type;case"UPDATE_DOCUMENTS":return e.documents[0]._type;case"DELETE_DOCUMENT":return e.document._type;case"ADD_REFERENCES_TO":case"UPLOAD_FILE":throw new Error("Not implemented");default:throw new Error("Unknown mutationType ".concat(t))}};var x={createDocument:d,updateDocument:p,updateDocuments:h,deleteDocument:m,addReferencesTo:y,removeReferencesTo:v,addReferencedBy:g,removeReferencedBy:b,uploadFile:w};t.Mutations=x;var C={CREATE_DOCUMENT:"CREATE_DOCUMENT",UPDATE_DOCUMENT:"UPDATE_DOCUMENT",UPDATE_DOCUMENTS:"UPDATE_DOCUMENTS",DELETE_DOCUMENT:"DELETE_DOCUMENT",ADD_REFERENCES_TO:"ADD_REFERENCES_TO",REMOVE_REFERENCES_TO:"REMOVE_REFERENCES_TO",ADD_REFERENCED_BY:"ADD_REFERENCED_BY",REMOVE_REFERENCED_BY:"REMOVE_REFERENCED_BY",UPLOAD_FILE:"UPLOAD_FILE"};t.MutationTypes=C},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;n(21);t.default={}},function(e,t,n){"use strict";n.r(t);var r=n(12),o=n.n(r),i=n(4),a=n.n(i),u=n(6),c=n.n(u),s=n(11),l=n.n(s),f=n(8),d=n.n(f),p=n(10),h=n.n(p),m=n(5),y=n.n(m),v=n(2),g=n.n(v),b=n(0),w=n.n(b),x=n(1),C=n.n(x),k=n(135),S=n.n(k),_=n(102),A=n(336),O=n.n(A),E=function(e){return'The "'.concat(e,"\" locale isn't supported by date-fns. or has not been included in the build. Check if you have configured a ContextReplacementPlugin that is too restrictive.")},B=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:P,r={};try{r[t]=n(242)("./".concat(t,"/index.js"))}catch(e){console.warn(E(t))}if(e&&e!==t)try{r[e]=n(242)("./".concat(e,"/index.js"))}catch(t){console.warn(E(e))}return function(t,n){return O()(t,n,{locale:r[e]})}};function j(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h()(this,n)}}n.d(t,"DEFAULT_LANG",(function(){return P})),n.d(t,"I18nContext",(function(){return T})),n.d(t,"I18n",(function(){return z})),n.d(t,"translate",(function(){return I})),n.d(t,"useI18n",(function(){return D})),n.d(t,"createUseI18n",(function(){return R})),n.d(t,"initTranslation",(function(){return _.b})),n.d(t,"extend",(function(){return _.a}));var P="en",T=w.a.createContext(),z=function(e){d()(n,e);var t=j(n);function n(e){var r;return a()(this,n),r=t.call(this,e),g()(l()(r),"UNSAFE_componentWillReceiveProps",(function(e){e.lang!==r.props.lang&&r.init(e)})),r.init(r.props),r}return c()(n,[{key:"init",value:function(e){var t=e.polyglot,n=e.lang,r=e.dictRequire,o=e.context,i=e.defaultLang;this.translator=t||Object(_.b)(n,r,o,i),this.format=B(n,i),this.t=this.translator.t.bind(this.translator),this.contextValue=this.getContextValue(e)}},{key:"getContextValue",value:function(e){return{t:this.t,f:this.format,lang:(e||this.props).lang}}},{key:"getChildContext",value:function(){return this.contextValue}},{key:"render",value:function(){return w.a.createElement(T.Provider,{value:this.contextValue},this.props.children)}}]),n}(b.Component);z.propTypes={lang:C.a.string.isRequired,polyglot:C.a.object,dictRequire:C.a.func,context:C.a.string,defaultLang:C.a.string},z.defaultProps={defaultLang:P},z.childContextTypes={t:C.a.func,f:C.a.func,lang:C.a.string};var I=function(){return function(e){var t=function(t){var n=Object(b.useContext)(T);return w.a.createElement(e,o()({},t,{t:n&&n.t,f:n&&n.f,lang:n&&n.lang}))};return t.displayName="withI18n(".concat(e.displayName||e.name,")"),t}},D=function(){return Object(b.useContext)(T)},R=function(e){return function(){var t=(D()||{lang:P}).lang;return Object(b.useMemo)((function(){var n=new S.a({lang:t,phrases:e[t]}),r=B(t);return{t:n.t.bind(n),f:r,lang:t}}),[t])}};t.default=z},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"checkApp",{enumerable:!0,get:function(){return i.checkApp}}),Object.defineProperty(t,"getDeviceName",{enumerable:!0,get:function(){return o.getDeviceName}}),Object.defineProperty(t,"getPlatform",{enumerable:!0,get:function(){return r.getPlatform}}),Object.defineProperty(t,"hasDevicePlugin",{enumerable:!0,get:function(){return a.hasDevicePlugin}}),Object.defineProperty(t,"hasInAppBrowserPlugin",{enumerable:!0,get:function(){return a.hasInAppBrowserPlugin}}),Object.defineProperty(t,"hasNetworkInformationPlugin",{enumerable:!0,get:function(){return a.hasNetworkInformationPlugin}}),Object.defineProperty(t,"hasSafariPlugin",{enumerable:!0,get:function(){return a.hasSafariPlugin}}),Object.defineProperty(t,"isAndroid",{enumerable:!0,get:function(){return r.isAndroid}}),Object.defineProperty(t,"isAndroidApp",{enumerable:!0,get:function(){return r.isAndroidApp}}),Object.defineProperty(t,"isCordova",{enumerable:!0,get:function(){return u.isCordova}}),Object.defineProperty(t,"isFlagshipApp",{enumerable:!0,get:function(){return r.isFlagshipApp}}),Object.defineProperty(t,"isIOS",{enumerable:!0,get:function(){return r.isIOS}}),Object.defineProperty(t,"isIOSApp",{enumerable:!0,get:function(){return r.isIOSApp}}),Object.defineProperty(t,"isMobile",{enumerable:!0,get:function(){return r.isMobile}}),Object.defineProperty(t,"isMobileApp",{enumerable:!0,get:function(){return r.isMobileApp}}),Object.defineProperty(t,"isWebApp",{enumerable:!0,get:function(){return r.isWebApp}}),Object.defineProperty(t,"nativeLinkOpen",{enumerable:!0,get:function(){return c.nativeLinkOpen}}),Object.defineProperty(t,"openDeeplinkOrRedirect",{enumerable:!0,get:function(){return s.openDeeplinkOrRedirect}}),Object.defineProperty(t,"startApp",{enumerable:!0,get:function(){return i.startApp}});var r=n(144),o=n(349),i=n(357),a=n(147),u=n(103),c=n(358),s=n(359)},function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"c",(function(){return c}));var r,o=n(139),i=function(){if(!r)throw new Error("client not initialized in cozy-bar");return r},a={init:function(e){return(r=o.b).init(e)},get:{app:function(){var e;return(e=i().get).app.apply(e,arguments)},apps:function(){var e;return(e=i().get).apps.apply(e,arguments)},context:function(){var e;return(e=i().get).context.apply(e,arguments)},storageData:function(){var e;return(e=i().get).storageData.apply(e,arguments)},iconProps:function(){var e;return(e=i().get).iconProps.apply(e,arguments)},cozyURL:function(){var e;return(e=i().get).cozyURL.apply(e,arguments)},settingsAppURL:function(){var e;return(e=i().get).settingsAppURL.apply(e,arguments)}},updateAccessToken:function(){var e;return(e=i()).updateAccessToken.apply(e,arguments)},logout:function(){var e;return(e=i()).logout.apply(e,arguments)},cozyFetchJSON:function(){var e;return(e=i()).cozyFetchJSON.apply(e,arguments)},getStack:i,getIntents:function(){return i().get.intents()}};t.b=a;var u=a.cozyFetchJSON,c=a.getIntents},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){"use strict";var r=SyntaxError,o=Function,i=TypeError,a=function(e){try{return o('"use strict"; return ('+e+").constructor;")()}catch(e){}},u=Object.getOwnPropertyDescriptor;if(u)try{u({},"")}catch(e){u=null}var c=function(){throw new i},s=u?function(){try{return c}catch(e){try{return u(arguments,"callee").get}catch(e){return c}}}():c,l=n(168)(),f=Object.getPrototypeOf||function(e){return e.__proto__},d={},p="undefined"==typeof Uint8Array?void 0:f(Uint8Array),h={"%AggregateError%":"undefined"==typeof AggregateError?void 0:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"%ArrayIteratorPrototype%":l?f([][Symbol.iterator]()):void 0,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":d,"%AsyncGenerator%":d,"%AsyncGeneratorFunction%":d,"%AsyncIteratorPrototype%":d,"%Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"%BigInt%":"undefined"==typeof BigInt?void 0:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?void 0:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?void 0:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":d,"%Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":l?f(f([][Symbol.iterator]())):void 0,"%JSON%":"object"==typeof JSON?JSON:void 0,"%Map%":"undefined"==typeof Map?void 0:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&l?f((new Map)[Symbol.iterator]()):void 0,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?void 0:Promise,"%Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?void 0:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&l?f((new Set)[Symbol.iterator]()):void 0,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":l?f(""[Symbol.iterator]()):void 0,"%Symbol%":l?Symbol:void 0,"%SyntaxError%":r,"%ThrowTypeError%":s,"%TypedArray%":p,"%TypeError%":i,"%Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?void 0:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet},m={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},y=n(89),v=n(167),g=y.call(Function.call,Array.prototype.concat),b=y.call(Function.apply,Array.prototype.splice),w=y.call(Function.call,String.prototype.replace),x=y.call(Function.call,String.prototype.slice),C=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,k=/\\(\\)?/g,S=function(e){var t=x(e,0,1),n=x(e,-1);if("%"===t&&"%"!==n)throw new r("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new r("invalid intrinsic syntax, expected opening `%`");var o=[];return w(e,C,(function(e,t,n,r){o[o.length]=n?w(r,k,"$1"):t||e})),o},_=function(e,t){var n,o=e;if(v(m,o)&&(o="%"+(n=m[o])[0]+"%"),v(h,o)){var u=h[o];if(u===d&&(u=function e(t){var n;if("%AsyncFunction%"===t)n=a("async function () {}");else if("%GeneratorFunction%"===t)n=a("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=a("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&(n=f(o.prototype))}return h[t]=n,n}(o)),void 0===u&&!t)throw new i("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:o,value:u}}throw new r("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new i("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new i('"allowMissing" argument must be a boolean');var n=S(e),o=n.length>0?n[0]:"",a=_("%"+o+"%",t),c=a.name,s=a.value,l=!1,f=a.alias;f&&(o=f[0],b(n,g([0,1],f)));for(var d=1,p=!0;d<n.length;d+=1){var m=n[d],y=x(m,0,1),w=x(m,-1);if(('"'===y||"'"===y||"`"===y||'"'===w||"'"===w||"`"===w)&&y!==w)throw new r("property names with quotes must have matching quotes");if("constructor"!==m&&p||(l=!0),v(h,c="%"+(o+="."+m)+"%"))s=h[c];else if(null!=s){if(!(m in s)){if(!t)throw new i("base intrinsic for "+e+" exists, but the property is not available.");return}if(u&&d+1>=n.length){var C=u(s,m);s=(p=!!C)&&"get"in C&&!("originalValue"in C.get)?C.get:s[m]}else p=v(s,m),s=s[m];p&&!l&&(h[c]=s)}}return s}},function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(20),o=n(3);Object.defineProperty(t,"__esModule",{value:!0});var i={CozyLink:!0,StackLink:!0,compose:!0,QueryDefinition:!0,Q:!0,Mutations:!0,MutationTypes:!0,getDoctypeFromOperation:!0,Association:!0,HasMany:!0,HasOne:!0,HasOneInPlace:!0,HasManyInPlace:!0,HasManyTriggers:!0,isReferencedBy:!0,isReferencedById:!0,getReferencedBy:!0,getReferencedById:!0,dehydrate:!0,generateWebLink:!0,rootCozyUrl:!0,InvalidCozyUrlError:!0,InvalidProtocolError:!0,cancelable:!0,isQueryLoading:!0,hasQueryBeenLoaded:!0,getQueryFromState:!0,Registry:!0,RealTimeQueries:!0,manifest:!0,CozyProvider:!0,withMutation:!0,withMutations:!0,Query:!0,queryConnect:!0,queryConnectFlat:!0,withClient:!0,models:!0,fetchPolicies:!0,BulkEditError:!0};Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"CozyLink",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"StackLink",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"compose",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"QueryDefinition",{enumerable:!0,get:function(){return l.QueryDefinition}}),Object.defineProperty(t,"Q",{enumerable:!0,get:function(){return l.Q}}),Object.defineProperty(t,"Mutations",{enumerable:!0,get:function(){return l.Mutations}}),Object.defineProperty(t,"MutationTypes",{enumerable:!0,get:function(){return l.MutationTypes}}),Object.defineProperty(t,"getDoctypeFromOperation",{enumerable:!0,get:function(){return l.getDoctypeFromOperation}}),Object.defineProperty(t,"Association",{enumerable:!0,get:function(){return f.Association}}),Object.defineProperty(t,"HasMany",{enumerable:!0,get:function(){return f.HasMany}}),Object.defineProperty(t,"HasOne",{enumerable:!0,get:function(){return f.HasOne}}),Object.defineProperty(t,"HasOneInPlace",{enumerable:!0,get:function(){return f.HasOneInPlace}}),Object.defineProperty(t,"HasManyInPlace",{enumerable:!0,get:function(){return f.HasManyInPlace}}),Object.defineProperty(t,"HasManyTriggers",{enumerable:!0,get:function(){return f.HasManyTriggers}}),Object.defineProperty(t,"isReferencedBy",{enumerable:!0,get:function(){return d.isReferencedBy}}),Object.defineProperty(t,"isReferencedById",{enumerable:!0,get:function(){return d.isReferencedById}}),Object.defineProperty(t,"getReferencedBy",{enumerable:!0,get:function(){return d.getReferencedBy}}),Object.defineProperty(t,"getReferencedById",{enumerable:!0,get:function(){return d.getReferencedById}}),Object.defineProperty(t,"dehydrate",{enumerable:!0,get:function(){return p.dehydrate}}),Object.defineProperty(t,"generateWebLink",{enumerable:!0,get:function(){return p.generateWebLink}}),Object.defineProperty(t,"rootCozyUrl",{enumerable:!0,get:function(){return p.rootCozyUrl}}),Object.defineProperty(t,"InvalidCozyUrlError",{enumerable:!0,get:function(){return p.InvalidCozyUrlError}}),Object.defineProperty(t,"InvalidProtocolError",{enumerable:!0,get:function(){return p.InvalidProtocolError}}),Object.defineProperty(t,"cancelable",{enumerable:!0,get:function(){return h.cancelable}}),Object.defineProperty(t,"isQueryLoading",{enumerable:!0,get:function(){return h.isQueryLoading}}),Object.defineProperty(t,"hasQueryBeenLoaded",{enumerable:!0,get:function(){return h.hasQueryBeenLoaded}}),Object.defineProperty(t,"getQueryFromState",{enumerable:!0,get:function(){return m.getQueryFromState}}),Object.defineProperty(t,"Registry",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(t,"RealTimeQueries",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(t,"CozyProvider",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(t,"withMutation",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(t,"withMutations",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(t,"Query",{enumerable:!0,get:function(){return C.default}}),Object.defineProperty(t,"queryConnect",{enumerable:!0,get:function(){return k.queryConnect}}),Object.defineProperty(t,"queryConnectFlat",{enumerable:!0,get:function(){return k.queryConnectFlat}}),Object.defineProperty(t,"withClient",{enumerable:!0,get:function(){return k.withClient}}),Object.defineProperty(t,"fetchPolicies",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(t,"BulkEditError",{enumerable:!0,get:function(){return E.BulkEditError}}),t.models=t.manifest=void 0;var a=o(n(41)),u=o(n(186)),c=o(n(274)),s=o(n(586)),l=n(21),f=n(126),d=n(191),p=n(192),h=n(592),m=n(60),y=o(n(178)),v=o(n(593)),g=r(n(594));t.manifest=g;var b=o(n(595)),w=o(n(596)),x=o(n(597)),C=o(n(299)),k=n(598),S=r(n(600));t.models=S;var _=o(n(294)),A=n(665);Object.keys(A).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(i,e)||e in t&&t[e]===A[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return A[e]}}))}));var O=n(666);Object.keys(O).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(i,e)||e in t&&t[e]===O[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return O[e]}}))}));var E=n(275)},function(e,t,n){"use strict";var r=n(20),o=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.normalizeDoc=F,t.normalizeDoctype=t.default=void 0;var i=o(n(31)),a=o(n(17)),u=o(n(7)),c=o(n(46)),s=o(n(9)),l=o(n(4)),f=o(n(6)),d=o(n(2)),p=o(n(503)),h=n(44),m=o(n(125)),y=o(n(76)),v=o(n(264)),g=o(n(512)),b=o(n(516)),w=n(267),x=r(n(72)),C=r(n(183));n(58);function k(){var e=(0,c.default)(["/data/","/_design/","/copy?rev=",""]);return k=function(){return e},e}function S(){var e=(0,c.default)(["/data/","/_design/","?rev=",""]);return S=function(){return e},e}function _(){var e=(0,c.default)(["/data/","/_design_docs?include_docs=true"]);return _=function(){return e},e}function A(){var e=(0,c.default)(["/data/","/_index"]);return A=function(){return e},e}function O(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return E(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return E(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function E(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function B(){var e=(0,c.default)(["/data/","/","?rev=",""]);return B=function(){return e},e}function j(){var e=(0,c.default)(["/data/","/",""]);return j=function(){return e},e}function P(){var e=(0,c.default)(["/data/","/",""]);return P=function(){return e},e}function T(){var e=(0,c.default)(["/data/","/_all_docs?include_docs=true"]);return T=function(){return e},e}function z(){var e=(0,c.default)(["/data/","/_find"]);return z=function(){return e},e}function I(){var e=(0,c.default)(["/data/","/",""]);return I=function(){return e},e}function D(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function R(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?D(Object(n),!0).forEach((function(t){(0,d.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function F(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=e._id||e.id;return R({id:n,_id:n,_type:t},e)}var M=function(e){return Object.assign({},(0,y.default)(e,"_type"),{_deleted:!0})},N=function(){function e(t,n){(0,l.default)(this,e),this.doctype=t,this.stackClient=n,this.indexes={},this.endpoint="/data/".concat(this.doctype,"/")}var t,n,r,o,c,E,D,N,L,U,$,G,q,J,H,W,Q,V,Y,K,Z;return(0,f.default)(e,[{key:"all",value:(Z=(0,s.default)(u.default.mark((function e(){var t,n,r,o,i,a,c,s,l,f,d,p,m,y,v,b=this,w=arguments;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=w.length>0&&void 0!==w[0]?w[0]:{},n=t.limit,r=void 0===n?100:n,o=t.skip,i=void 0===o?0:o,a=t.bookmark,c=t.keys,l=(s=!!c||null===r)?"_all_docs":"_normal_docs",f=(0,h.uri)(I(),this.doctype,l),d={include_docs:!0,limit:r,skip:i,keys:c,bookmark:a},p=C.buildURL(f,d),e.prev=7,e.next=10,this.stackClient.fetchJSON("GET",p);case 10:m=e.sent,e.next=16;break;case 13:return e.prev=13,e.t0=e.catch(7),e.abrupt("return",(0,x.dontThrowNotFoundError)(e.t0));case 16:return y=s?m.rows.filter((function(e){return e&&null!==e.doc&&!e.error&&!(0,g.default)(e.id,"_design")})).map((function(e){return F(e.doc,b.doctype)})):m.rows.map((function(e){return F(e,b.doctype)})),v=a?m.rows.length>=r:i+m.rows.length<m.total_rows,e.abrupt("return",{data:y,meta:{count:s?y.length:m.total_rows},skip:i,bookmark:m.bookmark,next:v});case 19:case"end":return e.stop()}}),e,this,[[7,13]])}))),function(){return Z.apply(this,arguments)})},{key:"fetchDocumentsWithMango",value:(K=(0,s.default)(u.default.mark((function e(t,n){var r,o=arguments;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=o.length>2&&void 0!==o[2]?o[2]:{},e.abrupt("return",this.stackClient.fetchJSON("POST",t,this.toMangoOptions(n,r)));case 2:case"end":return e.stop()}}),e,this)}))),function(e,t){return K.apply(this,arguments)})},{key:"migrateUnamedIndex",value:(Y=(0,s.default)(u.default.mark((function e(t,n){return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.copyIndex(t,n);case 3:return e.next=5,this.destroyIndex(t);case 5:e.next=16;break;case 7:if(e.prev=7,e.t0=e.catch(0),(0,x.isDocumentUpdateConflict)(e.t0)){e.next=11;break}throw e.t0;case 11:return(0,h.sleep)(1e3),e.next=14,this.copyIndex(t,n);case 14:return e.next=16,this.destroyIndex(t);case 16:case"end":return e.stop()}}),e,this,[[0,7]])}))),function(e,t){return Y.apply(this,arguments)})},{key:"handleMissingIndex",value:(V=(0,s.default)(u.default.mark((function e(t,n){var r,o,i,a;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.indexedFields,o=n.partialFilter,r||(r=(0,w.getIndexFields)({sort:n.sort,selector:t})),e.next=4,this.findExistingIndex(t,n);case 4:if(i=e.sent,a=(0,w.getIndexNameFromFields)(r),i){e.next=11;break}return e.next=9,this.createIndex(r,{partialFilter:o,indexName:a});case 9:e.next=17;break;case 11:if(i._id==="_design/".concat(a)){e.next=16;break}return e.next=14,this.migrateUnamedIndex(i,a);case 14:e.next=17;break;case 16:throw new Error("Index unusable for query, index used: ".concat(a));case 17:case"end":return e.stop()}}),e,this)}))),function(e,t){return V.apply(this,arguments)})},{key:"findWithMango",value:(Q=(0,s.default)(u.default.mark((function e(t,n){var r,o,i=arguments;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=i.length>2&&void 0!==i[2]?i[2]:{},e.prev=1,e.next=4,this.fetchDocumentsWithMango(t,n,r);case 4:o=e.sent,e.next=18;break;case 7:if(e.prev=7,e.t0=e.catch(1),(0,x.isIndexNotFoundError)(e.t0)||(0,x.isNoUsableIndexError)(e.t0)){e.next=13;break}throw e.t0;case 13:return e.next=15,this.handleMissingIndex(n,r);case 15:return e.next=17,this.fetchDocumentsWithMango(t,n,r);case 17:o=e.sent;case 18:return e.abrupt("return",o);case 19:case"end":return e.stop()}}),e,this,[[1,7]])}))),function(e,t){return Q.apply(this,arguments)})},{key:"find",value:(W=(0,s.default)(u.default.mark((function e(t){var n,r,o,i,a,c=this,s=arguments;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=s.length>1&&void 0!==s[1]?s[1]:{},r=n.skip,o=void 0===r?0:r,e.prev=2,a=(0,h.uri)(z(),this.doctype),e.next=6,this.findWithMango(a,t,n);case 6:i=e.sent,e.next=12;break;case 9:return e.prev=9,e.t0=e.catch(2),e.abrupt("return",(0,x.dontThrowNotFoundError)(e.t0));case 12:return e.abrupt("return",{data:i.docs.map((function(e){return F(e,c.doctype)})),next:i.next,skip:o,bookmark:i.bookmark,execution_stats:i.execution_stats});case 13:case"end":return e.stop()}}),e,this,[[2,9]])}))),function(e){return W.apply(this,arguments)})},{key:"get",value:(H=(0,s.default)(u.default.mark((function e(t){return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",x.default.get(this.stackClient,"".concat(this.endpoint).concat(encodeURIComponent(t)),{normalize:this.constructor.normalizeDoctype(this.doctype)}));case 1:case"end":return e.stop()}}),e,this)}))),function(e){return H.apply(this,arguments)})},{key:"getAll",value:(J=(0,s.default)(u.default.mark((function e(t){var n,r,o=this;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.stackClient.fetchJSON("POST",(0,h.uri)(T(),this.doctype),{keys:t});case 3:n=e.sent,e.next=9;break;case 6:return e.prev=6,e.t0=e.catch(0),e.abrupt("return",(0,x.dontThrowNotFoundError)(e.t0));case 9:return r=n.rows.filter((function(e){return e.doc})),e.abrupt("return",{data:r.map((function(e){return F(e.doc,o.doctype)})),meta:{count:r.length}});case 11:case"end":return e.stop()}}),e,this,[[0,6]])}))),function(e){return J.apply(this,arguments)})},{key:"create",value:(q=(0,s.default)(u.default.mark((function e(t){var n,r,o,i,c,s;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t._id,t._type,r=(0,a.default)(t,["_id","_type"]),i=(o=!!n)?"PUT":"POST",c=(0,h.uri)(P(),this.doctype,o?n:""),e.next=6,this.stackClient.fetchJSON(i,c,r);case 6:return s=e.sent,e.abrupt("return",{data:F(s.data,this.doctype)});case 8:case"end":return e.stop()}}),e,this)}))),function(e){return q.apply(this,arguments)})},{key:"update",value:(G=(0,s.default)(u.default.mark((function e(t){var n;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.stackClient.fetchJSON("PUT",(0,h.uri)(j(),this.doctype,t._id),t);case 2:return n=e.sent,e.abrupt("return",{data:F(n.data,this.doctype)});case 4:case"end":return e.stop()}}),e,this)}))),function(e){return G.apply(this,arguments)})},{key:"destroy",value:($=(0,s.default)(u.default.mark((function e(t){var n,r,o,i;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t._id,r=t._rev,o=(0,a.default)(t,["_id","_rev"]),e.next=3,this.stackClient.fetchJSON("DELETE",(0,h.uri)(B(),this.doctype,n,r));case 3:return i=e.sent,e.abrupt("return",{data:F(R(R({},o),{},{_id:n,_rev:i.rev,_deleted:!0}),this.doctype)});case 5:case"end":return e.stop()}}),e,this)}))),function(e){return $.apply(this,arguments)})},{key:"updateAll",value:(U=(0,s.default)(u.default.mark((function e(t){var n,r,o,i,a;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this.stackClient,(r=t?t.map((function(e){return(0,y.default)(e,"_type")})):t)&&r.length){e.next=4;break}return e.abrupt("return",Promise.resolve([]));case 4:return e.prev=4,e.next=7,n.fetchJSON("POST","/data/".concat(this.doctype,"/_bulk_docs"),{docs:r});case 7:return o=e.sent,e.abrupt("return",o);case 11:if(e.prev=11,e.t0=e.catch(4),!e.t0.reason||!e.t0.reason.reason||"Database does not exist."!==e.t0.reason.reason){e.next=24;break}return e.next=16,this.create(r[0]);case 16:return i=e.sent,e.next=19,this.updateAll(r.slice(1));case 19:return(a=e.sent).unshift({ok:!0,id:i._id,rev:i._rev}),e.abrupt("return",a);case 24:throw e.t0;case 25:case"end":return e.stop()}}),e,this,[[4,11]])}))),function(e){return U.apply(this,arguments)})},{key:"destroyAll",value:function(e){return this.updateAll(e.map(M))}},{key:"toMangoOptions",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.sort,r=t.indexedFields,o=t.fields,a=t.skip,u=void 0===a?0:a,c=t.limit,s=t.bookmark;n=(0,w.transformSort)(n),r=r||(0,w.getIndexFields)({sort:n,selector:e});var l=t.indexId||"_design/".concat((0,w.getIndexNameFromFields)(r));if(n){var f=(0,m.default)(n.map((function(e){return(0,v.default)(Object.values(e))})));if(f.length>1)throw new Error("Mango sort can only use a single order (asc or desc).");var h,y=f.length>0?(0,v.default)(f):"asc",g=O(r);try{var b=function(){var e=h.value;n.find((function(t){return(0,v.default)(Object.keys(t))===e}))||n.push((0,d.default)({},e,y))};for(g.s();!(h=g.n()).done;)b()}catch(e){g.e(e)}finally{g.f()}}var x={selector:e,use_index:l,fields:o?[].concat((0,i.default)(o),["_id","_type","class"]):void 0,limit:c,skip:u,bookmark:t.bookmark||s,sort:n,execution_stats:!!(0,p.default)("debug")||void 0};return x}},{key:"checkUniquenessOf",value:(L=(0,s.default)(u.default.mark((function e(t,n){var r,o;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getUniqueIndexId(t);case 2:return r=e.sent,e.next=5,this.find((0,d.default)({},t,n),{indexId:r,fields:["_id"]});case 5:return o=e.sent,e.abrupt("return",0===o.data.length);case 7:case"end":return e.stop()}}),e,this)}))),function(e,t){return L.apply(this,arguments)})},{key:"getUniqueIndexId",value:function(e){return this.getIndexId([e],{indexName:"".concat(this.doctype,"/").concat(e)})}},{key:"getIndexId",value:(N=(0,s.default)(u.default.mark((function e(t,n){var r,o,i,a;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=n.partialFilter,o=n.indexName,i=void 0===o?this.getIndexNameFromFields(t):o,this.indexes[i]){e.next=20;break}return e.prev=2,e.next=5,this.createIndex(t,{partialFilter:r});case 5:a=e.sent,e.next=19;break;case 8:if(e.prev=8,e.t0=e.catch(2),(0,x.isIndexConflictError)(e.t0)){e.next=14;break}throw e.t0;case 14:return e.next=16,(0,h.sleep)(1e3);case 16:return e.next=18,this.createIndex(t,{partialFilter:r});case 18:a=e.sent;case 19:this.indexes[i]=a;case 20:return e.abrupt("return",this.indexes[i].id);case 21:case"end":return e.stop()}}),e,this,[[2,8]])}))),function(e,t){return N.apply(this,arguments)})},{key:"createIndex",value:(D=(0,s.default)(u.default.mark((function e(t){var n,r,o,i,a,c,s,l,f=arguments;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=f.length>1&&void 0!==f[1]?f[1]:{},r=n.partialFilter,o=n.indexName,i={index:{fields:t}},o&&(i.ddoc=o),r&&(i.index.partial_filter_selector=r),e.prev=4,e.next=7,this.stackClient.fetchJSON("POST",(0,h.uri)(A(),this.doctype),i);case 7:a=e.sent,e.next=17;break;case 10:if(e.prev=10,e.t0=e.catch(4),(0,x.isIndexConflictError)(e.t0)){e.next=16;break}throw e.t0;case 16:return e.abrupt("return");case 17:if(c={id:a.id,fields:t},"exists"!==a.result){e.next=20;break}return e.abrupt("return",c);case 20:return s={},t.forEach((function(e){return s[e]={$gt:null}})),l={indexId:c.id,limit:1},e.next=25,(0,h.attempt)(this.find(s,l));case 25:if(!e.sent){e.next=27;break}return e.abrupt("return",c);case 27:return e.next=29,(0,h.sleep)(1e3);case 29:return e.next=31,(0,h.attempt)(this.find(s,l));case 31:if(!e.sent){e.next=33;break}return e.abrupt("return",c);case 33:return e.next=35,(0,h.sleep)(500);case 35:return e.abrupt("return",c);case 36:case"end":return e.stop()}}),e,this,[[4,10]])}))),function(e){return D.apply(this,arguments)})},{key:"fetchAllMangoIndexes",value:(E=(0,s.default)(u.default.mark((function e(){var t,n;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=(0,h.uri)(_(),this.doctype),e.next=3,this.stackClient.fetchJSON("GET",t);case 3:return n=e.sent,e.abrupt("return",n.rows.filter((function(e){return"query"===e.doc.language})).map((function(e){return(0,w.normalizeDesignDoc)(e)})));case 5:case"end":return e.stop()}}),e,this)}))),function(){return E.apply(this,arguments)})},{key:"destroyIndex",value:(c=(0,s.default)(u.default.mark((function e(t){var n,r,o;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t._id.split("/")[1],r=t._rev,o=(0,h.uri)(S(),this.doctype,n,r),e.abrupt("return",this.stackClient.fetchJSON("DELETE",o));case 4:case"end":return e.stop()}}),e,this)}))),function(e){return c.apply(this,arguments)})},{key:"copyIndex",value:(o=(0,s.default)(u.default.mark((function e(t,n){var r,o,i,a;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t._id.split("/")[1],o=t._rev,i=(0,h.uri)(k(),this.doctype,r,o),a={headers:{Destination:"_design/".concat(n)}},e.abrupt("return",this.stackClient.fetchJSON("POST",i,null,a));case 5:case"end":return e.stop()}}),e,this)}))),function(e,t){return o.apply(this,arguments)})},{key:"findExistingIndex",value:(r=(0,s.default)(u.default.mark((function e(t,n){var r,o,i,a,c,s,l,f,d;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.sort,o=n.indexedFields,i=n.partialFilter,e.next=3,this.fetchAllMangoIndexes();case 3:if(!((a=e.sent).length<1)){e.next=6;break}return e.abrupt("return",null);case 6:r=(0,w.transformSort)(r),c=o||(0,w.getIndexFields)({sort:r,selector:t}),s=a.find((function(e){return(0,w.isMatchingIndex)(e,c,i)})),l=O(a),e.prev=10,l.s();case 12:if((f=l.n()).done){e.next=19;break}if(d=f.value,!(0,w.isInconsistentIndex)(d)){e.next=17;break}return e.next=17,this.destroyIndex(d);case 17:e.next=12;break;case 19:e.next=24;break;case 21:e.prev=21,e.t0=e.catch(10),l.e(e.t0);case 24:return e.prev=24,l.f(),e.finish(24);case 27:return e.abrupt("return",s);case 28:case"end":return e.stop()}}),e,this,[[10,21,24,27]])}))),function(e,t){return r.apply(this,arguments)})},{key:"fetchChangesRaw",value:(n=(0,s.default)(u.default.mark((function e(t){var n,r,o,i,a,c;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.doc_ids&&t.doc_ids.length>0,r="?".concat([b.default.stringify(R(R({},(0,y.default)(t,["doc_ids","includeDocs"])),{},{include_docs:t.includeDocs})),n&&void 0===t.filter?"filter=_doc_ids":void 0].filter(Boolean).join("&")),o=n?"POST":"GET",i="/data/".concat(this.doctype,"/_changes").concat(r),a=n?{doc_ids:t.doc_ids}:void 0,e.next=7,this.stackClient.fetchJSON(o,i,a);case 7:return c=e.sent,e.abrupt("return",c);case 9:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"fetchChanges",value:(t=(0,s.default)(u.default.mark((function e(){var t,n,r,o,i,a,c=arguments;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=c.length>0&&void 0!==c[0]?c[0]:{},n=c.length>1&&void 0!==c[1]?c[1]:{},r={includeDocs:!0},"object"!=typeof t?(r.since=t,console.warn('fetchChanges use couchOptions as Object not a string, since is deprecated, please use fetchChanges({since: "'.concat(t,'"}).'))):Object.keys(t).length>0&&Object.assign(r,t),e.next=6,this.fetchChangesRaw(r);case 6:return o=e.sent,i=o.last_seq,a=o.results.map((function(e){return e.doc})).filter(Boolean),n.includeDesign||(a=a.filter((function(e){return 0!==e._id.indexOf("_design")}))),n.includeDeleted||(a=a.filter((function(e){return!e._deleted}))),e.abrupt("return",{newLastSeq:i,documents:a});case 12:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})}],[{key:"normalizeDoctype",value:function(e){return this.normalizeDoctypeRawApi(e)}},{key:"normalizeDoctypeJsonApi",value:function(e){return function(t,n){return F(t,e)}}},{key:"normalizeDoctypeRawApi",value:function(e){return function(t,n){return F(n,e)}}}]),e}(),L=N;t.default=L;var U=N.normalizeDoctype;t.normalizeDoctype=U},function(e,t,n){var r=n(469),o=n(247),i=n(149),a=n(470);e.exports=function(e){return r(e)||o(e)||i(e)||a()}},function(e,t,n){"use strict";var r=n(331),o="object"==typeof self&&self&&self.Object===Object&&self,i=(r.a||o||Function("return this")()).Symbol,a=Object.prototype,u=a.hasOwnProperty,c=a.toString,s=i?i.toStringTag:void 0;var l=function(e){var t=u.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var o=c.call(e);return r&&(t?e[s]=n:delete e[s]),o},f=Object.prototype.toString;var d=function(e){return f.call(e)},p=i?i.toStringTag:void 0;var h=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":p&&p in Object(e)?l(e):d(e)};var m=function(e,t){return function(n){return e(t(n))}}(Object.getPrototypeOf,Object);var y=function(e){return null!=e&&"object"==typeof e},v=Function.prototype,g=Object.prototype,b=v.toString,w=g.hasOwnProperty,x=b.call(Object);var C=function(e){if(!y(e)||"[object Object]"!=h(e))return!1;var t=m(e);if(null===t)return!0;var n=w.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&b.call(n)==x},k=n(134),S="@@redux/INIT";function _(e,t,n){var r;if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(_)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var o=e,i=t,a=[],u=a,c=!1;function s(){u===a&&(u=a.slice())}function l(){return i}function f(e){if("function"!=typeof e)throw new Error("Expected listener to be a function.");var t=!0;return s(),u.push(e),function(){if(t){t=!1,s();var n=u.indexOf(e);u.splice(n,1)}}}function d(e){if(!C(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(c)throw new Error("Reducers may not dispatch actions.");try{c=!0,i=o(i,e)}finally{c=!1}for(var t=a=u,n=0;n<t.length;n++){(0,t[n])()}return e}return d({type:S}),(r={dispatch:d,subscribe:f,getState:l,replaceReducer:function(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");o=e,d({type:S})}})[k.default]=function(){var e,t=f;return(e={subscribe:function(e){if("object"!=typeof e)throw new TypeError("Expected the observer to be an object.");function n(){e.next&&e.next(l())}return n(),{unsubscribe:t(n)}}})[k.default]=function(){return this},e},r}function A(e,t){var n=t&&t.type;return"Given action "+(n&&'"'+n.toString()+'"'||"an action")+', reducer "'+e+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'}function O(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var o=t[r];0,"function"==typeof e[o]&&(n[o]=e[o])}var i=Object.keys(n);var a=void 0;try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if(void 0===n(void 0,{type:S}))throw new Error('Reducer "'+t+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if(void 0===n(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION_"+Math.random().toString(36).substring(7).split("").join(".")}))throw new Error('Reducer "'+t+"\" returned undefined when probed with a random type. Don't try to handle "+S+' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.')}))}(n)}catch(e){a=e}return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(a)throw a;for(var r=!1,o={},u=0;u<i.length;u++){var c=i[u],s=n[c],l=e[c],f=s(l,t);if(void 0===f){var d=A(c,t);throw new Error(d)}o[c]=f,r=r||f!==l}return r?o:e}}function E(e,t){return function(){return t(e.apply(void 0,arguments))}}function B(e,t){if("function"==typeof e)return E(e,t);if("object"!=typeof e||null===e)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===e?"null":typeof e)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');for(var n=Object.keys(e),r={},o=0;o<n.length;o++){var i=n[o],a=e[i];"function"==typeof a&&(r[i]=E(a,t))}return r}function j(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}var P=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function T(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(n,r,o){var i,a=e(n,r,o),u=a.dispatch,c={getState:a.getState,dispatch:function(e){return u(e)}};return i=t.map((function(e){return e(c)})),u=j.apply(void 0,i)(a.dispatch),P({},a,{dispatch:u})}}}n.d(t,"e",(function(){return _})),n.d(t,"c",(function(){return O})),n.d(t,"b",(function(){return B})),n.d(t,"a",(function(){return T})),n.d(t,"d",(function(){return j}))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){var r=n(5),o=n(165),i=n(427),a=n(428);function u(t){var n="function"==typeof Map?new Map:void 0;return e.exports=u=function(e){if(null===e||!i(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return a(e,arguments,r(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),o(t,e)},u(t)}e.exports=u},function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=function(){};e.exports=r},function(e,t,n){"use strict";function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}n.r(t);var o=n(0),i=n(1),a=n.n(i),u=a.a.shape({trySubscribe:a.a.func.isRequired,tryUnsubscribe:a.a.func.isRequired,notifyNestedSubs:a.a.func.isRequired,isSubscribed:a.a.func.isRequired}),c=a.a.shape({subscribe:a.a.func.isRequired,dispatch:a.a.func.isRequired,getState:a.a.func.isRequired});function s(e){var t;void 0===e&&(e="store");var n=e+"Subscription",i=function(t){r(a,t);var i=a.prototype;function a(n,r){var o;return(o=t.call(this,n,r)||this)[e]=n.store,o}return i.getChildContext=function(){var t;return(t={})[e]=this[e],t[n]=null,t},i.render=function(){return o.Children.only(this.props.children)},a}(o.Component);return i.propTypes={store:c.isRequired,children:a.a.element.isRequired},i.childContextTypes=((t={})[e]=c.isRequired,t[n]=u,t),i}var l=s();function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var d=n(28),p=n(36),h=n(79),m=n.n(h),y=n(141),v=n.n(y),g=n(77),b={notify:function(){}};var w=function(){function e(e,t,n){this.store=e,this.parentSub=t,this.onStateChange=n,this.unsubscribe=null,this.listeners=b}var t=e.prototype;return t.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},t.notifyNestedSubs=function(){this.listeners.notify()},t.isSubscribed=function(){return Boolean(this.unsubscribe)},t.trySubscribe=function(){var e,t;this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.onStateChange):this.store.subscribe(this.onStateChange),this.listeners=(e=[],t=[],{clear:function(){t=null,e=null},notify:function(){for(var n=e=t,r=0;r<n.length;r++)n[r]()},get:function(){return t},subscribe:function(n){var r=!0;return t===e&&(t=e.slice()),t.push(n),function(){r&&null!==e&&(r=!1,t===e&&(t=e.slice()),t.splice(t.indexOf(n),1))}}}))},t.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=b)},e}(),x=0,C={};function k(){}function S(e,t){var n,i;void 0===t&&(t={});var a=t,s=a.getDisplayName,l=void 0===s?function(e){return"ConnectAdvanced("+e+")"}:s,h=a.methodName,y=void 0===h?"connectAdvanced":h,b=a.renderCountProp,S=void 0===b?void 0:b,_=a.shouldHandleStateChanges,A=void 0===_||_,O=a.storeKey,E=void 0===O?"store":O,B=a.withRef,j=void 0!==B&&B,P=Object(p.a)(a,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef"]),T=E+"Subscription",z=x++,I=((n={})[E]=c,n[T]=u,n),D=((i={})[T]=u,i);return function(t){v()(Object(g.isValidElementType)(t),"You must pass a component to the function returned by "+y+". Instead received "+JSON.stringify(t));var n=t.displayName||t.name||"Component",i=l(n),a=Object(d.a)({},P,{getDisplayName:l,methodName:y,renderCountProp:S,shouldHandleStateChanges:A,storeKey:E,withRef:j,displayName:i,wrappedComponentName:n,WrappedComponent:t}),u=function(n){function u(e,t){var r;return(r=n.call(this,e,t)||this).version=z,r.state={},r.renderCount=0,r.store=e[E]||t[E],r.propsMode=Boolean(e[E]),r.setWrappedInstance=r.setWrappedInstance.bind(f(f(r))),v()(r.store,'Could not find "'+E+'" in either the context or props of "'+i+'". Either wrap the root component in a <Provider>, or explicitly pass "'+E+'" as a prop to "'+i+'".'),r.initSelector(),r.initSubscription(),r}r(u,n);var c=u.prototype;return c.getChildContext=function(){var e,t=this.propsMode?null:this.subscription;return(e={})[T]=t||this.context[T],e},c.componentDidMount=function(){A&&(this.subscription.trySubscribe(),this.selector.run(this.props),this.selector.shouldComponentUpdate&&this.forceUpdate())},c.componentWillReceiveProps=function(e){this.selector.run(e)},c.shouldComponentUpdate=function(){return this.selector.shouldComponentUpdate},c.componentWillUnmount=function(){this.subscription&&this.subscription.tryUnsubscribe(),this.subscription=null,this.notifyNestedSubs=k,this.store=null,this.selector.run=k,this.selector.shouldComponentUpdate=!1},c.getWrappedInstance=function(){return v()(j,"To access the wrapped instance, you need to specify { withRef: true } in the options argument of the "+y+"() call."),this.wrappedInstance},c.setWrappedInstance=function(e){this.wrappedInstance=e},c.initSelector=function(){var t=e(this.store.dispatch,a);this.selector=function(e,t){var n={run:function(r){try{var o=e(t.getState(),r);(o!==n.props||n.error)&&(n.shouldComponentUpdate=!0,n.props=o,n.error=null)}catch(e){n.shouldComponentUpdate=!0,n.error=e}}};return n}(t,this.store),this.selector.run(this.props)},c.initSubscription=function(){if(A){var e=(this.propsMode?this.props:this.context)[T];this.subscription=new w(this.store,e,this.onStateChange.bind(this)),this.notifyNestedSubs=this.subscription.notifyNestedSubs.bind(this.subscription)}},c.onStateChange=function(){this.selector.run(this.props),this.selector.shouldComponentUpdate?(this.componentDidUpdate=this.notifyNestedSubsOnComponentDidUpdate,this.setState(C)):this.notifyNestedSubs()},c.notifyNestedSubsOnComponentDidUpdate=function(){this.componentDidUpdate=void 0,this.notifyNestedSubs()},c.isSubscribed=function(){return Boolean(this.subscription)&&this.subscription.isSubscribed()},c.addExtraProps=function(e){if(!(j||S||this.propsMode&&this.subscription))return e;var t=Object(d.a)({},e);return j&&(t.ref=this.setWrappedInstance),S&&(t[S]=this.renderCount++),this.propsMode&&this.subscription&&(t[T]=this.subscription),t},c.render=function(){var e=this.selector;if(e.shouldComponentUpdate=!1,e.error)throw e.error;return Object(o.createElement)(t,this.addExtraProps(e.props))},u}(o.Component);return u.WrappedComponent=t,u.displayName=i,u.childContextTypes=D,u.contextTypes=I,u.propTypes=I,m()(u,t)}}var _=Object.prototype.hasOwnProperty;function A(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function O(e,t){if(A(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;o<n.length;o++)if(!_.call(t,n[o])||!A(e[n[o]],t[n[o]]))return!1;return!0}var E=n(32);function B(e){return function(t,n){var r=e(t,n);function o(){return r}return o.dependsOnOwnProps=!1,o}}function j(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function P(e,t){return function(t,n){n.displayName;var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=j(e);var o=r(t,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=j(o),o=r(t,n)),o},r}}var T=[function(e){return"function"==typeof e?P(e):void 0},function(e){return e?void 0:B((function(e){return{dispatch:e}}))},function(e){return e&&"object"==typeof e?B((function(t){return Object(E.b)(e,t)})):void 0}];var z=[function(e){return"function"==typeof e?P(e):void 0},function(e){return e?void 0:B((function(){return{}}))}];function I(e,t,n){return Object(d.a)({},n,e,t)}var D=[function(e){return"function"==typeof e?function(e){return function(t,n){n.displayName;var r,o=n.pure,i=n.areMergedPropsEqual,a=!1;return function(t,n,u){var c=e(t,n,u);return a?o&&i(c,r)||(r=c):(a=!0,r=c),r}}}(e):void 0},function(e){return e?void 0:function(){return I}}];function R(e,t,n,r){return function(o,i){return n(e(o,i),t(r,i),i)}}function F(e,t,n,r,o){var i,a,u,c,s,l=o.areStatesEqual,f=o.areOwnPropsEqual,d=o.areStatePropsEqual,p=!1;function h(o,p){var h,m,y=!f(p,a),v=!l(o,i);return i=o,a=p,y&&v?(u=e(i,a),t.dependsOnOwnProps&&(c=t(r,a)),s=n(u,c,a)):y?(e.dependsOnOwnProps&&(u=e(i,a)),t.dependsOnOwnProps&&(c=t(r,a)),s=n(u,c,a)):v?(h=e(i,a),m=!d(h,u),u=h,m&&(s=n(u,c,a)),s):s}return function(o,l){return p?h(o,l):(u=e(i=o,a=l),c=t(r,a),s=n(u,c,a),p=!0,s)}}function M(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,o=t.initMergeProps,i=Object(p.a)(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),a=n(e,i),u=r(e,i),c=o(e,i);return(i.pure?F:R)(a,u,c,e,i)}function N(e,t,n){for(var r=t.length-1;r>=0;r--){var o=t[r](e);if(o)return o}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function L(e,t){return e===t}var U,$,G,q,J,H,W,Q,V,Y,K,Z,X=(G=($=void 0===U?{}:U).connectHOC,q=void 0===G?S:G,J=$.mapStateToPropsFactories,H=void 0===J?z:J,W=$.mapDispatchToPropsFactories,Q=void 0===W?T:W,V=$.mergePropsFactories,Y=void 0===V?D:V,K=$.selectorFactory,Z=void 0===K?M:K,function(e,t,n,r){void 0===r&&(r={});var o=r,i=o.pure,a=void 0===i||i,u=o.areStatesEqual,c=void 0===u?L:u,s=o.areOwnPropsEqual,l=void 0===s?O:s,f=o.areStatePropsEqual,h=void 0===f?O:f,m=o.areMergedPropsEqual,y=void 0===m?O:m,v=Object(p.a)(o,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),g=N(e,H,"mapStateToProps"),b=N(t,Q,"mapDispatchToProps"),w=N(n,Y,"mergeProps");return q(Z,Object(d.a)({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:g,initMapDispatchToProps:b,initMergeProps:w,pure:a,areStatesEqual:c,areOwnPropsEqual:l,areStatePropsEqual:h,areMergedPropsEqual:y},v))});n.d(t,"Provider",(function(){return l})),n.d(t,"createProvider",(function(){return s})),n.d(t,"connectAdvanced",(function(){return S})),n.d(t,"connect",(function(){return X}))},function(e,t,n){var r=n(207),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){"use strict";(function(e){var r=n(20),o=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(246)),a=o(n(19)),u=o(n(31)),c=o(n(17)),s=o(n(7)),l=o(n(9)),f=o(n(4)),d=o(n(6)),p=o(n(2)),h=o(n(75)),m=o(n(472)),y=o(n(171)),v=o(n(474)),g=o(n(479)),b=o(n(483)),w=o(n(18)),x=o(n(45)),C=r(n(256)),k=n(59),S=o(n(274)),_=n(126),A=n(191),O=n(192),E=n(21),B=n(569),j=o(n(570)),P=r(n(60)),T=o(n(294)),z=o(n(572)),I=n(186),D=o(n(295)),R=n(578),F=o(n(187)),M=(n(22),n(188)),N=o(n(579)),L=o(n(583)),U=n(584);function $(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function G(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$(Object(n),!0).forEach((function(t){(0,p.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function q(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return J(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return J(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function J(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var H=function(e){return Array.isArray(e)?e:[e]},W=function(e){return{get:function(t,n){return console.warn(e),t[n]}}},Q=function(e){return e.prototype.addReferences&&e.prototype.removeReferences},V=function(){function t(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,f.default)(this,t),(0,p.default)(this,"fetchQueryAndGetFromState",function(){var t=(0,l.default)(s.default.mark((function t(n){return s.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.query(n.definition,n.options);case 3:return t.abrupt("return",e.getQueryFromState(n.options.as));case 6:throw t.prev=6,t.t0=t.catch(0),t.t0;case 9:case"end":return t.stop()}}),t,null,[[0,6]])})));return function(e){return t.apply(this,arguments)}}());var r=n.link,o=n.links,i=n.schema,a=void 0===i?{}:i,u=n.appMetadata,d=void 0===u?{}:u,h=n.capabilities,m=(0,c.default)(n,["link","links","schema","appMetadata","capabilities"]);r&&console.warn("`link` is deprecated, use `links`"),this.appMetadata=d,this.options=m,this.queryIdGenerator=new M.QueryIDGenerator,this.isLogged=!1,this.instanceOptions={},this.handleRevocationChange=this.handleRevocationChange.bind(this),this.handleTokenRefresh=this.handleTokenRefresh.bind(this),this.createClient();var y=this.getStackClient();y.on("error",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.emit.apply(e,["error"].concat(n))})),this.links=H(r||o||new S.default),this.registerClientOnLinks(),this.chain=(0,I.chain)(this.links),this.schema=new z.default(a,y),this.capabilities=h||null,this.plugins={};try{this.loadInstanceOptionsFromDOM()}catch(e){}m.uri&&m.token&&this.login(),this.storeAccesors=null,!1!==m.store&&this.ensureStore(),this._promiseCache=new L.default}var n,r,o,x,T,$,J,V,Y,K,Z,X,ee,te,ne,re;return(0,d.default)(t,[{key:"emit",value:function(){}},{key:"on",value:function(){}},{key:"removeListener",value:function(){}},{key:"registerPlugin",value:function(e,t){if(!e.pluginName)throw new Error("Cannot register a plugin whose class does not have `pluginName` attribute.");if(this.plugins[e.pluginName])throw new Error("Cannot register plugin ".concat(e.pluginName,". A plugin with the same name has already been registered."));var n=new e(this,t);return this.plugins[e.pluginName]=n,n}},{key:"addSchema",value:function(e){this.schema.add(e)}},{key:"registerClientOnLinks",value:function(){var e,t=q(this.links);try{for(t.s();!(e=t.n()).done;){var n=e.value;if(n.registerClient)try{n.registerClient(this)}catch(e){console.warn(e)}}}catch(e){t.e(e)}finally{t.f()}}},{key:"login",value:function(e){return this.isLogged&&!this.isRevoked?(console.warn("CozyClient is already logged."),this.loginPromise):this.loginPromise=this._login(e)}},{key:"_login",value:(re=(0,l.default)(s.default.mark((function e(t){var n,r,o;return s.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.emit("beforeLogin"),this.registerClientOnLinks(),t&&(t.uri&&this.stackClient.setUri(t.uri),t.token&&this.stackClient.setToken(t.token)),n=q(this.links),e.prev=4,n.s();case 6:if((r=n.n()).done){e.next=13;break}if(!(o=r.value).onLogin){e.next=11;break}return e.next=11,o.onLogin();case 11:e.next=6;break;case 13:e.next=18;break;case 15:e.prev=15,e.t0=e.catch(4),n.e(e.t0);case 18:return e.prev=18,n.f(),e.finish(18);case 21:this.isLogged=!0,this.isRevoked=!1,this.emit("login");case 24:case"end":return e.stop()}}),e,this,[[4,15,18,21]])}))),function(e){return re.apply(this,arguments)})},{key:"logout",value:(ne=(0,l.default)(s.default.mark((function e(){var t,n,r;return s.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.isLogged){e.next=3;break}return F.default.warn("CozyClient isn't logged."),e.abrupt("return");case 3:if(this.emit("beforeLogout"),this.isLogged=!1,!(this.stackClient instanceof C.OAuthClient)){e.next=17;break}if(e.prev=6,!this.stackClient.unregister||this.stackClient.isRegistered&&!this.stackClient.isRegistered()){e.next=10;break}return e.next=10,this.stackClient.unregister();case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(6),F.default.warn("Impossible to unregister client on stack: ".concat(e.t0));case 15:e.next=25;break;case 17:return e.prev=17,e.next=20,this.stackClient.fetch("DELETE","/auth/login");case 20:e.next=25;break;case 22:e.prev=22,e.t1=e.catch(17),F.default.warn("Impossible to log out: ".concat(e.t1));case 25:t=q(this.links),e.prev=26,t.s();case 28:if((n=t.n()).done){e.next=41;break}if(!(r=n.value).reset){e.next=39;break}return e.prev=31,e.next=34,r.reset();case 34:e.next=39;break;case 36:e.prev=36,e.t2=e.catch(31),console.warn(e.t2);case 39:e.next=28;break;case 41:e.next=46;break;case 43:e.prev=43,e.t3=e.catch(26),t.e(e.t3);case 46:return e.prev=46,t.f(),e.finish(46);case 49:this.store&&this.dispatch((0,P.resetState)()),this.emit("logout");case 51:case"end":return e.stop()}}),e,this,[[6,12],[17,22],[26,43,46,49],[31,36]])}))),function(){return ne.apply(this,arguments)})},{key:"collection",value:function(e){return this.getStackClient().collection(e)}},{key:"fetch",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.getStackClient().fetch(e,t,n,r)}},{key:"all",value:function(e){return F.default.warn("\nclient.all is deprecated, prefer to use the Q helper to build a new QueryDefinition.\n\nimport { Q } from 'cozy-client'\nclient.query(Q('io.cozy.bills'))"),(0,E.Q)(e)}},{key:"find",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return console.warn("client.find(doctype, selector) is deprecated, please use Q(doctype).where(selector) to build the same query."),new E.QueryDefinition({doctype:e,selector:t})}},{key:"get",value:function(e,t){return console.warn("client.get(".concat(e,", id) is deprecated, please use Q(").concat(e,").getById(id) to build the same query.")),new E.QueryDefinition({doctype:e,id:t})}},{key:"create",value:(te=(0,l.default)(s.default.mark((function e(t,n,r){var o,i,a,u=arguments;return s.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=u.length>3&&void 0!==u[3]?u[3]:{},n._type,i=(0,c.default)(n,["_type"]),a=G({_type:t},i),e.next=5,this.schema.validate(a);case 5:if(!0===e.sent){e.next=8;break}throw new Error("Validation failed");case 8:return e.abrupt("return",this.mutate(this.getDocumentSavePlan(a,r),o));case 9:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return te.apply(this,arguments)})},{key:"validate",value:function(e){return this.schema.validate(e)}},{key:"save",value:(ee=(0,l.default)(s.default.mark((function e(t){var n,r,o,i,a=arguments;return s.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=a.length>1&&void 0!==a[1]?a[1]:{},r=t._type,o=(0,c.default)(t,["_type"]),r){e.next=4;break}throw new Error("The document must have a `_type` property");case 4:return i=G({_type:r},o),e.next=7,this.schema.validate(i);case 7:if(!0===e.sent){e.next=10;break}throw new Error("Validation failed");case 10:return e.abrupt("return",this.mutate(this.getDocumentSavePlan(i),n));case 11:case"end":return e.stop()}}),e,this)}))),function(e){return ee.apply(this,arguments)})},{key:"saveAll",value:(X=(0,l.default)(s.default.mark((function e(t){var n,r,o,i,a,u=this,c=arguments;return s.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=c.length>1&&void 0!==c[1]?c[1]:{},1===Array.from(new Set(t.map((function(e){return e._type})))).length){e.next=4;break}throw new Error("saveAll can only save documents with the same doctype");case 4:return e.next=6,Promise.all(t.map((function(e){return u.schema.validate(e)})));case 6:if(r=e.sent,!((o=r.filter((function(e){return!0!==e}))).length>0)){e.next=11;break}throw console.warn("There has been some validation errors while bulk saving",o),new Error("Validation failed for at least one doc");case 11:return i=t.map((function(e){return u.prepareDocumentForSave(e)})),a=E.Mutations.updateDocuments(i),e.abrupt("return",this.mutate(a,n));case 14:case"end":return e.stop()}}),e,this)}))),function(e){return X.apply(this,arguments)})},{key:"ensureCozyMetadata",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{event:"creation"},r=1;if(void 0===this.appMetadata)return e;if(e._type){var o=this.schema.getDoctypeSchema(e._type);t=(0,w.default)(o,"doctypeVersion")}var i=this.appMetadata,a=i.slug,c=i.sourceAccount,s=i.version,l=(new Date).toISOString(),f=(0,w.default)(e,"cozyMetadata",{});return"creation"===n.event?f=G({metadataVersion:r,doctypeVersion:t,createdByApp:a,sourceAccount:c,createdAt:l,createdByAppVersion:s,updatedAt:l,updatedByApps:a?[{date:l,slug:a,version:s}]:[]},f):"update"===n.event&&(f=G(G({},f),{},{updatedAt:l,updatedByApps:[{date:l,slug:a,version:s}].concat((0,u.default)((0,w.default)(e,"cozyMetadata.updatedByApps",[]).filter((function(e){return e.slug!==a}))))})),G(G({},e),{},{cozyMetadata:f})}},{key:"prepareDocumentForSave",value:function(e){var t=!e._rev;return this.ensureCozyMetadata((0,O.dehydrate)(e),{event:t?"creation":"update"})}},{key:"getDocumentSavePlan",value:function(e,t){var n,r=this,o=!e._rev,i=this.prepareDocumentForSave(e),u=o?E.Mutations.createDocument(i):E.Mutations.updateDocument(i);if(!(t&&Object.values(t).filter((function(e){return Array.isArray(e)?e.length>0:e})).length>0))return u;for(var c=0,s=Object.keys(t);c<s.length;c++){var l=s[c],f=e._type,d=this.schema.getRelationship(f,l),p=d.type;if(!Q(p))throw n=d.name,new Error('The "'.concat(n,'" relationship does not support references. If you need to add references to a document, its relationship class must have the methods {add,remove}References'))}if(t&&!o)throw new Error("Unable to save external relationships on a not-new document");return[u,function(e){var n=r.hydrateDocument(e.data);return Object.entries(t).map((function(e){var t=(0,a.default)(e,2),r=t[0],o=t[1];return n[r].addReferences(o)}))}]}},{key:"triggerHook",value:function(e,n){if(t.hooks){var r,o=q((t.hooks[n._type]||{})[e]||[]);try{for(o.s();!(r=o.n()).done;){(0,r.value)(this,n)}}catch(e){o.e(e)}finally{o.f()}}}},{key:"destroy",value:(Z=(0,l.default)(s.default.mark((function e(t){var n,r,o=arguments;return s.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=o.length>1&&void 0!==o[1]?o[1]:{},e.next=3,this.triggerHook("before:destroy",t);case 3:return e.next=5,this.mutate(E.Mutations.deleteDocument(t),n);case 5:return r=e.sent,e.next=8,this.triggerHook("after:destroy",t);case 8:return e.abrupt("return",r);case 9:case"end":return e.stop()}}),e,this)}))),function(e){return Z.apply(this,arguments)})},{key:"upload",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.mutate(E.Mutations.uploadFile(e,t),n)}},{key:"ensureQueryExists",value:function(e,t,n){this.ensureStore(),"loaded"===(0,P.getQueryFromState)(this.store.getState(),e).fetchStatus&&(t.skip||t.bookmark)||this.dispatch((0,P.initQuery)(e,t,n))}},{key:"query",value:(K=(0,l.default)(s.default.mark((function e(t){var n,r,o,i,a,u,l=this,f=arguments;return s.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=f.length>1&&void 0!==f[1]?f[1]:{},r=n.update,o=(0,c.default)(n,["update"]),this.ensureStore(),i=o.as||this.queryIdGenerator.generateId(t),a=this.getQueryFromState(i),!o.fetchPolicy){e.next=11;break}if(o.as){e.next=8;break}throw new Error("Cannot use `fetchPolicy` without naming the query, please use `as` to name the query");case 8:if(o.fetchPolicy(a)){e.next=11;break}return e.abrupt("return");case 11:if(!(a&&Object.keys(a).length>0)){e.next=14;break}if("loading"!==a.fetchStatus){e.next=14;break}return e.abrupt("return",this._promiseCache.get((function(){return(0,N.default)(t)})));case 14:return this.ensureQueryExists(i,t,o),e.prev=15,this.dispatch((0,P.loadQuery)(i)),e.next=19,this._promiseCache.exec((function(){return l.requestQuery(t)}),(function(){return(0,N.default)(t)}));case 19:return u=e.sent,this.dispatch((0,P.receiveQueryResult)(i,u,{update:r})),e.abrupt("return",u);case 24:if(e.prev=24,e.t0=e.catch(15),this.dispatch((0,P.receiveQueryError)(i,e.t0)),!o.onError){e.next=31;break}o.onError(e.t0),e.next=36;break;case 31:if(!this.options.onError){e.next=35;break}this.options.onError(e.t0),e.next=36;break;case 35:throw e.t0;case 36:case"end":return e.stop()}}),e,this,[[15,24]])}))),function(e){return K.apply(this,arguments)})},{key:"queryAll",value:(Y=(0,l.default)(s.default.mark((function e(t){var n,r,o,i,a,c,l=arguments;return s.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=l.length>1&&void 0!==l[1]?l[1]:{},r=n.as||this.queryIdGenerator.generateId(t),o=G(G({},n),{},{as:r}),e.next=5,this.query(t,o);case 5:i=e.sent,a=i.data;case 7:if(!i||!i.next){e.next=21;break}if(!i.bookmark){e.next=14;break}return e.next=11,this.query(t.offsetBookmark(i.bookmark),o);case 11:i=e.sent,e.next=18;break;case 14:return c=(0,P.getRawQueryFromState)(this.store.getState(),r),e.next=17,this.query(t.offset(c.data.length),o);case 17:i=e.sent;case 18:a.push.apply(a,(0,u.default)(i.data)),e.next=7;break;case 21:return e.abrupt("return",a);case 22:case"end":return e.stop()}}),e,this)}))),function(e){return Y.apply(this,arguments)})},{key:"watchQuery",value:function(){return console.warn("client.watchQuery is deprecated, please use client.makeObservableQuery."),this.makeObservableQuery.apply(this,arguments)}},{key:"makeObservableQuery",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.ensureStore();var n=t.as||this.queryIdGenerator.generateId(e);return this.ensureQueryExists(n,e),new D.default(n,e,this,t)}},{key:"mutate",value:(V=(0,l.default)(s.default.mark((function e(t){var n,r,o,i,a,u,l=arguments;return s.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=l.length>1&&void 0!==l[1]?l[1]:{},r=n.update,o=n.updateQueries,i=(0,c.default)(n,["update","updateQueries"]),this.ensureStore(),a=i.as||this.queryIdGenerator.generateId(t),this.dispatch((0,P.initMutation)(a,t)),e.prev=5,e.next=8,this.requestMutation(t);case 8:return u=e.sent,this.dispatch((0,P.receiveMutationResult)(a,u,{update:r,updateQueries:o},t)),e.abrupt("return",u);case 13:throw e.prev=13,e.t0=e.catch(5),this.dispatch((0,P.receiveMutationError)(a,e.t0,t)),e.t0;case 17:case"end":return e.stop()}}),e,this,[[5,13]])}))),function(e){return V.apply(this,arguments)})},{key:"requestQuery",value:(J=(0,l.default)(s.default.mark((function e(t){var n,r;return s.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.chain.request(t);case 2:if(n=e.sent,t.includes){e.next=5;break}return e.abrupt("return",n);case 5:return e.next=7,this.fetchRelationships(n,this.getIncludesRelationships(t));case 7:return r=e.sent,e.abrupt("return",r);case 9:case"end":return e.stop()}}),e,this)}))),function(e){return J.apply(this,arguments)})},{key:"fetchRelationships",value:($=(0,l.default)(s.default.mark((function e(t,n){var r,o,i,u,c,l,f,d,p,h,m,w,x,C,k,S,_,O,B,P=this;return s.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((r=!Array.isArray(t.data))||0!==t.data.length){e.next=3;break}return e.abrupt("return",t);case 3:return o=r?[t.data]:t.data,i=new Map,u=[],c=[],o.forEach((function(e){return(0,b.default)(n,(function(t,n){try{var r=t.type.query(e,P,t),o=e._id;i.set(r,[o,n]),r instanceof E.QueryDefinition?c.push(r):u.push(r)}catch(e){}}))})),l=(0,j.default)(c),e.next=11,Promise.all(l.map((function(e){return P.chain.request(e)})));case 11:f=e.sent,d=(0,v.default)((0,y.default)(u),"_id"),p=(0,y.default)(f.map((function(e){return e.included||e.data}))).concat(d).filter(Boolean),h={},m=q((0,g.default)(l,f));try{for(m.s();!(w=m.n()).done;)x=(0,a.default)(w.value,2),C=x[0],k=x[1],(S=i.get(C))&&(_=(0,a.default)(S,2),O=_[0],B=_[1],h[O]=h[O]||{},h[O][B]=(0,A.responseToRelationship)(k))}catch(e){m.e(e)}finally{m.f()}return e.abrupt("return",G(G({},(0,A.attachRelationships)(t,h)),{},{included:p}));case 18:case"end":return e.stop()}}),e)}))),function(e,t){return $.apply(this,arguments)})},{key:"requestMutation",value:(T=(0,l.default)(s.default.mark((function e(t){var n,r,o,a,u=this;return s.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!Array.isArray(t)){e.next=8;break}return n=(0,i.default)(t),r=n[0],o=n.slice(1),e.next=4,this.requestMutation(r);case 4:return a=e.sent,e.next=7,Promise.all(o.map((function(e){var t="function"==typeof e?e(a):e;return u.requestMutation(t)})));case 7:return e.abrupt("return",a);case 8:return e.abrupt("return",this.chain.request(t));case 9:case"end":return e.stop()}}),e,this)}))),function(e){return T.apply(this,arguments)})},{key:"getIncludesRelationships",value:function(e){var t=this,n=e.includes,r=e.doctype;return n?(0,m.default)(n.map((function(e){return[e,t.schema.getRelationship(r,e)]}))):{}}},{key:"hydrateDocuments",value:function(e,t){var n=this;if(!1===this.options.autoHydrate)return t;var r=this.schema.getDoctypeSchema(e);return r.relationships?t.map((function(e){return n.hydrateDocument(e,r)})):t}},{key:"hydrateDocument",value:function(e,t){if(!e)return e;var n=t||this.schema.getDoctypeSchema(e._type);return G(G({},e),this.hydrateRelationships(e,n.relationships))}},{key:"hydrateRelationships",value:function(e,t){var n=this.getRelationshipStoreAccessors();return(0,h.default)(t,(function(t,r){return(0,_.create)(e,t,n)}))}},{key:"makeNewDocument",value:function(e){var t={_type:e};return this.hydrateDocument(t)}},{key:"generateRandomId",value:function(){return this.queryIdGenerator.generateRandomId()}},{key:"getAssociation",value:function(e,t){return(0,_.create)(e,this.schema.getRelationship(e._type,t),this.getRelationshipStoreAccessors())}},{key:"getRelationshipStoreAccessors",value:function(){var e=this;return this.storeAccesors||(this.storeAccessors={get:this.getDocumentFromState.bind(this),save:function(t,n){return e.save.call(e,t,n)},dispatch:this.dispatch.bind(this),query:function(t,n){return e.query.call(e,t,n)},mutate:function(t,n){return e.mutate.call(e,t,n)}}),this.storeAccessors}},{key:"getCollectionFromState",value:function(e){try{return(0,P.getCollectionFromState)(this.store.getState(),e)}catch(t){return F.default.warn("Could not getCollectionFromState",e,t.message),null}}},{key:"getDocumentFromState",value:function(e,t){try{return(0,P.getDocumentFromState)(this.store.getState(),e,t)}catch(n){return F.default.warn("Could not getDocumentFromState",e,t,n.message),null}}},{key:"getQueryFromState",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.hydrated||!1,r=t.singleDocData||!1;try{var o=(0,P.getQueryFromState)(this.store.getState(),e),i=o.definition&&o.definition.doctype,a=o.definition&&o.definition.id;if(!n&&!r)return o;var u=n&&i?this.hydrateDocuments(i,o.data):o.data;return G(G({},o),{},{data:a&&r?u[0]:u})}catch(t){return console.warn("Could not get query from state. queryId: ".concat(e,", error: ").concat(t.message)),null}}},{key:"register",value:function(e){return this.getStackClient().setUri(e),this.startOAuthFlow(B.authFunction)}},{key:"isReactNative",value:function(){return"undefined"!=typeof navigator&&"ReactNative"==navigator.product}},{key:"startOAuthFlow",value:(x=(0,l.default)(s.default.mark((function e(t){var n;return s.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this.getStackClient(),e.next=3,n.register();case 3:if(!n.oauthOptions.shouldRequireFlagshipPermissions){e.next=6;break}return e.next=6,(0,U.certifyFlagship)(n.oauthOptions.certificationConfig,this);case 6:return e.abrupt("return",this.authorize(t));case 7:case"end":return e.stop()}}),e,this)}))),function(e){return x.apply(this,arguments)})},{key:"authorize",value:(o=(0,l.default)(s.default.mark((function e(t){var n,r,o,i,a,u;return s.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,n=this.getStackClient(),r=n.generateStateCode(),o=n.getAuthCodeURL(r),e.next=6,t(o);case 6:return i=e.sent,a=n.getAccessCodeFromURL(i,r),e.next=10,n.fetchAccessToken(a);case 10:return u=e.sent,n.setToken(u),e.abrupt("return",{token:u,infos:n.oauthOptions,client:n.oauthOptions});case 15:throw e.prev=15,e.t0=e.catch(0),e.t0.message===k.REGISTRATION_ABORT&&this.getStackClient().unregister(),e.t0;case 19:case"end":return e.stop()}}),e,this,[[0,15]])}))),function(e){return o.apply(this,arguments)})},{key:"renewAuthorization",value:function(){return this.authorize(B.authFunction)}},{key:"setStore",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.force,r=void 0!==n&&n;if(void 0===e)throw new Error("Store is undefined");if(this.store&&!r)throw new Error("Client already has a store, it is forbidden to change store.\nsetStore must be called before any query is executed. Try to\ncall setStore earlier in your code, preferably just after the\ninstantiation of the client.");this.store=e}},{key:"ensureStore",value:function(){this.store||this.setStore((0,P.createStore)())}},{key:"checkForRevocation",value:(r=(0,l.default)(s.default.mark((function e(){return s.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.stackClient.checkForRevocation());case 1:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"handleRevocationChange",value:function(e){e?(this.isRevoked=!0,this.emit("revoked")):(this.isRevoked=!1,this.emit("unrevoked"))}},{key:"handleTokenRefresh",value:function(e){this.emit("tokenRefreshed"),this.options.onTokenRefresh&&(W("Using onTokenRefresh is deprecated, please use events like this: cozyClient.on('tokenRefreshed', token => console.log('Token has been refreshed', token)). https://git.io/fj3M3"),this.options.onTokenRefresh(e))}},{key:"createClient",value:function(){this.options.client&&console.warn("CozyClient: Using options.client is deprecated, please use options.stackClient.");var e=void 0===this.options.warningForCustomHandlers||this.options.warningForCustomHandlers,t=this.options.client||this.options.stackClient,n={onRevocationChange:this.handleRevocationChange,onTokenRefresh:this.handleTokenRefresh};if(t){this.stackClient=t,t.options||(t.options={});for(var r=0,o=Object.keys(n);r<o.length;r++){var i=o[r];t.options[i]?e&&console.warn("You passed a stackClient with its own ".concat(i,". It is not supported, unexpected things might happen.")):t.options[i]=n[i]}}else{var a=G(G({},this.options),n);this.stackClient=this.options.oauth?new C.OAuthClient(a):new C.default(a)}this.client=new Proxy(this.stackClient,W("Using cozyClient.client is deprecated, please use cozyClient.stackClient."))}},{key:"getClient",value:function(){return console.warn("CozyClient: getClient() is deprecated, please use getStackClient()."),this.getStackClient()}},{key:"getStackClient",value:function(){return this.stackClient||this.createClient(),this.stackClient}},{key:"reducer",value:function(){return P.default}},{key:"dispatch",value:function(e){return this.store.dispatch(e)}},{key:"getInstanceOptions",value:function(){return this.instanceOptions}},{key:"loadInstanceOptionsFromDOM",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"[role=application]",t=document.querySelector(e);if(!(t instanceof HTMLElement))throw new Error("The selector that is passed does not return an HTMLElement");var n=t.dataset,r=n.cozy,o=void 0===r?"{}":r,i=(0,c.default)(n,["cozy"]);this.instanceOptions=G(G({},JSON.parse(o)),i),this.capabilities=this.instanceOptions.capabilities||null}},{key:"setData",value:function(e){var t=this;this.ensureStore(),Object.entries(e).forEach((function(e){var n=(0,a.default)(e,2),r=(n[0],n[1]);t.dispatch((0,P.receiveQueryResult)(null,{data:r}))}))}},{key:"setOnError",value:function(e){if(this.options&&this.options.onError)throw new Error("On Error is already defined");this.options.onError=e}},{key:"toJSON",value:function(){return new R.CozyClient({uri:this.options.uri})}}],[{key:"fromOldClient",value:function(e,n){return new t(G({uri:e._url,token:e._token.token},n))}},{key:"fromOldOAuthClient",value:(n=(0,l.default)(s.default.mark((function e(n,r){var o,i;return s.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!n._oauth){e.next=8;break}return e.next=3,n.authorize();case 3:return o=e.sent,i={oauth:o.client,token:o.token,scope:o.token.scope},e.abrupt("return",new t(G(G({uri:n._url},i),r)));case 8:throw new Error("Cannot instantiate a new client: old client is not an OAuth client. CozyClient.fromOldClient might be more suitable.");case 9:case"end":return e.stop()}}),e)}))),function(e,t){return n.apply(this,arguments)})},{key:"fromEnv",value:function(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=n||(void 0!==e?Object({USE_REACT:!0}):{}),i=o.COZY_URL,a=o.COZY_CREDENTIALS,u=o.NODE_ENV;if(!i||!a)throw new Error("Env used to instantiate CozyClient must have COZY_URL and COZY_CREDENTIALS");return"development"===u?r.oauth=JSON.parse(a):r.token=a.trim(),r.uri=i.trim(),new t(G({},r))}},{key:"fromDOM",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"[role=application]",r=document.querySelector(n);if(!(r instanceof HTMLElement))throw new Error("Cannot find an HTMLElement corresponding to ".concat(n));if(!r||!r.dataset)throw new Error("Found no data in ".concat(n," to instantiate cozyClient"));var o=r.dataset.cozy?JSON.parse(r.dataset.cozy):G({},r.dataset),i=o.domain,a=o.token;if(i&&a||(i=i||o.cozyDomain,a=a||o.cozyToken),!i||!a)throw new Error("Found no data in ".concat(r.dataset," to instantiate cozyClient"));return new t(G({uri:"".concat(window.location.protocol,"//").concat(i),token:a,capabilities:o.capabilities},e))}},{key:"registerHook",value:function(e,n,r){var o=t.hooks[e]=t.hooks[e]||{};o[n]=o[n]||[],o[n].push(r)}}]),t}();V.hooks=V.hooks||{},V.fetchPolicies=T.default,V.version="27.14.4",x.default.mixin(V);var Y=V;t.default=Y}).call(this,n(468))},function(e,t,n){var r=n(153);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(o.Cache||r),n}o.Cache=r,e.exports=o},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatBytes=t.slugify=t.sleep=t.attempt=t.uri=void 0;t.uri=function(e){for(var t=[e[0]],n=0;n<(arguments.length<=1?0:arguments.length-1);n++)t.push(encodeURIComponent(n+1<1||arguments.length<=n+1?void 0:arguments[n+1])+e[n+1]);return t.join("")};t.attempt=function(e){return e.then((function(){return!0})).catch((function(){return!1}))};t.sleep=function(e,t){return new Promise((function(n){setTimeout(n,e,t)}))};t.slugify=function(e){return e.toString().toLowerCase().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,"")};t.formatBytes=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;if(0===e)return"0 Bytes";var n=1024,r=t<0?0:t,o=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],i=Math.floor(Math.log(e)/Math.log(n));return parseFloat((e/Math.pow(n,i)).toFixed(r))+" "+o[i]}},function(e,t){function n(){this._events={}}n.prototype={on:function(e,t){this._events||(this._events={});var n=this._events;return(n[e]||(n[e]=[])).push(t),this},removeListener:function(e,t){var n,r=this._events[e]||[];for(n=r.length-1;n>=0&&r[n];n--)r[n]!==t&&r[n].cb!==t||r.splice(n,1)},removeAllListeners:function(e){e?this._events[e]&&(this._events[e]=[]):this._events={}},listeners:function(e){return this._events&&this._events[e]||[]},emit:function(e){this._events||(this._events={});var t,n=Array.prototype.slice.call(arguments,1),r=this._events[e]||[];for(t=r.length-1;t>=0&&r[t];t--)r[t].apply(this,n);return this},when:function(e,t){return this.once(e,t,!0)},once:function(e,t,n){if(!t)return this;function r(){n||this.removeListener(e,r),t.apply(this,arguments)&&n&&this.removeListener(e,r)}return r.cb=t,this.on(e,r),this}},n.mixin=function(e){var t,r=n.prototype;for(t in r)r.hasOwnProperty(t)&&(e.prototype[t]=r[t])},e.exports=n},function(e,t){e.exports=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}},function(e,t,n){var r=n(152),o=n(157);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},function(e,t,n){function r(){}n(45).mixin(r),r.prototype.write=function(e,t,n){this.emit("item",e,t,n)},r.prototype.end=function(){this.emit("end"),this.removeAllListeners()},r.prototype.pipe=function(e){var t=this;function n(){e.write.apply(e,Array.prototype.slice.call(arguments))}function r(){!e._isStdio&&e.end()}return t.emit("unpipe",e),e.emit("pipe",t),t.on("item",n),t.on("end",r),t.when("unpipe",(function(o){var i=o===e||void 0===o;return i&&(t.removeListener("item",n),t.removeListener("end",r),e.emit("unpipe")),i})),e},r.prototype.unpipe=function(e){return this.emit("unpipe",e),this},r.prototype.format=function(e){throw new Error(["Warning: .format() is deprecated in Minilog v2! Use .pipe() instead. For example:","var Minilog = require('minilog');","Minilog"," .pipe(Minilog.backends.console.formatClean)"," .pipe(Minilog.backends.console);"].join("\n"))},r.mixin=function(e){var t,n=r.prototype;for(t in n)n.hasOwnProperty(t)&&(e.prototype[t]=n[t])},e.exports=r},function(e,t,n){"use strict";var r=n(449),o="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),i=Object.prototype.toString,a=Array.prototype.concat,u=Object.defineProperty,c=u&&function(){var e={};try{for(var t in u(e,"x",{enumerable:!1,value:e}),e)return!1;return e.x===e}catch(e){return!1}}(),s=function(e,t,n,r){var o;(!(t in e)||"function"==typeof(o=r)&&"[object Function]"===i.call(o)&&r())&&(c?u(e,t,{configurable:!0,enumerable:!1,value:n,writable:!0}):e[t]=n)},l=function(e,t){var n=arguments.length>2?arguments[2]:{},i=r(t);o&&(i=a.call(i,Object.getOwnPropertySymbols(t)));for(var u=0;u<i.length;u+=1)s(e,i[u],t[i[u]],n[i[u]])};l.supportsDescriptors=!!c,e.exports=l},function(e,t,n){function r(){}n(45).mixin(r),r.prototype.write=function(e,t,n){this.emit("item",e,t,n)},r.prototype.end=function(){this.emit("end"),this.removeAllListeners()},r.prototype.pipe=function(e){var t=this;function n(){e.write.apply(e,Array.prototype.slice.call(arguments))}function r(){!e._isStdio&&e.end()}return t.emit("unpipe",e),e.emit("pipe",t),t.on("item",n),t.on("end",r),t.when("unpipe",(function(o){var i=o===e||void 0===o;return i&&(t.removeListener("item",n),t.removeListener("end",r),e.emit("unpipe")),i})),e},r.prototype.unpipe=function(e){return this.emit("unpipe",e),this},r.prototype.format=function(e){throw new Error(["Warning: .format() is deprecated in Minilog v2! Use .pipe() instead. For example:","var Minilog = require('minilog');","Minilog"," .pipe(Minilog.backends.console.formatClean)"," .pipe(Minilog.backends.console);"].join("\n"))},r.mixin=function(e){var t,n=r.prototype;for(t in n)n.hasOwnProperty(t)&&(e.prototype[t]=n[t])},e.exports=r},function(e,t,n){(t=e.exports=n(70)(!0)).push([e.i,"@-webkit-keyframes cozy-ui-bar-spin--39OaW{from{transform:rotate(0deg)}to{transform:rotate(359deg)}}@keyframes cozy-ui-bar-spin--39OaW{from{transform:rotate(0deg)}to{transform:rotate(359deg)}}@-webkit-keyframes cozy-ui-bar-shake--34qwk{10%,90%{transform:translate3d(-1px,0,0)}20%,80%{transform:translate3d(2px,0,0)}30%,50%,70%{transform:translate3d(-4px,0,0)}40%,60%{transform:translate3d(4px,0,0)}}@keyframes cozy-ui-bar-shake--34qwk{10%,90%{transform:translate3d(-1px,0,0)}20%,80%{transform:translate3d(2px,0,0)}30%,50%,70%{transform:translate3d(-4px,0,0)}40%,60%{transform:translate3d(4px,0,0)}}.u-visuallyhidden{position:absolute!important;border:0!important;width:.063rem!important;height:.063rem!important;overflow:hidden!important;padding:0!important;white-space:nowrap!important;clip:rect(.063rem,.063rem,.063rem,.063rem)!important;-webkit-clip-path:inset(50%)!important;clip-path:inset(50%)!important}.u-hide{display:none!important;visibility:hidden!important}.u-dn{display:none}.u-di{display:inline}.u-db{display:block}.u-dib{display:inline-block}.u-dit{display:inline-table}.u-dt{display:table}.u-dtc{display:table-cell}.u-dt-row{display:table-row}.u-dt-row-group{display:table-row-group}.u-dt-column{display:table-column}.u-dt-column-group{display:table-column-group}.u-black{color:var(--black)!important}.u-charcoalGrey{color:var(--charcoalGrey)!important}.u-coolGrey{color:var(--coolGrey)!important}.u-silver{color:var(--silver)!important}.u-slateGrey{color:var(--slateGrey)!important}.u-lightishPurple{color:#b449e7!important}.u-dodgerBlue{color:#297ef2!important}.u-overlay{color:var(--overlay)!important}.u-paleGrey{color:var(--paleGrey)!important}.u-monza{color:#dd0505!important}.u-pomegranate{color:#f52d2d!important}.u-primaryBackgroundLight{color:var(--primaryBackgroundLight)!important}.u-primaryColor{color:var(--primaryColor)!important}.u-primaryColorLight{color:var(--primaryColorLight)!important}.u-primaryContrastTextColor{color:var(--primaryContrastTextColor)!important}.u-error{color:var(--errorColor)!important}.u-errorBackground{color:var(--errorBackground)!important}.u-success{color:var(--successColor)!important}.u-warning{color:var(--warningColor)!important}.u-info{color:var(--infoColor)!important}.u-weirdGreen{color:#40de8e!important}.u-white{color:var(--white)!important}.u-breakword{word-break:break-word}.u-ellipsis{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.u-spacellipsis{overflow:hidden;text-overflow:ellipsis;white-space:break-spaces}.u-midellipsis{display:flex;flex-wrap:nowrap}.u-midellipsis>*{display:inline-block;max-width:50%;overflow:hidden;white-space:pre}.u-midellipsis>:first-child{text-overflow:ellipsis}.u-midellipsis>:last-child{text-overflow:clip;direction:rtl}@supports(text-overflow:'[...]'){.u-midellipsis>:first-child{text-overflow:'[...]'}}.u-link:link{color:var(--linkColor)!important;-webkit-text-decoration:var(--linkTextDecoration)!important;text-decoration:var(--linkTextDecoration)!important}.u-link:visited,.u-link:active,.u-link:hover,.u-link:focus{color:var(--linkColorActive)!important}.u-lh-tiny{line-height:1!important}.u-lh-xsmall{line-height:1.1!important}.u-lh-small{line-height:1.2!important}.u-lh-medium{line-height:1.3!important}.u-lh-large{line-height:1.4!important}.u-lh-xlarge{line-height:1.5!important}.u-fz-tiny{font-size:.75rem!important;line-height:1.3!important}.u-fz-xsmall{font-size:.813rem!important;line-height:1.4!important}.u-fz-small{font-size:.875rem!important;line-height:1.4!important}.u-fz-medium{font-size:1rem!important;line-height:1.5!important}.u-fz-large{font-size:1.125rem!important;line-height:1.5!important}.u-ta-left{text-align:left!important}.u-ta-right{text-align:right!important}.u-ta-center{text-align:center!important}.u-ta-justify{text-align:justify!important}.u-fs-normal{font-style:normal!important}.u-fs-italic{font-style:italic!important}.u-fw-normal{font-weight:400}.u-fw-bold{font-weight:700}.cozy-ui-bar-c-btn--3Vk8q,.cozy-ui-bar-c-btn--regular--2vXm9{position:relative;box-sizing:border-box;display:inline-flex;margin:0 .25rem;border-width:.063rem;border-style:solid;border-radius:var(--buttonBorderRadius);min-height:2.5rem;min-width:7rem;padding:.188rem 1rem;vertical-align:top;text-align:center;font-size:.875rem;font-weight:700;line-height:1;text-transform:var(--buttonTextTransform);text-decoration:none;cursor:pointer;align-items:center;background-color:var(--regularButtonPrimaryColor);color:var(--regularButtonConstrastColor);border-color:var(--regularButtonSecondaryColor)}.cozy-ui-bar-c-btn--3Vk8q svg,.cozy-ui-bar-c-btn--regular--2vXm9 svg{fill:currentColor}.cozy-ui-bar-c-btn--3Vk8q svg+span,.cozy-ui-bar-c-btn--regular--2vXm9 svg+span{margin-left:.375rem}.cozy-ui-bar-c-btn--3Vk8q input,.cozy-ui-bar-c-btn--regular--2vXm9 input{cursor:pointer}.cozy-ui-bar-c-btn--3Vk8q>span,.cozy-ui-bar-c-btn--regular--2vXm9>span{display:flex;align-items:center;justify-content:center;width:100%}.cozy-ui-bar-c-btn--3Vk8q[disabled],.cozy-ui-bar-c-btn--regular--2vXm9[disabled],.cozy-ui-bar-c-btn--3Vk8q[aria-disabled=true],.cozy-ui-bar-c-btn--regular--2vXm9[aria-disabled=true]{opacity:.5;cursor:not-allowed}.cozy-ui-bar-c-btn--3Vk8q[disabled] input,.cozy-ui-bar-c-btn--regular--2vXm9[disabled] input,.cozy-ui-bar-c-btn--3Vk8q[aria-disabled=true] input,.cozy-ui-bar-c-btn--regular--2vXm9[aria-disabled=true] input{cursor:not-allowed}.cozy-ui-bar-c-btn--3Vk8q[aria-busy=true],.cozy-ui-bar-c-btn--regular--2vXm9[aria-busy=true]{opacity:.5;pointer-events:none}.cozy-ui-bar-c-btn--3Vk8q:visited,.cozy-ui-bar-c-btn--regular--2vXm9:visited{color:var(--regularButtonConstrastColor)}.cozy-ui-bar-c-btn--3Vk8q:active,.cozy-ui-bar-c-btn--regular--2vXm9:active,.cozy-ui-bar-c-btn--3Vk8q:hover,.cozy-ui-bar-c-btn--regular--2vXm9:hover,.cozy-ui-bar-c-btn--3Vk8q:focus,.cozy-ui-bar-c-btn--regular--2vXm9:focus{border-color:var(--regularButtonActiveColor);background-color:var(--regularButtonActiveColor)}.cozy-ui-bar-c-btn--3Vk8q[disabled]:hover,.cozy-ui-bar-c-btn--regular--2vXm9[disabled]:hover,.cozy-ui-bar-c-btn--3Vk8q[aria-disabled=true]:hover,.cozy-ui-bar-c-btn--regular--2vXm9[aria-disabled=true]:hover{border-color:var(--regularButtonSecondaryColor);background-color:var(--regularButtonPrimaryColor)}.cozy-ui-bar-c-btn--ghost--2erzD{background-color:var(--zircon);color:var(--primaryColor);border-color:#c2dcff;border-style:dashed}.cozy-ui-bar-c-btn--ghost--2erzD:visited{color:var(--primaryColor)}.cozy-ui-bar-c-btn--ghost--2erzD:active,.cozy-ui-bar-c-btn--ghost--2erzD:hover,.cozy-ui-bar-c-btn--ghost--2erzD:focus{border-color:#c2dcff;background-color:#c2dcff}.cozy-ui-bar-c-btn--ghost--2erzD[disabled]:hover,.cozy-ui-bar-c-btn--ghost--2erzD[aria-disabled=true]:hover{border-color:#c2dcff;background-color:var(--zircon)}.cozy-ui-bar-c-btn--highlight--139k0{background-color:#35ce68;color:var(--white);border-color:#35ce68}.cozy-ui-bar-c-btn--highlight--139k0:visited{color:var(--white)}.cozy-ui-bar-c-btn--highlight--139k0:active,.cozy-ui-bar-c-btn--highlight--139k0:hover,.cozy-ui-bar-c-btn--highlight--139k0:focus{border-color:#08b442;background-color:#08b442}.cozy-ui-bar-c-btn--highlight--139k0[disabled]:hover,.cozy-ui-bar-c-btn--highlight--139k0[aria-disabled=true]:hover{border-color:#35ce68;background-color:#35ce68}.cozy-ui-bar-c-btn--alpha--3xuwd,.cozy-ui-bar-c-btn--action--1mNtp,.cozy-ui-bar-c-btn--close--m97vB{background-color:transparent;color:var(--white);border-color:var(--white)}.cozy-ui-bar-c-btn--alpha--3xuwd:visited,.cozy-ui-bar-c-btn--action--1mNtp:visited,.cozy-ui-bar-c-btn--close--m97vB:visited{color:var(--white)}.cozy-ui-bar-c-btn--alpha--3xuwd:active,.cozy-ui-bar-c-btn--action--1mNtp:active,.cozy-ui-bar-c-btn--close--m97vB:active,.cozy-ui-bar-c-btn--alpha--3xuwd:hover,.cozy-ui-bar-c-btn--action--1mNtp:hover,.cozy-ui-bar-c-btn--close--m97vB:hover,.cozy-ui-bar-c-btn--alpha--3xuwd:focus,.cozy-ui-bar-c-btn--action--1mNtp:focus,.cozy-ui-bar-c-btn--close--m97vB:focus{border-color:var(--scienceBlue);background-color:var(--scienceBlue)}.cozy-ui-bar-c-btn--alpha--3xuwd[disabled]:hover,.cozy-ui-bar-c-btn--action--1mNtp[disabled]:hover,.cozy-ui-bar-c-btn--close--m97vB[disabled]:hover,.cozy-ui-bar-c-btn--alpha--3xuwd[aria-disabled=true]:hover,.cozy-ui-bar-c-btn--action--1mNtp[aria-disabled=true]:hover,.cozy-ui-bar-c-btn--close--m97vB[aria-disabled=true]:hover{border-color:var(--white);background-color:transparent}.cozy-ui-bar-c-btn--danger--3pdnK{background-color:#f52d2d;color:var(--white);border-color:#f52d2d}.cozy-ui-bar-c-btn--danger--3pdnK:visited{color:var(--white)}.cozy-ui-bar-c-btn--danger--3pdnK:active,.cozy-ui-bar-c-btn--danger--3pdnK:hover,.cozy-ui-bar-c-btn--danger--3pdnK:focus{border-color:var(--monza);background-color:var(--monza)}.cozy-ui-bar-c-btn--danger--3pdnK[disabled]:hover,.cozy-ui-bar-c-btn--danger--3pdnK[aria-disabled=true]:hover{border-color:#f52d2d;background-color:#f52d2d}.cozy-ui-bar-c-btn--secondary--2JUsA{background-color:var(--secondaryButtonPrimaryColor);color:var(--secondaryButtonContrastColor);border-color:var(--secondaryButtonSecondaryColor)}.cozy-ui-bar-c-btn--secondary--2JUsA:visited{color:var(--secondaryButtonContrastColor)}.cozy-ui-bar-c-btn--secondary--2JUsA:active,.cozy-ui-bar-c-btn--secondary--2JUsA:hover,.cozy-ui-bar-c-btn--secondary--2JUsA:focus{border-color:var(--secondaryButtonActiveColor);background-color:var(--secondaryButtonActiveColor)}.cozy-ui-bar-c-btn--secondary--2JUsA[disabled]:hover,.cozy-ui-bar-c-btn--secondary--2JUsA[aria-disabled=true]:hover{border-color:var(--secondaryButtonSecondaryColor);background-color:var(--secondaryButtonPrimaryColor)}.cozy-ui-bar-c-btn--danger-outline--2Bltk{background-color:var(--white);color:#f52d2d;border-color:#fdcbcb}.cozy-ui-bar-c-btn--danger-outline--2Bltk:visited{color:#f52d2d}.cozy-ui-bar-c-btn--danger-outline--2Bltk:active,.cozy-ui-bar-c-btn--danger-outline--2Bltk:hover,.cozy-ui-bar-c-btn--danger-outline--2Bltk:focus{border-color:#fdcbcb;background-color:#fdcbcb}.cozy-ui-bar-c-btn--danger-outline--2Bltk[disabled]:hover,.cozy-ui-bar-c-btn--danger-outline--2Bltk[aria-disabled=true]:hover{border-color:#fdcbcb;background-color:var(--white)}.cozy-ui-bar-c-btn--text--1M_ap{background-color:transparent;color:var(--primaryColor);border-color:transparent}.cozy-ui-bar-c-btn--text--1M_ap:visited{color:var(--primaryColor)}.cozy-ui-bar-c-btn--text--1M_ap:active,.cozy-ui-bar-c-btn--text--1M_ap:hover,.cozy-ui-bar-c-btn--text--1M_ap:focus{border-color:transparent;background-color:transparent}.cozy-ui-bar-c-btn--text--1M_ap[disabled]:hover,.cozy-ui-bar-c-btn--text--1M_ap[aria-disabled=true]:hover{border-color:transparent;background-color:transparent}.cozy-ui-bar-c-btn--text--1M_ap:hover,.cozy-ui-bar-c-btn--text--1M_ap:focus{color:var(--primaryColorDark)}.cozy-ui-bar-c-btn--action--1mNtp{border-color:transparent;padding:.5rem;opacity:.5}.cozy-ui-bar-c-btn--action--1mNtp:active,.cozy-ui-bar-c-btn--action--1mNtp:hover,.cozy-ui-bar-c-btn--action--1mNtp:focus{background-color:transparent;border-color:transparent}.cozy-ui-bar-c-btn--close--m97vB{border-color:transparent;padding:.5rem}.cozy-ui-bar-c-btn--close--m97vB:active,.cozy-ui-bar-c-btn--close--m97vB:hover,.cozy-ui-bar-c-btn--close--m97vB:focus{background-color:transparent;border-color:transparent}.cozy-ui-bar-c-btn--left--3xEmE>span{justify-content:flex-start}.cozy-ui-bar-c-btn--center--T8nT8>span{justify-content:center}.cozy-ui-bar-c-btn--right--3pX-0>span{justify-content:flex-end}.cozy-ui-bar-c-btn--3Vk8q.cozy-ui-bar-c-btn--tiny--15Am0{min-height:1.5rem;min-width:5rem;padding:.125rem 1rem;font-size:.75rem;line-height:1.3}.cozy-ui-bar-c-btn--3Vk8q.cozy-ui-bar-c-btn--small--gNd1_{min-height:2rem;min-width:6rem;padding:.188rem .5rem;font-size:.813rem;line-height:1.4}.cozy-ui-bar-c-btn--3Vk8q.cozy-ui-bar-c-btn--large--VoQ1T{min-height:3rem;min-width:10rem;padding:.5rem 1.5rem;font-size:1rem;line-height:1.5}.cozy-ui-bar-c-btn--3Vk8q.cozy-ui-bar-c-btn--full--257V_{width:100%;margin-left:0;margin-right:0}.cozy-ui-bar-c-btn--3Vk8q.cozy-ui-bar-c-btn--narrow--37r_T,.cozy-ui-bar-c-btn--3Vk8q.cozy-ui-bar-c-btn--round--TSd9o{min-width:auto}.cozy-ui-bar-c-btn--3Vk8q.cozy-ui-bar-c-btn--round--TSd9o{border-radius:100%;min-height:auto;padding:.25rem}.cozy-ui-bar-c-btn--3Vk8q.cozy-ui-bar-c-btn--round--TSd9o svg{width:.625rem;height:.625rem}.cozy-ui-bar-c-btn--subtle--225Zu{color:var(--regularButtonSecondaryColor);min-height:auto;min-width:auto;border:0;margin:1rem 0;padding:0;vertical-align:baseline;background:transparent;cursor:pointer;font-size:.875rem;font-weight:700;text-transform:uppercase}.cozy-ui-bar-c-btn--subtle--225Zu:active,.cozy-ui-bar-c-btn--subtle--225Zu:focus,.cozy-ui-bar-c-btn--subtle--225Zu:hover{color:var(--regularButtonActiveColor)}.cozy-ui-bar-c-btn--subtle--225Zu>span{display:flex;align-items:center;justify-content:center;width:100%}.cozy-ui-bar-c-btn--subtle--225Zu[disabled],.cozy-ui-bar-c-btn--subtle--225Zu[aria-disabled=true]{opacity:.5;cursor:not-allowed}.cozy-ui-bar-c-btn--subtle--225Zu[disabled]:hover,.cozy-ui-bar-c-btn--subtle--225Zu[aria-disabled=true]:hover{background:transparent}.cozy-ui-bar-c-btn--subtle--225Zu[aria-busy=true]{opacity:.5;cursor:not-allowed;pointer-events:none}.cozy-ui-bar-c-btn--subtle--225Zu[aria-busy=true]:hover{background:transparent}.cozy-ui-bar-c-btn--subtle--225Zu:active,.cozy-ui-bar-c-btn--subtle--225Zu:hover,.cozy-ui-bar-c-btn--subtle--225Zu:focus,.cozy-ui-bar-c-btn--subtle--225Zu:visited{color:var(--primaryColorDark);background:transparent}*+.cozy-ui-bar-c-btn--subtle--225Zu{margin-left:.063rem}.cozy-ui-bar-c-btn--subtle--225Zu.cozy-ui-bar-c-btn--tiny--15Am0{min-height:0;min-width:0;padding:0;font-size:.563rem}.cozy-ui-bar-c-btn--subtle--225Zu.cozy-ui-bar-c-btn--small--gNd1_{min-height:0;min-width:0;padding:0;font-size:.75rem}.cozy-ui-bar-c-btn--subtle--225Zu.cozy-ui-bar-c-btn--large--VoQ1T{min-height:0;min-width:0;padding:0;font-size:1rem}.cozy-ui-bar-c-btn--subtle--225Zu.cozy-ui-bar-c-btn--danger--3pdnK{color:#f52d2d}.cozy-ui-bar-c-btn--subtle--225Zu.cozy-ui-bar-c-btn--danger--3pdnK:active,.cozy-ui-bar-c-btn--subtle--225Zu.cozy-ui-bar-c-btn--danger--3pdnK:focus,.cozy-ui-bar-c-btn--subtle--225Zu.cozy-ui-bar-c-btn--danger--3pdnK:hover{color:var(--monza)}.cozy-ui-bar-c-btn--subtle--225Zu.cozy-ui-bar-c-btn--highlight--139k0{color:#35ce68}.cozy-ui-bar-c-btn--subtle--225Zu.cozy-ui-bar-c-btn--highlight--139k0:active,.cozy-ui-bar-c-btn--subtle--225Zu.cozy-ui-bar-c-btn--highlight--139k0:focus,.cozy-ui-bar-c-btn--subtle--225Zu.cozy-ui-bar-c-btn--highlight--139k0:hover{color:#08b442}.cozy-ui-bar-c-btn--subtle--225Zu.cozy-ui-bar-c-btn--regular--2vXm9{color:var(--regularButtonSecondaryColor)}.cozy-ui-bar-c-btn--subtle--225Zu.cozy-ui-bar-c-btn--regular--2vXm9:active,.cozy-ui-bar-c-btn--subtle--225Zu.cozy-ui-bar-c-btn--regular--2vXm9:focus,.cozy-ui-bar-c-btn--subtle--225Zu.cozy-ui-bar-c-btn--regular--2vXm9:hover{color:var(--regularButtonActiveColor)}.cozy-ui-bar-c-btn--subtle--225Zu.cozy-ui-bar-c-btn--secondary--2JUsA{color:var(--slateGrey)}.cozy-ui-bar-c-btn--subtle--225Zu.cozy-ui-bar-c-btn--secondary--2JUsA:active,.cozy-ui-bar-c-btn--subtle--225Zu.cozy-ui-bar-c-btn--secondary--2JUsA:focus,.cozy-ui-bar-c-btn--subtle--225Zu.cozy-ui-bar-c-btn--secondary--2JUsA:hover{color:var(--charcoalGrey)}.cozy-ui-bar-c-btn--subtle--225Zu.cozy-ui-bar-c-btn--secondary--2JUsA:active svg,.cozy-ui-bar-c-btn--subtle--225Zu.cozy-ui-bar-c-btn--secondary--2JUsA:focus svg,.cozy-ui-bar-c-btn--subtle--225Zu.cozy-ui-bar-c-btn--secondary--2JUsA:hover svg{color:var(--slateGrey)}.cozy-ui-bar-c-btn--subtle--225Zu.cozy-ui-bar-c-btn--secondary--2JUsA svg{color:var(--coolGrey)}@media(max-width:63.938rem){.u-hide--mob{display:none!important}.u-dn-m{display:none}.u-di-m{display:inline}.u-db-m{display:block}.u-dib-m{display:inline-block}.u-dit-m{display:inline-table}.u-dt-m{display:table}.u-dtc-m{display:table-cell}.u-dt-row-m{display:table-row}.u-dt-row-group-m{display:table-row-group}.u-dt-column-m{display:table-column}.u-dt-column-group-m{display:table-column-group}.u-spacellipsis-m{overflow:hidden;text-overflow:ellipsis;white-space:break-spaces}.u-fz-tiny-m{font-size:.75rem!important;line-height:1.3!important}.u-fz-xsmall-m{font-size:.813rem!important;line-height:1.4!important}.u-fz-small-m{font-size:.875rem!important;line-height:1.4!important}.u-fz-medium-m{font-size:1rem!important;line-height:1.5!important}.u-fz-large-m{font-size:1.125rem!important;line-height:1.5!important}.u-ta-left-m{text-align:left!important}.u-ta-right-m{text-align:right!important}.u-ta-center-m{text-align:center!important}.u-ta-justify-m{text-align:justify!important}.u-fs-normal-m{font-style:normal!important}.u-fs-italic-m{font-style:italic!important}.u-fw-normal-m{font-weight:400}.u-fw-bold-m{font-weight:700}}@media(min-width:64rem){.u-hide--tablet{display:none!important}}@media(min-width:48.063rem){.u-hide--desk{display:none!important}}@media(max-width:30rem){.u-dn-t{display:none}.u-di-t{display:inline}.u-db-t{display:block}.u-dib-t{display:inline-block}.u-dit-t{display:inline-table}.u-dt-t{display:table}.u-dtc-t{display:table-cell}.u-dt-row-t{display:table-row}.u-dt-row-group-t{display:table-row-group}.u-dt-column-t{display:table-column}.u-dt-column-group-t{display:table-column-group}.u-spacellipsis-t{overflow:hidden;text-overflow:ellipsis;white-space:break-spaces}.u-fz-tiny-t{font-size:.75rem!important;line-height:1.3!important}.u-fz-xsmall-t{font-size:.813rem!important;line-height:1.4!important}.u-fz-small-t{font-size:.875rem!important;line-height:1.4!important}.u-fz-medium-t{font-size:1rem!important;line-height:1.5!important}.u-fz-large-t{font-size:1.125rem!important;line-height:1.5!important}.u-ta-left-t{text-align:left!important}.u-ta-right-t{text-align:right!important}.u-ta-center-t{text-align:center!important}.u-ta-justify-t{text-align:justify!important}.u-fs-normal-t{font-style:normal!important}.u-fs-italic-t{font-style:italic!important}.u-fw-normal-t{font-weight:400}.u-fw-bold-t{font-weight:700}}@media(max-width:48rem){.u-dn-s{display:none}.u-di-s{display:inline}.u-db-s{display:block}.u-dib-s{display:inline-block}.u-dit-s{display:inline-table}.u-dt-s{display:table}.u-dtc-s{display:table-cell}.u-dt-row-s{display:table-row}.u-dt-row-group-s{display:table-row-group}.u-dt-column-s{display:table-column}.u-dt-column-group-s{display:table-column-group}.u-spacellipsis-s{overflow:hidden;text-overflow:ellipsis;white-space:break-spaces}.u-fz-tiny-s{font-size:.75rem!important;line-height:1.3!important}.u-fz-xsmall-s{font-size:.813rem!important;line-height:1.4!important}.u-fz-small-s{font-size:.875rem!important;line-height:1.4!important}.u-fz-medium-s{font-size:1rem!important;line-height:1.5!important}.u-fz-large-s{font-size:1.125rem!important;line-height:1.5!important}.u-ta-left-s{text-align:left!important}.u-ta-right-s{text-align:right!important}.u-ta-center-s{text-align:center!important}.u-ta-justify-s{text-align:justify!important}.u-fs-normal-s{font-style:normal!important}.u-fs-italic-s{font-style:italic!important}.u-fw-normal-s{font-weight:400}.u-fw-bold-s{font-weight:700}}@media(pointer:coarse){.cozy-ui-bar-c-btn--3Vk8q.cozy-ui-bar-c-btn--round--TSd9o:after{content:'';position:absolute;top:-.875rem;right:-.875rem;bottom:-.875rem;left:-.875rem}}","",{version:3,sources:["/home/anc/cozy/cozy-bar/node_modules/cozy-ui/react/Button/node_modules/cozy-ui/stylus/generic/animations.styl","/home/anc/cozy/cozy-bar/node_modules/cozy-ui/react/Button/styles.styl","/home/anc/cozy/cozy-bar/node_modules/cozy-ui/react/Button/node_modules/cozy-ui/stylus/utilities/display.styl","/home/anc/cozy/cozy-bar/node_modules/cozy-ui/react/Button/node_modules/cozy-ui/stylus/tools/mixins.styl","/home/anc/cozy/cozy-bar/node_modules/cozy-ui/react/Button/node_modules/cozy-ui/stylus/utilities/text.styl","/home/anc/cozy/cozy-bar/node_modules/cozy-ui/react/Button/node_modules/cozy-ui/stylus/components/button.styl","/home/anc/cozy/cozy-bar/node_modules/cozy-ui/react/Button/node_modules/cozy-ui/stylus/settings/breakpoints.styl"],names:[],mappings:"AAYA,2CACI,KACI,sBCHN,CDIE,GACI,wBCFN,CACF,CDHA,mCACI,KACI,sBCaN,CDZE,GACI,wBCcN,CACF,CDbA,4CACI,QACI,+BC6BN,CD3BE,QACI,8BC6BN,CD3BE,YACI,+BC6BN,CD3BE,QACI,8BC6BN,CACF,CDzCA,oCACI,QACI,+BCyDN,CDvDE,QACI,8BCyDN,CDvDE,YACI,+BCyDN,CDvDE,QACI,8BCyDN,CACF,CC7DA,kBAXI,4BACA,mBACA,wBACA,yBACA,0BACA,oBACA,6BACA,qDACA,uCAAA,8BD2EJ,CChEA,QCoCI,uBACA,2BF+BJ,CE4BgB,MDzEZ,YD+DJ,CEUgB,MDtEZ,cD+DJ,CEOgB,MDnEZ,aD+DJ,CEIgB,ODhEZ,oBD+DJ,CECgB,OD7DZ,oBD+DJ,CEFgB,MD1DZ,aD+DJ,CELgB,ODvDZ,kBD+DJ,CERgB,UDpDZ,iBD+DJ,CEXgB,gBDjDZ,uBD+DJ,CEdgB,aD9CZ,oBD+DJ,CEjBgB,mBD3CZ,0BD+DJ,CG5II,SACI,4BHuPR,CGxPI,gBACI,mCH0PR,CG3PI,YACI,+BH6PR,CG9PI,UACI,6BHgQR,CGjQI,aACI,gCHmQR,CGpQI,kBACI,uBHsQR,CGvQI,cACI,uBHyQR,CG1QI,WACI,8BH4QR,CG7QI,YACI,+BH+QR,CGhRI,SACI,uBHkRR,CGnRI,eACI,uBHqRR,CGtRI,0BACI,6CHwRR,CGzRI,gBACI,mCH2RR,CG5RI,qBACI,wCH8RR,CG/RI,4BACI,+CHiSR,CGlSI,SACI,iCHoSR,CGrSI,mBACI,sCHuSR,CGxSI,WACI,mCH0SR,CG3SI,WACI,mCH6SR,CG9SI,QACI,gCHgTR,CGjTI,cACI,uBHmTR,CGpTI,SACI,4BHsTR,CGjTA,aACI,qBHmTJ,CGjTA,YACI,mBACA,gBACA,sBHmTJ,CEvMgB,gBCzGZ,gBACA,uBACA,wBHmTJ,CGxSA,eACI,aACA,gBH+TJ,CG7TI,iBACI,qBACA,cACA,gBACA,eH+TR,CG7TI,4BACI,sBH+TR,CG7TI,2BACI,mBACA,aH+TR,CG7ToC,iCAC5B,4BACI,qBH+TV,CACF,CG7TI,aACI,iCACA,4DAAA,mDH+TR,CG7TI,2DAII,sCH+TR,CE3QY,WChDR,uBH8TJ,CE9QY,aC7CR,yBH8TJ,CEjRY,YC1CR,yBH8TJ,CEpRY,aCvCR,yBH8TJ,CEvRY,YCpCR,yBH8TJ,CE1RY,aCjCR,yBH8TJ,CEnRgB,WC5BZ,2BArBA,yBHwUJ,CEvRgB,aCxBZ,4BAtBA,yBHyUJ,CE3RgB,YCpBZ,4BA1BA,yBH6UJ,CE/RgB,aChBZ,yBA3BA,yBH8UJ,CEnSgB,YCZZ,6BA/BA,yBHkVJ,CEvSgB,WCKZ,yBHuWJ,CE5WgB,YCQZ,0BHuWJ,CE/WgB,aCWZ,2BHuWJ,CElXgB,cCcZ,4BHuWJ,CErXgB,aC6BZ,2BHqYJ,CElagB,aCgCZ,2BHqYJ,CEragB,aC4CZ,eHoZJ,CEhcgB,WC+CZ,eHoZJ,CIjgBA,6DACI,kBACA,sBACA,oBACA,gBACA,qBACA,mBACA,wCACA,kBACA,eACA,qBACA,mBACA,kBACA,kBACA,gBACA,cACA,0CACA,qBACA,eACA,mBA1CA,kDACA,yCACA,+CJukBJ,CI7hBI,qEACI,iBJgiBR,CI9hBQ,+EACI,mBJiiBZ,CI/hBI,yEACI,cJkiBR,CIhiBI,uEACI,aACA,mBACA,uBACA,UJmiBR,CIjiBI,sLAEI,WACA,kBJqiBR,CIniBQ,8MACI,kBJwiBZ,CItiBI,6FACI,WACA,mBJyiBR,CI1mBI,6EACI,wCJ6mBR,CI3mBI,6NAGI,6CACA,gDJgnBR,CI5mBQ,8MACI,gDACA,iDJinBZ,CInjBA,iCA/EI,+BACA,0BACA,qBA+EA,mBJujBJ,CIpoBI,yCACI,yBJsoBR,CIpoBI,sHAGI,qBACA,wBJsoBR,CIloBQ,4GACI,qBACA,8BJqoBZ,CInkBA,qCAnFI,yBACA,mBACA,oBJypBJ,CIvpBI,6CACI,kBJypBR,CIvpBI,kIAGI,qBACA,wBJypBR,CIrpBQ,oHACI,qBACA,wBJwpBZ,CInlBA,oGAtFI,6BACA,mBACA,yBJ8qBJ,CI5qBI,4HACI,kBJgrBR,CI9qBI,qWAGI,gCACA,mCJsrBR,CIlrBQ,sUACI,0BACA,4BJyrBZ,CIjnBA,kCAzFI,yBACA,mBACA,oBJ6sBJ,CI3sBI,0CACI,kBJ6sBR,CI3sBI,yHAGI,0BACA,6BJ6sBR,CIzsBQ,8GACI,qBACA,wBJ4sBZ,CIjoBA,qCA5FI,oDACA,0CACA,iDJguBJ,CI9tBI,6CACI,yCJguBR,CI9tBI,kIAGI,+CACA,kDJguBR,CI5tBQ,oHACI,kDACA,mDJ+tBZ,CI9oBA,0CAlGI,8BACA,cACA,oBJmvBJ,CIjvBI,kDACI,aJmvBR,CIjvBI,iJAGI,qBACA,wBJmvBR,CI/uBQ,8HACI,qBACA,6BJkvBZ,CI9pBA,gCArGI,6BACA,0BACA,wBJswBJ,CIpwBI,wCACI,yBJswBR,CIpwBI,mHAGI,yBACA,4BJswBR,CIlwBQ,0GACI,yBACA,4BJqwBZ,CI3qBI,4EAEI,6BJ6qBR,CI3qBA,kCAEI,yBACA,cACA,UJ4qBJ,CI1qBI,yHAGI,6BACA,wBJ4qBR,CI1qBA,iCAEI,yBACA,aJ2qBJ,CIzqBI,sHAGI,6BACA,wBJ2qBR,CI9iBI,qCACI,0BJgjBR,CI3iBI,uCACI,sBJ6iBR,CIxiBI,sCACI,wBJ0iBR,CI7hBA,yDALI,kBACA,eACA,qBACA,iBACA,eJqiBJ,CI3hBA,0DALI,gBACA,eACA,sBACA,kBACA,eJmiBJ,CIzhBA,0DALI,gBACA,gBACA,qBACA,eACA,eJiiBJ,CI1hBA,yDACI,WACA,cACA,cJ4hBJ,CI1hBA,qHACI,cJ6hBJ,CIxhBA,0DAEI,mBACA,gBACA,cJyhBJ,CIvhBI,8DACI,cACA,cJyhBR,CIpZA,kCAjBI,yCAmBA,gBACA,eACA,SACA,cACA,UACA,wBACA,uBACA,eACA,kBACA,gBACA,wBJgaJ,CI3bI,yHAGI,qCJ6bR,CInaI,uCACI,aACA,mBACA,uBACA,UJqaR,CInaI,kGAEI,WACA,kBJqaR,CInaQ,8GACI,sBJsaZ,CIpaI,kDACI,WACA,mBACA,mBJsaR,CIpaQ,wDACI,sBJsaZ,CIpaI,mKAII,8BACA,sBJsaR,CIpaI,oCACI,mBJsaR,CIpaA,iEAnDI,aACA,YACA,UACA,iBJ0dJ,CIvaA,kEAtDI,aACA,YACA,UACA,gBJgeJ,CI1aA,kEAzDI,aACA,YACA,UACA,cJseJ,CI7aA,mEAxEI,aJwfJ,CItfI,4NAGI,kBJwfR,CIlbA,sEA3EI,aJggBJ,CI9fI,qOAGI,aJggBR,CIvbA,oEA9EI,wCJwgBJ,CItgBI,+NAGI,qCJwgBR,CI5bA,sEAGI,sBJ4bJ,CI1bI,qOAGI,yBJ4bR,CI3bQ,iPACK,sBJ+bb,CI9bI,0EACI,qBJgcR,CKn5BqE,4BAAA,aJ1E7D,sBDmEN,CE6BkB,QD9EhB,YDuKF,CEzFkB,QD3EhB,cDuKF,CE5FkB,QDxEhB,aDuKF,CE/FkB,SDrEhB,oBDuKF,CElGkB,SDlEhB,oBDuKF,CErGkB,QD/DhB,aDuKF,CExGkB,SD5DhB,kBDuKF,CE3GkB,YDzDhB,iBDuKF,CE9GkB,kBDtDhB,uBDuKF,CEjHkB,eDnDhB,oBDuKF,CEpHkB,qBDhDhB,0BDuKF,CEvHkB,kBC9GhB,gBACA,uBACA,wBHuUF,CE3NkB,aCjChB,2BArBA,yBHyYF,CEnVkB,eC7BhB,4BAtBA,yBH0YF,CEvVkB,cCzBhB,4BA1BA,yBH8YF,CE3VkB,eCrBhB,yBA3BA,yBH+YF,CE/VkB,cCjBhB,6BA/BA,yBHmZF,CEnWkB,aCAhB,yBHgZF,CEhZkB,cCGhB,0BHgZF,CEnZkB,eCMhB,2BHgZF,CEtZkB,gBCShB,4BHgZF,CEzZkB,eCwBhB,2BH4ZF,CEpbkB,eC2BhB,2BH4ZF,CEvbkB,eCuChB,eH2aF,CEldkB,aC0ChB,eH2aF,CAjfF,CKmIyD,wBAAA,gBJnMjD,sBDoEN,CACF,CKiHwD,4BAAA,cJlLhD,sBDqEN,CACF,CEgBqD,wBAEjC,QD9EhB,YDiGF,CEnBkB,QD3EhB,cDiGF,CEtBkB,QDxEhB,aDiGF,CEzBkB,SDrEhB,oBDiGF,CE5BkB,SDlEhB,oBDiGF,CE/BkB,QD/DhB,aDiGF,CElCkB,SD5DhB,kBDiGF,CErCkB,YDzDhB,iBDiGF,CExCkB,kBDtDhB,uBDiGF,CE3CkB,eDnDhB,oBDiGF,CE9CkB,qBDhDhB,0BDiGF,CEjDkB,kBC9GhB,gBACA,uBACA,wBHyTF,CE7MkB,aCjChB,2BArBA,yBH6VF,CEvSkB,eC7BhB,4BAtBA,yBH8VF,CE3SkB,cCzBhB,4BA1BA,yBHkWF,CE/SkB,eCrBhB,yBA3BA,yBHmWF,CEnTkB,cCjBhB,6BA/BA,yBHuWF,CEvTkB,aCAhB,yBHoXF,CEpXkB,cCGhB,0BHoXF,CEvXkB,eCMhB,2BHoXF,CE1XkB,gBCShB,4BHoXF,CE7XkB,eCwBhB,2BH4YF,CEpakB,eC2BhB,2BH4YF,CEvakB,eCuChB,eH2ZF,CElckB,aC0ChB,eH2ZF,CAnZF,CEpDqD,wBAEjC,QD9EhB,YDoIF,CEtDkB,QD3EhB,cDoIF,CEzDkB,QDxEhB,aDoIF,CE5DkB,SDrEhB,oBDoIF,CE/DkB,SDlEhB,oBDoIF,CElEkB,QD/DhB,aDoIF,CErEkB,SD5DhB,kBDoIF,CExEkB,YDzDhB,iBDoIF,CE3EkB,kBDtDhB,uBDoIF,CE9EkB,eDnDhB,oBDoIF,CEjFkB,qBDhDhB,0BDoIF,CEpFkB,kBC9GhB,gBACA,uBACA,wBHgUF,CEpNkB,aCjChB,2BArBA,yBHmXF,CE7TkB,eC7BhB,4BAtBA,yBHoXF,CEjUkB,cCzBhB,4BA1BA,yBHwXF,CErUkB,eCrBhB,yBA3BA,yBHyXF,CEzUkB,cCjBhB,6BA/BA,yBH6XF,CE7UkB,aCAhB,yBHkYF,CElYkB,cCGhB,0BHkYF,CErYkB,eCMhB,2BHkYF,CExYkB,gBCShB,4BHkYF,CE3YkB,eCwBhB,2BHoZF,CE5akB,eC2BhB,2BHoZF,CE/akB,eCuChB,eHmaF,CE1ckB,aC0ChB,eHmaF,CAxXF,CI0J2B,uBACnB,gEACI,WACA,kBACA,aACA,eACA,gBACA,aJwhBV,CACF,CAAA",file:"styles.styl",sourcesContent:["/*------------------------------------*\\\n Animations\n\\*------------------------------------*/\n/*\n Animations\n\n Available animations:\n\n spin - Animates an element by rotating it endlessly by 360 deg (used by the loading spinner)\n\n Styleguide Generic.animation\n*/\n@keyframes spin\n from\n transform rotate(0deg)\n to\n transform rotate(359deg)\n \n@keyframes shake\n 10%, 90%\n transform translate3d(-1px, 0, 0)\n \n 20%, 80%\n transform translate3d(2px, 0, 0)\n\n 30%, 50%, 70%\n transform translate3d(-4px, 0, 0)\n\n 40%, 60%\n transform translate3d(4px, 0, 0)\n\n$transition-transform-ease-out\n transition transform .1s ease-out\n\n$spin-anim\n // arguments' order is important: the animation name must stay first\n // so that scoping works\n animation spin 1s linear infinite\n\n@media (prefers-reduced-motion: reduce)\n $transition-transform-ease-out\n transition none\n $spin-anim\n animation none","@-moz-keyframes spin {\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(359deg);\n }\n}\n@-webkit-keyframes spin {\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(359deg);\n }\n}\n@-o-keyframes spin {\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(359deg);\n }\n}\n@keyframes spin {\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(359deg);\n }\n}\n@-moz-keyframes shake {\n 10%, 90% {\n transform: translate3d(-1px, 0, 0);\n }\n 20%, 80% {\n transform: translate3d(2px, 0, 0);\n }\n 30%, 50%, 70% {\n transform: translate3d(-4px, 0, 0);\n }\n 40%, 60% {\n transform: translate3d(4px, 0, 0);\n }\n}\n@-webkit-keyframes shake {\n 10%, 90% {\n transform: translate3d(-1px, 0, 0);\n }\n 20%, 80% {\n transform: translate3d(2px, 0, 0);\n }\n 30%, 50%, 70% {\n transform: translate3d(-4px, 0, 0);\n }\n 40%, 60% {\n transform: translate3d(4px, 0, 0);\n }\n}\n@-o-keyframes shake {\n 10%, 90% {\n transform: translate3d(-1px, 0, 0);\n }\n 20%, 80% {\n transform: translate3d(2px, 0, 0);\n }\n 30%, 50%, 70% {\n transform: translate3d(-4px, 0, 0);\n }\n 40%, 60% {\n transform: translate3d(4px, 0, 0);\n }\n}\n@keyframes shake {\n 10%, 90% {\n transform: translate3d(-1px, 0, 0);\n }\n 20%, 80% {\n transform: translate3d(2px, 0, 0);\n }\n 30%, 50%, 70% {\n transform: translate3d(-4px, 0, 0);\n }\n 40%, 60% {\n transform: translate3d(4px, 0, 0);\n }\n}\n:global(.u-visuallyhidden) {\n position: absolute !important;\n border: 0 !important;\n width: 0.063rem !important;\n height: 0.063rem !important;\n overflow: hidden !important;\n padding: 0 !important;\n white-space: nowrap !important;\n clip: rect(0.063rem, 0.063rem, 0.063rem, 0.063rem) !important;\n clip-path: inset(50%) !important;\n}\n:global(.u-hide) {\n display: none !important;\n visibility: hidden !important;\n}\n@media (max-width: 63.938rem) {\n :global(.u-hide--mob) {\n display: none !important;\n }\n}\n@media (min-width: 64rem) {\n :global(.u-hide--tablet) {\n display: none !important;\n }\n}\n@media (min-width: 48.063rem) {\n :global(.u-hide--desk) {\n display: none !important;\n }\n}\n:global(.u-dn) {\n display: none;\n}\n:global(.u-di) {\n display: inline;\n}\n:global(.u-db) {\n display: block;\n}\n:global(.u-dib) {\n display: inline-block;\n}\n:global(.u-dit) {\n display: inline-table;\n}\n:global(.u-dt) {\n display: table;\n}\n:global(.u-dtc) {\n display: table-cell;\n}\n:global(.u-dt-row) {\n display: table-row;\n}\n:global(.u-dt-row-group) {\n display: table-row-group;\n}\n:global(.u-dt-column) {\n display: table-column;\n}\n:global(.u-dt-column-group) {\n display: table-column-group;\n}\n@media (max-width: 30rem) {\n :global(.u-dn-t) {\n display: none;\n }\n :global(.u-di-t) {\n display: inline;\n }\n :global(.u-db-t) {\n display: block;\n }\n :global(.u-dib-t) {\n display: inline-block;\n }\n :global(.u-dit-t) {\n display: inline-table;\n }\n :global(.u-dt-t) {\n display: table;\n }\n :global(.u-dtc-t) {\n display: table-cell;\n }\n :global(.u-dt-row-t) {\n display: table-row;\n }\n :global(.u-dt-row-group-t) {\n display: table-row-group;\n }\n :global(.u-dt-column-t) {\n display: table-column;\n }\n :global(.u-dt-column-group-t) {\n display: table-column-group;\n }\n}\n@media (max-width: 48rem) {\n :global(.u-dn-s) {\n display: none;\n }\n :global(.u-di-s) {\n display: inline;\n }\n :global(.u-db-s) {\n display: block;\n }\n :global(.u-dib-s) {\n display: inline-block;\n }\n :global(.u-dit-s) {\n display: inline-table;\n }\n :global(.u-dt-s) {\n display: table;\n }\n :global(.u-dtc-s) {\n display: table-cell;\n }\n :global(.u-dt-row-s) {\n display: table-row;\n }\n :global(.u-dt-row-group-s) {\n display: table-row-group;\n }\n :global(.u-dt-column-s) {\n display: table-column;\n }\n :global(.u-dt-column-group-s) {\n display: table-column-group;\n }\n}\n@media (max-width: 63.938rem) {\n :global(.u-dn-m) {\n display: none;\n }\n :global(.u-di-m) {\n display: inline;\n }\n :global(.u-db-m) {\n display: block;\n }\n :global(.u-dib-m) {\n display: inline-block;\n }\n :global(.u-dit-m) {\n display: inline-table;\n }\n :global(.u-dt-m) {\n display: table;\n }\n :global(.u-dtc-m) {\n display: table-cell;\n }\n :global(.u-dt-row-m) {\n display: table-row;\n }\n :global(.u-dt-row-group-m) {\n display: table-row-group;\n }\n :global(.u-dt-column-m) {\n display: table-column;\n }\n :global(.u-dt-column-group-m) {\n display: table-column-group;\n }\n}\n:global(.u-black) {\n color: var(--black) !important;\n}\n:global(.u-charcoalGrey) {\n color: var(--charcoalGrey) !important;\n}\n:global(.u-coolGrey) {\n color: var(--coolGrey) !important;\n}\n:global(.u-silver) {\n color: var(--silver) !important;\n}\n:global(.u-slateGrey) {\n color: var(--slateGrey) !important;\n}\n:global(.u-lightishPurple) {\n color: #b449e7 !important;\n}\n:global(.u-dodgerBlue) {\n color: #297ef2 !important;\n}\n:global(.u-overlay) {\n color: var(--overlay) !important;\n}\n:global(.u-paleGrey) {\n color: var(--paleGrey) !important;\n}\n:global(.u-monza) {\n color: #dd0505 !important;\n}\n:global(.u-pomegranate) {\n color: #f52d2d !important;\n}\n:global(.u-primaryBackgroundLight) {\n color: var(--primaryBackgroundLight) !important;\n}\n:global(.u-primaryColor) {\n color: var(--primaryColor) !important;\n}\n:global(.u-primaryColorLight) {\n color: var(--primaryColorLight) !important;\n}\n:global(.u-primaryContrastTextColor) {\n color: var(--primaryContrastTextColor) !important;\n}\n:global(.u-error) {\n color: var(--errorColor) !important;\n}\n:global(.u-errorBackground) {\n color: var(--errorBackground) !important;\n}\n:global(.u-success) {\n color: var(--successColor) !important;\n}\n:global(.u-warning) {\n color: var(--warningColor) !important;\n}\n:global(.u-info) {\n color: var(--infoColor) !important;\n}\n:global(.u-weirdGreen) {\n color: #40de8e !important;\n}\n:global(.u-white) {\n color: var(--white) !important;\n}\n:global(.u-breakword) {\n word-break: break-word;\n}\n:global(.u-ellipsis) {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n:global(.u-spacellipsis) {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: break-spaces;\n}\n@media (max-width: 30rem) {\n :global(.u-spacellipsis-t) {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: break-spaces;\n }\n}\n@media (max-width: 48rem) {\n :global(.u-spacellipsis-s) {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: break-spaces;\n }\n}\n@media (max-width: 63.938rem) {\n :global(.u-spacellipsis-m) {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: break-spaces;\n }\n}\n:global(.u-midellipsis) {\n display: flex;\n flex-wrap: nowrap;\n}\n:global(.u-midellipsis) > * {\n display: inline-block;\n max-width: 50%;\n overflow: hidden;\n white-space: pre;\n}\n:global(.u-midellipsis) > :first-child {\n text-overflow: ellipsis;\n}\n:global(.u-midellipsis) > :last-child {\n text-overflow: clip;\n direction: rtl;\n}\n@supports (text-overflow: '[...]') {\n :global(.u-midellipsis) > :first-child {\n text-overflow: '[...]';\n }\n}\n:global(.u-link):link {\n color: var(--linkColor) !important;\n text-decoration: var(--linkTextDecoration) !important;\n}\n:global(.u-link):visited,\n:global(.u-link):active,\n:global(.u-link):hover,\n:global(.u-link):focus {\n color: var(--linkColorActive) !important;\n}\n:global(.u-lh-tiny) {\n line-height: 1 !important;\n}\n:global(.u-lh-xsmall) {\n line-height: 1.1 !important;\n}\n:global(.u-lh-small) {\n line-height: 1.2 !important;\n}\n:global(.u-lh-medium) {\n line-height: 1.3 !important;\n}\n:global(.u-lh-large) {\n line-height: 1.4 !important;\n}\n:global(.u-lh-xlarge) {\n line-height: 1.5 !important;\n}\n:global(.u-fz-tiny) {\n font-size: 0.75rem !important;\n line-height: 1.3 !important;\n}\n:global(.u-fz-xsmall) {\n font-size: 0.813rem !important;\n line-height: 1.4 !important;\n}\n:global(.u-fz-small) {\n font-size: 0.875rem !important;\n line-height: 1.4 !important;\n}\n:global(.u-fz-medium) {\n font-size: 1rem !important;\n line-height: 1.5 !important;\n}\n:global(.u-fz-large) {\n font-size: 1.125rem !important;\n line-height: 1.5 !important;\n}\n@media (max-width: 30rem) {\n :global(.u-fz-tiny-t) {\n font-size: 0.75rem !important;\n line-height: 1.3 !important;\n }\n :global(.u-fz-xsmall-t) {\n font-size: 0.813rem !important;\n line-height: 1.4 !important;\n }\n :global(.u-fz-small-t) {\n font-size: 0.875rem !important;\n line-height: 1.4 !important;\n }\n :global(.u-fz-medium-t) {\n font-size: 1rem !important;\n line-height: 1.5 !important;\n }\n :global(.u-fz-large-t) {\n font-size: 1.125rem !important;\n line-height: 1.5 !important;\n }\n}\n@media (max-width: 48rem) {\n :global(.u-fz-tiny-s) {\n font-size: 0.75rem !important;\n line-height: 1.3 !important;\n }\n :global(.u-fz-xsmall-s) {\n font-size: 0.813rem !important;\n line-height: 1.4 !important;\n }\n :global(.u-fz-small-s) {\n font-size: 0.875rem !important;\n line-height: 1.4 !important;\n }\n :global(.u-fz-medium-s) {\n font-size: 1rem !important;\n line-height: 1.5 !important;\n }\n :global(.u-fz-large-s) {\n font-size: 1.125rem !important;\n line-height: 1.5 !important;\n }\n}\n@media (max-width: 63.938rem) {\n :global(.u-fz-tiny-m) {\n font-size: 0.75rem !important;\n line-height: 1.3 !important;\n }\n :global(.u-fz-xsmall-m) {\n font-size: 0.813rem !important;\n line-height: 1.4 !important;\n }\n :global(.u-fz-small-m) {\n font-size: 0.875rem !important;\n line-height: 1.4 !important;\n }\n :global(.u-fz-medium-m) {\n font-size: 1rem !important;\n line-height: 1.5 !important;\n }\n :global(.u-fz-large-m) {\n font-size: 1.125rem !important;\n line-height: 1.5 !important;\n }\n}\n:global(.u-ta-left) {\n text-align: left !important;\n}\n:global(.u-ta-right) {\n text-align: right !important;\n}\n:global(.u-ta-center) {\n text-align: center !important;\n}\n:global(.u-ta-justify) {\n text-align: justify !important;\n}\n@media (max-width: 30rem) {\n :global(.u-ta-left-t) {\n text-align: left !important;\n }\n :global(.u-ta-right-t) {\n text-align: right !important;\n }\n :global(.u-ta-center-t) {\n text-align: center !important;\n }\n :global(.u-ta-justify-t) {\n text-align: justify !important;\n }\n}\n@media (max-width: 48rem) {\n :global(.u-ta-left-s) {\n text-align: left !important;\n }\n :global(.u-ta-right-s) {\n text-align: right !important;\n }\n :global(.u-ta-center-s) {\n text-align: center !important;\n }\n :global(.u-ta-justify-s) {\n text-align: justify !important;\n }\n}\n@media (max-width: 63.938rem) {\n :global(.u-ta-left-m) {\n text-align: left !important;\n }\n :global(.u-ta-right-m) {\n text-align: right !important;\n }\n :global(.u-ta-center-m) {\n text-align: center !important;\n }\n :global(.u-ta-justify-m) {\n text-align: justify !important;\n }\n}\n:global(.u-fs-normal) {\n font-style: normal !important;\n}\n:global(.u-fs-italic) {\n font-style: italic !important;\n}\n@media (max-width: 30rem) {\n :global(.u-fs-normal-t) {\n font-style: normal !important;\n }\n :global(.u-fs-italic-t) {\n font-style: italic !important;\n }\n}\n@media (max-width: 48rem) {\n :global(.u-fs-normal-s) {\n font-style: normal !important;\n }\n :global(.u-fs-italic-s) {\n font-style: italic !important;\n }\n}\n@media (max-width: 63.938rem) {\n :global(.u-fs-normal-m) {\n font-style: normal !important;\n }\n :global(.u-fs-italic-m) {\n font-style: italic !important;\n }\n}\n:global(.u-fw-normal) {\n font-weight: normal;\n}\n:global(.u-fw-bold) {\n font-weight: bold;\n}\n@media (max-width: 30rem) {\n :global(.u-fw-normal-t) {\n font-weight: normal;\n }\n :global(.u-fw-bold-t) {\n font-weight: bold;\n }\n}\n@media (max-width: 48rem) {\n :global(.u-fw-normal-s) {\n font-weight: normal;\n }\n :global(.u-fw-bold-s) {\n font-weight: bold;\n }\n}\n@media (max-width: 63.938rem) {\n :global(.u-fw-normal-m) {\n font-weight: normal;\n }\n :global(.u-fw-bold-m) {\n font-weight: bold;\n }\n}\n.c-btn,\n.c-btn--regular {\n position: relative;\n box-sizing: border-box;\n display: inline-flex;\n margin: 0 0.25rem;\n border-width: 0.063rem;\n border-style: solid;\n border-radius: var(--buttonBorderRadius);\n min-height: 2.5rem;\n min-width: 7rem;\n padding: 0.188rem 1rem;\n vertical-align: top;\n text-align: center;\n font-size: 0.875rem;\n font-weight: bold;\n line-height: 1;\n text-transform: var(--buttonTextTransform);\n text-decoration: none;\n cursor: pointer;\n align-items: center;\n background-color: var(--regularButtonPrimaryColor);\n color: var(--regularButtonConstrastColor);\n border-color: var(--regularButtonSecondaryColor);\n}\n.c-btn svg,\n.c-btn--regular svg {\n fill: currentColor;\n}\n.c-btn svg + span,\n.c-btn--regular svg + span {\n margin-left: 0.375rem;\n}\n.c-btn input,\n.c-btn--regular input {\n cursor: pointer;\n}\n.c-btn > span,\n.c-btn--regular > span {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 100%;\n}\n.c-btn[disabled],\n.c-btn--regular[disabled],\n.c-btn[aria-disabled=true],\n.c-btn--regular[aria-disabled=true] {\n opacity: 0.5;\n cursor: not-allowed;\n}\n.c-btn[disabled] input,\n.c-btn--regular[disabled] input,\n.c-btn[aria-disabled=true] input,\n.c-btn--regular[aria-disabled=true] input {\n cursor: not-allowed;\n}\n.c-btn[aria-busy=true],\n.c-btn--regular[aria-busy=true] {\n opacity: 0.5;\n pointer-events: none;\n}\n.c-btn:visited,\n.c-btn--regular:visited {\n color: var(--regularButtonConstrastColor);\n}\n.c-btn:active,\n.c-btn--regular:active,\n.c-btn:hover,\n.c-btn--regular:hover,\n.c-btn:focus,\n.c-btn--regular:focus {\n border-color: var(--regularButtonActiveColor);\n background-color: var(--regularButtonActiveColor);\n}\n.c-btn[disabled]:hover,\n.c-btn--regular[disabled]:hover,\n.c-btn[aria-disabled=true]:hover,\n.c-btn--regular[aria-disabled=true]:hover {\n border-color: var(--regularButtonSecondaryColor);\n background-color: var(--regularButtonPrimaryColor);\n}\n.c-btn--ghost {\n background-color: var(--zircon);\n color: var(--primaryColor);\n border-color: #c2dcff;\n border-style: dashed;\n}\n.c-btn--ghost:visited {\n color: var(--primaryColor);\n}\n.c-btn--ghost:active,\n.c-btn--ghost:hover,\n.c-btn--ghost:focus {\n border-color: #c2dcff;\n background-color: #c2dcff;\n}\n.c-btn--ghost[disabled]:hover,\n.c-btn--ghost[aria-disabled=true]:hover {\n border-color: #c2dcff;\n background-color: var(--zircon);\n}\n.c-btn--highlight {\n background-color: #35ce68;\n color: var(--white);\n border-color: #35ce68;\n}\n.c-btn--highlight:visited {\n color: var(--white);\n}\n.c-btn--highlight:active,\n.c-btn--highlight:hover,\n.c-btn--highlight:focus {\n border-color: #08b442;\n background-color: #08b442;\n}\n.c-btn--highlight[disabled]:hover,\n.c-btn--highlight[aria-disabled=true]:hover {\n border-color: #35ce68;\n background-color: #35ce68;\n}\n.c-btn--alpha,\n.c-btn--action,\n.c-btn--close {\n background-color: transparent;\n color: var(--white);\n border-color: var(--white);\n}\n.c-btn--alpha:visited,\n.c-btn--action:visited,\n.c-btn--close:visited {\n color: var(--white);\n}\n.c-btn--alpha:active,\n.c-btn--action:active,\n.c-btn--close:active,\n.c-btn--alpha:hover,\n.c-btn--action:hover,\n.c-btn--close:hover,\n.c-btn--alpha:focus,\n.c-btn--action:focus,\n.c-btn--close:focus {\n border-color: var(--scienceBlue);\n background-color: var(--scienceBlue);\n}\n.c-btn--alpha[disabled]:hover,\n.c-btn--action[disabled]:hover,\n.c-btn--close[disabled]:hover,\n.c-btn--alpha[aria-disabled=true]:hover,\n.c-btn--action[aria-disabled=true]:hover,\n.c-btn--close[aria-disabled=true]:hover {\n border-color: var(--white);\n background-color: transparent;\n}\n.c-btn--danger {\n background-color: #f52d2d;\n color: var(--white);\n border-color: #f52d2d;\n}\n.c-btn--danger:visited {\n color: var(--white);\n}\n.c-btn--danger:active,\n.c-btn--danger:hover,\n.c-btn--danger:focus {\n border-color: var(--monza);\n background-color: var(--monza);\n}\n.c-btn--danger[disabled]:hover,\n.c-btn--danger[aria-disabled=true]:hover {\n border-color: #f52d2d;\n background-color: #f52d2d;\n}\n.c-btn--secondary {\n background-color: var(--secondaryButtonPrimaryColor);\n color: var(--secondaryButtonContrastColor);\n border-color: var(--secondaryButtonSecondaryColor);\n}\n.c-btn--secondary:visited {\n color: var(--secondaryButtonContrastColor);\n}\n.c-btn--secondary:active,\n.c-btn--secondary:hover,\n.c-btn--secondary:focus {\n border-color: var(--secondaryButtonActiveColor);\n background-color: var(--secondaryButtonActiveColor);\n}\n.c-btn--secondary[disabled]:hover,\n.c-btn--secondary[aria-disabled=true]:hover {\n border-color: var(--secondaryButtonSecondaryColor);\n background-color: var(--secondaryButtonPrimaryColor);\n}\n.c-btn--danger-outline {\n background-color: var(--white);\n color: #f52d2d;\n border-color: #fdcbcb;\n}\n.c-btn--danger-outline:visited {\n color: #f52d2d;\n}\n.c-btn--danger-outline:active,\n.c-btn--danger-outline:hover,\n.c-btn--danger-outline:focus {\n border-color: #fdcbcb;\n background-color: #fdcbcb;\n}\n.c-btn--danger-outline[disabled]:hover,\n.c-btn--danger-outline[aria-disabled=true]:hover {\n border-color: #fdcbcb;\n background-color: var(--white);\n}\n.c-btn--text {\n background-color: transparent;\n color: var(--primaryColor);\n border-color: transparent;\n}\n.c-btn--text:visited {\n color: var(--primaryColor);\n}\n.c-btn--text:active,\n.c-btn--text:hover,\n.c-btn--text:focus {\n border-color: transparent;\n background-color: transparent;\n}\n.c-btn--text[disabled]:hover,\n.c-btn--text[aria-disabled=true]:hover {\n border-color: transparent;\n background-color: transparent;\n}\n.c-btn--text:hover,\n.c-btn--text:focus {\n color: var(--primaryColorDark);\n}\n.c-btn--action {\n border-color: transparent;\n padding: 0.5rem;\n opacity: 0.5;\n}\n.c-btn--action:active,\n.c-btn--action:hover,\n.c-btn--action:focus {\n background-color: transparent;\n border-color: transparent;\n}\n.c-btn--close {\n border-color: transparent;\n padding: 0.5rem;\n}\n.c-btn--close:active,\n.c-btn--close:hover,\n.c-btn--close:focus {\n background-color: transparent;\n border-color: transparent;\n}\n.c-btn--left > span {\n justify-content: flex-start;\n}\n.c-btn--center > span {\n justify-content: center;\n}\n.c-btn--right > span {\n justify-content: flex-end;\n}\n.c-btn.c-btn--tiny {\n min-height: 1.5rem;\n min-width: 5rem;\n padding: 0.125rem 1rem;\n font-size: 0.75rem;\n line-height: 1.3;\n}\n.c-btn.c-btn--small {\n min-height: 2rem;\n min-width: 6rem;\n padding: 0.188rem 0.5rem;\n font-size: 0.813rem;\n line-height: 1.4;\n}\n.c-btn.c-btn--large {\n min-height: 3rem;\n min-width: 10rem;\n padding: 0.5rem 1.5rem;\n font-size: 1rem;\n line-height: 1.5;\n}\n.c-btn.c-btn--full {\n width: 100%;\n margin-left: 0;\n margin-right: 0;\n}\n.c-btn.c-btn--narrow,\n.c-btn.c-btn--round {\n min-width: auto;\n}\n.c-btn.c-btn--round {\n border-radius: 100%;\n min-height: auto;\n padding: 0.25rem;\n}\n.c-btn.c-btn--round svg {\n width: 0.625rem;\n height: 0.625rem;\n}\n@media (pointer: coarse) {\n .c-btn.c-btn--round:after {\n content: '';\n position: absolute;\n top: -0.875rem;\n right: -0.875rem;\n bottom: -0.875rem;\n left: -0.875rem;\n }\n}\n.c-btn--subtle {\n color: var(--regularButtonSecondaryColor);\n min-height: auto;\n min-width: auto;\n border: 0;\n margin: 1rem 0;\n padding: 0;\n vertical-align: baseline;\n background: transparent;\n cursor: pointer;\n font-size: 0.875rem;\n font-weight: bold;\n text-transform: uppercase;\n}\n.c-btn--subtle:active,\n.c-btn--subtle:focus,\n.c-btn--subtle:hover {\n color: var(--regularButtonActiveColor);\n}\n.c-btn--subtle > span {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 100%;\n}\n.c-btn--subtle[disabled],\n.c-btn--subtle[aria-disabled=true] {\n opacity: 0.5;\n cursor: not-allowed;\n}\n.c-btn--subtle[disabled]:hover,\n.c-btn--subtle[aria-disabled=true]:hover {\n background: transparent;\n}\n.c-btn--subtle[aria-busy=true] {\n opacity: 0.5;\n cursor: not-allowed;\n pointer-events: none;\n}\n.c-btn--subtle[aria-busy=true]:hover {\n background: transparent;\n}\n.c-btn--subtle:active,\n.c-btn--subtle:hover,\n.c-btn--subtle:focus,\n.c-btn--subtle:visited {\n color: var(--primaryColorDark);\n background: transparent;\n}\n* + .c-btn--subtle {\n margin-left: 0.063rem;\n}\n.c-btn--subtle.c-btn--tiny {\n min-height: 0;\n min-width: 0;\n padding: 0;\n font-size: 0.563rem;\n}\n.c-btn--subtle.c-btn--small {\n min-height: 0;\n min-width: 0;\n padding: 0;\n font-size: 0.75rem;\n}\n.c-btn--subtle.c-btn--large {\n min-height: 0;\n min-width: 0;\n padding: 0;\n font-size: 1rem;\n}\n.c-btn--subtle.c-btn--danger {\n color: #f52d2d;\n}\n.c-btn--subtle.c-btn--danger:active,\n.c-btn--subtle.c-btn--danger:focus,\n.c-btn--subtle.c-btn--danger:hover {\n color: var(--monza);\n}\n.c-btn--subtle.c-btn--highlight {\n color: #35ce68;\n}\n.c-btn--subtle.c-btn--highlight:active,\n.c-btn--subtle.c-btn--highlight:focus,\n.c-btn--subtle.c-btn--highlight:hover {\n color: #08b442;\n}\n.c-btn--subtle.c-btn--regular {\n color: var(--regularButtonSecondaryColor);\n}\n.c-btn--subtle.c-btn--regular:active,\n.c-btn--subtle.c-btn--regular:focus,\n.c-btn--subtle.c-btn--regular:hover {\n color: var(--regularButtonActiveColor);\n}\n.c-btn--subtle.c-btn--secondary {\n color: var(--slateGrey);\n}\n.c-btn--subtle.c-btn--secondary:active,\n.c-btn--subtle.c-btn--secondary:focus,\n.c-btn--subtle.c-btn--secondary:hover {\n color: var(--charcoalGrey);\n}\n.c-btn--subtle.c-btn--secondary:active svg,\n.c-btn--subtle.c-btn--secondary:focus svg,\n.c-btn--subtle.c-btn--secondary:hover svg {\n color: var(--slateGrey);\n}\n.c-btn--subtle.c-btn--secondary svg {\n color: var(--coolGrey);\n}\n","@require '../settings/breakpoints'\n@require '../tools/mixins'\n\n/*------------------------------------*\\\n Display utilities\n\\*------------------------------------*/\n\n/*\n Visually hidden element but still readable by screen-readers\n FR : http://www.ffoodd.fr/cache-cache-css/\n EN : http://hugogiraudel.com/2016/10/13/css-hide-and-seek/\n*/\n\nhidden()\n // @stylint off\n position absolute !important\n border 0 !important\n width rem(1) !important\n height rem(1) !important\n overflow hidden !important\n padding 0 !important\n white-space nowrap !important\n clip rect(rem(1), rem(1), rem(1), rem(1)) !important\n clip-path inset(50%) !important\n // @stylint on\n\n$visuallyhidden\n hidden()\n\n// Because Stylus doesn't allow me to @extend inside @media… yeah… that sucks\n+medium-screen()\n $visuallyhidden-mobile\n hidden()\n\n$hide\n hide()\n\n$hide--mob\n +lt-desktop()\n display none !important // @stylint ignore\n\n$hide--tablet\n +gt-tablet()\n display none !important // @stylint ignore\n\n$hide--desk\n +gt-mobile()\n display none !important // @stylint ignore\n\n// Global classes\nglobal('.u-visuallyhidden', $visuallyhidden)\nglobal('.u-hide', $hide)\nglobal('.u-hide--mob', $hide--mob)\nglobal('.u-hide--tablet', $hide--tablet)\nglobal('.u-hide--desk', $hide--desk)\n\ndisplay-none()\n display none\n\ndisplay-inline()\n display inline\n\ndisplay-block()\n display block\n\ndisplay-inline-block()\n display inline-block\n\ndisplay-inline-table()\n display inline-table\n\ndisplay-table()\n display table\n\ndisplay-table-cell()\n display table-cell\n\ndisplay-table-row()\n display table-row\n\ndisplay-table-row-group()\n display table-row-group\n\ndisplay-table-column()\n display table-column\n\ndisplay-table-column-group()\n display table-column-group\n\nprops = {\n 'display-none': 'dn',\n 'display-inline': 'di',\n 'display-block': 'db',\n 'display-inline-block': 'dib',\n 'display-inline-table': 'dit',\n 'display-table': 'dt',\n 'display-table-cell': 'dtc',\n 'display-table-row': 'dt-row',\n 'display-table-row-group': 'dt-row-group',\n 'display-table-column': 'dt-column',\n 'display-table-column-group': 'dt-column-group'\n}\n\nif cssmodules == true\n cssModulesUtils(props, breakpoints)\nelse\n nativeUtils(props, breakpoints)\n\n\n","/*------------------------------------*\\\n Mixins\n =====\n\n This file contains mixins:\n - hide()\n - reset()\n\\*------------------------------------*/\n/*\n Tools\n\n Weight: -9\n\n Styleguide Tools\n*/\n/*\n Mixins\n\n Available mixins\n\n Styleguide Tools.mixins\n*/\n// @stylint off\nuse('../scripts/deprecate.js')\n// @stylint on\n\n// Default Font-size\n$basefont ?= 16px\n\nrem($value, $base = $basefont)\n $max = length($value)\n\n $remValues = ()\n for $i in (0...$max)\n push($remValues, _convert-to-rem($value[$i], $base))\n\n return $remValues\n\n_convert-to-rem($px, $base)\n if (typeof($px) == 'unit')\n if ((unit($px) == '' || unit($px) == 'px') && ($px != 0))\n return (round($px / $base, 3))rem\n else\n return 0\n\n/*\n rem($value, $basefont)\n\n rem() takes one or more numeric values in pixel and calculates the rem values from it.\n\n NB: you don't have to explicitly write the `px` unit.\n\n $value - The value in pixel you want to translate in rem. For multiple values you can use `rem(14 12)` for shorthand properties such as `margin`. ⚠ Multiples values should be separated by spaces.\n $basefont - If you need to overwrite the default `$basefont` value of `16`\n\n Weight: 1\n\n Styleguide Tools.mixins.rem\n*/\n\n/*\n hide()\n\n hide() mixin definitely hides an element. This mixin doesn't take parameters.\n\n Weight: 2\n\n Styleguide Tools.mixins.hide\n*/\nhide()\n display none !important // @stylint ignore\n visibility hidden !important // @stylint ignore\n\n/*\n visually-hide()\n\n visually-hide() mixin visually hides an element. The element is still visible by screen readers.\n This mixin doesn't take parameters.\n\n Weight: 3\n\n Styleguide Tools.mixins.hide\n*/\nvisually-hide()\n border 0\n clip rect(0 0 0 0)\n clip-path polygon(0 0, 0 0, 0 0)\n height 1px\n margin -1px\n overflow hidden\n padding 0\n position absolute\n width 1px\n white-space nowrap\n\n/*\n reset()\n\n reset() mixin removes every padding, margin and border of an element.\n This mixin doesn't take parameters.\n\n Weight: 4\n\n Styleguide Tools.mixins.reset\n*/\nreset()\n margin 0\n padding 0\n border 0\n\nglobal(selector, placeholder, type = extend)\n if type == extend\n if cssmodules == true\n :global({selector})\n @extend {placeholder} // @stylint ignore\n else\n {selector}\n @extend {placeholder} // @stylint ignore\n else if type == mixin\n if cssmodules == true\n :global({selector})\n {placeholder}() // @stylint ignore\n else\n {selector}\n {placeholder}() // @stylint ignore\n\ncssModulesUtils(props, breakpoints)\n for kBp, vBp in breakpoints\n if vBp == ''\n for kProp, vProp in props\n :global(.u-{vProp})\n {kProp}()\n else\n @media (max-width: rem(lookup('BP-'+kBp)))\n for kProp, vProp in props\n :global(.u-{vProp}-{vBp}) // @stylint ignore\n {kProp}()\n\nnativeUtils(props, breakpoints)\n for kBp, vBp in breakpoints\n if vBp == ''\n for kProp, vProp in props\n .u-{vProp}\n {kProp}()\n else\n @media (max-width: rem(lookup('BP-'+kBp)))\n for kProp, vProp in props\n .u-{vProp}-{vBp} // @stylint ignore\n {kProp}()\n\n// @stylint on\n","@require '../tools/mixins'\n@require './colors'\n\n/*------------------------------------*\\\n Text utilities\n\\*------------------------------------*/\n\njson_colors=json('../settings/palette.json', { hash: true })\n\nfor color in utility_colors\n $color-{color}\n color: json_colors[color] !important // @stylint ignore\n\n global('.u-' + color, '$color-' + color)\n\n\n$breakword\n word-break break-word\n\n$ellipsis\n white-space nowrap\n overflow hidden\n text-overflow ellipsis\n\nspacellipsis()\n overflow hidden\n text-overflow ellipsis\n white-space break-spaces\n\nspace-ellipsis = {\n 'spacellipsis': 'spacellipsis'\n}\n\nif cssmodules == true\n cssModulesUtils(space-ellipsis, breakpoints)\nelse\n nativeUtils(space-ellipsis, breakpoints)\n\n$midellipsis\n display flex\n flex-wrap nowrap\n\n > * // @stylint ignore\n display inline-block\n max-width 50%\n overflow hidden\n white-space pre\n\n > :first-child\n text-overflow ellipsis\n\n > :last-child\n text-overflow clip\n direction rtl\n\n @supports(text-overflow: '[...]')\n > :first-child\n text-overflow '[...]'\n\n$link\n &:link\n color var(--linkColor) !important // @stylint ignore\n text-decoration var(--linkTextDecoration) !important // @stylint ignore\n\n &:visited\n &:active\n &:hover\n &:focus\n color var(--linkColorActive) !important // @stylint ignore\n\n// @stylint off\nlh-tiny()\n line-height 1!important\n\nlh-xsmall()\n line-height 1.1!important\n\nlh-small()\n line-height 1.2!important\n\nlh-medium()\n line-height 1.3!important\n\nlh-large()\n line-height 1.4!important\n\nlh-xlarge()\n line-height 1.5!important\n\nglobal('.u-lh-tiny', lh-tiny, mixin)\n\nglobal('.u-lh-xsmall', lh-xsmall, mixin)\n\nglobal('.u-lh-small', lh-small, mixin)\n\nglobal('.u-lh-medium', lh-medium, mixin)\n\nglobal('.u-lh-large', lh-large, mixin)\n\nglobal('.u-lh-xlarge', lh-xlarge, mixin)\n\nfz-tiny()\n font-size rem(12)!important\n lh-medium()\n\nfz-xsmall()\n font-size rem(13)!important\n lh-large()\n\nfz-small()\n font-size rem(14)!important\n lh-large()\n\nfz-medium()\n font-size rem(16)!important\n lh-xlarge()\n\nfz-large()\n font-size rem(18)!important\n lh-xlarge()\n\nfontsize = {\n 'fz-tiny': 'fz-tiny',\n 'fz-xsmall': 'fz-xsmall',\n 'fz-small': 'fz-small',\n 'fz-medium': 'fz-medium',\n 'fz-large': 'fz-large'\n}\n\nif cssmodules == true\n cssModulesUtils(fontsize, breakpoints)\nelse\n nativeUtils(fontsize, breakpoints)\n\nta-left()\n text-align left!important\n\nta-right()\n text-align right!important\n\nta-center()\n text-align center!important\n\nta-justify()\n text-align justify!important\n\ntextalign = {\n 'ta-left': 'ta-left',\n 'ta-right': 'ta-right',\n 'ta-center': 'ta-center',\n 'ta-justify': 'ta-justify'\n}\n\nif cssmodules == true\n cssModulesUtils(textalign, breakpoints)\nelse\n nativeUtils(textalign, breakpoints)\n\nfs-normal()\n font-style normal!important\n\nfs-italic()\n font-style italic!important\n\nfontstyle = {\n 'fs-normal': 'fs-normal',\n 'fs-italic': 'fs-italic'\n}\nif cssmodules == true\n cssModulesUtils(fontstyle, breakpoints)\nelse\n nativeUtils(fontstyle, breakpoints)\n\nfw-normal()\n font-weight normal\n\nfw-bold()\n font-weight bold\n\nfontweight = {\n 'fw-normal': 'fw-normal',\n 'fw-bold': 'fw-bold'\n}\nif cssmodules == true\n cssModulesUtils(fontweight, breakpoints)\nelse\n nativeUtils(fontweight, breakpoints)\n// @stylint on\n\n// Global classes\nglobal('.u-breakword', $breakword)\nglobal('.u-ellipsis', $ellipsis)\nglobal('.u-midellipsis', $midellipsis)\nglobal('.u-link', $link)\n","@require '../settings/icons'\n@require '../utilities/display'\n@require '../utilities/text'\n@require '../tools/mixins'\n\npalette=json('../settings/palette.json', { hash: true })\n\n/*------------------------------------*\\\n Variants\n\\*------------------------------------*/\nregularTheme = {\n primaryColor: var(--regularButtonPrimaryColor),\n secondaryColor: var(--regularButtonSecondaryColor),\n activeColor: var(--regularButtonActiveColor),\n contrastColor: var(--regularButtonConstrastColor)\n}\nsecondaryTheme = {\n primaryColor: var(--secondaryButtonPrimaryColor),\n secondaryColor: var(--secondaryButtonSecondaryColor),\n activeColor: var(--secondaryButtonActiveColor),\n contrastColor: var(--secondaryButtonContrastColor)\n}\nghostTheme = {\n primaryColor: var(--zircon), secondaryColor: palette['frenchPass'], activeColor: palette['frenchPass'], contrastColor: var(--primaryColor)\n}\nhighlightTheme = {\n primaryColor: palette['emerald'], secondaryColor: palette['emerald'], activeColor: palette['malachite'], contrastColor: var(--white)\n}\ndangerTheme = {\n primaryColor: palette['pomegranate'], secondaryColor: palette['pomegranate'], activeColor: var(--monza), contrastColor: var(--white)\n}\nalphaTheme = {\n primaryColor: transparent, secondaryColor: var(--white), activeColor: var(--scienceBlue), contrastColor: var(--white)\n}\ndangerOutlineTheme = {\n primaryColor: var(--white), secondaryColor: palette['yourPink'], activeColor: palette['yourPink'], contrastColor: palette['pomegranate']\n}\ntext = {\n primaryColor: transparent, secondaryColor: transparent, activeColor: transparent, contrastColor: var(--primaryColor)\n}\n\n// We turn stylint off since without semicolons, stylus fails to\n// parse the following code block.\n// @stylint off\nthemedBtn(theme)\n background-color: theme['primaryColor']\n color: theme['contrastColor']\n border-color: theme['secondaryColor']\n\n &:visited\n color: theme['contrastColor']\n\n &:active\n &:hover\n &:focus\n border-color: theme['activeColor']\n background-color: theme['activeColor']\n\n &[disabled]\n &[aria-disabled=true]\n &:hover\n border-color: theme['secondaryColor']\n background-color: theme['primaryColor']\n\n/*------------------------------------*\\\n Button\n\\*------------------------------------*/\n\n$button\n position relative\n box-sizing border-box\n display inline-flex\n margin 0 rem(4)\n border-width rem(1)\n border-style solid\n border-radius var(--buttonBorderRadius)\n min-height rem(40)\n min-width rem(112)\n padding rem(3 16)\n vertical-align top\n text-align center\n font-size rem(14)\n font-weight bold\n line-height 1\n text-transform var(--buttonTextTransform)\n text-decoration none\n cursor pointer\n align-items center\n\n svg\n fill currentColor\n\n & + span\n margin-left rem(6)\n\n input\n cursor pointer\n\n > span\n display flex\n align-items center\n justify-content center\n width 100%\n\n &[disabled]\n &[aria-disabled=true]\n opacity .5\n cursor not-allowed\n\n input\n cursor not-allowed\n\n &[aria-busy=true]\n opacity .5\n pointer-events none\n\n themedBtn(regularTheme)\n\n$button--regular // Deprecated\n @extend $button\n\n$button--regularInverted\n themedBtn(regularInvertedTheme)\n\n$button--ghost\n themedBtn(ghostTheme)\n border-style dashed\n\n$button--highlight\n themedBtn(highlightTheme)\n\n$button--alpha\n themedBtn(alphaTheme)\n\n$button--danger\n themedBtn(dangerTheme)\n\n$button--secondary\n themedBtn(secondaryTheme)\n\n$button--secondaryInverted\n themedBtn(secondaryInvertedTheme)\n\n$button--danger-outline\n themedBtn(dangerOutlineTheme)\n\n$button--text\n themedBtn(text)\n\n// @stylint on\n\n$button--text\n &:hover\n &:focus\n color var(--primaryColorDark)\n\n$button--action\n @extend $button--alpha\n border-color transparent\n padding rem(8)\n opacity .5\n\n &:active\n &:hover\n &:focus\n background-color transparent\n border-color transparent\n\n$button--close\n @extend $button--alpha\n border-color transparent\n padding rem(8)\n\n &:active\n &:hover\n &:focus\n background-color transparent\n border-color transparent\n\n$button-alert\n border 0\n height auto\n padding rem(8 16)\n background-color var(--white)\n font-weight bold\n font-size rem(14)\n text-decoration none\n\n$button-alert--error\n @extend $button-alert\n color: palette['pomegranate'] // @stylint ignore\n\n &:visited\n color: palette['pomegranate'] // @stylint ignore\n\n &:active\n &:hover\n &:focus\n color var(--monza)\n background-color: palette['yourPink'] // @stylint ignore\n\n$button-alert--info\n @extend $button-alert\n color var(--white)\n background-color var(--coolGrey)\n\n &[disabled]\n &[aria-disabled=true]\n &:hover\n background-color var(--coolGrey)\n\n &:visited\n color var(--white)\n\n &:active\n &:hover\n &:focus\n background-color var(--charcoalGrey)\n\n$button-alert--success\n @extend $button-alert\n color: palette['emerald'] // @stylint ignore\n\n &:visited\n color: palette['emerald'] // @stylint ignore\n\n &:active\n &:hover\n &:focus\n color: palette['malachite'] // @stylint ignore\n background-color: palette['grannyApple'] // @stylint ignore\n\n$button-client\n @extend $button\n @extend $button--secondary\n display flex\n justify-content center\n align-items center\n height auto\n min-height rem(56)\n margin 0\n padding-left rem(16)\n padding-right rem(16)\n background-color transparent\n text-align left\n font-size rem(13)\n font-weight bold\n line-height 1.3\n color var(--slateGrey)\n\n &:visited\n color var(--slateGrey)\n\n span\n flex 0 1 auto\n\n figure\n flex 0 0 rem(32)\n margin 0 rem(12) 0 0\n\n\n$button-client-mobile\n @extend $button-client\n display flex\n justify-content flex-start\n background-color var(--dodgerBlue)\n border 0\n border-radius 0\n margin 0\n padding rem(8 48 8 16)\n font-size rem(16)\n font-weight normal\n color var(--white)\n text-decoration none\n text-transform none\n\n &[disabled]\n &[aria-disabled=true]\n &:hover\n background-color var(--dodgerBlue)\n\n &:visited\n color var(--white)\n\n &:active\n &:hover\n &:focus\n background-color var(--dodgerBlue)\n\n figure\n flex 0 0 rem(44)\n border-radius rem(8)\n border rem(5) solid var(--white)\n background-color var(--white)\n\n svg\n display block\n\n/*------------------------------------*\\\n Text alignment\n\\*------------------------------------*/\nbutton--left =\n & > span\n justify-content flex-start\n$button--left\n {button--left}\n\nbutton--center =\n & > span\n justify-content center\n$button--center\n {button--center}\n\nbutton--right =\n & > span\n justify-content flex-end\n$button--right\n {button--right}\n\n/*------------------------------------*\\\n Sizes\n\\*------------------------------------*/\nbutton--tiny =\n min-height rem(24)\n min-width rem(80)\n padding rem(2 16)\n font-size rem(12)\n line-height 1.3\n$button--tiny\n {button--tiny}\n\nbutton--small =\n min-height rem(32)\n min-width rem(96)\n padding rem(3 8)\n font-size rem(13)\n line-height 1.4\n$button--small\n {button--small}\n\nbutton--large =\n min-height rem(48)\n min-width rem(160)\n padding rem(8 24)\n font-size rem(16)\n line-height 1.5\n$button--large\n {button--large}\n\n/*------------------------------------*\\\n Extensions\n\\*------------------------------------*/\n$button--full\n width 100%\n margin-left 0\n margin-right 0\n\n$button--narrow\n min-width auto\n\n/*------------------------------------*\\\n Round button\n\\*------------------------------------*/\n$button--round\n @extend $button--narrow\n border-radius 100%\n min-height auto\n padding rem(4)\n\n svg\n width rem(10)\n height rem(10)\n\n // Expand clickable area for touch devices\n @media (pointer: coarse)\n &:after\n content ''\n position absolute\n top rem(-14)\n right rem(-14)\n bottom rem(-14)\n left rem(-14)\n\n/*------------------------------------*\\\n Action button\n\\*------------------------------------*/\n$actionbtn\n @extend $button\n border-color var(--silver)\n text-transform none\n max-width rem(200)\n min-height rem(32)\n width 100%\n padding-right rem(8)\n text-align left\n line-height 1.3\n outline 0\n\n > span\n justify-content flex-start\n flex-wrap nowrap\n\n [data-action='icon']\n border-left rem(1) solid var(--dividerColor)\n\n &:not([disabled]):hover\n &:not([disabled]):focus\n [data-action='icon']\n border-color currentColor\n\n$actionbtn--compact\n @extend $button--narrow\n position relative\n border 0\n background-color transparent\n padding 0\n margin 0\n min-height rem(32)\n width rem(40)\n\n > span\n justify-content center\n\n [data-action='label']\n @extend $hide\n\n [data-action='icon']\n border-left none\n margin-left 0\n padding 0\n\n &:hover\n &:focus\n background-color var(--paleGrey)\n border 0\n\nactionbtnVariant(bgColor, txtColor, bdColor)\n background-color bgColor\n color txtColor\n border-color bdColor\n\n [data-action='icon']\n border-color bdColor\n\n &:hover\n &:focus\n background-color bdColor\n border-color bdColor\n\n &[disabled]:hover\n &[aria-disabled=true]:hover\n background-color bgColor\n\n$actionbtn--normal\n actionbtnVariant(var(--paleGrey), var(--charcoalGrey), var(--silver))\n\n$actionbtn--error\n actionbtnVariant(var(--chablis), palette['pomegranate'], palette['yourPink'])\n\n$actionbtn--new\n actionbtnVariant(var(--zircon), var(--dodgerBlue), palette['frenchPass'])\n border-width rem(1)\n border-style dashed\n\n &:hover:not([disabled])\n &:focus:not([disabled])\n border-style solid\n\n$actionbtn-label\n @extend $ellipsis\n padding-right rem(8)\n\n$actionbtn-icon\n display block\n margin-left auto\n padding-left rem(8)\n\n svg\n display block\n\n/*------------------------------------*\\\n Variants\n\\*------------------------------------*/\n// We turn stylint off since without semicolons, stylus fails to\n// parse the following code block.\n// @stylint off\nthemedBtnSubtle(theme)\n color: theme['secondaryColor']\n\n &:active\n &:focus\n &:hover\n color: theme['activeColor']\n\nsizedBtnSubtle(size)\n sizes = {\n tiny: rem(9), small: rem(12), large: rem(16)\n }\n\n min-height 0\n min-width 0\n padding 0\n font-size sizes[size]\n\n$button-subtle\n themedBtnSubtle(regularTheme)\n min-height auto\n min-width auto\n border 0\n margin rem(16) 0\n padding 0\n vertical-align baseline\n background transparent\n cursor pointer\n font-size rem(14)\n font-weight bold\n text-transform uppercase\n\n > span\n display flex\n align-items center\n justify-content center\n width 100%\n\n &[disabled]\n &[aria-disabled=true]\n opacity .5\n cursor not-allowed\n\n &:hover\n background transparent\n\n &[aria-busy=true]\n opacity .5\n cursor not-allowed\n pointer-events none\n\n &:hover\n background transparent\n\n &:active\n &:hover\n &:focus\n &:visited\n color var(--primaryColorDark)\n background transparent\n\n * + &\n margin-left rem(1)\n\n$button-subtle--tiny\n sizedBtnSubtle('tiny')\n\n$button-subtle--small\n sizedBtnSubtle('small')\n\n$button-subtle--large\n sizedBtnSubtle('large')\n\n$button-subtle--danger\n themedBtnSubtle(dangerTheme)\n\n$button-subtle--highlight\n themedBtnSubtle(highlightTheme)\n\n$button-subtle--regular\n themedBtnSubtle(regularTheme)\n\n$button-subtle--secondary\n // Not using themedBtnSubtle(secondaryTheme) because\n // silver color for a single text was too bright\n color var(--slateGrey)\n\n &:active\n &:focus\n &:hover\n color var(--charcoalGrey)\n svg\n color var(--slateGrey)\n svg\n color var(--coolGrey)\n// @stylint on\n","@require '../tools/mixins'\n\n/*------------------------------------*\\\n Breakpoints\n =====\n\\*------------------------------------*/\n\n// variables\n\nBP-teeny = 375\nBP-tiny = 480\nBP-small = 768\nBP-medium = 1023\nBP-large = 1200\nBP-extra-large = 1439\n\n// Standard breakpoints collection for utilities\nbreakpoints = {\n 'none': '',\n 'tiny': 't',\n 'small': 's',\n 'medium': 'm',\n}\n\n/*\n Breakpoints\n\n This is the collection of available breakpoint variables:<br><br>\n - `BP-teeny` - 375px\n - `BP-tiny` - 480px\n - `BP-small` - 768px\n - `BP-medium` - 1023px\n - `BP-large` - 1200px\n - `BP-extra-large` - 1439px\n\n <br>Also we have a standard breakpoints collection meant to be used as suffixes for some utility classes<br>\n\n If you want a utility class to trigger only at defined breakpoints you can use those:<br><br>\n - `-t` - refers to `tiny` breakpoint (max-width: 480px)\n - `-s` - refers to `small` breakpoint (max-width: 768px)\n - `-m` - refers to `medium` breakpoint (max-width: 1023px)\n\n Styleguide Settings.breakpoints\n*/\n\n/*\n Media Queries mixins\n\n You can use these mixins with no arguments and they will output\n the desired a `max-width` media-query. Use the direction argument\n to set it to `min`.\n\n Styleguide Settings.breakpoints.mixins\n*/\n\n// mixins\n// @stylint off\nsize-helper(direction, size)\n direction == 'min' ? size + 1 : size\n\n/*\n teeny-screen()\n\n teeny-screen() Refers to (max-width: 375px)\n teeny-screen('min') Refers to (min-width: 376px)\n\n Weight: -6\n\n Styleguide Settings.breakpoints.mixins.teeny\n*/\nteeny-screen(direction='max')\n @media ({direction}-width: rem(size-helper(direction, BP-teeny)))\n {block}\n\n/*\n tiny-screen()\n\n tiny-screen() Refers to (max-width: 480px)\n tiny-screen('min') Refers to (min-width: 481px)\n\n Weight: -5\n\n Styleguide Settings.breakpoints.mixins.tiny\n*/\ntiny-screen(direction='max')\n @media ({direction}-width: rem(size-helper(direction, BP-tiny)))\n {block}\n\n/*\n small-screen()\n\n small-screen() Refers to (max-width: 768px)\n small-screen('min') Refers to (min-width: 769px)\n\n Weight: -4\n\n Styleguide Settings.breakpoints.mixins.small\n*/\nsmall-screen(direction='max')\n @media ({direction}-width: rem(size-helper(direction, BP-small)))\n {block}\n\n/*\n medium-screen()\n\n medium-screen() Refers to (max-width: 1023px)\n medium-screen('min') Refers to (min-width: 1024px)\n\n Weight: -3\n\n Styleguide Settings.breakpoints.mixins.medium\n*/\nmedium-screen(direction='max')\n @media ({direction}-width: rem(size-helper(direction, BP-medium)))\n {block}\n\n/*\n large-screen()\n\n large-screen() Refers to (max-width: 1200px)\n large-screen('min') Refers to (min-width: 1201px)\n\n Weight: -2\n\n Styleguide Settings.breakpoints.mixins.large\n*/\nlarge-screen(direction='max')\n @media ({direction}-width: rem(size-helper(direction, BP-large)))\n {block}\n\n/*\n extra-large-screen()\n\n extra-large-screen() Refers to (max-width: 1439px)\n extra-large-screen('min') Refers to (min-width: 1440px)\n\n Weight: -1\n\n Styleguide Settings.breakpoints.mixins.extra-large\n*/\nextra-large-screen(direction='max')\n @media ({direction}-width: rem(size-helper(direction, BP-extra-large)))\n {block}\n\n// mixins named\n\n/*\n small-device()\n\n Refers to (max-width: 543px), (max-height: 375px)\n Triggers when the viewport has a width smaller than 543px OR a height smaller than 375px\n\n Weight: 0\n\n Styleguide Settings.breakpoints.mixins.small-device\n*/\n\nsmall-device()\n @media (max-width: rem(size-helper('max', BP-tiny))), (max-height: rem(size-helper('max', BP-teeny)))\n {block}\n\n/*\n medium-device()\n\n Refers to (min-width: 543px) and (min-height: 375px)\n Triggers when the viewport has a width bigger than 543px AND a height bigger than 375px\n\n Weight: 0\n\n Styleguide Settings.breakpoints.mixins.medium-device\n*/\n\nmedium-device()\n @media (min-width: rem(size-helper('min', BP-tiny))) and (min-height: rem(size-helper('min', BP-teeny)))\n {block}\n\n/*\n desktop()\n\n Refers to (min-width: 1024px)\n\n Weight: 0\n\n Styleguide Settings.breakpoints.mixins.desktop\n*/\ndesktop()\n @media (min-width: rem(size-helper('min', BP-medium)))\n {block}\n\n/*\n tablet()\n\n Refers to (min-width: 769px) and (max-width: 1023px)\n\n Weight: 1\n\n Styleguide Settings.breakpoints.mixins.tablet\n*/\ntablet()\n @media (min-width: rem(size-helper('min', BP-small))) and (max-width: rem(size-helper('max', BP-medium)))\n {block}\n\n/*\n mobile()\n\n Refers to small-screen() which is (max-width: 768px)\n\n Weight: 2\n\n Styleguide Settings.breakpoints.mixins.mobile\n*/\nmobile()\n +small-screen()\n {block}\n\n/*\n gt-mobile()\n\n Refers to (min-width: 769px)\n\n Weight: 3\n\n Styleguide Settings.breakpoints.mixins.gt-mobile\n*/\ngt-mobile()\n @media (min-width: rem(size-helper('min', BP-small)))\n {block}\n\n/*\n gt-tablet()\n\n Refers to (min-width: 1024px)\n\n Weight: 4\n\n Styleguide Settings.breakpoints.mixins.gt-tablet\n*/\ngt-tablet()\n @media (min-width: rem(size-helper('min', BP-medium)))\n {block}\n\n/*\n lt-desktop()\n\n Refers to medium-screen() which is (max-width: 1023px)\n\n Weight: 5\n\n Styleguide Settings.breakpoints.mixins.lt-desktop\n*/\nlt-desktop()\n +medium-screen()\n {block}\n// @stylint on\n"],sourceRoot:""}]),t.locals={"c-btn":"cozy-ui-bar-c-btn--3Vk8q","c-btn--regular":"cozy-ui-bar-c-btn--regular--2vXm9","c-btn--ghost":"cozy-ui-bar-c-btn--ghost--2erzD","c-btn--highlight":"cozy-ui-bar-c-btn--highlight--139k0","c-btn--alpha":"cozy-ui-bar-c-btn--alpha--3xuwd","c-btn--action":"cozy-ui-bar-c-btn--action--1mNtp","c-btn--close":"cozy-ui-bar-c-btn--close--m97vB","c-btn--danger":"cozy-ui-bar-c-btn--danger--3pdnK","c-btn--secondary":"cozy-ui-bar-c-btn--secondary--2JUsA","c-btn--danger-outline":"cozy-ui-bar-c-btn--danger-outline--2Bltk","c-btn--text":"cozy-ui-bar-c-btn--text--1M_ap","c-btn--left":"cozy-ui-bar-c-btn--left--3xEmE","c-btn--center":"cozy-ui-bar-c-btn--center--T8nT8","c-btn--right":"cozy-ui-bar-c-btn--right--3pX-0","c-btn--tiny":"cozy-ui-bar-c-btn--tiny--15Am0","c-btn--small":"cozy-ui-bar-c-btn--small--gNd1_","c-btn--large":"cozy-ui-bar-c-btn--large--VoQ1T","c-btn--full":"cozy-ui-bar-c-btn--full--257V_","c-btn--narrow":"cozy-ui-bar-c-btn--narrow--37r_T","c-btn--round":"cozy-ui-bar-c-btn--round--TSd9o","c-btn--subtle":"cozy-ui-bar-c-btn--subtle--225Zu",spin:"cozy-ui-bar-spin--39OaW",shake:"cozy-ui-bar-shake--34qwk"}},function(e,t,n){var r=n(64),o=n(351),i=n(352),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},function(e,t,n){var r=n(368),o=n(410),i=n(88),a=n(26),u=n(414);e.exports=function(e){return"function"==typeof e?e:null==e?i:"object"==typeof e?a(e)?o(e[0],e[1]):r(e):u(e)}},function(e,t,n){var r=n(380),o=n(383);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},function(e,t,n){var r=n(456),o=n(240),i=/[T ]/,a=/:/,u=/^(\d{2})$/,c=[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],s=/^(\d{4})/,l=[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],f=/^-(\d{2})$/,d=/^-?(\d{3})$/,p=/^-?(\d{2})-?(\d{2})$/,h=/^-?W(\d{2})$/,m=/^-?W(\d{2})-?(\d{1})$/,y=/^(\d{2}([.,]\d*)?)$/,v=/^(\d{2}):?(\d{2}([.,]\d*)?)$/,g=/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,b=/([Z+-].*)$/,w=/^(Z)$/,x=/^([+-])(\d{2})$/,C=/^([+-])(\d{2}):?(\d{2})$/;function k(e,t,n){t=t||0,n=n||0;var r=new Date(0);r.setUTCFullYear(e,0,4);var o=7*t+n+1-(r.getUTCDay()||7);return r.setUTCDate(r.getUTCDate()+o),r}e.exports=function(e,t){if(o(e))return new Date(e.getTime());if("string"!=typeof e)return new Date(e);var n=(t||{}).additionalDigits;n=null==n?2:Number(n);var S=function(e){var t,n={},r=e.split(i);a.test(r[0])?(n.date=null,t=r[0]):(n.date=r[0],t=r[1]);if(t){var o=b.exec(t);o?(n.time=t.replace(o[1],""),n.timezone=o[1]):n.time=t}return n}(e),_=function(e,t){var n,r=c[t],o=l[t];if(n=s.exec(e)||o.exec(e)){var i=n[1];return{year:parseInt(i,10),restDateString:e.slice(i.length)}}if(n=u.exec(e)||r.exec(e)){var a=n[1];return{year:100*parseInt(a,10),restDateString:e.slice(a.length)}}return{year:null}}(S.date,n),A=_.year,O=function(e,t){if(null===t)return null;var n,r,o,i;if(0===e.length)return(r=new Date(0)).setUTCFullYear(t),r;if(n=f.exec(e))return r=new Date(0),o=parseInt(n[1],10)-1,r.setUTCFullYear(t,o),r;if(n=d.exec(e)){r=new Date(0);var a=parseInt(n[1],10);return r.setUTCFullYear(t,0,a),r}if(n=p.exec(e)){r=new Date(0),o=parseInt(n[1],10)-1;var u=parseInt(n[2],10);return r.setUTCFullYear(t,o,u),r}if(n=h.exec(e))return i=parseInt(n[1],10)-1,k(t,i);if(n=m.exec(e)){i=parseInt(n[1],10)-1;var c=parseInt(n[2],10)-1;return k(t,i,c)}return null}(_.restDateString,A);if(O){var E,B=O.getTime(),j=0;if(S.time&&(j=function(e){var t,n,r;if(t=y.exec(e))return(n=parseFloat(t[1].replace(",",".")))%24*36e5;if(t=v.exec(e))return n=parseInt(t[1],10),r=parseFloat(t[2].replace(",",".")),n%24*36e5+6e4*r;if(t=g.exec(e)){n=parseInt(t[1],10),r=parseInt(t[2],10);var o=parseFloat(t[3].replace(",","."));return n%24*36e5+6e4*r+1e3*o}return null}(S.time)),S.timezone)E=6e4*function(e){var t,n;if(t=w.exec(e))return 0;if(t=x.exec(e))return n=60*parseInt(t[2],10),"+"===t[1]?-n:n;if(t=C.exec(e))return n=60*parseInt(t[2],10)+parseInt(t[3],10),"+"===t[1]?-n:n;return 0}(S.timezone);else{var P=B+j,T=new Date(P);E=r(T);var z=new Date(P);z.setDate(T.getDate()+1);var I=r(z)-r(T);I>0&&(E+=I)}return new Date(B+j+E)}return new Date(e)}},function(e,t){var n=["M","MM","Q","D","DD","DDD","DDDD","d","E","W","WW","YY","YYYY","GG","GGGG","H","HH","h","hh","m","mm","s","ss","S","SS","SSS","Z","ZZ","X","x"];e.exports=function(e){var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(r);var o=n.concat(t).sort().reverse();return new RegExp("(\\[[^\\[]*\\])|(\\\\)?("+o.join("|")+"|.)","g")}},function(e,t,n){var r=n(88),o=n(251),i=n(253);e.exports=function(e,t){return i(o(e,t,r),e+"")}},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.FetchError=t.default=void 0;var o=r(n(4)),i=r(n(11)),a=r(n(8)),u=r(n(10)),c=r(n(5)),s=r(n(35));function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,c.default)(e);if(t){var o=(0,c.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,u.default)(this,n)}}var f={EXPIRED_TOKEN:/Expired token/,CLIENT_NOT_FOUND:/Client not found/,INVALID_TOKEN:/Invalid JWT token/};t.default=f;var d=function(e){(0,a.default)(n,e);var t=l(n);function n(e,r){var a;return(0,o.default)(this,n),a=t.call(this),Error.captureStackTrace&&Error.captureStackTrace((0,i.default)(a),a.constructor),a.name="FetchError",a.response=e,a.url=e.url,a.status=e.status,a.reason=r,Object.defineProperty((0,i.default)(a),"message",{value:r.message||("string"==typeof r?r:JSON.stringify(r))}),a}return n}((0,s.default)(Error));t.FetchError=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DOCTYPE_FILES=t.REGISTRATION_ABORT=void 0;t.REGISTRATION_ABORT="REGISTRATION_ABORT";t.DOCTYPE_FILES="io.cozy.files"},function(e,t,n){"use strict";var r=n(20),o=n(3);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"initQuery",{enumerable:!0,get:function(){return f.initQuery}}),Object.defineProperty(t,"loadQuery",{enumerable:!0,get:function(){return f.loadQuery}}),Object.defineProperty(t,"receiveQueryResult",{enumerable:!0,get:function(){return f.receiveQueryResult}}),Object.defineProperty(t,"receiveQueryError",{enumerable:!0,get:function(){return f.receiveQueryError}}),Object.defineProperty(t,"initMutation",{enumerable:!0,get:function(){return d.initMutation}}),Object.defineProperty(t,"receiveMutationResult",{enumerable:!0,get:function(){return d.receiveMutationResult}}),Object.defineProperty(t,"receiveMutationError",{enumerable:!0,get:function(){return d.receiveMutationError}}),t.resetState=t.getRawQueryFromState=t.getQueryFromState=t.getQueryFromStore=t.getDocumentFromState=t.getCollectionFromState=t.getStateRoot=t.createStore=t.default=t.StoreProxy=void 0;var i=o(n(2)),a=o(n(4)),u=o(n(6)),c=n(205),s=o(n(203)),l=r(n(278)),f=r(n(188)),d=n(190);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){(0,i.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.resetState=function(){return{type:"COZY_CLIENT.RESET_STATE"}};var m=function(){function e(t){(0,a.default)(this,e),this.state=t}return(0,u.default)(e,[{key:"readDocument",value:function(e,t){return this.state.documents[e][t]}},{key:"writeDocument",value:function(e){this.setState((function(t){return h(h({},t),{},{documents:h(h({},t.documents),{},(0,i.default)({},e._type,h(h({},t.documents[e._type]),{},(0,i.default)({},e._id,e))))})}))}},{key:"setState",value:function(e){this.state=e(this.state)}},{key:"getState",value:function(){return this.state}}]),e}();t.StoreProxy=m;var y={documents:{},queries:{}},v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:y,t=arguments.length>1?arguments[1]:void 0;if("COZY_CLIENT.RESET_STATE"==t.type)return y;if(!(0,f.isQueryAction)(t)&&!(0,d.isMutationAction)(t))return e;if(t.update){var n=new m(e);return t.update(n,t.response),{documents:n.getState().documents,queries:(0,f.default)(n.getState().queries,t,n.getState().documents)}}var r=(0,l.default)(e.documents,t),o=r!==e.documents;return{documents:r,queries:(0,f.default)(e.queries,t,r,o)}},g=v;t.default=g;t.createStore=function(){return(0,c.createStore)((0,c.combineReducers)({cozy:v}),(0,c.applyMiddleware)(s.default))};var b=function(e){return e.cozy||{}};t.getStateRoot=b;t.getCollectionFromState=function(e,t){return(0,l.getCollectionFromSlice)(b(e).documents,t)};t.getDocumentFromState=function(e,t,n){return(0,l.getDocumentFromSlice)(b(e).documents,t,n)};t.getQueryFromStore=function(e,t){return w(e.getState(),t)};var w=function(e,t){return(0,f.getQueryFromSlice)(b(e).queries,t,b(e).documents)};t.getQueryFromState=w;t.getRawQueryFromState=function(e,t){return(0,f.getQueryFromSlice)(b(e).queries,t)}},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(4)),i=r(n(6)),a=(n(22),n(21),function(){function e(t,n,r,i){(0,o.default)(this,e);var a=i.dispatch,u=i.get,c=i.query,s=i.mutate,l=i.save;this.target=t,this.name=n,this.doctype=r,this.get=u,this.query=c,this.mutate=s,this.save=l,this.dispatch=a}return(0,i.default)(e,[{key:"raw",get:function(){throw new Error("A relationship must define its raw getter")}},{key:"data",get:function(){throw new Error("A relationship must define its data getter")}}],[{key:"query",value:function(e,t,n){throw new Error("A custom relationship must define its query() function")}}]),e}());t.default=a},function(e,t,n){"use strict";var r=n(27),o=n(99),i=o(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&i(e,".prototype.")>-1?o(n):n}},function(e,t,n){var r=n(145);e.exports=function(e){return null==e?"":r(e)}},function(e,t,n){var r=n(39).Symbol;e.exports=r},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,n){var r=n(407),o=n(151),i=n(408),a=n(224),u=n(225),c=n(52),s=n(214),l=s(r),f=s(o),d=s(i),p=s(a),h=s(u),m=c;(r&&"[object DataView]"!=m(new r(new ArrayBuffer(1)))||o&&"[object Map]"!=m(new o)||i&&"[object Promise]"!=m(i.resolve())||a&&"[object Set]"!=m(new a)||u&&"[object WeakMap]"!=m(new u))&&(m=function(e){var t=c(e),n="[object Object]"==t?e.constructor:void 0,r=n?s(n):"";if(r)switch(r){case l:return"[object DataView]";case f:return"[object Map]";case d:return"[object Promise]";case p:return"[object Set]";case h:return"[object WeakMap]"}return t}),e.exports=m},function(e,t,n){var r=n(26),o=n(160),i=n(411),a=n(63);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:i(a(e))}},function(e,t,n){var r=n(82);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},function(e,t,n){var r=n(232);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},function(e,t){e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var o=(a=r,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */"),i=r.sources.map((function(e){return"/*# sourceURL="+r.sourceRoot+e+" */"}));return[n].concat(i).concat([o]).join("\n")}var a;return[n].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n})).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},o=0;o<this.length;o++){var i=this[o][0];"number"==typeof i&&(r[i]=!0)}for(o=0;o<e.length;o++){var a=e[o];"number"==typeof a[0]&&r[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),t.push(a))}},t}},function(e,t,n){var r=n(162),o=n(69);e.exports=function(e,t,n,i){var a=!n;n||(n={});for(var u=-1,c=t.length;++u<c;){var s=t[u],l=i?i(n[s],e[s],s,n,e):void 0;void 0===l&&(l=e[s]),a?o(n,s,l):r(n,s,l)}return n}},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Collection=t.isDocumentUpdateConflict=t.isNoUsableIndexError=t.isIndexConflictError=t.isIndexNotFoundError=t.dontThrowNotFoundError=void 0;var o=r(n(7)),i=r(n(9)),a=r(n(4)),u=r(n(6)),c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(e.message.match(/not_found/)){var n=Array.isArray(t);return n?{data:t,meta:{count:0},skip:0,next:!1}:{data:t}}throw e};t.dontThrowNotFoundError=c;t.isIndexNotFoundError=function(e){return e.message.match(/no_index/)};t.isIndexConflictError=function(e){return e.message.match(/error_saving_ddoc/)};t.isNoUsableIndexError=function(e){return e.message.match(/no_usable_index/)};t.isDocumentUpdateConflict=function(e){return e.message.match(/Document update conflict/)};var s=function(){function e(){(0,a.default)(this,e)}var t;return(0,u.default)(e,null,[{key:"get",value:(t=(0,i.default)(o.default.mark((function e(t,n,r){var i,a,u,s,l;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.normalize,a=void 0===i?function(e,t){return e}:i,u=r.method,s=void 0===u?"GET":u,e.prev=1,e.next=4,t.fetchJSON(s,n);case 4:return l=e.sent,e.abrupt("return",{data:a(l.data,l)});case 8:return e.prev=8,e.t0=e.catch(1),e.abrupt("return",c(e.t0,null));case 11:case"end":return e.stop()}}),e,null,[[1,8]])}))),function(e,n,r){return t.apply(this,arguments)})}]),e}();t.Collection=s;var l=s;t.default=l},function(e,t,n){"use strict";e.exports=function(){}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=s(n(73)),u=s(n(200)),c=s(n(130));function s(e){return e&&e.__esModule?e:{default:e}}var l=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.type="style",this.isProcessed=!1;var o=r.sheet,i=r.Renderer,a=r.selector;this.key=t,this.options=r,this.style=n,a&&(this.selectorText=a),this.renderer=o?o.renderer:new i}return i(e,[{key:"prop",value:function(e,t){if(void 0===t)return this.style[e];if(this.style[e]===t)return this;var n=null==(t=this.options.jss.plugins.onChangeValue(t,e,this))||!1===t,r=e in this.style;if(n&&!r)return this;var o=n&&r;if(o?delete this.style[e]:this.style[e]=t,this.renderable)return o?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,t),this;var i=this.options.sheet;return i&&i.attached&&(0,a.default)(!1,'Rule is not linked. Missing sheet option "link: true".'),this}},{key:"applyTo",value:function(e){var t=this.toJSON();for(var n in t)this.renderer.setProperty(e,n,t[n]);return this}},{key:"toJSON",value:function(){var e={};for(var t in this.style){var n=this.style[t];"object"!==(void 0===n?"undefined":o(n))?e[t]=n:Array.isArray(n)&&(e[t]=(0,c.default)(n))}return e}},{key:"toString",value:function(e){var t=this.options.sheet,n=!!t&&t.options.link?r({},e,{allowEmpty:!0}):e;return(0,u.default)(this.selector,this.style,n)}},{key:"selector",set:function(e){if(e!==this.selectorText&&(this.selectorText=e,this.renderable&&!this.renderer.setSelector(this.renderable,e)&&this.renderable)){var t=this.renderer.replaceRule(this.renderable,this);t&&(this.renderable=t)}},get:function(){return this.selectorText}}]),e}();t.default=l},function(e,t,n){var r=n(69),o=n(170),i=n(53);e.exports=function(e,t){var n={};return t=i(t,3),o(e,(function(e,o,i){r(n,o,t(e,o,i))})),n}},function(e,t,n){var r=n(43),o=n(258),i=n(509),a=n(67),u=n(71),c=n(511),s=n(180),l=n(163),f=s((function(e,t){var n={};if(null==e)return n;var s=!1;t=r(t,(function(t){return t=a(t,e),s||(s=t.length>1),t})),u(e,l(e),n),s&&(n=o(n,7,c));for(var f=t.length;f--;)i(n,t[f]);return n}));e.exports=f},function(e,t,n){"use strict";e.exports=n(444)},function(e,t,n){"use strict";var r=n(3)(n(118));"undefined"!=typeof window&&(r.default.connect=n(433).default,r.default.FlagSwitcher=n(436).default,r.default.useFlag=n(437).default),"undefined"!=typeof __ENABLED_FLAGS__&&r.default.enable(__ENABLED_FLAGS__),e.exports=r.default},function(e,t,n){"use strict";var r=n(77),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},u={};function c(e){return r.isMemo(e)?a:u[e.$$typeof]||o}u[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},u[r.Memo]=a;var s=Object.defineProperty,l=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=p(n);o&&o!==h&&e(t,o,r)}var a=l(n);f&&(a=a.concat(f(n)));for(var u=c(t),m=c(n),y=0;y<a.length;++y){var v=a[y];if(!(i[v]||r&&r[v]||m&&m[v]||u&&u[v])){var g=d(n,v);try{s(t,v,g)}catch(e){}}}}return t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"d",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"b",(function(){return u}));var r="SET_LOCALE",o=function(e){return{type:r,lang:e}},i=function(){return document.documentElement.getAttribute("lang")||"en"},a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i(),t=arguments.length>1?arguments[1]:void 0;return t.type===r?t.lang:e},u=function(e){return e}},function(e,t,n){(t=e.exports=n(70)(!0)).push([e.i,".cozy-ui-bar-c-loading-placeholder--215aK{-webkit-animation-delay:.1s;animation-delay:.1s;-webkit-animation-duration:2s;animation-duration:2s;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-name:cozy-ui-bar-placeHolderShimmer--3-jlD;animation-name:cozy-ui-bar-placeHolderShimmer--3-jlD;-webkit-animation-timing-function:linear;animation-timing-function:linear;background-position:-20rem 0;background-image:linear-gradient(to right,silver 0,#fcfcfc 50%,silver 100%);background-size:20rem 10rem;background-repeat:no-repeat;background-color:silver;border-radius:.15rem;max-width:100%;position:relative;margin:.1rem 0}.cozy-ui-bar-c-app-icon--3Xbeb,.cozy-ui-bar-c-app-icon--3Xbeb svg{height:100%;width:100%;flex-grow:0;flex-shrink:0;-o-object-fit:contain;object-fit:contain}.cozy-ui-bar-c-app-icon-default--2Jv93{color:var(--silver)}@-webkit-keyframes cozy-ui-bar-placeHolderShimmer--3-jlD{0%{background-position:-20rem 0}80%{background-position:20rem 0}80.1%{background-position:-20rem 0}100%{background-position:-20rem 0}}@keyframes cozy-ui-bar-placeHolderShimmer--3-jlD{0%{background-position:-20rem 0}80%{background-position:20rem 0}80.1%{background-position:-20rem 0}100%{background-position:-20rem 0}}","",{version:3,sources:["/home/anc/cozy/cozy-bar/node_modules/cozy-ui/react/AppIcon/node_modules/cozy-ui/react/AppIcon/styles.styl","/home/anc/cozy/cozy-bar/node_modules/cozy-ui/react/AppIcon/styles.styl"],names:[],mappings:"AAOA,0CACI,4BAAA,oBACA,8BAAA,sBACA,2CAAA,mCACA,6DAAA,qDACA,yCAAA,iCACA,6BACA,4EACA,4BACA,4BACA,wBACA,qBACA,eACA,kBACA,cCNJ,CDSA,kEAEI,YACA,WAEA,YACA,cACA,sBAAA,kBCRJ,CDWA,uCACI,mBCTJ,CD1BA,yDACE,GAAK,4BC2CL,CD1CA,IAAM,2BC6CN,CD5CA,MAAQ,4BC+CR,CD9CA,KAAO,4BCiDP,CACF,CDtDA,iDACE,GAAK,4BCuEL,CDtEA,IAAM,2BCyEN,CDxEA,MAAQ,4BC2ER,CD1EA,KAAO,4BC6EP,CACF,CAAA",file:"styles.styl",sourcesContent:["@keyframes placeHolderShimmer {\n 0% { background-position: -20rem 0; }\n 80% { background-position: 20rem 0; }\n 80.1% { background-position: -20rem 0; }\n 100% { background-position: -20rem 0; }\n}\n\n.c-loading-placeholder {\n animation-delay: 0.1s;\n animation-duration: 2s;\n animation-iteration-count: infinite;\n animation-name: placeHolderShimmer;\n animation-timing-function: linear;\n background-position: -20rem 0;\n background-image: linear-gradient(to right, silver 0%, #fcfcfc 50%, silver 100%);\n background-size: 20rem 10rem;\n background-repeat: no-repeat;\n background-color: silver;\n border-radius: 0.15rem;\n max-width: 100%;\n position: relative;\n margin: .1rem 0;\n}\n\n.c-app-icon,\n.c-app-icon svg {\n height 100%\n width 100%\n // Prevent flex-grow and flex-shrink\n flex-grow 0\n flex-shrink 0\n object-fit contain\n}\n\n.c-app-icon-default {\n color var(--silver)\n}\n",".c-loading-placeholder {\n animation-delay: 0.1s;\n animation-duration: 2s;\n animation-iteration-count: infinite;\n animation-name: placeHolderShimmer;\n animation-timing-function: linear;\n background-position: -20rem 0;\n background-image: linear-gradient(to right, #c0c0c0 0%, #fcfcfc 50%, #c0c0c0 100%);\n background-size: 20rem 10rem;\n background-repeat: no-repeat;\n background-color: #c0c0c0;\n border-radius: 0.15rem;\n max-width: 100%;\n position: relative;\n margin: 0.1rem 0;\n}\n.c-app-icon,\n.c-app-icon svg {\n height: 100%;\n width: 100%;\n flex-grow: 0;\n flex-shrink: 0;\n object-fit: contain;\n}\n.c-app-icon-default {\n color: var(--silver);\n}\n@-moz-keyframes placeHolderShimmer {\n 0% {\n background-position: -20rem 0;\n }\n 80% {\n background-position: 20rem 0;\n }\n 80.1% {\n background-position: -20rem 0;\n }\n 100% {\n background-position: -20rem 0;\n }\n}\n@-webkit-keyframes placeHolderShimmer {\n 0% {\n background-position: -20rem 0;\n }\n 80% {\n background-position: 20rem 0;\n }\n 80.1% {\n background-position: -20rem 0;\n }\n 100% {\n background-position: -20rem 0;\n }\n}\n@-o-keyframes placeHolderShimmer {\n 0% {\n background-position: -20rem 0;\n }\n 80% {\n background-position: 20rem 0;\n }\n 80.1% {\n background-position: -20rem 0;\n }\n 100% {\n background-position: -20rem 0;\n }\n}\n@keyframes placeHolderShimmer {\n 0% {\n background-position: -20rem 0;\n }\n 80% {\n background-position: 20rem 0;\n }\n 80.1% {\n background-position: -20rem 0;\n }\n 100% {\n background-position: -20rem 0;\n }\n}\n"],sourceRoot:""}]),t.locals={"c-loading-placeholder":"cozy-ui-bar-c-loading-placeholder--215aK",placeHolderShimmer:"cozy-ui-bar-placeHolderShimmer--3-jlD","c-app-icon":"cozy-ui-bar-c-app-icon--3Xbeb","c-app-icon-default":"cozy-ui-bar-c-app-icon-default--2Jv93"}},function(e,t,n){var r=n(52),o=n(40);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=n=function(e){return typeof e}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}e.exports=n},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,n){var r=n(221),o=n(159),i=n(47);e.exports=function(e){return i(e)?r(e):o(e)}},function(e,t,n){var r=n(403),o=n(40),i=Object.prototype,a=i.hasOwnProperty,u=i.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(e){return o(e)&&a.call(e,"callee")&&!u.call(e,"callee")};e.exports=c},function(e,t,n){(function(e){var r=n(39),o=n(404),i=t&&!t.nodeType&&t,a=i&&"object"==typeof e&&e&&!e.nodeType&&e,u=a&&a.exports===i?r.Buffer:void 0,c=(u?u.isBuffer:void 0)||o;e.exports=c}).call(this,n(112)(e))},function(e,t){e.exports=function(e){return e}},function(e,t,n){"use strict";var r=n(446);e.exports=Function.prototype.bind||r},function(e,t,n){var r=n(91),o=n(92);e.exports={distanceInWords:r(),format:o()}},function(e,t){e.exports=function(){var e={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};return{localize:function(t,n,r){var o;return r=r||{},o="string"==typeof e[t]?e[t]:1===n?e[t].one:e[t].other.replace("{{count}}",n),r.addSuffix?r.comparison>0?"in "+o:o+" ago":o}}}},function(e,t,n){var r=n(56);e.exports=function(){var e=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],t=["January","February","March","April","May","June","July","August","September","October","November","December"],n=["Su","Mo","Tu","We","Th","Fr","Sa"],o=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],i=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],a=["AM","PM"],u=["am","pm"],c=["a.m.","p.m."],s={MMM:function(t){return e[t.getMonth()]},MMMM:function(e){return t[e.getMonth()]},dd:function(e){return n[e.getDay()]},ddd:function(e){return o[e.getDay()]},dddd:function(e){return i[e.getDay()]},A:function(e){return e.getHours()/12>=1?a[1]:a[0]},a:function(e){return e.getHours()/12>=1?u[1]:u[0]},aa:function(e){return e.getHours()/12>=1?c[1]:c[0]}};return["M","D","DDD","d","Q","W"].forEach((function(e){s[e+"o"]=function(t,n){return function(e){var t=e%100;if(t>20||t<10)switch(t%10){case 1:return e+"st";case 2:return e+"nd";case 3:return e+"rd"}return e+"th"}(n[e](t))}})),{formatters:s,formattingTokensRegExp:r(s)}}},function(e,t){e.exports=function(){var e={lessThanXSeconds:{one:"menos de un segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"medio minuto",lessThanXMinutes:{one:"menos de un minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"alrededor de 1 hora",other:"alrededor de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 día",other:"{{count}} días"},aboutXMonths:{one:"alrededor de 1 mes",other:"alrededor de {{count}} meses"},xMonths:{one:"1 mes",other:"{{count}} meses"},aboutXYears:{one:"alrededor de 1 año",other:"alrededor de {{count}} años"},xYears:{one:"1 año",other:"{{count}} años"},overXYears:{one:"más de 1 año",other:"más de {{count}} años"},almostXYears:{one:"casi 1 año",other:"casi {{count}} años"}};return{localize:function(t,n,r){var o;return r=r||{},o="string"==typeof e[t]?e[t]:1===n?e[t].one:e[t].other.replace("{{count}}",n),r.addSuffix?r.comparison>0?"en "+o:"hace "+o:o}}}},function(e,t,n){var r=n(56);e.exports=function(){var e=["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],t=["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"],n=["do","lu","ma","mi","ju","vi","sa"],o=["dom","lun","mar","mié","jue","vie","sáb"],i=["domingo","lunes","martes","miércoles","jueves","viernes","sábado"],a=["AM","PM"],u=["am","pm"],c=["a.m.","p.m."],s={MMM:function(t){return e[t.getMonth()]},MMMM:function(e){return t[e.getMonth()]},dd:function(e){return n[e.getDay()]},ddd:function(e){return o[e.getDay()]},dddd:function(e){return i[e.getDay()]},A:function(e){return e.getHours()/12>=1?a[1]:a[0]},a:function(e){return e.getHours()/12>=1?u[1]:u[0]},aa:function(e){return e.getHours()/12>=1?c[1]:c[0]}};return["M","D","DDD","d","Q","W"].forEach((function(e){s[e+"o"]=function(t,n){return n[e](t)+"º"}})),{formatters:s,formattingTokensRegExp:r(s)}}},function(e,t){e.exports=function(){var e={lessThanXSeconds:{one:"moins d’une seconde",other:"moins de {{count}} secondes"},xSeconds:{one:"1 seconde",other:"{{count}} secondes"},halfAMinute:"30 secondes",lessThanXMinutes:{one:"moins d’une minute",other:"moins de {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"environ 1 heure",other:"environ {{count}} heures"},xHours:{one:"1 heure",other:"{{count}} heures"},xDays:{one:"1 jour",other:"{{count}} jours"},aboutXMonths:{one:"environ 1 mois",other:"environ {{count}} mois"},xMonths:{one:"1 mois",other:"{{count}} mois"},aboutXYears:{one:"environ 1 an",other:"environ {{count}} ans"},xYears:{one:"1 an",other:"{{count}} ans"},overXYears:{one:"plus d’un an",other:"plus de {{count}} ans"},almostXYears:{one:"presqu’un an",other:"presque {{count}} ans"}};return{localize:function(t,n,r){var o;return r=r||{},o="string"==typeof e[t]?e[t]:1===n?e[t].one:e[t].other.replace("{{count}}",n),r.addSuffix?r.comparison>0?"dans "+o:"il y a "+o:o}}}},function(e,t,n){var r=n(56);e.exports=function(){var e=["janv.","févr.","mars","avr.","mai","juin","juill.","août","sept.","oct.","nov.","déc."],t=["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"],n=["di","lu","ma","me","je","ve","sa"],o=["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],i=["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],a=["AM","PM"],u=["am","pm"],c=["du matin","de l’après-midi","du soir"],s={MMM:function(t){return e[t.getMonth()]},MMMM:function(e){return t[e.getMonth()]},dd:function(e){return n[e.getDay()]},ddd:function(e){return o[e.getDay()]},dddd:function(e){return i[e.getDay()]},A:function(e){return e.getHours()/12>=1?a[1]:a[0]},a:function(e){return e.getHours()/12>=1?u[1]:u[0]},aa:function(e){var t=e.getHours();return t<=12?c[0]:t<=16?c[1]:c[2]},Wo:function(e,t){return function(e){if(1===e)return"1re";return e+"e"}(t.W(e))}};return["M","D","DDD","d","Q"].forEach((function(e){s[e+"o"]=function(t,n){return function(e){if(1===e)return"1er";return e+"e"}(n[e](t))}})),["MMM","MMMM"].forEach((function(e){s["Do "+e]=function(t,n){var r=1===t.getDate()?"Do":"D";return(s[r]||n[r])(t,n)+" "+s[e](t)}})),{formatters:s,formattingTokensRegExp:r(s)}}},function(e,t,n){var r=n(526);function o(t,n,i){return"undefined"!=typeof Reflect&&Reflect.get?e.exports=o=Reflect.get:e.exports=o=function(e,t,n){var o=r(e,t);if(o){var i=Object.getOwnPropertyDescriptor(o,t);return i.get?i.get.call(n):i.value}},o(t,n,i||t)}e.exports=o},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.updateRelationship=t.updateHasManyItem=t.removeHasManyItem=t.setHasManyItem=t.getHasManyItems=t.getHasManyItem=void 0;var o=r(n(4)),i=r(n(6)),a=r(n(11)),u=r(n(8)),c=r(n(10)),s=r(n(5)),l=r(n(2)),f=r(n(31)),d=r(n(18)),p=r(n(127)),h=n(21),m=n(60),y=(n(22),r(n(61)));function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){(0,l.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,s.default)(e);if(t){var o=(0,s.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,c.default)(this,n)}}var w=function(e){(0,u.default)(n,e);var t=b(n);function n(){var e;(0,o.default)(this,n);for(var r=arguments.length,i=new Array(r),u=0;u<r;u++)i[u]=arguments[u];return e=t.call.apply(t,[this].concat(i)),(0,l.default)((0,a.default)(e),"updateRelationshipData",(function(t){return function(n,r){var o=(0,m.getDocumentFromState)(r(),e.target._type,e.target._id);n((0,m.receiveQueryResult)(null,{data:g(g({},o),{},{relationships:g(g({},o.relationships),{},(0,l.default)({},e.name,t(o.relationships[e.name])))})}))}})),e}return(0,i.default)(n,[{key:"fetchMore",value:function(){throw"Not implemented"}},{key:"exists",value:function(e){return this.existsById(e._id)}},{key:"containsById",value:function(e){return void 0!==this.getRelationship().data.find((function(t){var n=t._id;return e===n}))}},{key:"existsById",value:function(e){return Boolean(this.containsById(e)&&this.get(this.doctype,e))}},{key:"add",value:function(e){var t=(Array.isArray(e)?e:[e]).map((function(e){return e._id}));return this.addById(t)}},{key:"remove",value:function(e){var t=(Array.isArray(e)?e:[e]).map((function(e){return e._id}));return this.removeById(t)}},{key:"addTargetRelationships",value:function(e){var t,n=this;this.target.relationships||(this.target.relationships={}),this.target.relationships[this.name]||(this.target.relationships[this.name]={data:[]});var r=(Array.isArray(e)?e:[e]).filter((function(e){return!n.existsById(e)})).map((function(e){return{_id:e,_type:n.doctype}}));(t=this.target.relationships[this.name].data).push.apply(t,(0,f.default)(r)),this.updateMetaCount()}},{key:"addById",value:function(e){return this.addTargetRelationships(e),this.save(this.target)}},{key:"removeTargetRelationships",value:function(e){var t=Array.isArray(e)?e:[e];this.target.relationships[this.name].data=this.target.relationships[this.name].data.filter((function(e){var n=e._id;return!t.includes(n)})),this.updateMetaCount()}},{key:"removeById",value:function(e){return this.removeTargetRelationships(e),this.save(this.target)}},{key:"updateMetaCount",value:function(){void 0!==(0,d.default)(this.target.relationships[this.name],"meta.count")&&(this.target.relationships[this.name].meta=g(g({},this.target.relationships[this.name].meta),{},{count:this.target.relationships[this.name].data.length}))}},{key:"getRelationship",value:function(){var e=this.target[this.name],t=(0,d.default)(this.target,"relationships.".concat(this.name));return t||(e&&e.length&&console.warn("You're trying to access data on a relationship that appear to not be loaded yet. You may want to use 'include()' on your query"),{data:[],next:!0,meta:{count:0}})}},{key:"updateTargetRelationship",value:function(e,t){var n=e.readDocument(this.target._type,this.target._id);e.writeDocument(this.updateRelationship(n,t))}},{key:"updateRelationship",value:function(e,t){return n.updateRelationship(e,this.name,t)}},{key:"dehydrate",value:function(e){return g(g({},e),{},{relationships:g(g({},e.relationships),{},(0,l.default)({},this.name,{data:this.raw}))})}},{key:"raw",get:function(){return this.getRelationship().data}},{key:"data",get:function(){var e=this;return this.getRelationship().data.map((function(t){var n=t._id,r=t._type;return e.get(r,n)})).filter(Boolean)}},{key:"hasMore",get:function(){return this.getRelationship().next}},{key:"count",get:function(){var e=this.getRelationship();return e.meta?e.meta.count:e.data.length}}],[{key:"query",value:function(e,t,n){var r=(0,d.default)(e,"relationships.".concat(n.name,".data"),[]).map((function(e){return e._id}));return new h.QueryDefinition({doctype:n.doctype,ids:r})}}]),n}(y.default),x=w.getHasManyItem=function(e,t,n){return(0,d.default)(e,"relationships.".concat(t,".data"),[]).find((function(e){return e._id==n}))};t.getHasManyItem=x;var C=w.getHasManyItems=function(e,t){return(0,d.default)(e,"relationships.".concat(t,".data"),[])};t.getHasManyItems=C;var k=w.setHasManyItem=function(e,t,n,r){var o,i,a,u,c=w.getHasManyItems(e,t),s=c.findIndex((function(e){return e._id===n})),l=(0,p.default)({},c[s],r),d=(o=c,a=l,u=-1===(i=s)?o.length:i,[].concat((0,f.default)(o.slice(0,u)),[a],(0,f.default)(o.slice(u+1))));return w.updateRelationship(e,t,(function(e){return(0,p.default)({},e,{data:d})}))};t.setHasManyItem=k;var S=w.removeHasManyItem=function(e,t,n){var r=w.getHasManyItems(e,t).filter((function(e){return e._id!==n}));return w.updateRelationship(e,t,(function(){return{data:r}}))};t.removeHasManyItem=S;var _=w.updateHasManyItem=function(e,t,n,r){var o=r(w.getHasManyItem(e,t,n));return w.setHasManyItem(e,t,n,o)};t.updateHasManyItem=_;var A=w.updateRelationship=function(e,t,n){return g(g({},e),{},{relationships:g(g({},e.relationships),{},(0,l.default)({},t,g(g({},e.relationships?e.relationships[t]:{}),n(e.relationships?e.relationships[t]:{}))))})};t.updateRelationship=A;var O=w;t.default=O},function(e,t,n){"use strict";var r=n(89),o=n(27),i=o("%Function.prototype.apply%"),a=o("%Function.prototype.call%"),u=o("%Reflect.apply%",!0)||r.call(a,i),c=o("%Object.getOwnPropertyDescriptor%",!0),s=o("%Object.defineProperty%",!0),l=o("%Math.max%");if(s)try{s({},"a",{value:1})}catch(e){s=null}e.exports=function(e){var t=u(r,a,arguments);if(c&&s){var n=c(t,"length");n.configurable&&s(t,"length",{value:1+l(0,e.length-(arguments.length-1))})}return t};var f=function(){return u(r,i,arguments)};s?s(e.exports,"apply",{value:f}):e.exports.apply=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=s(n(131)),a=s(n(324)),u=s(n(74)),c=s(n(689));function s(e){return e&&e.__esModule?e:{default:e}}var l=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.map={},this.raw={},this.index=[],this.update=function(e,t){var r=n.options,o=r.jss.plugins,i=r.sheet;if("string"==typeof e)o.onUpdate(t,n.get(e),i);else for(var a=0;a<n.index.length;a++)o.onUpdate(e,n.index[a],i)},this.options=t,this.classes=t.classes}return o(e,[{key:"add",value:function(e,t,n){var o=this.options,a=o.parent,s=o.sheet,l=o.jss,f=o.Renderer,d=o.generateClassName;!(n=r({classes:this.classes,parent:a,sheet:s,jss:l,Renderer:f,generateClassName:d},n)).selector&&this.classes[e]&&(n.selector="."+(0,c.default)(this.classes[e])),this.raw[e]=t;var p=(0,i.default)(e,t,n),h=void 0;!n.selector&&p instanceof u.default&&(h=d(p,s),p.selector="."+(0,c.default)(h)),this.register(p,h);var m=void 0===n.index?this.index.length:n.index;return this.index.splice(m,0,p),p}},{key:"get",value:function(e){return this.map[e]}},{key:"remove",value:function(e){this.unregister(e),this.index.splice(this.indexOf(e),1)}},{key:"indexOf",value:function(e){return this.index.indexOf(e)}},{key:"process",value:function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)}},{key:"register",value:function(e,t){this.map[e.key]=e,e instanceof u.default&&(this.map[e.selector]=e,t&&(this.classes[e.key]=t))}},{key:"unregister",value:function(e){delete this.map[e.key],e instanceof u.default&&(delete this.map[e.selector],delete this.classes[e.key])}},{key:"link",value:function(e){for(var t=this.options.sheet.renderer.getUnescapedKeysMap(this.index),n=0;n<e.length;n++){var r=e[n],o=this.options.sheet.renderer.getKey(r);t[o]&&(o=t[o]);var i=this.map[o];i&&(0,a.default)(i,r)}}},{key:"toString",value:function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,o=0;o<this.index.length;o++){var i=this.index[o].toString(e);(i||r)&&(t&&(t+="\n"),t+=i)}return t}}]),e}();t.default=l},function(e,t,n){e.exports=window.ReactDOM||n(438)},function(e,t,n){"use strict";n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return c}));var r,o=n(135),i=n.n(o),a=n(23),u=function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:a.DEFAULT_LANG;if(r=new i.a({phrases:t(o),locale:o}),e&&e!==o)try{var u=t(e);r.extend(u),r.locale(e)}catch(t){console.warn('The dict phrases for "'.concat(e,"\" can't be loaded"))}if(n)try{var c=t(e,n);r.extend(c)}catch(t){console.warn("The context ".concat(n," cannot be loaded for lang ").concat(e))}return r},c=function(e){return r&&r.extend(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isCordova=void 0;t.isCordova=function(){return"undefined"!=typeof window&&void 0!==window.cordova}},function(e,t,n){var r=n(105),o=n(375),i=n(376),a=n(377),u=n(378),c=n(379);function s(e){var t=this.__data__=new r(e);this.size=t.size}s.prototype.clear=o,s.prototype.delete=i,s.prototype.get=a,s.prototype.has=u,s.prototype.set=c,e.exports=s},function(e,t,n){var r=n(370),o=n(371),i=n(372),a=n(373),u=n(374);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=u,e.exports=c},function(e,t,n){var r=n(84);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},function(e,t,n){var r=n(54)(Object,"create");e.exports=r},function(e,t,n){var r=n(392);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},function(e,t,n){var r=n(153),o=n(397),i=n(398);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,e.exports=a},function(e,t){e.exports=function(e,t){return e.has(t)}},function(e,t){e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t){var n=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&n.test(e))&&e>-1&&e%1==0&&e<t}},function(e,t,n){var r=n(405),o=n(65),i=n(158),a=i&&i.isTypedArray,u=a?o(a):r;e.exports=u},function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},function(e,t,n){var r=n(67),o=n(68);e.exports=function(e,t){for(var n=0,i=(t=r(t,e)).length;null!=e&&n<i;)e=e[o(t[n++])];return n&&n==i?e:void 0}},function(e,t,n){var r=n(221),o=n(416),i=n(47);e.exports=function(e){return i(e)?r(e,!0):o(e)}},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.initialize=t.initializeFromDOM=t.getTemplateData=t.initializeFromRemote=t.enable=t.resetFlags=t.listFlags=void 0;var o=r(n(4)),i=r(n(6)),a=r(n(7)),u=r(n(9)),c=r(n(19)),s=new(r(n(431)).default),l=function(){var e=[].slice.call(arguments);return 1===e.length?s.get(e[0]):(s.set(e[0],e[1]),e[1])},f=function(){return s.keys().sort()};t.listFlags=f;var d=function(){f().forEach((function(e){return s.remove(e)}))};t.resetFlags=d;var p=function(e){var t;if(Array.isArray(e)?(console.log("flags.enable: Deprecation warning: prefer to use an object { flag1: true, flag2: true } instead of an array when using flags.enable"),t=e.map((function(e){return[e,!0]}))):"object"==typeof e&&(t=Object.entries(e)),t){var n=!0,r=!1,o=void 0;try{for(var i,a=t[Symbol.iterator]();!(n=(i=a.next()).done);n=!0){var u=(0,c.default)(i.value,2),s=u[0],f=u[1];l(s,f)}}catch(e){r=!0,o=e}finally{try{n||null==a.return||a.return()}finally{if(r)throw o}}}};t.enable=p;var h=function(){var e=(0,u.default)(a.default.mark((function e(t){var n,r;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.query(t.get("io.cozy.settings","flags"));case 2:n=e.sent,r=n.data.attributes,p(r);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();t.initializeFromRemote=h;var m=function(e){if("undefined"==typeof document)return null;var t,n=document.querySelector("[data-cozy]"),r=document.querySelector("[data-cozy-".concat(e,"]"));try{return n?JSON.parse(n.dataset.cozy)[e]:r?(console.warn('Prefer to use [data-cozy] to store template data. <div data-cozy="{{.CozyData}}></div>. "'),JSON.parse(r.dataset["cozy".concat((t=e,t[0].toUpperCase()+t.slice(1)))])):null}catch(e){return null}};t.getTemplateData=m;var y=function(){var e=(0,u.default)(a.default.mark((function e(){var t;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=m("flags")){e.next=3;break}return e.abrupt("return",!1);case 3:return p(t),e.abrupt("return",!0);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();t.initializeFromDOM=y;var v=function(){var e=(0,u.default)(a.default.mark((function e(t){return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,y();case 2:if(0!=e.sent){e.next=6;break}return e.next=6,h(t);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();t.initialize=v;var g=function(){function e(t){(0,o.default)(this,e),this.client=t,this.handleLogin=this.handleLogin.bind(this),this.handleLogout=this.handleLogout.bind(this),this.client.on("login",this.handleLogin),this.client.on("logout",this.handleLogout),this.setupInitializing(),t.isLogged&&this.handleLogin()}var t,n,r;return(0,i.default)(e,[{key:"refresh",value:(r=(0,u.default)(a.default.mark((function e(){return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,l.initializeFromRemote(this.client);case 2:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"setupInitializing",value:function(){var e=this;this.initializing=new Promise((function(t){e.resolveInitializing=t}))}},{key:"handleLogin",value:(n=(0,u.default)(a.default.mark((function e(){return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,l.initialize(this.client);case 2:this.resolveInitializing(),this.client.emit("plugin:flag:login");case 4:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"handleLogout",value:(t=(0,u.default)(a.default.mark((function e(){return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:l.reset(),this.setupInitializing(),this.client.emit("plugin:flag:logout");case 3:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})}]),e}();g.pluginName="flags",l.store=s,l.list=f,l.reset=d,l.enable=p,l.initializeFromRemote=h,l.initializeFromDOM=y,l.initialize=v,l.plugin=g;var b=l;t.default=b},function(e,t,n){"use strict";var r=TypeError,o=Object.getOwnPropertyDescriptor;if(o)try{o({},"")}catch(e){o=null}var i=function(){throw new r},a=o?function(){try{return i}catch(e){try{return o(arguments,"callee").get}catch(e){return i}}}():i,u=n(168)(),c=Object.getPrototypeOf||function(e){return e.__proto__},s=void 0,l="undefined"==typeof Uint8Array?void 0:c(Uint8Array),f={"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"%ArrayBufferPrototype%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer.prototype,"%ArrayIteratorPrototype%":u?c([][Symbol.iterator]()):void 0,"%ArrayPrototype%":Array.prototype,"%ArrayProto_entries%":Array.prototype.entries,"%ArrayProto_forEach%":Array.prototype.forEach,"%ArrayProto_keys%":Array.prototype.keys,"%ArrayProto_values%":Array.prototype.values,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":void 0,"%AsyncFunctionPrototype%":void 0,"%AsyncGenerator%":void 0,"%AsyncGeneratorFunction%":void 0,"%AsyncGeneratorPrototype%":void 0,"%AsyncIteratorPrototype%":s&&u&&Symbol.asyncIterator?s[Symbol.asyncIterator]():void 0,"%Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"%Boolean%":Boolean,"%BooleanPrototype%":Boolean.prototype,"%DataView%":"undefined"==typeof DataView?void 0:DataView,"%DataViewPrototype%":"undefined"==typeof DataView?void 0:DataView.prototype,"%Date%":Date,"%DatePrototype%":Date.prototype,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%ErrorPrototype%":Error.prototype,"%eval%":eval,"%EvalError%":EvalError,"%EvalErrorPrototype%":EvalError.prototype,"%Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"%Float32ArrayPrototype%":"undefined"==typeof Float32Array?void 0:Float32Array.prototype,"%Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"%Float64ArrayPrototype%":"undefined"==typeof Float64Array?void 0:Float64Array.prototype,"%Function%":Function,"%FunctionPrototype%":Function.prototype,"%Generator%":void 0,"%GeneratorFunction%":void 0,"%GeneratorPrototype%":void 0,"%Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"%Int8ArrayPrototype%":"undefined"==typeof Int8Array?void 0:Int8Array.prototype,"%Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"%Int16ArrayPrototype%":"undefined"==typeof Int16Array?void 0:Int8Array.prototype,"%Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"%Int32ArrayPrototype%":"undefined"==typeof Int32Array?void 0:Int32Array.prototype,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":u?c(c([][Symbol.iterator]())):void 0,"%JSON%":"object"==typeof JSON?JSON:void 0,"%JSONParse%":"object"==typeof JSON?JSON.parse:void 0,"%Map%":"undefined"==typeof Map?void 0:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&u?c((new Map)[Symbol.iterator]()):void 0,"%MapPrototype%":"undefined"==typeof Map?void 0:Map.prototype,"%Math%":Math,"%Number%":Number,"%NumberPrototype%":Number.prototype,"%Object%":Object,"%ObjectPrototype%":Object.prototype,"%ObjProto_toString%":Object.prototype.toString,"%ObjProto_valueOf%":Object.prototype.valueOf,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?void 0:Promise,"%PromisePrototype%":"undefined"==typeof Promise?void 0:Promise.prototype,"%PromiseProto_then%":"undefined"==typeof Promise?void 0:Promise.prototype.then,"%Promise_all%":"undefined"==typeof Promise?void 0:Promise.all,"%Promise_reject%":"undefined"==typeof Promise?void 0:Promise.reject,"%Promise_resolve%":"undefined"==typeof Promise?void 0:Promise.resolve,"%Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"%RangeError%":RangeError,"%RangeErrorPrototype%":RangeError.prototype,"%ReferenceError%":ReferenceError,"%ReferenceErrorPrototype%":ReferenceError.prototype,"%Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"%RegExp%":RegExp,"%RegExpPrototype%":RegExp.prototype,"%Set%":"undefined"==typeof Set?void 0:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&u?c((new Set)[Symbol.iterator]()):void 0,"%SetPrototype%":"undefined"==typeof Set?void 0:Set.prototype,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"%SharedArrayBufferPrototype%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer.prototype,"%String%":String,"%StringIteratorPrototype%":u?c(""[Symbol.iterator]()):void 0,"%StringPrototype%":String.prototype,"%Symbol%":u?Symbol:void 0,"%SymbolPrototype%":u?Symbol.prototype:void 0,"%SyntaxError%":SyntaxError,"%SyntaxErrorPrototype%":SyntaxError.prototype,"%ThrowTypeError%":a,"%TypedArray%":l,"%TypedArrayPrototype%":l?l.prototype:void 0,"%TypeError%":r,"%TypeErrorPrototype%":r.prototype,"%Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"%Uint8ArrayPrototype%":"undefined"==typeof Uint8Array?void 0:Uint8Array.prototype,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"%Uint8ClampedArrayPrototype%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray.prototype,"%Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"%Uint16ArrayPrototype%":"undefined"==typeof Uint16Array?void 0:Uint16Array.prototype,"%Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"%Uint32ArrayPrototype%":"undefined"==typeof Uint32Array?void 0:Uint32Array.prototype,"%URIError%":URIError,"%URIErrorPrototype%":URIError.prototype,"%WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"%WeakMapPrototype%":"undefined"==typeof WeakMap?void 0:WeakMap.prototype,"%WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet,"%WeakSetPrototype%":"undefined"==typeof WeakSet?void 0:WeakSet.prototype},d=n(89).call(Function.call,String.prototype.replace),p=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,h=/\\(\\)?/g,m=function(e){var t=[];return d(e,p,(function(e,n,r,o){t[t.length]=r?d(o,h,"$1"):n||e})),t},y=function(e,t){if(!(e in f))throw new SyntaxError("intrinsic "+e+" does not exist!");if(void 0===f[e]&&!t)throw new r("intrinsic "+e+" exists, but is not available. Please file an issue!");return f[e]};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new TypeError("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new TypeError('"allowMissing" argument must be a boolean');for(var n=m(e),i=y("%"+(n.length>0?n[0]:"")+"%",t),a=1;a<n.length;a+=1)if(null!=i)if(o&&a+1>=n.length){var u=o(i,n[a]);if(!t&&!(n[a]in i))throw new r("base intrinsic for "+e+" exists, but the property is not available.");i=u?u.get||u.value:i[n[a]]}else i=i[n[a]];return i}},function(e,t,n){var r=n(93),o=n(94);e.exports={distanceInWords:r(),format:o()}},function(e,t,n){var r=n(95),o=n(96);e.exports={distanceInWords:r(),format:o()}},function(e,t,n){var r=n(111),o=n(473);e.exports=function e(t,n,i,a,u){var c=-1,s=t.length;for(i||(i=o),u||(u=[]);++c<s;){var l=t[c];n>0&&i(l)?n>1?e(l,n-1,i,a,u):r(u,l):a||(u[u.length]=l)}return u}},function(e,t,n){var r=n(47),o=n(40);e.exports=function(e){return o(e)&&r(e)}},function(e,t){e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},function(e,t,n){var r=n(172);e.exports=function(e){return e&&e.length?r(e):[]}},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"HasManyFiles",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"HasMany",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"HasOne",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"HasOneInPlace",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"HasManyInPlace",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"HasManyTriggers",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"Association",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"resolveClass",{enumerable:!0,get:function(){return f.resolveClass}}),Object.defineProperty(t,"create",{enumerable:!0,get:function(){return f.create}}),Object.defineProperty(t,"isReferencedBy",{enumerable:!0,get:function(){return f.isReferencedBy}}),Object.defineProperty(t,"isReferencedById",{enumerable:!0,get:function(){return f.isReferencedById}}),Object.defineProperty(t,"getReferencedBy",{enumerable:!0,get:function(){return f.getReferencedBy}}),Object.defineProperty(t,"getReferencedById",{enumerable:!0,get:function(){return f.getReferencedById}});var o=r(n(277)),i=r(n(98)),a=r(n(291)),u=r(n(292)),c=r(n(293)),s=r(n(568)),l=r(n(61)),f=n(191)},function(e,t,n){var r=n(563),o=n(566)((function(e,t,n){r(e,t,n)}));e.exports=o},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(0),i=r(n(196)),a=(r(n(41)),function(){return(0,o.useContext)(i.default).client});t.default=a},function(e,t,n){"use strict";n.r(t);var r=n(316),o=n.n(r);n.d(t,"componentPropType",(function(){return o.a}));var i=n(317),a=n.n(i);n.d(t,"chainPropTypes",(function(){return a.a}));var u=n(318),c=n.n(u);n.d(t,"exactProp",(function(){return c.a}));var s=n(319),l=n.n(s);n.d(t,"getDisplayName",(function(){return l.a}));var f=n(320),d=n.n(f);n.d(t,"ponyfillGlobal",(function(){return d.a}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!Array.isArray(e))return e;var n="";if(Array.isArray(e[0]))for(var o=0;o<e.length&&"!important"!==e[o];o++)n&&(n+=", "),n+=r(e[o]," ");else n=r(e,", ");t||"!important"!==e[e.length-1]||(n+=" !important");return n};var r=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"unnamed",t=arguments[1],n=arguments[2],a=n.jss,u=(0,i.default)(t),c=a.plugins.onCreateRule(e,u,n);if(c)return c;"@"===e[0]&&(0,r.default)(!1,"[JSS] Unknown at-rule %s",e);return new o.default(e,u,n)};var r=a(n(73)),o=a(n(74)),i=a(n(688));function a(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";n.r(t),n.d(t,"isBrowser",(function(){return o}));var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o="object"===("undefined"==typeof window?"undefined":r(window))&&"object"===("undefined"==typeof document?"undefined":r(document))&&9===document.nodeType;t.default=o},function(e,t,n){e.exports=function(){"use strict";var e=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var n=Object.prototype.toString.call(e);return"[object RegExp]"===n||"[object Date]"===n||function(e){return e.$$typeof===t}(e)}(e)},t="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(e,t){return!1!==t.clone&&t.isMergeableObject(e)?a((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function r(e,t,r){return e.concat(t).map((function(e){return n(e,r)}))}function o(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function i(e,t,r){var i={};return r.isMergeableObject(e)&&o(e).forEach((function(t){i[t]=n(e[t],r)})),o(t).forEach((function(o){r.isMergeableObject(t[o])&&e[o]?i[o]=function(e,t){if(!t.customMerge)return a;var n=t.customMerge(e);return"function"==typeof n?n:a}(o,r)(e[o],t[o],r):i[o]=n(t[o],r)})),i}function a(t,o,a){(a=a||{}).arrayMerge=a.arrayMerge||r,a.isMergeableObject=a.isMergeableObject||e;var u=Array.isArray(o);return u===Array.isArray(t)?u?a.arrayMerge(t,o,a):i(t,o,a):n(o,a)}return a.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return a(e,n,t)}),{})},a}()},function(e,t,n){"use strict";n.r(t),function(e,r){var o,i=n(330);o="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:r;var a=Object(i.a)(o);t.default=a}.call(this,n(33),n(430)(e))},function(e,t,n){"use strict";var r=n(445),o=n(37),i=n(167),a=n(447),u=function(e){o(!1,e)},c=String.prototype.replace,s=String.prototype.split,l=function(e){var t=e%100,n=t%10;return 11!==t&&1===n?0:2<=n&&n<=4&&!(t>=12&&t<=14)?1:2},f={pluralTypes:{arabic:function(e){if(e<3)return e;var t=e%100;return t>=3&&t<=10?3:t>=11?4:5},bosnian_serbian:l,chinese:function(){return 0},croatian:l,french:function(e){return e>1?1:0},german:function(e){return 1!==e?1:0},russian:l,lithuanian:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=9&&(e%100<11||e%100>19)?1:2},czech:function(e){return 1===e?0:e>=2&&e<=4?1:2},polish:function(e){if(1===e)return 0;var t=e%10;return 2<=t&&t<=4&&(e%100<10||e%100>=20)?1:2},icelandic:function(e){return e%10!=1||e%100==11?1:0},slovenian:function(e){var t=e%100;return 1===t?0:2===t?1:3===t||4===t?2:3}},pluralTypeToLanguages:{arabic:["ar"],bosnian_serbian:["bs-Latn-BA","bs-Cyrl-BA","srl-RS","sr-RS"],chinese:["id","id-ID","ja","ko","ko-KR","lo","ms","th","th-TH","zh"],croatian:["hr","hr-HR"],german:["fa","da","de","en","es","fi","el","he","hi-IN","hu","hu-HU","it","nl","no","pt","sv","tr"],french:["fr","tl","pt-br"],russian:["ru","ru-RU"],lithuanian:["lt"],czech:["cs","cs-CZ","sk"],polish:["pl"],icelandic:["is"],slovenian:["sl-SL"]}};function d(e,t){var n,o,i=(n=e.pluralTypeToLanguages,o={},r(n,(function(e,t){r(e,(function(e){o[e]=t}))})),o);return i[t]||i[s.call(t,/-/,1)[0]]||i.en}function p(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var h=/%\{(.*?)\}/g;function m(e,t,n,r,o){if("string"!=typeof e)throw new TypeError("Polyglot.transformPhrase expects argument #1 to be string");if(null==t)return e;var u=e,l=r||h,p=o||f,m="number"==typeof t?{smart_count:t}:t;if(null!=m.smart_count&&u){var y=s.call(u,"||||");u=a(y[function(e,t,n){return e.pluralTypes[d(e,t)](n)}(p,n||"en",m.smart_count)]||y[0])}return u=c.call(u,l,(function(e,t){return i(m,t)&&null!=m[t]?m[t]:e}))}function y(e){var t=e||{};this.phrases={},this.extend(t.phrases||{}),this.currentLocale=t.locale||"en";var n=t.allowMissing?m:null;this.onMissingKey="function"==typeof t.onMissingKey?t.onMissingKey:n,this.warn=t.warn||u,this.tokenRegex=function(e){var t=e&&e.prefix||"%{",n=e&&e.suffix||"}";if("||||"===t||"||||"===n)throw new RangeError('"||||" token is reserved for pluralization');return new RegExp(p(t)+"(.*?)"+p(n),"g")}(t.interpolation),this.pluralRules=t.pluralRules||f}y.prototype.locale=function(e){return e&&(this.currentLocale=e),this.currentLocale},y.prototype.extend=function(e,t){r(e,(function(e,n){var r=t?t+"."+n:n;"object"==typeof e?this.extend(e,r):this.phrases[r]=e}),this)},y.prototype.unset=function(e,t){"string"==typeof e?delete this.phrases[e]:r(e,(function(e,n){var r=t?t+"."+n:n;"object"==typeof e?this.unset(e,r):delete this.phrases[r]}),this)},y.prototype.clear=function(){this.phrases={}},y.prototype.replace=function(e){this.clear(),this.extend(e)},y.prototype.t=function(e,t){var n,r,o=null==t?{}:t;if("string"==typeof this.phrases[e])n=this.phrases[e];else if("string"==typeof o._)n=o._;else if(this.onMissingKey){r=(0,this.onMissingKey)(e,o,this.currentLocale,this.tokenRegex,this.pluralRules)}else this.warn('Missing translation for key: "'+e+'"'),r=e;return"string"==typeof n&&(r=m(n,o,this.currentLocale,this.tokenRegex,this.pluralRules)),r},y.prototype.has=function(e){return i(this.phrases,e)},y.transformPhrase=function(e,t,n){return m(e,t,n)},e.exports=y},function(e,t){e.exports={black:"var(--black)",white:"var(--white)",paleGrey:"var(--paleGrey)",silver:"var(--silver)",coolGrey:"var(--coolGrey)",slateGrey:"var(--slateGrey)",charcoalGrey:"var(--charcoalGrey)",overlay:"var(--overlay)",primaryColor:"var(--primaryColor)",primaryColorLight:"var(--primaryColorLight)",primaryContrastTextColor:"var(--primaryContrastTextColor)",success:"var(--successColor)",warning:"var(--warningColor)",error:"var(--errorColor)",info:"var(--infoColor)",errorBackground:"var(--errorBackground)",primaryBackgroundLight:"var(--primaryBackgroundLight)",neutralBackground:"var(--neutralBackground)",zircon:"#F5FAFF",frenchPass:"#C2DCFF",dodgerBlue:"#297EF2",scienceBlue:"#0B61D6",puertoRico:"#0DCBCF",grannyApple:"#DEF7E7",emerald:"#35CE68",malachite:"#08b442",seafoamGreen:"#3DA67E",brightSun:"#FFC644",texasRose:"#FFAE5F",chablis:"#FFF2F2",yourPink:"#FDCBCB",fuchsia:"#FC4C83",pomegranate:"#F52D2D",monza:"#DD0505",portage:"#9169F2",azure:"#1FA8F1",melon:"#FD7461",blazeOrange:"#FC6D00",mango:"#FF962F",pumpkinOrange:"#FF7F1B",lavender:"#C2ADF4",darkPeriwinkle:"#6984CE",purpley:"#7F6BEE",lightishPurple:"#B449E7",barney:"#922BC2",weirdGreen:"#40DE8E"}},function(e,t,n){var r=n(671),o=n(34);e.exports=function(e,t,n){var i=!0,a=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return o(n)&&(i="leading"in n?!!n.leading:i,a="trailing"in n?!!n.trailing:a),r(e,t,{leading:i,maxWait:t,trailing:a})}},function(e,t,n){"use strict";var r=n(78),o=n.n(r),i=n(204),a=n.n(i),u=window.minilog||a.a,c=u("cozy-bar");o()("bar.debug")||u.suggest.deny("cozy-bar","info"),t.a=c},function(e,t,n){"use strict";var r=n(7),o=n.n(r),i=n(9),a=n.n(i),u=n(327),c=n.n(u),s=n(328),l={},f={gif:"image/gif",ico:"image/vnd.microsoft.icon",jpeg:"image/jpeg",jpg:"image/jpeg",png:"image/png",svg:"image/svg+xml"};function d(){return(d=a()(o.a.mark((function e(t){var n,r,i,a,u,c,s,d=arguments;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=d.length>1&&void 0!==d[1]?d[1]:{},!((r=!(d.length>2&&void 0!==d[2])||d[2])&&l.icons&&l.icons[i])){e.next=4;break}return e.abrupt("return",l.icons[i]);case 4:if(i=n.links&&n.links.icon){e.next=7;break}return e.abrupt("return","");case 7:return e.prev=7,e.next=10,t(i);case 10:if((u=e.sent).ok){e.next=13;break}throw new Error("Error while fetching icon ".concat(u.statusText,": ").concat(i));case 13:return e.next=15,u.blob();case 15:a=e.sent,e.next=21;break;case 18:throw e.prev=18,e.t0=e.catch(7),e.t0;case 21:if(a.type){e.next=30;break}if(n.icon){e.next=24;break}throw new Error("".concat(n.name,": Cannot detect mime type for icon ").concat(i));case 24:if(c=n.icon.split(".").pop()){e.next=27;break}throw new Error("".concat(n.name,": Unable to detect icon mime type from extension (").concat(n.icon,")"));case 27:if(f[c]){e.next=29;break}throw new Error("".concat(n.name,": 'Unexpected icon extension (").concat(n.icon,")"));case 29:a=new Blob([a],{type:f[c]});case 30:if(!a.type.match(/^image\/.*$/)){e.next=34;break}return s=URL.createObjectURL(a),r&&(l.icons=l.icons||{},l.icons[i]=s),e.abrupt("return",s);case 34:throw new Error("".concat(n.name,": icon ").concat(i," is not an image."));case 35:case"end":return e.stop()}}),e,null,[[7,18]])})))).apply(this,arguments)}var p=n(329),h=n.n(p);var m=function(e){var t=e.getApp,n=e.onCreate,r=e.onDelete,i=e.cozyClient,u=function(){var e=a()(o.a.mark((function e(r){var i;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t(r.slug);case 3:i=e.sent,e.next=9;break;case 6:throw e.prev=6,e.t0=e.catch(0),new Error("Cannot fetch app ".concat(r.slug,": ").concat(e.t0.message));case 9:"function"==typeof n&&n(i);case 10:case"end":return e.stop()}}),e,null,[[0,6]])})));return function(t){return e.apply(this,arguments)}}();try{var c=new h.a({client:i});c.subscribe("created","io.cozy.apps",u),c.subscribe("deleted","io.cozy.apps",(function(e){"function"==typeof r&&r(e)}))}catch(e){console.warn("Cannot initialize realtime in Cozy-bar: ".concat(e.message))}},y=n(4),v=n.n(y),g=n(8),b=n.n(g),w=n(10),x=n.n(w),C=n(5),k=n.n(C),S=n(35),_=n.n(S);function A(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=k()(e);if(t){var o=k()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return x()(this,n)}}var O=function(e){b()(n,e);var t=A(n);function n(e){var r;return v()(this,n),(r=t.call(this)).name="Forbidden",r.status=403,r.message=e||"The application does not have permission to access this resource.",r.stack=(new Error).stack,r}return n}(_()(Error)),E=function(e){b()(n,e);var t=A(n);function n(e){var r;return v()(this,n),(r=t.call(this)).name="ServerError",r.status=500,r.message=e||"A server error occurred",r.stack=(new Error).stack,r}return n}(_()(Error)),B=function(e){b()(n,e);var t=A(n);function n(e){var r;return v()(this,n),(r=t.call(this)).name="NotFound",r.status=404,r.message=e||"The ressource was not found",r.stack=(new Error).stack,r}return n}(_()(Error)),j=function(e){b()(n,e);var t=A(n);function n(e){var r;return v()(this,n),(r=t.call(this)).name="MethodNotAllowed",r.status=405,r.message=e||"Method not allowed",r.stack=(new Error).stack,r}return n}(_()(Error)),P=function(e){b()(n,e);var t=A(n);function n(e){var r;return v()(this,n),(r=t.call(this)).name="UnavailableStack",r.message=e||"The stack is temporarily unavailable",r.stack=(new Error).stack,r}return n}(_()(Error)),T=function(e){b()(n,e);var t=A(n);function n(e){var r;return v()(this,n),(r=t.call(this)).name="UnauthorizedStack",r.status=401,r.message=e||"The app is not allowed to access to the requested resource",r.stack=(new Error).stack,r}return n}(_()(Error)),z=function(e){b()(n,e);var t=A(n);function n(e){var r;return v()(this,n),(r=t.call(this)).name="UnavailableSettings",r.message=e||"The 'Settings' application isn't available or installed in the stack",r.stack=(new Error).stack,r}return n}(_()(Error)),I=n(24);n.d(t,"a",(function(){return H}));var D,R,F,M,N={401:T,403:O,404:B,405:j,500:E},L=function(){return D.getStackClient()},U=function(){return new URL(L().uri)},$=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=r.headers=r.headers||{};return o.Accept="application/json","GET"!==e&&"HEAD"!==e&&void 0!==n&&(o["Content-Type"]||(o["Content-Type"]="application/json",n=JSON.stringify(n))),L().fetch(e,t,n,r).then((function(e){if("function"==typeof N[e.status])throw new N[e.status];if(!e.headers.get("content-type").includes("json"))throw new Error("Server response not in JSON");return e.json()}))},G=function(e){if(!e)throw new Error("Missing slug");return $("GET","/apps/".concat(e)).then((function(e){if(e.error)throw new Error(e.error);return e.data}))},q=Math.pow(10,12),J=function(e){return L().fetch("GET",e)},H=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=D?D.constructor:{},r=null!==t?t:n;if(!r.version)return!1;var o=c()(r.version,e);return o>=0};t.b={get:{app:G,apps:function(){return $("GET","/apps/").then((function(e){if(e.error)throw new Error(e.error);return e.data}))},context:(R=function(){return $("GET","/settings/context")},F={},M=void 0,a()(o.a.mark((function e(){return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0!==M){e.next=10;break}return e.prev=1,e.next=4,R();case 4:M=e.sent,e.next=10;break;case 7:e.prev=7,e.t0=e.catch(1),t=e.t0,M=["NotFoundException","NotFound","FetchError"].includes(t.name)&&t.status&&404===t.status?F:void 0;case 10:return e.abrupt("return",M);case 11:case"end":return e.stop()}var t}),e,null,[[1,7]])})))),storageData:function(){return $("GET","/settings/disk-usage").then((function(e){var t=parseInt(e.data.attributes.used,10);return{usage:t,quota:parseInt(e.data.attributes.quota,10)||Math.max(q,10*t),isLimited:e.data.attributes.is_limited}})).catch((function(){throw new P}))},iconProps:function(){var e={fetchIcon:function(e){return function(e){return d.apply(this,arguments)}(J,e,!0)}},t={domain:U().host,secure:"https:"===U().protocol};return Object(I.isMobileApp)()?e:t},cozyURL:function(){return U().origin},intents:function(){return new s.Intents({client:D})},settingsAppURL:function(){return G("settings").then((function(e){if(!e)throw new z;return e.links.related}))}},updateAccessToken:function(){throw new Error("updateAccessToken should not be used with a cozy-client instance initialization")},cozyFetchJSON:function(e,t,n,r){return $(t,n,r).then((function(e){var t=Object.assign({},e.data);return t.id&&(t._id=t.id),t}))},logout:function(){return L().fetch("DELETE","/auth/login").then((function(e){if(401===e.status)throw new T;return 204===e.status&&window.location.reload(),!0})).catch((function(){throw new P}))},init:function(e){var t=e.cozyClient,n=e.onCreate,r=e.onDelete;(D=t).isLogged&&m({getApp:G,onCreate:n,onDelete:r,cozyClient:D})}}},function(e){e.exports=JSON.parse('{"desktop":{"icon":"icon-laptop.svg","link":{"type":"external"}},"mobile":{"icon":"icon-phone.svg","link":{"type":"external"}},"support":{"icon":"icon-question-mark.svg","link":{"type":"external"}}}')},function(e,t,n){"use strict";e.exports=function(e,t,n,r,o,i,a,u){if(!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[n,r,o,i,a,u],l=0;(c=new Error(t.replace(/%s/g,(function(){return s[l++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}},function(e,t,n){var r;
7
7
  /*! Hammer.JS - v2.0.7 - 2016-04-22
8
8
  * http://hammerjs.github.io/
9
9
  *
10
10
  * Copyright (c) 2016 Jorik Tangelder;
11
- * Licensed under the MIT license */!function(o,i,a,u){"use strict";var c,s=["","webkit","Moz","MS","ms","o"],l=i.createElement("div"),f=Math.round,d=Math.abs,p=Date.now;function h(e,t,n){return setTimeout(x(e,n),t)}function m(e,t,n){return!!Array.isArray(e)&&(y(e,n[t],n),!0)}function y(e,t,n){var r;if(e)if(e.forEach)e.forEach(t,n);else if(void 0!==e.length)for(r=0;r<e.length;)t.call(n,e[r],r,e),r++;else for(r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r,e)}function v(e,t,n){var r="DEPRECATED METHOD: "+t+"\n"+n+" AT \n";return function(){var t=new Error("get-stack-trace"),n=t&&t.stack?t.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",i=o.console&&(o.console.warn||o.console.log);return i&&i.call(o.console,r,n),e.apply(this,arguments)}}c="function"!=typeof Object.assign?function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;n<arguments.length;n++){var r=arguments[n];if(null!=r)for(var o in r)r.hasOwnProperty(o)&&(t[o]=r[o])}return t}:Object.assign;var g=v((function(e,t,n){for(var r=Object.keys(t),o=0;o<r.length;)(!n||n&&void 0===e[r[o]])&&(e[r[o]]=t[r[o]]),o++;return e}),"extend","Use `assign`."),b=v((function(e,t){return g(e,t,!0)}),"merge","Use `assign`.");function w(e,t,n){var r,o=t.prototype;(r=e.prototype=Object.create(o)).constructor=e,r._super=o,n&&c(r,n)}function x(e,t){return function(){return e.apply(t,arguments)}}function C(e,t){return"function"==typeof e?e.apply(t&&t[0]||void 0,t):e}function k(e,t){return void 0===e?t:e}function S(e,t,n){y(E(t),(function(t){e.addEventListener(t,n,!1)}))}function _(e,t,n){y(E(t),(function(t){e.removeEventListener(t,n,!1)}))}function A(e,t){for(;e;){if(e==t)return!0;e=e.parentNode}return!1}function O(e,t){return e.indexOf(t)>-1}function E(e){return e.trim().split(/\s+/g)}function B(e,t,n){if(e.indexOf&&!n)return e.indexOf(t);for(var r=0;r<e.length;){if(n&&e[r][n]==t||!n&&e[r]===t)return r;r++}return-1}function j(e){return Array.prototype.slice.call(e,0)}function P(e,t,n){for(var r=[],o=[],i=0;i<e.length;){var a=t?e[i][t]:e[i];B(o,a)<0&&r.push(e[i]),o[i]=a,i++}return n&&(r=t?r.sort((function(e,n){return e[t]>n[t]})):r.sort()),r}function T(e,t){for(var n,r,o=t[0].toUpperCase()+t.slice(1),i=0;i<s.length;){if((r=(n=s[i])?n+o:t)in e)return r;i++}}var z=1;function I(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow||o}var D="ontouchstart"in o,R=void 0!==T(o,"PointerEvent"),F=D&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),M=["x","y"],N=["clientX","clientY"];function L(e,t){var n=this;this.manager=e,this.callback=t,this.element=e.element,this.target=e.options.inputTarget,this.domHandler=function(t){C(e.options.enable,[e])&&n.handler(t)},this.init()}function U(e,t,n){var r=n.pointers.length,o=n.changedPointers.length,i=1&t&&r-o==0,a=12&t&&r-o==0;n.isFirst=!!i,n.isFinal=!!a,i&&(e.session={}),n.eventType=t,function(e,t){var n=e.session,r=t.pointers,o=r.length;n.firstInput||(n.firstInput=$(t));o>1&&!n.firstMultiple?n.firstMultiple=$(t):1===o&&(n.firstMultiple=!1);var i=n.firstInput,a=n.firstMultiple,u=a?a.center:i.center,c=t.center=G(r);t.timeStamp=p(),t.deltaTime=t.timeStamp-i.timeStamp,t.angle=W(u,c),t.distance=H(u,c),function(e,t){var n=t.center,r=e.offsetDelta||{},o=e.prevDelta||{},i=e.prevInput||{};1!==t.eventType&&4!==i.eventType||(o=e.prevDelta={x:i.deltaX||0,y:i.deltaY||0},r=e.offsetDelta={x:n.x,y:n.y});t.deltaX=o.x+(n.x-r.x),t.deltaY=o.y+(n.y-r.y)}(n,t),t.offsetDirection=J(t.deltaX,t.deltaY);var s=q(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=s.x,t.overallVelocityY=s.y,t.overallVelocity=d(s.x)>d(s.y)?s.x:s.y,t.scale=a?(l=a.pointers,f=r,H(f[0],f[1],N)/H(l[0],l[1],N)):1,t.rotation=a?function(e,t){return W(t[1],t[0],N)+W(e[1],e[0],N)}(a.pointers,r):0,t.maxPointers=n.prevInput?t.pointers.length>n.prevInput.maxPointers?t.pointers.length:n.prevInput.maxPointers:t.pointers.length,function(e,t){var n,r,o,i,a=e.lastInterval||t,u=t.timeStamp-a.timeStamp;if(8!=t.eventType&&(u>25||void 0===a.velocity)){var c=t.deltaX-a.deltaX,s=t.deltaY-a.deltaY,l=q(u,c,s);r=l.x,o=l.y,n=d(l.x)>d(l.y)?l.x:l.y,i=J(c,s),e.lastInterval=t}else n=a.velocity,r=a.velocityX,o=a.velocityY,i=a.direction;t.velocity=n,t.velocityX=r,t.velocityY=o,t.direction=i}(n,t);var l,f;var h=e.element;A(t.srcEvent.target,h)&&(h=t.srcEvent.target);t.target=h}(e,n),e.emit("hammer.input",n),e.recognize(n),e.session.prevInput=n}function $(e){for(var t=[],n=0;n<e.pointers.length;)t[n]={clientX:f(e.pointers[n].clientX),clientY:f(e.pointers[n].clientY)},n++;return{timeStamp:p(),pointers:t,center:G(t),deltaX:e.deltaX,deltaY:e.deltaY}}function G(e){var t=e.length;if(1===t)return{x:f(e[0].clientX),y:f(e[0].clientY)};for(var n=0,r=0,o=0;o<t;)n+=e[o].clientX,r+=e[o].clientY,o++;return{x:f(n/t),y:f(r/t)}}function q(e,t,n){return{x:t/e||0,y:n/e||0}}function J(e,t){return e===t?1:d(e)>=d(t)?e<0?2:4:t<0?8:16}function H(e,t,n){n||(n=M);var r=t[n[0]]-e[n[0]],o=t[n[1]]-e[n[1]];return Math.sqrt(r*r+o*o)}function W(e,t,n){n||(n=M);var r=t[n[0]]-e[n[0]],o=t[n[1]]-e[n[1]];return 180*Math.atan2(o,r)/Math.PI}L.prototype={handler:function(){},init:function(){this.evEl&&S(this.element,this.evEl,this.domHandler),this.evTarget&&S(this.target,this.evTarget,this.domHandler),this.evWin&&S(I(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&_(this.element,this.evEl,this.domHandler),this.evTarget&&_(this.target,this.evTarget,this.domHandler),this.evWin&&_(I(this.element),this.evWin,this.domHandler)}};var Q={mousedown:1,mousemove:2,mouseup:4};function V(){this.evEl="mousedown",this.evWin="mousemove mouseup",this.pressed=!1,L.apply(this,arguments)}w(V,L,{handler:function(e){var t=Q[e.type];1&t&&0===e.button&&(this.pressed=!0),2&t&&1!==e.which&&(t=4),this.pressed&&(4&t&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[e],changedPointers:[e],pointerType:"mouse",srcEvent:e}))}});var Y={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},K={2:"touch",3:"pen",4:"mouse",5:"kinect"},Z="pointerdown",X="pointermove pointerup pointercancel";function ee(){this.evEl=Z,this.evWin=X,L.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}o.MSPointerEvent&&!o.PointerEvent&&(Z="MSPointerDown",X="MSPointerMove MSPointerUp MSPointerCancel"),w(ee,L,{handler:function(e){var t=this.store,n=!1,r=e.type.toLowerCase().replace("ms",""),o=Y[r],i=K[e.pointerType]||e.pointerType,a="touch"==i,u=B(t,e.pointerId,"pointerId");1&o&&(0===e.button||a)?u<0&&(t.push(e),u=t.length-1):12&o&&(n=!0),u<0||(t[u]=e,this.callback(this.manager,o,{pointers:t,changedPointers:[e],pointerType:i,srcEvent:e}),n&&t.splice(u,1))}});var te={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function ne(){this.evTarget="touchstart",this.evWin="touchstart touchmove touchend touchcancel",this.started=!1,L.apply(this,arguments)}function re(e,t){var n=j(e.touches),r=j(e.changedTouches);return 12&t&&(n=P(n.concat(r),"identifier",!0)),[n,r]}w(ne,L,{handler:function(e){var t=te[e.type];if(1===t&&(this.started=!0),this.started){var n=re.call(this,e,t);12&t&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:e})}}});var oe={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function ie(){this.evTarget="touchstart touchmove touchend touchcancel",this.targetIds={},L.apply(this,arguments)}function ae(e,t){var n=j(e.touches),r=this.targetIds;if(3&t&&1===n.length)return r[n[0].identifier]=!0,[n,n];var o,i,a=j(e.changedTouches),u=[],c=this.target;if(i=n.filter((function(e){return A(e.target,c)})),1===t)for(o=0;o<i.length;)r[i[o].identifier]=!0,o++;for(o=0;o<a.length;)r[a[o].identifier]&&u.push(a[o]),12&t&&delete r[a[o].identifier],o++;return u.length?[P(i.concat(u),"identifier",!0),u]:void 0}w(ie,L,{handler:function(e){var t=oe[e.type],n=ae.call(this,e,t);n&&this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:e})}});function ue(){L.apply(this,arguments);var e=x(this.handler,this);this.touch=new ie(this.manager,e),this.mouse=new V(this.manager,e),this.primaryTouch=null,this.lastTouches=[]}function ce(e,t){1&e?(this.primaryTouch=t.changedPointers[0].identifier,se.call(this,t)):12&e&&se.call(this,t)}function se(e){var t=e.changedPointers[0];if(t.identifier===this.primaryTouch){var n={x:t.clientX,y:t.clientY};this.lastTouches.push(n);var r=this.lastTouches;setTimeout((function(){var e=r.indexOf(n);e>-1&&r.splice(e,1)}),2500)}}function le(e){for(var t=e.srcEvent.clientX,n=e.srcEvent.clientY,r=0;r<this.lastTouches.length;r++){var o=this.lastTouches[r],i=Math.abs(t-o.x),a=Math.abs(n-o.y);if(i<=25&&a<=25)return!0}return!1}w(ue,L,{handler:function(e,t,n){var r="touch"==n.pointerType,o="mouse"==n.pointerType;if(!(o&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(r)ce.call(this,t,n);else if(o&&le.call(this,n))return;this.callback(e,t,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var fe=T(l.style,"touchAction"),de=void 0!==fe,pe=function(){if(!de)return!1;var e={},t=o.CSS&&o.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(n){e[n]=!t||o.CSS.supports("touch-action",n)})),e}();function he(e,t){this.manager=e,this.set(t)}he.prototype={set:function(e){"compute"==e&&(e=this.compute()),de&&this.manager.element.style&&pe[e]&&(this.manager.element.style[fe]=e),this.actions=e.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var e=[];return y(this.manager.recognizers,(function(t){C(t.options.enable,[t])&&(e=e.concat(t.getTouchAction()))})),function(e){if(O(e,"none"))return"none";var t=O(e,"pan-x"),n=O(e,"pan-y");if(t&&n)return"none";if(t||n)return t?"pan-x":"pan-y";if(O(e,"manipulation"))return"manipulation";return"auto"}(e.join(" "))},preventDefaults:function(e){var t=e.srcEvent,n=e.offsetDirection;if(this.manager.session.prevented)t.preventDefault();else{var r=this.actions,o=O(r,"none")&&!pe.none,i=O(r,"pan-y")&&!pe["pan-y"],a=O(r,"pan-x")&&!pe["pan-x"];if(o){var u=1===e.pointers.length,c=e.distance<2,s=e.deltaTime<250;if(u&&c&&s)return}if(!a||!i)return o||i&&6&n||a&&24&n?this.preventSrc(t):void 0}},preventSrc:function(e){this.manager.session.prevented=!0,e.preventDefault()}};function me(e){this.options=c({},this.defaults,e||{}),this.id=z++,this.manager=null,this.options.enable=k(this.options.enable,!0),this.state=1,this.simultaneous={},this.requireFail=[]}function ye(e){return 16&e?"cancel":8&e?"end":4&e?"move":2&e?"start":""}function ve(e){return 16==e?"down":8==e?"up":2==e?"left":4==e?"right":""}function ge(e,t){var n=t.manager;return n?n.get(e):e}function be(){me.apply(this,arguments)}function we(){be.apply(this,arguments),this.pX=null,this.pY=null}function xe(){be.apply(this,arguments)}function Ce(){me.apply(this,arguments),this._timer=null,this._input=null}function ke(){be.apply(this,arguments)}function Se(){be.apply(this,arguments)}function _e(){me.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function Ae(e,t){return(t=t||{}).recognizers=k(t.recognizers,Ae.defaults.preset),new Oe(e,t)}me.prototype={defaults:{},set:function(e){return c(this.options,e),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(e){if(m(e,"recognizeWith",this))return this;var t=this.simultaneous;return t[(e=ge(e,this)).id]||(t[e.id]=e,e.recognizeWith(this)),this},dropRecognizeWith:function(e){return m(e,"dropRecognizeWith",this)||(e=ge(e,this),delete this.simultaneous[e.id]),this},requireFailure:function(e){if(m(e,"requireFailure",this))return this;var t=this.requireFail;return-1===B(t,e=ge(e,this))&&(t.push(e),e.requireFailure(this)),this},dropRequireFailure:function(e){if(m(e,"dropRequireFailure",this))return this;e=ge(e,this);var t=B(this.requireFail,e);return t>-1&&this.requireFail.splice(t,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(e){return!!this.simultaneous[e.id]},emit:function(e){var t=this,n=this.state;function r(n){t.manager.emit(n,e)}n<8&&r(t.options.event+ye(n)),r(t.options.event),e.additionalEvent&&r(e.additionalEvent),n>=8&&r(t.options.event+ye(n))},tryEmit:function(e){if(this.canEmit())return this.emit(e);this.state=32},canEmit:function(){for(var e=0;e<this.requireFail.length;){if(!(33&this.requireFail[e].state))return!1;e++}return!0},recognize:function(e){var t=c({},e);if(!C(this.options.enable,[this,t]))return this.reset(),void(this.state=32);56&this.state&&(this.state=1),this.state=this.process(t),30&this.state&&this.tryEmit(t)},process:function(e){},getTouchAction:function(){},reset:function(){}},w(be,me,{defaults:{pointers:1},attrTest:function(e){var t=this.options.pointers;return 0===t||e.pointers.length===t},process:function(e){var t=this.state,n=e.eventType,r=6&t,o=this.attrTest(e);return r&&(8&n||!o)?16|t:r||o?4&n?8|t:2&t?4|t:2:32}}),w(we,be,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var e=this.options.direction,t=[];return 6&e&&t.push("pan-y"),24&e&&t.push("pan-x"),t},directionTest:function(e){var t=this.options,n=!0,r=e.distance,o=e.direction,i=e.deltaX,a=e.deltaY;return o&t.direction||(6&t.direction?(o=0===i?1:i<0?2:4,n=i!=this.pX,r=Math.abs(e.deltaX)):(o=0===a?1:a<0?8:16,n=a!=this.pY,r=Math.abs(e.deltaY))),e.direction=o,n&&r>t.threshold&&o&t.direction},attrTest:function(e){return be.prototype.attrTest.call(this,e)&&(2&this.state||!(2&this.state)&&this.directionTest(e))},emit:function(e){this.pX=e.deltaX,this.pY=e.deltaY;var t=ve(e.direction);t&&(e.additionalEvent=this.options.event+t),this._super.emit.call(this,e)}}),w(xe,be,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||2&this.state)},emit:function(e){if(1!==e.scale){var t=e.scale<1?"in":"out";e.additionalEvent=this.options.event+t}this._super.emit.call(this,e)}}),w(Ce,me,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return["auto"]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,r=e.distance<t.threshold,o=e.deltaTime>t.time;if(this._input=e,!r||!n||12&e.eventType&&!o)this.reset();else if(1&e.eventType)this.reset(),this._timer=h((function(){this.state=8,this.tryEmit()}),t.time,this);else if(4&e.eventType)return 8;return 32},reset:function(){clearTimeout(this._timer)},emit:function(e){8===this.state&&(e&&4&e.eventType?this.manager.emit(this.options.event+"up",e):(this._input.timeStamp=p(),this.manager.emit(this.options.event,this._input)))}}),w(ke,be,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||2&this.state)}}),w(Se,be,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return we.prototype.getTouchAction.call(this)},attrTest:function(e){var t,n=this.options.direction;return 30&n?t=e.overallVelocity:6&n?t=e.overallVelocityX:24&n&&(t=e.overallVelocityY),this._super.attrTest.call(this,e)&&n&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers==this.options.pointers&&d(t)>this.options.velocity&&4&e.eventType},emit:function(e){var t=ve(e.offsetDirection);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)}}),w(_e,me,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return["manipulation"]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,r=e.distance<t.threshold,o=e.deltaTime<t.time;if(this.reset(),1&e.eventType&&0===this.count)return this.failTimeout();if(r&&o&&n){if(4!=e.eventType)return this.failTimeout();var i=!this.pTime||e.timeStamp-this.pTime<t.interval,a=!this.pCenter||H(this.pCenter,e.center)<t.posThreshold;if(this.pTime=e.timeStamp,this.pCenter=e.center,a&&i?this.count+=1:this.count=1,this._input=e,0===this.count%t.taps)return this.hasRequireFailures()?(this._timer=h((function(){this.state=8,this.tryEmit()}),t.interval,this),2):8}return 32},failTimeout:function(){return this._timer=h((function(){this.state=32}),this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),Ae.VERSION="2.0.7",Ae.defaults={domEvents:!1,touchAction:"compute",enable:!0,inputTarget:null,inputClass:null,preset:[[ke,{enable:!1}],[xe,{enable:!1},["rotate"]],[Se,{direction:6}],[we,{direction:6},["swipe"]],[_e],[_e,{event:"doubletap",taps:2},["tap"]],[Ce]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};function Oe(e,t){var n;this.options=c({},Ae.defaults,t||{}),this.options.inputTarget=this.options.inputTarget||e,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=e,this.input=new((n=this).options.inputClass||(R?ee:F?ie:D?ue:V))(n,U),this.touchAction=new he(this,this.options.touchAction),Ee(this,!0),y(this.options.recognizers,(function(e){var t=this.add(new e[0](e[1]));e[2]&&t.recognizeWith(e[2]),e[3]&&t.requireFailure(e[3])}),this)}function Ee(e,t){var n,r=e.element;r.style&&(y(e.options.cssProps,(function(o,i){n=T(r.style,i),t?(e.oldCssProps[n]=r.style[n],r.style[n]=o):r.style[n]=e.oldCssProps[n]||""})),t||(e.oldCssProps={}))}Oe.prototype={set:function(e){return c(this.options,e),e.touchAction&&this.touchAction.update(),e.inputTarget&&(this.input.destroy(),this.input.target=e.inputTarget,this.input.init()),this},stop:function(e){this.session.stopped=e?2:1},recognize:function(e){var t=this.session;if(!t.stopped){var n;this.touchAction.preventDefaults(e);var r=this.recognizers,o=t.curRecognizer;(!o||o&&8&o.state)&&(o=t.curRecognizer=null);for(var i=0;i<r.length;)n=r[i],2===t.stopped||o&&n!=o&&!n.canRecognizeWith(o)?n.reset():n.recognize(e),!o&&14&n.state&&(o=t.curRecognizer=n),i++}},get:function(e){if(e instanceof me)return e;for(var t=this.recognizers,n=0;n<t.length;n++)if(t[n].options.event==e)return t[n];return null},add:function(e){if(m(e,"add",this))return this;var t=this.get(e.options.event);return t&&this.remove(t),this.recognizers.push(e),e.manager=this,this.touchAction.update(),e},remove:function(e){if(m(e,"remove",this))return this;if(e=this.get(e)){var t=this.recognizers,n=B(t,e);-1!==n&&(t.splice(n,1),this.touchAction.update())}return this},on:function(e,t){if(void 0!==e&&void 0!==t){var n=this.handlers;return y(E(e),(function(e){n[e]=n[e]||[],n[e].push(t)})),this}},off:function(e,t){if(void 0!==e){var n=this.handlers;return y(E(e),(function(e){t?n[e]&&n[e].splice(B(n[e],t),1):delete n[e]})),this}},emit:function(e,t){this.options.domEvents&&function(e,t){var n=i.createEvent("Event");n.initEvent(e,!0,!0),n.gesture=t,t.target.dispatchEvent(n)}(e,t);var n=this.handlers[e]&&this.handlers[e].slice();if(n&&n.length){t.type=e,t.preventDefault=function(){t.srcEvent.preventDefault()};for(var r=0;r<n.length;)n[r](t),r++}},destroy:function(){this.element&&Ee(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},c(Ae,{INPUT_START:1,INPUT_MOVE:2,INPUT_END:4,INPUT_CANCEL:8,STATE_POSSIBLE:1,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:32,DIRECTION_NONE:1,DIRECTION_LEFT:2,DIRECTION_RIGHT:4,DIRECTION_UP:8,DIRECTION_DOWN:16,DIRECTION_HORIZONTAL:6,DIRECTION_VERTICAL:24,DIRECTION_ALL:30,Manager:Oe,Input:L,TouchAction:he,TouchInput:ie,MouseInput:V,PointerEventInput:ee,TouchMouseInput:ue,SingleTouchInput:ne,Recognizer:me,AttrRecognizer:be,Tap:_e,Pan:we,Swipe:Se,Pinch:xe,Rotate:ke,Press:Ce,on:S,off:_,each:y,merge:b,extend:g,assign:c,inherit:w,bindFn:x,prefixed:T}),(void 0!==o?o:"undefined"!=typeof self?self:{}).Hammer=Ae,void 0===(r=function(){return Ae}.call(t,n,t,e))||(e.exports=r)}(window,document)},function(e,t,n){(t=e.exports=n(70)(!0)).push([e.i,"html{--white:#fff;--paleGrey:#f5f6f7;--silver:#d6d8da;--coolGrey:#95999d;--slateGrey:#5d6165;--charcoalGrey:#32363f;--black:#000;--overlay:rgba(50,54,63,.5);--zircon:#f5faff;--dodgerBlue:#297ef2;--scienceBlue:#0b61d6;--weirdGreen:#40de8e;--emerald:#35ce68;--malachite:#08b442;--mango:#ff962f;--chablis:#fff2f2;--yourPink:#fdcbcb;--fuchsia:#fc4c83;--pomegranate:#f52d2d;--monza:#dd0505}html,.cozy-ui-bar-CozyTheme--normal--1OuNS{--primaryColor:#297ef2;--primaryColorDark:#0b61d6;--primaryColorLight:#5c9df5;--primaryColorLightest:#9fc4fb;--secondaryColor:#fd7461;--secondaryColorDark:#e3503b;--secondaryColorLight:#ffdeda;--secondaryColorLightest:#fecdc6;--primaryBackgroundLight:#f5faff;--paperBackgroundColor:#fff;--defaultBackgroundColor:#f5f6f7;--primaryTextColor:#32363f;--secondaryTextColor:#95999d;--primaryContrastTextColor:#fff;--secondaryContrastTextColor:#fff;--dividerColor:rgba(29,33,42,.122);--successColor:#35ce68;--warningColor:#ff962f;--errorColor:#f52d2d;--errorColorDark:#a00808;--errorColorLight:#fcbfbf;--errorColorLightest:#fee6e6;--errorBackground:#fff2f2;--spinnerColor:var(--primaryColor);--linkColor:var(--primaryColor);--linkTextDecoration:none;--linkColorActive:var(--primaryColorDark);--invertedTabsActiveTextColor:var(--primaryContrastTextColor);--invertedTabsInactiveTextColor:var(--primaryContrastTextColor);--invertedTabsIndicatorColor:var(--primaryContrastTextColor);--invertedTabsBackgroundColor:var(--primaryColor);--regularButtonPrimaryColor:var(--primaryColor);--regularButtonSecondaryColor:var(--primaryColor);--regularButtonActiveColor:var(--primaryColorDark);--regularButtonConstrastColor:var(--primaryContrastTextColor);--secondaryButtonPrimaryColor:#fff;--secondaryButtonSecondaryColor:var(--silver);--secondaryButtonActiveColor:var(--silver);--secondaryButtonContrastColor:var(--black);--dividerColor2:var(--coolGrey);--iconColor:currentColor;--textIconColor:var(--charcoalGrey);--actionMenuIconColor:var(--slateGrey);--neutralBackground:var(--paleGrey);--buttonTextTransform:uppercase;--buttonBorderRadius:.125rem;--navTextColor:var(--slateGrey);--navTextActiveColor:var(--slateGrey);--navTextHoverColor:var(--charcoalGrey);--alertErrorColor:#fff;--alertErrorBackgroundColor:var(--errorColor);--alertSuccessColor:#fff;--alertSuccessBackgroundColor:var(--successColor);--alertInfoColor:#fff;--alertInfoBackgroundColor:var(--slateGrey)}@-webkit-keyframes cozy-ui-bar-spin--3DZqI{from{transform:rotate(0deg)}to{transform:rotate(359deg)}}@keyframes cozy-ui-bar-spin--3DZqI{from{transform:rotate(0deg)}to{transform:rotate(359deg)}}@-webkit-keyframes cozy-ui-bar-shake--1gzL2{10%,90%{transform:translate3d(-1px,0,0)}20%,80%{transform:translate3d(2px,0,0)}30%,50%,70%{transform:translate3d(-4px,0,0)}40%,60%{transform:translate3d(4px,0,0)}}@keyframes cozy-ui-bar-shake--1gzL2{10%,90%{transform:translate3d(-1px,0,0)}20%,80%{transform:translate3d(2px,0,0)}30%,50%,70%{transform:translate3d(-4px,0,0)}40%,60%{transform:translate3d(4px,0,0)}}.cozy-ui-bar-c-spinner--3vDLT{display:inline-block;margin:0 .5rem}.cozy-ui-bar-c-spinner--3vDLT:before{content:''}.cozy-ui-bar-c-spinner--3vDLT p{margin-top:.938rem;line-height:1.5}.cozy-ui-bar-c-spinner--middle--1Nmj_{position:absolute;top:50%;left:50%;transform:translateX(-50%) translateY(-50%);text-align:center}.cozy-ui-bar-c-spinner--middle--1Nmj_:before{display:block;margin:0 auto}.cozy-ui-bar-c-spinner--nomargin--2GQe1{margin:0}","",{version:3,sources:["/home/travis/build/cozy/cozy-bar/node_modules/cozy-ui/react/Spinner/node_modules/cozy-ui/stylus/settings/palette.styl","/home/travis/build/cozy/cozy-bar/node_modules/cozy-ui/react/Spinner/styles.styl","/home/travis/build/cozy/cozy-bar/node_modules/cozy-ui/react/Spinner/node_modules/cozy-ui/stylus/generic/animations.styl","/home/travis/build/cozy/cozy-bar/node_modules/cozy-ui/react/Spinner/node_modules/cozy-ui/react/Spinner/styles.styl"],names:[],mappings:"AAwCA,KAeI,aACA,mBACA,iBACA,mBACA,oBACA,uBACA,aACA,4BAWA,iBACA,qBACA,sBAWA,qBACA,kBACA,oBASA,gBAaA,kBACA,mBACA,kBACA,sBACA,eC3CJ,CD0DA,2CAYI,uBACA,2BACA,4BACA,+BAYA,yBACA,6BACA,8BACA,iCAWA,iCACA,4BACA,iCAYA,2BACA,6BACA,gCACA,kCAaA,mCAYA,uBACA,uBAEA,qBACA,yBACA,0BACA,6BACA,0BAMA,mCAEA,gCACA,0BACA,0CAEA,8DACA,gEACA,6DACA,kDAEA,gDACA,kDACA,mDACA,8DAEA,mCACA,8CACA,2CACA,4CAEA,gCAEA,yBACA,oCACA,uCAEA,oCAEA,gCACA,6BAEA,gCACA,sCACA,wCAEA,uBACA,8CAEA,yBACA,kDAEA,sBACA,2CC3EJ,CCrLA,2CACI,KACI,sBD+LN,CC9LE,GACI,wBDgMN,CACF,CCrMA,mCACI,KACI,sBD+MN,CC9ME,GACI,wBDgNN,CACF,CC/MA,4CACI,QACI,+BD+NN,CC7NE,QACI,8BD+NN,CC7NE,YACI,+BD+NN,CC7NE,QACI,8BD+NN,CACF,CC3OA,oCACI,QACI,+BD2PN,CCzPE,QACI,8BD2PN,CCzPE,YACI,+BD2PN,CCzPE,QACI,8BD2PN,CACF,CErRA,8BACI,qBACA,cFuRJ,CEnRI,qCACI,UFqRR,CEnRI,gCACI,mBACA,eFqRR,CEhRA,sCACI,kBACA,QACA,SACA,4CACA,iBFkRJ,CEhRI,6CACI,cACA,aFkRR,CEhRA,wCACI,QFkRJ,CAAA",file:"styles.styl",sourcesContent:["@require '../tools/mixins'\n\n$errorColor=#F52D2D\n$errorBackground=#FFF2F2\n\n$successColor=#35CE68\n$warningColor=#FF962F\n$infoColor=#34373F\n\n// @stylint off\n/*------------------------------------*\\\n Palette\n =====\n\\*------------------------------------*/\n/*\n Settings\n\n Weight: -10\n\n Styleguide Settings\n*/\n\n/*\n Colors\n\n Colors used in the user interface.\n\n ℹ️ In general, you are advised to use [theme colors](#kssref-settings-theme) when\n building your components: this will ensure your components react correctly when\n changing the theme.\n\n If you need to access an absolute color that is not semantic, you can use\n\n ```\n import palette from 'cozy-ui/transpiled/react/palette'\n <div style={{ backgroundColor: palette.melon }} />\n ```\n\n Styleguide Settings.colors\n*/\nhtml\n /*\n Grey\n\n Stylus: white - #FFFFFF, CSS: var(--white)\n Stylus: paleGrey - #F5F6F7, CSS: var(--paleGrey)\n Stylus: silver - #D6D8Da, CSS: var(--silver)\n Stylus: coolGrey - #95999D, CSS: var(--coolGrey)\n Stylus: slateGrey - #5D6165, CSS: var(--slateGrey)\n Stylus: charcoalGrey - #32363F, CSS: var(--charcoalGrey)\n Stylus: black - #000000, CSS: var(--black)\n\n\n Styleguide Settings.colors.grey\n */\n --white #FFFFFF\n --paleGrey #F5F6F7\n --silver #D6D8Da\n --coolGrey #95999D\n --slateGrey #5D6165\n --charcoalGrey #32363F\n --black #000000\n --overlay rgba(50, 54, 63, .5)\n\n /*\n Blue\n\n Stylus: zircon - #F5FAFF, CSS: var(--zircon)\n Stylus: dodgerBlue - #297EF2, CSS: var(--dodgerBlue)\n Stylus: scienceBlue - #0B61D6, CSS: var(--scienceBlue)\n\n Styleguide Settings.colors.blue\n */\n --zircon #F5FAFF\n --dodgerBlue #297EF2\n --scienceBlue #0B61D6\n\n /*\n Green\n\n Stylus: weirdGreen - #40DE8E, CSS: var(--weirdGreen)\n Stylus: emerald - #35CE68, CSS: var(--emerald)\n Stylus: malachite - #08b442, CSS: var(--malachite)\n\n Styleguide Settings.colors.green\n */\n --weirdGreen #40DE8E\n --emerald #35CE68\n --malachite #08b442\n\n /*\n Orange\n\n Stylus: mango - #FF962F, CSS: var(--mango)\n\n Styleguide Settings.colors.orange\n */\n --mango #FF962F\n\n /*\n Red\n\n Stylus: chablis - #FFF2F2, CSS: var(--chablis)\n Stylus: yourPink - #FDCBCB, CSS: var(--yourPink)\n Stylus: fuchsia - #FC4C83, CSS: var(--fuchsia)\n Stylus: pomegranate - #F52D2D, CSS: var(--pomegranate)\n Stylus: monza - #DD0505, CSS: var(--monza)\n\n Styleguide Settings.colors.red\n */\n --chablis #FFF2F2\n --yourPink #FDCBCB\n --fuchsia #FC4C83\n --pomegranate #F52D2D\n --monza #DD0505\n\n/*\n Theme\n\n Semantic colors suitable for theming. We encourage users of cozy-ui to use semantic colors\n instead of absolute colors to facilitate theming.\n\n We try to use a naming schema that is close to what is use in [Material-UI React's theming](https://material-ui.com/customization/palette/#palette-colors).\n It is possible that we have some discrepancies. If you see something that seems out\n of the ordinary and where you think we could reduce the difference with MUI, please\n do not hesitate to [open an issue](https://github.com/cozy/cozy-ui/issues/new).\n\n Styleguide Settings.theme\n*/\nhtml, .CozyTheme--normal\n /*\n Primary\n\n Stylus: primaryColor - #297EF2, CSS: var(--primaryColor)\n Stylus: primaryColorDark - #0B61D6, CSS: var(--primaryColorDark)\n Stylus: primaryColorLight - #5C9DF5, CSS: var(--primaryColorLight)\n Stylus: primaryColorLightest - #9FC4FB, CSS: var(--primaryColorLightest)\n Stylus: primaryContrastTextColor - #FFFFFF, CSS: var(--primaryContrastTextColor)\n\n Styleguide Settings.theme.primary\n */\n --primaryColor #297EF2\n --primaryColorDark #0B61D6\n --primaryColorLight #5C9DF5\n --primaryColorLightest #9FC4FB\n\n /*\n Secondary\n\n Stylus: secondaryColor - #fd7461, CSS: var(--secondaryColor)\n Stylus: secondaryColorDark - #E3503B, CSS: var(--secondaryColorDark)\n Stylus: secondaryColorLight - #ffdeda, CSS: var(--secondaryColorLight)\n Stylus: secondaryColorLightest - #FECDC6, CSS: var(--secondaryColorLightest)\n\n Styleguide Settings.theme.secondary\n */\n --secondaryColor #fd7461\n --secondaryColorDark #E3503B\n --secondaryColorLight #ffdeda // lighten(dodgerBlue, 24)\n --secondaryColorLightest #FECDC6\n\n /*\n Background colors\n\n Stylus: primaryBackgroundLight - #F5FAFF, CSS: var(--primaryBackgroundLight)\n Stylus: paperBackgroundColor - #FFF, CSS: var(--paperBackgroundColor)\n Stylus: defaultBackgroundColor - #F5F6F7, CSS: var(--defaultBackgroundColor)\n\n Styleguide Settings.theme.background\n */\n --primaryBackgroundLight: #F5FAFF\n --paperBackgroundColor: #FFF\n --defaultBackgroundColor: #F5F6F7 // paleGrey\n\n /*\n Text colors\n\n Stylus: primaryTextColor - #32363F, CSS: var(--primaryTextColor)\n Stylus: secondaryTextColor - #95999D, CSS: var(--secondaryTextColor)\n Stylus: primaryContrastTextColor - #FFF, CSS: var(--primaryContrastTextColor)\n Stylus: secondaryContrastTextColor - #FFF, CSS: var(--secondaryContrastTextColor)\n\n Styleguide Settings.theme.text\n */\n --primaryTextColor #32363F\n --secondaryTextColor #95999D\n --primaryContrastTextColor #FFF\n --secondaryContrastTextColor #FFF\n\n\n /*\n Components colors\n\n Be careful to use the semantic variable, not the hexa color.\n In this case the real color is `#1D212A1F`, and becomes `#E3E4E5` on a white background.\n\n Stylus: dividerColor - #E3E4E5, CSS: var(--dividerColor)\n\n Styleguide Settings.theme.components\n */\n --dividerColor: #1D212A1F // grey[900] with 12% opacity\n\n /*\n Intention colors\n\n Stylus: successColor - #35CE68, CSS: var(--successColor)\n Stylus: warningColor - #FF962F, CSS: var(--warningColor)\n Stylus: errorColor - #F52D2D, CSS: var(--errorColor)\n Stylus: infoColor - #34373F, CSS: var(--infoColor)\n\n Styleguide Settings.theme.intention\n */\n --successColor: $successColor\n --warningColor: $warningColor\n\n --errorColor: $errorColor\n --errorColorDark: darken($errorColor, 24)\n --errorColorLight: lighten($errorColor, 30)\n --errorColorLightest: lighten($errorColor, 38)\n --errorBackground: $errorBackground\n\n /*\n The CSS variables below are historic and we should strive not to\n use them. Prefer to use directly semantic colors above.\n */\n --spinnerColor var(--primaryColor)\n\n --linkColor var(--primaryColor)\n --linkTextDecoration none\n --linkColorActive var(--primaryColorDark)\n\n --invertedTabsActiveTextColor var(--primaryContrastTextColor)\n --invertedTabsInactiveTextColor var(--primaryContrastTextColor)\n --invertedTabsIndicatorColor var(--primaryContrastTextColor)\n --invertedTabsBackgroundColor var(--primaryColor)\n\n --regularButtonPrimaryColor: var(--primaryColor)\n --regularButtonSecondaryColor: var(--primaryColor)\n --regularButtonActiveColor: var(--primaryColorDark)\n --regularButtonConstrastColor: var(--primaryContrastTextColor)\n\n --secondaryButtonPrimaryColor: #FFF\n --secondaryButtonSecondaryColor: var(--silver)\n --secondaryButtonActiveColor: var(--silver)\n --secondaryButtonContrastColor: var(--black)\n\n --dividerColor2: var(--coolGrey)\n\n --iconColor: currentColor\n --textIconColor: var(--charcoalGrey)\n --actionMenuIconColor: var(--slateGrey)\n\n --neutralBackground: var(--paleGrey)\n\n --buttonTextTransform uppercase\n --buttonBorderRadius rem(2)\n\n --navTextColor var(--slateGrey)\n --navTextActiveColor var(--slateGrey)\n --navTextHoverColor var(--charcoalGrey)\n\n --alertErrorColor #fff\n --alertErrorBackgroundColor var(--errorColor)\n\n --alertSuccessColor #fff\n --alertSuccessBackgroundColor var(--successColor)\n\n --alertInfoColor #fff\n --alertInfoBackgroundColor var(--slateGrey)\n// @stylint on\n","html {\n/*\n Grey\n\n Stylus: white - #FFFFFF, CSS: var(--white)\n Stylus: paleGrey - #F5F6F7, CSS: var(--paleGrey)\n Stylus: silver - #D6D8Da, CSS: var(--silver)\n Stylus: coolGrey - #95999D, CSS: var(--coolGrey)\n Stylus: slateGrey - #5D6165, CSS: var(--slateGrey)\n Stylus: charcoalGrey - #32363F, CSS: var(--charcoalGrey)\n Stylus: black - #000000, CSS: var(--black)\n\n\n Styleguide Settings.colors.grey\n */\n --white: #fff;\n --paleGrey: #f5f6f7;\n --silver: #d6d8da;\n --coolGrey: #95999d;\n --slateGrey: #5d6165;\n --charcoalGrey: #32363f;\n --black: #000;\n --overlay: rgba(50,54,63,0.5);\n/*\n Blue\n\n Stylus: zircon - #F5FAFF, CSS: var(--zircon)\n Stylus: dodgerBlue - #297EF2, CSS: var(--dodgerBlue)\n Stylus: scienceBlue - #0B61D6, CSS: var(--scienceBlue)\n\n Styleguide Settings.colors.blue\n */\n --zircon: #f5faff;\n --dodgerBlue: #297ef2;\n --scienceBlue: #0b61d6;\n/*\n Green\n\n Stylus: weirdGreen - #40DE8E, CSS: var(--weirdGreen)\n Stylus: emerald - #35CE68, CSS: var(--emerald)\n Stylus: malachite - #08b442, CSS: var(--malachite)\n\n Styleguide Settings.colors.green\n */\n --weirdGreen: #40de8e;\n --emerald: #35ce68;\n --malachite: #08b442;\n/*\n Orange\n\n Stylus: mango - #FF962F, CSS: var(--mango)\n\n Styleguide Settings.colors.orange\n */\n --mango: #ff962f;\n/*\n Red\n\n Stylus: chablis - #FFF2F2, CSS: var(--chablis)\n Stylus: yourPink - #FDCBCB, CSS: var(--yourPink)\n Stylus: fuchsia - #FC4C83, CSS: var(--fuchsia)\n Stylus: pomegranate - #F52D2D, CSS: var(--pomegranate)\n Stylus: monza - #DD0505, CSS: var(--monza)\n\n Styleguide Settings.colors.red\n */\n --chablis: #fff2f2;\n --yourPink: #fdcbcb;\n --fuchsia: #fc4c83;\n --pomegranate: #f52d2d;\n --monza: #dd0505;\n}\nhtml,\n.CozyTheme--normal {\n/*\n Primary\n\n Stylus: primaryColor - #297EF2, CSS: var(--primaryColor)\n Stylus: primaryColorDark - #0B61D6, CSS: var(--primaryColorDark)\n Stylus: primaryColorLight - #5C9DF5, CSS: var(--primaryColorLight)\n Stylus: primaryColorLightest - #9FC4FB, CSS: var(--primaryColorLightest)\n Stylus: primaryContrastTextColor - #FFFFFF, CSS: var(--primaryContrastTextColor)\n\n Styleguide Settings.theme.primary\n */\n --primaryColor: #297ef2;\n --primaryColorDark: #0b61d6;\n --primaryColorLight: #5c9df5;\n --primaryColorLightest: #9fc4fb;\n/*\n Secondary\n\n Stylus: secondaryColor - #fd7461, CSS: var(--secondaryColor)\n Stylus: secondaryColorDark - #E3503B, CSS: var(--secondaryColorDark)\n Stylus: secondaryColorLight - #ffdeda, CSS: var(--secondaryColorLight)\n Stylus: secondaryColorLightest - #FECDC6, CSS: var(--secondaryColorLightest)\n\n Styleguide Settings.theme.secondary\n */\n --secondaryColor: #fd7461;\n --secondaryColorDark: #e3503b;\n --secondaryColorLight: #ffdeda;\n --secondaryColorLightest: #fecdc6;\n/*\n Background colors\n\n Stylus: primaryBackgroundLight - #F5FAFF, CSS: var(--primaryBackgroundLight)\n Stylus: paperBackgroundColor - #FFF, CSS: var(--paperBackgroundColor)\n Stylus: defaultBackgroundColor - #F5F6F7, CSS: var(--defaultBackgroundColor)\n\n Styleguide Settings.theme.background\n */\n --primaryBackgroundLight: #f5faff;\n --paperBackgroundColor: #fff;\n --defaultBackgroundColor: #f5f6f7;\n/*\n Text colors\n\n Stylus: primaryTextColor - #32363F, CSS: var(--primaryTextColor)\n Stylus: secondaryTextColor - #95999D, CSS: var(--secondaryTextColor)\n Stylus: primaryContrastTextColor - #FFF, CSS: var(--primaryContrastTextColor)\n Stylus: secondaryContrastTextColor - #FFF, CSS: var(--secondaryContrastTextColor)\n\n Styleguide Settings.theme.text\n */\n --primaryTextColor: #32363f;\n --secondaryTextColor: #95999d;\n --primaryContrastTextColor: #fff;\n --secondaryContrastTextColor: #fff;\n/*\n Components colors\n\n Be careful to use the semantic variable, not the hexa color.\n In this case the real color is `#1D212A1F`, and becomes `#E3E4E5` on a white background.\n\n Stylus: dividerColor - #E3E4E5, CSS: var(--dividerColor)\n\n Styleguide Settings.theme.components\n */\n --dividerColor: rgba(29,33,42,0.122);\n/*\n Intention colors\n\n Stylus: successColor - #35CE68, CSS: var(--successColor)\n Stylus: warningColor - #FF962F, CSS: var(--warningColor)\n Stylus: errorColor - #F52D2D, CSS: var(--errorColor)\n Stylus: infoColor - #34373F, CSS: var(--infoColor)\n\n Styleguide Settings.theme.intention\n */\n --successColor: #35ce68;\n --warningColor: #ff962f;\n --errorColor: #f52d2d;\n --errorColorDark: #a00808;\n --errorColorLight: #fcbfbf;\n --errorColorLightest: #fee6e6;\n --errorBackground: #fff2f2;\n/*\n The CSS variables below are historic and we should strive not to\n use them. Prefer to use directly semantic colors above.\n */\n --spinnerColor: var(--primaryColor);\n --linkColor: var(--primaryColor);\n --linkTextDecoration: none;\n --linkColorActive: var(--primaryColorDark);\n --invertedTabsActiveTextColor: var(--primaryContrastTextColor);\n --invertedTabsInactiveTextColor: var(--primaryContrastTextColor);\n --invertedTabsIndicatorColor: var(--primaryContrastTextColor);\n --invertedTabsBackgroundColor: var(--primaryColor);\n --regularButtonPrimaryColor: var(--primaryColor);\n --regularButtonSecondaryColor: var(--primaryColor);\n --regularButtonActiveColor: var(--primaryColorDark);\n --regularButtonConstrastColor: var(--primaryContrastTextColor);\n --secondaryButtonPrimaryColor: #fff;\n --secondaryButtonSecondaryColor: var(--silver);\n --secondaryButtonActiveColor: var(--silver);\n --secondaryButtonContrastColor: var(--black);\n --dividerColor2: var(--coolGrey);\n --iconColor: currentColor;\n --textIconColor: var(--charcoalGrey);\n --actionMenuIconColor: var(--slateGrey);\n --neutralBackground: var(--paleGrey);\n --buttonTextTransform: uppercase;\n --buttonBorderRadius: 0.125rem;\n --navTextColor: var(--slateGrey);\n --navTextActiveColor: var(--slateGrey);\n --navTextHoverColor: var(--charcoalGrey);\n --alertErrorColor: #fff;\n --alertErrorBackgroundColor: var(--errorColor);\n --alertSuccessColor: #fff;\n --alertSuccessBackgroundColor: var(--successColor);\n --alertInfoColor: #fff;\n --alertInfoBackgroundColor: var(--slateGrey);\n}\n@-moz-keyframes spin {\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(359deg);\n }\n}\n@-webkit-keyframes spin {\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(359deg);\n }\n}\n@-o-keyframes spin {\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(359deg);\n }\n}\n@keyframes spin {\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(359deg);\n }\n}\n@-moz-keyframes shake {\n 10%, 90% {\n transform: translate3d(-1px, 0, 0);\n }\n 20%, 80% {\n transform: translate3d(2px, 0, 0);\n }\n 30%, 50%, 70% {\n transform: translate3d(-4px, 0, 0);\n }\n 40%, 60% {\n transform: translate3d(4px, 0, 0);\n }\n}\n@-webkit-keyframes shake {\n 10%, 90% {\n transform: translate3d(-1px, 0, 0);\n }\n 20%, 80% {\n transform: translate3d(2px, 0, 0);\n }\n 30%, 50%, 70% {\n transform: translate3d(-4px, 0, 0);\n }\n 40%, 60% {\n transform: translate3d(4px, 0, 0);\n }\n}\n@-o-keyframes shake {\n 10%, 90% {\n transform: translate3d(-1px, 0, 0);\n }\n 20%, 80% {\n transform: translate3d(2px, 0, 0);\n }\n 30%, 50%, 70% {\n transform: translate3d(-4px, 0, 0);\n }\n 40%, 60% {\n transform: translate3d(4px, 0, 0);\n }\n}\n@keyframes shake {\n 10%, 90% {\n transform: translate3d(-1px, 0, 0);\n }\n 20%, 80% {\n transform: translate3d(2px, 0, 0);\n }\n 30%, 50%, 70% {\n transform: translate3d(-4px, 0, 0);\n }\n 40%, 60% {\n transform: translate3d(4px, 0, 0);\n }\n}\n.c-spinner {\n display: inline-block;\n margin: 0 0.5rem;\n}\n.c-spinner:before {\n content: '';\n}\n.c-spinner p {\n margin-top: 0.938rem;\n line-height: 1.5;\n}\n.c-spinner--middle {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translateX(-50%) translateY(-50%);\n text-align: center;\n}\n.c-spinner--middle:before {\n display: block;\n margin: 0 auto;\n}\n.c-spinner--nomargin {\n margin: 0;\n}\n","/*------------------------------------*\\\n Animations\n\\*------------------------------------*/\n/*\n Animations\n\n Available animations:\n\n spin - Animates an element by rotating it endlessly by 360 deg (used by the loading spinner)\n\n Styleguide Generic.animation\n*/\n@keyframes spin\n from\n transform rotate(0deg)\n to\n transform rotate(359deg)\n \n@keyframes shake\n 10%, 90%\n transform translate3d(-1px, 0, 0)\n \n 20%, 80%\n transform translate3d(2px, 0, 0)\n\n 30%, 50%, 70%\n transform translate3d(-4px, 0, 0)\n\n 40%, 60%\n transform translate3d(4px, 0, 0)\n\n$transition-transform-ease-out\n transition transform .1s ease-out\n\n$spin-anim\n // arguments' order is important: the animation name must stay first\n // so that scoping works\n animation spin 1s linear infinite\n\n@media (prefers-reduced-motion: reduce)\n $transition-transform-ease-out\n transition none\n $spin-anim\n animation none","@require '../../stylus/settings/palette'\n@require '../../stylus/settings/icons'\n@require '../../stylus/tools/mixins'\n\n.c-spinner\n display inline-block\n margin 0 rem(8)\n\n\n\n &:before\n content ''\n\n p\n margin-top rem(15)\n line-height 1.5\n\n// === Modifiers ===\n\n// Box-model\n.c-spinner--middle\n position absolute\n top 50%\n left 50%\n transform translateX(-50%) translateY(-50%)\n text-align center\n\n &:before\n display block\n margin 0 auto\n\n.c-spinner--nomargin\n margin 0\n"],sourceRoot:""}]),t.locals={"CozyTheme--normal":"cozy-ui-bar-CozyTheme--normal--1OuNS","c-spinner":"cozy-ui-bar-c-spinner--3vDLT","c-spinner--middle":"cozy-ui-bar-c-spinner--middle--1Nmj_","c-spinner--nomargin":"cozy-ui-bar-c-spinner--nomargin--2GQe1",spin:"cozy-ui-bar-spin--3DZqI",shake:"cozy-ui-bar-shake--1gzL2"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isWebApp=t.isMobileApp=t.isMobile=t.isIOSApp=t.isIOS=t.isFlagshipApp=t.isAndroidApp=t.isAndroid=t.getPlatform=void 0;var r=n(103),o=function(){return(0,r.isCordova)()?window.cordova.platformId:"web"};t.getPlatform=o;var i=function(e){return o()===e};t.isIOSApp=function(){return i("ios")};t.isAndroidApp=function(){return i("android")};t.isWebApp=function(){return i("web")};t.isMobileApp=function(){return(0,r.isCordova)()};var a=function(){return window.navigator.userAgent&&window.navigator.userAgent.indexOf("Android")>=0};t.isAndroid=a;var u=function(){return window.navigator.userAgent&&/iPad|iPhone|iPod/.test(window.navigator.userAgent)};t.isIOS=u;t.isMobile=function(){return a()||u()};t.isFlagshipApp=function(){var e;return null===(e=window.cozy)||void 0===e?void 0:e.isFlagshipApp}},function(e,t,n){var r=n(64),o=n(43),i=n(26),a=n(82),u=r?r.prototype:void 0,c=u?u.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(a(t))return c?c.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},function(e,t){var n=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return n.test(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasSafariPlugin=t.hasNetworkInformationPlugin=t.hasInAppBrowserPlugin=t.hasDevicePlugin=void 0;var r=n(103);t.hasDevicePlugin=function(){return(0,r.isCordova)()&&void 0!==window.device};t.hasInAppBrowserPlugin=function(){return(0,r.isCordova)()&&void 0!==window.cordova.InAppBrowser};t.hasSafariPlugin=function(){return new Promise((function(e){(0,r.isCordova)()&&void 0!==window.SafariViewController?window.SafariViewController.isAvailable((function(t){return e(t)})):e(!1)}))};t.hasNetworkInformationPlugin=function(){return(0,r.isCordova)()&&void 0!==window.navigator.connection}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.removeQueryString=t.buildRedirectionURL=t.pickService=t.errorSerializer=void 0;var r,o=(r=function(e,t){var n=Object.assign(t,e);return["name","message"].reduce((function(n,r){return e[r]&&(t[r]=e[r]),n}),n)},{serialize:function(e){return r(e,{})},deserialize:function(e){return r(e,new Error(e.message))}});t.errorSerializer=o;t.pickService=function(e,t){var n=e.attributes.services||[],r=t?n.find(t):n[0];if(!r)throw new Error("Unable to find a service");return r};t.buildRedirectionURL=function(e,t){var n=Object.keys(t).filter((function(e){return n=t[e],!["object","function"].includes(typeof n);var n})).map((function(e){return"".concat(e,"=").concat(t[e])}));return n.length?"".concat(e,"?").concat(n.join("&")):e};t.removeQueryString=function(e){return e.replace(/\?[^/#]*/,"")}},function(e,t,n){var r=n(212);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}},function(e,t,n){var r=n(43),o=n(53),i=n(230),a=n(163);e.exports=function(e,t){if(null==e)return{};var n=r(a(e),(function(e){return[e]}));return t=o(t),i(e,n,(function(e,n){return t(e,n[0])}))}},function(e,t,n){var r=n(54)(n(39),"Map");e.exports=r},function(e,t,n){var r=n(52),o=n(34);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},function(e,t,n){var r=n(384),o=n(391),i=n(393),a=n(394),u=n(395);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=u,e.exports=c},function(e,t,n){var r=n(396),o=n(40);e.exports=function e(t,n,i,a,u){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!=t&&n!=n:r(t,n,i,a,e,u))}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},function(e,t,n){var r=n(219),o=n(220),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,u=a?function(e){return null==e?[]:(e=Object(e),r(a(e),(function(t){return i.call(e,t)})))}:o;e.exports=u},function(e,t){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},function(e,t,n){(function(e){var r=n(207),o=t&&!t.nodeType&&t,i=o&&"object"==typeof e&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.process,u=function(){try{var e=i&&i.require&&i.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=u}).call(this,n(112)(e))},function(e,t,n){var r=n(115),o=n(406),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},function(e,t,n){var r=n(26),o=n(82),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!o(e))||(a.test(e)||!i.test(e)||null!=t&&e in Object(t))}},function(e,t){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},function(e,t,n){var r=n(69),o=n(84),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];i.call(e,t)&&o(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},function(e,t,n){var r=n(218),o=n(233),i=n(117);e.exports=function(e){return r(e,i,o)}},function(e,t,n){var r=n(223)(Object.getPrototypeOf,Object);e.exports=r},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,r)}e.exports=n},function(e,t,n){"use strict";var r,o,i=Function.prototype.toString,a="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof a&&"function"==typeof Object.defineProperty)try{r=Object.defineProperty({},"length",{get:function(){throw o}}),o={}}catch(e){a=null}else a=null;var u=/^\s*class\b/,c=function(e){try{var t=i.call(e);return u.test(t)}catch(e){return!1}},s=Object.prototype.toString,l="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;e.exports=a?function(e){if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if("function"==typeof e&&!e.prototype)return!0;try{a(e,null,r)}catch(e){if(e!==o)return!1}return!c(e)}:function(e){if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if("function"==typeof e&&!e.prototype)return!0;if(l)return function(e){try{return!c(e)&&(i.call(e),!0)}catch(e){return!1}}(e);if(c(e))return!1;var t=s.call(e);return"[object Function]"===t||"[object GeneratorFunction]"===t}},function(e,t,n){"use strict";var r=n(89);e.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},function(e,t,n){"use strict";(function(t){var r=t.Symbol,o=n(448);e.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&o())))}}).call(this,n(33))},function(e,t,n){var r=n(461);e.exports=function(e){return r(e,{weekStartsOn:1})}},function(e,t,n){var r=n(248),o=n(85);e.exports=function(e,t){return e&&r(e,t,o)}},function(e,t,n){var r=n(122);e.exports=function(e){return(null==e?0:e.length)?r(e,1):[]}},function(e,t,n){var r=n(109),o=n(173),i=n(174),a=n(110),u=n(478),c=n(155);e.exports=function(e,t,n){var s=-1,l=o,f=e.length,d=!0,p=[],h=p;if(n)d=!1,l=i;else if(f>=200){var m=t?null:u(e);if(m)return c(m);d=!1,l=a,h=new r}else h=t?[]:p;e:for(;++s<f;){var y=e[s],v=t?t(y):y;if(y=n||0!==y?y:0,d&&v==v){for(var g=h.length;g--;)if(h[g]===v)continue e;t&&h.push(v),p.push(y)}else l(h,v,n)||(h!==p&&h.push(v),p.push(y))}return p}},function(e,t,n){var r=n(249);e.exports=function(e,t){return!!(null==e?0:e.length)&&r(e,t,0)>-1}},function(e,t){e.exports=function(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}},function(e,t,n){var r=n(170),o=n(484)(r);e.exports=o},function(e,t,n){var r=n(216);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},function(e,t,n){var r=n(34),o=Object.create,i=function(){function e(){}return function(t){if(!r(t))return{};if(o)return o(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=i},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.registryEndpoint=t.transformRegistryFormatToStackFormat=void 0;var o=r(n(7)),i=r(n(9)),a=r(n(4)),u=r(n(6)),c=r(n(2)),s=r(n(18));n(500);var l=r(n(501)),f=n(502);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}t.transformRegistryFormatToStackFormat=function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){(0,c.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({id:(0,s.default)(e,"latest_version.manifest.source"),attributes:(0,s.default)(e,"latest_version.manifest")},e)};t.registryEndpoint="/registry/";var p=function(e){var t=e.type,n=t===f.APP_TYPE.KONNECTOR||"node"===t?"konnectors":"apps";return"/".concat(n)},h=function(){function e(t){if((0,a.default)(this,e),!t.client)throw new Error("Need to pass a client to instantiate a Registry API.");this.client=t.client}var t,n,r;return(0,u.default)(e,[{key:"installApp",value:(r=(0,i.default)(o.default.mark((function e(t,n){var r,i,a,u,c,s,f;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.slug,i=t.terms,a={},(u=t.installed)&&(a.PermissionsAcked=u),n&&(a.Source=n),o=void 0,o=new URLSearchParams(a).toString(),c=o?"?".concat(o):"",!i){e.next=9;break}return e.next=9,l.default.save(this.client,i);case 9:return s=t.installed?"PUT":"POST",f=p(t),e.abrupt("return",this.client.stackClient.fetchJSON(s,"".concat(f,"/").concat(r).concat(c)));case 12:case"end":return e.stop()}var o}),e,this)}))),function(e,t){return r.apply(this,arguments)})},{key:"uninstallApp",value:(n=(0,i.default)(o.default.mark((function e(t){var n,r;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.slug,r=p(t),e.abrupt("return",this.client.stackClient.fetchJSON("DELETE","".concat(r,"/").concat(n)));case 3:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"fetchApps",value:(t=(0,i.default)(o.default.mark((function e(t){var n,r,i,a,u,c;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.channel,r=t.type,i=t.limit,a=new URLSearchParams({limit:void 0===i?"200":i,versionsChannel:n,latestChannelVersion:n}).toString(),r&&(a+="&filter[type]=".concat(r)),e.next=6,this.client.stackClient.fetchJSON("GET","/registry?".concat(a));case 6:return u=e.sent,c=u.data,e.abrupt("return",c);case 9:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"fetchAppsInMaintenance",value:function(){return this.client.stackClient.fetchJSON("GET","/registry/maintenance")}},{key:"fetchApp",value:function(e){return this.client.stackClient.fetchJSON("GET","/registry/".concat(e))}},{key:"fetchAppVersion",value:function(e){if(!e.slug)throw new Error("Need to pass a slug to use fetchAppVersion");var t=e.slug,n=e.channel,r=e.version,o=n||r&&"latest"!==r?n:"stable",i="/registry/".concat(t,"/");return i+=o?"".concat(o,"/").concat(r||"latest"):"".concat(r),this.client.stackClient.fetchJSON("GET",i)}}]),e}();t.default=h},function(e,t,n){var r=n(52),o=n(164),i=n(40),a=Function.prototype,u=Object.prototype,c=a.toString,s=u.hasOwnProperty,l=c.call(Object);e.exports=function(e){if(!i(e)||"[object Object]"!=r(e))return!1;var t=o(e);if(null===t)return!0;var n=s.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==l}},function(e,t,n){var r=n(171),o=n(251),i=n(253);e.exports=function(e){return i(o(e,void 0,r),e+"")}},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,o=Array.isArray,i=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),a=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)void 0!==e[r]&&(n[r]=e[r]);return n};e.exports={arrayToObject:a,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var i=t[r],a=i.obj[i.prop],u=Object.keys(a),c=0;c<u.length;++c){var s=u[c],l=a[s];"object"==typeof l&&null!==l&&-1===n.indexOf(l)&&(t.push({obj:a,prop:s}),n.push(l))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(o(n)){for(var r=[],i=0;i<n.length;++i)void 0!==n[i]&&r.push(n[i]);t.obj[t.prop]=r}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(e){return r}},encode:function(e,t,n){if(0===e.length)return e;var r=e;if("symbol"==typeof e?r=Symbol.prototype.toString.call(e):"string"!=typeof e&&(r=String(e)),"iso-8859-1"===n)return escape(r).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var o="",a=0;a<r.length;++a){var u=r.charCodeAt(a);45===u||46===u||95===u||126===u||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122?o+=r.charAt(a):u<128?o+=i[u]:u<2048?o+=i[192|u>>6]+i[128|63&u]:u<55296||u>=57344?o+=i[224|u>>12]+i[128|u>>6&63]+i[128|63&u]:(a+=1,u=65536+((1023&u)<<10|1023&r.charCodeAt(a)),o+=i[240|u>>18]+i[128|u>>12&63]+i[128|u>>6&63]+i[128|63&u])}return o},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(o(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)},merge:function e(t,n,i){if(!n)return t;if("object"!=typeof n){if(o(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(i&&(i.plainObjects||i.allowPrototypes)||!r.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var u=t;return o(t)&&!o(n)&&(u=a(t,i)),o(t)&&o(n)?(n.forEach((function(n,o){if(r.call(t,o)){var a=t[o];a&&"object"==typeof a&&n&&"object"==typeof n?t[o]=e(a,n,i):t.push(n)}else t[o]=n})),t):Object.keys(n).reduce((function(t,o){var a=n[o];return r.call(t,o)?t[o]=e(t[o],a,i):t[o]=a,t}),u)}}},function(e,t,n){var r=n(154);e.exports=function(e,t){return r(e,t)}},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.buildURL=t.encode=void 0;var o=r(n(19)),i=r(n(150)),a=function(e){return Object.entries(e).map((function(e){var t=(0,o.default)(e,2),n=t[0],r=function e(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return Array.isArray(t)?"["+t.map((function(t){return e(t,!0)})).join(",")+"]":n?encodeURIComponent('"'.concat(t,'"')):encodeURIComponent(t)}(t[1]);return"".concat(n,"=").concat(r)})).join("&")};t.encode=a;t.buildURL=function(e,t){var n=a((0,i.default)(t));return n?"".concat(e,"?").concat(n):e}},function(e,t,n){"use strict";var r=n(20),o=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.isDirectory=t.isFile=void 0;var i=o(n(17)),a=o(n(46)),u=o(n(7)),c=o(n(9)),s=o(n(4)),l=o(n(6)),f=o(n(11)),d=o(n(8)),p=o(n(10)),h=o(n(5)),m=o(n(2)),y=o(n(520)),v=o(n(269)),g=o(n(18)),b=o(n(76)),w=o(n(185)),x=(n(267),r(n(30))),C=n(44),k=(n(58),n(72)),S=n(270),_=r(n(183));function A(){var e=(0,a.default)(["/files/_changes"]);return A=function(){return e},e}function O(){var e=(0,a.default)(["/data/","/","/relationships/not_synchronizing"]);return O=function(){return e},e}function E(){var e=(0,a.default)(["/data/","/","/relationships/not_synchronizing"]);return E=function(){return e},e}function B(){var e=(0,a.default)(["/data/","/","/relationships/not_synchronizing"]);return B=function(){return e},e}function j(){var e=(0,a.default)(["/files/","/versions"]);return j=function(){return e},e}function P(){var e=(0,a.default)(["/files/upload/metadata"]);return P=function(){return e},e}function T(){var e=(0,a.default)(["/files/",""]);return T=function(){return e},e}function z(){var e=(0,a.default)(["/files/","?Name=","&Type=directory"]);return z=function(){return e},e}function I(){var e=(0,a.default)(["/files/metadata?Path=",""]);return I=function(){return e},e}function D(){var e=(0,a.default)(["/files/",""]);return D=function(){return e},e}function R(){var e=(0,a.default)(["/files/downloads?Path=",""]);return R=function(){return e},e}function F(){var e=(0,a.default)(["/files/downloads?VersionId=","&Filename=",""]);return F=function(){return e},e}function M(){var e=(0,a.default)(["/files/downloads?Id=","&Filename=",""]);return M=function(){return e},e}function N(){var e=(0,a.default)(["/files/","?Name=","&Type=file&Executable=",""]);return N=function(){return e},e}function L(){var e=(0,a.default)(["/files/","?Name=","&Type=file&Executable=","&MetadataID=","&Size=",""]);return L=function(){return e},e}function U(){var e=(0,a.default)(["/files/",""]);return U=function(){return e},e}function $(){var e=(0,a.default)(["/files/trash/",""]);return $=function(){return e},e}function G(){var e=(0,a.default)(["/files/",""]);return G=function(){return e},e}function q(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return J(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return J(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function J(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function H(){var e=(0,a.default)(["/data/","/","/relationships/references"]);return H=function(){return e},e}function W(){var e=(0,a.default)(["/data/","/","/relationships/references"]);return W=function(){return e},e}function Q(){var e=(0,a.default)(["/files/","/relationships/referenced_by"]);return Q=function(){return e},e}function V(){var e=(0,a.default)(["/files/","/relationships/referenced_by"]);return V=function(){return e},e}function Y(){var e=(0,a.default)(["/data/","/","/relationships/references"]);return Y=function(){return e},e}function K(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,h.default)(e);if(t){var o=(0,h.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,p.default)(this,n)}}function Z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function X(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Z(Object(n),!0).forEach((function(t){(0,m.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Z(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ee=function(e){return X(X({},(0,x.normalizeDoc)(e,"io.cozy.files")),e.attributes)},te=function(e){return e?e.map((function(e){return{_type:e.type,_id:e.id}})):[]},ne=function(e){return e&&e.trim()},re=function(e){var t=ne(e);if("string"!=typeof t||""===t)throw new Error("Missing name argument");if("."===e||".."===e)throw new Error("Invalid filename: ".concat(e));var n=(0,S.getIllegalCharacters)(t);if(n.length)throw new Error("Invalid filename containing illegal character(s): ".concat(n));return t};t.isFile=function(e){var t=e._type,n=e.type;return"io.cozy.files"===t||"directory"===n||"file"===n};t.isDirectory=function(e){return"directory"===e.type};var oe=function(e,t){return new Promise((function(n){e.forEach((function(e){return e.then((function(e){t(e)&&n(!0)}))})),Promise.all(e).then((function(){return n(!1)}))}))},ie=function(e){(0,d.default)(Ee,e);var t,n,r,o,a,p,h,x,S,J,Z,ie,ae,ue,ce,se,le,fe,de,pe,he,me,ye,ve,ge,be,we,xe,Ce,ke,Se,_e,Ae,Oe=K(Ee);function Ee(e,t){var n;return(0,s.default)(this,Ee),n=Oe.call(this,e,t),(0,m.default)((0,f.default)(n),"extractResponseLinkRelated",(function(e){var t=e.links&&e.links.related;if(!t)throw new Error("No related link in server response");return n.stackClient.fullpath(t)})),(0,m.default)((0,f.default)(n),"forceFileDownload",(function(e,t){var n=document.createElement("a");n.setAttribute("href",e),n.setAttribute("download",t),n.style.display="none",document.body.appendChild(n),n.click(),document.body.removeChild(n)})),n.specialDirectories={},n}return(0,l.default)(Ee,[{key:"get",value:function(e){return this.statById(e)}},{key:"fetchFindFiles",value:(Ae=(0,c.default)(u.default.mark((function e(t,n){return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.stackClient.fetchJSON("POST","/files/_find",this.toMangoOptions(t,n)));case 1:case"end":return e.stop()}}),e,this)}))),function(e,t){return Ae.apply(this,arguments)})},{key:"find",value:(_e=(0,c.default)(u.default.mark((function e(t){var n,r,o,i,a,c,s,l,f=arguments;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=f.length>1&&void 0!==f[1]?f[1]:{},r=n.skip,o=void 0===r?0:r,e.prev=2,a="/files/_find",e.next=6,this.findWithMango(a,t,n);case 6:i=e.sent,e.next=12;break;case 9:return e.prev=9,e.t0=e.catch(2),e.abrupt("return",(0,k.dontThrowNotFoundError)(e.t0));case 12:return c=(0,g.default)(i,"links.next",""),s=new URL("".concat(this.stackClient.uri).concat(c)),l=s.searchParams.get("page[cursor]"),e.abrupt("return",{data:i.data.map((function(e){return ee(e)})),meta:i.meta,next:i.meta.count>o+i.data.length,skip:o,bookmark:l||void 0,execution_stats:i.meta.execution_stats});case 16:case"end":return e.stop()}}),e,this,[[2,9]])}))),function(e){return _e.apply(this,arguments)})},{key:"findReferencedBy",value:(Se=(0,c.default)(u.default.mark((function e(t){var n,r,o,i,a,c,s,l,f,d=arguments;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=d.length>1&&void 0!==d[1]?d[1]:{},r=n.skip,o=void 0===r?0:r,i=n.limit,a=n.cursor,c={include:"files","page[limit]":i,"page[cursor]":a,sort:"datetime"},s=(0,C.uri)(Y(),t._type,t._id),l=_.buildURL(s,c),e.next=6,this.stackClient.fetchJSON("GET",l);case 6:return f=e.sent,e.abrupt("return",{data:te(f.data),included:f.included?f.included.map((function(e){return ee(e)})):[],next:(0,v.default)(f,"links.next"),meta:f.meta,skip:o});case 8:case"end":return e.stop()}}),e,this)}))),function(e){return Se.apply(this,arguments)})},{key:"addReferencedBy",value:(ke=(0,c.default)(u.default.mark((function e(t,n){var r,o;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.map((function(e){return{id:e._id,type:e._type}})),e.next=3,this.stackClient.fetchJSON("POST",(0,C.uri)(V(),t._id),{data:r});case 3:return o=e.sent,e.abrupt("return",{data:te(o.data),meta:o.meta});case 5:case"end":return e.stop()}}),e,this)}))),function(e,t){return ke.apply(this,arguments)})},{key:"removeReferencedBy",value:(Ce=(0,c.default)(u.default.mark((function e(t,n){var r,o;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.map((function(e){return{id:e._id,type:e._type}})),e.next=3,this.stackClient.fetchJSON("DELETE",(0,C.uri)(Q(),t._id),{data:r});case 3:return o=e.sent,e.abrupt("return",{data:te(o.data),meta:o.meta});case 5:case"end":return e.stop()}}),e,this)}))),function(e,t){return Ce.apply(this,arguments)})},{key:"addReferencesTo",value:(xe=(0,c.default)(u.default.mark((function e(t,n){var r;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.map((function(e){return{id:e._id,type:"io.cozy.files"}})),e.abrupt("return",this.stackClient.fetchJSON("POST",(0,C.uri)(W(),t._type,t._id),{data:r}));case 2:case"end":return e.stop()}}),e,this)}))),function(e,t){return xe.apply(this,arguments)})},{key:"removeReferencesTo",value:(we=(0,c.default)(u.default.mark((function e(t,n){var r;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.map((function(e){return{id:e._id,type:"io.cozy.files"}})),e.abrupt("return",this.stackClient.fetchJSON("DELETE",(0,C.uri)(H(),t._type,t._id),{data:r}));case 2:case"end":return e.stop()}}),e,this)}))),function(e,t){return we.apply(this,arguments)})},{key:"destroy",value:(be=(0,c.default)(u.default.mark((function e(t){var n,r,o,i,a,c,s,l,f,d=arguments;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=d.length>1&&void 0!==d[1]?d[1]:{},r=n.ifMatch,o=void 0===r?"":r,i=t._id,!((a=t.relationships)&&a.referenced_by&&Array.isArray(a.referenced_by.data))){e.next=20;break}c=q(a.referenced_by.data),e.prev=4,c.s();case 6:if((s=c.n()).done){e.next=12;break}return l=s.value,e.next=10,this.removeReferencesTo({_id:l.id,_type:l.type},[{_id:i}]);case 10:e.next=6;break;case 12:e.next=17;break;case 14:e.prev=14,e.t0=e.catch(4),c.e(e.t0);case 17:return e.prev=17,c.f(),e.finish(17);case 20:return e.next=22,this.stackClient.fetchJSON("DELETE",(0,C.uri)(G(),i),void 0,{headers:{"If-Match":o}});case 22:return f=e.sent,e.abrupt("return",{data:ee(f.data)});case 24:case"end":return e.stop()}}),e,this,[[4,14,17,20]])}))),function(e){return be.apply(this,arguments)})},{key:"emptyTrash",value:function(){return this.stackClient.fetchJSON("DELETE","/files/trash")}},{key:"restore",value:function(e){return this.stackClient.fetchJSON("POST",(0,C.uri)($(),e))}},{key:"deleteFilePermanently",value:(ge=(0,c.default)(u.default.mark((function e(t){var n;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.stackClient.fetchJSON("PATCH",(0,C.uri)(U(),t),{data:{type:"io.cozy.files",id:t,attributes:{permanent_delete:!0}}});case 2:return n=e.sent,e.abrupt("return",n.data);case 4:case"end":return e.stop()}}),e,this)}))),function(e){return ge.apply(this,arguments)})},{key:"upload",value:(ve=(0,c.default)(u.default.mark((function e(t,n){var r;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.ensureDirectoryExists(n);case 2:return r=e.sent,e.abrupt("return",this.createFile(t,{dirId:r}));case 4:case"end":return e.stop()}}),e,this)}))),function(e,t){return ve.apply(this,arguments)})},{key:"create",value:(ye=(0,c.default)(u.default.mark((function e(t){var n,r;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("directory"!==t.type){e.next=4;break}return e.abrupt("return",this.createDirectory(t));case 4:return n=t.data,r=(0,i.default)(t,["data"]),e.abrupt("return",this.createFile(n,r));case 6:case"end":return e.stop()}}),e,this)}))),function(e){return ye.apply(this,arguments)})},{key:"update",value:(me=(0,c.default)(u.default.mark((function e(t){return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.updateAttributes(t.id,t));case 1:case"end":return e.stop()}}),e,this)}))),function(e){return me.apply(this,arguments)})},{key:"createFile",value:(he=(0,c.default)(u.default.mark((function e(t){var n,r,o,a,c,s,l,f,d,p,h,m,y,v=arguments;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=v.length>1&&void 0!==v[1]?v[1]:{},r=n.name,o=n.dirId,a=void 0===o?"":o,c=n.executable,s=n.metadata,l=(0,i.default)(n,["name","dirId","executable","metadata"]),d=c,(f=r)||"string"!=typeof t.name||(f=t.name),f=re(f),void 0===d&&(d=!1),p="",!s){e.next=13;break}return e.next=11,this.createFileMetadata(s);case 11:h=e.sent,p=h.data.id;case 13:return m="",l.contentLength&&(m=String(l.contentLength)),y=(0,C.uri)(L(),a,f,d,p,m),e.abrupt("return",this.doUpload(t,y,l));case 17:case"end":return e.stop()}}),e,this)}))),function(e){return he.apply(this,arguments)})},{key:"updateFile",value:(pe=(0,c.default)(u.default.mark((function e(t){var n,r,o,a,c,s,l,f,d,p,h,m,y,v,g=arguments;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=g.length>1&&void 0!==g[1]?g[1]:{},r=n.executable,o=void 0!==r&&r,a=n.fileId,c=n.name,s=void 0===c?"":c,l=n.metadata,f=(0,i.default)(n,["executable","fileId","name","metadata"]),a&&"string"==typeof a){e.next=4;break}throw new Error("missing fileId argument");case 4:if((d=s||t.name)&&"string"==typeof d){e.next=7;break}throw new Error("missing name in data argument");case 7:if(p=re(d),m=(0,C.uri)(N(),a,p,o),!l){e.next=15;break}return e.next=12,this.createFileMetadata(l);case 12:y=e.sent,h=y.data.id,m+="&MetadataID=".concat(h);case 15:return v="",f.contentLength&&(v=String(f.contentLength),m+="&Size=".concat(v)),e.abrupt("return",this.doUpload(t,m,f,"PUT"));case 18:case"end":return e.stop()}}),e,this)}))),function(e){return pe.apply(this,arguments)})},{key:"getDownloadLinkById",value:function(e,t){return this.stackClient.fetchJSON("POST",(0,C.uri)(M(),e,t)).then(this.extractResponseLinkRelated)}},{key:"getDownloadLinkByRevision",value:function(e,t){return this.stackClient.fetchJSON("POST",(0,C.uri)(F(),e,t)).then(this.extractResponseLinkRelated)}},{key:"getDownloadLinkByPath",value:function(e){return this.stackClient.fetchJSON("POST",(0,C.uri)(R(),e)).then(this.extractResponseLinkRelated)}},{key:"download",value:(de=(0,c.default)(u.default.mark((function e(t){var n,r,o,i,a=arguments;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=a.length>1&&void 0!==a[1]?a[1]:null,r=a.length>2&&void 0!==a[2]?a[2]:void 0,i=r||t.name,n){e.next=9;break}return e.next=6,this.getDownloadLinkById(t._id,i);case 6:o=e.sent,e.next=12;break;case 9:return e.next=11,this.getDownloadLinkByRevision(n,i);case 11:o=e.sent;case 12:this.forceFileDownload("".concat(o,"?Dl=1"),i);case 13:case"end":return e.stop()}}),e,this)}))),function(e){return de.apply(this,arguments)})},{key:"fetchFileContent",value:(fe=(0,c.default)(u.default.mark((function e(t){return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.warn("FileCollection.fetchFileContent() is deprecated. Use FileCollection.fetchFileContentById() instead"),e.abrupt("return",this.fetchFileContentById(t));case 2:case"end":return e.stop()}}),e,this)}))),function(e){return fe.apply(this,arguments)})},{key:"fetchFileContentById",value:(le=(0,c.default)(u.default.mark((function e(t){return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.stackClient.fetch("GET","/files/download/".concat(t)));case 1:case"end":return e.stop()}}),e,this)}))),function(e){return le.apply(this,arguments)})},{key:"getBeautifulSize",value:function(e,t){return(0,C.formatBytes)(parseInt(e.size),t)}},{key:"downloadArchive",value:(se=(0,c.default)(u.default.mark((function e(t){var n,r,o,i,a=arguments;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=a.length>1&&void 0!==a[1]?a[1]:"files",r=(0,C.slugify)(n),e.next=4,this.getArchiveLinkByIds(t,r);case 4:o=e.sent,i=this.stackClient.fullpath(o),this.forceFileDownload(i,r+".zip");case 7:case"end":return e.stop()}}),e,this)}))),function(e){return se.apply(this,arguments)})},{key:"getArchiveLinkByIds",value:(ce=(0,c.default)(u.default.mark((function e(t){var n,r,o=arguments;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=o.length>1&&void 0!==o[1]?o[1]:"files",e.next=3,this.stackClient.fetchJSON("POST","/files/archive",{data:{type:"io.cozy.archives",attributes:{name:n,ids:t}}});case 3:return r=e.sent,e.abrupt("return",r.links.related);case 5:case"end":return e.stop()}}),e,this)}))),function(e){return ce.apply(this,arguments)})},{key:"isChildOf",value:(ue=(0,c.default)(u.default.mark((function e(t,n){var r,o,i,a,c,s,l,f,d,p=this;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=(r="object"==typeof t?t:{_id:t})._id,i=r.dirID,a=r.path,c=("object"==typeof n?n:{_id:n})._id,o!==c&&i!==c){e.next=4;break}return e.abrupt("return",!0);case 4:if(a){e.next=10;break}return e.next=7,this.statById(o);case 7:s=e.sent,a=s.data.path,i=s.data.dirID;case 10:for(l=a,f=[a];""!=l;)h=void 0,h=(u=l).lastIndexOf("/"),""!=(d=u.substring(0,h))&&f.push(d),l=d;return f.reverse(),e.abrupt("return",oe(f.map((function(e){return p.statByPath(e)})),(function(e){return e.data._id==c})));case 15:case"end":return e.stop()}var u,h}),e,this)}))),function(e,t){return ue.apply(this,arguments)})},{key:"statById",value:(ae=(0,c.default)(u.default.mark((function e(t){var n,r,o,i,a,c=arguments;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=c.length>1&&void 0!==c[1]?c[1]:{},r=(0,w.default)(n,["page[limit]","page[skip]","page[cursor]"]),o=(0,C.uri)(D(),t),i=_.buildURL(o,r),e.next=6,this.stackClient.fetchJSON("GET",i);case 6:return a=e.sent,e.abrupt("return",{data:ee(a.data),included:a.included&&a.included.map((function(e){return ee(e)})),links:a.links});case 8:case"end":return e.stop()}}),e,this)}))),function(e){return ae.apply(this,arguments)})},{key:"statByPath",value:(ie=(0,c.default)(u.default.mark((function e(t){var n;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.stackClient.fetchJSON("GET",(0,C.uri)(I(),t));case 2:return n=e.sent,e.abrupt("return",{data:ee(n.data),included:n.included&&n.included.map((function(e){return ee(e)}))});case 4:case"end":return e.stop()}}),e,this)}))),function(e){return ie.apply(this,arguments)})},{key:"createDirectory",value:(Z=(0,c.default)(u.default.mark((function e(){var t,n,r,o,i,a,c,s=arguments;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=s.length>0&&void 0!==s[0]?s[0]:{},n=t.name,r=t.dirId,o=t.lastModifiedDate,i=re(n),a=o&&("string"==typeof o?new Date(o):o),e.next=6,this.stackClient.fetchJSON("POST",(0,C.uri)(z(),r,i),void 0,{headers:{Date:a?a.toGMTString():""}});case 6:return c=e.sent,e.abrupt("return",{data:ee(c.data)});case 8:case"end":return e.stop()}}),e,this)}))),function(){return Z.apply(this,arguments)})},{key:"ensureDirectoryExists",value:(J=(0,c.default)(u.default.mark((function e(t){var n;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.specialDirectories[t]){e.next=5;break}return e.next=3,this.createDirectoryByPath(t);case 3:n=e.sent,this.specialDirectories[t]=n.data._id;case 5:return e.abrupt("return",this.specialDirectories[t]);case 6:case"end":return e.stop()}}),e,this)}))),function(e){return J.apply(this,arguments)})},{key:"getDirectoryOrCreate",value:(S=(0,c.default)(u.default.mark((function e(t,n){var r,o,i,a,c;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!n||n.attributes){e.next=2;break}throw new Error("Malformed parent directory");case 2:return r=ne(t),o="".concat("io.cozy.files.root-dir"===n._id?"":n.attributes.path,"/").concat(r),e.prev=4,e.next=7,this.statByPath(o||"/");case 7:return i=e.sent,e.abrupt("return",i);case 11:if(e.prev=11,e.t0=e.catch(4),a=JSON.parse(e.t0.message),!(c=a.errors)||!c.length||"404"!==c[0].status){e.next=17;break}return e.abrupt("return",this.createDirectory({name:r,dirId:n&&n._id}));case 17:throw c;case 18:case"end":return e.stop()}}),e,this,[[4,11]])}))),function(e,t){return S.apply(this,arguments)})},{key:"createDirectoryByPath",value:(x=(0,c.default)(u.default.mark((function e(t){var n,r,o,i,a,c;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.split("/").filter((function(e){return""!==e})),e.next=3,this.statById("io.cozy.files.root-dir");case 3:if(r=e.sent,n.length){e.next=6;break}return e.abrupt("return",r);case 6:o=r,i=q(n),e.prev=8,i.s();case 10:if((a=i.n()).done){e.next=17;break}return c=a.value,e.next=14,this.getDirectoryOrCreate(c,o.data);case 14:o=e.sent;case 15:e.next=10;break;case 17:e.next=22;break;case 19:e.prev=19,e.t0=e.catch(8),i.e(e.t0);case 22:return e.prev=22,i.f(),e.finish(22);case 25:return e.abrupt("return",o);case 26:case"end":return e.stop()}}),e,this,[[8,19,22,25]])}))),function(e){return x.apply(this,arguments)})},{key:"updateAttributes",value:(h=(0,c.default)(u.default.mark((function e(t,n){var r,o;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=X({},n),n.name&&(r.name=re(n.name)),e.next=4,this.stackClient.fetchJSON("PATCH",(0,C.uri)(T(),t),{data:{type:"io.cozy.files",id:t,attributes:r}});case 4:return o=e.sent,e.abrupt("return",{data:ee(o.data)});case 6:case"end":return e.stop()}}),e,this)}))),function(e,t){return h.apply(this,arguments)})},{key:"updateFileMetadata",value:(p=(0,c.default)(u.default.mark((function e(t,n){return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.warn("CozyClient FileCollection updateFileMetadata method is deprecated. Use updateAttributes instead"),e.abrupt("return",this.updateAttributes(t,n));case 2:case"end":return e.stop()}}),e,this)}))),function(e,t){return p.apply(this,arguments)})},{key:"createFileMetadata",value:(a=(0,c.default)(u.default.mark((function e(t){var n;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.stackClient.fetchJSON("POST",(0,C.uri)(P()),{data:{type:"io.cozy.files.metadata",attributes:t}});case 2:return n=e.sent,e.abrupt("return",{data:n.data});case 4:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"updateMetadataAttribute",value:(o=(0,c.default)(u.default.mark((function e(t,n){var r;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.stackClient.fetchJSON("POST",(0,C.uri)(j(),t),{data:{type:"io.cozy.files.metadata",attributes:n}});case 2:return r=e.sent,e.abrupt("return",{data:r.data});case 4:case"end":return e.stop()}}),e,this)}))),function(e,t){return o.apply(this,arguments)})},{key:"getFileTypeFromName",value:function(e){return y.default.getType(e)||"application/octet-stream"}},{key:"doUpload",value:(r=(0,c.default)(u.default.mark((function e(t,n,r){var o,i,a,c,s,l,f,d,p,h,m,y,v,g,b,w,x,C,k=arguments;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=k.length>3&&void 0!==k[3]?k[3]:"POST",i=t){e.next=4;break}throw new Error("missing data argument");case 4:if(i.buffer&&i.buffer instanceof ArrayBuffer&&(i=i.buffer),a="undefined"!=typeof ArrayBuffer&&i instanceof ArrayBuffer,c="undefined"!=typeof File&&i instanceof File,s="undefined"!=typeof Blob&&i instanceof Blob,l=!0===i.readable&&"function"==typeof i.pipe,f="string"==typeof i,a||c||s||l||f){e.next=12;break}throw new Error("invalid data type");case 12:return p=(d=r||{}).contentType,h=d.contentLength,m=d.checksum,y=d.lastModifiedDate,v=d.ifMatch,p||("string"==typeof i?p="text/plain":i.type?p=i.type:(g=n.split("?"),b=g.length>1?g[1]:"",w=new URLSearchParams(b).get("Name"),p=this.getFileTypeFromName(w.toLowerCase()))),(y=y||i.lastModified)&&(y=new Date(y)),x={"Content-Type":p},h&&(x["Content-Length"]=String(h)),m&&(x["Content-MD5"]=m),y&&(x.Date=y.toGMTString()),v&&(x["If-Match"]=v),e.next=23,this.stackClient.fetchJSON(o,n,i,{headers:x,onUploadProgress:r.onUploadProgress});case 23:return C=e.sent,e.abrupt("return",{data:ee(C.data)});case 25:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return r.apply(this,arguments)})},{key:"findNotSynchronizedDirectories",value:(n=(0,c.default)(u.default.mark((function e(t){var n,r,o,i,a,c,s,l,f,d,p=arguments;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=p.length>1&&void 0!==p[1]?p[1]:{},r=n.skip,o=void 0===r?0:r,i=n.limit,a=n.cursor,c=n.includeFiles,s={include:void 0!==c&&c?"files":void 0,"page[limit]":i,"page[cursor]":a,sort:"id"},l=(0,C.uri)(B(),t._type,t._id),f=_.buildURL(l,s),e.next=6,this.stackClient.fetchJSON("GET",f);case 6:return d=e.sent,e.abrupt("return",{data:d.data.map((function(e){return ee(e)})),included:d.included?d.included.map((function(e){return ee(e)})):[],next:(0,v.default)(d,"links.next"),meta:d.meta,skip:o});case 8:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"addNotSynchronizedDirectories",value:function(e,t){var n=t.map((function(e){return{id:e._id,type:e._type}}));return this.stackClient.fetchJSON("POST",(0,C.uri)(E(),e._type,e._id),{data:n})}},{key:"removeNotSynchronizedDirectories",value:function(e,t){var n=t.map((function(e){return{id:e._id,type:e._type}}));return this.stackClient.fetchJSON("DELETE",(0,C.uri)(O(),e._type,e._id),{data:n})}},{key:"fetchChanges",value:(t=(0,c.default)(u.default.mark((function e(){var t,n,r,o,i,a,c,s,l,f,d=arguments;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=d.length>0&&void 0!==d[0]?d[0]:{},n=d.length>1&&void 0!==d[1]?d[1]:{},r={},"object"!=typeof t?(r.since=t,console.warn('fetchChanges use couchOptions as Object not a string, since is deprecated, please use fetchChanges({since: "'.concat(t,'"}).'))):Object.keys(t).length>0&&Object.assign(r,t),Object.keys(n).length>0&&(Object.assign(r,n),(n.skipTrashed||n.includeFilePath)&&(r.includeDocs=!0)),o=X(X({},(0,b.default)(r,["fields","includeDocs","includeFilePath","skipDeleted","skipTrashed"])),{},{fields:r.fields?r.fields.join(","):null,include_docs:r.includeDocs,include_file_path:r.includeFilePath,skip_deleted:r.skipDeleted,skip_trashed:r.skipTrashed}),i=(0,C.uri)(A()),a=_.buildURL(i,o),e.next=10,this.stackClient.fetchJSON("GET",a);case 10:return c=e.sent,s=c.last_seq,l=c.pending,f=c.results,e.abrupt("return",{newLastSeq:s,pending:l,results:f});case 15:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})}]),Ee}(x.default);t.default=ie},function(e,t,n){var r=n(524),o=n(180)((function(e,t){return null==e?{}:r(e,t)}));e.exports=o},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.chain=t.default=void 0;var o=r(n(31)),i=r(n(4)),a=r(n(6)),u=function(){function e(t){(0,i.default)(this,e),"function"==typeof t&&(this.request=t)}return(0,a.default)(e,[{key:"request",value:function(e,t,n){throw new Error("request is not implemented")}}]),e}();t.default=u;var c=function(e){return"function"==typeof e?new u(e):e},s=function(e,t){if(t)return t;if(e.execute)return e.execute();throw new Error("No link could handle operation ".concat(JSON.stringify(e)))};t.chain=function(e){return[].concat((0,o.default)(e),[s]).map(c).reduce(l)};var l=function(e,t){return new u((function(n,r,o){return e.request(n,r,(function(e,n){return t.request(e,n,o)}))}))}},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(204)),i=(0,o.default)("cozy-client");o.default.suggest.deny("cozy-client","info");var a=i;t.default=a},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.QueryIDGenerator=t.getQueryFromSlice=t.receiveQueryError=t.receiveQueryResult=t.loadQuery=t.initQuery=t.default=t.makeSorterFromDefinition=t.mergeSelectorAndPartialIndex=t.convert$gtNullSelectors=t.isReceivingData=t.isQueryAction=void 0;var o=r(n(4)),i=r(n(6)),a=r(n(19)),u=r(n(2)),c=r(n(31)),s=r(n(75)),l=r(n(282)),f=r(n(550)),d=r(n(283)),p=r(n(552)),h=r(n(179)),m=r(n(125)),y=r(n(553)),v=r(n(26)),g=r(n(189)),b=r(n(18)),w=r(n(558)),x=r(n(559)),C=n(278),k=n(190),S=n(287),_=n(21);n(22);function A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function O(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?A(Object(n),!0).forEach((function(t){(0,u.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var E="INIT_QUERY",B="LOAD_QUERY",j="RECEIVE_QUERY_RESULT",P="RECEIVE_QUERY_ERROR",T=(0,x.default)("debug"),z=function(e){return-1!==[E,B,j,P].indexOf(e.type)};t.isQueryAction=z;t.isReceivingData=function(e){return e.type===j};var I={id:null,definition:null,fetchStatus:"pending",lastFetch:null,lastUpdate:null,lastErrorUpdate:null,lastError:null,hasMore:!1,count:0,data:[],bookmark:null},D=function(e,t,n){var r=(0,m.default)([].concat((0,c.default)(e.data),(0,c.default)(t.data.map(S.properId))));if(e.definition.sort){var o=U(e.definition),i=n[e.definition.doctype],a=i?r.map((function(e){return i[e]})).filter(Boolean):[];r=o(a).map(S.properId)}return r},R=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:I,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;switch(t.type){case E:return e.lastUpdate&&e.id===t.queryId&&e.definition===t.queryDefinition?e:O(O({},e),{},{id:t.queryId,definition:t.queryDefinition,options:t.options,fetchStatus:e.lastUpdate?e.fetchStatus:"pending"});case B:return"loading"===e.fetchStatus?e:O(O({},e),{},{fetchStatus:"loading"});case j:var r=t.response;if(!r.data)return e;var o=O({fetchStatus:"loaded",lastFetch:Date.now(),lastUpdate:Date.now()},T&&{execution_stats:r.execution_stats});return Array.isArray(r.data)?O(O(O({},e),o),{},{bookmark:r.bookmark||null,hasMore:void 0!==r.next?r.next:e.hasMore,count:r.meta&&r.meta.count?r.meta.count:r.data.length,data:D(e,r,n)}):O(O(O({},e),o),{},{hasMore:!1,count:1,data:[(0,S.properId)(r.data)]});case P:return O(O({},e),{},{id:t.queryId,fetchStatus:"failed",lastError:t.error,lastErrorUpdate:Date.now()});default:return e}},F=function e(t){for(var n={},r=0,o=Object.entries(t);r<o.length;r++){var i=(0,a.default)(o[r],2),u=i[0],c=i[1],s=(0,h.default)(c)?e(c):c;n["$gt"===u&&null===s?"$gtnull":u]=s}return n};t.convert$gtNullSelectors=F;var M=function(e){return O(O({},e.selector),(0,b.default)(e,"partialFilter"))};t.mergeSelectorAndPartialIndex=M;var N=function(e){var t=e.definition.doctype,n=function(e){if(e.selector){var t=M(e);return w.default.use({$gtnull:function(e,t){return!!t}}),(0,w.default)(F(t))}if(e.id){var n={_id:e.id};return(0,w.default)(n)}if(e.ids){var r={_id:{$in:e.ids}};return(0,w.default)(r)}return null}(e.definition);return function(e){return e._type===t&&(!e._deleted&&(!n||!!n(e)))}},L=function(e){return function(t){var n=(0,b.default)(t,e);return(0,g.default)(n)?n.toLowerCase():n}},U=function(e){var t=e.sort;if(t){if((0,v.default)(e.sort)){var n=t.map((function(e){return Object.entries(e)[0]})),r=n.map((function(e){return e[0]})).map(L),o=n.map((function(e){return e[1]}));return function(e){return(0,y.default)(e,r,o)}}return console.warn("Correct update of queries with a sort that is not an array is not supported. Use an array as argument of QueryDefinition::sort"),function(e){return e}}return function(e){return e}};t.makeSorterFromDefinition=U;var $=function(e,t){return function(n){var r=(0,b.default)(e,"response.data")||(0,b.default)(e,"definition.document");return r?(Array.isArray(r)||(r=[r]),r.length?n.definition.doctype!==r[0]._type?n:function(e,t,n){var r=N(e),o=(0,s.default)((0,l.default)(t,r),(function(e){return e.map(S.properId)})),i=o.true,a=void 0===i?[]:i,u=o.false,c=void 0===u?[]:u,h=e.data,m=e.options&&e.options.autoUpdate,y=!m||!1!==m.remove,v=!m||!1!==m.add,g=!m||!1!==m.update,b=y?(0,d.default)(h,c):[],w=v?(0,f.default)(a,h):[],x=g?(0,d.default)(h,a):[],C=b.length||w.length||x.length,k=(0,f.default)((0,p.default)(h,w),b);if(e.definition.sort&&n){var _=U(e.definition),A=n[e.definition.doctype],E=k.map((function(e){return A[e]}));k=_(E).map(S.properId)}return O(O({},e),{},{data:k,count:k.length,lastUpdate:C?Date.now():e.lastUpdate})}(n,r,t):n):n}},G=function(e,t){return function(n){var r=e.updateQueries,o=e.response,i=r[n.id];if(!i)return n;var a=n.definition.doctype,u=n.data,c=i(J(t,a,u),o).map(S.properId);return O(O({},n),{},{data:c,count:c.length,lastUpdate:Date.now()})}},q=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(t.type==E){var o=R(e[t.queryId],t,n);return o===e[t.queryId]?e:O(O({},e),{},(0,u.default)({},t.queryId,o))}if(z(t)){var i=$(t,n);return(0,s.default)(e,(function(e){return e.id==t.queryId?R(e,t,n):r?i(e):e}))}if((0,k.isReceivingMutationResult)(t)){var a=t.updateQueries?G(t,n):$(t,n);return(0,s.default)(e,a)}return e};t.default=q;t.initQuery=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!t.doctype)throw new Error("Cannot init query with no doctype");return{type:E,queryId:e,queryDefinition:t,options:n}};t.loadQuery=function(e){return{type:B,queryId:e}};t.receiveQueryResult=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return O({type:j,queryId:e,response:t},n)};t.receiveQueryError=function(e,t){return{type:P,queryId:e,error:t}};var J=function(e,t,n){return n.map((function(n){return(0,C.getDocumentFromSlice)(e,t,n)}))};t.getQueryFromSlice=function(e,t,n){if(!e||!e[t])return O(O({},I),{},{id:t,data:null});var r=e[t];return n?O(O({},r),{},{data:J(n,r.definition.doctype,r.data)}):r};var H=function(){function e(){(0,o.default)(this,e),this.idCounter=1}return(0,i.default)(e,[{key:"generateRandomId",value:function(){var e=this.idCounter;return this.idCounter++,e.toString()}},{key:"generateId",value:function(e){if((0,_.isAGetByIdQuery)(e)){var t=e.id,n=e.doctype;return"".concat(n,"/").concat(t)}return this.generateRandomId()}}]),e}();t.QueryIDGenerator=H,H.UNNAMED="unnamed"},function(e,t,n){var r=n(52),o=n(26),i=n(40);e.exports=function(e){return"string"==typeof e||!o(e)&&i(e)&&"[object String]"==r(e)}},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.receiveMutationError=t.receiveMutationResult=t.initMutation=t.isReceivingMutationResult=t.isMutationAction=void 0;var o=r(n(2));function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var u="INIT_MUTATION",c="RECEIVE_MUTATION_RESULT",s="RECEIVE_MUTATION_ERROR";t.isMutationAction=function(e){return-1!==[u,c,s].indexOf(e.type)};t.isReceivingMutationResult=function(e){return e.type===c};t.initMutation=function(e,t){return{type:u,mutationId:e,definition:t}};t.receiveMutationResult=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return a(a({type:c,mutationId:e,response:t},n),{},{definition:r})};t.receiveMutationError=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return{type:s,mutationId:e,error:t,definition:n}}},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.getReferencedById=t.getReferencedBy=t.isReferencedById=t.isReferencedBy=t.create=t.resolveClass=t.attachRelationships=t.responseToRelationship=t.pickTypeAndId=void 0;var o=r(n(2)),i=r(n(185)),a=r(n(150)),u=r(n(61)),c=r(n(291)),s=r(n(292)),l=r(n(98)),f=r(n(293)),d=r(n(277));n(22);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var m=function(e){return(0,i.default)(e,"_type","_id")};t.pickTypeAndId=m;t.responseToRelationship=function(e){return(0,a.default)({data:(t=m,n=e.data,Array.isArray(n)?n.map(t):t(n)),meta:e.meta,next:e.next,skip:e.skip,bookmark:e.bookmark});var t,n};var y=function(e,t){return h(h({},e),{},{relationships:h(h({},e.relationships),t)})};t.attachRelationships=function(e,t){if(Array.isArray(e.data))return h(h({},e),{},{data:e.data.map((function(e){return y(e,t[e._id])}))});var n=e.data;return h(h({},e),{},{data:y(n,t[n._id])})};var v={"io.cozy.files:has-many":d.default,"has-many":l.default,"belongs-to-in-place":s.default,"has-one":c.default,"has-one-in-place":s.default,"has-many-in-place":f.default};t.resolveClass=function(e,t){if(void 0===t)throw new Error("Undefined type for "+e);if("string"!=typeof t)return t;var n="".concat(e,":").concat(t),r=v[n]||v[t];if(r)return r;throw new Error("Unknown association '".concat(t,"'"))};t.create=function(e,t,n){var r=t.name,o=t.type,i=t.doctype;if(e[r]instanceof u.default)throw new Error("Association ".concat(r," already exists"));return new o(e,r,i,n)};t.isReferencedBy=function(e,t){var n,r;return((null==e||null===(n=e.relationships)||void 0===n||null===(r=n.referenced_by)||void 0===r?void 0:r.data)||(null==e?void 0:e.referenced_by)||[]).some((function(e){return e.type===t}))};t.isReferencedById=function(e,t,n){var r,o;return((null==e||null===(r=e.relationships)||void 0===r||null===(o=r.referenced_by)||void 0===o?void 0:o.data)||(null==e?void 0:e.referenced_by)||[]).some((function(e){return e.type===t&&e.id===n}))};t.getReferencedBy=function(e,t){var n,r;return((null==e||null===(n=e.relationships)||void 0===n||null===(r=n.referenced_by)||void 0===r?void 0:r.data)||(null==e?void 0:e.referenced_by)||[]).filter((function(e){return e.type===t}))};t.getReferencedById=function(e,t,n){var r,o;return((null==e||null===(r=e.relationships)||void 0===r||null===(o=r.referenced_by)||void 0===o?void 0:o.data)||(null==e?void 0:e.referenced_by)||[]).filter((function(e){return e.type===t&&e.id===n}))}},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.rootCozyUrl=t.InvalidCozyUrlError=t.InvalidProtocolError=t.generateWebLink=t.dehydrate=void 0;var o=r(n(31)),i=r(n(246)),a=r(n(7)),u=r(n(9)),c=r(n(4)),s=r(n(8)),l=r(n(10)),f=r(n(5)),d=r(n(35)),p=r(n(19)),h=n(126);function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,f.default)(e);if(t){var o=(0,f.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,l.default)(this,n)}}function y(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return v(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return v(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}t.dehydrate=function(e){return Object.entries(e).reduce((function(e,t){var n=(0,p.default)(t,2),r=n[0],o=n[1],i=e;if(o instanceof h.Association){if(!o.dehydrate)throw new Error("Association on key ".concat(r," should have a dehydrate method"));i=o.dehydrate(i)}else i[r]=o;return i}),{})};t.generateWebLink=function(e){var t,n=e.cozyUrl,r=e.searchParams,o=e.pathname,i=e.hash,a=e.slug,u=e.subDomainType,c=r||[],s=new URL(n);s.host="nested"===u?"".concat(a,".").concat(s.host):s.host.split(".").map((function(e,t){return 0===t?e+"-"+a:e})).join("."),s.pathname=o,s.hash=(t=i)?t.startsWith("/")?t:"/"+t:"/";var l,f=y(c);try{for(f.s();!(l=f.n()).done;){var d=(0,p.default)(l.value,2),h=d[0],m=d[1];s.searchParams.set(h,m)}}catch(e){f.e(e)}finally{f.f()}return s.toString()};var g=function(e){(0,s.default)(n,e);var t=m(n);function n(e){var r;return(0,c.default)(this,n),(r=t.call(this,"Invalid URL protocol ".concat(e.protocol))).url=e,r}return n}((0,d.default)(Error));t.InvalidProtocolError=g;var b=function(e){(0,s.default)(n,e);var t=m(n);function n(e){var r;return(0,c.default)(this,n),(r=t.call(this,"URL ".concat(e.toString()," does not seem to be a valid Cozy URL"))).url=e,r}return n}((0,d.default)(Error));t.InvalidCozyUrlError=b;var w=function(e){var t=e.protocol,n=e.hostname,r=e.port;return(""!==t?"".concat(t,"//"):"https://")+n+(""!==r?":".concat(r):"")},x=function(e){return w(e)+"/.well-known/change-password"},C=function(){var e=(0,u.default)(a.default.mark((function e(t){var n,r;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(x(t));case 2:if(n=e.sent,404!==(r=n.status)){e.next=6;break}throw new b(t);case 6:return e.abrupt("return",200===r);case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),k=function(){var e=(0,u.default)(a.default.mark((function e(t){var n,r,u,c,s,l;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(["http:","https:"].includes(t.protocol)){e.next=2;break}throw new g(t);case 2:return e.next=4,C(t);case 4:if(!e.sent){e.next=6;break}return e.abrupt("return",t);case 6:if(!/^[^.-][^.]+-[^.-]+\./.test(t.hostname)){e.next=13;break}return n=t.hostname.split("."),r=(0,i.default)(n),u=r[0],c=r.slice(1),s=[u.replace(/-.+/,"")].concat((0,o.default)(c)).join("."),e.next=11,C({protocol:t.protocol,hostname:s,port:t.port});case 11:if(!e.sent){e.next=13;break}return e.abrupt("return",new URL(w({protocol:t.protocol,hostname:s,port:t.port})));case 13:return l=t.hostname.split(".").splice(1).join("."),e.next=16,C({protocol:t.protocol,hostname:l,port:t.port});case 16:if(!e.sent){e.next=18;break}return e.abrupt("return",new URL(w({protocol:t.protocol,hostname:l,port:t.port})));case 18:throw new b(t);case 19:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();t.rootCozyUrl=k},function(e,t,n){var r=n(177),o=n(194);function i(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}i.prototype=r(o.prototype),i.prototype.constructor=i,e.exports=i},function(e,t){e.exports=function(){}},function(e,t,n){var r=n(177),o=n(194);function i(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}i.prototype=r(o.prototype),i.prototype.constructor=i,e.exports=i},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.clientContext=void 0;var o=n(0),i=(r(n(41)),(0,o.createContext)({client:null,store:null}));t.clientContext=i;var a=i;t.default=a},function(e,t,n){"use strict";var r=n(20),o=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.getQualification=t.setQualification=t.Qualification=void 0;var i=o(n(2)),a=o(n(4)),u=o(n(6)),c=n(605),s=r(n(606));function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){(0,i.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var d=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,a.default)(this,e);var r=s.qualifications.find((function(e){return e.label===t}));if(!r)throw new Error("No qualification found for the label ".concat(t));this.label=r.label,this.purpose=n.purpose||r.purpose,this.sourceCategory=n.sourceCategory||r.sourceCategory,this.sourceSubCategory=n.sourceSubCategory||r.sourceSubCategory,this.subjects=n.subjects||r.subjects}return(0,u.default)(e,[{key:"checkAttributes",value:function(e){if(this.purpose!==e.purpose){if(this.purpose)throw new Error("The purpose for the label ".concat(this.label," should be ").concat(this.purpose,". ")+"Please use this or open an issue on https://github.com/cozy/cozy-client/issues");s.purposeKnownValues.includes(e.purpose)||console.info("This purpose is not listed among the known values: ".concat(e.purpose,". ")+"Please open an issue on https://github.com/cozy/cozy-client/issues")}if(this.sourceCategory!==e.sourceCategory){if(this.sourceCategory)throw new Error("The sourceCategory for the label ".concat(this.label," should be ").concat(this.sourceCategory,". ")+"Please use this or open an issue on https://github.com/cozy/cozy-client/issues");s.sourceCategoryKnownValues.includes(e.sourceCategory)||console.info("This sourceCategory is not listed among the known values: ".concat(e.sourceCategory,". ")+"Please open an issue on https://github.com/cozy/cozy-client/issues")}if(this.sourceSubCategory!==e.sourceSubCategory){if(this.sourceSubCategory)throw new Error("The sourceSubCategory for the label ".concat(this.label," should be ").concat(this.sourceSubCategory,". ")+"Please use this or open an issue on https://github.com/cozy/cozy-client/issues");s.sourceSubCategoryKnownValues.includes(e.sourceSubCategory)||console.info("This sourceSubCategory is not listed among the known values: ".concat(e.sourceSubCategory,". ")+"Please open an issue on https://github.com/cozy/cozy-client/issues")}if((0,c.difference)(this.subjects,e.subjects).length>0)throw new Error("The subjects for the label ".concat(this.label," should include ").concat(this.subjects,". ")+"Please use this or open an issue on https://github.com/cozy/cozy-client/issues");var t=(0,c.difference)(e.subjects,this.subjects);if(t.length>0){var n=(0,c.difference)(t,s.subjectsKnownValues);n.length>0&&console.info("These subjects are not listed among the known values: ".concat(n,". ")+"Please open an issue on https://github.com/cozy/cozy-client/issues")}}},{key:"setPurpose",value:function(t){return new e(this.label,f(f({},this.toQualification()),{},{purpose:t}))}},{key:"setSourceCategory",value:function(t){return new e(this.label,f(f({},this.toQualification()),{},{sourceCategory:t}))}},{key:"setSourceSubCategory",value:function(t){return new e(this.label,f(f({},this.toQualification()),{},{sourceSubCategory:t}))}},{key:"setSubjects",value:function(t){return new e(this.label,f(f({},this.toQualification()),{},{subjects:t}))}},{key:"toQualification",value:function(){return{label:this.label,purpose:this.purpose,sourceCategory:this.sourceCategory,sourceSubCategory:this.sourceSubCategory,subjects:this.subjects}}}]),e}();t.Qualification=d,d.getByLabel=function(e){return new d(e)};t.setQualification=function(e,t){if(!t.label)throw new Error("You must set a label to qualify");return new d(t.label).checkAttributes(t),(0,c.set)(e,"metadata.qualification",t)};t.getQualification=function(e){var t=(0,c.get)(e,"metadata.qualification");return new d(t.label,t.qualification).toQualification()}},function(e,t,n){"use strict";var r=n(623);e.exports=function(e){return"symbol"==typeof e?"Symbol":"bigint"==typeof e?"BigInt":r(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(e===t)return!1;var o=Object.keys(e),i=Object.keys(t);if(o.length!==i.length)return!0;var a={},u=void 0,c=void 0;for(u=0,c=n.length;u<c;u++)a[n[u]]=!0;for(u=0,c=o.length;u<c;u++){var s=o[u],l=e[s],f=t[s];if(l!==f){if(!a[s]||null===l||null===f||"object"!==(void 0===l?"undefined":r(l))||"object"!==(void 0===f?"undefined":r(f)))return!0;var d=Object.keys(l),p=Object.keys(f);if(d.length!==p.length)return!0;for(var h=0,m=d.length;h<m;h++){var y=d[h];if(l[y]!==f[y])return!0}}}return!1}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r="";if(!t)return r;var o=n.indent,u=void 0===o?0:o,c=t.fallbacks;if(u++,c)if(Array.isArray(c))for(var s=0;s<c.length;s++){var l=c[s];for(var f in l){var d=l[f];null!=d&&(r+="\n"+a(f+": "+(0,i.default)(d)+";",u))}}else for(var p in c){var h=c[p];null!=h&&(r+="\n"+a(p+": "+(0,i.default)(h)+";",u))}for(var m in t){var y=t[m];null!=y&&"fallbacks"!==m&&(r+="\n"+a(m+": "+(0,i.default)(y)+";",u))}return r||n.allowEmpty?(u--,r=a(e+" {"+r+"\n",u)+a("}",u)):r};var r,o=n(130),i=(r=o)&&r.__esModule?r:{default:r};function a(e,t){for(var n="",r=0;r<t;r++)n+=" ";return n+e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(322),i=(r=o)&&r.__esModule?r:{default:r};t.default=new i.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(132);var i="",a="";if(((r=o)&&r.__esModule?r:{default:r}).default){var u={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},c=document.createElement("p").style;for(var s in u)if(s+"Transform"in c){i=s,a=u[s];break}}t.default={js:i,css:a}},function(e,t,n){"use strict";function r(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(o){return"function"==typeof o?o(n,r,e):t(o)}}}}n.r(t);var o=r();o.withExtraArgument=r,t.default=o},function(e,t,n){var r=n(542),o=r.enable,i=r.disable,a="undefined"!=typeof navigator&&/chrome/i.test(navigator.userAgent),u=n(544);if(r.defaultBackend=a?u.minilog:u,"undefined"!=typeof window){try{r.enable(JSON.parse(window.localStorage.minilogSettings))}catch(e){}if(window.location&&window.location.search){var c=RegExp("[?&]minilog=([^&]*)").exec(window.location.search);c&&r.enable(decodeURIComponent(c[1]))}}r.enable=function(){o.call(r,!0);try{window.localStorage.minilogSettings=JSON.stringify(!0)}catch(e){}return this},r.disable=function(){i.call(r);try{delete window.localStorage.minilogSettings}catch(e){}return this},(e.exports=r).backends={array:n(547),browser:r.defaultBackend,localStorage:n(548),jQuery:n(549)}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}n.r(t),n.d(t,"__DO_NOT_USE__ActionTypes",(function(){return s})),n.d(t,"applyMiddleware",(function(){return y})),n.d(t,"bindActionCreators",(function(){return h})),n.d(t,"combineReducers",(function(){return d})),n.d(t,"compose",(function(){return m})),n.d(t,"createStore",(function(){return f}));var u="function"==typeof Symbol&&Symbol.observable||"@@observable",c=function(){return Math.random().toString(36).substring(7).split("").join(".")},s={INIT:"@@redux/INIT"+c(),REPLACE:"@@redux/REPLACE"+c(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+c()}};function l(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function f(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(a(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(a(1));return n(f)(e,t)}if("function"!=typeof e)throw new Error(a(2));var o=e,i=t,c=[],d=c,p=!1;function h(){d===c&&(d=c.slice())}function m(){if(p)throw new Error(a(3));return i}function y(e){if("function"!=typeof e)throw new Error(a(4));if(p)throw new Error(a(5));var t=!0;return h(),d.push(e),function(){if(t){if(p)throw new Error(a(6));t=!1,h();var n=d.indexOf(e);d.splice(n,1),c=null}}}function v(e){if(!l(e))throw new Error(a(7));if(void 0===e.type)throw new Error(a(8));if(p)throw new Error(a(9));try{p=!0,i=o(i,e)}finally{p=!1}for(var t=c=d,n=0;n<t.length;n++){(0,t[n])()}return e}function g(e){if("function"!=typeof e)throw new Error(a(10));o=e,v({type:s.REPLACE})}function b(){var e,t=y;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(a(11));function n(){e.next&&e.next(m())}return n(),{unsubscribe:t(n)}}})[u]=function(){return this},e}return v({type:s.INIT}),(r={dispatch:v,subscribe:y,getState:m,replaceReducer:g})[u]=b,r}function d(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var o=t[r];0,"function"==typeof e[o]&&(n[o]=e[o])}var i,u=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if(void 0===n(void 0,{type:s.INIT}))throw new Error(a(12));if(void 0===n(void 0,{type:s.PROBE_UNKNOWN_ACTION()}))throw new Error(a(13))}))}(n)}catch(e){i=e}return function(e,t){if(void 0===e&&(e={}),i)throw i;for(var r=!1,o={},c=0;c<u.length;c++){var s=u[c],l=n[s],f=e[s],d=l(f,t);if(void 0===d){t&&t.type;throw new Error(a(14))}o[s]=d,r=r||d!==f}return(r=r||u.length!==Object.keys(e).length)?o:e}}function p(e,t){return function(){return t(e.apply(this,arguments))}}function h(e,t){if("function"==typeof e)return p(e,t);if("object"!=typeof e||null===e)throw new Error(a(16));var n={};for(var r in e){var o=e[r];"function"==typeof o&&(n[r]=p(o,t))}return n}function m(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function y(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error(a(15))},o={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},u=t.map((function(e){return e(o)}));return r=m.apply(void 0,u)(n.dispatch),i(i({},n),{},{dispatch:r})}}}},function(e,t,n){(t=e.exports=n(70)(!0)).push([e.i,".cozy-ui-bar-icon--spin--3IvCw{-webkit-animation:cozy-ui-bar-spin--3r0RK 1s linear infinite;animation:cozy-ui-bar-spin--3r0RK 1s linear infinite}@-webkit-keyframes cozy-ui-bar-spin--3r0RK{from{transform:rotate(0deg)}to{transform:rotate(359deg)}}@keyframes cozy-ui-bar-spin--3r0RK{from{transform:rotate(0deg)}to{transform:rotate(359deg)}}@-webkit-keyframes cozy-ui-bar-shake--1Tqb8{10%,90%{transform:translate3d(-1px,0,0)}20%,80%{transform:translate3d(2px,0,0)}30%,50%,70%{transform:translate3d(-4px,0,0)}40%,60%{transform:translate3d(4px,0,0)}}@keyframes cozy-ui-bar-shake--1Tqb8{10%,90%{transform:translate3d(-1px,0,0)}20%,80%{transform:translate3d(2px,0,0)}30%,50%,70%{transform:translate3d(-4px,0,0)}40%,60%{transform:translate3d(4px,0,0)}}.cozy-ui-bar-icon--3NURx{fill:var(--iconColor);transform:translateZ(0)}.cozy-ui-bar-icon--preserveColor--bqA0L{fill:inherit}@media(prefers-reduced-motion:reduce){.cozy-ui-bar-icon--spin--3IvCw{-webkit-animation:none;animation:none}}","",{version:3,sources:["/home/travis/build/cozy/cozy-bar/node_modules/cozy-ui/react/Icon/node_modules/cozy-ui/stylus/generic/animations.styl","/home/travis/build/cozy/cozy-bar/node_modules/cozy-ui/react/Icon/styles.styl","/home/travis/build/cozy/cozy-bar/node_modules/cozy-ui/react/Icon/node_modules/cozy-ui/react/Icon/styles.styl"],names:[],mappings:"AAkCA,+BAGI,6DAAA,oDCnCJ,CDUA,2CACI,KACI,sBCKN,CDJE,GACI,wBCMN,CACF,CDXA,mCACI,KACI,sBCqBN,CDpBE,GACI,wBCsBN,CACF,CDrBA,4CACI,QACI,+BCqCN,CDnCE,QACI,8BCqCN,CDnCE,YACI,+BCqCN,CDnCE,QACI,8BCqCN,CACF,CDjDA,oCACI,QACI,+BCiEN,CD/DE,QACI,8BCiEN,CD/DE,YACI,+BCiEN,CD/DE,QACI,8BCiEN,CACF,CC7FA,yBACI,sBAEA,uBD8FJ,CC5FA,wCACI,YD8FJ,CD/DsC,sCAGlC,+BACI,uBAAA,cCrCN,CACF,CAAA",file:"styles.styl",sourcesContent:["/*------------------------------------*\\\n Animations\n\\*------------------------------------*/\n/*\n Animations\n\n Available animations:\n\n spin - Animates an element by rotating it endlessly by 360 deg (used by the loading spinner)\n\n Styleguide Generic.animation\n*/\n@keyframes spin\n from\n transform rotate(0deg)\n to\n transform rotate(359deg)\n \n@keyframes shake\n 10%, 90%\n transform translate3d(-1px, 0, 0)\n \n 20%, 80%\n transform translate3d(2px, 0, 0)\n\n 30%, 50%, 70%\n transform translate3d(-4px, 0, 0)\n\n 40%, 60%\n transform translate3d(4px, 0, 0)\n\n$transition-transform-ease-out\n transition transform .1s ease-out\n\n$spin-anim\n // arguments' order is important: the animation name must stay first\n // so that scoping works\n animation spin 1s linear infinite\n\n@media (prefers-reduced-motion: reduce)\n $transition-transform-ease-out\n transition none\n $spin-anim\n animation none",".icon--spin {\n animation: spin 1s linear infinite;\n}\n@media (prefers-reduced-motion: reduce) {\n .icon--spin {\n animation: none;\n }\n}\n@-moz-keyframes spin {\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(359deg);\n }\n}\n@-webkit-keyframes spin {\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(359deg);\n }\n}\n@-o-keyframes spin {\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(359deg);\n }\n}\n@keyframes spin {\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(359deg);\n }\n}\n@-moz-keyframes shake {\n 10%, 90% {\n transform: translate3d(-1px, 0, 0);\n }\n 20%, 80% {\n transform: translate3d(2px, 0, 0);\n }\n 30%, 50%, 70% {\n transform: translate3d(-4px, 0, 0);\n }\n 40%, 60% {\n transform: translate3d(4px, 0, 0);\n }\n}\n@-webkit-keyframes shake {\n 10%, 90% {\n transform: translate3d(-1px, 0, 0);\n }\n 20%, 80% {\n transform: translate3d(2px, 0, 0);\n }\n 30%, 50%, 70% {\n transform: translate3d(-4px, 0, 0);\n }\n 40%, 60% {\n transform: translate3d(4px, 0, 0);\n }\n}\n@-o-keyframes shake {\n 10%, 90% {\n transform: translate3d(-1px, 0, 0);\n }\n 20%, 80% {\n transform: translate3d(2px, 0, 0);\n }\n 30%, 50%, 70% {\n transform: translate3d(-4px, 0, 0);\n }\n 40%, 60% {\n transform: translate3d(4px, 0, 0);\n }\n}\n@keyframes shake {\n 10%, 90% {\n transform: translate3d(-1px, 0, 0);\n }\n 20%, 80% {\n transform: translate3d(2px, 0, 0);\n }\n 30%, 50%, 70% {\n transform: translate3d(-4px, 0, 0);\n }\n 40%, 60% {\n transform: translate3d(4px, 0, 0);\n }\n}\n.icon {\n fill: var(--iconColor);\n transform: translateZ(0);\n}\n.icon--preserveColor {\n fill: inherit;\n}\n","@require 'settings/icons.styl'\n\n.icon\n fill var(--iconColor)\n // Fix blurry icons on Firefox\n transform translateZ(0)\n\n.icon--preserveColor\n fill inherit\n\n.icon--spin\n @extend $icon-spin\n"],sourceRoot:""}]),t.locals={"icon--spin":"cozy-ui-bar-icon--spin--3IvCw",spin:"cozy-ui-bar-spin--3r0RK",icon:"cozy-ui-bar-icon--3NURx","icon--preserveColor":"cozy-ui-bar-icon--preserveColor--bqA0L",shake:"cozy-ui-bar-shake--1Tqb8"}},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(33))},function(e,t,n){var r=n(209);e.exports=function(e,t,n){var o=e.length;return n=void 0===n?o:n,!t&&n>=o?e:r(e,t,n)}},function(e,t){e.exports=function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}},function(e,t,n){var r=n(355),o=n(146),i=n(356);e.exports=function(e){return o(e)?i(e):r(e)}},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t){var n=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},function(e,t,n){var r=n(109),o=n(399),i=n(110);e.exports=function(e,t,n,a,u,c){var s=1&n,l=e.length,f=t.length;if(l!=f&&!(s&&f>l))return!1;var d=c.get(e);if(d&&c.get(t))return d==t;var p=-1,h=!0,m=2&n?new r:void 0;for(c.set(e,t),c.set(t,e);++p<l;){var y=e[p],v=t[p];if(a)var g=s?a(v,y,p,t,e,c):a(y,v,p,e,t,c);if(void 0!==g){if(g)continue;h=!1;break}if(m){if(!o(t,(function(e,t){if(!i(m,t)&&(y===e||u(y,e,n,a,c)))return m.push(t)}))){h=!1;break}}else if(y!==v&&!u(y,v,n,a,c)){h=!1;break}}return c.delete(e),c.delete(t),h}},function(e,t,n){var r=n(39).Uint8Array;e.exports=r},function(e,t,n){var r=n(218),o=n(156),i=n(85);e.exports=function(e){return r(e,i,o)}},function(e,t,n){var r=n(111),o=n(26);e.exports=function(e,t,n){var i=t(e);return o(e)?i:r(i,n(e))}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}},function(e,t){e.exports=function(){return[]}},function(e,t,n){var r=n(222),o=n(86),i=n(26),a=n(87),u=n(113),c=n(114),s=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),l=!n&&o(e),f=!n&&!l&&a(e),d=!n&&!l&&!f&&c(e),p=n||l||f||d,h=p?r(e.length,String):[],m=h.length;for(var y in e)!t&&!s.call(e,y)||p&&("length"==y||f&&("offset"==y||"parent"==y)||d&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||u(y,m))||h.push(y);return h}},function(e,t){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t,n){var r=n(54)(n(39),"Set");e.exports=r},function(e,t,n){var r=n(54)(n(39),"WeakMap");e.exports=r},function(e,t,n){var r=n(34);e.exports=function(e){return e==e&&!r(e)}},function(e,t){e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},function(e,t,n){var r=n(413),o=n(229);e.exports=function(e,t){return null!=e&&o(e,t,r)}},function(e,t,n){var r=n(67),o=n(86),i=n(26),a=n(113),u=n(157),c=n(68);e.exports=function(e,t,n){for(var s=-1,l=(t=r(t,e)).length,f=!1;++s<l;){var d=c(t[s]);if(!(f=null!=e&&n(e,d)))break;e=e[d]}return f||++s!=l?f:!!(l=null==e?0:e.length)&&u(l)&&a(d,l)&&(i(e)||o(e))}},function(e,t,n){var r=n(116),o=n(231),i=n(67);e.exports=function(e,t,n){for(var a=-1,u=t.length,c={};++a<u;){var s=t[a],l=r(e,s);n(l,s)&&o(c,i(s,e),l)}return c}},function(e,t,n){var r=n(162),o=n(67),i=n(113),a=n(34),u=n(68);e.exports=function(e,t,n,c){if(!a(e))return e;for(var s=-1,l=(t=o(t,e)).length,f=l-1,d=e;null!=d&&++s<l;){var p=u(t[s]),h=n;if(s!=f){var m=d[p];void 0===(h=c?c(m,p,d):void 0)&&(h=a(m)?m:i(t[s+1])?[]:{})}r(d,p,h),d=d[p]}return e}},function(e,t,n){var r=n(54),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},function(e,t,n){var r=n(111),o=n(164),i=n(156),a=n(220),u=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,i(e)),e=o(e);return t}:a;e.exports=u},function(e,t){var n={black:"#000",red:"#c23621",green:"#25bc26",yellow:"#bbbb00",blue:"#492ee1",magenta:"#d338d3",cyan:"#33bbc8",gray:"#808080",purple:"#708"};e.exports=function(e,t){return t?"color: #fff; background: "+n[e]+";":"color: "+n[e]+";"}},function(e,t,n){"use strict";
11
+ * Licensed under the MIT license */!function(o,i,a,u){"use strict";var c,s=["","webkit","Moz","MS","ms","o"],l=i.createElement("div"),f=Math.round,d=Math.abs,p=Date.now;function h(e,t,n){return setTimeout(x(e,n),t)}function m(e,t,n){return!!Array.isArray(e)&&(y(e,n[t],n),!0)}function y(e,t,n){var r;if(e)if(e.forEach)e.forEach(t,n);else if(void 0!==e.length)for(r=0;r<e.length;)t.call(n,e[r],r,e),r++;else for(r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r,e)}function v(e,t,n){var r="DEPRECATED METHOD: "+t+"\n"+n+" AT \n";return function(){var t=new Error("get-stack-trace"),n=t&&t.stack?t.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",i=o.console&&(o.console.warn||o.console.log);return i&&i.call(o.console,r,n),e.apply(this,arguments)}}c="function"!=typeof Object.assign?function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1;n<arguments.length;n++){var r=arguments[n];if(null!=r)for(var o in r)r.hasOwnProperty(o)&&(t[o]=r[o])}return t}:Object.assign;var g=v((function(e,t,n){for(var r=Object.keys(t),o=0;o<r.length;)(!n||n&&void 0===e[r[o]])&&(e[r[o]]=t[r[o]]),o++;return e}),"extend","Use `assign`."),b=v((function(e,t){return g(e,t,!0)}),"merge","Use `assign`.");function w(e,t,n){var r,o=t.prototype;(r=e.prototype=Object.create(o)).constructor=e,r._super=o,n&&c(r,n)}function x(e,t){return function(){return e.apply(t,arguments)}}function C(e,t){return"function"==typeof e?e.apply(t&&t[0]||void 0,t):e}function k(e,t){return void 0===e?t:e}function S(e,t,n){y(E(t),(function(t){e.addEventListener(t,n,!1)}))}function _(e,t,n){y(E(t),(function(t){e.removeEventListener(t,n,!1)}))}function A(e,t){for(;e;){if(e==t)return!0;e=e.parentNode}return!1}function O(e,t){return e.indexOf(t)>-1}function E(e){return e.trim().split(/\s+/g)}function B(e,t,n){if(e.indexOf&&!n)return e.indexOf(t);for(var r=0;r<e.length;){if(n&&e[r][n]==t||!n&&e[r]===t)return r;r++}return-1}function j(e){return Array.prototype.slice.call(e,0)}function P(e,t,n){for(var r=[],o=[],i=0;i<e.length;){var a=t?e[i][t]:e[i];B(o,a)<0&&r.push(e[i]),o[i]=a,i++}return n&&(r=t?r.sort((function(e,n){return e[t]>n[t]})):r.sort()),r}function T(e,t){for(var n,r,o=t[0].toUpperCase()+t.slice(1),i=0;i<s.length;){if((r=(n=s[i])?n+o:t)in e)return r;i++}}var z=1;function I(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow||o}var D="ontouchstart"in o,R=void 0!==T(o,"PointerEvent"),F=D&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),M=["x","y"],N=["clientX","clientY"];function L(e,t){var n=this;this.manager=e,this.callback=t,this.element=e.element,this.target=e.options.inputTarget,this.domHandler=function(t){C(e.options.enable,[e])&&n.handler(t)},this.init()}function U(e,t,n){var r=n.pointers.length,o=n.changedPointers.length,i=1&t&&r-o==0,a=12&t&&r-o==0;n.isFirst=!!i,n.isFinal=!!a,i&&(e.session={}),n.eventType=t,function(e,t){var n=e.session,r=t.pointers,o=r.length;n.firstInput||(n.firstInput=$(t));o>1&&!n.firstMultiple?n.firstMultiple=$(t):1===o&&(n.firstMultiple=!1);var i=n.firstInput,a=n.firstMultiple,u=a?a.center:i.center,c=t.center=G(r);t.timeStamp=p(),t.deltaTime=t.timeStamp-i.timeStamp,t.angle=W(u,c),t.distance=H(u,c),function(e,t){var n=t.center,r=e.offsetDelta||{},o=e.prevDelta||{},i=e.prevInput||{};1!==t.eventType&&4!==i.eventType||(o=e.prevDelta={x:i.deltaX||0,y:i.deltaY||0},r=e.offsetDelta={x:n.x,y:n.y});t.deltaX=o.x+(n.x-r.x),t.deltaY=o.y+(n.y-r.y)}(n,t),t.offsetDirection=J(t.deltaX,t.deltaY);var s=q(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=s.x,t.overallVelocityY=s.y,t.overallVelocity=d(s.x)>d(s.y)?s.x:s.y,t.scale=a?(l=a.pointers,f=r,H(f[0],f[1],N)/H(l[0],l[1],N)):1,t.rotation=a?function(e,t){return W(t[1],t[0],N)+W(e[1],e[0],N)}(a.pointers,r):0,t.maxPointers=n.prevInput?t.pointers.length>n.prevInput.maxPointers?t.pointers.length:n.prevInput.maxPointers:t.pointers.length,function(e,t){var n,r,o,i,a=e.lastInterval||t,u=t.timeStamp-a.timeStamp;if(8!=t.eventType&&(u>25||void 0===a.velocity)){var c=t.deltaX-a.deltaX,s=t.deltaY-a.deltaY,l=q(u,c,s);r=l.x,o=l.y,n=d(l.x)>d(l.y)?l.x:l.y,i=J(c,s),e.lastInterval=t}else n=a.velocity,r=a.velocityX,o=a.velocityY,i=a.direction;t.velocity=n,t.velocityX=r,t.velocityY=o,t.direction=i}(n,t);var l,f;var h=e.element;A(t.srcEvent.target,h)&&(h=t.srcEvent.target);t.target=h}(e,n),e.emit("hammer.input",n),e.recognize(n),e.session.prevInput=n}function $(e){for(var t=[],n=0;n<e.pointers.length;)t[n]={clientX:f(e.pointers[n].clientX),clientY:f(e.pointers[n].clientY)},n++;return{timeStamp:p(),pointers:t,center:G(t),deltaX:e.deltaX,deltaY:e.deltaY}}function G(e){var t=e.length;if(1===t)return{x:f(e[0].clientX),y:f(e[0].clientY)};for(var n=0,r=0,o=0;o<t;)n+=e[o].clientX,r+=e[o].clientY,o++;return{x:f(n/t),y:f(r/t)}}function q(e,t,n){return{x:t/e||0,y:n/e||0}}function J(e,t){return e===t?1:d(e)>=d(t)?e<0?2:4:t<0?8:16}function H(e,t,n){n||(n=M);var r=t[n[0]]-e[n[0]],o=t[n[1]]-e[n[1]];return Math.sqrt(r*r+o*o)}function W(e,t,n){n||(n=M);var r=t[n[0]]-e[n[0]],o=t[n[1]]-e[n[1]];return 180*Math.atan2(o,r)/Math.PI}L.prototype={handler:function(){},init:function(){this.evEl&&S(this.element,this.evEl,this.domHandler),this.evTarget&&S(this.target,this.evTarget,this.domHandler),this.evWin&&S(I(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&_(this.element,this.evEl,this.domHandler),this.evTarget&&_(this.target,this.evTarget,this.domHandler),this.evWin&&_(I(this.element),this.evWin,this.domHandler)}};var Q={mousedown:1,mousemove:2,mouseup:4};function V(){this.evEl="mousedown",this.evWin="mousemove mouseup",this.pressed=!1,L.apply(this,arguments)}w(V,L,{handler:function(e){var t=Q[e.type];1&t&&0===e.button&&(this.pressed=!0),2&t&&1!==e.which&&(t=4),this.pressed&&(4&t&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[e],changedPointers:[e],pointerType:"mouse",srcEvent:e}))}});var Y={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},K={2:"touch",3:"pen",4:"mouse",5:"kinect"},Z="pointerdown",X="pointermove pointerup pointercancel";function ee(){this.evEl=Z,this.evWin=X,L.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}o.MSPointerEvent&&!o.PointerEvent&&(Z="MSPointerDown",X="MSPointerMove MSPointerUp MSPointerCancel"),w(ee,L,{handler:function(e){var t=this.store,n=!1,r=e.type.toLowerCase().replace("ms",""),o=Y[r],i=K[e.pointerType]||e.pointerType,a="touch"==i,u=B(t,e.pointerId,"pointerId");1&o&&(0===e.button||a)?u<0&&(t.push(e),u=t.length-1):12&o&&(n=!0),u<0||(t[u]=e,this.callback(this.manager,o,{pointers:t,changedPointers:[e],pointerType:i,srcEvent:e}),n&&t.splice(u,1))}});var te={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function ne(){this.evTarget="touchstart",this.evWin="touchstart touchmove touchend touchcancel",this.started=!1,L.apply(this,arguments)}function re(e,t){var n=j(e.touches),r=j(e.changedTouches);return 12&t&&(n=P(n.concat(r),"identifier",!0)),[n,r]}w(ne,L,{handler:function(e){var t=te[e.type];if(1===t&&(this.started=!0),this.started){var n=re.call(this,e,t);12&t&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:e})}}});var oe={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function ie(){this.evTarget="touchstart touchmove touchend touchcancel",this.targetIds={},L.apply(this,arguments)}function ae(e,t){var n=j(e.touches),r=this.targetIds;if(3&t&&1===n.length)return r[n[0].identifier]=!0,[n,n];var o,i,a=j(e.changedTouches),u=[],c=this.target;if(i=n.filter((function(e){return A(e.target,c)})),1===t)for(o=0;o<i.length;)r[i[o].identifier]=!0,o++;for(o=0;o<a.length;)r[a[o].identifier]&&u.push(a[o]),12&t&&delete r[a[o].identifier],o++;return u.length?[P(i.concat(u),"identifier",!0),u]:void 0}w(ie,L,{handler:function(e){var t=oe[e.type],n=ae.call(this,e,t);n&&this.callback(this.manager,t,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:e})}});function ue(){L.apply(this,arguments);var e=x(this.handler,this);this.touch=new ie(this.manager,e),this.mouse=new V(this.manager,e),this.primaryTouch=null,this.lastTouches=[]}function ce(e,t){1&e?(this.primaryTouch=t.changedPointers[0].identifier,se.call(this,t)):12&e&&se.call(this,t)}function se(e){var t=e.changedPointers[0];if(t.identifier===this.primaryTouch){var n={x:t.clientX,y:t.clientY};this.lastTouches.push(n);var r=this.lastTouches;setTimeout((function(){var e=r.indexOf(n);e>-1&&r.splice(e,1)}),2500)}}function le(e){for(var t=e.srcEvent.clientX,n=e.srcEvent.clientY,r=0;r<this.lastTouches.length;r++){var o=this.lastTouches[r],i=Math.abs(t-o.x),a=Math.abs(n-o.y);if(i<=25&&a<=25)return!0}return!1}w(ue,L,{handler:function(e,t,n){var r="touch"==n.pointerType,o="mouse"==n.pointerType;if(!(o&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(r)ce.call(this,t,n);else if(o&&le.call(this,n))return;this.callback(e,t,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var fe=T(l.style,"touchAction"),de=void 0!==fe,pe=function(){if(!de)return!1;var e={},t=o.CSS&&o.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(n){e[n]=!t||o.CSS.supports("touch-action",n)})),e}();function he(e,t){this.manager=e,this.set(t)}he.prototype={set:function(e){"compute"==e&&(e=this.compute()),de&&this.manager.element.style&&pe[e]&&(this.manager.element.style[fe]=e),this.actions=e.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var e=[];return y(this.manager.recognizers,(function(t){C(t.options.enable,[t])&&(e=e.concat(t.getTouchAction()))})),function(e){if(O(e,"none"))return"none";var t=O(e,"pan-x"),n=O(e,"pan-y");if(t&&n)return"none";if(t||n)return t?"pan-x":"pan-y";if(O(e,"manipulation"))return"manipulation";return"auto"}(e.join(" "))},preventDefaults:function(e){var t=e.srcEvent,n=e.offsetDirection;if(this.manager.session.prevented)t.preventDefault();else{var r=this.actions,o=O(r,"none")&&!pe.none,i=O(r,"pan-y")&&!pe["pan-y"],a=O(r,"pan-x")&&!pe["pan-x"];if(o){var u=1===e.pointers.length,c=e.distance<2,s=e.deltaTime<250;if(u&&c&&s)return}if(!a||!i)return o||i&&6&n||a&&24&n?this.preventSrc(t):void 0}},preventSrc:function(e){this.manager.session.prevented=!0,e.preventDefault()}};function me(e){this.options=c({},this.defaults,e||{}),this.id=z++,this.manager=null,this.options.enable=k(this.options.enable,!0),this.state=1,this.simultaneous={},this.requireFail=[]}function ye(e){return 16&e?"cancel":8&e?"end":4&e?"move":2&e?"start":""}function ve(e){return 16==e?"down":8==e?"up":2==e?"left":4==e?"right":""}function ge(e,t){var n=t.manager;return n?n.get(e):e}function be(){me.apply(this,arguments)}function we(){be.apply(this,arguments),this.pX=null,this.pY=null}function xe(){be.apply(this,arguments)}function Ce(){me.apply(this,arguments),this._timer=null,this._input=null}function ke(){be.apply(this,arguments)}function Se(){be.apply(this,arguments)}function _e(){me.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function Ae(e,t){return(t=t||{}).recognizers=k(t.recognizers,Ae.defaults.preset),new Oe(e,t)}me.prototype={defaults:{},set:function(e){return c(this.options,e),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(e){if(m(e,"recognizeWith",this))return this;var t=this.simultaneous;return t[(e=ge(e,this)).id]||(t[e.id]=e,e.recognizeWith(this)),this},dropRecognizeWith:function(e){return m(e,"dropRecognizeWith",this)||(e=ge(e,this),delete this.simultaneous[e.id]),this},requireFailure:function(e){if(m(e,"requireFailure",this))return this;var t=this.requireFail;return-1===B(t,e=ge(e,this))&&(t.push(e),e.requireFailure(this)),this},dropRequireFailure:function(e){if(m(e,"dropRequireFailure",this))return this;e=ge(e,this);var t=B(this.requireFail,e);return t>-1&&this.requireFail.splice(t,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(e){return!!this.simultaneous[e.id]},emit:function(e){var t=this,n=this.state;function r(n){t.manager.emit(n,e)}n<8&&r(t.options.event+ye(n)),r(t.options.event),e.additionalEvent&&r(e.additionalEvent),n>=8&&r(t.options.event+ye(n))},tryEmit:function(e){if(this.canEmit())return this.emit(e);this.state=32},canEmit:function(){for(var e=0;e<this.requireFail.length;){if(!(33&this.requireFail[e].state))return!1;e++}return!0},recognize:function(e){var t=c({},e);if(!C(this.options.enable,[this,t]))return this.reset(),void(this.state=32);56&this.state&&(this.state=1),this.state=this.process(t),30&this.state&&this.tryEmit(t)},process:function(e){},getTouchAction:function(){},reset:function(){}},w(be,me,{defaults:{pointers:1},attrTest:function(e){var t=this.options.pointers;return 0===t||e.pointers.length===t},process:function(e){var t=this.state,n=e.eventType,r=6&t,o=this.attrTest(e);return r&&(8&n||!o)?16|t:r||o?4&n?8|t:2&t?4|t:2:32}}),w(we,be,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var e=this.options.direction,t=[];return 6&e&&t.push("pan-y"),24&e&&t.push("pan-x"),t},directionTest:function(e){var t=this.options,n=!0,r=e.distance,o=e.direction,i=e.deltaX,a=e.deltaY;return o&t.direction||(6&t.direction?(o=0===i?1:i<0?2:4,n=i!=this.pX,r=Math.abs(e.deltaX)):(o=0===a?1:a<0?8:16,n=a!=this.pY,r=Math.abs(e.deltaY))),e.direction=o,n&&r>t.threshold&&o&t.direction},attrTest:function(e){return be.prototype.attrTest.call(this,e)&&(2&this.state||!(2&this.state)&&this.directionTest(e))},emit:function(e){this.pX=e.deltaX,this.pY=e.deltaY;var t=ve(e.direction);t&&(e.additionalEvent=this.options.event+t),this._super.emit.call(this,e)}}),w(xe,be,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||2&this.state)},emit:function(e){if(1!==e.scale){var t=e.scale<1?"in":"out";e.additionalEvent=this.options.event+t}this._super.emit.call(this,e)}}),w(Ce,me,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return["auto"]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,r=e.distance<t.threshold,o=e.deltaTime>t.time;if(this._input=e,!r||!n||12&e.eventType&&!o)this.reset();else if(1&e.eventType)this.reset(),this._timer=h((function(){this.state=8,this.tryEmit()}),t.time,this);else if(4&e.eventType)return 8;return 32},reset:function(){clearTimeout(this._timer)},emit:function(e){8===this.state&&(e&&4&e.eventType?this.manager.emit(this.options.event+"up",e):(this._input.timeStamp=p(),this.manager.emit(this.options.event,this._input)))}}),w(ke,be,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||2&this.state)}}),w(Se,be,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return we.prototype.getTouchAction.call(this)},attrTest:function(e){var t,n=this.options.direction;return 30&n?t=e.overallVelocity:6&n?t=e.overallVelocityX:24&n&&(t=e.overallVelocityY),this._super.attrTest.call(this,e)&&n&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers==this.options.pointers&&d(t)>this.options.velocity&&4&e.eventType},emit:function(e){var t=ve(e.offsetDirection);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)}}),w(_e,me,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return["manipulation"]},process:function(e){var t=this.options,n=e.pointers.length===t.pointers,r=e.distance<t.threshold,o=e.deltaTime<t.time;if(this.reset(),1&e.eventType&&0===this.count)return this.failTimeout();if(r&&o&&n){if(4!=e.eventType)return this.failTimeout();var i=!this.pTime||e.timeStamp-this.pTime<t.interval,a=!this.pCenter||H(this.pCenter,e.center)<t.posThreshold;if(this.pTime=e.timeStamp,this.pCenter=e.center,a&&i?this.count+=1:this.count=1,this._input=e,0===this.count%t.taps)return this.hasRequireFailures()?(this._timer=h((function(){this.state=8,this.tryEmit()}),t.interval,this),2):8}return 32},failTimeout:function(){return this._timer=h((function(){this.state=32}),this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),Ae.VERSION="2.0.7",Ae.defaults={domEvents:!1,touchAction:"compute",enable:!0,inputTarget:null,inputClass:null,preset:[[ke,{enable:!1}],[xe,{enable:!1},["rotate"]],[Se,{direction:6}],[we,{direction:6},["swipe"]],[_e],[_e,{event:"doubletap",taps:2},["tap"]],[Ce]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};function Oe(e,t){var n;this.options=c({},Ae.defaults,t||{}),this.options.inputTarget=this.options.inputTarget||e,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=e,this.input=new((n=this).options.inputClass||(R?ee:F?ie:D?ue:V))(n,U),this.touchAction=new he(this,this.options.touchAction),Ee(this,!0),y(this.options.recognizers,(function(e){var t=this.add(new e[0](e[1]));e[2]&&t.recognizeWith(e[2]),e[3]&&t.requireFailure(e[3])}),this)}function Ee(e,t){var n,r=e.element;r.style&&(y(e.options.cssProps,(function(o,i){n=T(r.style,i),t?(e.oldCssProps[n]=r.style[n],r.style[n]=o):r.style[n]=e.oldCssProps[n]||""})),t||(e.oldCssProps={}))}Oe.prototype={set:function(e){return c(this.options,e),e.touchAction&&this.touchAction.update(),e.inputTarget&&(this.input.destroy(),this.input.target=e.inputTarget,this.input.init()),this},stop:function(e){this.session.stopped=e?2:1},recognize:function(e){var t=this.session;if(!t.stopped){var n;this.touchAction.preventDefaults(e);var r=this.recognizers,o=t.curRecognizer;(!o||o&&8&o.state)&&(o=t.curRecognizer=null);for(var i=0;i<r.length;)n=r[i],2===t.stopped||o&&n!=o&&!n.canRecognizeWith(o)?n.reset():n.recognize(e),!o&&14&n.state&&(o=t.curRecognizer=n),i++}},get:function(e){if(e instanceof me)return e;for(var t=this.recognizers,n=0;n<t.length;n++)if(t[n].options.event==e)return t[n];return null},add:function(e){if(m(e,"add",this))return this;var t=this.get(e.options.event);return t&&this.remove(t),this.recognizers.push(e),e.manager=this,this.touchAction.update(),e},remove:function(e){if(m(e,"remove",this))return this;if(e=this.get(e)){var t=this.recognizers,n=B(t,e);-1!==n&&(t.splice(n,1),this.touchAction.update())}return this},on:function(e,t){if(void 0!==e&&void 0!==t){var n=this.handlers;return y(E(e),(function(e){n[e]=n[e]||[],n[e].push(t)})),this}},off:function(e,t){if(void 0!==e){var n=this.handlers;return y(E(e),(function(e){t?n[e]&&n[e].splice(B(n[e],t),1):delete n[e]})),this}},emit:function(e,t){this.options.domEvents&&function(e,t){var n=i.createEvent("Event");n.initEvent(e,!0,!0),n.gesture=t,t.target.dispatchEvent(n)}(e,t);var n=this.handlers[e]&&this.handlers[e].slice();if(n&&n.length){t.type=e,t.preventDefault=function(){t.srcEvent.preventDefault()};for(var r=0;r<n.length;)n[r](t),r++}},destroy:function(){this.element&&Ee(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},c(Ae,{INPUT_START:1,INPUT_MOVE:2,INPUT_END:4,INPUT_CANCEL:8,STATE_POSSIBLE:1,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:32,DIRECTION_NONE:1,DIRECTION_LEFT:2,DIRECTION_RIGHT:4,DIRECTION_UP:8,DIRECTION_DOWN:16,DIRECTION_HORIZONTAL:6,DIRECTION_VERTICAL:24,DIRECTION_ALL:30,Manager:Oe,Input:L,TouchAction:he,TouchInput:ie,MouseInput:V,PointerEventInput:ee,TouchMouseInput:ue,SingleTouchInput:ne,Recognizer:me,AttrRecognizer:be,Tap:_e,Pan:we,Swipe:Se,Pinch:xe,Rotate:ke,Press:Ce,on:S,off:_,each:y,merge:b,extend:g,assign:c,inherit:w,bindFn:x,prefixed:T}),(void 0!==o?o:"undefined"!=typeof self?self:{}).Hammer=Ae,void 0===(r=function(){return Ae}.call(t,n,t,e))||(e.exports=r)}(window,document)},function(e,t,n){(t=e.exports=n(70)(!0)).push([e.i,"html{--white:#fff;--paleGrey:#f5f6f7;--silver:#d6d8da;--coolGrey:#95999d;--slateGrey:#5d6165;--charcoalGrey:#32363f;--black:#000;--overlay:rgba(50,54,63,.5);--zircon:#f5faff;--dodgerBlue:#297ef2;--scienceBlue:#0b61d6;--weirdGreen:#40de8e;--emerald:#35ce68;--malachite:#08b442;--mango:#ff962f;--chablis:#fff2f2;--yourPink:#fdcbcb;--fuchsia:#fc4c83;--pomegranate:#f52d2d;--monza:#dd0505}html,.cozy-ui-bar-CozyTheme--normal--1OuNS{--primaryColor:#297ef2;--primaryColorDark:#0b61d6;--primaryColorLight:#5c9df5;--primaryColorLightest:#9fc4fb;--secondaryColor:#fd7461;--secondaryColorDark:#e3503b;--secondaryColorLight:#ffdeda;--secondaryColorLightest:#fecdc6;--primaryBackgroundLight:#f5faff;--paperBackgroundColor:#fff;--defaultBackgroundColor:#f5f6f7;--primaryTextColor:#32363f;--secondaryTextColor:#95999d;--primaryContrastTextColor:#fff;--secondaryContrastTextColor:#fff;--dividerColor:rgba(29,33,42,.122);--successColor:#35ce68;--warningColor:#ff962f;--errorColor:#f52d2d;--errorColorDark:#a00808;--errorColorLight:#fcbfbf;--errorColorLightest:#fee6e6;--errorBackground:#fff2f2;--spinnerColor:var(--primaryColor);--linkColor:var(--primaryColor);--linkTextDecoration:none;--linkColorActive:var(--primaryColorDark);--invertedTabsActiveTextColor:var(--primaryContrastTextColor);--invertedTabsInactiveTextColor:var(--primaryContrastTextColor);--invertedTabsIndicatorColor:var(--primaryContrastTextColor);--invertedTabsBackgroundColor:var(--primaryColor);--regularButtonPrimaryColor:var(--primaryColor);--regularButtonSecondaryColor:var(--primaryColor);--regularButtonActiveColor:var(--primaryColorDark);--regularButtonConstrastColor:var(--primaryContrastTextColor);--secondaryButtonPrimaryColor:#fff;--secondaryButtonSecondaryColor:var(--silver);--secondaryButtonActiveColor:var(--silver);--secondaryButtonContrastColor:var(--black);--dividerColor2:var(--coolGrey);--iconColor:currentColor;--textIconColor:var(--charcoalGrey);--actionMenuIconColor:var(--slateGrey);--neutralBackground:var(--paleGrey);--buttonTextTransform:uppercase;--buttonBorderRadius:.125rem;--navTextColor:var(--slateGrey);--navTextActiveColor:var(--slateGrey);--navTextHoverColor:var(--charcoalGrey);--alertErrorColor:#fff;--alertErrorBackgroundColor:var(--errorColor);--alertSuccessColor:#fff;--alertSuccessBackgroundColor:var(--successColor);--alertInfoColor:#fff;--alertInfoBackgroundColor:var(--slateGrey)}@-webkit-keyframes cozy-ui-bar-spin--3DZqI{from{transform:rotate(0deg)}to{transform:rotate(359deg)}}@keyframes cozy-ui-bar-spin--3DZqI{from{transform:rotate(0deg)}to{transform:rotate(359deg)}}@-webkit-keyframes cozy-ui-bar-shake--1gzL2{10%,90%{transform:translate3d(-1px,0,0)}20%,80%{transform:translate3d(2px,0,0)}30%,50%,70%{transform:translate3d(-4px,0,0)}40%,60%{transform:translate3d(4px,0,0)}}@keyframes cozy-ui-bar-shake--1gzL2{10%,90%{transform:translate3d(-1px,0,0)}20%,80%{transform:translate3d(2px,0,0)}30%,50%,70%{transform:translate3d(-4px,0,0)}40%,60%{transform:translate3d(4px,0,0)}}.cozy-ui-bar-c-spinner--3vDLT{display:inline-block;margin:0 .5rem}.cozy-ui-bar-c-spinner--3vDLT:before{content:''}.cozy-ui-bar-c-spinner--3vDLT p{margin-top:.938rem;line-height:1.5}.cozy-ui-bar-c-spinner--middle--1Nmj_{position:absolute;top:50%;left:50%;transform:translateX(-50%) translateY(-50%);text-align:center}.cozy-ui-bar-c-spinner--middle--1Nmj_:before{display:block;margin:0 auto}.cozy-ui-bar-c-spinner--nomargin--2GQe1{margin:0}","",{version:3,sources:["/home/anc/cozy/cozy-bar/node_modules/cozy-ui/react/Spinner/node_modules/cozy-ui/stylus/settings/palette.styl","/home/anc/cozy/cozy-bar/node_modules/cozy-ui/react/Spinner/styles.styl","/home/anc/cozy/cozy-bar/node_modules/cozy-ui/react/Spinner/node_modules/cozy-ui/stylus/generic/animations.styl","/home/anc/cozy/cozy-bar/node_modules/cozy-ui/react/Spinner/node_modules/cozy-ui/react/Spinner/styles.styl"],names:[],mappings:"AAwCA,KAeI,aACA,mBACA,iBACA,mBACA,oBACA,uBACA,aACA,4BAWA,iBACA,qBACA,sBAWA,qBACA,kBACA,oBASA,gBAaA,kBACA,mBACA,kBACA,sBACA,eC3CJ,CD0DA,2CAYI,uBACA,2BACA,4BACA,+BAYA,yBACA,6BACA,8BACA,iCAWA,iCACA,4BACA,iCAYA,2BACA,6BACA,gCACA,kCAaA,mCAYA,uBACA,uBAEA,qBACA,yBACA,0BACA,6BACA,0BAMA,mCAEA,gCACA,0BACA,0CAEA,8DACA,gEACA,6DACA,kDAEA,gDACA,kDACA,mDACA,8DAEA,mCACA,8CACA,2CACA,4CAEA,gCAEA,yBACA,oCACA,uCAEA,oCAEA,gCACA,6BAEA,gCACA,sCACA,wCAEA,uBACA,8CAEA,yBACA,kDAEA,sBACA,2CC3EJ,CCrLA,2CACI,KACI,sBD+LN,CC9LE,GACI,wBDgMN,CACF,CCrMA,mCACI,KACI,sBD+MN,CC9ME,GACI,wBDgNN,CACF,CC/MA,4CACI,QACI,+BD+NN,CC7NE,QACI,8BD+NN,CC7NE,YACI,+BD+NN,CC7NE,QACI,8BD+NN,CACF,CC3OA,oCACI,QACI,+BD2PN,CCzPE,QACI,8BD2PN,CCzPE,YACI,+BD2PN,CCzPE,QACI,8BD2PN,CACF,CErRA,8BACI,qBACA,cFuRJ,CEnRI,qCACI,UFqRR,CEnRI,gCACI,mBACA,eFqRR,CEhRA,sCACI,kBACA,QACA,SACA,4CACA,iBFkRJ,CEhRI,6CACI,cACA,aFkRR,CEhRA,wCACI,QFkRJ,CAAA",file:"styles.styl",sourcesContent:["@require '../tools/mixins'\n\n$errorColor=#F52D2D\n$errorBackground=#FFF2F2\n\n$successColor=#35CE68\n$warningColor=#FF962F\n$infoColor=#34373F\n\n// @stylint off\n/*------------------------------------*\\\n Palette\n =====\n\\*------------------------------------*/\n/*\n Settings\n\n Weight: -10\n\n Styleguide Settings\n*/\n\n/*\n Colors\n\n Colors used in the user interface.\n\n ℹ️ In general, you are advised to use [theme colors](#kssref-settings-theme) when\n building your components: this will ensure your components react correctly when\n changing the theme.\n\n If you need to access an absolute color that is not semantic, you can use\n\n ```\n import palette from 'cozy-ui/transpiled/react/palette'\n <div style={{ backgroundColor: palette.melon }} />\n ```\n\n Styleguide Settings.colors\n*/\nhtml\n /*\n Grey\n\n Stylus: white - #FFFFFF, CSS: var(--white)\n Stylus: paleGrey - #F5F6F7, CSS: var(--paleGrey)\n Stylus: silver - #D6D8Da, CSS: var(--silver)\n Stylus: coolGrey - #95999D, CSS: var(--coolGrey)\n Stylus: slateGrey - #5D6165, CSS: var(--slateGrey)\n Stylus: charcoalGrey - #32363F, CSS: var(--charcoalGrey)\n Stylus: black - #000000, CSS: var(--black)\n\n\n Styleguide Settings.colors.grey\n */\n --white #FFFFFF\n --paleGrey #F5F6F7\n --silver #D6D8Da\n --coolGrey #95999D\n --slateGrey #5D6165\n --charcoalGrey #32363F\n --black #000000\n --overlay rgba(50, 54, 63, .5)\n\n /*\n Blue\n\n Stylus: zircon - #F5FAFF, CSS: var(--zircon)\n Stylus: dodgerBlue - #297EF2, CSS: var(--dodgerBlue)\n Stylus: scienceBlue - #0B61D6, CSS: var(--scienceBlue)\n\n Styleguide Settings.colors.blue\n */\n --zircon #F5FAFF\n --dodgerBlue #297EF2\n --scienceBlue #0B61D6\n\n /*\n Green\n\n Stylus: weirdGreen - #40DE8E, CSS: var(--weirdGreen)\n Stylus: emerald - #35CE68, CSS: var(--emerald)\n Stylus: malachite - #08b442, CSS: var(--malachite)\n\n Styleguide Settings.colors.green\n */\n --weirdGreen #40DE8E\n --emerald #35CE68\n --malachite #08b442\n\n /*\n Orange\n\n Stylus: mango - #FF962F, CSS: var(--mango)\n\n Styleguide Settings.colors.orange\n */\n --mango #FF962F\n\n /*\n Red\n\n Stylus: chablis - #FFF2F2, CSS: var(--chablis)\n Stylus: yourPink - #FDCBCB, CSS: var(--yourPink)\n Stylus: fuchsia - #FC4C83, CSS: var(--fuchsia)\n Stylus: pomegranate - #F52D2D, CSS: var(--pomegranate)\n Stylus: monza - #DD0505, CSS: var(--monza)\n\n Styleguide Settings.colors.red\n */\n --chablis #FFF2F2\n --yourPink #FDCBCB\n --fuchsia #FC4C83\n --pomegranate #F52D2D\n --monza #DD0505\n\n/*\n Theme\n\n Semantic colors suitable for theming. We encourage users of cozy-ui to use semantic colors\n instead of absolute colors to facilitate theming.\n\n We try to use a naming schema that is close to what is use in [Material-UI React's theming](https://material-ui.com/customization/palette/#palette-colors).\n It is possible that we have some discrepancies. If you see something that seems out\n of the ordinary and where you think we could reduce the difference with MUI, please\n do not hesitate to [open an issue](https://github.com/cozy/cozy-ui/issues/new).\n\n Styleguide Settings.theme\n*/\nhtml, .CozyTheme--normal\n /*\n Primary\n\n Stylus: primaryColor - #297EF2, CSS: var(--primaryColor)\n Stylus: primaryColorDark - #0B61D6, CSS: var(--primaryColorDark)\n Stylus: primaryColorLight - #5C9DF5, CSS: var(--primaryColorLight)\n Stylus: primaryColorLightest - #9FC4FB, CSS: var(--primaryColorLightest)\n Stylus: primaryContrastTextColor - #FFFFFF, CSS: var(--primaryContrastTextColor)\n\n Styleguide Settings.theme.primary\n */\n --primaryColor #297EF2\n --primaryColorDark #0B61D6\n --primaryColorLight #5C9DF5\n --primaryColorLightest #9FC4FB\n\n /*\n Secondary\n\n Stylus: secondaryColor - #fd7461, CSS: var(--secondaryColor)\n Stylus: secondaryColorDark - #E3503B, CSS: var(--secondaryColorDark)\n Stylus: secondaryColorLight - #ffdeda, CSS: var(--secondaryColorLight)\n Stylus: secondaryColorLightest - #FECDC6, CSS: var(--secondaryColorLightest)\n\n Styleguide Settings.theme.secondary\n */\n --secondaryColor #fd7461\n --secondaryColorDark #E3503B\n --secondaryColorLight #ffdeda // lighten(dodgerBlue, 24)\n --secondaryColorLightest #FECDC6\n\n /*\n Background colors\n\n Stylus: primaryBackgroundLight - #F5FAFF, CSS: var(--primaryBackgroundLight)\n Stylus: paperBackgroundColor - #FFF, CSS: var(--paperBackgroundColor)\n Stylus: defaultBackgroundColor - #F5F6F7, CSS: var(--defaultBackgroundColor)\n\n Styleguide Settings.theme.background\n */\n --primaryBackgroundLight: #F5FAFF\n --paperBackgroundColor: #FFF\n --defaultBackgroundColor: #F5F6F7 // paleGrey\n\n /*\n Text colors\n\n Stylus: primaryTextColor - #32363F, CSS: var(--primaryTextColor)\n Stylus: secondaryTextColor - #95999D, CSS: var(--secondaryTextColor)\n Stylus: primaryContrastTextColor - #FFF, CSS: var(--primaryContrastTextColor)\n Stylus: secondaryContrastTextColor - #FFF, CSS: var(--secondaryContrastTextColor)\n\n Styleguide Settings.theme.text\n */\n --primaryTextColor #32363F\n --secondaryTextColor #95999D\n --primaryContrastTextColor #FFF\n --secondaryContrastTextColor #FFF\n\n\n /*\n Components colors\n\n Be careful to use the semantic variable, not the hexa color.\n In this case the real color is `#1D212A1F`, and becomes `#E3E4E5` on a white background.\n\n Stylus: dividerColor - #E3E4E5, CSS: var(--dividerColor)\n\n Styleguide Settings.theme.components\n */\n --dividerColor: #1D212A1F // grey[900] with 12% opacity\n\n /*\n Intention colors\n\n Stylus: successColor - #35CE68, CSS: var(--successColor)\n Stylus: warningColor - #FF962F, CSS: var(--warningColor)\n Stylus: errorColor - #F52D2D, CSS: var(--errorColor)\n Stylus: infoColor - #34373F, CSS: var(--infoColor)\n\n Styleguide Settings.theme.intention\n */\n --successColor: $successColor\n --warningColor: $warningColor\n\n --errorColor: $errorColor\n --errorColorDark: darken($errorColor, 24)\n --errorColorLight: lighten($errorColor, 30)\n --errorColorLightest: lighten($errorColor, 38)\n --errorBackground: $errorBackground\n\n /*\n The CSS variables below are historic and we should strive not to\n use them. Prefer to use directly semantic colors above.\n */\n --spinnerColor var(--primaryColor)\n\n --linkColor var(--primaryColor)\n --linkTextDecoration none\n --linkColorActive var(--primaryColorDark)\n\n --invertedTabsActiveTextColor var(--primaryContrastTextColor)\n --invertedTabsInactiveTextColor var(--primaryContrastTextColor)\n --invertedTabsIndicatorColor var(--primaryContrastTextColor)\n --invertedTabsBackgroundColor var(--primaryColor)\n\n --regularButtonPrimaryColor: var(--primaryColor)\n --regularButtonSecondaryColor: var(--primaryColor)\n --regularButtonActiveColor: var(--primaryColorDark)\n --regularButtonConstrastColor: var(--primaryContrastTextColor)\n\n --secondaryButtonPrimaryColor: #FFF\n --secondaryButtonSecondaryColor: var(--silver)\n --secondaryButtonActiveColor: var(--silver)\n --secondaryButtonContrastColor: var(--black)\n\n --dividerColor2: var(--coolGrey)\n\n --iconColor: currentColor\n --textIconColor: var(--charcoalGrey)\n --actionMenuIconColor: var(--slateGrey)\n\n --neutralBackground: var(--paleGrey)\n\n --buttonTextTransform uppercase\n --buttonBorderRadius rem(2)\n\n --navTextColor var(--slateGrey)\n --navTextActiveColor var(--slateGrey)\n --navTextHoverColor var(--charcoalGrey)\n\n --alertErrorColor #fff\n --alertErrorBackgroundColor var(--errorColor)\n\n --alertSuccessColor #fff\n --alertSuccessBackgroundColor var(--successColor)\n\n --alertInfoColor #fff\n --alertInfoBackgroundColor var(--slateGrey)\n// @stylint on\n","html {\n/*\n Grey\n\n Stylus: white - #FFFFFF, CSS: var(--white)\n Stylus: paleGrey - #F5F6F7, CSS: var(--paleGrey)\n Stylus: silver - #D6D8Da, CSS: var(--silver)\n Stylus: coolGrey - #95999D, CSS: var(--coolGrey)\n Stylus: slateGrey - #5D6165, CSS: var(--slateGrey)\n Stylus: charcoalGrey - #32363F, CSS: var(--charcoalGrey)\n Stylus: black - #000000, CSS: var(--black)\n\n\n Styleguide Settings.colors.grey\n */\n --white: #fff;\n --paleGrey: #f5f6f7;\n --silver: #d6d8da;\n --coolGrey: #95999d;\n --slateGrey: #5d6165;\n --charcoalGrey: #32363f;\n --black: #000;\n --overlay: rgba(50,54,63,0.5);\n/*\n Blue\n\n Stylus: zircon - #F5FAFF, CSS: var(--zircon)\n Stylus: dodgerBlue - #297EF2, CSS: var(--dodgerBlue)\n Stylus: scienceBlue - #0B61D6, CSS: var(--scienceBlue)\n\n Styleguide Settings.colors.blue\n */\n --zircon: #f5faff;\n --dodgerBlue: #297ef2;\n --scienceBlue: #0b61d6;\n/*\n Green\n\n Stylus: weirdGreen - #40DE8E, CSS: var(--weirdGreen)\n Stylus: emerald - #35CE68, CSS: var(--emerald)\n Stylus: malachite - #08b442, CSS: var(--malachite)\n\n Styleguide Settings.colors.green\n */\n --weirdGreen: #40de8e;\n --emerald: #35ce68;\n --malachite: #08b442;\n/*\n Orange\n\n Stylus: mango - #FF962F, CSS: var(--mango)\n\n Styleguide Settings.colors.orange\n */\n --mango: #ff962f;\n/*\n Red\n\n Stylus: chablis - #FFF2F2, CSS: var(--chablis)\n Stylus: yourPink - #FDCBCB, CSS: var(--yourPink)\n Stylus: fuchsia - #FC4C83, CSS: var(--fuchsia)\n Stylus: pomegranate - #F52D2D, CSS: var(--pomegranate)\n Stylus: monza - #DD0505, CSS: var(--monza)\n\n Styleguide Settings.colors.red\n */\n --chablis: #fff2f2;\n --yourPink: #fdcbcb;\n --fuchsia: #fc4c83;\n --pomegranate: #f52d2d;\n --monza: #dd0505;\n}\nhtml,\n.CozyTheme--normal {\n/*\n Primary\n\n Stylus: primaryColor - #297EF2, CSS: var(--primaryColor)\n Stylus: primaryColorDark - #0B61D6, CSS: var(--primaryColorDark)\n Stylus: primaryColorLight - #5C9DF5, CSS: var(--primaryColorLight)\n Stylus: primaryColorLightest - #9FC4FB, CSS: var(--primaryColorLightest)\n Stylus: primaryContrastTextColor - #FFFFFF, CSS: var(--primaryContrastTextColor)\n\n Styleguide Settings.theme.primary\n */\n --primaryColor: #297ef2;\n --primaryColorDark: #0b61d6;\n --primaryColorLight: #5c9df5;\n --primaryColorLightest: #9fc4fb;\n/*\n Secondary\n\n Stylus: secondaryColor - #fd7461, CSS: var(--secondaryColor)\n Stylus: secondaryColorDark - #E3503B, CSS: var(--secondaryColorDark)\n Stylus: secondaryColorLight - #ffdeda, CSS: var(--secondaryColorLight)\n Stylus: secondaryColorLightest - #FECDC6, CSS: var(--secondaryColorLightest)\n\n Styleguide Settings.theme.secondary\n */\n --secondaryColor: #fd7461;\n --secondaryColorDark: #e3503b;\n --secondaryColorLight: #ffdeda;\n --secondaryColorLightest: #fecdc6;\n/*\n Background colors\n\n Stylus: primaryBackgroundLight - #F5FAFF, CSS: var(--primaryBackgroundLight)\n Stylus: paperBackgroundColor - #FFF, CSS: var(--paperBackgroundColor)\n Stylus: defaultBackgroundColor - #F5F6F7, CSS: var(--defaultBackgroundColor)\n\n Styleguide Settings.theme.background\n */\n --primaryBackgroundLight: #f5faff;\n --paperBackgroundColor: #fff;\n --defaultBackgroundColor: #f5f6f7;\n/*\n Text colors\n\n Stylus: primaryTextColor - #32363F, CSS: var(--primaryTextColor)\n Stylus: secondaryTextColor - #95999D, CSS: var(--secondaryTextColor)\n Stylus: primaryContrastTextColor - #FFF, CSS: var(--primaryContrastTextColor)\n Stylus: secondaryContrastTextColor - #FFF, CSS: var(--secondaryContrastTextColor)\n\n Styleguide Settings.theme.text\n */\n --primaryTextColor: #32363f;\n --secondaryTextColor: #95999d;\n --primaryContrastTextColor: #fff;\n --secondaryContrastTextColor: #fff;\n/*\n Components colors\n\n Be careful to use the semantic variable, not the hexa color.\n In this case the real color is `#1D212A1F`, and becomes `#E3E4E5` on a white background.\n\n Stylus: dividerColor - #E3E4E5, CSS: var(--dividerColor)\n\n Styleguide Settings.theme.components\n */\n --dividerColor: rgba(29,33,42,0.122);\n/*\n Intention colors\n\n Stylus: successColor - #35CE68, CSS: var(--successColor)\n Stylus: warningColor - #FF962F, CSS: var(--warningColor)\n Stylus: errorColor - #F52D2D, CSS: var(--errorColor)\n Stylus: infoColor - #34373F, CSS: var(--infoColor)\n\n Styleguide Settings.theme.intention\n */\n --successColor: #35ce68;\n --warningColor: #ff962f;\n --errorColor: #f52d2d;\n --errorColorDark: #a00808;\n --errorColorLight: #fcbfbf;\n --errorColorLightest: #fee6e6;\n --errorBackground: #fff2f2;\n/*\n The CSS variables below are historic and we should strive not to\n use them. Prefer to use directly semantic colors above.\n */\n --spinnerColor: var(--primaryColor);\n --linkColor: var(--primaryColor);\n --linkTextDecoration: none;\n --linkColorActive: var(--primaryColorDark);\n --invertedTabsActiveTextColor: var(--primaryContrastTextColor);\n --invertedTabsInactiveTextColor: var(--primaryContrastTextColor);\n --invertedTabsIndicatorColor: var(--primaryContrastTextColor);\n --invertedTabsBackgroundColor: var(--primaryColor);\n --regularButtonPrimaryColor: var(--primaryColor);\n --regularButtonSecondaryColor: var(--primaryColor);\n --regularButtonActiveColor: var(--primaryColorDark);\n --regularButtonConstrastColor: var(--primaryContrastTextColor);\n --secondaryButtonPrimaryColor: #fff;\n --secondaryButtonSecondaryColor: var(--silver);\n --secondaryButtonActiveColor: var(--silver);\n --secondaryButtonContrastColor: var(--black);\n --dividerColor2: var(--coolGrey);\n --iconColor: currentColor;\n --textIconColor: var(--charcoalGrey);\n --actionMenuIconColor: var(--slateGrey);\n --neutralBackground: var(--paleGrey);\n --buttonTextTransform: uppercase;\n --buttonBorderRadius: 0.125rem;\n --navTextColor: var(--slateGrey);\n --navTextActiveColor: var(--slateGrey);\n --navTextHoverColor: var(--charcoalGrey);\n --alertErrorColor: #fff;\n --alertErrorBackgroundColor: var(--errorColor);\n --alertSuccessColor: #fff;\n --alertSuccessBackgroundColor: var(--successColor);\n --alertInfoColor: #fff;\n --alertInfoBackgroundColor: var(--slateGrey);\n}\n@-moz-keyframes spin {\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(359deg);\n }\n}\n@-webkit-keyframes spin {\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(359deg);\n }\n}\n@-o-keyframes spin {\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(359deg);\n }\n}\n@keyframes spin {\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(359deg);\n }\n}\n@-moz-keyframes shake {\n 10%, 90% {\n transform: translate3d(-1px, 0, 0);\n }\n 20%, 80% {\n transform: translate3d(2px, 0, 0);\n }\n 30%, 50%, 70% {\n transform: translate3d(-4px, 0, 0);\n }\n 40%, 60% {\n transform: translate3d(4px, 0, 0);\n }\n}\n@-webkit-keyframes shake {\n 10%, 90% {\n transform: translate3d(-1px, 0, 0);\n }\n 20%, 80% {\n transform: translate3d(2px, 0, 0);\n }\n 30%, 50%, 70% {\n transform: translate3d(-4px, 0, 0);\n }\n 40%, 60% {\n transform: translate3d(4px, 0, 0);\n }\n}\n@-o-keyframes shake {\n 10%, 90% {\n transform: translate3d(-1px, 0, 0);\n }\n 20%, 80% {\n transform: translate3d(2px, 0, 0);\n }\n 30%, 50%, 70% {\n transform: translate3d(-4px, 0, 0);\n }\n 40%, 60% {\n transform: translate3d(4px, 0, 0);\n }\n}\n@keyframes shake {\n 10%, 90% {\n transform: translate3d(-1px, 0, 0);\n }\n 20%, 80% {\n transform: translate3d(2px, 0, 0);\n }\n 30%, 50%, 70% {\n transform: translate3d(-4px, 0, 0);\n }\n 40%, 60% {\n transform: translate3d(4px, 0, 0);\n }\n}\n.c-spinner {\n display: inline-block;\n margin: 0 0.5rem;\n}\n.c-spinner:before {\n content: '';\n}\n.c-spinner p {\n margin-top: 0.938rem;\n line-height: 1.5;\n}\n.c-spinner--middle {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translateX(-50%) translateY(-50%);\n text-align: center;\n}\n.c-spinner--middle:before {\n display: block;\n margin: 0 auto;\n}\n.c-spinner--nomargin {\n margin: 0;\n}\n","/*------------------------------------*\\\n Animations\n\\*------------------------------------*/\n/*\n Animations\n\n Available animations:\n\n spin - Animates an element by rotating it endlessly by 360 deg (used by the loading spinner)\n\n Styleguide Generic.animation\n*/\n@keyframes spin\n from\n transform rotate(0deg)\n to\n transform rotate(359deg)\n \n@keyframes shake\n 10%, 90%\n transform translate3d(-1px, 0, 0)\n \n 20%, 80%\n transform translate3d(2px, 0, 0)\n\n 30%, 50%, 70%\n transform translate3d(-4px, 0, 0)\n\n 40%, 60%\n transform translate3d(4px, 0, 0)\n\n$transition-transform-ease-out\n transition transform .1s ease-out\n\n$spin-anim\n // arguments' order is important: the animation name must stay first\n // so that scoping works\n animation spin 1s linear infinite\n\n@media (prefers-reduced-motion: reduce)\n $transition-transform-ease-out\n transition none\n $spin-anim\n animation none","@require '../../stylus/settings/palette'\n@require '../../stylus/settings/icons'\n@require '../../stylus/tools/mixins'\n\n.c-spinner\n display inline-block\n margin 0 rem(8)\n\n\n\n &:before\n content ''\n\n p\n margin-top rem(15)\n line-height 1.5\n\n// === Modifiers ===\n\n// Box-model\n.c-spinner--middle\n position absolute\n top 50%\n left 50%\n transform translateX(-50%) translateY(-50%)\n text-align center\n\n &:before\n display block\n margin 0 auto\n\n.c-spinner--nomargin\n margin 0\n"],sourceRoot:""}]),t.locals={"CozyTheme--normal":"cozy-ui-bar-CozyTheme--normal--1OuNS","c-spinner":"cozy-ui-bar-c-spinner--3vDLT","c-spinner--middle":"cozy-ui-bar-c-spinner--middle--1Nmj_","c-spinner--nomargin":"cozy-ui-bar-c-spinner--nomargin--2GQe1",spin:"cozy-ui-bar-spin--3DZqI",shake:"cozy-ui-bar-shake--1gzL2"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isWebApp=t.isMobileApp=t.isMobile=t.isIOSApp=t.isIOS=t.isFlagshipApp=t.isAndroidApp=t.isAndroid=t.getPlatform=void 0;var r=n(103),o=function(){return(0,r.isCordova)()?window.cordova.platformId:"web"};t.getPlatform=o;var i=function(e){return o()===e};t.isIOSApp=function(){return i("ios")};t.isAndroidApp=function(){return i("android")};t.isWebApp=function(){return i("web")};t.isMobileApp=function(){return(0,r.isCordova)()};var a=function(){return window.navigator.userAgent&&window.navigator.userAgent.indexOf("Android")>=0};t.isAndroid=a;var u=function(){return window.navigator.userAgent&&/iPad|iPhone|iPod/.test(window.navigator.userAgent)};t.isIOS=u;t.isMobile=function(){return a()||u()};t.isFlagshipApp=function(){var e;return null===(e=window.cozy)||void 0===e?void 0:e.isFlagshipApp}},function(e,t,n){var r=n(64),o=n(43),i=n(26),a=n(82),u=r?r.prototype:void 0,c=u?u.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(a(t))return c?c.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},function(e,t){var n=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return n.test(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hasSafariPlugin=t.hasNetworkInformationPlugin=t.hasInAppBrowserPlugin=t.hasDevicePlugin=void 0;var r=n(103);t.hasDevicePlugin=function(){return(0,r.isCordova)()&&void 0!==window.device};t.hasInAppBrowserPlugin=function(){return(0,r.isCordova)()&&void 0!==window.cordova.InAppBrowser};t.hasSafariPlugin=function(){return new Promise((function(e){(0,r.isCordova)()&&void 0!==window.SafariViewController?window.SafariViewController.isAvailable((function(t){return e(t)})):e(!1)}))};t.hasNetworkInformationPlugin=function(){return(0,r.isCordova)()&&void 0!==window.navigator.connection}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.removeQueryString=t.buildRedirectionURL=t.pickService=t.errorSerializer=void 0;var r,o=(r=function(e,t){var n=Object.assign(t,e);return["name","message"].reduce((function(n,r){return e[r]&&(t[r]=e[r]),n}),n)},{serialize:function(e){return r(e,{})},deserialize:function(e){return r(e,new Error(e.message))}});t.errorSerializer=o;t.pickService=function(e,t){var n=e.attributes.services||[],r=t?n.find(t):n[0];if(!r)throw new Error("Unable to find a service");return r};t.buildRedirectionURL=function(e,t){var n=Object.keys(t).filter((function(e){return n=t[e],!["object","function"].includes(typeof n);var n})).map((function(e){return"".concat(e,"=").concat(t[e])}));return n.length?"".concat(e,"?").concat(n.join("&")):e};t.removeQueryString=function(e){return e.replace(/\?[^/#]*/,"")}},function(e,t,n){var r=n(212);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}},function(e,t,n){var r=n(43),o=n(53),i=n(230),a=n(163);e.exports=function(e,t){if(null==e)return{};var n=r(a(e),(function(e){return[e]}));return t=o(t),i(e,n,(function(e,n){return t(e,n[0])}))}},function(e,t,n){var r=n(54)(n(39),"Map");e.exports=r},function(e,t,n){var r=n(52),o=n(34);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},function(e,t,n){var r=n(384),o=n(391),i=n(393),a=n(394),u=n(395);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=u,e.exports=c},function(e,t,n){var r=n(396),o=n(40);e.exports=function e(t,n,i,a,u){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!=t&&n!=n:r(t,n,i,a,e,u))}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},function(e,t,n){var r=n(219),o=n(220),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,u=a?function(e){return null==e?[]:(e=Object(e),r(a(e),(function(t){return i.call(e,t)})))}:o;e.exports=u},function(e,t){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},function(e,t,n){(function(e){var r=n(207),o=t&&!t.nodeType&&t,i=o&&"object"==typeof e&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.process,u=function(){try{var e=i&&i.require&&i.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=u}).call(this,n(112)(e))},function(e,t,n){var r=n(115),o=n(406),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},function(e,t,n){var r=n(26),o=n(82),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!o(e))||(a.test(e)||!i.test(e)||null!=t&&e in Object(t))}},function(e,t){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},function(e,t,n){var r=n(69),o=n(84),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];i.call(e,t)&&o(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},function(e,t,n){var r=n(218),o=n(233),i=n(117);e.exports=function(e){return r(e,i,o)}},function(e,t,n){var r=n(223)(Object.getPrototypeOf,Object);e.exports=r},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,r)}e.exports=n},function(e,t,n){"use strict";var r,o,i=Function.prototype.toString,a="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof a&&"function"==typeof Object.defineProperty)try{r=Object.defineProperty({},"length",{get:function(){throw o}}),o={}}catch(e){a=null}else a=null;var u=/^\s*class\b/,c=function(e){try{var t=i.call(e);return u.test(t)}catch(e){return!1}},s=Object.prototype.toString,l="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;e.exports=a?function(e){if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if("function"==typeof e&&!e.prototype)return!0;try{a(e,null,r)}catch(e){if(e!==o)return!1}return!c(e)}:function(e){if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if("function"==typeof e&&!e.prototype)return!0;if(l)return function(e){try{return!c(e)&&(i.call(e),!0)}catch(e){return!1}}(e);if(c(e))return!1;var t=s.call(e);return"[object Function]"===t||"[object GeneratorFunction]"===t}},function(e,t,n){"use strict";var r=n(89);e.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},function(e,t,n){"use strict";(function(t){var r=t.Symbol,o=n(448);e.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&o())))}}).call(this,n(33))},function(e,t,n){var r=n(461);e.exports=function(e){return r(e,{weekStartsOn:1})}},function(e,t,n){var r=n(248),o=n(85);e.exports=function(e,t){return e&&r(e,t,o)}},function(e,t,n){var r=n(122);e.exports=function(e){return(null==e?0:e.length)?r(e,1):[]}},function(e,t,n){var r=n(109),o=n(173),i=n(174),a=n(110),u=n(478),c=n(155);e.exports=function(e,t,n){var s=-1,l=o,f=e.length,d=!0,p=[],h=p;if(n)d=!1,l=i;else if(f>=200){var m=t?null:u(e);if(m)return c(m);d=!1,l=a,h=new r}else h=t?[]:p;e:for(;++s<f;){var y=e[s],v=t?t(y):y;if(y=n||0!==y?y:0,d&&v==v){for(var g=h.length;g--;)if(h[g]===v)continue e;t&&h.push(v),p.push(y)}else l(h,v,n)||(h!==p&&h.push(v),p.push(y))}return p}},function(e,t,n){var r=n(249);e.exports=function(e,t){return!!(null==e?0:e.length)&&r(e,t,0)>-1}},function(e,t){e.exports=function(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}},function(e,t,n){var r=n(170),o=n(484)(r);e.exports=o},function(e,t,n){var r=n(216);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},function(e,t,n){var r=n(34),o=Object.create,i=function(){function e(){}return function(t){if(!r(t))return{};if(o)return o(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=i},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.registryEndpoint=t.transformRegistryFormatToStackFormat=void 0;var o=r(n(7)),i=r(n(9)),a=r(n(4)),u=r(n(6)),c=r(n(2)),s=r(n(18));n(500);var l=r(n(501)),f=n(502);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}t.transformRegistryFormatToStackFormat=function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){(0,c.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({id:(0,s.default)(e,"latest_version.manifest.source"),attributes:(0,s.default)(e,"latest_version.manifest")},e)};t.registryEndpoint="/registry/";var p=function(e){var t=e.type,n=t===f.APP_TYPE.KONNECTOR||"node"===t?"konnectors":"apps";return"/".concat(n)},h=function(){function e(t){if((0,a.default)(this,e),!t.client)throw new Error("Need to pass a client to instantiate a Registry API.");this.client=t.client}var t,n,r;return(0,u.default)(e,[{key:"installApp",value:(r=(0,i.default)(o.default.mark((function e(t,n){var r,i,a,u,c,s,f;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.slug,i=t.terms,a={},(u=t.installed)&&(a.PermissionsAcked=u),n&&(a.Source=n),o=void 0,o=new URLSearchParams(a).toString(),c=o?"?".concat(o):"",!i){e.next=9;break}return e.next=9,l.default.save(this.client,i);case 9:return s=t.installed?"PUT":"POST",f=p(t),e.abrupt("return",this.client.stackClient.fetchJSON(s,"".concat(f,"/").concat(r).concat(c)));case 12:case"end":return e.stop()}var o}),e,this)}))),function(e,t){return r.apply(this,arguments)})},{key:"uninstallApp",value:(n=(0,i.default)(o.default.mark((function e(t){var n,r;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.slug,r=p(t),e.abrupt("return",this.client.stackClient.fetchJSON("DELETE","".concat(r,"/").concat(n)));case 3:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"fetchApps",value:(t=(0,i.default)(o.default.mark((function e(t){var n,r,i,a,u,c;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.channel,r=t.type,i=t.limit,a=new URLSearchParams({limit:void 0===i?"200":i,versionsChannel:n,latestChannelVersion:n}).toString(),r&&(a+="&filter[type]=".concat(r)),e.next=6,this.client.stackClient.fetchJSON("GET","/registry?".concat(a));case 6:return u=e.sent,c=u.data,e.abrupt("return",c);case 9:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"fetchAppsInMaintenance",value:function(){return this.client.stackClient.fetchJSON("GET","/registry/maintenance")}},{key:"fetchApp",value:function(e){return this.client.stackClient.fetchJSON("GET","/registry/".concat(e))}},{key:"fetchAppVersion",value:function(e){if(!e.slug)throw new Error("Need to pass a slug to use fetchAppVersion");var t=e.slug,n=e.channel,r=e.version,o=n||r&&"latest"!==r?n:"stable",i="/registry/".concat(t,"/");return i+=o?"".concat(o,"/").concat(r||"latest"):"".concat(r),this.client.stackClient.fetchJSON("GET",i)}}]),e}();t.default=h},function(e,t,n){var r=n(52),o=n(164),i=n(40),a=Function.prototype,u=Object.prototype,c=a.toString,s=u.hasOwnProperty,l=c.call(Object);e.exports=function(e){if(!i(e)||"[object Object]"!=r(e))return!1;var t=o(e);if(null===t)return!0;var n=s.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==l}},function(e,t,n){var r=n(171),o=n(251),i=n(253);e.exports=function(e){return i(o(e,void 0,r),e+"")}},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,o=Array.isArray,i=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),a=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)void 0!==e[r]&&(n[r]=e[r]);return n};e.exports={arrayToObject:a,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var i=t[r],a=i.obj[i.prop],u=Object.keys(a),c=0;c<u.length;++c){var s=u[c],l=a[s];"object"==typeof l&&null!==l&&-1===n.indexOf(l)&&(t.push({obj:a,prop:s}),n.push(l))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(o(n)){for(var r=[],i=0;i<n.length;++i)void 0!==n[i]&&r.push(n[i]);t.obj[t.prop]=r}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(e){return r}},encode:function(e,t,n){if(0===e.length)return e;var r=e;if("symbol"==typeof e?r=Symbol.prototype.toString.call(e):"string"!=typeof e&&(r=String(e)),"iso-8859-1"===n)return escape(r).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var o="",a=0;a<r.length;++a){var u=r.charCodeAt(a);45===u||46===u||95===u||126===u||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122?o+=r.charAt(a):u<128?o+=i[u]:u<2048?o+=i[192|u>>6]+i[128|63&u]:u<55296||u>=57344?o+=i[224|u>>12]+i[128|u>>6&63]+i[128|63&u]:(a+=1,u=65536+((1023&u)<<10|1023&r.charCodeAt(a)),o+=i[240|u>>18]+i[128|u>>12&63]+i[128|u>>6&63]+i[128|63&u])}return o},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(o(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)},merge:function e(t,n,i){if(!n)return t;if("object"!=typeof n){if(o(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(i&&(i.plainObjects||i.allowPrototypes)||!r.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var u=t;return o(t)&&!o(n)&&(u=a(t,i)),o(t)&&o(n)?(n.forEach((function(n,o){if(r.call(t,o)){var a=t[o];a&&"object"==typeof a&&n&&"object"==typeof n?t[o]=e(a,n,i):t.push(n)}else t[o]=n})),t):Object.keys(n).reduce((function(t,o){var a=n[o];return r.call(t,o)?t[o]=e(t[o],a,i):t[o]=a,t}),u)}}},function(e,t,n){var r=n(154);e.exports=function(e,t){return r(e,t)}},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.buildURL=t.encode=void 0;var o=r(n(19)),i=r(n(150)),a=function(e){return Object.entries(e).map((function(e){var t=(0,o.default)(e,2),n=t[0],r=function e(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return Array.isArray(t)?"["+t.map((function(t){return e(t,!0)})).join(",")+"]":n?encodeURIComponent('"'.concat(t,'"')):encodeURIComponent(t)}(t[1]);return"".concat(n,"=").concat(r)})).join("&")};t.encode=a;t.buildURL=function(e,t){var n=a((0,i.default)(t));return n?"".concat(e,"?").concat(n):e}},function(e,t,n){"use strict";var r=n(20),o=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.isDirectory=t.isFile=void 0;var i=o(n(17)),a=o(n(46)),u=o(n(7)),c=o(n(9)),s=o(n(4)),l=o(n(6)),f=o(n(11)),d=o(n(8)),p=o(n(10)),h=o(n(5)),m=o(n(2)),y=o(n(520)),v=o(n(269)),g=o(n(18)),b=o(n(76)),w=o(n(185)),x=(n(267),r(n(30))),C=n(44),k=(n(58),n(72)),S=n(270),_=r(n(183));function A(){var e=(0,a.default)(["/files/_changes"]);return A=function(){return e},e}function O(){var e=(0,a.default)(["/data/","/","/relationships/not_synchronizing"]);return O=function(){return e},e}function E(){var e=(0,a.default)(["/data/","/","/relationships/not_synchronizing"]);return E=function(){return e},e}function B(){var e=(0,a.default)(["/data/","/","/relationships/not_synchronizing"]);return B=function(){return e},e}function j(){var e=(0,a.default)(["/files/","/versions"]);return j=function(){return e},e}function P(){var e=(0,a.default)(["/files/upload/metadata"]);return P=function(){return e},e}function T(){var e=(0,a.default)(["/files/",""]);return T=function(){return e},e}function z(){var e=(0,a.default)(["/files/","?Name=","&Type=directory"]);return z=function(){return e},e}function I(){var e=(0,a.default)(["/files/metadata?Path=",""]);return I=function(){return e},e}function D(){var e=(0,a.default)(["/files/",""]);return D=function(){return e},e}function R(){var e=(0,a.default)(["/files/downloads?Path=",""]);return R=function(){return e},e}function F(){var e=(0,a.default)(["/files/downloads?VersionId=","&Filename=",""]);return F=function(){return e},e}function M(){var e=(0,a.default)(["/files/downloads?Id=","&Filename=",""]);return M=function(){return e},e}function N(){var e=(0,a.default)(["/files/","?Name=","&Type=file&Executable=",""]);return N=function(){return e},e}function L(){var e=(0,a.default)(["/files/","?Name=","&Type=file&Executable=","&MetadataID=","&Size=",""]);return L=function(){return e},e}function U(){var e=(0,a.default)(["/files/",""]);return U=function(){return e},e}function $(){var e=(0,a.default)(["/files/trash/",""]);return $=function(){return e},e}function G(){var e=(0,a.default)(["/files/",""]);return G=function(){return e},e}function q(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return J(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return J(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function J(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function H(){var e=(0,a.default)(["/data/","/","/relationships/references"]);return H=function(){return e},e}function W(){var e=(0,a.default)(["/data/","/","/relationships/references"]);return W=function(){return e},e}function Q(){var e=(0,a.default)(["/files/","/relationships/referenced_by"]);return Q=function(){return e},e}function V(){var e=(0,a.default)(["/files/","/relationships/referenced_by"]);return V=function(){return e},e}function Y(){var e=(0,a.default)(["/data/","/","/relationships/references"]);return Y=function(){return e},e}function K(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,h.default)(e);if(t){var o=(0,h.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,p.default)(this,n)}}function Z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function X(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Z(Object(n),!0).forEach((function(t){(0,m.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Z(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ee=function(e){return X(X({},(0,x.normalizeDoc)(e,"io.cozy.files")),e.attributes)},te=function(e){return e?e.map((function(e){return{_type:e.type,_id:e.id}})):[]},ne=function(e){return e&&e.trim()},re=function(e){var t=ne(e);if("string"!=typeof t||""===t)throw new Error("Missing name argument");if("."===e||".."===e)throw new Error("Invalid filename: ".concat(e));var n=(0,S.getIllegalCharacters)(t);if(n.length)throw new Error("Invalid filename containing illegal character(s): ".concat(n));return t};t.isFile=function(e){var t=e._type,n=e.type;return"io.cozy.files"===t||"directory"===n||"file"===n};t.isDirectory=function(e){return"directory"===e.type};var oe=function(e,t){return new Promise((function(n){e.forEach((function(e){return e.then((function(e){t(e)&&n(!0)}))})),Promise.all(e).then((function(){return n(!1)}))}))},ie=function(e){(0,d.default)(Ee,e);var t,n,r,o,a,p,h,x,S,J,Z,ie,ae,ue,ce,se,le,fe,de,pe,he,me,ye,ve,ge,be,we,xe,Ce,ke,Se,_e,Ae,Oe=K(Ee);function Ee(e,t){var n;return(0,s.default)(this,Ee),n=Oe.call(this,e,t),(0,m.default)((0,f.default)(n),"extractResponseLinkRelated",(function(e){var t=e.links&&e.links.related;if(!t)throw new Error("No related link in server response");return n.stackClient.fullpath(t)})),(0,m.default)((0,f.default)(n),"forceFileDownload",(function(e,t){var n=document.createElement("a");n.setAttribute("href",e),n.setAttribute("download",t),n.style.display="none",document.body.appendChild(n),n.click(),document.body.removeChild(n)})),n.specialDirectories={},n}return(0,l.default)(Ee,[{key:"get",value:function(e){return this.statById(e)}},{key:"fetchFindFiles",value:(Ae=(0,c.default)(u.default.mark((function e(t,n){return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.stackClient.fetchJSON("POST","/files/_find",this.toMangoOptions(t,n)));case 1:case"end":return e.stop()}}),e,this)}))),function(e,t){return Ae.apply(this,arguments)})},{key:"find",value:(_e=(0,c.default)(u.default.mark((function e(t){var n,r,o,i,a,c,s,l,f=arguments;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=f.length>1&&void 0!==f[1]?f[1]:{},r=n.skip,o=void 0===r?0:r,e.prev=2,a="/files/_find",e.next=6,this.findWithMango(a,t,n);case 6:i=e.sent,e.next=12;break;case 9:return e.prev=9,e.t0=e.catch(2),e.abrupt("return",(0,k.dontThrowNotFoundError)(e.t0));case 12:return c=(0,g.default)(i,"links.next",""),s=new URL("".concat(this.stackClient.uri).concat(c)),l=s.searchParams.get("page[cursor]"),e.abrupt("return",{data:i.data.map((function(e){return ee(e)})),meta:i.meta,next:i.meta.count>o+i.data.length,skip:o,bookmark:l||void 0,execution_stats:i.meta.execution_stats});case 16:case"end":return e.stop()}}),e,this,[[2,9]])}))),function(e){return _e.apply(this,arguments)})},{key:"findReferencedBy",value:(Se=(0,c.default)(u.default.mark((function e(t){var n,r,o,i,a,c,s,l,f,d=arguments;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=d.length>1&&void 0!==d[1]?d[1]:{},r=n.skip,o=void 0===r?0:r,i=n.limit,a=n.cursor,c={include:"files","page[limit]":i,"page[cursor]":a,sort:"datetime"},s=(0,C.uri)(Y(),t._type,t._id),l=_.buildURL(s,c),e.next=6,this.stackClient.fetchJSON("GET",l);case 6:return f=e.sent,e.abrupt("return",{data:te(f.data),included:f.included?f.included.map((function(e){return ee(e)})):[],next:(0,v.default)(f,"links.next"),meta:f.meta,skip:o});case 8:case"end":return e.stop()}}),e,this)}))),function(e){return Se.apply(this,arguments)})},{key:"addReferencedBy",value:(ke=(0,c.default)(u.default.mark((function e(t,n){var r,o;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.map((function(e){return{id:e._id,type:e._type}})),e.next=3,this.stackClient.fetchJSON("POST",(0,C.uri)(V(),t._id),{data:r});case 3:return o=e.sent,e.abrupt("return",{data:te(o.data),meta:o.meta});case 5:case"end":return e.stop()}}),e,this)}))),function(e,t){return ke.apply(this,arguments)})},{key:"removeReferencedBy",value:(Ce=(0,c.default)(u.default.mark((function e(t,n){var r,o;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.map((function(e){return{id:e._id,type:e._type}})),e.next=3,this.stackClient.fetchJSON("DELETE",(0,C.uri)(Q(),t._id),{data:r});case 3:return o=e.sent,e.abrupt("return",{data:te(o.data),meta:o.meta});case 5:case"end":return e.stop()}}),e,this)}))),function(e,t){return Ce.apply(this,arguments)})},{key:"addReferencesTo",value:(xe=(0,c.default)(u.default.mark((function e(t,n){var r;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.map((function(e){return{id:e._id,type:"io.cozy.files"}})),e.abrupt("return",this.stackClient.fetchJSON("POST",(0,C.uri)(W(),t._type,t._id),{data:r}));case 2:case"end":return e.stop()}}),e,this)}))),function(e,t){return xe.apply(this,arguments)})},{key:"removeReferencesTo",value:(we=(0,c.default)(u.default.mark((function e(t,n){var r;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.map((function(e){return{id:e._id,type:"io.cozy.files"}})),e.abrupt("return",this.stackClient.fetchJSON("DELETE",(0,C.uri)(H(),t._type,t._id),{data:r}));case 2:case"end":return e.stop()}}),e,this)}))),function(e,t){return we.apply(this,arguments)})},{key:"destroy",value:(be=(0,c.default)(u.default.mark((function e(t){var n,r,o,i,a,c,s,l,f,d=arguments;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=d.length>1&&void 0!==d[1]?d[1]:{},r=n.ifMatch,o=void 0===r?"":r,i=t._id,!((a=t.relationships)&&a.referenced_by&&Array.isArray(a.referenced_by.data))){e.next=20;break}c=q(a.referenced_by.data),e.prev=4,c.s();case 6:if((s=c.n()).done){e.next=12;break}return l=s.value,e.next=10,this.removeReferencesTo({_id:l.id,_type:l.type},[{_id:i}]);case 10:e.next=6;break;case 12:e.next=17;break;case 14:e.prev=14,e.t0=e.catch(4),c.e(e.t0);case 17:return e.prev=17,c.f(),e.finish(17);case 20:return e.next=22,this.stackClient.fetchJSON("DELETE",(0,C.uri)(G(),i),void 0,{headers:{"If-Match":o}});case 22:return f=e.sent,e.abrupt("return",{data:ee(f.data)});case 24:case"end":return e.stop()}}),e,this,[[4,14,17,20]])}))),function(e){return be.apply(this,arguments)})},{key:"emptyTrash",value:function(){return this.stackClient.fetchJSON("DELETE","/files/trash")}},{key:"restore",value:function(e){return this.stackClient.fetchJSON("POST",(0,C.uri)($(),e))}},{key:"deleteFilePermanently",value:(ge=(0,c.default)(u.default.mark((function e(t){var n;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.stackClient.fetchJSON("PATCH",(0,C.uri)(U(),t),{data:{type:"io.cozy.files",id:t,attributes:{permanent_delete:!0}}});case 2:return n=e.sent,e.abrupt("return",n.data);case 4:case"end":return e.stop()}}),e,this)}))),function(e){return ge.apply(this,arguments)})},{key:"upload",value:(ve=(0,c.default)(u.default.mark((function e(t,n){var r;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.ensureDirectoryExists(n);case 2:return r=e.sent,e.abrupt("return",this.createFile(t,{dirId:r}));case 4:case"end":return e.stop()}}),e,this)}))),function(e,t){return ve.apply(this,arguments)})},{key:"create",value:(ye=(0,c.default)(u.default.mark((function e(t){var n,r;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("directory"!==t.type){e.next=4;break}return e.abrupt("return",this.createDirectory(t));case 4:return n=t.data,r=(0,i.default)(t,["data"]),e.abrupt("return",this.createFile(n,r));case 6:case"end":return e.stop()}}),e,this)}))),function(e){return ye.apply(this,arguments)})},{key:"update",value:(me=(0,c.default)(u.default.mark((function e(t){return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.updateAttributes(t.id,t));case 1:case"end":return e.stop()}}),e,this)}))),function(e){return me.apply(this,arguments)})},{key:"createFile",value:(he=(0,c.default)(u.default.mark((function e(t){var n,r,o,a,c,s,l,f,d,p,h,m,y,v=arguments;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=v.length>1&&void 0!==v[1]?v[1]:{},r=n.name,o=n.dirId,a=void 0===o?"":o,c=n.executable,s=n.metadata,l=(0,i.default)(n,["name","dirId","executable","metadata"]),d=c,(f=r)||"string"!=typeof t.name||(f=t.name),f=re(f),void 0===d&&(d=!1),p="",!s){e.next=13;break}return e.next=11,this.createFileMetadata(s);case 11:h=e.sent,p=h.data.id;case 13:return m="",l.contentLength&&(m=String(l.contentLength)),y=(0,C.uri)(L(),a,f,d,p,m),e.abrupt("return",this.doUpload(t,y,l));case 17:case"end":return e.stop()}}),e,this)}))),function(e){return he.apply(this,arguments)})},{key:"updateFile",value:(pe=(0,c.default)(u.default.mark((function e(t){var n,r,o,a,c,s,l,f,d,p,h,m,y,v,g=arguments;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=g.length>1&&void 0!==g[1]?g[1]:{},r=n.executable,o=void 0!==r&&r,a=n.fileId,c=n.name,s=void 0===c?"":c,l=n.metadata,f=(0,i.default)(n,["executable","fileId","name","metadata"]),a&&"string"==typeof a){e.next=4;break}throw new Error("missing fileId argument");case 4:if((d=s||t.name)&&"string"==typeof d){e.next=7;break}throw new Error("missing name in data argument");case 7:if(p=re(d),m=(0,C.uri)(N(),a,p,o),!l){e.next=15;break}return e.next=12,this.createFileMetadata(l);case 12:y=e.sent,h=y.data.id,m+="&MetadataID=".concat(h);case 15:return v="",f.contentLength&&(v=String(f.contentLength),m+="&Size=".concat(v)),e.abrupt("return",this.doUpload(t,m,f,"PUT"));case 18:case"end":return e.stop()}}),e,this)}))),function(e){return pe.apply(this,arguments)})},{key:"getDownloadLinkById",value:function(e,t){return this.stackClient.fetchJSON("POST",(0,C.uri)(M(),e,t)).then(this.extractResponseLinkRelated)}},{key:"getDownloadLinkByRevision",value:function(e,t){return this.stackClient.fetchJSON("POST",(0,C.uri)(F(),e,t)).then(this.extractResponseLinkRelated)}},{key:"getDownloadLinkByPath",value:function(e){return this.stackClient.fetchJSON("POST",(0,C.uri)(R(),e)).then(this.extractResponseLinkRelated)}},{key:"download",value:(de=(0,c.default)(u.default.mark((function e(t){var n,r,o,i,a=arguments;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=a.length>1&&void 0!==a[1]?a[1]:null,r=a.length>2&&void 0!==a[2]?a[2]:void 0,i=r||t.name,n){e.next=9;break}return e.next=6,this.getDownloadLinkById(t._id,i);case 6:o=e.sent,e.next=12;break;case 9:return e.next=11,this.getDownloadLinkByRevision(n,i);case 11:o=e.sent;case 12:this.forceFileDownload("".concat(o,"?Dl=1"),i);case 13:case"end":return e.stop()}}),e,this)}))),function(e){return de.apply(this,arguments)})},{key:"fetchFileContent",value:(fe=(0,c.default)(u.default.mark((function e(t){return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.warn("FileCollection.fetchFileContent() is deprecated. Use FileCollection.fetchFileContentById() instead"),e.abrupt("return",this.fetchFileContentById(t));case 2:case"end":return e.stop()}}),e,this)}))),function(e){return fe.apply(this,arguments)})},{key:"fetchFileContentById",value:(le=(0,c.default)(u.default.mark((function e(t){return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.stackClient.fetch("GET","/files/download/".concat(t)));case 1:case"end":return e.stop()}}),e,this)}))),function(e){return le.apply(this,arguments)})},{key:"getBeautifulSize",value:function(e,t){return(0,C.formatBytes)(parseInt(e.size),t)}},{key:"downloadArchive",value:(se=(0,c.default)(u.default.mark((function e(t){var n,r,o,i,a=arguments;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=a.length>1&&void 0!==a[1]?a[1]:"files",r=(0,C.slugify)(n),e.next=4,this.getArchiveLinkByIds(t,r);case 4:o=e.sent,i=this.stackClient.fullpath(o),this.forceFileDownload(i,r+".zip");case 7:case"end":return e.stop()}}),e,this)}))),function(e){return se.apply(this,arguments)})},{key:"getArchiveLinkByIds",value:(ce=(0,c.default)(u.default.mark((function e(t){var n,r,o=arguments;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=o.length>1&&void 0!==o[1]?o[1]:"files",e.next=3,this.stackClient.fetchJSON("POST","/files/archive",{data:{type:"io.cozy.archives",attributes:{name:n,ids:t}}});case 3:return r=e.sent,e.abrupt("return",r.links.related);case 5:case"end":return e.stop()}}),e,this)}))),function(e){return ce.apply(this,arguments)})},{key:"isChildOf",value:(ue=(0,c.default)(u.default.mark((function e(t,n){var r,o,i,a,c,s,l,f,d,p=this;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=(r="object"==typeof t?t:{_id:t})._id,i=r.dirID,a=r.path,c=("object"==typeof n?n:{_id:n})._id,o!==c&&i!==c){e.next=4;break}return e.abrupt("return",!0);case 4:if(a){e.next=10;break}return e.next=7,this.statById(o);case 7:s=e.sent,a=s.data.path,i=s.data.dirID;case 10:for(l=a,f=[a];""!=l;)h=void 0,h=(u=l).lastIndexOf("/"),""!=(d=u.substring(0,h))&&f.push(d),l=d;return f.reverse(),e.abrupt("return",oe(f.map((function(e){return p.statByPath(e)})),(function(e){return e.data._id==c})));case 15:case"end":return e.stop()}var u,h}),e,this)}))),function(e,t){return ue.apply(this,arguments)})},{key:"statById",value:(ae=(0,c.default)(u.default.mark((function e(t){var n,r,o,i,a,c=arguments;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=c.length>1&&void 0!==c[1]?c[1]:{},r=(0,w.default)(n,["page[limit]","page[skip]","page[cursor]"]),o=(0,C.uri)(D(),t),i=_.buildURL(o,r),e.next=6,this.stackClient.fetchJSON("GET",i);case 6:return a=e.sent,e.abrupt("return",{data:ee(a.data),included:a.included&&a.included.map((function(e){return ee(e)})),links:a.links});case 8:case"end":return e.stop()}}),e,this)}))),function(e){return ae.apply(this,arguments)})},{key:"statByPath",value:(ie=(0,c.default)(u.default.mark((function e(t){var n;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.stackClient.fetchJSON("GET",(0,C.uri)(I(),t));case 2:return n=e.sent,e.abrupt("return",{data:ee(n.data),included:n.included&&n.included.map((function(e){return ee(e)}))});case 4:case"end":return e.stop()}}),e,this)}))),function(e){return ie.apply(this,arguments)})},{key:"createDirectory",value:(Z=(0,c.default)(u.default.mark((function e(){var t,n,r,o,i,a,c,s=arguments;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=s.length>0&&void 0!==s[0]?s[0]:{},n=t.name,r=t.dirId,o=t.lastModifiedDate,i=re(n),a=o&&("string"==typeof o?new Date(o):o),e.next=6,this.stackClient.fetchJSON("POST",(0,C.uri)(z(),r,i),void 0,{headers:{Date:a?a.toGMTString():""}});case 6:return c=e.sent,e.abrupt("return",{data:ee(c.data)});case 8:case"end":return e.stop()}}),e,this)}))),function(){return Z.apply(this,arguments)})},{key:"ensureDirectoryExists",value:(J=(0,c.default)(u.default.mark((function e(t){var n;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.specialDirectories[t]){e.next=5;break}return e.next=3,this.createDirectoryByPath(t);case 3:n=e.sent,this.specialDirectories[t]=n.data._id;case 5:return e.abrupt("return",this.specialDirectories[t]);case 6:case"end":return e.stop()}}),e,this)}))),function(e){return J.apply(this,arguments)})},{key:"getDirectoryOrCreate",value:(S=(0,c.default)(u.default.mark((function e(t,n){var r,o,i,a,c;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!n||n.attributes){e.next=2;break}throw new Error("Malformed parent directory");case 2:return r=ne(t),o="".concat("io.cozy.files.root-dir"===n._id?"":n.attributes.path,"/").concat(r),e.prev=4,e.next=7,this.statByPath(o||"/");case 7:return i=e.sent,e.abrupt("return",i);case 11:if(e.prev=11,e.t0=e.catch(4),a=JSON.parse(e.t0.message),!(c=a.errors)||!c.length||"404"!==c[0].status){e.next=17;break}return e.abrupt("return",this.createDirectory({name:r,dirId:n&&n._id}));case 17:throw c;case 18:case"end":return e.stop()}}),e,this,[[4,11]])}))),function(e,t){return S.apply(this,arguments)})},{key:"createDirectoryByPath",value:(x=(0,c.default)(u.default.mark((function e(t){var n,r,o,i,a,c;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.split("/").filter((function(e){return""!==e})),e.next=3,this.statById("io.cozy.files.root-dir");case 3:if(r=e.sent,n.length){e.next=6;break}return e.abrupt("return",r);case 6:o=r,i=q(n),e.prev=8,i.s();case 10:if((a=i.n()).done){e.next=17;break}return c=a.value,e.next=14,this.getDirectoryOrCreate(c,o.data);case 14:o=e.sent;case 15:e.next=10;break;case 17:e.next=22;break;case 19:e.prev=19,e.t0=e.catch(8),i.e(e.t0);case 22:return e.prev=22,i.f(),e.finish(22);case 25:return e.abrupt("return",o);case 26:case"end":return e.stop()}}),e,this,[[8,19,22,25]])}))),function(e){return x.apply(this,arguments)})},{key:"updateAttributes",value:(h=(0,c.default)(u.default.mark((function e(t,n){var r,o;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=X({},n),n.name&&(r.name=re(n.name)),e.next=4,this.stackClient.fetchJSON("PATCH",(0,C.uri)(T(),t),{data:{type:"io.cozy.files",id:t,attributes:r}});case 4:return o=e.sent,e.abrupt("return",{data:ee(o.data)});case 6:case"end":return e.stop()}}),e,this)}))),function(e,t){return h.apply(this,arguments)})},{key:"updateFileMetadata",value:(p=(0,c.default)(u.default.mark((function e(t,n){return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.warn("CozyClient FileCollection updateFileMetadata method is deprecated. Use updateAttributes instead"),e.abrupt("return",this.updateAttributes(t,n));case 2:case"end":return e.stop()}}),e,this)}))),function(e,t){return p.apply(this,arguments)})},{key:"createFileMetadata",value:(a=(0,c.default)(u.default.mark((function e(t){var n;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.stackClient.fetchJSON("POST",(0,C.uri)(P()),{data:{type:"io.cozy.files.metadata",attributes:t}});case 2:return n=e.sent,e.abrupt("return",{data:n.data});case 4:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"updateMetadataAttribute",value:(o=(0,c.default)(u.default.mark((function e(t,n){var r;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.stackClient.fetchJSON("POST",(0,C.uri)(j(),t),{data:{type:"io.cozy.files.metadata",attributes:n}});case 2:return r=e.sent,e.abrupt("return",{data:r.data});case 4:case"end":return e.stop()}}),e,this)}))),function(e,t){return o.apply(this,arguments)})},{key:"getFileTypeFromName",value:function(e){return y.default.getType(e)||"application/octet-stream"}},{key:"doUpload",value:(r=(0,c.default)(u.default.mark((function e(t,n,r){var o,i,a,c,s,l,f,d,p,h,m,y,v,g,b,w,x,C,k=arguments;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=k.length>3&&void 0!==k[3]?k[3]:"POST",i=t){e.next=4;break}throw new Error("missing data argument");case 4:if(i.buffer&&i.buffer instanceof ArrayBuffer&&(i=i.buffer),a="undefined"!=typeof ArrayBuffer&&i instanceof ArrayBuffer,c="undefined"!=typeof File&&i instanceof File,s="undefined"!=typeof Blob&&i instanceof Blob,l=!0===i.readable&&"function"==typeof i.pipe,f="string"==typeof i,a||c||s||l||f){e.next=12;break}throw new Error("invalid data type");case 12:return p=(d=r||{}).contentType,h=d.contentLength,m=d.checksum,y=d.lastModifiedDate,v=d.ifMatch,p||("string"==typeof i?p="text/plain":i.type?p=i.type:(g=n.split("?"),b=g.length>1?g[1]:"",w=new URLSearchParams(b).get("Name"),p=this.getFileTypeFromName(w.toLowerCase()))),(y=y||i.lastModified)&&(y=new Date(y)),x={"Content-Type":p},h&&(x["Content-Length"]=String(h)),m&&(x["Content-MD5"]=m),y&&(x.Date=y.toGMTString()),v&&(x["If-Match"]=v),e.next=23,this.stackClient.fetchJSON(o,n,i,{headers:x,onUploadProgress:r.onUploadProgress});case 23:return C=e.sent,e.abrupt("return",{data:ee(C.data)});case 25:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return r.apply(this,arguments)})},{key:"findNotSynchronizedDirectories",value:(n=(0,c.default)(u.default.mark((function e(t){var n,r,o,i,a,c,s,l,f,d,p=arguments;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=p.length>1&&void 0!==p[1]?p[1]:{},r=n.skip,o=void 0===r?0:r,i=n.limit,a=n.cursor,c=n.includeFiles,s={include:void 0!==c&&c?"files":void 0,"page[limit]":i,"page[cursor]":a,sort:"id"},l=(0,C.uri)(B(),t._type,t._id),f=_.buildURL(l,s),e.next=6,this.stackClient.fetchJSON("GET",f);case 6:return d=e.sent,e.abrupt("return",{data:d.data.map((function(e){return ee(e)})),included:d.included?d.included.map((function(e){return ee(e)})):[],next:(0,v.default)(d,"links.next"),meta:d.meta,skip:o});case 8:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"addNotSynchronizedDirectories",value:function(e,t){var n=t.map((function(e){return{id:e._id,type:e._type}}));return this.stackClient.fetchJSON("POST",(0,C.uri)(E(),e._type,e._id),{data:n})}},{key:"removeNotSynchronizedDirectories",value:function(e,t){var n=t.map((function(e){return{id:e._id,type:e._type}}));return this.stackClient.fetchJSON("DELETE",(0,C.uri)(O(),e._type,e._id),{data:n})}},{key:"fetchChanges",value:(t=(0,c.default)(u.default.mark((function e(){var t,n,r,o,i,a,c,s,l,f,d=arguments;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=d.length>0&&void 0!==d[0]?d[0]:{},n=d.length>1&&void 0!==d[1]?d[1]:{},r={},"object"!=typeof t?(r.since=t,console.warn('fetchChanges use couchOptions as Object not a string, since is deprecated, please use fetchChanges({since: "'.concat(t,'"}).'))):Object.keys(t).length>0&&Object.assign(r,t),Object.keys(n).length>0&&(Object.assign(r,n),(n.skipTrashed||n.includeFilePath)&&(r.includeDocs=!0)),o=X(X({},(0,b.default)(r,["fields","includeDocs","includeFilePath","skipDeleted","skipTrashed"])),{},{fields:r.fields?r.fields.join(","):null,include_docs:r.includeDocs,include_file_path:r.includeFilePath,skip_deleted:r.skipDeleted,skip_trashed:r.skipTrashed}),i=(0,C.uri)(A()),a=_.buildURL(i,o),e.next=10,this.stackClient.fetchJSON("GET",a);case 10:return c=e.sent,s=c.last_seq,l=c.pending,f=c.results,e.abrupt("return",{newLastSeq:s,pending:l,results:f});case 15:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})}]),Ee}(x.default);t.default=ie},function(e,t,n){var r=n(524),o=n(180)((function(e,t){return null==e?{}:r(e,t)}));e.exports=o},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.chain=t.default=void 0;var o=r(n(31)),i=r(n(4)),a=r(n(6)),u=function(){function e(t){(0,i.default)(this,e),"function"==typeof t&&(this.request=t)}return(0,a.default)(e,[{key:"request",value:function(e,t,n){throw new Error("request is not implemented")}}]),e}();t.default=u;var c=function(e){return"function"==typeof e?new u(e):e},s=function(e,t){if(t)return t;if(e.execute)return e.execute();throw new Error("No link could handle operation ".concat(JSON.stringify(e)))};t.chain=function(e){return[].concat((0,o.default)(e),[s]).map(c).reduce(l)};var l=function(e,t){return new u((function(n,r,o){return e.request(n,r,(function(e,n){return t.request(e,n,o)}))}))}},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(204)),i=(0,o.default)("cozy-client");o.default.suggest.deny("cozy-client","info");var a=i;t.default=a},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.QueryIDGenerator=t.getQueryFromSlice=t.receiveQueryError=t.receiveQueryResult=t.loadQuery=t.initQuery=t.default=t.makeSorterFromDefinition=t.mergeSelectorAndPartialIndex=t.convert$gtNullSelectors=t.isReceivingData=t.isQueryAction=void 0;var o=r(n(4)),i=r(n(6)),a=r(n(19)),u=r(n(2)),c=r(n(31)),s=r(n(75)),l=r(n(282)),f=r(n(550)),d=r(n(283)),p=r(n(552)),h=r(n(179)),m=r(n(125)),y=r(n(553)),v=r(n(26)),g=r(n(189)),b=r(n(18)),w=r(n(558)),x=r(n(559)),C=n(278),k=n(190),S=n(287),_=n(21);n(22);function A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function O(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?A(Object(n),!0).forEach((function(t){(0,u.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var E="INIT_QUERY",B="LOAD_QUERY",j="RECEIVE_QUERY_RESULT",P="RECEIVE_QUERY_ERROR",T=(0,x.default)("debug"),z=function(e){return-1!==[E,B,j,P].indexOf(e.type)};t.isQueryAction=z;t.isReceivingData=function(e){return e.type===j};var I={id:null,definition:null,fetchStatus:"pending",lastFetch:null,lastUpdate:null,lastErrorUpdate:null,lastError:null,hasMore:!1,count:0,data:[],bookmark:null},D=function(e,t,n){var r=(0,m.default)([].concat((0,c.default)(e.data),(0,c.default)(t.data.map(S.properId))));if(e.definition.sort){var o=U(e.definition),i=n[e.definition.doctype],a=i?r.map((function(e){return i[e]})).filter(Boolean):[];r=o(a).map(S.properId)}return r},R=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:I,t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;switch(t.type){case E:return e.lastUpdate&&e.id===t.queryId&&e.definition===t.queryDefinition?e:O(O({},e),{},{id:t.queryId,definition:t.queryDefinition,options:t.options,fetchStatus:e.lastUpdate?e.fetchStatus:"pending"});case B:return"loading"===e.fetchStatus?e:O(O({},e),{},{fetchStatus:"loading"});case j:var r=t.response;if(!r.data)return e;var o=O({fetchStatus:"loaded",lastFetch:Date.now(),lastUpdate:Date.now()},T&&{execution_stats:r.execution_stats});return Array.isArray(r.data)?O(O(O({},e),o),{},{bookmark:r.bookmark||null,hasMore:void 0!==r.next?r.next:e.hasMore,count:r.meta&&r.meta.count?r.meta.count:r.data.length,data:D(e,r,n)}):O(O(O({},e),o),{},{hasMore:!1,count:1,data:[(0,S.properId)(r.data)]});case P:return O(O({},e),{},{id:t.queryId,fetchStatus:"failed",lastError:t.error,lastErrorUpdate:Date.now()});default:return e}},F=function e(t){for(var n={},r=0,o=Object.entries(t);r<o.length;r++){var i=(0,a.default)(o[r],2),u=i[0],c=i[1],s=(0,h.default)(c)?e(c):c;n["$gt"===u&&null===s?"$gtnull":u]=s}return n};t.convert$gtNullSelectors=F;var M=function(e){return O(O({},e.selector),(0,b.default)(e,"partialFilter"))};t.mergeSelectorAndPartialIndex=M;var N=function(e){var t=e.definition.doctype,n=function(e){if(e.selector){var t=M(e);return w.default.use({$gtnull:function(e,t){return!!t}}),(0,w.default)(F(t))}if(e.id){var n={_id:e.id};return(0,w.default)(n)}if(e.ids){var r={_id:{$in:e.ids}};return(0,w.default)(r)}return null}(e.definition);return function(e){return e._type===t&&(!e._deleted&&(!n||!!n(e)))}},L=function(e){return function(t){var n=(0,b.default)(t,e);return(0,g.default)(n)?n.toLowerCase():n}},U=function(e){var t=e.sort;if(t){if((0,v.default)(e.sort)){var n=t.map((function(e){return Object.entries(e)[0]})),r=n.map((function(e){return e[0]})).map(L),o=n.map((function(e){return e[1]}));return function(e){return(0,y.default)(e,r,o)}}return console.warn("Correct update of queries with a sort that is not an array is not supported. Use an array as argument of QueryDefinition::sort"),function(e){return e}}return function(e){return e}};t.makeSorterFromDefinition=U;var $=function(e,t){return function(n){var r=(0,b.default)(e,"response.data")||(0,b.default)(e,"definition.document");return r?(Array.isArray(r)||(r=[r]),r.length?n.definition.doctype!==r[0]._type?n:function(e,t,n){var r=N(e),o=(0,s.default)((0,l.default)(t,r),(function(e){return e.map(S.properId)})),i=o.true,a=void 0===i?[]:i,u=o.false,c=void 0===u?[]:u,h=e.data,m=e.options&&e.options.autoUpdate,y=!m||!1!==m.remove,v=!m||!1!==m.add,g=!m||!1!==m.update,b=y?(0,d.default)(h,c):[],w=v?(0,f.default)(a,h):[],x=g?(0,d.default)(h,a):[],C=b.length||w.length||x.length,k=(0,f.default)((0,p.default)(h,w),b);if(e.definition.sort&&n){var _=U(e.definition),A=n[e.definition.doctype],E=k.map((function(e){return A[e]}));k=_(E).map(S.properId)}return O(O({},e),{},{data:k,count:k.length,lastUpdate:C?Date.now():e.lastUpdate})}(n,r,t):n):n}},G=function(e,t){return function(n){var r=e.updateQueries,o=e.response,i=r[n.id];if(!i)return n;var a=n.definition.doctype,u=n.data,c=i(J(t,a,u),o).map(S.properId);return O(O({},n),{},{data:c,count:c.length,lastUpdate:Date.now()})}},q=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(t.type==E){var o=R(e[t.queryId],t,n);return o===e[t.queryId]?e:O(O({},e),{},(0,u.default)({},t.queryId,o))}if(z(t)){var i=$(t,n);return(0,s.default)(e,(function(e){return e.id==t.queryId?R(e,t,n):r?i(e):e}))}if((0,k.isReceivingMutationResult)(t)){var a=t.updateQueries?G(t,n):$(t,n);return(0,s.default)(e,a)}return e};t.default=q;t.initQuery=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!t.doctype)throw new Error("Cannot init query with no doctype");return{type:E,queryId:e,queryDefinition:t,options:n}};t.loadQuery=function(e){return{type:B,queryId:e}};t.receiveQueryResult=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return O({type:j,queryId:e,response:t},n)};t.receiveQueryError=function(e,t){return{type:P,queryId:e,error:t}};var J=function(e,t,n){return n.map((function(n){return(0,C.getDocumentFromSlice)(e,t,n)}))};t.getQueryFromSlice=function(e,t,n){if(!e||!e[t])return O(O({},I),{},{id:t,data:null});var r=e[t];return n?O(O({},r),{},{data:J(n,r.definition.doctype,r.data)}):r};var H=function(){function e(){(0,o.default)(this,e),this.idCounter=1}return(0,i.default)(e,[{key:"generateRandomId",value:function(){var e=this.idCounter;return this.idCounter++,e.toString()}},{key:"generateId",value:function(e){if((0,_.isAGetByIdQuery)(e)){var t=e.id,n=e.doctype;return"".concat(n,"/").concat(t)}return this.generateRandomId()}}]),e}();t.QueryIDGenerator=H,H.UNNAMED="unnamed"},function(e,t,n){var r=n(52),o=n(26),i=n(40);e.exports=function(e){return"string"==typeof e||!o(e)&&i(e)&&"[object String]"==r(e)}},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.receiveMutationError=t.receiveMutationResult=t.initMutation=t.isReceivingMutationResult=t.isMutationAction=void 0;var o=r(n(2));function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var u="INIT_MUTATION",c="RECEIVE_MUTATION_RESULT",s="RECEIVE_MUTATION_ERROR";t.isMutationAction=function(e){return-1!==[u,c,s].indexOf(e.type)};t.isReceivingMutationResult=function(e){return e.type===c};t.initMutation=function(e,t){return{type:u,mutationId:e,definition:t}};t.receiveMutationResult=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return a(a({type:c,mutationId:e,response:t},n),{},{definition:r})};t.receiveMutationError=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return{type:s,mutationId:e,error:t,definition:n}}},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.getReferencedById=t.getReferencedBy=t.isReferencedById=t.isReferencedBy=t.create=t.resolveClass=t.attachRelationships=t.responseToRelationship=t.pickTypeAndId=void 0;var o=r(n(2)),i=r(n(185)),a=r(n(150)),u=r(n(61)),c=r(n(291)),s=r(n(292)),l=r(n(98)),f=r(n(293)),d=r(n(277));n(22);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var m=function(e){return(0,i.default)(e,"_type","_id")};t.pickTypeAndId=m;t.responseToRelationship=function(e){return(0,a.default)({data:(t=m,n=e.data,Array.isArray(n)?n.map(t):t(n)),meta:e.meta,next:e.next,skip:e.skip,bookmark:e.bookmark});var t,n};var y=function(e,t){return h(h({},e),{},{relationships:h(h({},e.relationships),t)})};t.attachRelationships=function(e,t){if(Array.isArray(e.data))return h(h({},e),{},{data:e.data.map((function(e){return y(e,t[e._id])}))});var n=e.data;return h(h({},e),{},{data:y(n,t[n._id])})};var v={"io.cozy.files:has-many":d.default,"has-many":l.default,"belongs-to-in-place":s.default,"has-one":c.default,"has-one-in-place":s.default,"has-many-in-place":f.default};t.resolveClass=function(e,t){if(void 0===t)throw new Error("Undefined type for "+e);if("string"!=typeof t)return t;var n="".concat(e,":").concat(t),r=v[n]||v[t];if(r)return r;throw new Error("Unknown association '".concat(t,"'"))};t.create=function(e,t,n){var r=t.name,o=t.type,i=t.doctype;if(e[r]instanceof u.default)throw new Error("Association ".concat(r," already exists"));return new o(e,r,i,n)};t.isReferencedBy=function(e,t){var n,r;return((null==e||null===(n=e.relationships)||void 0===n||null===(r=n.referenced_by)||void 0===r?void 0:r.data)||(null==e?void 0:e.referenced_by)||[]).some((function(e){return e.type===t}))};t.isReferencedById=function(e,t,n){var r,o;return((null==e||null===(r=e.relationships)||void 0===r||null===(o=r.referenced_by)||void 0===o?void 0:o.data)||(null==e?void 0:e.referenced_by)||[]).some((function(e){return e.type===t&&e.id===n}))};t.getReferencedBy=function(e,t){var n,r;return((null==e||null===(n=e.relationships)||void 0===n||null===(r=n.referenced_by)||void 0===r?void 0:r.data)||(null==e?void 0:e.referenced_by)||[]).filter((function(e){return e.type===t}))};t.getReferencedById=function(e,t,n){var r,o;return((null==e||null===(r=e.relationships)||void 0===r||null===(o=r.referenced_by)||void 0===o?void 0:o.data)||(null==e?void 0:e.referenced_by)||[]).filter((function(e){return e.type===t&&e.id===n}))}},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.rootCozyUrl=t.InvalidCozyUrlError=t.InvalidProtocolError=t.generateWebLink=t.dehydrate=void 0;var o=r(n(31)),i=r(n(246)),a=r(n(7)),u=r(n(9)),c=r(n(4)),s=r(n(8)),l=r(n(10)),f=r(n(5)),d=r(n(35)),p=r(n(19)),h=n(126);function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,f.default)(e);if(t){var o=(0,f.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,l.default)(this,n)}}function y(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return v(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return v(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}t.dehydrate=function(e){return Object.entries(e).reduce((function(e,t){var n=(0,p.default)(t,2),r=n[0],o=n[1],i=e;if(o instanceof h.Association){if(!o.dehydrate)throw new Error("Association on key ".concat(r," should have a dehydrate method"));i=o.dehydrate(i)}else i[r]=o;return i}),{})};t.generateWebLink=function(e){var t,n=e.cozyUrl,r=e.searchParams,o=e.pathname,i=e.hash,a=e.slug,u=e.subDomainType,c=r||[],s=new URL(n);s.host="nested"===u?"".concat(a,".").concat(s.host):s.host.split(".").map((function(e,t){return 0===t?e+"-"+a:e})).join("."),s.pathname=o,s.hash=(t=i)?t.startsWith("/")?t:"/"+t:"/";var l,f=y(c);try{for(f.s();!(l=f.n()).done;){var d=(0,p.default)(l.value,2),h=d[0],m=d[1];s.searchParams.set(h,m)}}catch(e){f.e(e)}finally{f.f()}return s.toString()};var g=function(e){(0,s.default)(n,e);var t=m(n);function n(e){var r;return(0,c.default)(this,n),(r=t.call(this,"Invalid URL protocol ".concat(e.protocol))).url=e,r}return n}((0,d.default)(Error));t.InvalidProtocolError=g;var b=function(e){(0,s.default)(n,e);var t=m(n);function n(e){var r;return(0,c.default)(this,n),(r=t.call(this,"URL ".concat(e.toString()," does not seem to be a valid Cozy URL"))).url=e,r}return n}((0,d.default)(Error));t.InvalidCozyUrlError=b;var w=function(e){var t=e.protocol,n=e.hostname,r=e.port;return(""!==t?"".concat(t,"//"):"https://")+n+(""!==r?":".concat(r):"")},x=function(e){return w(e)+"/.well-known/change-password"},C=function(){var e=(0,u.default)(a.default.mark((function e(t){var n,r;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(x(t));case 2:if(n=e.sent,404!==(r=n.status)){e.next=6;break}throw new b(t);case 6:return e.abrupt("return",200===r);case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),k=function(){var e=(0,u.default)(a.default.mark((function e(t){var n,r,u,c,s,l;return a.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(["http:","https:"].includes(t.protocol)){e.next=2;break}throw new g(t);case 2:return e.next=4,C(t);case 4:if(!e.sent){e.next=6;break}return e.abrupt("return",t);case 6:if(!/^[^.-][^.]+-[^.-]+\./.test(t.hostname)){e.next=13;break}return n=t.hostname.split("."),r=(0,i.default)(n),u=r[0],c=r.slice(1),s=[u.replace(/-.+/,"")].concat((0,o.default)(c)).join("."),e.next=11,C({protocol:t.protocol,hostname:s,port:t.port});case 11:if(!e.sent){e.next=13;break}return e.abrupt("return",new URL(w({protocol:t.protocol,hostname:s,port:t.port})));case 13:return l=t.hostname.split(".").splice(1).join("."),e.next=16,C({protocol:t.protocol,hostname:l,port:t.port});case 16:if(!e.sent){e.next=18;break}return e.abrupt("return",new URL(w({protocol:t.protocol,hostname:l,port:t.port})));case 18:throw new b(t);case 19:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();t.rootCozyUrl=k},function(e,t,n){var r=n(177),o=n(194);function i(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}i.prototype=r(o.prototype),i.prototype.constructor=i,e.exports=i},function(e,t){e.exports=function(){}},function(e,t,n){var r=n(177),o=n(194);function i(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}i.prototype=r(o.prototype),i.prototype.constructor=i,e.exports=i},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.clientContext=void 0;var o=n(0),i=(r(n(41)),(0,o.createContext)({client:null,store:null}));t.clientContext=i;var a=i;t.default=a},function(e,t,n){"use strict";var r=n(20),o=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.getQualification=t.setQualification=t.Qualification=void 0;var i=o(n(2)),a=o(n(4)),u=o(n(6)),c=n(605),s=r(n(606));function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){(0,i.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var d=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,a.default)(this,e);var r=s.qualifications.find((function(e){return e.label===t}));if(!r)throw new Error("No qualification found for the label ".concat(t));this.label=r.label,this.purpose=n.purpose||r.purpose,this.sourceCategory=n.sourceCategory||r.sourceCategory,this.sourceSubCategory=n.sourceSubCategory||r.sourceSubCategory,this.subjects=n.subjects||r.subjects}return(0,u.default)(e,[{key:"checkAttributes",value:function(e){if(this.purpose!==e.purpose){if(this.purpose)throw new Error("The purpose for the label ".concat(this.label," should be ").concat(this.purpose,". ")+"Please use this or open an issue on https://github.com/cozy/cozy-client/issues");s.purposeKnownValues.includes(e.purpose)||console.info("This purpose is not listed among the known values: ".concat(e.purpose,". ")+"Please open an issue on https://github.com/cozy/cozy-client/issues")}if(this.sourceCategory!==e.sourceCategory){if(this.sourceCategory)throw new Error("The sourceCategory for the label ".concat(this.label," should be ").concat(this.sourceCategory,". ")+"Please use this or open an issue on https://github.com/cozy/cozy-client/issues");s.sourceCategoryKnownValues.includes(e.sourceCategory)||console.info("This sourceCategory is not listed among the known values: ".concat(e.sourceCategory,". ")+"Please open an issue on https://github.com/cozy/cozy-client/issues")}if(this.sourceSubCategory!==e.sourceSubCategory){if(this.sourceSubCategory)throw new Error("The sourceSubCategory for the label ".concat(this.label," should be ").concat(this.sourceSubCategory,". ")+"Please use this or open an issue on https://github.com/cozy/cozy-client/issues");s.sourceSubCategoryKnownValues.includes(e.sourceSubCategory)||console.info("This sourceSubCategory is not listed among the known values: ".concat(e.sourceSubCategory,". ")+"Please open an issue on https://github.com/cozy/cozy-client/issues")}if((0,c.difference)(this.subjects,e.subjects).length>0)throw new Error("The subjects for the label ".concat(this.label," should include ").concat(this.subjects,". ")+"Please use this or open an issue on https://github.com/cozy/cozy-client/issues");var t=(0,c.difference)(e.subjects,this.subjects);if(t.length>0){var n=(0,c.difference)(t,s.subjectsKnownValues);n.length>0&&console.info("These subjects are not listed among the known values: ".concat(n,". ")+"Please open an issue on https://github.com/cozy/cozy-client/issues")}}},{key:"setPurpose",value:function(t){return new e(this.label,f(f({},this.toQualification()),{},{purpose:t}))}},{key:"setSourceCategory",value:function(t){return new e(this.label,f(f({},this.toQualification()),{},{sourceCategory:t}))}},{key:"setSourceSubCategory",value:function(t){return new e(this.label,f(f({},this.toQualification()),{},{sourceSubCategory:t}))}},{key:"setSubjects",value:function(t){return new e(this.label,f(f({},this.toQualification()),{},{subjects:t}))}},{key:"toQualification",value:function(){return{label:this.label,purpose:this.purpose,sourceCategory:this.sourceCategory,sourceSubCategory:this.sourceSubCategory,subjects:this.subjects}}}]),e}();t.Qualification=d,d.getByLabel=function(e){return new d(e)};t.setQualification=function(e,t){if(!t.label)throw new Error("You must set a label to qualify");return new d(t.label).checkAttributes(t),(0,c.set)(e,"metadata.qualification",t)};t.getQualification=function(e){var t=(0,c.get)(e,"metadata.qualification");return new d(t.label,t.qualification).toQualification()}},function(e,t,n){"use strict";var r=n(623);e.exports=function(e){return"symbol"==typeof e?"Symbol":"bigint"==typeof e?"BigInt":r(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(e===t)return!1;var o=Object.keys(e),i=Object.keys(t);if(o.length!==i.length)return!0;var a={},u=void 0,c=void 0;for(u=0,c=n.length;u<c;u++)a[n[u]]=!0;for(u=0,c=o.length;u<c;u++){var s=o[u],l=e[s],f=t[s];if(l!==f){if(!a[s]||null===l||null===f||"object"!==(void 0===l?"undefined":r(l))||"object"!==(void 0===f?"undefined":r(f)))return!0;var d=Object.keys(l),p=Object.keys(f);if(d.length!==p.length)return!0;for(var h=0,m=d.length;h<m;h++){var y=d[h];if(l[y]!==f[y])return!0}}}return!1}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r="";if(!t)return r;var o=n.indent,u=void 0===o?0:o,c=t.fallbacks;if(u++,c)if(Array.isArray(c))for(var s=0;s<c.length;s++){var l=c[s];for(var f in l){var d=l[f];null!=d&&(r+="\n"+a(f+": "+(0,i.default)(d)+";",u))}}else for(var p in c){var h=c[p];null!=h&&(r+="\n"+a(p+": "+(0,i.default)(h)+";",u))}for(var m in t){var y=t[m];null!=y&&"fallbacks"!==m&&(r+="\n"+a(m+": "+(0,i.default)(y)+";",u))}return r||n.allowEmpty?(u--,r=a(e+" {"+r+"\n",u)+a("}",u)):r};var r,o=n(130),i=(r=o)&&r.__esModule?r:{default:r};function a(e,t){for(var n="",r=0;r<t;r++)n+=" ";return n+e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(322),i=(r=o)&&r.__esModule?r:{default:r};t.default=new i.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(132);var i="",a="";if(((r=o)&&r.__esModule?r:{default:r}).default){var u={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},c=document.createElement("p").style;for(var s in u)if(s+"Transform"in c){i=s,a=u[s];break}}t.default={js:i,css:a}},function(e,t,n){"use strict";function r(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(o){return"function"==typeof o?o(n,r,e):t(o)}}}}n.r(t);var o=r();o.withExtraArgument=r,t.default=o},function(e,t,n){var r=n(542),o=r.enable,i=r.disable,a="undefined"!=typeof navigator&&/chrome/i.test(navigator.userAgent),u=n(544);if(r.defaultBackend=a?u.minilog:u,"undefined"!=typeof window){try{r.enable(JSON.parse(window.localStorage.minilogSettings))}catch(e){}if(window.location&&window.location.search){var c=RegExp("[?&]minilog=([^&]*)").exec(window.location.search);c&&r.enable(decodeURIComponent(c[1]))}}r.enable=function(){o.call(r,!0);try{window.localStorage.minilogSettings=JSON.stringify(!0)}catch(e){}return this},r.disable=function(){i.call(r);try{delete window.localStorage.minilogSettings}catch(e){}return this},(e.exports=r).backends={array:n(547),browser:r.defaultBackend,localStorage:n(548),jQuery:n(549)}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}n.r(t),n.d(t,"__DO_NOT_USE__ActionTypes",(function(){return s})),n.d(t,"applyMiddleware",(function(){return y})),n.d(t,"bindActionCreators",(function(){return h})),n.d(t,"combineReducers",(function(){return d})),n.d(t,"compose",(function(){return m})),n.d(t,"createStore",(function(){return f}));var u="function"==typeof Symbol&&Symbol.observable||"@@observable",c=function(){return Math.random().toString(36).substring(7).split("").join(".")},s={INIT:"@@redux/INIT"+c(),REPLACE:"@@redux/REPLACE"+c(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+c()}};function l(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function f(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(a(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(a(1));return n(f)(e,t)}if("function"!=typeof e)throw new Error(a(2));var o=e,i=t,c=[],d=c,p=!1;function h(){d===c&&(d=c.slice())}function m(){if(p)throw new Error(a(3));return i}function y(e){if("function"!=typeof e)throw new Error(a(4));if(p)throw new Error(a(5));var t=!0;return h(),d.push(e),function(){if(t){if(p)throw new Error(a(6));t=!1,h();var n=d.indexOf(e);d.splice(n,1),c=null}}}function v(e){if(!l(e))throw new Error(a(7));if(void 0===e.type)throw new Error(a(8));if(p)throw new Error(a(9));try{p=!0,i=o(i,e)}finally{p=!1}for(var t=c=d,n=0;n<t.length;n++){(0,t[n])()}return e}function g(e){if("function"!=typeof e)throw new Error(a(10));o=e,v({type:s.REPLACE})}function b(){var e,t=y;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(a(11));function n(){e.next&&e.next(m())}return n(),{unsubscribe:t(n)}}})[u]=function(){return this},e}return v({type:s.INIT}),(r={dispatch:v,subscribe:y,getState:m,replaceReducer:g})[u]=b,r}function d(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var o=t[r];0,"function"==typeof e[o]&&(n[o]=e[o])}var i,u=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if(void 0===n(void 0,{type:s.INIT}))throw new Error(a(12));if(void 0===n(void 0,{type:s.PROBE_UNKNOWN_ACTION()}))throw new Error(a(13))}))}(n)}catch(e){i=e}return function(e,t){if(void 0===e&&(e={}),i)throw i;for(var r=!1,o={},c=0;c<u.length;c++){var s=u[c],l=n[s],f=e[s],d=l(f,t);if(void 0===d){t&&t.type;throw new Error(a(14))}o[s]=d,r=r||d!==f}return(r=r||u.length!==Object.keys(e).length)?o:e}}function p(e,t){return function(){return t(e.apply(this,arguments))}}function h(e,t){if("function"==typeof e)return p(e,t);if("object"!=typeof e||null===e)throw new Error(a(16));var n={};for(var r in e){var o=e[r];"function"==typeof o&&(n[r]=p(o,t))}return n}function m(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function y(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error(a(15))},o={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},u=t.map((function(e){return e(o)}));return r=m.apply(void 0,u)(n.dispatch),i(i({},n),{},{dispatch:r})}}}},function(e,t,n){(t=e.exports=n(70)(!0)).push([e.i,".cozy-ui-bar-icon--spin--3IvCw{-webkit-animation:cozy-ui-bar-spin--3r0RK 1s linear infinite;animation:cozy-ui-bar-spin--3r0RK 1s linear infinite}@-webkit-keyframes cozy-ui-bar-spin--3r0RK{from{transform:rotate(0deg)}to{transform:rotate(359deg)}}@keyframes cozy-ui-bar-spin--3r0RK{from{transform:rotate(0deg)}to{transform:rotate(359deg)}}@-webkit-keyframes cozy-ui-bar-shake--1Tqb8{10%,90%{transform:translate3d(-1px,0,0)}20%,80%{transform:translate3d(2px,0,0)}30%,50%,70%{transform:translate3d(-4px,0,0)}40%,60%{transform:translate3d(4px,0,0)}}@keyframes cozy-ui-bar-shake--1Tqb8{10%,90%{transform:translate3d(-1px,0,0)}20%,80%{transform:translate3d(2px,0,0)}30%,50%,70%{transform:translate3d(-4px,0,0)}40%,60%{transform:translate3d(4px,0,0)}}.cozy-ui-bar-icon--3NURx{fill:var(--iconColor);transform:translateZ(0)}.cozy-ui-bar-icon--preserveColor--bqA0L{fill:inherit}@media(prefers-reduced-motion:reduce){.cozy-ui-bar-icon--spin--3IvCw{-webkit-animation:none;animation:none}}","",{version:3,sources:["/home/anc/cozy/cozy-bar/node_modules/cozy-ui/react/Icon/node_modules/cozy-ui/stylus/generic/animations.styl","/home/anc/cozy/cozy-bar/node_modules/cozy-ui/react/Icon/styles.styl","/home/anc/cozy/cozy-bar/node_modules/cozy-ui/react/Icon/node_modules/cozy-ui/react/Icon/styles.styl"],names:[],mappings:"AAkCA,+BAGI,6DAAA,oDCnCJ,CDUA,2CACI,KACI,sBCKN,CDJE,GACI,wBCMN,CACF,CDXA,mCACI,KACI,sBCqBN,CDpBE,GACI,wBCsBN,CACF,CDrBA,4CACI,QACI,+BCqCN,CDnCE,QACI,8BCqCN,CDnCE,YACI,+BCqCN,CDnCE,QACI,8BCqCN,CACF,CDjDA,oCACI,QACI,+BCiEN,CD/DE,QACI,8BCiEN,CD/DE,YACI,+BCiEN,CD/DE,QACI,8BCiEN,CACF,CC7FA,yBACI,sBAEA,uBD8FJ,CC5FA,wCACI,YD8FJ,CD/DsC,sCAGlC,+BACI,uBAAA,cCrCN,CACF,CAAA",file:"styles.styl",sourcesContent:["/*------------------------------------*\\\n Animations\n\\*------------------------------------*/\n/*\n Animations\n\n Available animations:\n\n spin - Animates an element by rotating it endlessly by 360 deg (used by the loading spinner)\n\n Styleguide Generic.animation\n*/\n@keyframes spin\n from\n transform rotate(0deg)\n to\n transform rotate(359deg)\n \n@keyframes shake\n 10%, 90%\n transform translate3d(-1px, 0, 0)\n \n 20%, 80%\n transform translate3d(2px, 0, 0)\n\n 30%, 50%, 70%\n transform translate3d(-4px, 0, 0)\n\n 40%, 60%\n transform translate3d(4px, 0, 0)\n\n$transition-transform-ease-out\n transition transform .1s ease-out\n\n$spin-anim\n // arguments' order is important: the animation name must stay first\n // so that scoping works\n animation spin 1s linear infinite\n\n@media (prefers-reduced-motion: reduce)\n $transition-transform-ease-out\n transition none\n $spin-anim\n animation none",".icon--spin {\n animation: spin 1s linear infinite;\n}\n@media (prefers-reduced-motion: reduce) {\n .icon--spin {\n animation: none;\n }\n}\n@-moz-keyframes spin {\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(359deg);\n }\n}\n@-webkit-keyframes spin {\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(359deg);\n }\n}\n@-o-keyframes spin {\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(359deg);\n }\n}\n@keyframes spin {\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(359deg);\n }\n}\n@-moz-keyframes shake {\n 10%, 90% {\n transform: translate3d(-1px, 0, 0);\n }\n 20%, 80% {\n transform: translate3d(2px, 0, 0);\n }\n 30%, 50%, 70% {\n transform: translate3d(-4px, 0, 0);\n }\n 40%, 60% {\n transform: translate3d(4px, 0, 0);\n }\n}\n@-webkit-keyframes shake {\n 10%, 90% {\n transform: translate3d(-1px, 0, 0);\n }\n 20%, 80% {\n transform: translate3d(2px, 0, 0);\n }\n 30%, 50%, 70% {\n transform: translate3d(-4px, 0, 0);\n }\n 40%, 60% {\n transform: translate3d(4px, 0, 0);\n }\n}\n@-o-keyframes shake {\n 10%, 90% {\n transform: translate3d(-1px, 0, 0);\n }\n 20%, 80% {\n transform: translate3d(2px, 0, 0);\n }\n 30%, 50%, 70% {\n transform: translate3d(-4px, 0, 0);\n }\n 40%, 60% {\n transform: translate3d(4px, 0, 0);\n }\n}\n@keyframes shake {\n 10%, 90% {\n transform: translate3d(-1px, 0, 0);\n }\n 20%, 80% {\n transform: translate3d(2px, 0, 0);\n }\n 30%, 50%, 70% {\n transform: translate3d(-4px, 0, 0);\n }\n 40%, 60% {\n transform: translate3d(4px, 0, 0);\n }\n}\n.icon {\n fill: var(--iconColor);\n transform: translateZ(0);\n}\n.icon--preserveColor {\n fill: inherit;\n}\n","@require 'settings/icons.styl'\n\n.icon\n fill var(--iconColor)\n // Fix blurry icons on Firefox\n transform translateZ(0)\n\n.icon--preserveColor\n fill inherit\n\n.icon--spin\n @extend $icon-spin\n"],sourceRoot:""}]),t.locals={"icon--spin":"cozy-ui-bar-icon--spin--3IvCw",spin:"cozy-ui-bar-spin--3r0RK",icon:"cozy-ui-bar-icon--3NURx","icon--preserveColor":"cozy-ui-bar-icon--preserveColor--bqA0L",shake:"cozy-ui-bar-shake--1Tqb8"}},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(33))},function(e,t,n){var r=n(209);e.exports=function(e,t,n){var o=e.length;return n=void 0===n?o:n,!t&&n>=o?e:r(e,t,n)}},function(e,t){e.exports=function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}},function(e,t,n){var r=n(355),o=n(146),i=n(356);e.exports=function(e){return o(e)?i(e):r(e)}},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t){var n=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},function(e,t,n){var r=n(109),o=n(399),i=n(110);e.exports=function(e,t,n,a,u,c){var s=1&n,l=e.length,f=t.length;if(l!=f&&!(s&&f>l))return!1;var d=c.get(e);if(d&&c.get(t))return d==t;var p=-1,h=!0,m=2&n?new r:void 0;for(c.set(e,t),c.set(t,e);++p<l;){var y=e[p],v=t[p];if(a)var g=s?a(v,y,p,t,e,c):a(y,v,p,e,t,c);if(void 0!==g){if(g)continue;h=!1;break}if(m){if(!o(t,(function(e,t){if(!i(m,t)&&(y===e||u(y,e,n,a,c)))return m.push(t)}))){h=!1;break}}else if(y!==v&&!u(y,v,n,a,c)){h=!1;break}}return c.delete(e),c.delete(t),h}},function(e,t,n){var r=n(39).Uint8Array;e.exports=r},function(e,t,n){var r=n(218),o=n(156),i=n(85);e.exports=function(e){return r(e,i,o)}},function(e,t,n){var r=n(111),o=n(26);e.exports=function(e,t,n){var i=t(e);return o(e)?i:r(i,n(e))}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}},function(e,t){e.exports=function(){return[]}},function(e,t,n){var r=n(222),o=n(86),i=n(26),a=n(87),u=n(113),c=n(114),s=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),l=!n&&o(e),f=!n&&!l&&a(e),d=!n&&!l&&!f&&c(e),p=n||l||f||d,h=p?r(e.length,String):[],m=h.length;for(var y in e)!t&&!s.call(e,y)||p&&("length"==y||f&&("offset"==y||"parent"==y)||d&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||u(y,m))||h.push(y);return h}},function(e,t){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t,n){var r=n(54)(n(39),"Set");e.exports=r},function(e,t,n){var r=n(54)(n(39),"WeakMap");e.exports=r},function(e,t,n){var r=n(34);e.exports=function(e){return e==e&&!r(e)}},function(e,t){e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},function(e,t,n){var r=n(413),o=n(229);e.exports=function(e,t){return null!=e&&o(e,t,r)}},function(e,t,n){var r=n(67),o=n(86),i=n(26),a=n(113),u=n(157),c=n(68);e.exports=function(e,t,n){for(var s=-1,l=(t=r(t,e)).length,f=!1;++s<l;){var d=c(t[s]);if(!(f=null!=e&&n(e,d)))break;e=e[d]}return f||++s!=l?f:!!(l=null==e?0:e.length)&&u(l)&&a(d,l)&&(i(e)||o(e))}},function(e,t,n){var r=n(116),o=n(231),i=n(67);e.exports=function(e,t,n){for(var a=-1,u=t.length,c={};++a<u;){var s=t[a],l=r(e,s);n(l,s)&&o(c,i(s,e),l)}return c}},function(e,t,n){var r=n(162),o=n(67),i=n(113),a=n(34),u=n(68);e.exports=function(e,t,n,c){if(!a(e))return e;for(var s=-1,l=(t=o(t,e)).length,f=l-1,d=e;null!=d&&++s<l;){var p=u(t[s]),h=n;if(s!=f){var m=d[p];void 0===(h=c?c(m,p,d):void 0)&&(h=a(m)?m:i(t[s+1])?[]:{})}r(d,p,h),d=d[p]}return e}},function(e,t,n){var r=n(54),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},function(e,t,n){var r=n(111),o=n(164),i=n(156),a=n(220),u=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,i(e)),e=o(e);return t}:a;e.exports=u},function(e,t){var n={black:"#000",red:"#c23621",green:"#25bc26",yellow:"#bbbb00",blue:"#492ee1",magenta:"#d338d3",cyan:"#33bbc8",gray:"#808080",purple:"#708"};e.exports=function(e,t){return t?"color: #fff; background: "+n[e]+";":"color: "+n[e]+";"}},function(e,t,n){"use strict";
12
12
  /*
13
13
  object-assign
14
14
  (c) Sindre Sorhus
15
15
  @license MIT
16
- */var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function a(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,u,c=a(e),s=1;s<arguments.length;s++){for(var l in n=Object(arguments[s]))o.call(n,l)&&(c[l]=n[l]);if(r){u=r(n);for(var f=0;f<u.length;f++)i.call(n,u[f])&&(c[u[f]]=n[u[f]])}}return c}},function(e,t,n){"use strict";var r=n(89),o=n(119),i=o("%Function.prototype.apply%"),a=o("%Function.prototype.call%"),u=o("%Reflect.apply%",!0)||r.call(a,i);e.exports=function(){return u(r,a,arguments)},e.exports.apply=function(){return u(r,i,arguments)}},function(e,t,n){"use strict";var r=Object.prototype.toString;e.exports=function(e){var t=r.call(e),n="[object Arguments]"===t;return n||(n="[object Array]"!==t&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===r.call(e.callee)),n}},function(e,t,n){"use strict";var r=n(451),o=n(452),i=n(453)("String.prototype.replace"),a=/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/,u=/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/;e.exports=function(){var e=o(r(this));return i(i(e,a,""),u,"")}},function(e,t,n){"use strict";var r=n(238);e.exports=function(){return String.prototype.trim&&"​"==="​".trim()?String.prototype.trim:r}},function(e,t){e.exports=function(e){return e instanceof Date}},function(e,t,n){var r=n(55),o=n(169);e.exports=function(e){var t=r(e),n=t.getFullYear(),i=new Date(0);i.setFullYear(n+1,0,4),i.setHours(0,0,0,0);var a=o(i),u=new Date(0);u.setFullYear(n,0,4),u.setHours(0,0,0,0);var c=o(u);return t.getTime()>=a.getTime()?n+1:t.getTime()>=c.getTime()?n:n-1}},function(e,t,n){var r={"./_lib/build_formatting_tokens_reg_exp":56,"./_lib/build_formatting_tokens_reg_exp/":56,"./_lib/build_formatting_tokens_reg_exp/index":56,"./_lib/build_formatting_tokens_reg_exp/index.js":56,"./en":90,"./en/":90,"./en/build_distance_in_words_locale":91,"./en/build_distance_in_words_locale/":91,"./en/build_distance_in_words_locale/index":91,"./en/build_distance_in_words_locale/index.js":91,"./en/build_format_locale":92,"./en/build_format_locale/":92,"./en/build_format_locale/index":92,"./en/build_format_locale/index.js":92,"./en/index":90,"./en/index.d.ts":464,"./en/index.js":90,"./en/package":243,"./en/package.json":243,"./es":120,"./es/":120,"./es/build_distance_in_words_locale":93,"./es/build_distance_in_words_locale/":93,"./es/build_distance_in_words_locale/index":93,"./es/build_distance_in_words_locale/index.js":93,"./es/build_format_locale":94,"./es/build_format_locale/":94,"./es/build_format_locale/index":94,"./es/build_format_locale/index.js":94,"./es/index":120,"./es/index.d.ts":465,"./es/index.js":120,"./es/package":244,"./es/package.json":244,"./fr":121,"./fr/":121,"./fr/build_distance_in_words_locale":95,"./fr/build_distance_in_words_locale/":95,"./fr/build_distance_in_words_locale/index":95,"./fr/build_distance_in_words_locale/index.js":95,"./fr/build_format_locale":96,"./fr/build_format_locale/":96,"./fr/build_format_locale/index":96,"./fr/build_format_locale/index.js":96,"./fr/index":121,"./fr/index.d.ts":466,"./fr/index.js":121,"./fr/package":245,"./fr/package.json":245};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id=242},function(e){e.exports=JSON.parse('{"typings":"../../typings.d.ts"}')},function(e){e.exports=JSON.parse('{"typings":"../../typings.d.ts"}')},function(e){e.exports=JSON.parse('{"typings":"../../typings.d.ts"}')},function(e,t,n){var r=n(211),o=n(247),i=n(149),a=n(213);e.exports=function(e){return r(e)||o(e)||i(e)||a()}},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},function(e,t,n){var r=n(471)();e.exports=r},function(e,t,n){var r=n(475),o=n(476),i=n(477);e.exports=function(e,t,n){return t==t?i(e,t,n):r(e,o,n)}},function(e,t){e.exports=function(){}},function(e,t,n){var r=n(252),o=Math.max;e.exports=function(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,u=o(i.length-t,0),c=Array(u);++a<u;)c[a]=i[t+a];a=-1;for(var s=Array(t+1);++a<t;)s[a]=i[a];return s[t]=n(c),r(e,this,s)}}},function(e,t){e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},function(e,t,n){var r=n(480),o=n(482)(r);e.exports=o},function(e,t,n){var r=n(219),o=n(43),i=n(161),a=n(222),u=n(123),c=Math.max;e.exports=function(e){if(!e||!e.length)return[];var t=0;return e=r(e,(function(e){if(u(e))return t=c(e.length,t),!0})),a(t,(function(t){return o(e,i(t))}))}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},function(e,t,n){"use strict";var r=n(20),o=n(3);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"OAuthClient",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"errors",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"FetchError",{enumerable:!0,get:function(){return u.FetchError}}),Object.defineProperty(t,"normalizeDoc",{enumerable:!0,get:function(){return c.normalizeDoc}});var i=o(n(257)),a=o(n(538)),u=r(n(58)),c=n(30)},function(e,t,n){"use strict";(function(e){var r=n(20),o=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(7)),a=o(n(9)),u=o(n(2)),c=o(n(4)),s=o(n(6)),l=o(n(486)),f=r(n(262)),d=o(n(519)),p=(o(n(268)),o(n(30))),h=o(n(184)),m=r(n(271)),y=r(n(525)),v=o(n(527)),g=o(n(528)),b=r(n(272)),w=r(n(529)),x=r(n(530)),C=r(n(532)),k=r(n(533)),S=r(n(534)),_=o(n(535)),A=o(n(273)),O=r(n(58)),E=n(537),B=o(n(45));function j(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function P(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?j(Object(n),!0).forEach((function(t){(0,u.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var T=function(e){return e.message&&O.default.CLIENT_NOT_FOUND.test(e.message)},z=function(){function t(e){(0,c.default)(this,t);var n=P({},e),r=n.token,o=n.uri,i=void 0===o?"":o;this.options=n,this.setUri(i),this.setToken(r),this.konnectors=new y.default(this),this.jobs=new m.default(this)}var n,r,o,u;return(0,s.default)(t,[{key:"collection",value:function(e){if(!e)throw new Error("CozyStackClient.collection() called without a doctype");switch(e){case f.APPS_DOCTYPE:return new f.default(this);case y.KONNECTORS_DOCTYPE:return new y.default(this);case"io.cozy.files":return new h.default(e,this);case"io.cozy.sharings":return new v.default(e,this);case"io.cozy.permissions":return new g.default(e,this);case S.CONTACTS_DOCTYPE:return new S.default(e,this);case b.TRIGGERS_DOCTYPE:return new b.default(this);case m.JOBS_DOCTYPE:return new m.default(this);case w.SETTINGS_DOCTYPE:return new w.default(this);case x.NOTES_DOCTYPE:return new x.default(this);case C.OAUTH_CLIENTS_DOCTYPE:return new C.default(this);case k.SHORTCUTS_DOCTYPE:return new k.default(this);default:return new p.default(e,this)}}},{key:"fetch",value:function(e){function t(t,n,r){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(){var e=(0,a.default)(i.default.mark((function e(t,n,r){var o,a,u,c,s,l,f=arguments;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=f.length>3&&void 0!==f[3]?f[3]:{},(a=P({},o)).method=t,u=a.headers=P({},o.headers),"GET"!==t&&"HEAD"!==t&&void 0!==r&&u["Content-Type"]&&(a.body=r),u.Authorization||(u.Authorization=this.getAuthorizationHeader()),a.credentials="include",c=this.fullpath(n),s=(0,E.shouldXMLHTTPRequestBeUsed)(t,n,a)?E.fetchWithXMLHttpRequest:fetch,e.prev=9,e.next=12,s(c,a);case 12:return(l=e.sent).ok||this.emit("error",new O.FetchError(l,"".concat(l.status," ").concat(l.statusText))),e.abrupt("return",l);case 17:throw e.prev=17,e.t0=e.catch(9),T(e.t0)&&this.onRevocationChange(!0),e.t0;case 21:case"end":return e.stop()}}),e,this,[[9,17]])})));return function(t,n,r){return e.apply(this,arguments)}}())},{key:"onTokenRefresh",value:function(e){this.options&&this.options.onTokenRefresh&&this.options.onTokenRefresh(e)}},{key:"onRevocationChange",value:function(e){this.options&&this.options.onRevocationChange&&this.options.onRevocationChange(e)}},{key:"checkForRevocation",value:(u=(0,a.default)(i.default.mark((function e(){return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.fetchInformation();case 3:return e.abrupt("return",!1);case 6:return e.prev=6,e.t0=e.catch(0),e.abrupt("return",T(e.t0));case 9:case"end":return e.stop()}}),e,this,[[0,6]])}))),function(){return u.apply(this,arguments)})},{key:"refreshToken",value:(o=(0,a.default)(i.default.mark((function t(){var n,r,o,a,u,c,s,l,f;return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.token){t.next=2;break}throw new Error("Cannot refresh an empty token");case 2:if(n={method:"GET",credentials:"include"},e.document){t.next=5;break}throw new Error("Not in a web context, cannot refresh token");case 5:return t.next=7,fetch("/",n);case 7:if((r=t.sent).ok){t.next=10;break}throw new Error("couldn't fetch a new token - response "+r.statusCode);case 10:return t.next=12,r.text();case 12:if(o=t.sent,a=new DOMParser,u=a.parseFromString(o,"text/html")){t.next=17;break}throw Error("couldn't fetch a new token - doc is not html");case 17:if(c=u.querySelector('div[role="application"]')){t.next=20;break}throw Error("couldn't fetch a new token - no div[role=application]");case 20:if(s=c.dataset.cozy?JSON.parse(c.dataset.cozy):P({},c.dataset),(l=s.token)&&(l=l||s.cozyToken),l){t.next=25;break}throw Error("couldn't fetch a new token -- missing data-cozy or data-cozy-token attribute");case 25:return f=new d.default(l),this.onTokenRefresh(f),t.abrupt("return",f);case 28:case"end":return t.stop()}}),t,this)}))),function(){return o.apply(this,arguments)})},{key:"fetchJSON",value:(r=(0,a.default)(i.default.mark((function e(t,n,r){var o,a,u=arguments;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=u.length>3&&void 0!==u[3]?u[3]:{},e.prev=1,e.next=4,this.fetchJSONWithCurrentToken(t,n,r,o);case 4:return e.abrupt("return",e.sent);case 7:if(e.prev=7,e.t0=e.catch(1),!O.default.EXPIRED_TOKEN.test(e.t0.message)&&!O.default.INVALID_TOKEN.test(e.t0.message)){e.next=25;break}return e.prev=10,e.next=13,this.refreshToken();case 13:a=e.sent,e.next=19;break;case 16:throw e.prev=16,e.t1=e.catch(10),e.t0;case 19:return this.setToken(a),e.next=22,this.fetchJSONWithCurrentToken(t,n,r,o);case 22:return e.abrupt("return",e.sent);case 25:throw e.t0;case 26:case"end":return e.stop()}}),e,this,[[1,7],[10,16]])}))),function(e,t,n){return r.apply(this,arguments)})},{key:"fetchJSONWithCurrentToken",value:(n=(0,a.default)(i.default.mark((function e(t,n,r){var o,a,u,c,s,f,d,p,h=arguments;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=h.length>3&&void 0!==h[3]?h[3]:{},a=(0,l.default)(o),(u=a.headers=a.headers||{}).Accept="application/json",c=r,"GET"!==t&&"HEAD"!==t&&void 0!==c&&(u["Content-Type"]||(u["Content-Type"]="application/json",c=JSON.stringify(c))),e.next=8,this.fetch(t,n,c,a);case 8:return s=e.sent,f=s.headers.get("content-type"),d=f&&f.indexOf("json")>=0,e.next=13,d?s.json():s.text();case 13:if(p=e.sent,!s.ok){e.next=16;break}return e.abrupt("return",p);case 16:throw new O.FetchError(s,p);case 17:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return n.apply(this,arguments)})},{key:"fullpath",value:function(e){return e.startsWith("http")?e:this.uri+e}},{key:"getAuthorizationHeader",value:function(){return this.token?this.token.toAuthHeader():null}},{key:"setCredentials",value:function(e){return(0,A.default)("CozyStackClient::setCredentials is deprecated, use CozyStackClient::setToken"),this.setToken(e)}},{key:"getCredentials",value:function(){return(0,A.default)("CozyStackClient::getCredentials is deprecated, use CozyStackClient::getAuthorizationHeader"),this.getAuthorizationHeader()}},{key:"setToken",value:function(e){if(e){if(e.toAuthHeader)this.token=e;else{if("string"!=typeof e)throw console.warn("Cozy-Client: Unknown token format",e),new Error("Cozy-Client: Unknown token format");this.token=new d.default(e)}this.onRevocationChange(!1)}else this.token=null}},{key:"getAccessToken",value:function(){return this.token&&this.token.getAccessToken()}},{key:"setUri",value:function(e){this.uri=function(e){var t=e;if(null===t)return null;for(;"/"===t[t.length-1];)t=t.slice(0,-1);return t}(e)}},{key:"getIconURL",value:function(e){return(0,_.default)(this,e)}}]),t}();B.default.mixin(z);var I=z;t.default=I}).call(this,n(33))},function(e,t,n){var r=n(104),o=n(255),i=n(162),a=n(487),u=n(488),c=n(259),s=n(124),l=n(489),f=n(490),d=n(217),p=n(163),h=n(66),m=n(491),y=n(492),v=n(261),g=n(26),b=n(87),w=n(496),x=n(34),C=n(498),k=n(85),S={};S["[object Arguments]"]=S["[object Array]"]=S["[object ArrayBuffer]"]=S["[object DataView]"]=S["[object Boolean]"]=S["[object Date]"]=S["[object Float32Array]"]=S["[object Float64Array]"]=S["[object Int8Array]"]=S["[object Int16Array]"]=S["[object Int32Array]"]=S["[object Map]"]=S["[object Number]"]=S["[object Object]"]=S["[object RegExp]"]=S["[object Set]"]=S["[object String]"]=S["[object Symbol]"]=S["[object Uint8Array]"]=S["[object Uint8ClampedArray]"]=S["[object Uint16Array]"]=S["[object Uint32Array]"]=!0,S["[object Error]"]=S["[object Function]"]=S["[object WeakMap]"]=!1,e.exports=function e(t,n,_,A,O,E){var B,j=1&n,P=2&n,T=4&n;if(_&&(B=O?_(t,A,O,E):_(t)),void 0!==B)return B;if(!x(t))return t;var z=g(t);if(z){if(B=m(t),!j)return s(t,B)}else{var I=h(t),D="[object Function]"==I||"[object GeneratorFunction]"==I;if(b(t))return c(t,j);if("[object Object]"==I||"[object Arguments]"==I||D&&!O){if(B=P||D?{}:v(t),!j)return P?f(t,u(B,t)):l(t,a(B,t))}else{if(!S[I])return O?t:{};B=y(t,I,j)}}E||(E=new r);var R=E.get(t);if(R)return R;E.set(t,B),C(t)?t.forEach((function(r){B.add(e(r,n,_,r,t,E))})):w(t)&&t.forEach((function(r,o){B.set(o,e(r,n,_,o,t,E))}));var F=T?P?p:d:P?keysIn:k,M=z?void 0:F(t);return o(M||t,(function(r,o){M&&(r=t[o=r]),i(B,o,e(r,n,_,o,t,E))})),B}},function(e,t,n){(function(e){var r=n(39),o=t&&!t.nodeType&&t,i=o&&"object"==typeof e&&e&&!e.nodeType&&e,a=i&&i.exports===o?r.Buffer:void 0,u=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=u?u(n):new e.constructor(n);return e.copy(r),r}}).call(this,n(112)(e))},function(e,t,n){var r=n(176);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},function(e,t,n){var r=n(177),o=n(164),i=n(115);e.exports=function(e){return"function"!=typeof e.constructor||i(e)?{}:r(o(e))}},function(e,t,n){"use strict";var r=n(20),o=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.normalizeApp=t.APPS_DOCTYPE=void 0;var i=o(n(7)),a=o(n(9)),u=o(n(4)),c=o(n(6)),s=o(n(8)),l=o(n(10)),f=o(n(5)),d=o(n(2)),p=o(n(18)),h=n(178),m=o(n(72)),y=r(n(30));n(58);function v(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return g(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return g(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,f.default)(e);if(t){var o=(0,f.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,l.default)(this,n)}}function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?w(Object(n),!0).forEach((function(t){(0,d.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.APPS_DOCTYPE="io.cozy.apps";var C=function(e,t){return x(x(x(x({},e.attributes),e),(0,y.normalizeDoc)(e,t)),{},{id:e.id})};t.normalizeApp=C;var k=function(e){(0,s.default)(d,e);var t,n,r,o,l,f=b(d);function d(e){var t;return(0,u.default)(this,d),(t=f.call(this,"io.cozy.apps",e)).endpoint="/apps/",t}return(0,c.default)(d,[{key:"get",value:(l=(0,a.default)(i.default.mark((function e(t,n){var r,o,a,u,c,s,l,f,d,g=this;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.indexOf("/")>-1?r=t.split("/")[1]:(console.warn("Deprecated: in next versions of cozy-client, it will not be possible to query apps/konnectors only with id, please use the form ".concat(this.doctype,"/").concat(t,"\n\n- Q('io.cozy.apps').getById('banks')\n+ Q('io.cozy.apps').getById('io.cozy.apps/banks')")),r=t),!n||!n.sources||Array.isArray(n.sources)&&0!==n.sources.length){e.next=3;break}throw new Error('Invalid "sources" attribute passed in query, please use an array with at least one element.');case 3:o=(0,p.default)(n,"sources",["stack"]),a={stack:function(){return m.default.get(g.stackClient,"".concat(g.endpoint).concat(encodeURIComponent(r)),{normalize:g.constructor.normalizeDoctype(g.doctype)})},registry:function(){return g.stackClient.fetchJSON("GET",h.registryEndpoint+r)}},u=v(o),e.prev=6,u.s();case 8:if((c=u.n()).done){e.next=27;break}return s=c.value,e.prev=10,e.next=13,a[s]();case 13:if(l=e.sent,"registry"===s){e.next=16;break}return e.abrupt("return",l);case 16:return f=(0,h.transformRegistryFormatToStackFormat)(l),d=(0,y.normalizeDoc)(f,this.doctype),e.abrupt("return",{data:d});case 21:if(e.prev=21,e.t0=e.catch(10),s!==o[o.length-1]){e.next=25;break}throw e.t0;case 25:e.next=8;break;case 27:e.next=32;break;case 29:e.prev=29,e.t1=e.catch(6),u.e(e.t1);case 32:return e.prev=32,u.f(),e.finish(32);case 35:case"end":return e.stop()}}),e,this,[[6,29,32,35],[10,21]])}))),function(e,t){return l.apply(this,arguments)})},{key:"all",value:(o=(0,a.default)(i.default.mark((function e(){var t,n=this;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.stackClient.fetchJSON("GET",this.endpoint);case 2:return t=e.sent,e.abrupt("return",{data:t.data.map((function(e){return C(e,n.doctype)})),meta:{count:t.meta.count},skip:0,next:!1});case 4:case"end":return e.stop()}}),e,this)}))),function(){return o.apply(this,arguments)})},{key:"create",value:(r=(0,a.default)(i.default.mark((function e(){return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:throw new Error("create() method is not available for applications");case 1:case"end":return e.stop()}}),e)}))),function(){return r.apply(this,arguments)})},{key:"update",value:(n=(0,a.default)(i.default.mark((function e(){return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:throw new Error("update() method is not available for applications");case 1:case"end":return e.stop()}}),e)}))),function(){return n.apply(this,arguments)})},{key:"destroy",value:(t=(0,a.default)(i.default.mark((function e(){return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:throw new Error("destroy() method is not available for applications");case 1:case"end":return e.stop()}}),e)}))),function(){return t.apply(this,arguments)})}]),d}(y.default);k.normalizeDoctype=y.default.normalizeDoctypeJsonApi;var S=k;t.default=S},function(e,t){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},function(e,t){e.exports=function(e){return e&&e.length?e[0]:void 0}},function(e,t,n){var r=n(34),o=n(82),i=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,c=/^0o[0-7]+$/i,s=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return NaN;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(i,"");var n=u.test(e);return n||c.test(e)?s(e.slice(2),n?2:8):a.test(e)?NaN:+e}},function(e,t,n){"use strict";var r=String.prototype.replace,o=/%20/g,i=n(181),a={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports=i.assign({default:a.RFC3986,formatters:{RFC1738:function(e){return r.call(e,o,"+")},RFC3986:function(e){return String(e)}}},a)},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.isMatchingIndex=t.isInconsistentIndex=t.getIndexFields=t.transformSort=t.getIndexNameFromFields=t.normalizeDesignDoc=void 0;var o=r(n(31)),i=r(n(2)),a=n(44),u=r(n(264)),c=r(n(18)),s=r(n(182));function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}t.normalizeDesignDoc=function(e){var t=e._id||e.id;return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){(0,i.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({id:t,_id:t},e.doc)};t.getIndexNameFromFields=function(e){return"by_".concat(e.join("_and_"))};t.transformSort=function(e){return!e||Array.isArray(e)?e:(console.warn('Passing an object to the "sort" is deprecated, please use an array instead.'),(0,a.transform)(e,(function(e,t,n){return e.push((0,i.default)({},n,t))}),[]))};t.getIndexFields=function(e){var t=e.selector,n=e.sort,r=void 0===n?[]:n;return Array.from(new Set([].concat((0,o.default)(r.map((function(e){return(0,u.default)(Object.keys(e))}))),(0,o.default)(t?Object.keys(t):[]))))};t.isInconsistentIndex=function(e){var t=e._id;if(!t.startsWith("_design/by_"))return!1;var n=t.split("_design/by_")[1].split("_and_"),r=Object.keys((0,c.default)(e,"views"))[0],o=Object.keys((0,c.default)(e,"views.".concat(r,".map.fields")));return!(0,s.default)(n,o)};t.isMatchingIndex=function(e,t,n){var r=Object.keys((0,c.default)(e,"views"))[0],o=Object.keys((0,c.default)(e,"views.".concat(r,".map.fields")));if((0,s.default)(o,t)){if(!n)return!0;var i=(0,c.default)(e,"views.".concat(r,".map.partial_filter_selector"));if((0,s.default)(n,i))return!0}return!1}},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(4)),i=r(n(6)),a=function(){function e(t){(0,o.default)(this,e);var n=t;"string"==typeof n&&(n=JSON.parse(n)),this.tokenType=n.token_type||n.tokenType,this.accessToken=n.access_token||n.accessToken,this.refreshToken=n.refresh_token||n.refreshToken,this.scope=n.scope}return(0,i.default)(e,[{key:"toAuthHeader",value:function(){return"Bearer "+this.accessToken}},{key:"toBasicAuth",value:function(){return"user:".concat(this.accessToken,"@")}},{key:"toJSON",value:function(){return{tokenType:this.tokenType,accessToken:this.accessToken,refreshToken:this.refreshToken,scope:this.scope}}},{key:"toString",value:function(){return JSON.stringify(this.toJSON())}},{key:"getAccessToken",value:function(){return this.accessToken}}]),e}();t.default=a},function(e,t,n){var r=n(523),o=n(229);e.exports=function(e,t){return null!=e&&o(e,t,r)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getIllegalCharacters=void 0;t.getIllegalCharacters=function(e){var t=e.match(/\/|\x00|\n|\r/g);return t?t.join(" "):""}},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.hasJobFinished=t.normalizeJob=t.JOBS_DOCTYPE=void 0;var o=r(n(7)),i=r(n(46)),a=r(n(9)),u=r(n(4)),c=r(n(6)),s=r(n(2)),l=r(n(72)),f=n(30),d=n(44);function p(){var e=(0,i.default)(["/jobs/",""]);return p=function(){return e},e}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){(0,s.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.JOBS_DOCTYPE="io.cozy.jobs";var y=function(e){return new Promise((function(t){return setTimeout(t,e)}))},v=function(e){return m(m(m({},e),(0,f.normalizeDoc)(e,"io.cozy.jobs")),e.attributes)};t.normalizeJob=v;var g=function(e){return"done"===e.state||"errored"===e.state};t.hasJobFinished=g;var b=function(){function e(t){(0,u.default)(this,e),this.stackClient=t}var t,n,r;return(0,c.default)(e,[{key:"queued",value:function(e){return this.stackClient.fetchJSON("GET","/jobs/queue/".concat(e))}},{key:"create",value:function(e,t,n){return this.stackClient.fetchJSON("POST","/jobs/queue/".concat(e),{data:{type:"io.cozy.jobs",attributes:{arguments:t||{},options:n||{}}}})}},{key:"get",value:(r=(0,a.default)(o.default.mark((function e(t){return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",l.default.get(this.stackClient,(0,d.uri)(p(),t),{normalize:v}));case 1:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"update",value:(n=(0,a.default)(o.default.mark((function e(t){var n;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("client"===t.worker){e.next=2;break}throw new Error("JobCollection.update only works for client workers. ".concat(t.worker," given"));case 2:return e.next=4,this.stackClient.fetchJSON("PATCH","/jobs/".concat(t._id),{data:{type:"io.cozy.jobs",id:t._id,attributes:{state:t.attributes.state,error:t.attributes.error}}});case 4:return n=e.sent,e.abrupt("return",v(n.data));case 6:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"waitFor",value:(t=(0,a.default)(o.default.mark((function e(t){var n,r,i,a,u,c,s,l,f,d,p,h,m=arguments;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=m.length>1&&void 0!==m[1]?m[1]:{},r=n.onUpdate,i=void 0===r?null:r,a=n.until,u=void 0===a?g:a,c=n.delay,s=void 0===c?5e3:c,l=n.timeout,f=void 0===l?3e5:l,d=Date.now(),e.next=4,this.get(t);case 4:p=e.sent.data.attributes;case 5:if(p&&u(p)){e.next=17;break}return e.next=8,y(s);case 8:return e.next=10,this.get(t);case 10:if(p=e.sent.data.attributes,i&&i(p),h=Date.now(),!(d-h>f)){e.next=15;break}throw new Error("Timeout for JobCollection::waitFor");case 15:e.next=5;break;case 17:return e.abrupt("return",p);case 18:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})}]),e}();t.default=b},function(e,t,n){"use strict";var r=n(20),o=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.isForAccount=t.isForKonnector=t.normalizeTrigger=t.TRIGGERS_DOCTYPE=t.JOBS_DOCTYPE=void 0;var i=o(n(17)),a=o(n(46)),u=o(n(7)),c=o(n(9)),s=o(n(4)),l=o(n(6)),f=o(n(97)),d=o(n(8)),p=o(n(10)),h=o(n(5)),m=o(n(2)),y=r(n(72)),v=r(n(30)),g=n(271),b=n(44);n(58);function w(){var e=(0,a.default)(["/jobs/triggers/","/launch"]);return w=function(){return e},e}function x(){var e=(0,a.default)(["/jobs/triggers/",""]);return x=function(){return e},e}function C(){var e=(0,a.default)(["/jobs/triggers/",""]);return C=function(){return e},e}function k(){var e=(0,a.default)(["/jobs/triggers"]);return k=function(){return e},e}function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,h.default)(e);if(t){var o=(0,h.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,p.default)(this,n)}}function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function A(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(Object(n),!0).forEach((function(t){(0,m.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.JOBS_DOCTYPE="io.cozy.jobs";t.TRIGGERS_DOCTYPE="io.cozy.triggers";var O=function(e){return A(A(A({},e),(0,v.normalizeDoc)(e,"io.cozy.triggers")),e.attributes)};t.normalizeTrigger=O;t.isForKonnector=function(e,t){return"konnector"===e.worker&&e.message.konnector==t};t.isForAccount=function(e,t){return e.message.account==t};var E=function(e,t){var n=new URLSearchParams;return e&&(Array.isArray(e.$in)?n.set("Worker",e.$in.join(",")):n.set("Worker",e)),t&&(Array.isArray(t.$in)?n.set("Type",t.$in.join(",")):n.set("Type",t)),n.toString()},B=function(e){(0,d.default)(_,e);var t,n,r,o,a,p,m,v=S(_);function _(e){return(0,s.default)(this,_),v.call(this,"io.cozy.triggers",e)}return(0,l.default)(_,[{key:"all",value:(m=(0,c.default)(u.default.mark((function e(){var t,n=arguments;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n.length>0&&void 0!==n[0]&&n[0],e.prev=1,e.next=4,this.stackClient.fetchJSON("GET","/jobs/triggers");case 4:return t=e.sent,e.abrupt("return",{data:t.data.map((function(e){return O(e)})),meta:{count:t.data.length},next:!1,skip:0});case 8:return e.prev=8,e.t0=e.catch(1),e.abrupt("return",(0,y.dontThrowNotFoundError)(e.t0));case 11:case"end":return e.stop()}}),e,this,[[1,8]])}))),function(){return m.apply(this,arguments)})},{key:"create",value:(p=(0,c.default)(u.default.mark((function e(t){var n,r;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=(0,b.uri)(k()),e.next=3,this.stackClient.fetchJSON("POST",n,{data:{attributes:t}});case 3:return r=e.sent,e.abrupt("return",{data:O(r.data)});case 5:case"end":return e.stop()}}),e,this)}))),function(e){return p.apply(this,arguments)})},{key:"destroy",value:(a=(0,c.default)(u.default.mark((function e(t){var n;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t._id){e.next=3;break}throw new Error("TriggerCollection.destroy needs a document with an _id");case 3:return e.next=5,this.stackClient.fetchJSON("DELETE",(0,b.uri)(C(),n));case 5:return e.abrupt("return",{data:O(A(A({},t),{},{_deleted:!0}))});case 6:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"find",value:(o=(0,c.default)(u.default.mark((function e(){var t,n,r,o,a,c,s,l=arguments;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=l.length>0&&void 0!==l[0]?l[0]:{},n=l.length>1&&void 0!==l[1]?l[1]:{},r=t.worker,o=t.type,a=(0,i.default)(t,["worker","type"]),0!==Object.keys(a).length){e.next=18;break}return c="/jobs/triggers?".concat(E(r,o)),e.prev=6,e.next=9,this.stackClient.fetchJSON("GET",c);case 9:return s=e.sent,e.abrupt("return",{data:s.data.map((function(e){return O(e)})),meta:{count:s.data.length},next:!1,skip:0});case 13:return e.prev=13,e.t0=e.catch(6),e.abrupt("return",(0,y.dontThrowNotFoundError)(e.t0));case 16:e.next=19;break;case 18:return e.abrupt("return",(0,f.default)((0,h.default)(_.prototype),"find",this).call(this,t,n));case 19:case"end":return e.stop()}}),e,this,[[6,13]])}))),function(){return o.apply(this,arguments)})},{key:"get",value:(r=(0,c.default)(u.default.mark((function e(t){return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",y.default.get(this.stackClient,(0,b.uri)(x(),t),{normalize:O}));case 1:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"launch",value:(n=(0,c.default)(u.default.mark((function e(t){var n,r;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=(0,b.uri)(w(),t._id),e.next=3,this.stackClient.fetchJSON("POST",n);case 3:return r=e.sent,e.abrupt("return",{data:(0,g.normalizeJob)(r.data)});case 5:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"update",value:(t=(0,c.default)(u.default.mark((function e(){return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:throw new Error("update() method is not available for triggers");case 1:case"end":return e.stop()}}),e)}))),function(){return t.apply(this,arguments)})}]),_}(v.default);B.normalizeDoctype=v.default.normalizeDoctypeJsonApi;var j=B;t.default=j},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(){var e;(e=console).warn.apply(e,arguments)};t.default=r},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.transformBulkDocsResponse=void 0;var o=r(n(7)),i=r(n(9)),a=r(n(17)),u=r(n(4)),c=r(n(6)),s=r(n(8)),l=r(n(10)),f=r(n(5)),d=r(n(2)),p=n(21),h=r(n(186)),m=(n(22),n(59)),y=n(275),v=r(n(276));function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,f.default)(e);if(t){var o=(0,f.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,l.default)(this,n)}}function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){(0,d.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var x=function(e,t){var n=(0,v.default)(e,t,(function(e,t){return e.ok?w(w({},t),{},{_id:e.id,_rev:e.rev}):t}));if(e.find((function(e){return!e.ok})))throw new y.BulkEditError(e,n);return{data:n}};t.transformBulkDocsResponse=x;var C=function(e){(0,s.default)(r,e);var t,n=g(r);function r(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=t.client,i=t.stackClient;return(0,u.default)(this,r),e=n.call(this),o&&console.warn("Using options.client is deprecated, prefer options.stackClient"),e.stackClient=i||o,e}return(0,c.default)(r,[{key:"registerClient",value:function(e){this.stackClient=e.stackClient||e.client}},{key:"reset",value:function(){this.stackClient=null}},{key:"request",value:function(e,t,n){return e.mutationType?this.executeMutation(e,t,n):this.executeQuery(e)}},{key:"executeQuery",value:function(e){var t=e.doctype,n=e.selector,r=e.id,o=e.ids,i=e.referenced,u=(0,a.default)(e,["doctype","selector","id","ids","referenced"]);if(!t)throw console.warn("Bad query",e),new Error("No doctype found in a query definition");var c=this.stackClient.collection(t);return r?c.get(r,e):o?c.getAll(o):i?c.findReferencedBy(i,u):n||u.sort?c.find(n,u):c.all(u)}},{key:"executeMutation",value:(t=(0,i.default)(o.default.mark((function e(t,n,r){var i,u,c,s,l;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=t.mutationType,u=t.document,c=t.documents,s=(0,a.default)(t,["mutationType","document","documents"]),e.t0=i,e.next=e.t0===p.MutationTypes.CREATE_DOCUMENT?4:e.t0===p.MutationTypes.UPDATE_DOCUMENTS?5:e.t0===p.MutationTypes.UPDATE_DOCUMENT?9:e.t0===p.MutationTypes.DELETE_DOCUMENT?10:e.t0===p.MutationTypes.ADD_REFERENCES_TO?11:e.t0===p.MutationTypes.REMOVE_REFERENCES_TO?12:e.t0===p.MutationTypes.ADD_REFERENCED_BY?13:e.t0===p.MutationTypes.REMOVE_REFERENCED_BY?18:e.t0===p.MutationTypes.UPLOAD_FILE?23:24;break;case 4:return e.abrupt("return",this.stackClient.collection(u._type).create(u));case 5:return e.next=7,this.stackClient.collection(c[0]._type).updateAll(c);case 7:return l=e.sent,e.abrupt("return",x(l,c));case 9:return e.abrupt("return",this.stackClient.collection(u._type).update(u));case 10:return e.abrupt("return",this.stackClient.collection(u._type).destroy(u));case 11:return e.abrupt("return",this.stackClient.collection(s.referencedDocuments[0]._type).addReferencesTo(u,s.referencedDocuments));case 12:return e.abrupt("return",this.stackClient.collection(s.referencedDocuments[0]._type).removeReferencesTo(u,s.referencedDocuments));case 13:if(u._type!==m.DOCTYPE_FILES){e.next=17;break}return e.abrupt("return",this.stackClient.collection(m.DOCTYPE_FILES).addReferencedBy(u,s.referencedDocuments));case 17:throw new Error("The document type should be io.cozy.files");case 18:if(u._type!==m.DOCTYPE_FILES){e.next=22;break}return e.abrupt("return",this.stackClient.collection(m.DOCTYPE_FILES).removeReferencedBy(u,s.referencedDocuments));case 22:throw new Error("The document type should be io.cozy.files");case 23:return e.abrupt("return",this.stackClient.collection(m.DOCTYPE_FILES).upload(s.file,s.dirPath));case 24:return e.abrupt("return",r(t,n));case 25:case"end":return e.stop()}}),e,this)}))),function(e,n,r){return t.apply(this,arguments)})}]),r}(h.default);t.default=C},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.BulkEditError=void 0;var o=r(n(2)),i=r(n(4)),a=r(n(6)),u=r(n(8)),c=r(n(10)),s=r(n(5)),l=r(n(35)),f=r(n(276));n(22);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,s.default)(e);if(t){var o=(0,s.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,c.default)(this,n)}}var m=function(e){(0,u.default)(n,e);var t=h(n);function n(e,r){var o;return(0,i.default)(this,n),(o=t.call(this,"Error while bulk saving")).name="BulkEditError",o.results=(0,f.default)(e,r,(function(e,t){return p(p({},e),{},{doc:t})})),o}return(0,a.default)(n,[{key:"getUpdatedDocuments",value:function(){return this.results.filter((function(e){return e.ok})).map((function(e){return e.doc}))}},{key:"getErrors",value:function(){return this.results.filter((function(e){return!e.ok}))}}]),n}((0,l.default)(Error));t.BulkEditError=m},function(e,t,n){var r=n(57),o=n(539),i=r((function(e){var t=e.length,n=t>1?e[t-1]:void 0;return n="function"==typeof n?(e.pop(),n):void 0,o(e,n)}));e.exports=i},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(7)),i=r(n(31)),a=r(n(2)),u=r(n(9)),c=r(n(4)),s=r(n(6)),l=r(n(97)),f=r(n(8)),d=r(n(10)),p=r(n(5)),h=r(n(19)),m=r(n(18)),y=r(n(76)),v=r(n(125)),g=n(21),b=n(60),w=(n(22),n(59)),x=(r(n(61)),r(n(98)));function C(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function k(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?C(Object(n),!0).forEach((function(t){(0,a.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,p.default)(e);if(t){var o=(0,p.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,d.default)(this,n)}}var _=function(e,t){var n=(0,h.default)(e,3),r=n[0],o=n[1],i=n[2];return[i?[r,o,i]:[r,o],t]},A=function(e){(0,f.default)(d,e);var t,n,r,a=S(d);function d(){return(0,c.default)(this,d),a.apply(this,arguments)}return(0,s.default)(d,[{key:"fetchMore",value:(r=(0,u.default)(o.default.mark((function e(){var t,n,r,a=this;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=new g.QueryDefinition({doctype:w.DOCTYPE_FILES}),n=this.getRelationship().data,r=n[n.length-1],e.next=5,this.dispatch(function(){var e=(0,u.default)(o.default.mark((function e(u,c){var s,l,f,d;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s=(0,b.getDocumentFromState)(c(),r._type,r._id),l=s.attributes.metadata.datetime,f=_([a.target._type,a.target._id,l],n[n.length-1]._id),e.next=5,a.query(t.referencedBy(a.target).offsetCursor(f));case 5:return(d=e.sent).data.shift(),e.next=9,a.dispatch(a.updateRelationshipData((function(e){return k(k({},e),{},{data:[].concat((0,i.default)(e.data),(0,i.default)(d.data)),next:d.next})})));case 9:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}());case 5:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"addById",value:(n=(0,u.default)(o.default.mark((function e(t){var n,r,i=this;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=Array.isArray(t)?t:[t],r=n.map((function(e){return{_id:e,_type:i.doctype}})),e.next=4,this.mutate(this.addReferences(r));case 4:this.addTargetRelationships(n);case 5:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"removeById",value:(t=(0,u.default)(o.default.mark((function e(t){var n,r,i=this;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=Array.isArray(t)?t:[t],r=n.map((function(e){return{_id:e,_type:i.doctype}})),e.next=4,this.mutate(this.removeReferences(r));case 4:this.removeTargetRelationships(n);case 5:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"addReferences",value:function(e){if(this.target._type===w.DOCTYPE_FILES)return g.Mutations.addReferencedBy(this.target,e);if(e[0]._type===w.DOCTYPE_FILES)return g.Mutations.addReferencesTo(this.target,e);throw new Error("Either the document or the references should be io.cozy.files")}},{key:"removeReferences",value:function(e){if(this.target._type===w.DOCTYPE_FILES)return g.Mutations.removeReferencedBy(this.target,e);if(e[0]._type===w.DOCTYPE_FILES)return g.Mutations.removeReferencesTo(this.target,e);throw new Error("Either the document or the references should be io.cozy.files")}},{key:"dehydrate",value:function(e){return(0,y.default)(e,[this.name,"relationships.".concat(this.name)])}},{key:"data",get:function(){var e=this;return this.target._type===w.DOCTYPE_FILES?(0,m.default)(this.target,"referenced_by",[]).map((function(t){var n=t.id,r=t.type;return e.get(r,n)})).filter(Boolean):(0,l.default)((0,p.default)(d.prototype),"data",this)}}],[{key:"query",value:function(e,t,n){if(e._type===w.DOCTYPE_FILES){var r=(0,m.default)(e,"relationships.referenced_by.data",[]),o=(0,v.default)(r.filter((function(e){return e.type===n.doctype})).map((function(e){return e.id})));return o.length>0?(0,g.Q)(n.doctype).getByIds(o):null}var i=_([e._type,e._id],"");return(0,g.Q)(n.doctype).referencedBy(e).offsetCursor(i)}}]),d}(x.default);t.default=A},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.extractAndMergeDocument=t.getCollectionFromSlice=t.getDocumentFromSlice=t.default=t.mergeDocumentsWithRelationships=void 0;var o=r(n(2)),i=r(n(279)),a=r(n(18)),u=r(n(182)),c=r(n(76)),s=r(n(187)),l=n(188),f=n(21),d=n(190),p=(n(22),n(287));function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var y=function(e,t){var n=t._type;if(!n)throw new Error("Document without _type");if(!(0,p.properId)(t))throw new Error("Document without id");var r=(0,a.default)(e,[n,(0,p.properId)(t)]);return(0,u.default)(r,t)?e:m(m({},e),{},(0,o.default)({},n,m(m({},e[n]),{},(0,o.default)({},(0,p.properId)(t),v(r,t)))))},v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=m(m({},e),t);return(e.relationships||t.relationships)&&(n.relationships=m(m({},e.relationships),t.relationships)),n};t.mergeDocumentsWithRelationships=v;var g=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(!(0,l.isReceivingData)(t)&&!(0,d.isReceivingMutationResult)(t))return e;if(t&&t.definition&&t.definition.mutationType===f.MutationTypes.DELETE_DOCUMENT){var n=t.definition.document._id,r=t.definition.document._type;return m(m({},e),{},(0,o.default)({},r,(0,c.default)(e[r],n)))}var i=t.response,a=i.data,u=i.included;if(!a||Array.isArray(a)&&0===a.length)return e;var s=u?u.reduce(y,e):e;return Array.isArray(a)?b(a,s):y(s,a)};t.default=g;t.getDocumentFromSlice=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;if(!t)throw new Error("getDocumentFromSlice: Cannot retrieve document with undefined doctype");if(!n)throw new Error("getDocumentFromSlice: Cannot retrieve document with undefined id");return e[t]&&e[t][n]?e[t][n]:null};t.getCollectionFromSlice=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(!t)throw new Error("getDocumentFromSlice: Cannot retrieve document with undefined doctype");return e[t]?Object.values(e[t]):null};var b=function(e,t){var n=e[0]._type;if(!n)throw s.default.info("Document without _type",e[0]),new Error("Document without _type");var r=(0,i.default)(e,p.properId),o=Object.assign({},t);return Object.values(r).map((function(e){o[n]||(o[n]={});var t=(0,p.properId)(e);o[n][t]?o[n][t]=m(m({},o[n][t]),e):o[n][t]=e})),o};t.extractAndMergeDocument=b},function(e,t,n){var r=n(69),o=n(280)((function(e,t,n){r(e,n,t)}));e.exports=o},function(e,t,n){var r=n(540),o=n(541),i=n(53),a=n(26);e.exports=function(e,t){return function(n,u){var c=a(n)?r:o,s=t?t():{};return c(n,e,i(u,2),s)}}},function(e,t){var n={black:"#000",red:"#c23621",green:"#25bc26",yellow:"#bbbb00",blue:"#492ee1",magenta:"#d338d3",cyan:"#33bbc8",gray:"#808080",purple:"#708"};e.exports=function(e,t){return t?"color: #fff; background: "+n[e]+";":"color: "+n[e]+";"}},function(e,t,n){var r=n(69),o=n(280),i=Object.prototype.hasOwnProperty,a=o((function(e,t,n){i.call(e,n)?e[n].push(t):r(e,n,[t])}));e.exports=a},function(e,t,n){var r=n(43),o=n(284),i=n(57),a=n(285),u=i((function(e){var t=r(e,a);return t.length&&t[0]===e[0]?o(t):[]}));e.exports=u},function(e,t,n){var r=n(109),o=n(173),i=n(174),a=n(43),u=n(65),c=n(110),s=Math.min;e.exports=function(e,t,n){for(var l=n?i:o,f=e[0].length,d=e.length,p=d,h=Array(d),m=1/0,y=[];p--;){var v=e[p];p&&t&&(v=a(v,u(t))),m=s(v.length,m),h[p]=!n&&(t||f>=120&&v.length>=120)?new r(p&&v):void 0}v=e[0];var g=-1,b=h[0];e:for(;++g<f&&y.length<m;){var w=v[g],x=t?t(w):w;if(w=n||0!==w?w:0,!(b?c(b,x):l(y,x,n))){for(p=d;--p;){var C=h[p];if(!(C?c(C,x):l(e[p],x,n)))continue e}b&&b.push(x),y.push(w)}}return y}},function(e,t,n){var r=n(123);e.exports=function(e){return r(e)?e:[]}},function(e,t,n){var r=n(43),o=n(53),i=n(554),a=n(555),u=n(65),c=n(556),s=n(88);e.exports=function(e,t,n){var l=-1;t=r(t.length?t:[s],u(o));var f=i(e,(function(e,n,o){return{criteria:r(t,(function(t){return t(e)})),index:++l,value:e}}));return a(f,(function(e,t){return c(e,t,n)}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.properId=void 0;t.properId=function(e){return e.id||e._id}},function(e,t,n){var r=n(69),o=n(84);e.exports=function(e,t,n){(void 0!==n&&!o(e[t],n)||void 0===n&&!(t in e))&&r(e,t,n)}},function(e,t){e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},function(e,t,n){var r=n(84),o=n(47),i=n(113),a=n(34);e.exports=function(e,t,n){if(!a(n))return!1;var u=typeof t;return!!("number"==u?o(n)&&i(t,n.length):"string"==u&&t in n)&&r(n[t],e)}},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(2)),i=r(n(4)),a=r(n(6)),u=r(n(8)),c=r(n(10)),s=r(n(5)),l=r(n(18)),f=r(n(567)),d=n(21);n(22);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,s.default)(e);if(t){var o=(0,s.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,c.default)(this,n)}}var y=function(e){(0,u.default)(n,e);var t=m(n);function n(){return(0,i.default)(this,n),t.apply(this,arguments)}return(0,a.default)(n,[{key:"add",value:function(e){return this.setRelationship(e),this.save(this.target)}},{key:"remove",value:function(){return this.setRelationship(void 0),this.save(this.target)}},{key:"setRelationship",value:function(e){if(e&&e._type!==this.doctype)throw new Error("Tried to associate a ".concat(e._type," document to a HasOne relationship on ").concat(this.doctype," document"));var t="relationships[".concat(this.name,"].data");e?(0,f.default)(this.target,t,{_id:e._id,_type:e._type}):(0,f.default)(this.target,t,void 0)}},{key:"set",value:function(e){console.warn("set is deprecated for has-one relationships. Use `add` instead."),this.setRelationship(e)}},{key:"unset",value:function(){console.warn("unset is deprecated for has-one relationships. Use `remove` instead."),this.setRelationship(void 0)}},{key:"dehydrate",value:function(e){return this.raw?h(h({},e),{},{relationships:h(h({},e.relationships),{},(0,o.default)({},this.name,{data:this.raw}))}):e}},{key:"raw",get:function(){return(0,l.default)(this.target,"relationships[".concat(this.name,"].data"),null)}},{key:"data",get:function(){return this.raw?this.get(this.doctype,this.raw._id):null}}],[{key:"query",value:function(e,t,n){var r=(0,l.default)(e,"relationships.".concat(n.name,".data"),{});return r&&r._id?(0,d.Q)(n.doctype).getById(r._id):null}}]),n}(r(n(61)).default);t.default=y},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.BelongsToInPlace=t.default=void 0;var o=r(n(2)),i=r(n(4)),a=r(n(6)),u=r(n(8)),c=r(n(10)),s=r(n(5)),l=r(n(61)),f=n(21);n(22);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,s.default)(e);if(t){var o=(0,s.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,c.default)(this,n)}}var m=function(e){(0,u.default)(n,e);var t=h(n);function n(){return(0,i.default)(this,n),t.apply(this,arguments)}return(0,a.default)(n,[{key:"dehydrate",value:function(e){return p(p({},e),{},(0,o.default)({},this.name,this.raw||void 0))}},{key:"raw",get:function(){return this.target[this.name]}},{key:"data",get:function(){return this.get(this.doctype,this.raw)}}],[{key:"query",value:function(e,t,n){var r=e[n.name];return t.getDocumentFromState(n.doctype,r)||(0,f.Q)(n.doctype).getById(r)}}]),n}(l.default);t.default=m;var y=m;t.BelongsToInPlace=y},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(2)),i=r(n(4)),a=r(n(6)),u=r(n(8)),c=r(n(10)),s=r(n(5)),l=n(21);n(22);function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,s.default)(e);if(t){var o=(0,s.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,c.default)(this,n)}}var h=function(e){(0,u.default)(n,e);var t=p(n);function n(){return(0,i.default)(this,n),t.apply(this,arguments)}return(0,a.default)(n,[{key:"addById",value:function(e){this.getRelationship().push(e)}},{key:"removeById",value:function(e){var t=this.getRelationship(),n=t.indexOf(e);-1!==n&&t.splice(n,1)}},{key:"existsById",value:function(e){return-1!==this.getRelationship().indexOf(e)}},{key:"getRelationship",value:function(){return this.target[this.name]=this.target[this.name]||[],this.target[this.name]}},{key:"dehydrate",value:function(e){return d(d({},e),{},(0,o.default)({},this.name,this.raw||[]))}},{key:"raw",get:function(){return this.target[this.name]}},{key:"data",get:function(){var e=this,t=this.doctype;return(this.raw||[]).map((function(n){return e.get(t,n)}))}}],[{key:"query",value:function(e,t,n){var r=e[n.name];return r&&r>0?(0,l.Q)(n.doctype).getByIds(r):null}}]),n}(r(n(61)).default);t.default=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={olderThan:function(e){return function(t){return!t||!t.lastUpdate||Date.now()-t.lastUpdate>e}},noFetch:function(){return!1}};t.default=r},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(4)),i=r(n(6)),a=r(n(2)),u=r(n(18)),c=n(60),s=Object.prototype.hasOwnProperty,l=function(){function e(t,n,r,i){var u=this;if((0,o.default)(this,e),(0,a.default)(this,"handleStoreChange",(function(){var e=u.currentRawResult();(function(e,t){if(f(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;o<n.length;o++)if(!s.call(t,n[o])||!f(e[n[o]],t[n[o]]))return!1;return!0})(e,u.lastResult)||(u.lastResult=e,u.notifyObservers())})),!t||!n||!r)throw new Error("ObservableQuery takes 3 arguments: queryId, definition and client");this.queryId=t,this.definition=n,this.client=r,this.observers={},this.idCounter=1,this.lastResult=this.currentRawResult(),this.options=i}return(0,i.default)(e,[{key:"currentResult",value:function(){return this.client.getQueryFromState(this.queryId,{hydrated:(0,u.default)(this.options,"hydrated",!0),singleDocData:!0})}},{key:"fetch",value:function(){return this.client.query(this.definition,{as:this.queryId})}},{key:"fetchMore",value:function(){var e=this.currentRawResult();return e.bookmark?this.client.query(this.definition.offsetBookmark(e.bookmark),{as:this.queryId}):this.client.query(this.definition.offset(e.data.length),{as:this.queryId})}},{key:"currentRawResult",value:function(){return(0,c.getRawQueryFromState)(this.getStore().getState(),this.queryId)}},{key:"notifyObservers",value:function(){var e=this;Object.keys(this.observers).forEach((function(t){return e.observers[t]()}))}},{key:"subscribeToStore",value:function(){if(this._unsubscribeStore)throw new Error("ObservableQuery instance is already subscribed to store.");this._unsubscribeStore=this.getStore().subscribe(this.handleStoreChange)}},{key:"unsubscribeFromStore",value:function(){if(!this._unsubscribeStore)throw new Error("ObservableQuery instance is not subscribed to store");this._unsubscribeStore()}},{key:"subscribe",value:function(e){var t=this,n=this.idCounter;return this.idCounter++,this.observers[n]=e,1===Object.keys(this.observers).length&&this.subscribeToStore(),function(){return t.unsubscribe(n)}}},{key:"unsubscribe",value:function(e){if(!this.observers[e])throw new Error("Cannot unsubscribe unknown callbackId ".concat(e));delete this.observers[e],0===Object.keys(this.observers).length&&(this.unsubscribeFromStore(),this._unsubscribeStore=null)}},{key:"getStore",value:function(){return this.client.store}}]),e}();function f(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}t.default=l},function(e,t,n){var r=n(193),o=n(180),i=n(297),a=n(298),u=n(26),c=n(589);e.exports=function(e){return o((function(t){var n=t.length,o=n,s=r.prototype.thru;for(e&&t.reverse();o--;){var l=t[o];if("function"!=typeof l)throw new TypeError("Expected a function");if(s&&!f&&"wrapper"==a(l))var f=new r([],!0)}for(o=f?o:n;++o<n;){l=t[o];var d=a(l),p="wrapper"==d?i(l):void 0;f=p&&c(p[0])&&424==p[1]&&!p[4].length&&1==p[9]?f[a(p[0])].apply(f,p[3]):1==l.length&&c(l)?f[d]():f.thru(l)}return function(){var e=arguments,r=e[0];if(f&&1==e.length&&u(r))return f.plant(r).value();for(var o=0,i=n?t[o].apply(this,e):r;++o<n;)i=t[o].call(this,i);return i}}))}},function(e,t,n){var r=n(587),o=n(250),i=r?function(e){return r.get(e)}:o;e.exports=i},function(e,t,n){var r=n(588),o=Object.prototype.hasOwnProperty;e.exports=function(e){for(var t=e.name+"",n=r[t],i=o.call(r,t)?n.length:0;i--;){var a=n[i],u=a.func;if(null==u||u==e)return a.name}return t}},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.computeChildrenArgs=t.getQueryAttributes=t.default=t.fetchQuery=void 0;var o=r(n(4)),i=r(n(6)),a=r(n(11)),u=r(n(8)),c=r(n(10)),s=r(n(5)),l=r(n(2)),f=r(n(17)),d=n(0),p=(r(n(41)),r(n(1)));r(n(295));function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,s.default)(e);if(t){var o=(0,s.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,c.default)(this,n)}}function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){(0,l.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var v={},g=function(e,t){return t.fetch?t.fetch():e.query(t.definition,{as:t.queryId})};t.fetchQuery=g;var b=function(e,t){var n=e.create.bind(e),r=e.save.bind(e),o=e.destroy.bind(e),i=e.getAssociation.bind(e),a="function"==typeof t.query?t.query(e,t):t.query,u=e.makeObservableQuery(a,t),c=u.fetchMore.bind(u),s=t.mutations,l=(0,f.default)(t,["mutations"]),d="function"==typeof s?s(e,u,l):s,p=u.fetch?u.fetch.bind(u):null;return{client:e,observableQuery:u,queryDefinition:a,createDocument:n,saveDocument:r,deleteDocument:o,getAssociation:i,fetchMore:c,fetch:p,mutations:d}};t.getQueryAttributes=b;var w=function(e){var t=e.observableQuery,n=e.fetchMore,r=e.fetch,o=e.createDocument,i=e.saveDocument,a=e.deleteDocument,u=e.getAssociation,c=e.mutations;return[y({fetchMore:n,fetch:r},t.currentResult()),y({createDocument:o,saveDocument:i,deleteDocument:a,getAssociation:u},c)]};t.computeChildrenArgs=w;var x=function(e){(0,u.default)(n,e);var t=h(n);function n(e,r){var i;(0,o.default)(this,n),i=t.call(this,e,r),(0,l.default)((0,a.default)(i),"onQueryChange",(function(){i.recomputeChildrenArgs(),i.setState(v)}));var u=r.client;if(!r.client)throw new Error("Query should be used with client in context (use CozyProvider to set context)");return i.client=u,i.observableQuery=null,i.queryUnsubscribe=null,Object.assign((0,a.default)(i),b(u,e)),i.recomputeChildrenArgs(),i}return(0,i.default)(n,[{key:"componentDidMount",value:function(){this.queryUnsubscribe=this.observableQuery.subscribe(this.onQueryChange),!1!==this.props.enabled&&this.executeQueryRespectingFetchPolicy()}},{key:"executeQueryRespectingFetchPolicy",value:function(){if(this.props.fetchPolicy){var e=this.client.getQueryFromState(this.props.as);this.props.fetchPolicy&&"function"==typeof this.props.fetchPolicy&&this.props.fetchPolicy(e)&&g(this.client,this.observableQuery)}else g(this.client,this.observableQuery)}},{key:"componentDidUpdate",value:function(e){!1===e.enabled&&!1!==this.props.enabled&&this.executeQueryRespectingFetchPolicy()}},{key:"componentWillUnmount",value:function(){this.queryUnsubscribe&&this.queryUnsubscribe()}},{key:"recomputeChildrenArgs",value:function(){this.childrenArgs=w(this)}},{key:"render",value:function(){return(0,this.props.children)(this.childrenArgs[0],this.childrenArgs[1])}}]),n}(d.Component);t.default=x,x.contextTypes={client:p.default.object,store:p.default.object};var C=p.default.object;x.propTypes={query:p.default.oneOfType([p.default.func,C]).isRequired,enabled:p.default.bool,as:p.default.string,children:p.default.func.isRequired,fetchPolicy:p.default.func},x.defaultProps={enabled:!0}},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.useQueries=void 0;var o=r(n(19)),i=r(n(2)),a=n(0),u=n(746),c=r(n(18)),s=r(n(128)),l=r(n(187)),f=(n(22),n(196));n(21);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){(0,i.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var h=(0,u.createSelectorHook)(f.clientContext),m=function(e,t){if(!h)throw new Error("You must use react-redux > 7.1.0 to use useQuery (uses useSelector) under the hood");if(!e)throw l.default.warn("Bad query",e),new Error("Bad query");var n,r="function"==typeof(n=e)?n():n,o=t.as,i=t.enabled,u=void 0===i||i;if(!o)throw new Error("You must specify options.as when using useQuery");var f=(0,s.default)(),d=h((function(){return void 0===t.singleDocData&&e.id&&l.default.warn("useQuery options.singleDocData will pass to true in a next version of cozy-client, please add it now to prevent any problem in the future."),f.getQueryFromState(o,{hydrated:(0,c.default)(t,"hydrated",!0),singleDocData:(0,c.default)(t,"singleDocData",!1)})}));(0,a.useEffect)((function(){!1!==u&&f.query(r,t)}),[o,u]);var m=(0,a.useCallback)((function(){var e,t=f.getQueryFromState(o);return f.query((e=t).bookmark?e.definition.offsetBookmark(e.bookmark):e.definition.offset(e.data.length),{as:o})}),[o,f]),y=(0,a.useCallback)((function(){return f.query(r,t)}),[f,r,t]);return p(p({},d),{},{fetchMore:m,fetch:y})};t.useQueries=function(e){for(var t={},n=0,r=Object.entries(e);n<r.length;n++){var i=(0,o.default)(r[n],2),a=i[0],u=i[1];t[a]=m(u.query,u)}return t};var y=m;t.default=y},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.setContractSyncStatusInAccount=t.getContractSyncStatusFromAccount=t.muteError=t.getMutedErrors=void 0;var o=r(n(2)),i=r(n(18)),a=r(n(127)),u=n(98);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var l=function(e){return(0,i.default)(e,"mutedErrors",[])};t.getMutedErrors=l;t.muteError=function(e,t){var n=l(e);return n.push({type:t,mutedAt:(new Date).toISOString()}),s(s({},e),{},{mutedErrors:n})};t.getContractSyncStatusFromAccount=function(e,t){var n=(0,u.getHasManyItem)(e,"contracts",t);if(!n)throw new Error("Cannot find contrat ".concat(t," in account"));return(0,i.default)(n,"metadata.imported",!0)};t.setContractSyncStatusInAccount=function(e,t,n){return(0,u.updateHasManyItem)(e,"contracts",t,(function(e){if(void 0===e)throw new Error("Cannot find contrat ".concat(t," in account"));return(0,a.default)({},e,{metadata:{imported:n}})}))}},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.getAppDisplayName=t.getUrl=t.isInstalled=t.getStoreInstallationURL=t.getStoreURL=void 0;var o=r(n(18)),i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t.slug)throw new Error("Expected app / konnector with the defined slug");var n=a(e,{slug:"store"});if(!n)return null;var r=n.links&&n.links.related;return r?"".concat(r,"#/discover/").concat(t.slug):null};t.getStoreURL=i;t.getStoreInstallationURL=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=i(e,t);return n?"".concat(n,"/install"):null};var a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.find((function(e){return e.attributes&&e.attributes.slug===t.slug}))};t.isInstalled=a;t.getUrl=function(e){return e.links&&e.links.related};t.getAppDisplayName=function(e,t){var n=(0,o.default)(e,"name_prefix"),r=(0,o.default)(e,"name"),i=(0,o.default)(e,["locales",t,"name"],r),a=(0,o.default)(e,["locales",t,"name_prefix"],n);return a&&"cozy"!==a.toLowerCase()?"".concat(a," ").concat(i):i}},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.normalize=function(e){var t=e._id||e.id,n=e._type||p.DOCTYPE_FILES;return v({_id:t,id:t,_type:n},e)},t.ensureFilePath=function(e,t){if(e.path)return e;if(!t||!t.path)throw new Error("Could not define a file path for ".concat(e._id||e.id));return v({path:t.path+"/"+e.name},e)},t.getParentFolderId=function(e){var t=(0,u.default)(e,"attributes.dir_id");return""===t?null:t},t.fetchBlobFileById=t.isFromKonnector=t.hasCertifications=t.hasQualifications=t.isPlainText=t.doMobileUpload=t.readMobileFile=t.uploadFileWithConflictStrategy=t.generateFileNameForRevision=t.generateNewFileNameOnConflict=t.overrideFileForPath=t.move=t.getFullpath=t.hasMetadataAttribute=t.isReferencedByAlbum=t.fetchFilesByQualificationRules=t.saveFileQualification=t.isSharingShorcutNew=t.isSharingShortcutNew=t.isSharingShorcut=t.isSharingShortcut=t.getSharingShortcutTargetDoctype=t.getSharingShortcutTargetMime=t.getSharingShortcutStatus=t.isShortcut=t.shouldBeOpenedByOnlyOffice=t.isOnlyOfficeFile=t.isNote=t.isDirectory=t.isFile=t.splitFilename=t.ALBUMS_DOCTYPE=void 0;var o=r(n(7)),i=r(n(9)),a=r(n(2)),u=r(n(18)),c=r(n(189)),s=r(n(269)),l=r(n(603)),f=n(197),d=n(21),p=(n(22),n(59));r(n(41));function h(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return m(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return m(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach((function(t){(0,a.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.ALBUMS_DOCTYPE="io.cozy.photos.albums";var g=/(.+)(\..*)$/,b=function(e){if(!(0,c.default)(e.name))throw new Error("file should have a name property");if("file"===e.type){var t=e.name.match(g);if(t)return{filename:t[1],extension:t[2]}}return{filename:e.name,extension:""}};t.splitFilename=b;var w=function(e){return e&&"file"===e.type};t.isFile=w;t.isDirectory=function(e){return e&&"directory"===e.type};var x=function(e){return!!(e&&e.name&&e.name.endsWith(".cozy-note")&&"file"===e.type&&e.metadata&&void 0!==e.metadata.content&&void 0!==e.metadata.schema&&void 0!==e.metadata.title&&void 0!==e.metadata.version)};t.isNote=x;var C=function(e){return w(e)&&!x(e)&&("text"===e.class||"spreadsheet"===e.class||"slide"===e.class)};t.isOnlyOfficeFile=C;t.shouldBeOpenedByOnlyOffice=function(e){return C(e)&&!e.name.endsWith(".txt")&&!e.name.endsWith(".md")};t.isShortcut=function(e){return e&&"shortcut"===e.class};var k=function(e){return(0,u.default)(e,"metadata.sharing.status")};t.getSharingShortcutStatus=k;t.getSharingShortcutTargetMime=function(e){return(0,u.default)(e,"metadata.target.mime")};t.getSharingShortcutTargetDoctype=function(e){return(0,u.default)(e,"metadata.target._type")};var S=function(e){return Boolean(k(e))};t.isSharingShortcut=S;t.isSharingShorcut=function(e){return console.warn("Deprecation: `isSharingShorcut` is deprecated, please use `isSharingShortcut` instead"),S(e)};var _=function(e){return"new"===k(e)};t.isSharingShortcutNew=_;t.isSharingShorcutNew=function(e){return console.warn("Deprecation: `isSharingShorcutNew` is deprecated, please use `isSharingShortcutNew` instead"),_(e)};var A=function(){var e=(0,i.default)(o.default.mark((function e(t,n,r){var i;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=(0,f.setQualification)(n,r),e.abrupt("return",t.collection(p.DOCTYPE_FILES).updateMetadataAttribute(n._id,i.metadata));case 2:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}();t.saveFileQualification=A;var O=function(){var e=(0,i.default)(o.default.mark((function e(t,n){var r,i,a,u;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.rules,i=n.count,a=(0,d.Q)(p.DOCTYPE_FILES).where(v({},r)).partialIndex({trashed:!1}).indexFields(["cozyMetadata.updatedAt","metadata.qualification"]).sortBy([{"cozyMetadata.updatedAt":"desc"}]).limitBy(i||1),e.next=4,t.query(a);case 4:return u=e.sent,e.abrupt("return",u);case 6:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}();t.fetchFilesByQualificationRules=O;t.isReferencedByAlbum=function(e){if(e.relationships&&e.relationships.referenced_by&&e.relationships.referenced_by.data&&e.relationships.referenced_by.data.length>0){var t,n=h(e.relationships.referenced_by.data);try{for(n.s();!(t=n.n()).done;){if("io.cozy.photos.albums"===t.value.type)return!0}}catch(e){n.e(e)}finally{n.f()}}return!1};t.hasMetadataAttribute=function(e){var t=e.file,n=e.attribute;return(0,s.default)(t,"metadata.".concat(n))};var E=function(){var e=(0,i.default)(o.default.mark((function e(t,n,r){var i,a,u;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n){e.next=2;break}throw new Error("You must provide a dirId");case 2:return e.next=4,t.query((0,d.Q)(p.DOCTYPE_FILES).getById(n));case 4:return i=e.sent,a=i.data,u=(0,l.default)(a.path,"/"),e.abrupt("return","".concat(u,"/").concat(r));case 8:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}();t.getFullpath=E;var B=function(){var e=(0,i.default)(o.default.mark((function e(t,n,r){var i,a,u,c,s,l,f,h,m,y,v=arguments;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=v.length>3&&void 0!==v[3]&&v[3],a=r.folderId,u=r.path,e.prev=2,e.next=5,t.collection(p.DOCTYPE_FILES).updateFileMetadata(n,{dir_id:a});case 5:return c=e.sent,e.abrupt("return",{moved:c.data,deleted:null});case 9:if(e.prev=9,e.t0=e.catch(2),409!==e.t0.status||!i){e.next=35;break}if(!u){e.next=16;break}s=u,e.next=24;break;case 16:return e.next=18,t.query((0,d.Q)(p.DOCTYPE_FILES).getById(n));case 18:return l=e.sent,f=l.data,h=f.name,e.next=23,E(t,a,h);case 23:s=e.sent;case 24:return e.next=26,t.collection(p.DOCTYPE_FILES).statByPath(s);case 26:return m=e.sent,e.next=29,t.collection(p.DOCTYPE_FILES).destroy(m.data);case 29:return e.next=31,t.collection(p.DOCTYPE_FILES).updateFileMetadata(n,{dir_id:a});case 31:return y=e.sent,e.abrupt("return",{moved:y.data,deleted:m.data.id});case 35:throw e.t0;case 36:case"end":return e.stop()}}),e,null,[[2,9]])})));return function(t,n,r){return e.apply(this,arguments)}}();t.move=B;var j=function(){var e=(0,i.default)(o.default.mark((function e(t,n,r,i){var a,u,c,s,l,f,d,h,m;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(a=n).endsWith("/")||(a+="/"),u=t.collection(p.DOCTYPE_FILES),e.prev=3,e.next=6,u.statByPath(a+r.name);case 6:return c=e.sent,s=c.data,l=s.id,f=s.dir_id,e.next=10,u.updateFile(r,{dirId:f,fileId:l,metadata:i});case 10:return d=e.sent,e.abrupt("return",d);case 14:if(e.prev=14,e.t0=e.catch(3),!/Not Found/.test(e.t0)){e.next=24;break}return e.next=19,u.ensureDirectoryExists(a);case 19:return h=e.sent,e.next=22,u.createFile(r,{dirId:h,metadata:i});case 22:return m=e.sent,e.abrupt("return",m);case 24:throw e.t0;case 25:case"end":return e.stop()}}),e,null,[[3,14]])})));return function(t,n,r,o){return e.apply(this,arguments)}}();t.overrideFileForPath=j;var P=function(e){var t=new RegExp("(_)([0-9]+)$"),n=e.match(t);if(n){var r=parseInt(n[2]);return r++,e.replace(new RegExp("(_)([0-9]+)$"),"_".concat(r))}return"".concat(e,"_1")};t.generateNewFileNameOnConflict=P;t.generateFileNameForRevision=function(e,t,n){var r=b(e),o=r.filename,i=r.extension;return"".concat(o,"_").concat(n(t.updated_at,"DD MMMM - HH[h]mm")).concat(i)};var T=function(){var e=(0,i.default)(o.default.mark((function e(t,n,r){var i,a,u,c,s,l,f,d,h,m,y;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.name,a=r.dirId,u=r.conflictStrategy,e.prev=1,e.next=4,E(t,a,i);case 4:return c=e.sent,e.next=7,t.collection(p.DOCTYPE_FILES).statByPath(c);case 7:if(s=e.sent,l=s.data.id,"erase"!==u){e.next=16;break}return e.next=12,t.collection(p.DOCTYPE_FILES).updateFile(n,v(v({},r),{},{fileId:l}));case 12:return f=e.sent,e.abrupt("return",f);case 16:return d=b({name:i,type:"file"}),h=d.filename,m=d.extension,y=P(h)+m,e.abrupt("return",T(t,n,v(v({},r),{},{name:y})));case 19:e.next=26;break;case 21:if(e.prev=21,e.t0=e.catch(1),!/Not Found/.test(e.t0.message)){e.next=25;break}return e.abrupt("return",t.collection(p.DOCTYPE_FILES).createFile(n,r));case 25:throw e.t0;case 26:case"end":return e.stop()}}),e,null,[[1,21]])})));return function(t,n,r){return e.apply(this,arguments)}}();t.uploadFileWithConflictStrategy=T;var z=function(){var e=(0,i.default)(o.default.mark((function e(t){var n;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=new Promise((function(e,n){var r=function(){var t=(0,i.default)(o.default.mark((function t(r){return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r.file(function(){var t=(0,i.default)(o.default.mark((function t(n){var r;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:(r=new FileReader).onloadend=(0,i.default)(o.default.mark((function t(){return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e(r.result);case 1:case"end":return t.stop()}}),t)}))),r.readAsArrayBuffer(n);case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),(function(e){console.error("error getting fileentry file!"+e),n(e)}));case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();window.resolveLocalFileSystemURL(t,r,(function(e){n(e)}))})),e.abrupt("return",n);case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();t.readMobileFile=z;var I=function(){var e=(0,i.default)(o.default.mark((function e(t,n,r){var i;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,z(n);case 2:return i=e.sent,e.abrupt("return",T(t,i,r));case 4:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}();t.doMobileUpload=I;t.isPlainText=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e?/^text\//.test(e):/\.(txt|md)$/.test(t)};t.hasQualifications=function(e){return(0,s.default)(e,"metadata.qualification")};t.hasCertifications=function(e){return(0,u.default)(e,"metadata.carbonCopy",!1)||(0,u.default)(e,"metadata.electronicSafe",!1)};t.isFromKonnector=function(e){return(0,s.default)(e,"cozyMetadata.sourceAccount")};var D=function(){var e=(0,i.default)(o.default.mark((function e(t,n){var r,i,a;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.collection(p.DOCTYPE_FILES),e.next=3,r.fetchFileContentById(n);case 3:return i=e.sent,e.next=6,i.blob();case 6:return a=e.sent,e.abrupt("return",a);case 8:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}();t.fetchBlobFileById=D},function(e,t,n){"use strict";e.exports=n(618)},function(e,t,n){"use strict";var r=n(27),o=n(62),i=r("%TypeError%"),a=n(619),u=n(306),c=n(624),s=n(625),l=n(627),f=n(647),d=n(648),p=n(649),h=o("String.prototype.split"),m=Object("a"),y="a"!==m[0]||!(0 in m);e.exports=function(e){var t,n=f(this),r=y&&p(this)?h(this,""):n,o=l(r);if(!s(e))throw new i("Array.prototype.forEach callback must be a function");arguments.length>1&&(t=arguments[1]);for(var m=0;m<o;){var v=d(m),g=c(r,v);if(g){var b=u(r,v);a(e,t,[b,m,r])}m+=1}}},function(e,t,n){"use strict";var r=n(27)("%TypeError%"),o=n(621),i=n(307),a=n(198);e.exports=function(e,t){if("Object"!==a(e))throw new r("Assertion failed: Type(O) is not Object");if(!i(t))throw new r("Assertion failed: IsPropertyKey(P) is not true, got "+o(t));return e[t]}},function(e,t,n){"use strict";e.exports=function(e){return"string"==typeof e||"symbol"==typeof e}},function(e,t,n){"use strict";e.exports=function(e){return null===e||"function"!=typeof e&&"object"!=typeof e}},function(e,t,n){"use strict";var r=n(652),o=n(305);e.exports=function(){var e=Array.prototype.forEach;return r(e)?e:o}},function(e,t,n){"use strict";var r=n(311),o=n(62),i=o("Object.prototype.propertyIsEnumerable"),a=o("Array.prototype.push");e.exports=function(e){var t=r(e),n=[];for(var o in t)i(t,o)&&a(n,[o,t[o]]);return n}},function(e,t,n){"use strict";e.exports=n(655)},function(e,t,n){"use strict";var r=n(310);e.exports=function(){return"function"==typeof Object.entries?Object.entries:r}},function(e,t,n){"use strict";var r=n(311),o=n(658),i=n(62)("String.prototype.replace"),a=/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/,u=/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/;e.exports=function(){var e=o(r(this));return i(i(e,a,""),u,"")}},function(e,t,n){"use strict";var r=n(313);e.exports=function(){return String.prototype.trim&&"​"==="​".trim()?String.prototype.trim:r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.themesList=void 0;var r=n(197),o=(n(22),function(e){return e.map((function(e){try{return r.Qualification.getByLabel(e)}catch(e){return console.log("error",e),null}})).filter((function(e){return e}))}),i=[{id:"theme1",label:"identity",icon:"people",items:o(["identity_photo","national_id_card","passport","residence_permit","family_record_book","birth_certificate","driver_license","citizen_registration_certificate","other_identity_document"]),defaultItems:["birth_certificate"]},{id:"theme2",label:"family",icon:"team",items:o(["family_record_book","birth_certificate","wedding","pacs","divorce","large_family_card","caf","payment_proof_family_allowance","other_family_document"]),defaultItems:["family_record_book"]},{id:"theme3",label:"work_study",icon:"company",items:o(["diploma","work_contract","pay_sheet","unemployment_benefit","pension","work_disability_recognition","gradebook","student_card","school_attendance_certificate","resume","motivation_letter","other_work_document"])},{id:"theme4",label:"health",icon:"heart",items:o(["health_certificate","health_book","national_health_insurance_card","national_health_insurance_right_certificate","health_insurance_card","prescription","health_invoice","work_disability_recognition","pregnancy_medical_certificate","other_health_document"])},{id:"theme5",label:"home",icon:"home",items:o(["phone_invoice","isp_invoice","telecom_invoice","energy_invoice","water_invoice","house_sale_agreeement","building_permit","technical_diagnostic_record","unfit_for_habitation_declaration","lease","rent_receipt","accommodation_proof","house_insurance","work_quote","work_invoice","other_house_document"])},{id:"theme6",label:"transport",icon:"car",items:o(["driver_license","vehicle_registration","car_insurance","mechanic_invoice","transport_invoice","other_transport_document"]),defaultItems:["driver_license"]},{id:"theme7",label:"activity",icon:"compass",items:o(["personal_sporting_licence","other_activity_document"])},{id:"theme8",label:"finance",icon:"bank",items:o(["tax_return","tax_notice","tax_timetable","receipt","other_tax_document","bank_details","bank_statement","loan_agreement","payment_proof_family_allowance","other_bank_document","other_revenue"])},{id:"theme9",label:"invoice",icon:"bill",items:o(["phone_invoice","isp_invoice","telecom_invoice","energy_invoice","water_invoice","appliance_invoice","web_service_invoice","restaurant_invoice","work_invoice","transport_invoice","health_invoice","other_invoice"])}];t.themesList=i},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;r(n(83)),n(77);var o=function(){return null};o.isRequired=function(){return null};var i=o;t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e,t){return function(){return null}};t.default=r},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.specialProperty=void 0;r(n(2)),r(n(12));t.specialProperty="exact-prop: ​";var o=function(e){return e};t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFunctionName=o,t.default=void 0;var r=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function o(e){var t="".concat(e).match(r);return t&&t[1]||""}var i=function(e){return"string"==typeof e?e:e?e.displayName||e.name||o(e)||"Component":void 0};t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.create=t.createGenerateClassName=t.sheets=t.RuleList=t.SheetsManager=t.SheetsRegistry=t.toCssValue=t.getDynamicStyles=void 0;var r=n(686);Object.defineProperty(t,"getDynamicStyles",{enumerable:!0,get:function(){return f(r).default}});var o=n(130);Object.defineProperty(t,"toCssValue",{enumerable:!0,get:function(){return f(o).default}});var i=n(322);Object.defineProperty(t,"SheetsRegistry",{enumerable:!0,get:function(){return f(i).default}});var a=n(687);Object.defineProperty(t,"SheetsManager",{enumerable:!0,get:function(){return f(a).default}});var u=n(100);Object.defineProperty(t,"RuleList",{enumerable:!0,get:function(){return f(u).default}});var c=n(201);Object.defineProperty(t,"sheets",{enumerable:!0,get:function(){return f(c).default}});var s=n(325);Object.defineProperty(t,"createGenerateClassName",{enumerable:!0,get:function(){return f(s).default}});var l=f(n(691));function f(e){return e&&e.__esModule?e:{default:e}}var d=t.create=function(e){return new l.default(e)};t.default=d()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.registry=[]}return r(e,[{key:"add",value:function(e){var t=this.registry,n=e.options.index;if(-1===t.indexOf(e))if(0===t.length||n>=this.index)t.push(e);else for(var r=0;r<t.length;r++)if(t[r].options.index>n)return void t.splice(r,0,e)}},{key:"reset",value:function(){this.registry=[]}},{key:"remove",value:function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)}},{key:"toString",value:function(e){return this.registry.filter((function(e){return e.attached})).map((function(t){return t.toString(e)})).join("\n")}},{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(134),i=(r=o)&&r.__esModule?r:{default:r};t.default=function(e){return e&&e[i.default]&&e===e[i.default]()}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){e.renderable=t,e.rules&&t.cssRules&&e.rules.link(t.cssRules)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(n(73)),o=(i(n(326)),i(n(690)));function i(e){return e&&e.__esModule?e:{default:e}}t.default=function(){var e=0;return function(t,n){(e+=1)>1e10&&(0,r.default)(!1,"[JSS] You might have a memory leak. Rule counter is at %s.",e);var i="c",a="";return n&&(i=n.options.classNamePrefix||"c",null!=n.options.jss.id&&(a+=n.options.jss.id)),""+i+o.default+a+e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=u(n(324)),a=u(n(100));function u(e){return e&&e.__esModule?e:{default:e}}var c=function(){function e(t,n){var o=this;for(var i in function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.update=function(e,t){return"string"==typeof e?o.rules.update(e,t):o.rules.update(e),o},this.attached=!1,this.deployed=!1,this.linked=!1,this.classes={},this.options=r({},n,{sheet:this,parent:this,classes:this.classes}),this.renderer=new n.Renderer(this),this.rules=new a.default(this.options),t)this.rules.add(i,t[i]);this.rules.process()}return o(e,[{key:"attach",value:function(){return this.attached||(this.deployed||this.deploy(),this.renderer.attach(),!this.linked&&this.options.link&&this.link(),this.attached=!0),this}},{key:"detach",value:function(){return this.attached?(this.renderer.detach(),this.attached=!1,this):this}},{key:"addRule",value:function(e,t,n){var r=this.queue;this.attached&&!r&&(this.queue=[]);var o=this.rules.add(e,t,n);return this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(r?r.push(o):(this.insertRule(o),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),o):o:(this.deployed=!1,o)}},{key:"insertRule",value:function(e){var t=this.renderer.insertRule(e);t&&this.options.link&&(0,i.default)(e,t)}},{key:"addRules",value:function(e,t){var n=[];for(var r in e)n.push(this.addRule(r,e[r],t));return n}},{key:"getRule",value:function(e){return this.rules.get(e)}},{key:"deleteRule",value:function(e){var t=this.rules.get(e);return!!t&&(this.rules.remove(t),!this.attached||!t.renderable||this.renderer.deleteRule(t.renderable))}},{key:"indexOf",value:function(e){return this.rules.indexOf(e)}},{key:"deploy",value:function(){return this.renderer.deploy(),this.deployed=!0,this}},{key:"link",value:function(){var e=this.renderer.getRules();return e&&this.rules.link(e),this.linked=!0,this}},{key:"toString",value:function(e){return this.rules.toString(e)}}]),e}();t.default=c},function(e,t){e.exports=function(e,t){for(var n=e.split("."),r=t.split("."),o=0;o<3;o++){var i=Number(n[o]),a=Number(r[o]);if(i>a)return 1;if(a>i)return-1;if(!isNaN(i)&&isNaN(a))return 1;if(isNaN(i)&&!isNaN(a))return-1}return 0}},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"Intents",{enumerable:!0,get:function(){return o.default}});var o=r(n(360))},function(e,t,n){"use strict";(function(e){var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.getWebSocketToken=t.getWebSocketUrl=t.generateKey=void 0;var o=r(n(7)),i=r(n(9)),a=r(n(19)),u=r(n(4)),c=r(n(6)),s=r(n(2)),l=r(n(45)),f=r(n(367)),d=r(n(418)),p=void 0!==typeof window&&window.minilog||d.default,h=p("cozy-realtime");p.suggest.deny("cozy-realtime","info");var m=function(e,t,n){return"".concat(e).concat("//").concat(t).concat("//").concat(n)};t.generateKey=m;var y=function(e,t){if("function"!=typeof e&&"function"!=typeof t)throw new Error("You should call this function with an handler");var n,r;return t?(n=e,r=t):(n=void 0,r=e),{id:n,handler:r}},v=function(e,t,n,r){var o;if(["created","updated","deleted"].includes(e)||(o="'".concat(e,"' is not a valid event, valid events are 'created', 'updated' or 'deleted'.")),"string"!=typeof t&&(o="'".concat(t,"' is not a valide type, it should be a string.")),n&&"created"===e&&(o="The 'id' should not be specified for 'created' event."),"function"!=typeof r&&(o="The handler '".concat(r,"' should be a function.")),o)throw h.error(o),new Error(o)},g=function(e){var t=e.stackClient.uri,n=function(e){return!!e.match("^(https:/{2})")}(t)?"wss:":"ws:",r=new URL(t).host;return"".concat(n,"//").concat(r,"/realtime/")};t.getWebSocketUrl=g;var b=function(e){return e.stackClient.token.accessToken||e.stackClient.token.token};t.getWebSocketToken=b;var w=function(){function t(n){var r=n.cozyClient,o=n.client;if((0,u.default)(this,t),(0,s.default)(this,"_cozyClient",null),(0,s.default)(this,"_socket",null),(0,s.default)(this,"_retryDelay",1e3),(0,s.default)(this,"_retryLimit",60),r&&console.warn("Realtime: options.cozyClient is deprecated, please use options.client"),this._cozyClient=o||r,!this._cozyClient)throw new Error("Realtime must be initialized with a client. Ex: new Realtime({ client })");this._updateAuthentication=this._updateAuthentication.bind(this),this.unsubscribeAll=this.unsubscribeAll.bind(this),this._receiveMessage=this._receiveMessage.bind(this),this._receiveError=this._receiveError.bind(this),this._resubscribe=this._resubscribe.bind(this),this._beforeUnload=this._beforeUnload.bind(this),this._resetSocket=this._resetSocket.bind(this),this._createSocket(),this._cozyClient.on("login",this._updateAuthentication),this._cozyClient.on("tokenRefreshed",this._updateAuthentication),this._cozyClient.on("logout",this.unsubscribeAll),e&&(e.addEventListener("beforeunload",this._beforeUnload),e.addEventListener("online",this._resubscribe),e.removeEventListener("offline",this._resetSocket))}return(0,c.default)(t,[{key:"_beforeUnload",value:function(){e.removeEventListener("beforeunload",this._windowUnload),this.unsubscribeAll()}},{key:"_createSocket",value:function(){var e=this;if(!this._socket){this._socket=new f.default((function(){return g(e._cozyClient)}),(function(){return b(e._cozyClient)})),this._socket.on("message",this._receiveMessage),this._socket.on("error",this._receiveError)}}},{key:"_receiveError",value:function(t){h.info("Receive error: ".concat(t)),this._resetSocket(),0===this._retryLimit?this.emit("error",t):(this.retry&&clearTimeout(this.retry),e.navigator.onLine&&(this.retry=setTimeout(this._resubscribe,this._retryDelay)))}},{key:"_resubscribe",value:function(){var e=this;this._retryLimit--;var t=Object.keys(this._events).map((function(t){if(t.includes("//")&&0!==e._events[t].length){var n=t.split("//"),r=(0,a.default)(n,3),o=r[1],i=r[2];return"undefined"===i&&(i=void 0),{type:o,id:i}}})).filter(Boolean),n=!0,r=!1,o=void 0;try{for(var i,u=t[Symbol.iterator]();!(n=(i=u.next()).done);n=!0){var c=i.value,s=c.type,l=c.id;this._socket.subscribe(s,l)}}catch(e){r=!0,o=e}finally{try{n||null==u.return||u.return()}finally{if(r)throw o}}}},{key:"_receiveMessage",value:function(e,t){var n=e.type,r=e.id,o=e.eventName,i=[m(o,n)];r&&i.push(m(o,n,r));for(var a=0;a<i.length;a++){var u=i[a];h.debug("Emitting",u,t),this.emit(u,t)}}},{key:"_updateAuthentication",value:function(){h.info("Update token on socket"),this._socket.authenticate()}},{key:"_resetSocket",value:function(){this._socket&&(this._socket.close(),this._socket=null),this._createSocket()}},{key:"subscribe",value:function(e,t,n,r){var a=this,u=y(n,r),c=u.handler,s=u.id;return v(e,t,s,c),this._socket.isConnecting()?new Promise((function(u){a._socket.once("open",(0,i.default)(o.default.mark((function i(){return o.default.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,a.subscribe(e,t,n,r);case 2:u();case 3:case"end":return o.stop()}}),i)}))))})):new Promise((function(n){var r=m(e,t,s);a.on(r,c),a._socket.once("subscribe_".concat(t,"_").concat(s),n),a._socket.subscribe(t,s)}))}},{key:"unsubscribe",value:function(e,t,n,r){var o=y(n,r),i=o.handler,a=o.id;v(e,t,a,i);var u=m(e,t,a);this.removeListener(u,i),this._haveEventHandler()||this._resetSocket()}},{key:"unsubscribeAll",value:function(){var e=this;this._getEventKeys().map((function(t){return e._events[t].length>0&&t})).filter(Boolean).forEach((function(t){return e._events[t]=[]})),this._resetSocket()}},{key:"_getEventKeys",value:function(){return this._events?Object.keys(this._events).map((function(e){return e.includes("//")&&e})).filter(Boolean):[]}},{key:"_haveEventHandler",value:function(){var e=this;return this._getEventKeys().map((function(t){return e._events[t].length})).filter(Boolean).length>0}}]),t}();l.default.mixin(w);var x=w;t.default=x}).call(this,n(33))},function(e,t,n){"use strict";function r(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.a=n}).call(this,n(33))},function(e,t,n){(function(t){var n=/^\[object .+?Constructor\]$/,r="object"==typeof t&&t&&t.Object===Object&&t,o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();function a(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function u(e,t){return!!(e?e.length:0)&&function(e,t,n){if(t!=t)return function(e,t,n,r){var o=e.length,i=n+(r?1:-1);for(;r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}(e,l,n);var r=n-1,o=e.length;for(;++r<o;)if(e[r]===t)return r;return-1}(e,t,0)>-1}function c(e,t,n){for(var r=-1,o=e?e.length:0;++r<o;)if(n(t,e[r]))return!0;return!1}function s(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function l(e){return e!=e}function f(e,t){return e.has(t)}function d(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var p,h=Array.prototype,m=Function.prototype,y=Object.prototype,v=i["__core-js_shared__"],g=(p=/[^.]+$/.exec(v&&v.keys&&v.keys.IE_PROTO||""))?"Symbol(src)_1."+p:"",b=m.toString,w=y.hasOwnProperty,x=y.toString,C=RegExp("^"+b.call(w).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),k=i.Symbol,S=y.propertyIsEnumerable,_=h.splice,A=k?k.isConcatSpreadable:void 0,O=Math.max,E=N(i,"Map"),B=N(i,"Set"),j=N(Object,"create");function P(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function T(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function z(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function I(e){var t=-1,n=e?e.length:0;for(this.__data__=new z;++t<n;)this.add(e[t])}function D(e,t){for(var n,r,o=e.length;o--;)if((n=e[o][0])===(r=t)||n!=n&&r!=r)return o;return-1}function R(e){return!(!Q(e)||(t=e,g&&g in t))&&(W(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?C:n).test(function(e){if(null!=e){try{return b.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e));var t}P.prototype.clear=function(){this.__data__=j?j(null):{}},P.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},P.prototype.get=function(e){var t=this.__data__;if(j){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return w.call(t,e)?t[e]:void 0},P.prototype.has=function(e){var t=this.__data__;return j?void 0!==t[e]:w.call(t,e)},P.prototype.set=function(e,t){return this.__data__[e]=j&&void 0===t?"__lodash_hash_undefined__":t,this},T.prototype.clear=function(){this.__data__=[]},T.prototype.delete=function(e){var t=this.__data__,n=D(t,e);return!(n<0)&&(n==t.length-1?t.pop():_.call(t,n,1),!0)},T.prototype.get=function(e){var t=this.__data__,n=D(t,e);return n<0?void 0:t[n][1]},T.prototype.has=function(e){return D(this.__data__,e)>-1},T.prototype.set=function(e,t){var n=this.__data__,r=D(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},z.prototype.clear=function(){this.__data__={hash:new P,map:new(E||T),string:new P}},z.prototype.delete=function(e){return M(this,e).delete(e)},z.prototype.get=function(e){return M(this,e).get(e)},z.prototype.has=function(e){return M(this,e).has(e)},z.prototype.set=function(e,t){return M(this,e).set(e,t),this},I.prototype.add=I.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},I.prototype.has=function(e){return this.__data__.has(e)};var F=B&&1/d(new B([,-0]))[1]==1/0?function(e){return new B(e)}:function(){};function M(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function N(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return R(n)?n:void 0}function L(e){return q(e)||function(e){return H(e)&&w.call(e,"callee")&&(!S.call(e,"callee")||"[object Arguments]"==x.call(e))}(e)||!!(A&&e&&e[A])}var U,$,G=(U=function(e){var t,n,r=(n=(t=e)?t.length:0)?t[n-1]:void 0;return H(r)&&(r=void 0),function(e,t,n){var r=-1,o=u,i=e.length,a=!0,s=[],l=s;if(n)a=!1,o=c;else if(i>=200){var p=t?null:F(e);if(p)return d(p);a=!1,o=f,l=new I}else l=t?[]:s;e:for(;++r<i;){var h=e[r],m=t?t(h):h;if(h=n||0!==h?h:0,a&&m==m){for(var y=l.length;y--;)if(l[y]===m)continue e;t&&l.push(m),s.push(h)}else o(l,m,n)||(l!==s&&l.push(m),s.push(h))}return s}(function e(t,n,r,o,i){var a=-1,u=t.length;for(r||(r=L),i||(i=[]);++a<u;){var c=t[a];n>0&&r(c)?n>1?e(c,n-1,r,o,i):s(i,c):o||(i[i.length]=c)}return i}(e,1,H,!0),void 0,r)},$=O(void 0===$?U.length-1:$,0),function(){for(var e=arguments,t=-1,n=O(e.length-$,0),r=Array(n);++t<n;)r[t]=e[$+t];t=-1;for(var o=Array($+1);++t<$;)o[t]=e[t];return o[$]=r,a(U,this,o)});var q=Array.isArray;function J(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}(e.length)&&!W(e)}function H(e){return function(e){return!!e&&"object"==typeof e}(e)&&J(e)}function W(e){var t=Q(e)?x.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}function Q(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}e.exports=G}).call(this,n(33))},function(e){e.exports=JSON.parse('{"drawer":"Show menu drawer","profile":"Profile","connectedDevices":"Connected devices","storage":"Storage","storage_phrase":"%{diskUsage} GB of %{diskQuota} GB used","view_offers":"View offers","view_my_offer":"My offer","help":"Help","logout":"Sign out","soon":"soon","error_UnavailableStack":"The stack is unreachable (connection timed-out).","error_UnauthorizedStack":"Some permissions are missing, the application can\'t access the requested resource on the stack.","no_apps":"No applications found on the Cozy.","menu":{"apps":"Apps","settings":"Settings","home_mobile":"Back to home...","home":"Back to home","home_title":"Home"},"Categories":{"cozy":"Cozy apps","partners":"Partners apps","ptnb":"expPTNB","others":"Other apps"},"claudy":{"title":"How to drive your Cozy?"},"searchbar":{"placeholder":"Search anything","empty":"No result has been found for the query “%{query}”"},"permsModal":{"title":"Access your whole Cozy from your application","description":"Authorize %{app} to display your Cozy applications on this device","button":"Authorize access"},"comingSoon":{"store":{"title":"The Store application will be available soon in your Cozy.","description":"Thanks to Cozy Store you will be able to install the applications that you want in your Cozy."}},"banner":{"tos-updated":{"description":"To comply with the GDPR, Cozy Cloud has updated its Terms of Services that have taken effect on May 25, 2018","CTA":"Read now"}}}')},function(e){e.exports=JSON.parse('{"drawer":"Afficher le menu latéral","profile":"Profil","connectedDevices":"Appareils connectés","storage":"Espace disque","storage_phrase":"%{diskUsage} Go sur %{diskQuota} Go","view_offers":"Voir les offres","view_my_offer":"Mon offre","help":"Aide","logout":"Déconnexion","soon":"à venir","error_UnavailableStack":"Connexion à la stack impossible (connection timed-out)","error_UnauthorizedStack":"Des permissions sont manquante, l\'application ne peut accéder aux ressources demandées.","no_apps":"Pas d\'applications Cozy trouvées.","menu":{"apps":"Applications","settings":"Paramètres","home_mobile":"Retour à l\'accueil...","home":"Retour à l\'accueil","home_title":"Accueil "},"Categories":{"cozy":"Apps Cozy","partners":"Expérimentation MesInfos","ptnb":"Expérimentation Carnet du logement","others":"Autres apps"},"claudy":{"title":"Comment utiliser votre Cozy ?"},"searchbar":{"placeholder":"Rechercher","empty":"Aucun résultat trouvé pour la requête \\"%{query}\\""},"permsModal":{"title":"Accéder à ton Cozy à partir de ton application","description":"Autoriser %{app} à afficher les applications de ton Cozy sur cet appareil","button":"Autoriser l\'accès"},"comingSoon":{"store":{"title":"L\'application Store sera bientôt disponible dans votre Cozy","description":"Grâce à cozy Store vous pourrez installer les applications que vous souhaitez sur votre Cozy."}},"banner":{"tos-updated":{"description":"Dans le cadre du RGPD, Cozy Cloud met à jour ses Conditions Générales d\'Utilisation qui ont pris effet le 25 Mai 2018","CTA":"Lire maintenant"}}}')},function(e){e.exports=JSON.parse('{"drawer":"Mostrar el menu lateral","profile":"Perfil","connectedDevices":"Aparatos conectados","storage":"Espacio en el disco","storage_phrase":"%{diskUsage} Go de %{diskQuota} Go","view_offers":"Ver ofertas","view_my_offer":"Mi oferta","help":"Ayuda","logout":"Desconectar","soon":"pronto","error_UnavailableStack":"Conexión a la stack imposible ( se agotó el tiempo para la conexión ).","error_UnauthorizedStack":"Faltan algunos permisos, la aplicación no puede acceder a los recursos solicitados.","no_apps":"No se han encontrado aplicaciones en su Cozy.","menu":{"apps":"Aplicaciones","settings":"Parámetros","home_mobile":"Regresar a Inicio...","home":"Regresar a Inicio","home_title":"Inicio"},"Categories":{"cozy":"Aplicaciones Cozy","partners":"Aplicaciones de asociados","ptnb":"expPTNB","others":"Otras aplicaciones"},"claudy":{"title":"¿Cómo utilizar su Cozy?"},"searchbar":{"placeholder":"Buscar","empty":"No se ha encontrado ningún resultado para su consulta “%{query}”"},"permsModal":{"title":"Acceder a su Cozy desde su aplicación","description":"Autorizar a %{app} para mostrar sus aplicaciones Cozy en este aparato","button":"Autorizar el acceso"},"comingSoon":{"store":{"title":"En breve, la aplicación Store estará disponible en su Cozy","description":"Gracias a Cozy Store usted podrá instalar en su Cozy las aplicaciones que desee."}},"banner":{"tos-updated":{"description":"Para cumplir con el RGPD, Cozy Cloud ha actualizado sus Condiciones de utilización que entraron en vigor desde el 25 de mayo de 2018.","CTA":"Leerlo ahora"}}}')},function(e,t,n){var r=n(455),o=n(460),i=n(241),a=n(55),u=n(463),c=n(90);var s={M:function(e){return e.getMonth()+1},MM:function(e){return d(e.getMonth()+1,2)},Q:function(e){return Math.ceil((e.getMonth()+1)/3)},D:function(e){return e.getDate()},DD:function(e){return d(e.getDate(),2)},DDD:function(e){return r(e)},DDDD:function(e){return d(r(e),3)},d:function(e){return e.getDay()},E:function(e){return e.getDay()||7},W:function(e){return o(e)},WW:function(e){return d(o(e),2)},YY:function(e){return d(e.getFullYear(),4).substr(2)},YYYY:function(e){return d(e.getFullYear(),4)},GG:function(e){return String(i(e)).substr(2)},GGGG:function(e){return i(e)},H:function(e){return e.getHours()},HH:function(e){return d(e.getHours(),2)},h:function(e){var t=e.getHours();return 0===t?12:t>12?t%12:t},hh:function(e){return d(s.h(e),2)},m:function(e){return e.getMinutes()},mm:function(e){return d(e.getMinutes(),2)},s:function(e){return e.getSeconds()},ss:function(e){return d(e.getSeconds(),2)},S:function(e){return Math.floor(e.getMilliseconds()/100)},SS:function(e){return d(Math.floor(e.getMilliseconds()/10),2)},SSS:function(e){return d(e.getMilliseconds(),3)},Z:function(e){return f(e.getTimezoneOffset(),":")},ZZ:function(e){return f(e.getTimezoneOffset())},X:function(e){return Math.floor(e.getTime()/1e3)},x:function(e){return e.getTime()}};function l(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|]$/g,""):e.replace(/\\/g,"")}function f(e,t){t=t||"";var n=e>0?"-":"+",r=Math.abs(e),o=r%60;return n+d(Math.floor(r/60),2)+t+d(o,2)}function d(e,t){for(var n=Math.abs(e).toString();n.length<t;)n="0"+n;return n}e.exports=function(e,t,n){var r=t?String(t):"YYYY-MM-DDTHH:mm:ss.SSSZ",o=(n||{}).locale,i=c.format.formatters,f=c.format.formattingTokensRegExp;o&&o.format&&o.format.formatters&&(i=o.format.formatters,o.format.formattingTokensRegExp&&(f=o.format.formattingTokensRegExp));var d=a(e);return u(d)?function(e,t,n){var r,o,i=e.match(n),a=i.length;for(r=0;r<a;r++)o=t[i[r]]||s[i[r]],i[r]=o||l(i[r]);return function(e){for(var t="",n=0;n<a;n++)i[n]instanceof Function?t+=i[n](e,s):t+=i[n];return t}}(r,i,f)(d):"Invalid Date"}},function(e,t,n){"use strict";e.exports=n(673).default},function(e,t,n){(function(t){var n=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,i=/^0o[0-7]+$/i,a=parseInt,u="object"==typeof t&&t&&t.Object===Object&&t,c="object"==typeof self&&self&&self.Object===Object&&self,s=u||c||Function("return this")(),l=Object.prototype.toString,f=Math.max,d=Math.min,p=function(){return s.Date.now()};function h(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function m(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==l.call(e)}(e))return NaN;if(h(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=h(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(n,"");var u=o.test(e);return u||i.test(e)?a(e.slice(2),u?2:8):r.test(e)?NaN:+e}e.exports=function(e,t,n){var r,o,i,a,u,c,s=0,l=!1,y=!1,v=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function g(t){var n=r,i=o;return r=o=void 0,s=t,a=e.apply(i,n)}function b(e){return s=e,u=setTimeout(x,t),l?g(e):a}function w(e){var n=e-c;return void 0===c||n>=t||n<0||y&&e-s>=i}function x(){var e=p();if(w(e))return C(e);u=setTimeout(x,function(e){var n=t-(e-c);return y?d(n,i-(e-s)):n}(e))}function C(e){return u=void 0,v&&r?g(e):(r=o=void 0,a)}function k(){var e=p(),n=w(e);if(r=arguments,o=this,c=e,n){if(void 0===u)return b(c);if(y)return u=setTimeout(x,t),g(c)}return void 0===u&&(u=setTimeout(x,t)),a}return t=m(t)||0,h(n)&&(l=!!n.leading,i=(y="maxWait"in n)?f(m(n.maxWait)||0,t):i,v="trailing"in n?!!n.trailing:v),k.cancel=function(){void 0!==u&&clearTimeout(u),s=0,r=c=o=u=void 0},k.flush=function(){return void 0===u?a:C(p())},k}}).call(this,n(33))},function(e,t,n){var r=n(63),o=0;e.exports=function(e){var t=++o;return r(e)+t}},function(e,t,n){(t=e.exports=n(70)(!0)).push([e.i,"html{--zIndex-below:-1;--zIndex-app:0;--zIndex-low:1;--zIndex-alertMobile:10;--zIndex-nav:20;--zIndex-bar:21;--zIndex-selection:30;--zIndex-popover:40;--zIndex-overlay:50;--zIndex-fileActionMenu:60;--zIndex-drawer:60;--zIndex-modal:70;--zindex-alert:80}.cozy-ui-bar-c-overlay--3097A{z-index:50;position:fixed;top:0;left:0;height:100%;width:100%;background:var(--overlay);visibility:visible;transition:opacity .3s,visibility 0s ease-out}","",{version:3,sources:["/home/travis/build/cozy/cozy-bar/node_modules/cozy-ui/react/Overlay/node_modules/cozy-ui/stylus/settings/z-index.styl","/home/travis/build/cozy/cozy-bar/node_modules/cozy-ui/react/Overlay/styles.styl","/home/travis/build/cozy/cozy-bar/node_modules/cozy-ui/react/Overlay/node_modules/cozy-ui/stylus/components/overlay.styl"],names:[],mappings:"AAsDA,KACI,kBACA,eACA,eACA,wBACA,gBACA,gBACA,sBACA,oBACA,oBACA,2BACA,mBACA,kBACA,iBCrDJ,CCZA,8BACI,WACA,eACA,MACA,OACA,YACA,WACA,0BACA,mBACA,6CDcJ,CAAA",file:"styles.styl",sourcesContent:["/*------------------------------------*\\\n Please, edit this file properly, with a 10 based incrementation,\n and keep things in order so it remains easily readable.\n\n How to use: just import this file in your component's style and call\n the related variable\n e.g.\n .my-app\n z-index $app-index\n\\*------------------------------------*/\n\n/*\n Z-Index\n\n List of every z-index related to components in order to keep a clean\n & maintainable order of indexes.\n\n Those indexes are 10 based so you can deal with extra layers using `$index + 1`\n\n $below-index - **index -1** Layer below the app, mostly for hiding purpose\n $app-index - **index 0** App index, the ground zero.\n $low-index - **index 1** Low level index, to make sure a positionned element goes over elements with z-index 0.\n $alert-index-mobile - **index 10** Alert index like success, errors, infos *mobile only*\n $nav-index - **index 20** Nav index\n $bar-index - **index 21** Bar index equals Nav index + 1, not actually used, just as reference.\n $selection-index - **index 30** Selection bar index, with actions for selected items\n $popover-index - **index 40** Popover index used by dropdown menu for example\n $overlay - **index 50** Overlay index for modals background\n $file-action-menu - **index 60** File action menu index *mobile only*\n $modal-index - **index 70** Modal index\n $modal-footer-index - **index 71** Modal footer index\n $modal-toolbar-index - **index 72** Modal toolbar index\n $alert-index - **index 80** Alert index such as success, errors, infos\n\n Styleguide Settings.z-index\n*/\n\n$below-index = -1\n$app-index = 0\n$low-index = 1\n$alert-index-mobile = 10\n$nav-index = 20\n$bar-index = $nav-index + 1 // Not actually used, just as reference\n$selection-index = 30\n$popover-index = 40\n$overlay-index = 50\n$file-action-menu = 60 // replaced by $drawer-index\n$drawer-index = 60\n$modal-index = 70\n$modal-footer-index = $modal-index + 1\n$modal-toolbar-index = $modal-footer-index + 1\n$alert-index = 80\n\n// @stylint off\nhtml\n --zIndex-below $below-index\n --zIndex-app $app-index\n --zIndex-low $low-index\n --zIndex-alertMobile $alert-index-mobile\n --zIndex-nav $nav-index\n --zIndex-bar $bar-index\n --zIndex-selection $selection-index\n --zIndex-popover $popover-index\n --zIndex-overlay $overlay-index\n --zIndex-fileActionMenu $file-action-menu\n --zIndex-drawer $drawer-index\n --zIndex-modal $modal-index\n --zindex-alert $alert-index\n// @stylint on\n\n","html {\n --zIndex-below: -1;\n --zIndex-app: 0;\n --zIndex-low: 1;\n --zIndex-alertMobile: 10;\n --zIndex-nav: 20;\n --zIndex-bar: 21;\n --zIndex-selection: 30;\n --zIndex-popover: 40;\n --zIndex-overlay: 50;\n --zIndex-fileActionMenu: 60;\n --zIndex-drawer: 60;\n --zIndex-modal: 70;\n --zindex-alert: 80;\n}\n.c-overlay {\n z-index: 50;\n position: fixed;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%;\n background: var(--overlay);\n visibility: visible;\n transition: opacity 0.3s, visibility 0s ease-out;\n}\n","@require '../settings/z-index'\n\n$overlay\n z-index $overlay-index\n position fixed\n top 0\n left 0\n height 100%\n width 100%\n background var(--overlay)\n visibility visible\n transition opacity .3s, visibility 0s ease-out\n"],sourceRoot:""}]),t.locals={"c-overlay":"cozy-ui-bar-c-overlay--3097A"}},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o.default}});var o=r(n(684))},function(e,t,n){(function(e){!function(t){"use strict";function n(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}function r(e,t){Object.defineProperty(this,"kind",{value:e,enumerable:!0}),t&&t.length&&Object.defineProperty(this,"path",{value:t,enumerable:!0})}function o(e,t,n){o.super_.call(this,"E",e),Object.defineProperty(this,"lhs",{value:t,enumerable:!0}),Object.defineProperty(this,"rhs",{value:n,enumerable:!0})}function i(e,t){i.super_.call(this,"N",e),Object.defineProperty(this,"rhs",{value:t,enumerable:!0})}function a(e,t){a.super_.call(this,"D",e),Object.defineProperty(this,"lhs",{value:t,enumerable:!0})}function u(e,t,n){u.super_.call(this,"A",e),Object.defineProperty(this,"index",{value:t,enumerable:!0}),Object.defineProperty(this,"item",{value:n,enumerable:!0})}function c(e,t,n){var r=e.slice((n||t)+1||e.length);return e.length=t<0?e.length+t:t,e.push.apply(e,r),e}function s(e){var t=void 0===e?"undefined":k(e);return"object"!==t?t:e===Math?"math":null===e?"null":Array.isArray(e)?"array":"[object Date]"===Object.prototype.toString.call(e)?"date":"function"==typeof e.toString&&/^\/.*\//.test(e.toString())?"regexp":"object"}function l(e,t,n,r,f,d,p){p=p||[];var h=(f=f||[]).slice(0);if(void 0!==d){if(r){if("function"==typeof r&&r(h,d))return;if("object"===(void 0===r?"undefined":k(r))){if(r.prefilter&&r.prefilter(h,d))return;if(r.normalize){var m=r.normalize(h,d,e,t);m&&(e=m[0],t=m[1])}}}h.push(d)}"regexp"===s(e)&&"regexp"===s(t)&&(e=e.toString(),t=t.toString());var y=void 0===e?"undefined":k(e),v=void 0===t?"undefined":k(t),g="undefined"!==y||p&&p[p.length-1].lhs&&p[p.length-1].lhs.hasOwnProperty(d),b="undefined"!==v||p&&p[p.length-1].rhs&&p[p.length-1].rhs.hasOwnProperty(d);if(!g&&b)n(new i(h,t));else if(!b&&g)n(new a(h,e));else if(s(e)!==s(t))n(new o(h,e,t));else if("date"===s(e)&&e-t!=0)n(new o(h,e,t));else if("object"===y&&null!==e&&null!==t)if(p.filter((function(t){return t.lhs===e})).length)e!==t&&n(new o(h,e,t));else{if(p.push({lhs:e,rhs:t}),Array.isArray(e)){var w;for(e.length,w=0;w<e.length;w++)w>=t.length?n(new u(h,w,new a(void 0,e[w]))):l(e[w],t[w],n,r,h,w,p);for(;w<t.length;)n(new u(h,w,new i(void 0,t[w++])))}else{var x=Object.keys(e),C=Object.keys(t);x.forEach((function(o,i){var a=C.indexOf(o);a>=0?(l(e[o],t[o],n,r,h,o,p),C=c(C,a)):l(e[o],void 0,n,r,h,o,p)})),C.forEach((function(e){l(void 0,t[e],n,r,h,e,p)}))}p.length=p.length-1}else e!==t&&("number"===y&&isNaN(e)&&isNaN(t)||n(new o(h,e,t)))}function f(e,t,n,r){return r=r||[],l(e,t,(function(e){e&&r.push(e)}),n),r.length?r:void 0}function d(e,t,n){if(e&&t&&n&&n.kind){for(var r=e,o=-1,i=n.path?n.path.length-1:0;++o<i;)void 0===r[n.path[o]]&&(r[n.path[o]]="number"==typeof n.path[o]?[]:{}),r=r[n.path[o]];switch(n.kind){case"A":!function e(t,n,r){if(r.path&&r.path.length){var o,i=t[n],a=r.path.length-1;for(o=0;o<a;o++)i=i[r.path[o]];switch(r.kind){case"A":e(i[r.path[o]],r.index,r.item);break;case"D":delete i[r.path[o]];break;case"E":case"N":i[r.path[o]]=r.rhs}}else switch(r.kind){case"A":e(t[n],r.index,r.item);break;case"D":t=c(t,n);break;case"E":case"N":t[n]=r.rhs}return t}(n.path?r[n.path[o]]:r,n.index,n.item);break;case"D":delete r[n.path[o]];break;case"E":case"N":r[n.path[o]]=n.rhs}}}function p(e){return"color: "+A[e].color+"; font-weight: bold"}function h(e,t,n,r){var o=f(e,t);try{r?n.groupCollapsed("diff"):n.group("diff")}catch(e){n.log("diff")}o?o.forEach((function(e){var t=e.kind,r=function(e){var t=e.kind,n=e.path,r=e.lhs,o=e.rhs,i=e.index,a=e.item;switch(t){case"E":return[n.join("."),r,"→",o];case"N":return[n.join("."),o];case"D":return[n.join(".")];case"A":return[n.join(".")+"["+i+"]",a];default:return[]}}(e);n.log.apply(n,["%c "+A[t].text,p(t)].concat(S(r)))})):n.log("—— no diff ——");try{n.groupEnd()}catch(e){n.log("—— diff end —— ")}}function m(e,t,n,r){switch(void 0===e?"undefined":k(e)){case"object":return"function"==typeof e[r]?e[r].apply(e,S(n)):e[r];case"function":return e(t);default:return e}}function y(e,t){var n=t.logger,r=t.actionTransformer,o=t.titleFormatter,i=void 0===o?function(e){var t=e.timestamp,n=e.duration;return function(e,r,o){var i=["action"];return i.push("%c"+String(e.type)),t&&i.push("%c@ "+r),n&&i.push("%c(in "+o.toFixed(2)+" ms)"),i.join(" ")}}(t):o,a=t.collapsed,u=t.colors,c=t.level,s=t.diff,l=void 0===t.titleFormatter;e.forEach((function(o,f){var d=o.started,p=o.startedTime,y=o.action,v=o.prevState,g=o.error,b=o.took,w=o.nextState,C=e[f+1];C&&(w=C.prevState,b=C.started-d);var k=r(y),S="function"==typeof a?a((function(){return w}),y,o):a,_=x(p),A=u.title?"color: "+u.title(k)+";":"",O=["color: gray; font-weight: lighter;"];O.push(A),t.timestamp&&O.push("color: gray; font-weight: lighter;"),t.duration&&O.push("color: gray; font-weight: lighter;");var E=i(k,_,b);try{S?u.title&&l?n.groupCollapsed.apply(n,["%c "+E].concat(O)):n.groupCollapsed(E):u.title&&l?n.group.apply(n,["%c "+E].concat(O)):n.group(E)}catch(e){n.log(E)}var B=m(c,k,[v],"prevState"),j=m(c,k,[k],"action"),P=m(c,k,[g,v],"error"),T=m(c,k,[w],"nextState");if(B)if(u.prevState){var z="color: "+u.prevState(v)+"; font-weight: bold";n[B]("%c prev state",z,v)}else n[B]("prev state",v);if(j)if(u.action){var I="color: "+u.action(k)+"; font-weight: bold";n[j]("%c action ",I,k)}else n[j]("action ",k);if(g&&P)if(u.error){var D="color: "+u.error(g,v)+"; font-weight: bold;";n[P]("%c error ",D,g)}else n[P]("error ",g);if(T)if(u.nextState){var R="color: "+u.nextState(w)+"; font-weight: bold";n[T]("%c next state",R,w)}else n[T]("next state",w);s&&h(v,w,n,S);try{n.groupEnd()}catch(e){n.log("—— log end ——")}}))}function v(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object.assign({},O,e),n=t.logger,r=t.stateTransformer,o=t.errorTransformer,i=t.predicate,a=t.logErrors,u=t.diffPredicate;if(void 0===n)return function(){return function(e){return function(t){return e(t)}}};if(e.getState&&e.dispatch)return console.error("[redux-logger] redux-logger not installed. Make sure to pass logger instance as middleware:\n// Logger with default options\nimport { logger } from 'redux-logger'\nconst store = createStore(\n reducer,\n applyMiddleware(logger)\n)\n// Or you can create your own logger with custom options http://bit.ly/redux-logger-options\nimport createLogger from 'redux-logger'\nconst logger = createLogger({\n // ...options\n});\nconst store = createStore(\n reducer,\n applyMiddleware(logger)\n)\n"),function(){return function(e){return function(t){return e(t)}}};var c=[];return function(e){var n=e.getState;return function(e){return function(s){if("function"==typeof i&&!i(n,s))return e(s);var l={};c.push(l),l.started=C.now(),l.startedTime=new Date,l.prevState=r(n()),l.action=s;var f=void 0;if(a)try{f=e(s)}catch(e){l.error=o(e)}else f=e(s);l.took=C.now()-l.started,l.nextState=r(n());var d=t.diff&&"function"==typeof u?u(n,s):t.diff;if(y(c,Object.assign({},t,{diff:d})),c.length=0,l.error)throw l.error;return f}}}}var g,b,w=function(e,t){return function(e,t){return new Array(t+1).join(e)}("0",t-e.toString().length)+e},x=function(e){return w(e.getHours(),2)+":"+w(e.getMinutes(),2)+":"+w(e.getSeconds(),2)+"."+w(e.getMilliseconds(),3)},C="undefined"!=typeof performance&&null!==performance&&"function"==typeof performance.now?performance:Date,k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},S=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)},_=[];g="object"===(void 0===e?"undefined":k(e))&&e?e:"undefined"!=typeof window?window:{},(b=g.DeepDiff)&&_.push((function(){void 0!==b&&g.DeepDiff===f&&(g.DeepDiff=b,b=void 0)})),n(o,r),n(i,r),n(a,r),n(u,r),Object.defineProperties(f,{diff:{value:f,enumerable:!0},observableDiff:{value:l,enumerable:!0},applyDiff:{value:function(e,t,n){e&&t&&l(e,t,(function(r){n&&!n(e,t,r)||d(e,t,r)}))},enumerable:!0},applyChange:{value:d,enumerable:!0},revertChange:{value:function(e,t,n){if(e&&t&&n&&n.kind){var r,o,i=e;for(o=n.path.length-1,r=0;r<o;r++)void 0===i[n.path[r]]&&(i[n.path[r]]={}),i=i[n.path[r]];switch(n.kind){case"A":!function e(t,n,r){if(r.path&&r.path.length){var o,i=t[n],a=r.path.length-1;for(o=0;o<a;o++)i=i[r.path[o]];switch(r.kind){case"A":e(i[r.path[o]],r.index,r.item);break;case"D":case"E":i[r.path[o]]=r.lhs;break;case"N":delete i[r.path[o]]}}else switch(r.kind){case"A":e(t[n],r.index,r.item);break;case"D":case"E":t[n]=r.lhs;break;case"N":t=c(t,n)}return t}(i[n.path[r]],n.index,n.item);break;case"D":case"E":i[n.path[r]]=n.lhs;break;case"N":delete i[n.path[r]]}}},enumerable:!0},isConflict:{value:function(){return void 0!==b},enumerable:!0},noConflict:{value:function(){return _&&(_.forEach((function(e){e()})),_=null),f},enumerable:!0}});var A={E:{color:"#2196F3",text:"CHANGED:"},N:{color:"#4CAF50",text:"ADDED:"},D:{color:"#F44336",text:"DELETED:"},A:{color:"#2196F3",text:"ARRAY:"}},O={level:"log",logger:console,logErrors:!0,collapsed:void 0,predicate:void 0,duration:!1,timestamp:!0,stateTransformer:function(e){return e},actionTransformer:function(e){return e},errorTransformer:function(e){return e},colors:{title:function(){return"inherit"},prevState:function(){return"#9E9E9E"},action:function(){return"#03A9F4"},nextState:function(){return"#4CAF50"},error:function(){return"#F20404"}},diff:!1,diffPredicate:void 0,transformer:void 0},E=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.dispatch,n=e.getState;return"function"==typeof t||"function"==typeof n?v()({dispatch:t,getState:n}):void console.error("\n[redux-logger v3] BREAKING CHANGE\n[redux-logger v3] Since 3.0.0 redux-logger exports by default logger with default settings.\n[redux-logger v3] Change\n[redux-logger v3] import createLogger from 'redux-logger'\n[redux-logger v3] to\n[redux-logger v3] import { createLogger } from 'redux-logger'\n")};t.defaults=O,t.createLogger=v,t.logger=E,t.default=E,Object.defineProperty(t,"__esModule",{value:!0})}(t)}).call(this,n(33))},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(743),i=(r=o)&&r.__esModule?r:{default:r};t.default=(0,i.default)("local")},function(e){e.exports=JSON.parse('["apps","context"]')},,,,function(e,t,n){var r=function(e){"use strict";var t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof f?t:f,i=Object.create(o.prototype),a=new k(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return _()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var u=w(a,n);if(u){if(u===l)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=s(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===l)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(e,n,a),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var l={};function f(){}function d(){}function p(){}var h={};h[o]=function(){return this};var m=Object.getPrototypeOf,y=m&&m(m(S([])));y&&y!==t&&n.call(y,o)&&(h=y);var v=p.prototype=f.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){var r;this._invoke=function(o,i){function a(){return new t((function(r,a){!function r(o,i,a,u){var c=s(e[o],e,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,u)}),(function(e){r("throw",e,a,u)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,u)}))}u(c.arg)}(o,i,r,a)}))}return r=r?r.then(a,a):a()}}function w(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=s(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:_}}function _(){return{value:void 0,done:!0}}return d.prototype=v.constructor=p,p.constructor=d,d.displayName=u(p,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,u(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},g(b.prototype),b.prototype[i]=function(){return this},e.AsyncIterator=b,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new b(c(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(v),u(v,a,"Generator"),v[o]=function(){return this},v.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,l):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;C(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}(e.exports);try{regeneratorRuntime=r}catch(e){Function("r","regeneratorRuntime = r")(r)}},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.getDeviceName=void 0;var o=r(n(350)),i=n(103),a=n(147),u=n(144);t.getDeviceName=function(){if(!(0,a.hasDevicePlugin)())return(0,i.isCordova)()&&console.warn("You should install `cordova-plugin-device`."),"Device";var e=window.device,t=e.manufacturer,n=e.model,r=(0,u.isIOSApp)()?function(e){for(var t=0,n=["iPhone","iPad","Watch","AppleTV"];t<n.length;t++){var r=n[t];if(e.match(new RegExp(r)))return r}return"Device"}(n):n;return"".concat((0,o.default)(t)," ").concat(r)}},function(e,t,n){var r=n(63),o=n(353);e.exports=function(e){return o(r(e).toLowerCase())}},function(e,t,n){var r=n(64),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,u=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,u),n=e[u];try{e[u]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[u]=n:delete e[u]),o}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t,n){var r=n(354)("toUpperCase");e.exports=r},function(e,t,n){var r=n(208),o=n(146),i=n(210),a=n(63);e.exports=function(e){return function(t){t=a(t);var n=o(t)?i(t):void 0,u=n?n[0]:t.charAt(0),c=n?r(n,1).join(""):t.slice(1);return u[e]()+c}}},function(e,t){e.exports=function(e){return e.split("")}},function(e,t){var n="[\\ud800-\\udfff]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\\ud83c[\\udffb-\\udfff]",i="[^\\ud800-\\udfff]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",u="[\\ud800-\\udbff][\\udc00-\\udfff]",c="(?:"+r+"|"+o+")"+"?",s="[\\ufe0e\\ufe0f]?"+c+("(?:\\u200d(?:"+[i,a,u].join("|")+")[\\ufe0e\\ufe0f]?"+c+")*"),l="(?:"+[i+r+"?",r,a,u,n].join("|")+")",f=RegExp(o+"(?="+o+")|"+l+s,"g");e.exports=function(e){return e.match(f)||[]}},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.startApp=t.default=t.checkApp=void 0;var o=r(n(7)),i=r(n(9)),a=n(144),u=function(){return window.startApp},c=function(e){var t=e.appId,n=e.uri;return(0,a.isAndroidApp)()?{package:t}:n},s={},l=s.startApp=function(){var e=(0,i.default)(o.default.mark((function e(t){var n,r;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=window.startApp,e.next=3,s.checkApp(t);case 3:if(!e.sent){e.next=9;break}return r=c(t),e.abrupt("return",new Promise((function(e,t){u()?n.set(r).start(e,t):t(new Error("Cordova plugin 'com.lampa.startapp' is not installed. This plugin is needed to start a native app. Required by cozy-bar"))})));case 9:return e.abrupt("return",!1);case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();t.startApp=l;var f=s.checkApp=function(){var e=(0,i.default)(o.default.mark((function e(t){var n,r;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=window.startApp,r=c(t),e.abrupt("return",new Promise((function(e,t){u()?n.set(r).check((function(t){e("OK"===t||t)}),(function(n){!1===n||0===n.indexOf("NameNotFoundException")?e(!1):t(n)})):t(new Error("Cordova plugin 'com.lampa.startapp' is not installed."))})));case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();t.checkApp=f;var d=s;t.default=d},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.nativeLinkOpen=void 0;var o=r(n(7)),i=r(n(9)),a=n(147),u=function(){var e=(0,i.default)(o.default.mark((function e(t){var n;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.url,e.next=3,(0,a.hasSafariPlugin)();case 3:if(e.t0=e.sent,!e.t0){e.next=6;break}e.t0=window.SafariViewController;case 6:if(!e.t0){e.next=10;break}window.SafariViewController.show({url:n,transition:"curl"},(function(e){"closed"===e.event&&window.SafariViewController.hide()}),(function(){window.SafariViewController.hide()})),e.next=11;break;case 10:(0,a.hasInAppBrowserPlugin)()?("_blank","clearcache=yes,zoom=no",window.cordova.InAppBrowser.open(n,"_blank","clearcache=yes,zoom=no")):window.location=n;case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();t.nativeLinkOpen=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.openDeeplinkOrRedirect=void 0;var r=function(e,t){var n=Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,5);window.addEventListener("blur",i);var r=function(e,t,n){var r=document.createElement("iframe");return r.src=t,r.id="hiddenIframe_".concat(n),r.style.display="none",e.appendChild(r),r}(document.body,"about:blank",n),o=setTimeout((function(){t(),window.removeEventListener("blur",i),r.parentElement.removeChild(r)}),500);function i(){clearTimeout(o),window.removeEventListener("blur",i),r.parentElement.removeChild(r)}r.contentWindow.location.href=e};t.openDeeplinkOrRedirect=function(e,t){if(navigator.msLaunchUri)!function(e,t){navigator.msLaunchUri(e,void 0,t)}(e,t);else{var n=(o=!!window.opera||navigator.userAgent.indexOf(" OPR/")>=0,i=navigator.userAgent.toLowerCase(),a=i.includes("safari")&&!i.includes("chrome")||Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor")>0,u=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,c=u&&(i.includes("os 12_2")||i.includes("os 12_3")),{isOpera:o,isFirefox:"undefined"!=typeof InstallTrigger,isSafari:a,isChrome:!!window.chrome&&!o,isIOS122:c,isIOS:u});n.isChrome||n.isIOS&&!n.isIOS122?function(e,t){for(var n=setTimeout((function(){t(),r.removeEventListener("blur",o)}),500),r=window;r!=r.parent;)r=r.parent;function o(){clearTimeout(n),r.removeEventListener("blur",o)}r.addEventListener("blur",o),window.location=e}(e,t):n.isSafari&&!n.isIOS122||n.isFirefox?r(e,t):t()}var o,i,a,u,c}},function(e,t,n){"use strict";var r=n(20),o=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(7)),a=o(n(9)),u=o(n(4)),c=o(n(6)),s=r(n(361)),l=r(n(364)),f=o(n(365)),d=n(148),p=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.client;(0,u.default)(this,e),this.request=new f.default(n),this.create=this.create.bind(this)}var t,n;return(0,c.default)(e,[{key:"create",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];if(!e)throw new Error('Misformed intent, "action" property must be provided');if(!t)throw new Error('Misformed intent, "type" property must be provided');var i=this.request.post(e,t,r,o);return i.start=function(e,t){var o,a={filteredServices:r.filteredServices,onReadyCallback:t};delete r.filteredServices;var u=i.then((function(t){return o=s.start(n.create,t,e,r,a)}));return u.stop=function(){o&&o.destroy()},u},i}},{key:"createService",value:function(e,t){return l.start(this.request)(e,t)}},{key:"getRedirectionURL",value:(n=(0,a.default)(i.default.mark((function e(t,n){var r,o,a;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t||n){e.next=2;break}throw new Error("Cannot retrieve redirection, at least type or doc must be provided");case 2:return e.next=4,this.create("REDIRECT",t,n);case 4:return r=e.sent,o=(0,d.pickService)(r),a=(0,d.removeQueryString)(o.href),e.abrupt("return",n?(0,d.buildRedirectionURL)(a,n):a);case 8:case"end":return e.stop()}}),e,this)}))),function(e,t){return n.apply(this,arguments)})},{key:"redirect",value:(t=(0,a.default)(i.default.mark((function e(t,n,r){var o;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(window){e.next=2;break}throw new Error("redirect() method can only be called in a browser");case 2:return e.next=4,this.getRedirectionURL(t,n);case 4:if(o=e.sent,!r||"function"!=typeof r){e.next=7;break}return e.abrupt("return",r(o));case 7:window.location.href=o;case 8:case"end":return e.stop()}}),e,this)}))),function(e,n,r){return t.apply(this,arguments)})}]),e}();t.default=p},function(e,t,n){"use strict";var r=n(20),o=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.start=function e(t,n,r,o){var d,p,h=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},m=function(){p&&s.remove(p),d&&d.stopListening()},y=function(){m()},v=new Promise((function(m,v){var g=(0,c.pickService)(n,h.filterServices);p=s.insertIntentIframe(n,r,g.href,h.onReadyCallback);var b=f(g.href);(d=new l.default({intentId:n.id,origin:b,onReady:function(e){e.source.postMessage(o,e.origin)},onDone:function(e){m(e.data.document),y()},onCancel:function(){m(null),y()},onError:function(e){v(e instanceof Event?c.errorSerializer.deserialize(e.data.error):e),y()},onResize:function(e){var t=e.data,n=t.transition,o=t.dimensions;s.applyStyle(r,(0,u.default)({transition:n},o))},onExposeFrameRemoval:function(e){m({document:e.document,removeIntentIframe:function(){return s.remove(p)}})},onCompose:function(){var n=(0,a.default)(i.default.mark((function n(o){var a,c,l,f,d,h,m,y;return i.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return a=o.data,c=a.action,l=a.doctype,f=a.data,d=o.source,h=o.origin,n.next=4,t(c,l,f);case 4:return m=n.sent,s.hide(p),n.prev=6,n.next=9,e(t,m,r,(0,u.default)({},f,{exposeIntentFrameRemoval:!1}));case 9:y=n.sent,d.postMessage(y,h);case 11:return n.prev=11,s.show(p),n.finish(11);case 14:case"end":return n.stop()}}),n,null,[[6,,11,14]])})));return function(e){return n.apply(this,arguments)}}()})).listen()}));return v.destroy=m,v};var i=o(n(7)),a=o(n(9)),u=o(n(14)),c=n(148),s=r(n(362)),l=o(n(363)),f=function(e){return e.split("/",3).join("/")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hide=function(e){e.style.display="none"},t.show=function(e){e.style.display="block"},t.remove=function(e){if(!e.parentNode)return;e.parentNode.removeChild(e)},t.iframeFromIntent=a,t.insertIntentIframe=function(e,t,n,r){i(t);var o=a(e,t,n);"function"==typeof r&&(o.onload=r);return t.appendChild(o),o.focus(),o},t.assertOKForIntentIframe=t.applyStyle=void 0;var r=function(e){return e+"px"},o={width:r,height:r,maxWidth:r,maxHeight:r};t.applyStyle=function(e,t){Object.keys(t).forEach((function(n){var r=t[n];e.style[n]="".concat(o[n]?o[n](r):r)}))};var i=function(e){var t=e.ownerDocument;if(!t)throw console.warn("assertProperForIframe: bad node",e),new Error("Cannot retrieve document object from given node");if(!t.defaultView)throw console.warn("assertProperForIframe: bad document",t),new Error("Cannot retrieve window object from document")};function a(e,t,n){var r=t.ownerDocument;if(!r)throw new Error("Cannot retrieve document object from given node");var o=r.createElement("iframe");return o.setAttribute("id","intent-".concat(e.id)),o.setAttribute("src",n),o.classList.add("coz-intent"),o}t.assertOKForIntentIframe=i},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(4)),i=r(n(6)),a=/intent-(.*):(.*)/,u=function(){function e(t){(0,o.default)(this,e),this.state={handshaken:!1},this.options=t,this.handleMessageWrapper=this.handleMessageWrapper.bind(this)}return(0,i.default)(e,[{key:"handleMessage",value:function(e){if(e.origin===this.options.origin){var t=e.data.type;if("load"!==t){var n=a.exec(t);if(n){var r=n[1];c(r==this.options.intentId,"Invalid event id","eventId: ".concat(r," != listener eventId ").concat(this.options.intentId));var o=n[2];"ready"!==o?c(this.state.handshaken,"Unexpected handshake message from intent service"):this.state.handshaken=!0;var i=this.options["on"+s(o)];if(i)return i(e);console.warn("intents: Unhandled event ".concat(o))}else console.warn("intents: Message type ".concat(t," not matching intent format"))}else console.warn&&console.warn("Cozy Client ignored MessageEvent having data.type `load`.")}}},{key:"handleMessageWrapper",value:function(e){try{this.handleMessage(e)}catch(e){this.options.onError(e)}}},{key:"listen",value:function(){window.addEventListener("message",this.handleMessageWrapper)}},{key:"stopListening",value:function(){window.removeEventListener("message",this.handleMessageWrapper)}}]),e}();t.default=u;var c=function(e,t,n){if(!e)throw n&&console.warn(n),new Error(t)},s=function(e){return e[0].toUpperCase()+e.slice(1)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.start=void 0;var r=n(148);function o(e){e&&e.style&&(e.style.height="100%")}t.start=function(e){return function(t,n){return(n=n||"undefined"!=typeof window&&window)&&n.document?(n.addEventListener("load",(function(){var e=n.document;[e.documentElement,e.body].forEach(o)})),(t=t||n.location.search.split("=")[1])?e.get(t).then((function(e){var t=!1,o=function(r){if(t)throw new Error("Intent service has already been terminated");n.parent.postMessage(r,e.attributes.client)},i=function(t,r,i){return new Promise((function(a){n.addEventListener("message",(function t(r){if(r.origin===e.attributes.client)return n.removeEventListener("message",t),a(r.data)})),o({type:"intent-".concat(e._id,":compose"),action:t,doctype:r,data:i})}))},a=function(e){o(e),t=!0},u=function(n,r){if(t)throw new Error("Intent service has been terminated");o({type:"intent-".concat(e._id,":resize"),dimensions:n.element?Object.assign({},n,{maxHeight:n.element.clientHeight,maxWidth:n.element.clientWidth}):n,transition:r})},c=function(){a({type:"intent-".concat(e._id,":cancel")})};return n.addEventListener("unload",(function(){t||c()})),function(e,t){return new Promise((function(n){t.addEventListener("message",(function r(o){o.origin===e.attributes.client&&(t.removeEventListener("message",r),n(o.data))})),t.parent.postMessage({type:"intent-".concat(e._id,":ready")},e.attributes.client)}))}(e,n).then((function(t){return{compose:i,getData:function(){return t},getIntent:function(){return e},terminate:function(n){var r=t&&t.exposeIntentFrameRemoval?"exposeFrameRemoval":"done";return a({type:"intent-".concat(e._id,":").concat(r),document:n})},throw:function(t){return a({type:"intent-".concat(e._id,":error"),error:r.errorSerializer.serialize(t)})},resizeClient:u,cancel:c}}))})):Promise.reject(new Error("Cannot retrieve intent from URL"))):Promise.reject(new Error("Intent service should be used in browser"))}}},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(4)),i=r(n(6)),a=function(){function e(t){(0,o.default)(this,e),this.stackClient=t.stackClient}return(0,i.default)(e,[{key:"get",value:function(e){return this.stackClient.fetchJSON("GET","/intents/".concat(e)).then((function(e){var t=e.data;return t._id||(t._id=t.id),t}))}},{key:"post",value:function(e,t,n,r){return this.stackClient.fetchJSON("POST","/intents",{data:{type:"io.cozy.intents",attributes:{action:e,type:t,data:n,permissions:r}}}).then((function(e){return e.data}))}}]),e}();t.default=a},function(e,t){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}}},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(7)),i=r(n(9)),a=r(n(4)),u=r(n(6)),c=r(n(2)),s=r(n(45)),l=r(n(150)),f=function(){function e(t,n){(0,a.default)(this,e),(0,c.default)(this,"_doctype","io.cozy.websocket"),(0,c.default)(this,"_webSocket",null),(0,c.default)(this,"_url",null),(0,c.default)(this,"_token",null),this._getUrl=t,this._getToken=n,this.removeAllListeners=this.removeAllListeners.bind(this),this.on("close",this.removeAllListeners)}var t;return(0,u.default)(e,[{key:"isOpen",value:function(){return!(!this._webSocket||this._webSocket.readyState!==WebSocket.OPEN)}},{key:"isConnecting",value:function(){return!(!this._webSocket||this._webSocket.readyState!==WebSocket.CONNECTING)}},{key:"connect",value:function(){var e=this;return new Promise((function(t,n){e._webSocket=new WebSocket(e._getUrl(),e._doctype),e._webSocket.onmessage=function(t){var n=JSON.parse(t.data),r=n.event.toLowerCase(),o=n.payload,i=o.type,a=o.id,u=o.doc;e.emit("message",{type:i,id:a,eventName:r},u)},e._webSocket.onclose=function(t){return e.emit("close",t)},e._webSocket.onerror=function(t){e._webSocket=null,e.emit("error",t),n(t)},e._webSocket.onopen=function(n){e.authenticate(),e.emit("open",n),t(n)}}))}},{key:"authenticate",value:function(){this.isOpen()&&this._webSocket.send(JSON.stringify({method:"AUTH",payload:this._getToken()}))}},{key:"subscribe",value:(t=(0,i.default)(o.default.mark((function e(t,n){var r,i;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.isOpen()){e.next=3;break}return e.next=3,this.connect();case 3:r=(0,l.default)({type:t,id:n}),i=JSON.stringify({method:"SUBSCRIBE",payload:r}),this._webSocket.send(i),this.emit("subscribe_".concat(t,"_").concat(n));case 7:case"end":return e.stop()}}),e,this)}))),function(e,n){return t.apply(this,arguments)})},{key:"close",value:function(){this.isOpen()?this._webSocket.close():this.removeAllListeners(),this._webSocket=null}}]),e}();s.default.mixin(f);var d=f;t.default=d},function(e,t,n){var r=n(369),o=n(409),i=n(227);e.exports=function(e){var t=o(e);return 1==t.length&&t[0][2]?i(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},function(e,t,n){var r=n(104),o=n(154);e.exports=function(e,t,n,i){var a=n.length,u=a,c=!i;if(null==e)return!u;for(e=Object(e);a--;){var s=n[a];if(c&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++a<u;){var l=(s=n[a])[0],f=e[l],d=s[1];if(c&&s[2]){if(void 0===f&&!(l in e))return!1}else{var p=new r;if(i)var h=i(f,d,l,e,t,p);if(!(void 0===h?o(d,f,3,i,p):h))return!1}}return!0}},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(106),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():o.call(t,n,1),--this.size,!0)}},function(e,t,n){var r=n(106);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},function(e,t,n){var r=n(106);e.exports=function(e){return r(this.__data__,e)>-1}},function(e,t,n){var r=n(106);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},function(e,t,n){var r=n(105);e.exports=function(){this.__data__=new r,this.size=0}},function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,n){var r=n(105),o=n(151),i=n(153);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(a)}return n.set(e,t),this.size=n.size,this}},function(e,t,n){var r=n(152),o=n(381),i=n(34),a=n(214),u=/^\[object .+?Constructor\]$/,c=Function.prototype,s=Object.prototype,l=c.toString,f=s.hasOwnProperty,d=RegExp("^"+l.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(r(e)?d:u).test(a(e))}},function(e,t,n){var r,o=n(382),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}},function(e,t,n){var r=n(39)["__core-js_shared__"];e.exports=r},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t,n){var r=n(385),o=n(105),i=n(151);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},function(e,t,n){var r=n(386),o=n(387),i=n(388),a=n(389),u=n(390);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=u,e.exports=c},function(e,t,n){var r=n(107);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(e,t){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},function(e,t,n){var r=n(107),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(t,e)?t[e]:void 0}},function(e,t,n){var r=n(107),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},function(e,t,n){var r=n(107);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},function(e,t,n){var r=n(108);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},function(e,t){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},function(e,t,n){var r=n(108);e.exports=function(e){return r(this,e).get(e)}},function(e,t,n){var r=n(108);e.exports=function(e){return r(this,e).has(e)}},function(e,t,n){var r=n(108);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},function(e,t,n){var r=n(104),o=n(215),i=n(400),a=n(402),u=n(66),c=n(26),s=n(87),l=n(114),f="[object Object]",d=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,p,h,m){var y=c(e),v=c(t),g=y?"[object Array]":u(e),b=v?"[object Array]":u(t),w=(g="[object Arguments]"==g?f:g)==f,x=(b="[object Arguments]"==b?f:b)==f,C=g==b;if(C&&s(e)){if(!s(t))return!1;y=!0,w=!1}if(C&&!w)return m||(m=new r),y||l(e)?o(e,t,n,p,h,m):i(e,t,g,n,p,h,m);if(!(1&n)){var k=w&&d.call(e,"__wrapped__"),S=x&&d.call(t,"__wrapped__");if(k||S){var _=k?e.value():e,A=S?t.value():t;return m||(m=new r),h(_,A,n,p,m)}}return!!C&&(m||(m=new r),a(e,t,n,p,h,m))}},function(e,t){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},function(e,t,n){var r=n(64),o=n(216),i=n(84),a=n(215),u=n(401),c=n(155),s=r?r.prototype:void 0,l=s?s.valueOf:void 0;e.exports=function(e,t,n,r,s,f,d){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!f(new o(e),new o(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var p=u;case"[object Set]":var h=1&r;if(p||(p=c),e.size!=t.size&&!h)return!1;var m=d.get(e);if(m)return m==t;r|=2,d.set(e,t);var y=a(p(e),p(t),r,s,f,d);return d.delete(e),y;case"[object Symbol]":if(l)return l.call(e)==l.call(t)}return!1}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},function(e,t,n){var r=n(217),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,i,a,u){var c=1&n,s=r(e),l=s.length;if(l!=r(t).length&&!c)return!1;for(var f=l;f--;){var d=s[f];if(!(c?d in t:o.call(t,d)))return!1}var p=u.get(e);if(p&&u.get(t))return p==t;var h=!0;u.set(e,t),u.set(t,e);for(var m=c;++f<l;){var y=e[d=s[f]],v=t[d];if(i)var g=c?i(v,y,d,t,e,u):i(y,v,d,e,t,u);if(!(void 0===g?y===v||a(y,v,n,i,u):g)){h=!1;break}m||(m="constructor"==d)}if(h&&!m){var b=e.constructor,w=t.constructor;b==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w||(h=!1)}return u.delete(e),u.delete(t),h}},function(e,t,n){var r=n(52),o=n(40);e.exports=function(e){return o(e)&&"[object Arguments]"==r(e)}},function(e,t){e.exports=function(){return!1}},function(e,t,n){var r=n(52),o=n(157),i=n(40),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&o(e.length)&&!!a[r(e)]}},function(e,t,n){var r=n(223)(Object.keys,Object);e.exports=r},function(e,t,n){var r=n(54)(n(39),"DataView");e.exports=r},function(e,t,n){var r=n(54)(n(39),"Promise");e.exports=r},function(e,t,n){var r=n(226),o=n(85);e.exports=function(e){for(var t=o(e),n=t.length;n--;){var i=t[n],a=e[i];t[n]=[i,a,r(a)]}return t}},function(e,t,n){var r=n(154),o=n(18),i=n(228),a=n(160),u=n(226),c=n(227),s=n(68);e.exports=function(e,t){return a(e)&&u(t)?c(s(e),t):function(n){var a=o(n,e);return void 0===a&&a===t?i(n,e):r(t,a,3)}}},function(e,t,n){var r=n(412),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,(function(e,n,r,o){t.push(r?o.replace(i,"$1"):n||e)})),t}));e.exports=a},function(e,t,n){var r=n(42);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},function(e,t){e.exports=function(e,t){return null!=e&&t in Object(e)}},function(e,t,n){var r=n(161),o=n(415),i=n(160),a=n(68);e.exports=function(e){return i(e)?r(a(e)):o(e)}},function(e,t,n){var r=n(116);e.exports=function(e){return function(t){return r(t,e)}}},function(e,t,n){var r=n(34),o=n(115),i=n(417),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=o(e),n=[];for(var u in e)("constructor"!=u||!t&&a.call(e,u))&&n.push(u);return n}},function(e,t){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},function(e,t,n){var r=n(419),o=r.enable,i=r.disable,a="undefined"!=typeof navigator&&/chrome/i.test(navigator.userAgent),u=n(421);if(r.defaultBackend=a?u.minilog:u,"undefined"!=typeof window){try{r.enable(JSON.parse(window.localStorage.minilogSettings))}catch(e){}if(window.location&&window.location.search){var c=RegExp("[?&]minilog=([^&]*)").exec(window.location.search);c&&r.enable(decodeURIComponent(c[1]))}}r.enable=function(){o.call(r,!0);try{window.localStorage.minilogSettings=JSON.stringify(!0)}catch(e){}return this},r.disable=function(){i.call(r);try{delete window.localStorage.minilogSettings}catch(e){}return this},(e.exports=r).backends={array:n(424),browser:r.defaultBackend,localStorage:n(425),jQuery:n(426)}},function(e,t,n){var r=n(48),o=n(420),i=new r,a=Array.prototype.slice;(t=e.exports=function(e){var n=function(){return i.write(e,void 0,a.call(arguments)),n};return n.debug=function(){return i.write(e,"debug",a.call(arguments)),n},n.info=function(){return i.write(e,"info",a.call(arguments)),n},n.warn=function(){return i.write(e,"warn",a.call(arguments)),n},n.error=function(){return i.write(e,"error",a.call(arguments)),n},n.log=n.debug,n.suggest=t.suggest,n.format=i.format,n}).defaultBackend=t.defaultFormatter=null,t.pipe=function(e){return i.pipe(e)},t.end=t.unpipe=t.disable=function(e){return i.unpipe(e)},t.Transform=r,t.Filter=o,t.suggest=new o,t.enable=function(){return t.defaultFormatter?i.pipe(t.suggest).pipe(t.defaultFormatter).pipe(t.defaultBackend):i.pipe(t.suggest).pipe(t.defaultBackend)}},function(e,t,n){var r=n(48),o={debug:1,info:2,warn:3,error:4};function i(){this.enabled=!0,this.defaultResult=!0,this.clear()}function a(e,t){return e.n.test?e.n.test(t):e.n==t}r.mixin(i),i.prototype.allow=function(e,t){return this._white.push({n:e,l:o[t]}),this},i.prototype.deny=function(e,t){return this._black.push({n:e,l:o[t]}),this},i.prototype.clear=function(){return this._white=[],this._black=[],this},i.prototype.test=function(e,t){var n,r=Math.max(this._white.length,this._black.length);for(n=0;n<r;n++){if(this._white[n]&&a(this._white[n],e)&&o[t]>=this._white[n].l)return!0;if(this._black[n]&&a(this._black[n],e)&&o[t]<=this._black[n].l)return!1}return this.defaultResult},i.prototype.write=function(e,t,n){if(!this.enabled||this.test(e,t))return this.emit("item",e,t,n)},e.exports=i},function(e,t,n){var r=n(48),o=/\n+$/,i=new r;i.write=function(e,t,n){var r=n.length-1;if("undefined"!=typeof console&&console.log){if(console.log.apply)return console.log.apply(console,[e,t].concat(n));if(JSON&&JSON.stringify){n[r]&&"string"==typeof n[r]&&(n[r]=n[r].replace(o,""));try{for(r=0;r<n.length;r++)n[r]=JSON.stringify(n[r])}catch(e){}console.log(n.join(" "))}}},i.formatters=["color","minilog"],i.color=n(422),i.minilog=n(423),e.exports=i},function(e,t,n){var r=n(48),o=n(234),i={debug:["cyan"],info:["purple"],warn:["yellow",!0],error:["red",!0]},a=new r;a.write=function(e,t,n){console.log;console[t]&&console[t].apply&&console[t].apply(console,["%c"+e+" %c"+t,o("gray"),o.apply(o,i[t])].concat(n))},a.pipe=function(){},e.exports=a},function(e,t,n){var r=n(48),o=n(234),i={debug:["gray"],info:["purple"],warn:["yellow",!0],error:["red",!0]},a=new r;a.write=function(e,t,n){var r=console.log;"debug"!=t&&console[t]&&(r=console[t]);var a=0;if("info"!=t){for(;a<n.length&&"string"==typeof n[a];a++);r.apply(console,["%c"+e+" "+n.slice(0,a).join(" "),o.apply(o,i[t])].concat(n.slice(a)))}else r.apply(console,["%c"+e,o.apply(o,i[t])].concat(n))},a.pipe=function(){},e.exports=a},function(e,t,n){var r=n(48),o=[],i=new r;i.write=function(e,t,n){o.push([e,t,n])},i.get=function(){return o},i.empty=function(){o=[]},e.exports=i},function(e,t,n){var r=n(48),o=!1,i=new r;i.write=function(e,t,n){if("undefined"!=typeof window&&"undefined"!=typeof JSON&&JSON.stringify&&JSON.parse)try{o||(o=window.localStorage.minilog?JSON.parse(window.localStorage.minilog):[]),o.push([(new Date).toString(),e,t,n]),window.localStorage.minilog=JSON.stringify(o)}catch(e){}},e.exports=i},function(e,t,n){var r=n(48),o=(new Date).valueOf().toString(36);function i(e){this.url=e.url||"",this.cache=[],this.timer=null,this.interval=e.interval||3e4,this.enabled=!0,this.jQuery=window.jQuery,this.extras={}}r.mixin(i),i.prototype.write=function(e,t,n){this.timer||this.init(),this.cache.push([e,t].concat(n))},i.prototype.init=function(){if(this.enabled&&this.jQuery){var e=this;this.timer=setTimeout((function(){var t,n,r=[],i=e.url;if(0==e.cache.length)return e.init();for(t=0;t<e.cache.length;t++)try{JSON.stringify(e.cache[t]),r.push(e.cache[t])}catch(e){}e.jQuery.isEmptyObject(e.extras)?(n=JSON.stringify({logs:r}),i=e.url+"?client_id="+o):n=JSON.stringify(e.jQuery.extend({logs:r},e.extras)),e.jQuery.ajax(i,{type:"POST",cache:!1,processData:!1,data:n,contentType:"application/json",timeout:1e4}).success((function(t,n,r){t.interval&&(e.interval=Math.max(1e3,t.interval))})).error((function(){e.interval=3e4})).always((function(){e.init()})),e.cache=[]}),this.interval)}},i.prototype.end=function(){},i.jQueryWait=function(e){if("undefined"!=typeof window&&(window.jQuery||window.$))return e(window.jQuery||window.$);"undefined"!=typeof window&&setTimeout((function(){i.jQueryWait(e)}),200)},e.exports=i},function(e,t){e.exports=function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}},function(e,t,n){var r=n(165),o=n(429);function i(t,n,a){return o()?e.exports=i=Reflect.construct:e.exports=i=function(e,t,n){var o=[null];o.push.apply(o,t);var i=new(Function.bind.apply(e,o));return n&&r(i,n.prototype),i},i.apply(null,arguments)}e.exports=i},function(e,t){e.exports=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(19)),i=r(n(4)),a=r(n(6)),u=r(n(45)),c=r(n(432)),s=function(){function e(){(0,i.default)(this,e),this.store={},"undefined"!=typeof localStorage&&(this.longtermStore=c.default),this.restore()}return(0,a.default)(e,[{key:"restore",value:function(){if(this.longtermStore)for(var e=this.longtermStore.getAll(),t=0,n=Object.entries(e);t<n.length;t++){var r=(0,o.default)(n[t],2),i=r[0],a=r[1];this.store[i]=a,this.emit("change",i)}}},{key:"keys",value:function(){return Object.keys(this.store)}},{key:"get",value:function(e){return this.store.hasOwnProperty(e)||(this.store[e]=null),this.store[e]}},{key:"set",value:function(e,t){this.longtermStore&&this.longtermStore.setItem(e,t),this.store[e]=t,this.emit("change",e)}},{key:"remove",value:function(e){delete this.store[e],this.longtermStore&&this.longtermStore.removeItem(e),this.emit("change",e)}}]),e}();u.default.mixin(s);var l=s;t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.getKey=t.prefix=void 0;t.prefix="flag__";var r=function(e){return"flag__"+e};t.getKey=r;var o=function(){return Object.keys(localStorage).filter((function(e){return 0===e.indexOf("flag__")})).map((function(e){return e.replace("flag__","")}))},i=function(e){var t=localStorage.getItem(r(e));return t?JSON.parse(t):t},a=function(e){return localStorage.removeItem(r(e))},u={getAll:function(){var e={},t=!0,n=!1,r=void 0;try{for(var a,u=o()[Symbol.iterator]();!(t=(a=u.next()).done);t=!0){var c=a.value;e[c]=i(c)}}catch(e){n=!0,r=e}finally{try{t||null==u.return||u.return()}finally{if(n)throw r}}return e},getItem:i,setItem:function(e,t){var n=JSON.stringify(t);return localStorage.setItem(r(e),n)},clearAll:function(){var e=!0,t=!1,n=void 0;try{for(var r,i=o()[Symbol.iterator]();!(e=(r=i.next()).done);e=!0){var u=r.value;a(u)}}catch(e){t=!0,n=e}finally{try{e||null==i.return||i.return()}finally{if(t)throw n}}},removeItem:a};t.default=u},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(4)),i=r(n(6)),a=r(n(10)),u=r(n(5)),c=r(n(11)),s=r(n(8)),l=r(n(0)),f=r(n(118)),d=function(e){var t=function(t){function n(e){var t;return(0,o.default)(this,n),(t=(0,a.default)(this,(0,u.default)(n).call(this,e))).handleChange=t.handleChange.bind((0,c.default)(t)),t}return(0,s.default)(n,t),(0,i.default)(n,[{key:"componentDidMount",value:function(){f.default.store.on("change",this.handleChange)}},{key:"componentWillUnmount",value:function(){f.default.store.removeListener("change",this.handleChange)}},{key:"handleChange",value:function(){this.forceUpdate()}},{key:"render",value:function(){return l.default.createElement(e,this.props)}}]),n}(l.default.Component);return t.displayName="withFlags(".concat(e.displayName||e.name,")"),t};t.default=d},function(e,t,n){"use strict";e.exports=n(435)},function(e,t,n){"use strict";
16
+ */var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function a(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,u,c=a(e),s=1;s<arguments.length;s++){for(var l in n=Object(arguments[s]))o.call(n,l)&&(c[l]=n[l]);if(r){u=r(n);for(var f=0;f<u.length;f++)i.call(n,u[f])&&(c[u[f]]=n[u[f]])}}return c}},function(e,t,n){"use strict";var r=n(89),o=n(119),i=o("%Function.prototype.apply%"),a=o("%Function.prototype.call%"),u=o("%Reflect.apply%",!0)||r.call(a,i);e.exports=function(){return u(r,a,arguments)},e.exports.apply=function(){return u(r,i,arguments)}},function(e,t,n){"use strict";var r=Object.prototype.toString;e.exports=function(e){var t=r.call(e),n="[object Arguments]"===t;return n||(n="[object Array]"!==t&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===r.call(e.callee)),n}},function(e,t,n){"use strict";var r=n(451),o=n(452),i=n(453)("String.prototype.replace"),a=/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/,u=/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/;e.exports=function(){var e=o(r(this));return i(i(e,a,""),u,"")}},function(e,t,n){"use strict";var r=n(238);e.exports=function(){return String.prototype.trim&&"​"==="​".trim()?String.prototype.trim:r}},function(e,t){e.exports=function(e){return e instanceof Date}},function(e,t,n){var r=n(55),o=n(169);e.exports=function(e){var t=r(e),n=t.getFullYear(),i=new Date(0);i.setFullYear(n+1,0,4),i.setHours(0,0,0,0);var a=o(i),u=new Date(0);u.setFullYear(n,0,4),u.setHours(0,0,0,0);var c=o(u);return t.getTime()>=a.getTime()?n+1:t.getTime()>=c.getTime()?n:n-1}},function(e,t,n){var r={"./_lib/build_formatting_tokens_reg_exp":56,"./_lib/build_formatting_tokens_reg_exp/":56,"./_lib/build_formatting_tokens_reg_exp/index":56,"./_lib/build_formatting_tokens_reg_exp/index.js":56,"./en":90,"./en/":90,"./en/build_distance_in_words_locale":91,"./en/build_distance_in_words_locale/":91,"./en/build_distance_in_words_locale/index":91,"./en/build_distance_in_words_locale/index.js":91,"./en/build_format_locale":92,"./en/build_format_locale/":92,"./en/build_format_locale/index":92,"./en/build_format_locale/index.js":92,"./en/index":90,"./en/index.d.ts":464,"./en/index.js":90,"./en/package":243,"./en/package.json":243,"./es":120,"./es/":120,"./es/build_distance_in_words_locale":93,"./es/build_distance_in_words_locale/":93,"./es/build_distance_in_words_locale/index":93,"./es/build_distance_in_words_locale/index.js":93,"./es/build_format_locale":94,"./es/build_format_locale/":94,"./es/build_format_locale/index":94,"./es/build_format_locale/index.js":94,"./es/index":120,"./es/index.d.ts":465,"./es/index.js":120,"./es/package":244,"./es/package.json":244,"./fr":121,"./fr/":121,"./fr/build_distance_in_words_locale":95,"./fr/build_distance_in_words_locale/":95,"./fr/build_distance_in_words_locale/index":95,"./fr/build_distance_in_words_locale/index.js":95,"./fr/build_format_locale":96,"./fr/build_format_locale/":96,"./fr/build_format_locale/index":96,"./fr/build_format_locale/index.js":96,"./fr/index":121,"./fr/index.d.ts":466,"./fr/index.js":121,"./fr/package":245,"./fr/package.json":245};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id=242},function(e){e.exports=JSON.parse('{"typings":"../../typings.d.ts"}')},function(e){e.exports=JSON.parse('{"typings":"../../typings.d.ts"}')},function(e){e.exports=JSON.parse('{"typings":"../../typings.d.ts"}')},function(e,t,n){var r=n(211),o=n(247),i=n(149),a=n(213);e.exports=function(e){return r(e)||o(e)||i(e)||a()}},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},function(e,t,n){var r=n(471)();e.exports=r},function(e,t,n){var r=n(475),o=n(476),i=n(477);e.exports=function(e,t,n){return t==t?i(e,t,n):r(e,o,n)}},function(e,t){e.exports=function(){}},function(e,t,n){var r=n(252),o=Math.max;e.exports=function(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,u=o(i.length-t,0),c=Array(u);++a<u;)c[a]=i[t+a];a=-1;for(var s=Array(t+1);++a<t;)s[a]=i[a];return s[t]=n(c),r(e,this,s)}}},function(e,t){e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},function(e,t,n){var r=n(480),o=n(482)(r);e.exports=o},function(e,t,n){var r=n(219),o=n(43),i=n(161),a=n(222),u=n(123),c=Math.max;e.exports=function(e){if(!e||!e.length)return[];var t=0;return e=r(e,(function(e){if(u(e))return t=c(e.length,t),!0})),a(t,(function(t){return o(e,i(t))}))}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},function(e,t,n){"use strict";var r=n(20),o=n(3);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"OAuthClient",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"errors",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"FetchError",{enumerable:!0,get:function(){return u.FetchError}}),Object.defineProperty(t,"normalizeDoc",{enumerable:!0,get:function(){return c.normalizeDoc}});var i=o(n(257)),a=o(n(538)),u=r(n(58)),c=n(30)},function(e,t,n){"use strict";(function(e){var r=n(20),o=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(7)),a=o(n(9)),u=o(n(2)),c=o(n(4)),s=o(n(6)),l=o(n(486)),f=r(n(262)),d=o(n(519)),p=(o(n(268)),o(n(30))),h=o(n(184)),m=r(n(271)),y=r(n(525)),v=o(n(527)),g=o(n(528)),b=r(n(272)),w=r(n(529)),x=r(n(530)),C=r(n(532)),k=r(n(533)),S=r(n(534)),_=o(n(535)),A=o(n(273)),O=r(n(58)),E=n(537),B=o(n(45));function j(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function P(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?j(Object(n),!0).forEach((function(t){(0,u.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var T=function(e){return e.message&&O.default.CLIENT_NOT_FOUND.test(e.message)},z=function(){function t(e){(0,c.default)(this,t);var n=P({},e),r=n.token,o=n.uri,i=void 0===o?"":o;this.options=n,this.setUri(i),this.setToken(r),this.konnectors=new y.default(this),this.jobs=new m.default(this)}var n,r,o,u;return(0,s.default)(t,[{key:"collection",value:function(e){if(!e)throw new Error("CozyStackClient.collection() called without a doctype");switch(e){case f.APPS_DOCTYPE:return new f.default(this);case y.KONNECTORS_DOCTYPE:return new y.default(this);case"io.cozy.files":return new h.default(e,this);case"io.cozy.sharings":return new v.default(e,this);case"io.cozy.permissions":return new g.default(e,this);case S.CONTACTS_DOCTYPE:return new S.default(e,this);case b.TRIGGERS_DOCTYPE:return new b.default(this);case m.JOBS_DOCTYPE:return new m.default(this);case w.SETTINGS_DOCTYPE:return new w.default(this);case x.NOTES_DOCTYPE:return new x.default(this);case C.OAUTH_CLIENTS_DOCTYPE:return new C.default(this);case k.SHORTCUTS_DOCTYPE:return new k.default(this);default:return new p.default(e,this)}}},{key:"fetch",value:function(e){function t(t,n,r){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(){var e=(0,a.default)(i.default.mark((function e(t,n,r){var o,a,u,c,s,l,f=arguments;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=f.length>3&&void 0!==f[3]?f[3]:{},(a=P({},o)).method=t,u=a.headers=P({},o.headers),"GET"!==t&&"HEAD"!==t&&void 0!==r&&u["Content-Type"]&&(a.body=r),u.Authorization||(u.Authorization=this.getAuthorizationHeader()),a.credentials="include",c=this.fullpath(n),s=(0,E.shouldXMLHTTPRequestBeUsed)(t,n,a)?E.fetchWithXMLHttpRequest:fetch,e.prev=9,e.next=12,s(c,a);case 12:return(l=e.sent).ok||this.emit("error",new O.FetchError(l,"".concat(l.status," ").concat(l.statusText))),e.abrupt("return",l);case 17:throw e.prev=17,e.t0=e.catch(9),T(e.t0)&&this.onRevocationChange(!0),e.t0;case 21:case"end":return e.stop()}}),e,this,[[9,17]])})));return function(t,n,r){return e.apply(this,arguments)}}())},{key:"onTokenRefresh",value:function(e){this.options&&this.options.onTokenRefresh&&this.options.onTokenRefresh(e)}},{key:"onRevocationChange",value:function(e){this.options&&this.options.onRevocationChange&&this.options.onRevocationChange(e)}},{key:"checkForRevocation",value:(u=(0,a.default)(i.default.mark((function e(){return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.fetchInformation();case 3:return e.abrupt("return",!1);case 6:return e.prev=6,e.t0=e.catch(0),e.abrupt("return",T(e.t0));case 9:case"end":return e.stop()}}),e,this,[[0,6]])}))),function(){return u.apply(this,arguments)})},{key:"refreshToken",value:(o=(0,a.default)(i.default.mark((function t(){var n,r,o,a,u,c,s,l,f;return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.token){t.next=2;break}throw new Error("Cannot refresh an empty token");case 2:if(n={method:"GET",credentials:"include"},e.document){t.next=5;break}throw new Error("Not in a web context, cannot refresh token");case 5:return t.next=7,fetch("/",n);case 7:if((r=t.sent).ok){t.next=10;break}throw new Error("couldn't fetch a new token - response "+r.statusCode);case 10:return t.next=12,r.text();case 12:if(o=t.sent,a=new DOMParser,u=a.parseFromString(o,"text/html")){t.next=17;break}throw Error("couldn't fetch a new token - doc is not html");case 17:if(c=u.querySelector('div[role="application"]')){t.next=20;break}throw Error("couldn't fetch a new token - no div[role=application]");case 20:if(s=c.dataset.cozy?JSON.parse(c.dataset.cozy):P({},c.dataset),(l=s.token)&&(l=l||s.cozyToken),l){t.next=25;break}throw Error("couldn't fetch a new token -- missing data-cozy or data-cozy-token attribute");case 25:return f=new d.default(l),this.onTokenRefresh(f),t.abrupt("return",f);case 28:case"end":return t.stop()}}),t,this)}))),function(){return o.apply(this,arguments)})},{key:"fetchJSON",value:(r=(0,a.default)(i.default.mark((function e(t,n,r){var o,a,u=arguments;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=u.length>3&&void 0!==u[3]?u[3]:{},e.prev=1,e.next=4,this.fetchJSONWithCurrentToken(t,n,r,o);case 4:return e.abrupt("return",e.sent);case 7:if(e.prev=7,e.t0=e.catch(1),!O.default.EXPIRED_TOKEN.test(e.t0.message)&&!O.default.INVALID_TOKEN.test(e.t0.message)){e.next=25;break}return e.prev=10,e.next=13,this.refreshToken();case 13:a=e.sent,e.next=19;break;case 16:throw e.prev=16,e.t1=e.catch(10),e.t0;case 19:return this.setToken(a),e.next=22,this.fetchJSONWithCurrentToken(t,n,r,o);case 22:return e.abrupt("return",e.sent);case 25:throw e.t0;case 26:case"end":return e.stop()}}),e,this,[[1,7],[10,16]])}))),function(e,t,n){return r.apply(this,arguments)})},{key:"fetchJSONWithCurrentToken",value:(n=(0,a.default)(i.default.mark((function e(t,n,r){var o,a,u,c,s,f,d,p,h=arguments;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=h.length>3&&void 0!==h[3]?h[3]:{},a=(0,l.default)(o),(u=a.headers=a.headers||{}).Accept="application/json",c=r,"GET"!==t&&"HEAD"!==t&&void 0!==c&&(u["Content-Type"]||(u["Content-Type"]="application/json",c=JSON.stringify(c))),e.next=8,this.fetch(t,n,c,a);case 8:return s=e.sent,f=s.headers.get("content-type"),d=f&&f.indexOf("json")>=0,e.next=13,d?s.json():s.text();case 13:if(p=e.sent,!s.ok){e.next=16;break}return e.abrupt("return",p);case 16:throw new O.FetchError(s,p);case 17:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return n.apply(this,arguments)})},{key:"fullpath",value:function(e){return e.startsWith("http")?e:this.uri+e}},{key:"getAuthorizationHeader",value:function(){return this.token?this.token.toAuthHeader():null}},{key:"setCredentials",value:function(e){return(0,A.default)("CozyStackClient::setCredentials is deprecated, use CozyStackClient::setToken"),this.setToken(e)}},{key:"getCredentials",value:function(){return(0,A.default)("CozyStackClient::getCredentials is deprecated, use CozyStackClient::getAuthorizationHeader"),this.getAuthorizationHeader()}},{key:"setToken",value:function(e){if(e){if(e.toAuthHeader)this.token=e;else{if("string"!=typeof e)throw console.warn("Cozy-Client: Unknown token format",e),new Error("Cozy-Client: Unknown token format");this.token=new d.default(e)}this.onRevocationChange(!1)}else this.token=null}},{key:"getAccessToken",value:function(){return this.token&&this.token.getAccessToken()}},{key:"setUri",value:function(e){this.uri=function(e){var t=e;if(null===t)return null;for(;"/"===t[t.length-1];)t=t.slice(0,-1);return t}(e)}},{key:"getIconURL",value:function(e){return(0,_.default)(this,e)}}]),t}();B.default.mixin(z);var I=z;t.default=I}).call(this,n(33))},function(e,t,n){var r=n(104),o=n(255),i=n(162),a=n(487),u=n(488),c=n(259),s=n(124),l=n(489),f=n(490),d=n(217),p=n(163),h=n(66),m=n(491),y=n(492),v=n(261),g=n(26),b=n(87),w=n(496),x=n(34),C=n(498),k=n(85),S={};S["[object Arguments]"]=S["[object Array]"]=S["[object ArrayBuffer]"]=S["[object DataView]"]=S["[object Boolean]"]=S["[object Date]"]=S["[object Float32Array]"]=S["[object Float64Array]"]=S["[object Int8Array]"]=S["[object Int16Array]"]=S["[object Int32Array]"]=S["[object Map]"]=S["[object Number]"]=S["[object Object]"]=S["[object RegExp]"]=S["[object Set]"]=S["[object String]"]=S["[object Symbol]"]=S["[object Uint8Array]"]=S["[object Uint8ClampedArray]"]=S["[object Uint16Array]"]=S["[object Uint32Array]"]=!0,S["[object Error]"]=S["[object Function]"]=S["[object WeakMap]"]=!1,e.exports=function e(t,n,_,A,O,E){var B,j=1&n,P=2&n,T=4&n;if(_&&(B=O?_(t,A,O,E):_(t)),void 0!==B)return B;if(!x(t))return t;var z=g(t);if(z){if(B=m(t),!j)return s(t,B)}else{var I=h(t),D="[object Function]"==I||"[object GeneratorFunction]"==I;if(b(t))return c(t,j);if("[object Object]"==I||"[object Arguments]"==I||D&&!O){if(B=P||D?{}:v(t),!j)return P?f(t,u(B,t)):l(t,a(B,t))}else{if(!S[I])return O?t:{};B=y(t,I,j)}}E||(E=new r);var R=E.get(t);if(R)return R;E.set(t,B),C(t)?t.forEach((function(r){B.add(e(r,n,_,r,t,E))})):w(t)&&t.forEach((function(r,o){B.set(o,e(r,n,_,o,t,E))}));var F=T?P?p:d:P?keysIn:k,M=z?void 0:F(t);return o(M||t,(function(r,o){M&&(r=t[o=r]),i(B,o,e(r,n,_,o,t,E))})),B}},function(e,t,n){(function(e){var r=n(39),o=t&&!t.nodeType&&t,i=o&&"object"==typeof e&&e&&!e.nodeType&&e,a=i&&i.exports===o?r.Buffer:void 0,u=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=u?u(n):new e.constructor(n);return e.copy(r),r}}).call(this,n(112)(e))},function(e,t,n){var r=n(176);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},function(e,t,n){var r=n(177),o=n(164),i=n(115);e.exports=function(e){return"function"!=typeof e.constructor||i(e)?{}:r(o(e))}},function(e,t,n){"use strict";var r=n(20),o=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.normalizeApp=t.APPS_DOCTYPE=void 0;var i=o(n(7)),a=o(n(9)),u=o(n(4)),c=o(n(6)),s=o(n(8)),l=o(n(10)),f=o(n(5)),d=o(n(2)),p=o(n(18)),h=n(178),m=o(n(72)),y=r(n(30));n(58);function v(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return g(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return g(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,f.default)(e);if(t){var o=(0,f.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,l.default)(this,n)}}function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?w(Object(n),!0).forEach((function(t){(0,d.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.APPS_DOCTYPE="io.cozy.apps";var C=function(e,t){return x(x(x(x({},e.attributes),e),(0,y.normalizeDoc)(e,t)),{},{id:e.id})};t.normalizeApp=C;var k=function(e){(0,s.default)(d,e);var t,n,r,o,l,f=b(d);function d(e){var t;return(0,u.default)(this,d),(t=f.call(this,"io.cozy.apps",e)).endpoint="/apps/",t}return(0,c.default)(d,[{key:"get",value:(l=(0,a.default)(i.default.mark((function e(t,n){var r,o,a,u,c,s,l,f,d,g=this;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.indexOf("/")>-1?r=t.split("/")[1]:(console.warn("Deprecated: in next versions of cozy-client, it will not be possible to query apps/konnectors only with id, please use the form ".concat(this.doctype,"/").concat(t,"\n\n- Q('io.cozy.apps').getById('banks')\n+ Q('io.cozy.apps').getById('io.cozy.apps/banks')")),r=t),!n||!n.sources||Array.isArray(n.sources)&&0!==n.sources.length){e.next=3;break}throw new Error('Invalid "sources" attribute passed in query, please use an array with at least one element.');case 3:o=(0,p.default)(n,"sources",["stack"]),a={stack:function(){return m.default.get(g.stackClient,"".concat(g.endpoint).concat(encodeURIComponent(r)),{normalize:g.constructor.normalizeDoctype(g.doctype)})},registry:function(){return g.stackClient.fetchJSON("GET",h.registryEndpoint+r)}},u=v(o),e.prev=6,u.s();case 8:if((c=u.n()).done){e.next=27;break}return s=c.value,e.prev=10,e.next=13,a[s]();case 13:if(l=e.sent,"registry"===s){e.next=16;break}return e.abrupt("return",l);case 16:return f=(0,h.transformRegistryFormatToStackFormat)(l),d=(0,y.normalizeDoc)(f,this.doctype),e.abrupt("return",{data:d});case 21:if(e.prev=21,e.t0=e.catch(10),s!==o[o.length-1]){e.next=25;break}throw e.t0;case 25:e.next=8;break;case 27:e.next=32;break;case 29:e.prev=29,e.t1=e.catch(6),u.e(e.t1);case 32:return e.prev=32,u.f(),e.finish(32);case 35:case"end":return e.stop()}}),e,this,[[6,29,32,35],[10,21]])}))),function(e,t){return l.apply(this,arguments)})},{key:"all",value:(o=(0,a.default)(i.default.mark((function e(){var t,n=this;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.stackClient.fetchJSON("GET",this.endpoint);case 2:return t=e.sent,e.abrupt("return",{data:t.data.map((function(e){return C(e,n.doctype)})),meta:{count:t.meta.count},skip:0,next:!1});case 4:case"end":return e.stop()}}),e,this)}))),function(){return o.apply(this,arguments)})},{key:"create",value:(r=(0,a.default)(i.default.mark((function e(){return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:throw new Error("create() method is not available for applications");case 1:case"end":return e.stop()}}),e)}))),function(){return r.apply(this,arguments)})},{key:"update",value:(n=(0,a.default)(i.default.mark((function e(){return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:throw new Error("update() method is not available for applications");case 1:case"end":return e.stop()}}),e)}))),function(){return n.apply(this,arguments)})},{key:"destroy",value:(t=(0,a.default)(i.default.mark((function e(){return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:throw new Error("destroy() method is not available for applications");case 1:case"end":return e.stop()}}),e)}))),function(){return t.apply(this,arguments)})}]),d}(y.default);k.normalizeDoctype=y.default.normalizeDoctypeJsonApi;var S=k;t.default=S},function(e,t){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},function(e,t){e.exports=function(e){return e&&e.length?e[0]:void 0}},function(e,t,n){var r=n(34),o=n(82),i=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,c=/^0o[0-7]+$/i,s=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return NaN;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(i,"");var n=u.test(e);return n||c.test(e)?s(e.slice(2),n?2:8):a.test(e)?NaN:+e}},function(e,t,n){"use strict";var r=String.prototype.replace,o=/%20/g,i=n(181),a={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports=i.assign({default:a.RFC3986,formatters:{RFC1738:function(e){return r.call(e,o,"+")},RFC3986:function(e){return String(e)}}},a)},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.isMatchingIndex=t.isInconsistentIndex=t.getIndexFields=t.transformSort=t.getIndexNameFromFields=t.normalizeDesignDoc=void 0;var o=r(n(31)),i=r(n(2)),a=n(44),u=r(n(264)),c=r(n(18)),s=r(n(182));function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}t.normalizeDesignDoc=function(e){var t=e._id||e.id;return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){(0,i.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({id:t,_id:t},e.doc)};t.getIndexNameFromFields=function(e){return"by_".concat(e.join("_and_"))};t.transformSort=function(e){return!e||Array.isArray(e)?e:(console.warn('Passing an object to the "sort" is deprecated, please use an array instead.'),(0,a.transform)(e,(function(e,t,n){return e.push((0,i.default)({},n,t))}),[]))};t.getIndexFields=function(e){var t=e.selector,n=e.sort,r=void 0===n?[]:n;return Array.from(new Set([].concat((0,o.default)(r.map((function(e){return(0,u.default)(Object.keys(e))}))),(0,o.default)(t?Object.keys(t):[]))))};t.isInconsistentIndex=function(e){var t=e._id;if(!t.startsWith("_design/by_"))return!1;var n=t.split("_design/by_")[1].split("_and_"),r=Object.keys((0,c.default)(e,"views"))[0],o=Object.keys((0,c.default)(e,"views.".concat(r,".map.fields")));return!(0,s.default)(n,o)};t.isMatchingIndex=function(e,t,n){var r=Object.keys((0,c.default)(e,"views"))[0],o=Object.keys((0,c.default)(e,"views.".concat(r,".map.fields")));if((0,s.default)(o,t)){if(!n)return!0;var i=(0,c.default)(e,"views.".concat(r,".map.partial_filter_selector"));if((0,s.default)(n,i))return!0}return!1}},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(4)),i=r(n(6)),a=function(){function e(t){(0,o.default)(this,e);var n=t;"string"==typeof n&&(n=JSON.parse(n)),this.tokenType=n.token_type||n.tokenType,this.accessToken=n.access_token||n.accessToken,this.refreshToken=n.refresh_token||n.refreshToken,this.scope=n.scope}return(0,i.default)(e,[{key:"toAuthHeader",value:function(){return"Bearer "+this.accessToken}},{key:"toBasicAuth",value:function(){return"user:".concat(this.accessToken,"@")}},{key:"toJSON",value:function(){return{tokenType:this.tokenType,accessToken:this.accessToken,refreshToken:this.refreshToken,scope:this.scope}}},{key:"toString",value:function(){return JSON.stringify(this.toJSON())}},{key:"getAccessToken",value:function(){return this.accessToken}}]),e}();t.default=a},function(e,t,n){var r=n(523),o=n(229);e.exports=function(e,t){return null!=e&&o(e,t,r)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getIllegalCharacters=void 0;t.getIllegalCharacters=function(e){var t=e.match(/\/|\x00|\n|\r/g);return t?t.join(" "):""}},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.hasJobFinished=t.normalizeJob=t.JOBS_DOCTYPE=void 0;var o=r(n(7)),i=r(n(46)),a=r(n(9)),u=r(n(4)),c=r(n(6)),s=r(n(2)),l=r(n(72)),f=n(30),d=n(44);function p(){var e=(0,i.default)(["/jobs/",""]);return p=function(){return e},e}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){(0,s.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.JOBS_DOCTYPE="io.cozy.jobs";var y=function(e){return new Promise((function(t){return setTimeout(t,e)}))},v=function(e){return m(m(m({},e),(0,f.normalizeDoc)(e,"io.cozy.jobs")),e.attributes)};t.normalizeJob=v;var g=function(e){return"done"===e.state||"errored"===e.state};t.hasJobFinished=g;var b=function(){function e(t){(0,u.default)(this,e),this.stackClient=t}var t,n,r;return(0,c.default)(e,[{key:"queued",value:function(e){return this.stackClient.fetchJSON("GET","/jobs/queue/".concat(e))}},{key:"create",value:function(e,t,n){return this.stackClient.fetchJSON("POST","/jobs/queue/".concat(e),{data:{type:"io.cozy.jobs",attributes:{arguments:t||{},options:n||{}}}})}},{key:"get",value:(r=(0,a.default)(o.default.mark((function e(t){return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",l.default.get(this.stackClient,(0,d.uri)(p(),t),{normalize:v}));case 1:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"update",value:(n=(0,a.default)(o.default.mark((function e(t){var n;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("client"===t.worker){e.next=2;break}throw new Error("JobCollection.update only works for client workers. ".concat(t.worker," given"));case 2:return e.next=4,this.stackClient.fetchJSON("PATCH","/jobs/".concat(t._id),{data:{type:"io.cozy.jobs",id:t._id,attributes:{state:t.attributes.state,error:t.attributes.error}}});case 4:return n=e.sent,e.abrupt("return",v(n.data));case 6:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"waitFor",value:(t=(0,a.default)(o.default.mark((function e(t){var n,r,i,a,u,c,s,l,f,d,p,h,m=arguments;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=m.length>1&&void 0!==m[1]?m[1]:{},r=n.onUpdate,i=void 0===r?null:r,a=n.until,u=void 0===a?g:a,c=n.delay,s=void 0===c?5e3:c,l=n.timeout,f=void 0===l?3e5:l,d=Date.now(),e.next=4,this.get(t);case 4:p=e.sent.data.attributes;case 5:if(p&&u(p)){e.next=17;break}return e.next=8,y(s);case 8:return e.next=10,this.get(t);case 10:if(p=e.sent.data.attributes,i&&i(p),h=Date.now(),!(d-h>f)){e.next=15;break}throw new Error("Timeout for JobCollection::waitFor");case 15:e.next=5;break;case 17:return e.abrupt("return",p);case 18:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})}]),e}();t.default=b},function(e,t,n){"use strict";var r=n(20),o=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.isForAccount=t.isForKonnector=t.normalizeTrigger=t.TRIGGERS_DOCTYPE=t.JOBS_DOCTYPE=void 0;var i=o(n(17)),a=o(n(46)),u=o(n(7)),c=o(n(9)),s=o(n(4)),l=o(n(6)),f=o(n(97)),d=o(n(8)),p=o(n(10)),h=o(n(5)),m=o(n(2)),y=r(n(72)),v=r(n(30)),g=n(271),b=n(44);n(58);function w(){var e=(0,a.default)(["/jobs/triggers/","/launch"]);return w=function(){return e},e}function x(){var e=(0,a.default)(["/jobs/triggers/",""]);return x=function(){return e},e}function C(){var e=(0,a.default)(["/jobs/triggers/",""]);return C=function(){return e},e}function k(){var e=(0,a.default)(["/jobs/triggers"]);return k=function(){return e},e}function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,h.default)(e);if(t){var o=(0,h.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,p.default)(this,n)}}function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function A(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(Object(n),!0).forEach((function(t){(0,m.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.JOBS_DOCTYPE="io.cozy.jobs";t.TRIGGERS_DOCTYPE="io.cozy.triggers";var O=function(e){return A(A(A({},e),(0,v.normalizeDoc)(e,"io.cozy.triggers")),e.attributes)};t.normalizeTrigger=O;t.isForKonnector=function(e,t){return"konnector"===e.worker&&e.message.konnector==t};t.isForAccount=function(e,t){return e.message.account==t};var E=function(e,t){var n=new URLSearchParams;return e&&(Array.isArray(e.$in)?n.set("Worker",e.$in.join(",")):n.set("Worker",e)),t&&(Array.isArray(t.$in)?n.set("Type",t.$in.join(",")):n.set("Type",t)),n.toString()},B=function(e){(0,d.default)(_,e);var t,n,r,o,a,p,m,v=S(_);function _(e){return(0,s.default)(this,_),v.call(this,"io.cozy.triggers",e)}return(0,l.default)(_,[{key:"all",value:(m=(0,c.default)(u.default.mark((function e(){var t,n=arguments;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n.length>0&&void 0!==n[0]&&n[0],e.prev=1,e.next=4,this.stackClient.fetchJSON("GET","/jobs/triggers");case 4:return t=e.sent,e.abrupt("return",{data:t.data.map((function(e){return O(e)})),meta:{count:t.data.length},next:!1,skip:0});case 8:return e.prev=8,e.t0=e.catch(1),e.abrupt("return",(0,y.dontThrowNotFoundError)(e.t0));case 11:case"end":return e.stop()}}),e,this,[[1,8]])}))),function(){return m.apply(this,arguments)})},{key:"create",value:(p=(0,c.default)(u.default.mark((function e(t){var n,r;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=(0,b.uri)(k()),e.next=3,this.stackClient.fetchJSON("POST",n,{data:{attributes:t}});case 3:return r=e.sent,e.abrupt("return",{data:O(r.data)});case 5:case"end":return e.stop()}}),e,this)}))),function(e){return p.apply(this,arguments)})},{key:"destroy",value:(a=(0,c.default)(u.default.mark((function e(t){var n;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t._id){e.next=3;break}throw new Error("TriggerCollection.destroy needs a document with an _id");case 3:return e.next=5,this.stackClient.fetchJSON("DELETE",(0,b.uri)(C(),n));case 5:return e.abrupt("return",{data:O(A(A({},t),{},{_deleted:!0}))});case 6:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"find",value:(o=(0,c.default)(u.default.mark((function e(){var t,n,r,o,a,c,s,l=arguments;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=l.length>0&&void 0!==l[0]?l[0]:{},n=l.length>1&&void 0!==l[1]?l[1]:{},r=t.worker,o=t.type,a=(0,i.default)(t,["worker","type"]),0!==Object.keys(a).length){e.next=18;break}return c="/jobs/triggers?".concat(E(r,o)),e.prev=6,e.next=9,this.stackClient.fetchJSON("GET",c);case 9:return s=e.sent,e.abrupt("return",{data:s.data.map((function(e){return O(e)})),meta:{count:s.data.length},next:!1,skip:0});case 13:return e.prev=13,e.t0=e.catch(6),e.abrupt("return",(0,y.dontThrowNotFoundError)(e.t0));case 16:e.next=19;break;case 18:return e.abrupt("return",(0,f.default)((0,h.default)(_.prototype),"find",this).call(this,t,n));case 19:case"end":return e.stop()}}),e,this,[[6,13]])}))),function(){return o.apply(this,arguments)})},{key:"get",value:(r=(0,c.default)(u.default.mark((function e(t){return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",y.default.get(this.stackClient,(0,b.uri)(x(),t),{normalize:O}));case 1:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"launch",value:(n=(0,c.default)(u.default.mark((function e(t){var n,r;return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=(0,b.uri)(w(),t._id),e.next=3,this.stackClient.fetchJSON("POST",n);case 3:return r=e.sent,e.abrupt("return",{data:(0,g.normalizeJob)(r.data)});case 5:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"update",value:(t=(0,c.default)(u.default.mark((function e(){return u.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:throw new Error("update() method is not available for triggers");case 1:case"end":return e.stop()}}),e)}))),function(){return t.apply(this,arguments)})}]),_}(v.default);B.normalizeDoctype=v.default.normalizeDoctypeJsonApi;var j=B;t.default=j},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(){var e;(e=console).warn.apply(e,arguments)};t.default=r},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.transformBulkDocsResponse=void 0;var o=r(n(7)),i=r(n(9)),a=r(n(17)),u=r(n(4)),c=r(n(6)),s=r(n(8)),l=r(n(10)),f=r(n(5)),d=r(n(2)),p=n(21),h=r(n(186)),m=(n(22),n(59)),y=n(275),v=r(n(276));function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,f.default)(e);if(t){var o=(0,f.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,l.default)(this,n)}}function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){(0,d.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var x=function(e,t){var n=(0,v.default)(e,t,(function(e,t){return e.ok?w(w({},t),{},{_id:e.id,_rev:e.rev}):t}));if(e.find((function(e){return!e.ok})))throw new y.BulkEditError(e,n);return{data:n}};t.transformBulkDocsResponse=x;var C=function(e){(0,s.default)(r,e);var t,n=g(r);function r(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=t.client,i=t.stackClient;return(0,u.default)(this,r),e=n.call(this),o&&console.warn("Using options.client is deprecated, prefer options.stackClient"),e.stackClient=i||o,e}return(0,c.default)(r,[{key:"registerClient",value:function(e){this.stackClient=e.stackClient||e.client}},{key:"reset",value:function(){this.stackClient=null}},{key:"request",value:function(e,t,n){return e.mutationType?this.executeMutation(e,t,n):this.executeQuery(e)}},{key:"executeQuery",value:function(e){var t=e.doctype,n=e.selector,r=e.id,o=e.ids,i=e.referenced,u=(0,a.default)(e,["doctype","selector","id","ids","referenced"]);if(!t)throw console.warn("Bad query",e),new Error("No doctype found in a query definition");var c=this.stackClient.collection(t);return r?c.get(r,e):o?c.getAll(o):i?c.findReferencedBy(i,u):n||u.sort?c.find(n,u):c.all(u)}},{key:"executeMutation",value:(t=(0,i.default)(o.default.mark((function e(t,n,r){var i,u,c,s,l;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=t.mutationType,u=t.document,c=t.documents,s=(0,a.default)(t,["mutationType","document","documents"]),e.t0=i,e.next=e.t0===p.MutationTypes.CREATE_DOCUMENT?4:e.t0===p.MutationTypes.UPDATE_DOCUMENTS?5:e.t0===p.MutationTypes.UPDATE_DOCUMENT?9:e.t0===p.MutationTypes.DELETE_DOCUMENT?10:e.t0===p.MutationTypes.ADD_REFERENCES_TO?11:e.t0===p.MutationTypes.REMOVE_REFERENCES_TO?12:e.t0===p.MutationTypes.ADD_REFERENCED_BY?13:e.t0===p.MutationTypes.REMOVE_REFERENCED_BY?18:e.t0===p.MutationTypes.UPLOAD_FILE?23:24;break;case 4:return e.abrupt("return",this.stackClient.collection(u._type).create(u));case 5:return e.next=7,this.stackClient.collection(c[0]._type).updateAll(c);case 7:return l=e.sent,e.abrupt("return",x(l,c));case 9:return e.abrupt("return",this.stackClient.collection(u._type).update(u));case 10:return e.abrupt("return",this.stackClient.collection(u._type).destroy(u));case 11:return e.abrupt("return",this.stackClient.collection(s.referencedDocuments[0]._type).addReferencesTo(u,s.referencedDocuments));case 12:return e.abrupt("return",this.stackClient.collection(s.referencedDocuments[0]._type).removeReferencesTo(u,s.referencedDocuments));case 13:if(u._type!==m.DOCTYPE_FILES){e.next=17;break}return e.abrupt("return",this.stackClient.collection(m.DOCTYPE_FILES).addReferencedBy(u,s.referencedDocuments));case 17:throw new Error("The document type should be io.cozy.files");case 18:if(u._type!==m.DOCTYPE_FILES){e.next=22;break}return e.abrupt("return",this.stackClient.collection(m.DOCTYPE_FILES).removeReferencedBy(u,s.referencedDocuments));case 22:throw new Error("The document type should be io.cozy.files");case 23:return e.abrupt("return",this.stackClient.collection(m.DOCTYPE_FILES).upload(s.file,s.dirPath));case 24:return e.abrupt("return",r(t,n));case 25:case"end":return e.stop()}}),e,this)}))),function(e,n,r){return t.apply(this,arguments)})}]),r}(h.default);t.default=C},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.BulkEditError=void 0;var o=r(n(2)),i=r(n(4)),a=r(n(6)),u=r(n(8)),c=r(n(10)),s=r(n(5)),l=r(n(35)),f=r(n(276));n(22);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,s.default)(e);if(t){var o=(0,s.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,c.default)(this,n)}}var m=function(e){(0,u.default)(n,e);var t=h(n);function n(e,r){var o;return(0,i.default)(this,n),(o=t.call(this,"Error while bulk saving")).name="BulkEditError",o.results=(0,f.default)(e,r,(function(e,t){return p(p({},e),{},{doc:t})})),o}return(0,a.default)(n,[{key:"getUpdatedDocuments",value:function(){return this.results.filter((function(e){return e.ok})).map((function(e){return e.doc}))}},{key:"getErrors",value:function(){return this.results.filter((function(e){return!e.ok}))}}]),n}((0,l.default)(Error));t.BulkEditError=m},function(e,t,n){var r=n(57),o=n(539),i=r((function(e){var t=e.length,n=t>1?e[t-1]:void 0;return n="function"==typeof n?(e.pop(),n):void 0,o(e,n)}));e.exports=i},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(7)),i=r(n(31)),a=r(n(2)),u=r(n(9)),c=r(n(4)),s=r(n(6)),l=r(n(97)),f=r(n(8)),d=r(n(10)),p=r(n(5)),h=r(n(19)),m=r(n(18)),y=r(n(76)),v=r(n(125)),g=n(21),b=n(60),w=(n(22),n(59)),x=(r(n(61)),r(n(98)));function C(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function k(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?C(Object(n),!0).forEach((function(t){(0,a.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,p.default)(e);if(t){var o=(0,p.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,d.default)(this,n)}}var _=function(e,t){var n=(0,h.default)(e,3),r=n[0],o=n[1],i=n[2];return[i?[r,o,i]:[r,o],t]},A=function(e){(0,f.default)(d,e);var t,n,r,a=S(d);function d(){return(0,c.default)(this,d),a.apply(this,arguments)}return(0,s.default)(d,[{key:"fetchMore",value:(r=(0,u.default)(o.default.mark((function e(){var t,n,r,a=this;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=new g.QueryDefinition({doctype:w.DOCTYPE_FILES}),n=this.getRelationship().data,r=n[n.length-1],e.next=5,this.dispatch(function(){var e=(0,u.default)(o.default.mark((function e(u,c){var s,l,f,d;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s=(0,b.getDocumentFromState)(c(),r._type,r._id),l=s.attributes.metadata.datetime,f=_([a.target._type,a.target._id,l],n[n.length-1]._id),e.next=5,a.query(t.referencedBy(a.target).offsetCursor(f));case 5:return(d=e.sent).data.shift(),e.next=9,a.dispatch(a.updateRelationshipData((function(e){return k(k({},e),{},{data:[].concat((0,i.default)(e.data),(0,i.default)(d.data)),next:d.next})})));case 9:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}());case 5:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"addById",value:(n=(0,u.default)(o.default.mark((function e(t){var n,r,i=this;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=Array.isArray(t)?t:[t],r=n.map((function(e){return{_id:e,_type:i.doctype}})),e.next=4,this.mutate(this.addReferences(r));case 4:this.addTargetRelationships(n);case 5:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"removeById",value:(t=(0,u.default)(o.default.mark((function e(t){var n,r,i=this;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=Array.isArray(t)?t:[t],r=n.map((function(e){return{_id:e,_type:i.doctype}})),e.next=4,this.mutate(this.removeReferences(r));case 4:this.removeTargetRelationships(n);case 5:case"end":return e.stop()}}),e,this)}))),function(e){return t.apply(this,arguments)})},{key:"addReferences",value:function(e){if(this.target._type===w.DOCTYPE_FILES)return g.Mutations.addReferencedBy(this.target,e);if(e[0]._type===w.DOCTYPE_FILES)return g.Mutations.addReferencesTo(this.target,e);throw new Error("Either the document or the references should be io.cozy.files")}},{key:"removeReferences",value:function(e){if(this.target._type===w.DOCTYPE_FILES)return g.Mutations.removeReferencedBy(this.target,e);if(e[0]._type===w.DOCTYPE_FILES)return g.Mutations.removeReferencesTo(this.target,e);throw new Error("Either the document or the references should be io.cozy.files")}},{key:"dehydrate",value:function(e){return(0,y.default)(e,[this.name,"relationships.".concat(this.name)])}},{key:"data",get:function(){var e=this;return this.target._type===w.DOCTYPE_FILES?(0,m.default)(this.target,"referenced_by",[]).map((function(t){var n=t.id,r=t.type;return e.get(r,n)})).filter(Boolean):(0,l.default)((0,p.default)(d.prototype),"data",this)}}],[{key:"query",value:function(e,t,n){if(e._type===w.DOCTYPE_FILES){var r=(0,m.default)(e,"relationships.referenced_by.data",[]),o=(0,v.default)(r.filter((function(e){return e.type===n.doctype})).map((function(e){return e.id})));return o.length>0?(0,g.Q)(n.doctype).getByIds(o):null}var i=_([e._type,e._id],"");return(0,g.Q)(n.doctype).referencedBy(e).offsetCursor(i)}}]),d}(x.default);t.default=A},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.extractAndMergeDocument=t.getCollectionFromSlice=t.getDocumentFromSlice=t.default=t.mergeDocumentsWithRelationships=void 0;var o=r(n(2)),i=r(n(279)),a=r(n(18)),u=r(n(182)),c=r(n(76)),s=r(n(187)),l=n(188),f=n(21),d=n(190),p=(n(22),n(287));function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var y=function(e,t){var n=t._type;if(!n)throw new Error("Document without _type");if(!(0,p.properId)(t))throw new Error("Document without id");var r=(0,a.default)(e,[n,(0,p.properId)(t)]);return(0,u.default)(r,t)?e:m(m({},e),{},(0,o.default)({},n,m(m({},e[n]),{},(0,o.default)({},(0,p.properId)(t),v(r,t)))))},v=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=m(m({},e),t);return(e.relationships||t.relationships)&&(n.relationships=m(m({},e.relationships),t.relationships)),n};t.mergeDocumentsWithRelationships=v;var g=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(!(0,l.isReceivingData)(t)&&!(0,d.isReceivingMutationResult)(t))return e;if(t&&t.definition&&t.definition.mutationType===f.MutationTypes.DELETE_DOCUMENT){var n=t.definition.document._id,r=t.definition.document._type;return m(m({},e),{},(0,o.default)({},r,(0,c.default)(e[r],n)))}var i=t.response,a=i.data,u=i.included;if(!a||Array.isArray(a)&&0===a.length)return e;var s=u?u.reduce(y,e):e;return Array.isArray(a)?b(a,s):y(s,a)};t.default=g;t.getDocumentFromSlice=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;if(!t)throw new Error("getDocumentFromSlice: Cannot retrieve document with undefined doctype");if(!n)throw new Error("getDocumentFromSlice: Cannot retrieve document with undefined id");return e[t]&&e[t][n]?e[t][n]:null};t.getCollectionFromSlice=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(!t)throw new Error("getDocumentFromSlice: Cannot retrieve document with undefined doctype");return e[t]?Object.values(e[t]):null};var b=function(e,t){var n=e[0]._type;if(!n)throw s.default.info("Document without _type",e[0]),new Error("Document without _type");var r=(0,i.default)(e,p.properId),o=Object.assign({},t);return Object.values(r).map((function(e){o[n]||(o[n]={});var t=(0,p.properId)(e);o[n][t]?o[n][t]=m(m({},o[n][t]),e):o[n][t]=e})),o};t.extractAndMergeDocument=b},function(e,t,n){var r=n(69),o=n(280)((function(e,t,n){r(e,n,t)}));e.exports=o},function(e,t,n){var r=n(540),o=n(541),i=n(53),a=n(26);e.exports=function(e,t){return function(n,u){var c=a(n)?r:o,s=t?t():{};return c(n,e,i(u,2),s)}}},function(e,t){var n={black:"#000",red:"#c23621",green:"#25bc26",yellow:"#bbbb00",blue:"#492ee1",magenta:"#d338d3",cyan:"#33bbc8",gray:"#808080",purple:"#708"};e.exports=function(e,t){return t?"color: #fff; background: "+n[e]+";":"color: "+n[e]+";"}},function(e,t,n){var r=n(69),o=n(280),i=Object.prototype.hasOwnProperty,a=o((function(e,t,n){i.call(e,n)?e[n].push(t):r(e,n,[t])}));e.exports=a},function(e,t,n){var r=n(43),o=n(284),i=n(57),a=n(285),u=i((function(e){var t=r(e,a);return t.length&&t[0]===e[0]?o(t):[]}));e.exports=u},function(e,t,n){var r=n(109),o=n(173),i=n(174),a=n(43),u=n(65),c=n(110),s=Math.min;e.exports=function(e,t,n){for(var l=n?i:o,f=e[0].length,d=e.length,p=d,h=Array(d),m=1/0,y=[];p--;){var v=e[p];p&&t&&(v=a(v,u(t))),m=s(v.length,m),h[p]=!n&&(t||f>=120&&v.length>=120)?new r(p&&v):void 0}v=e[0];var g=-1,b=h[0];e:for(;++g<f&&y.length<m;){var w=v[g],x=t?t(w):w;if(w=n||0!==w?w:0,!(b?c(b,x):l(y,x,n))){for(p=d;--p;){var C=h[p];if(!(C?c(C,x):l(e[p],x,n)))continue e}b&&b.push(x),y.push(w)}}return y}},function(e,t,n){var r=n(123);e.exports=function(e){return r(e)?e:[]}},function(e,t,n){var r=n(43),o=n(53),i=n(554),a=n(555),u=n(65),c=n(556),s=n(88);e.exports=function(e,t,n){var l=-1;t=r(t.length?t:[s],u(o));var f=i(e,(function(e,n,o){return{criteria:r(t,(function(t){return t(e)})),index:++l,value:e}}));return a(f,(function(e,t){return c(e,t,n)}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.properId=void 0;t.properId=function(e){return e.id||e._id}},function(e,t,n){var r=n(69),o=n(84);e.exports=function(e,t,n){(void 0!==n&&!o(e[t],n)||void 0===n&&!(t in e))&&r(e,t,n)}},function(e,t){e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},function(e,t,n){var r=n(84),o=n(47),i=n(113),a=n(34);e.exports=function(e,t,n){if(!a(n))return!1;var u=typeof t;return!!("number"==u?o(n)&&i(t,n.length):"string"==u&&t in n)&&r(n[t],e)}},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(2)),i=r(n(4)),a=r(n(6)),u=r(n(8)),c=r(n(10)),s=r(n(5)),l=r(n(18)),f=r(n(567)),d=n(21);n(22);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,s.default)(e);if(t){var o=(0,s.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,c.default)(this,n)}}var y=function(e){(0,u.default)(n,e);var t=m(n);function n(){return(0,i.default)(this,n),t.apply(this,arguments)}return(0,a.default)(n,[{key:"add",value:function(e){return this.setRelationship(e),this.save(this.target)}},{key:"remove",value:function(){return this.setRelationship(void 0),this.save(this.target)}},{key:"setRelationship",value:function(e){if(e&&e._type!==this.doctype)throw new Error("Tried to associate a ".concat(e._type," document to a HasOne relationship on ").concat(this.doctype," document"));var t="relationships[".concat(this.name,"].data");e?(0,f.default)(this.target,t,{_id:e._id,_type:e._type}):(0,f.default)(this.target,t,void 0)}},{key:"set",value:function(e){console.warn("set is deprecated for has-one relationships. Use `add` instead."),this.setRelationship(e)}},{key:"unset",value:function(){console.warn("unset is deprecated for has-one relationships. Use `remove` instead."),this.setRelationship(void 0)}},{key:"dehydrate",value:function(e){return this.raw?h(h({},e),{},{relationships:h(h({},e.relationships),{},(0,o.default)({},this.name,{data:this.raw}))}):e}},{key:"raw",get:function(){return(0,l.default)(this.target,"relationships[".concat(this.name,"].data"),null)}},{key:"data",get:function(){return this.raw?this.get(this.doctype,this.raw._id):null}}],[{key:"query",value:function(e,t,n){var r=(0,l.default)(e,"relationships.".concat(n.name,".data"),{});return r&&r._id?(0,d.Q)(n.doctype).getById(r._id):null}}]),n}(r(n(61)).default);t.default=y},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.BelongsToInPlace=t.default=void 0;var o=r(n(2)),i=r(n(4)),a=r(n(6)),u=r(n(8)),c=r(n(10)),s=r(n(5)),l=r(n(61)),f=n(21);n(22);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,s.default)(e);if(t){var o=(0,s.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,c.default)(this,n)}}var m=function(e){(0,u.default)(n,e);var t=h(n);function n(){return(0,i.default)(this,n),t.apply(this,arguments)}return(0,a.default)(n,[{key:"dehydrate",value:function(e){return p(p({},e),{},(0,o.default)({},this.name,this.raw||void 0))}},{key:"raw",get:function(){return this.target[this.name]}},{key:"data",get:function(){return this.get(this.doctype,this.raw)}}],[{key:"query",value:function(e,t,n){var r=e[n.name];return t.getDocumentFromState(n.doctype,r)||(0,f.Q)(n.doctype).getById(r)}}]),n}(l.default);t.default=m;var y=m;t.BelongsToInPlace=y},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(2)),i=r(n(4)),a=r(n(6)),u=r(n(8)),c=r(n(10)),s=r(n(5)),l=n(21);n(22);function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,s.default)(e);if(t){var o=(0,s.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,c.default)(this,n)}}var h=function(e){(0,u.default)(n,e);var t=p(n);function n(){return(0,i.default)(this,n),t.apply(this,arguments)}return(0,a.default)(n,[{key:"addById",value:function(e){this.getRelationship().push(e)}},{key:"removeById",value:function(e){var t=this.getRelationship(),n=t.indexOf(e);-1!==n&&t.splice(n,1)}},{key:"existsById",value:function(e){return-1!==this.getRelationship().indexOf(e)}},{key:"getRelationship",value:function(){return this.target[this.name]=this.target[this.name]||[],this.target[this.name]}},{key:"dehydrate",value:function(e){return d(d({},e),{},(0,o.default)({},this.name,this.raw||[]))}},{key:"raw",get:function(){return this.target[this.name]}},{key:"data",get:function(){var e=this,t=this.doctype;return(this.raw||[]).map((function(n){return e.get(t,n)}))}}],[{key:"query",value:function(e,t,n){var r=e[n.name];return r&&r>0?(0,l.Q)(n.doctype).getByIds(r):null}}]),n}(r(n(61)).default);t.default=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={olderThan:function(e){return function(t){return!t||!t.lastUpdate||Date.now()-t.lastUpdate>e}},noFetch:function(){return!1}};t.default=r},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(4)),i=r(n(6)),a=r(n(2)),u=r(n(18)),c=n(60),s=Object.prototype.hasOwnProperty,l=function(){function e(t,n,r,i){var u=this;if((0,o.default)(this,e),(0,a.default)(this,"handleStoreChange",(function(){var e=u.currentRawResult();(function(e,t){if(f(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;o<n.length;o++)if(!s.call(t,n[o])||!f(e[n[o]],t[n[o]]))return!1;return!0})(e,u.lastResult)||(u.lastResult=e,u.notifyObservers())})),!t||!n||!r)throw new Error("ObservableQuery takes 3 arguments: queryId, definition and client");this.queryId=t,this.definition=n,this.client=r,this.observers={},this.idCounter=1,this.lastResult=this.currentRawResult(),this.options=i}return(0,i.default)(e,[{key:"currentResult",value:function(){return this.client.getQueryFromState(this.queryId,{hydrated:(0,u.default)(this.options,"hydrated",!0),singleDocData:!0})}},{key:"fetch",value:function(){return this.client.query(this.definition,{as:this.queryId})}},{key:"fetchMore",value:function(){var e=this.currentRawResult();return e.bookmark?this.client.query(this.definition.offsetBookmark(e.bookmark),{as:this.queryId}):this.client.query(this.definition.offset(e.data.length),{as:this.queryId})}},{key:"currentRawResult",value:function(){return(0,c.getRawQueryFromState)(this.getStore().getState(),this.queryId)}},{key:"notifyObservers",value:function(){var e=this;Object.keys(this.observers).forEach((function(t){return e.observers[t]()}))}},{key:"subscribeToStore",value:function(){if(this._unsubscribeStore)throw new Error("ObservableQuery instance is already subscribed to store.");this._unsubscribeStore=this.getStore().subscribe(this.handleStoreChange)}},{key:"unsubscribeFromStore",value:function(){if(!this._unsubscribeStore)throw new Error("ObservableQuery instance is not subscribed to store");this._unsubscribeStore()}},{key:"subscribe",value:function(e){var t=this,n=this.idCounter;return this.idCounter++,this.observers[n]=e,1===Object.keys(this.observers).length&&this.subscribeToStore(),function(){return t.unsubscribe(n)}}},{key:"unsubscribe",value:function(e){if(!this.observers[e])throw new Error("Cannot unsubscribe unknown callbackId ".concat(e));delete this.observers[e],0===Object.keys(this.observers).length&&(this.unsubscribeFromStore(),this._unsubscribeStore=null)}},{key:"getStore",value:function(){return this.client.store}}]),e}();function f(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}t.default=l},function(e,t,n){var r=n(193),o=n(180),i=n(297),a=n(298),u=n(26),c=n(589);e.exports=function(e){return o((function(t){var n=t.length,o=n,s=r.prototype.thru;for(e&&t.reverse();o--;){var l=t[o];if("function"!=typeof l)throw new TypeError("Expected a function");if(s&&!f&&"wrapper"==a(l))var f=new r([],!0)}for(o=f?o:n;++o<n;){l=t[o];var d=a(l),p="wrapper"==d?i(l):void 0;f=p&&c(p[0])&&424==p[1]&&!p[4].length&&1==p[9]?f[a(p[0])].apply(f,p[3]):1==l.length&&c(l)?f[d]():f.thru(l)}return function(){var e=arguments,r=e[0];if(f&&1==e.length&&u(r))return f.plant(r).value();for(var o=0,i=n?t[o].apply(this,e):r;++o<n;)i=t[o].call(this,i);return i}}))}},function(e,t,n){var r=n(587),o=n(250),i=r?function(e){return r.get(e)}:o;e.exports=i},function(e,t,n){var r=n(588),o=Object.prototype.hasOwnProperty;e.exports=function(e){for(var t=e.name+"",n=r[t],i=o.call(r,t)?n.length:0;i--;){var a=n[i],u=a.func;if(null==u||u==e)return a.name}return t}},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.computeChildrenArgs=t.getQueryAttributes=t.default=t.fetchQuery=void 0;var o=r(n(4)),i=r(n(6)),a=r(n(11)),u=r(n(8)),c=r(n(10)),s=r(n(5)),l=r(n(2)),f=r(n(17)),d=n(0),p=(r(n(41)),r(n(1)));r(n(295));function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=(0,s.default)(e);if(t){var o=(0,s.default)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return(0,c.default)(this,n)}}function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){(0,l.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var v={},g=function(e,t){return t.fetch?t.fetch():e.query(t.definition,{as:t.queryId})};t.fetchQuery=g;var b=function(e,t){var n=e.create.bind(e),r=e.save.bind(e),o=e.destroy.bind(e),i=e.getAssociation.bind(e),a="function"==typeof t.query?t.query(e,t):t.query,u=e.makeObservableQuery(a,t),c=u.fetchMore.bind(u),s=t.mutations,l=(0,f.default)(t,["mutations"]),d="function"==typeof s?s(e,u,l):s,p=u.fetch?u.fetch.bind(u):null;return{client:e,observableQuery:u,queryDefinition:a,createDocument:n,saveDocument:r,deleteDocument:o,getAssociation:i,fetchMore:c,fetch:p,mutations:d}};t.getQueryAttributes=b;var w=function(e){var t=e.observableQuery,n=e.fetchMore,r=e.fetch,o=e.createDocument,i=e.saveDocument,a=e.deleteDocument,u=e.getAssociation,c=e.mutations;return[y({fetchMore:n,fetch:r},t.currentResult()),y({createDocument:o,saveDocument:i,deleteDocument:a,getAssociation:u},c)]};t.computeChildrenArgs=w;var x=function(e){(0,u.default)(n,e);var t=h(n);function n(e,r){var i;(0,o.default)(this,n),i=t.call(this,e,r),(0,l.default)((0,a.default)(i),"onQueryChange",(function(){i.recomputeChildrenArgs(),i.setState(v)}));var u=r.client;if(!r.client)throw new Error("Query should be used with client in context (use CozyProvider to set context)");return i.client=u,i.observableQuery=null,i.queryUnsubscribe=null,Object.assign((0,a.default)(i),b(u,e)),i.recomputeChildrenArgs(),i}return(0,i.default)(n,[{key:"componentDidMount",value:function(){this.queryUnsubscribe=this.observableQuery.subscribe(this.onQueryChange),!1!==this.props.enabled&&this.executeQueryRespectingFetchPolicy()}},{key:"executeQueryRespectingFetchPolicy",value:function(){if(this.props.fetchPolicy){var e=this.client.getQueryFromState(this.props.as);this.props.fetchPolicy&&"function"==typeof this.props.fetchPolicy&&this.props.fetchPolicy(e)&&g(this.client,this.observableQuery)}else g(this.client,this.observableQuery)}},{key:"componentDidUpdate",value:function(e){!1===e.enabled&&!1!==this.props.enabled&&this.executeQueryRespectingFetchPolicy()}},{key:"componentWillUnmount",value:function(){this.queryUnsubscribe&&this.queryUnsubscribe()}},{key:"recomputeChildrenArgs",value:function(){this.childrenArgs=w(this)}},{key:"render",value:function(){return(0,this.props.children)(this.childrenArgs[0],this.childrenArgs[1])}}]),n}(d.Component);t.default=x,x.contextTypes={client:p.default.object,store:p.default.object};var C=p.default.object;x.propTypes={query:p.default.oneOfType([p.default.func,C]).isRequired,enabled:p.default.bool,as:p.default.string,children:p.default.func.isRequired,fetchPolicy:p.default.func},x.defaultProps={enabled:!0}},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.useQueries=void 0;var o=r(n(19)),i=r(n(2)),a=n(0),u=n(746),c=r(n(18)),s=r(n(128)),l=r(n(187)),f=(n(22),n(196));n(21);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){(0,i.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var h=(0,u.createSelectorHook)(f.clientContext),m=function(e,t){if(!h)throw new Error("You must use react-redux > 7.1.0 to use useQuery (uses useSelector) under the hood");if(!e)throw l.default.warn("Bad query",e),new Error("Bad query");var n,r="function"==typeof(n=e)?n():n,o=t.as,i=t.enabled,u=void 0===i||i;if(!o)throw new Error("You must specify options.as when using useQuery");var f=(0,s.default)(),d=h((function(){return void 0===t.singleDocData&&e.id&&l.default.warn("useQuery options.singleDocData will pass to true in a next version of cozy-client, please add it now to prevent any problem in the future."),f.getQueryFromState(o,{hydrated:(0,c.default)(t,"hydrated",!0),singleDocData:(0,c.default)(t,"singleDocData",!1)})}));(0,a.useEffect)((function(){!1!==u&&f.query(r,t)}),[o,u]);var m=(0,a.useCallback)((function(){var e,t=f.getQueryFromState(o);return f.query((e=t).bookmark?e.definition.offsetBookmark(e.bookmark):e.definition.offset(e.data.length),{as:o})}),[o,f]),y=(0,a.useCallback)((function(){return f.query(r,t)}),[f,r,t]);return p(p({},d),{},{fetchMore:m,fetch:y})};t.useQueries=function(e){for(var t={},n=0,r=Object.entries(e);n<r.length;n++){var i=(0,o.default)(r[n],2),a=i[0],u=i[1];t[a]=m(u.query,u)}return t};var y=m;t.default=y},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.setContractSyncStatusInAccount=t.getContractSyncStatusFromAccount=t.muteError=t.getMutedErrors=void 0;var o=r(n(2)),i=r(n(18)),a=r(n(127)),u=n(98);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){(0,o.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var l=function(e){return(0,i.default)(e,"mutedErrors",[])};t.getMutedErrors=l;t.muteError=function(e,t){var n=l(e);return n.push({type:t,mutedAt:(new Date).toISOString()}),s(s({},e),{},{mutedErrors:n})};t.getContractSyncStatusFromAccount=function(e,t){var n=(0,u.getHasManyItem)(e,"contracts",t);if(!n)throw new Error("Cannot find contrat ".concat(t," in account"));return(0,i.default)(n,"metadata.imported",!0)};t.setContractSyncStatusInAccount=function(e,t,n){return(0,u.updateHasManyItem)(e,"contracts",t,(function(e){if(void 0===e)throw new Error("Cannot find contrat ".concat(t," in account"));return(0,a.default)({},e,{metadata:{imported:n}})}))}},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.getAppDisplayName=t.getUrl=t.isInstalled=t.getStoreInstallationURL=t.getStoreURL=void 0;var o=r(n(18)),i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t.slug)throw new Error("Expected app / konnector with the defined slug");var n=a(e,{slug:"store"});if(!n)return null;var r=n.links&&n.links.related;return r?"".concat(r,"#/discover/").concat(t.slug):null};t.getStoreURL=i;t.getStoreInstallationURL=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=i(e,t);return n?"".concat(n,"/install"):null};var a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.find((function(e){return e.attributes&&e.attributes.slug===t.slug}))};t.isInstalled=a;t.getUrl=function(e){return e.links&&e.links.related};t.getAppDisplayName=function(e,t){var n=(0,o.default)(e,"name_prefix"),r=(0,o.default)(e,"name"),i=(0,o.default)(e,["locales",t,"name"],r),a=(0,o.default)(e,["locales",t,"name_prefix"],n);return a&&"cozy"!==a.toLowerCase()?"".concat(a," ").concat(i):i}},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.normalize=function(e){var t=e._id||e.id,n=e._type||p.DOCTYPE_FILES;return v({_id:t,id:t,_type:n},e)},t.ensureFilePath=function(e,t){if(e.path)return e;if(!t||!t.path)throw new Error("Could not define a file path for ".concat(e._id||e.id));return v({path:t.path+"/"+e.name},e)},t.getParentFolderId=function(e){var t=(0,u.default)(e,"attributes.dir_id");return""===t?null:t},t.fetchBlobFileById=t.isFromKonnector=t.hasCertifications=t.hasQualifications=t.isPlainText=t.doMobileUpload=t.readMobileFile=t.uploadFileWithConflictStrategy=t.generateFileNameForRevision=t.generateNewFileNameOnConflict=t.overrideFileForPath=t.move=t.getFullpath=t.hasMetadataAttribute=t.isReferencedByAlbum=t.fetchFilesByQualificationRules=t.saveFileQualification=t.isSharingShorcutNew=t.isSharingShortcutNew=t.isSharingShorcut=t.isSharingShortcut=t.getSharingShortcutTargetDoctype=t.getSharingShortcutTargetMime=t.getSharingShortcutStatus=t.isShortcut=t.shouldBeOpenedByOnlyOffice=t.isOnlyOfficeFile=t.isNote=t.isDirectory=t.isFile=t.splitFilename=t.ALBUMS_DOCTYPE=void 0;var o=r(n(7)),i=r(n(9)),a=r(n(2)),u=r(n(18)),c=r(n(189)),s=r(n(269)),l=r(n(603)),f=n(197),d=n(21),p=(n(22),n(59));r(n(41));function h(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return m(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return m(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach((function(t){(0,a.default)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}t.ALBUMS_DOCTYPE="io.cozy.photos.albums";var g=/(.+)(\..*)$/,b=function(e){if(!(0,c.default)(e.name))throw new Error("file should have a name property");if("file"===e.type){var t=e.name.match(g);if(t)return{filename:t[1],extension:t[2]}}return{filename:e.name,extension:""}};t.splitFilename=b;var w=function(e){return e&&"file"===e.type};t.isFile=w;t.isDirectory=function(e){return e&&"directory"===e.type};var x=function(e){return!!(e&&e.name&&e.name.endsWith(".cozy-note")&&"file"===e.type&&e.metadata&&void 0!==e.metadata.content&&void 0!==e.metadata.schema&&void 0!==e.metadata.title&&void 0!==e.metadata.version)};t.isNote=x;var C=function(e){return w(e)&&!x(e)&&("text"===e.class||"spreadsheet"===e.class||"slide"===e.class)};t.isOnlyOfficeFile=C;t.shouldBeOpenedByOnlyOffice=function(e){return C(e)&&!e.name.endsWith(".txt")&&!e.name.endsWith(".md")};t.isShortcut=function(e){return e&&"shortcut"===e.class};var k=function(e){return(0,u.default)(e,"metadata.sharing.status")};t.getSharingShortcutStatus=k;t.getSharingShortcutTargetMime=function(e){return(0,u.default)(e,"metadata.target.mime")};t.getSharingShortcutTargetDoctype=function(e){return(0,u.default)(e,"metadata.target._type")};var S=function(e){return Boolean(k(e))};t.isSharingShortcut=S;t.isSharingShorcut=function(e){return console.warn("Deprecation: `isSharingShorcut` is deprecated, please use `isSharingShortcut` instead"),S(e)};var _=function(e){return"new"===k(e)};t.isSharingShortcutNew=_;t.isSharingShorcutNew=function(e){return console.warn("Deprecation: `isSharingShorcutNew` is deprecated, please use `isSharingShortcutNew` instead"),_(e)};var A=function(){var e=(0,i.default)(o.default.mark((function e(t,n,r){var i;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=(0,f.setQualification)(n,r),e.abrupt("return",t.collection(p.DOCTYPE_FILES).updateMetadataAttribute(n._id,i.metadata));case 2:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}();t.saveFileQualification=A;var O=function(){var e=(0,i.default)(o.default.mark((function e(t,n){var r,i,a,u;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=n.rules,i=n.count,a=(0,d.Q)(p.DOCTYPE_FILES).where(v({},r)).partialIndex({trashed:!1}).indexFields(["cozyMetadata.updatedAt","metadata.qualification"]).sortBy([{"cozyMetadata.updatedAt":"desc"}]).limitBy(i||1),e.next=4,t.query(a);case 4:return u=e.sent,e.abrupt("return",u);case 6:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}();t.fetchFilesByQualificationRules=O;t.isReferencedByAlbum=function(e){if(e.relationships&&e.relationships.referenced_by&&e.relationships.referenced_by.data&&e.relationships.referenced_by.data.length>0){var t,n=h(e.relationships.referenced_by.data);try{for(n.s();!(t=n.n()).done;){if("io.cozy.photos.albums"===t.value.type)return!0}}catch(e){n.e(e)}finally{n.f()}}return!1};t.hasMetadataAttribute=function(e){var t=e.file,n=e.attribute;return(0,s.default)(t,"metadata.".concat(n))};var E=function(){var e=(0,i.default)(o.default.mark((function e(t,n,r){var i,a,u;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n){e.next=2;break}throw new Error("You must provide a dirId");case 2:return e.next=4,t.query((0,d.Q)(p.DOCTYPE_FILES).getById(n));case 4:return i=e.sent,a=i.data,u=(0,l.default)(a.path,"/"),e.abrupt("return","".concat(u,"/").concat(r));case 8:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}();t.getFullpath=E;var B=function(){var e=(0,i.default)(o.default.mark((function e(t,n,r){var i,a,u,c,s,l,f,h,m,y,v=arguments;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=v.length>3&&void 0!==v[3]&&v[3],a=r.folderId,u=r.path,e.prev=2,e.next=5,t.collection(p.DOCTYPE_FILES).updateFileMetadata(n,{dir_id:a});case 5:return c=e.sent,e.abrupt("return",{moved:c.data,deleted:null});case 9:if(e.prev=9,e.t0=e.catch(2),409!==e.t0.status||!i){e.next=35;break}if(!u){e.next=16;break}s=u,e.next=24;break;case 16:return e.next=18,t.query((0,d.Q)(p.DOCTYPE_FILES).getById(n));case 18:return l=e.sent,f=l.data,h=f.name,e.next=23,E(t,a,h);case 23:s=e.sent;case 24:return e.next=26,t.collection(p.DOCTYPE_FILES).statByPath(s);case 26:return m=e.sent,e.next=29,t.collection(p.DOCTYPE_FILES).destroy(m.data);case 29:return e.next=31,t.collection(p.DOCTYPE_FILES).updateFileMetadata(n,{dir_id:a});case 31:return y=e.sent,e.abrupt("return",{moved:y.data,deleted:m.data.id});case 35:throw e.t0;case 36:case"end":return e.stop()}}),e,null,[[2,9]])})));return function(t,n,r){return e.apply(this,arguments)}}();t.move=B;var j=function(){var e=(0,i.default)(o.default.mark((function e(t,n,r,i){var a,u,c,s,l,f,d,h,m;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(a=n).endsWith("/")||(a+="/"),u=t.collection(p.DOCTYPE_FILES),e.prev=3,e.next=6,u.statByPath(a+r.name);case 6:return c=e.sent,s=c.data,l=s.id,f=s.dir_id,e.next=10,u.updateFile(r,{dirId:f,fileId:l,metadata:i});case 10:return d=e.sent,e.abrupt("return",d);case 14:if(e.prev=14,e.t0=e.catch(3),!/Not Found/.test(e.t0)){e.next=24;break}return e.next=19,u.ensureDirectoryExists(a);case 19:return h=e.sent,e.next=22,u.createFile(r,{dirId:h,metadata:i});case 22:return m=e.sent,e.abrupt("return",m);case 24:throw e.t0;case 25:case"end":return e.stop()}}),e,null,[[3,14]])})));return function(t,n,r,o){return e.apply(this,arguments)}}();t.overrideFileForPath=j;var P=function(e){var t=new RegExp("(_)([0-9]+)$"),n=e.match(t);if(n){var r=parseInt(n[2]);return r++,e.replace(new RegExp("(_)([0-9]+)$"),"_".concat(r))}return"".concat(e,"_1")};t.generateNewFileNameOnConflict=P;t.generateFileNameForRevision=function(e,t,n){var r=b(e),o=r.filename,i=r.extension;return"".concat(o,"_").concat(n(t.updated_at,"DD MMMM - HH[h]mm")).concat(i)};var T=function(){var e=(0,i.default)(o.default.mark((function e(t,n,r){var i,a,u,c,s,l,f,d,h,m,y;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=r.name,a=r.dirId,u=r.conflictStrategy,e.prev=1,e.next=4,E(t,a,i);case 4:return c=e.sent,e.next=7,t.collection(p.DOCTYPE_FILES).statByPath(c);case 7:if(s=e.sent,l=s.data.id,"erase"!==u){e.next=16;break}return e.next=12,t.collection(p.DOCTYPE_FILES).updateFile(n,v(v({},r),{},{fileId:l}));case 12:return f=e.sent,e.abrupt("return",f);case 16:return d=b({name:i,type:"file"}),h=d.filename,m=d.extension,y=P(h)+m,e.abrupt("return",T(t,n,v(v({},r),{},{name:y})));case 19:e.next=26;break;case 21:if(e.prev=21,e.t0=e.catch(1),!/Not Found/.test(e.t0.message)){e.next=25;break}return e.abrupt("return",t.collection(p.DOCTYPE_FILES).createFile(n,r));case 25:throw e.t0;case 26:case"end":return e.stop()}}),e,null,[[1,21]])})));return function(t,n,r){return e.apply(this,arguments)}}();t.uploadFileWithConflictStrategy=T;var z=function(){var e=(0,i.default)(o.default.mark((function e(t){var n;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=new Promise((function(e,n){var r=function(){var t=(0,i.default)(o.default.mark((function t(r){return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r.file(function(){var t=(0,i.default)(o.default.mark((function t(n){var r;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:(r=new FileReader).onloadend=(0,i.default)(o.default.mark((function t(){return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e(r.result);case 1:case"end":return t.stop()}}),t)}))),r.readAsArrayBuffer(n);case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),(function(e){console.error("error getting fileentry file!"+e),n(e)}));case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();window.resolveLocalFileSystemURL(t,r,(function(e){n(e)}))})),e.abrupt("return",n);case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();t.readMobileFile=z;var I=function(){var e=(0,i.default)(o.default.mark((function e(t,n,r){var i;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,z(n);case 2:return i=e.sent,e.abrupt("return",T(t,i,r));case 4:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}();t.doMobileUpload=I;t.isPlainText=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e?/^text\//.test(e):/\.(txt|md)$/.test(t)};t.hasQualifications=function(e){return(0,s.default)(e,"metadata.qualification")};t.hasCertifications=function(e){return(0,u.default)(e,"metadata.carbonCopy",!1)||(0,u.default)(e,"metadata.electronicSafe",!1)};t.isFromKonnector=function(e){return(0,s.default)(e,"cozyMetadata.sourceAccount")};var D=function(){var e=(0,i.default)(o.default.mark((function e(t,n){var r,i,a;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.collection(p.DOCTYPE_FILES),e.next=3,r.fetchFileContentById(n);case 3:return i=e.sent,e.next=6,i.blob();case 6:return a=e.sent,e.abrupt("return",a);case 8:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}();t.fetchBlobFileById=D},function(e,t,n){"use strict";e.exports=n(618)},function(e,t,n){"use strict";var r=n(27),o=n(62),i=r("%TypeError%"),a=n(619),u=n(306),c=n(624),s=n(625),l=n(627),f=n(647),d=n(648),p=n(649),h=o("String.prototype.split"),m=Object("a"),y="a"!==m[0]||!(0 in m);e.exports=function(e){var t,n=f(this),r=y&&p(this)?h(this,""):n,o=l(r);if(!s(e))throw new i("Array.prototype.forEach callback must be a function");arguments.length>1&&(t=arguments[1]);for(var m=0;m<o;){var v=d(m),g=c(r,v);if(g){var b=u(r,v);a(e,t,[b,m,r])}m+=1}}},function(e,t,n){"use strict";var r=n(27)("%TypeError%"),o=n(621),i=n(307),a=n(198);e.exports=function(e,t){if("Object"!==a(e))throw new r("Assertion failed: Type(O) is not Object");if(!i(t))throw new r("Assertion failed: IsPropertyKey(P) is not true, got "+o(t));return e[t]}},function(e,t,n){"use strict";e.exports=function(e){return"string"==typeof e||"symbol"==typeof e}},function(e,t,n){"use strict";e.exports=function(e){return null===e||"function"!=typeof e&&"object"!=typeof e}},function(e,t,n){"use strict";var r=n(652),o=n(305);e.exports=function(){var e=Array.prototype.forEach;return r(e)?e:o}},function(e,t,n){"use strict";var r=n(311),o=n(62),i=o("Object.prototype.propertyIsEnumerable"),a=o("Array.prototype.push");e.exports=function(e){var t=r(e),n=[];for(var o in t)i(t,o)&&a(n,[o,t[o]]);return n}},function(e,t,n){"use strict";e.exports=n(655)},function(e,t,n){"use strict";var r=n(310);e.exports=function(){return"function"==typeof Object.entries?Object.entries:r}},function(e,t,n){"use strict";var r=n(311),o=n(658),i=n(62)("String.prototype.replace"),a=/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/,u=/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/;e.exports=function(){var e=o(r(this));return i(i(e,a,""),u,"")}},function(e,t,n){"use strict";var r=n(313);e.exports=function(){return String.prototype.trim&&"​"==="​".trim()?String.prototype.trim:r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.themesList=void 0;var r=n(197),o=(n(22),function(e){return e.map((function(e){try{return r.Qualification.getByLabel(e)}catch(e){return console.log("error",e),null}})).filter((function(e){return e}))}),i=[{id:"theme1",label:"identity",icon:"people",items:o(["identity_photo","national_id_card","passport","residence_permit","family_record_book","birth_certificate","driver_license","citizen_registration_certificate","other_identity_document"]),defaultItems:["birth_certificate"]},{id:"theme2",label:"family",icon:"team",items:o(["family_record_book","birth_certificate","wedding","pacs","divorce","large_family_card","caf","payment_proof_family_allowance","other_family_document"]),defaultItems:["family_record_book"]},{id:"theme3",label:"work_study",icon:"company",items:o(["diploma","work_contract","pay_sheet","unemployment_benefit","pension","work_disability_recognition","gradebook","student_card","school_attendance_certificate","resume","motivation_letter","other_work_document"])},{id:"theme4",label:"health",icon:"heart",items:o(["health_certificate","health_book","national_health_insurance_card","national_health_insurance_right_certificate","health_insurance_card","prescription","health_invoice","work_disability_recognition","pregnancy_medical_certificate","other_health_document"])},{id:"theme5",label:"home",icon:"home",items:o(["phone_invoice","isp_invoice","telecom_invoice","energy_invoice","water_invoice","house_sale_agreeement","building_permit","technical_diagnostic_record","unfit_for_habitation_declaration","lease","rent_receipt","accommodation_proof","house_insurance","work_quote","work_invoice","other_house_document"])},{id:"theme6",label:"transport",icon:"car",items:o(["driver_license","vehicle_registration","car_insurance","mechanic_invoice","transport_invoice","other_transport_document"]),defaultItems:["driver_license"]},{id:"theme7",label:"activity",icon:"compass",items:o(["personal_sporting_licence","other_activity_document"])},{id:"theme8",label:"finance",icon:"bank",items:o(["tax_return","tax_notice","tax_timetable","receipt","other_tax_document","bank_details","bank_statement","loan_agreement","payment_proof_family_allowance","other_bank_document","other_revenue"])},{id:"theme9",label:"invoice",icon:"bill",items:o(["phone_invoice","isp_invoice","telecom_invoice","energy_invoice","water_invoice","appliance_invoice","web_service_invoice","restaurant_invoice","work_invoice","transport_invoice","health_invoice","other_invoice"])}];t.themesList=i},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;r(n(83)),n(77);var o=function(){return null};o.isRequired=function(){return null};var i=o;t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e,t){return function(){return null}};t.default=r},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.specialProperty=void 0;r(n(2)),r(n(12));t.specialProperty="exact-prop: ​";var o=function(e){return e};t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFunctionName=o,t.default=void 0;var r=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function o(e){var t="".concat(e).match(r);return t&&t[1]||""}var i=function(e){return"string"==typeof e?e:e?e.displayName||e.name||o(e)||"Component":void 0};t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.create=t.createGenerateClassName=t.sheets=t.RuleList=t.SheetsManager=t.SheetsRegistry=t.toCssValue=t.getDynamicStyles=void 0;var r=n(686);Object.defineProperty(t,"getDynamicStyles",{enumerable:!0,get:function(){return f(r).default}});var o=n(130);Object.defineProperty(t,"toCssValue",{enumerable:!0,get:function(){return f(o).default}});var i=n(322);Object.defineProperty(t,"SheetsRegistry",{enumerable:!0,get:function(){return f(i).default}});var a=n(687);Object.defineProperty(t,"SheetsManager",{enumerable:!0,get:function(){return f(a).default}});var u=n(100);Object.defineProperty(t,"RuleList",{enumerable:!0,get:function(){return f(u).default}});var c=n(201);Object.defineProperty(t,"sheets",{enumerable:!0,get:function(){return f(c).default}});var s=n(325);Object.defineProperty(t,"createGenerateClassName",{enumerable:!0,get:function(){return f(s).default}});var l=f(n(691));function f(e){return e&&e.__esModule?e:{default:e}}var d=t.create=function(e){return new l.default(e)};t.default=d()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.registry=[]}return r(e,[{key:"add",value:function(e){var t=this.registry,n=e.options.index;if(-1===t.indexOf(e))if(0===t.length||n>=this.index)t.push(e);else for(var r=0;r<t.length;r++)if(t[r].options.index>n)return void t.splice(r,0,e)}},{key:"reset",value:function(){this.registry=[]}},{key:"remove",value:function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)}},{key:"toString",value:function(e){return this.registry.filter((function(e){return e.attached})).map((function(t){return t.toString(e)})).join("\n")}},{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(134),i=(r=o)&&r.__esModule?r:{default:r};t.default=function(e){return e&&e[i.default]&&e===e[i.default]()}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){e.renderable=t,e.rules&&t.cssRules&&e.rules.link(t.cssRules)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(n(73)),o=(i(n(326)),i(n(690)));function i(e){return e&&e.__esModule?e:{default:e}}t.default=function(){var e=0;return function(t,n){(e+=1)>1e10&&(0,r.default)(!1,"[JSS] You might have a memory leak. Rule counter is at %s.",e);var i="c",a="";return n&&(i=n.options.classNamePrefix||"c",null!=n.options.jss.id&&(a+=n.options.jss.id)),""+i+o.default+a+e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=u(n(324)),a=u(n(100));function u(e){return e&&e.__esModule?e:{default:e}}var c=function(){function e(t,n){var o=this;for(var i in function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.update=function(e,t){return"string"==typeof e?o.rules.update(e,t):o.rules.update(e),o},this.attached=!1,this.deployed=!1,this.linked=!1,this.classes={},this.options=r({},n,{sheet:this,parent:this,classes:this.classes}),this.renderer=new n.Renderer(this),this.rules=new a.default(this.options),t)this.rules.add(i,t[i]);this.rules.process()}return o(e,[{key:"attach",value:function(){return this.attached||(this.deployed||this.deploy(),this.renderer.attach(),!this.linked&&this.options.link&&this.link(),this.attached=!0),this}},{key:"detach",value:function(){return this.attached?(this.renderer.detach(),this.attached=!1,this):this}},{key:"addRule",value:function(e,t,n){var r=this.queue;this.attached&&!r&&(this.queue=[]);var o=this.rules.add(e,t,n);return this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(r?r.push(o):(this.insertRule(o),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),o):o:(this.deployed=!1,o)}},{key:"insertRule",value:function(e){var t=this.renderer.insertRule(e);t&&this.options.link&&(0,i.default)(e,t)}},{key:"addRules",value:function(e,t){var n=[];for(var r in e)n.push(this.addRule(r,e[r],t));return n}},{key:"getRule",value:function(e){return this.rules.get(e)}},{key:"deleteRule",value:function(e){var t=this.rules.get(e);return!!t&&(this.rules.remove(t),!this.attached||!t.renderable||this.renderer.deleteRule(t.renderable))}},{key:"indexOf",value:function(e){return this.rules.indexOf(e)}},{key:"deploy",value:function(){return this.renderer.deploy(),this.deployed=!0,this}},{key:"link",value:function(){var e=this.renderer.getRules();return e&&this.rules.link(e),this.linked=!0,this}},{key:"toString",value:function(e){return this.rules.toString(e)}}]),e}();t.default=c},function(e,t){e.exports=function(e,t){for(var n=e.split("."),r=t.split("."),o=0;o<3;o++){var i=Number(n[o]),a=Number(r[o]);if(i>a)return 1;if(a>i)return-1;if(!isNaN(i)&&isNaN(a))return 1;if(isNaN(i)&&!isNaN(a))return-1}return 0}},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"Intents",{enumerable:!0,get:function(){return o.default}});var o=r(n(360))},function(e,t,n){"use strict";(function(e){var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.getWebSocketToken=t.getWebSocketUrl=t.generateKey=void 0;var o=r(n(7)),i=r(n(9)),a=r(n(19)),u=r(n(4)),c=r(n(6)),s=r(n(2)),l=r(n(45)),f=r(n(367)),d=r(n(418)),p=void 0!==typeof window&&window.minilog||d.default,h=p("cozy-realtime");p.suggest.deny("cozy-realtime","info");var m=function(e,t,n){return"".concat(e).concat("//").concat(t).concat("//").concat(n)};t.generateKey=m;var y=function(e,t){if("function"!=typeof e&&"function"!=typeof t)throw new Error("You should call this function with an handler");var n,r;return t?(n=e,r=t):(n=void 0,r=e),{id:n,handler:r}},v=function(e,t,n,r){var o;if(["created","updated","deleted"].includes(e)||(o="'".concat(e,"' is not a valid event, valid events are 'created', 'updated' or 'deleted'.")),"string"!=typeof t&&(o="'".concat(t,"' is not a valide type, it should be a string.")),n&&"created"===e&&(o="The 'id' should not be specified for 'created' event."),"function"!=typeof r&&(o="The handler '".concat(r,"' should be a function.")),o)throw h.error(o),new Error(o)},g=function(e){var t=e.stackClient.uri,n=function(e){return!!e.match("^(https:/{2})")}(t)?"wss:":"ws:",r=new URL(t).host;return"".concat(n,"//").concat(r,"/realtime/")};t.getWebSocketUrl=g;var b=function(e){return e.stackClient.token.accessToken||e.stackClient.token.token};t.getWebSocketToken=b;var w=function(){function t(n){var r=n.cozyClient,o=n.client;if((0,u.default)(this,t),(0,s.default)(this,"_cozyClient",null),(0,s.default)(this,"_socket",null),(0,s.default)(this,"_retryDelay",1e3),(0,s.default)(this,"_retryLimit",60),r&&console.warn("Realtime: options.cozyClient is deprecated, please use options.client"),this._cozyClient=o||r,!this._cozyClient)throw new Error("Realtime must be initialized with a client. Ex: new Realtime({ client })");this._updateAuthentication=this._updateAuthentication.bind(this),this.unsubscribeAll=this.unsubscribeAll.bind(this),this._receiveMessage=this._receiveMessage.bind(this),this._receiveError=this._receiveError.bind(this),this._resubscribe=this._resubscribe.bind(this),this._beforeUnload=this._beforeUnload.bind(this),this._resetSocket=this._resetSocket.bind(this),this._createSocket(),this._cozyClient.on("login",this._updateAuthentication),this._cozyClient.on("tokenRefreshed",this._updateAuthentication),this._cozyClient.on("logout",this.unsubscribeAll),e&&(e.addEventListener("beforeunload",this._beforeUnload),e.addEventListener("online",this._resubscribe),e.removeEventListener("offline",this._resetSocket))}return(0,c.default)(t,[{key:"_beforeUnload",value:function(){e.removeEventListener("beforeunload",this._windowUnload),this.unsubscribeAll()}},{key:"_createSocket",value:function(){var e=this;if(!this._socket){this._socket=new f.default((function(){return g(e._cozyClient)}),(function(){return b(e._cozyClient)})),this._socket.on("message",this._receiveMessage),this._socket.on("error",this._receiveError)}}},{key:"_receiveError",value:function(t){h.info("Receive error: ".concat(t)),this._resetSocket(),0===this._retryLimit?this.emit("error",t):(this.retry&&clearTimeout(this.retry),e.navigator.onLine&&(this.retry=setTimeout(this._resubscribe,this._retryDelay)))}},{key:"_resubscribe",value:function(){var e=this;this._retryLimit--;var t=Object.keys(this._events).map((function(t){if(t.includes("//")&&0!==e._events[t].length){var n=t.split("//"),r=(0,a.default)(n,3),o=r[1],i=r[2];return"undefined"===i&&(i=void 0),{type:o,id:i}}})).filter(Boolean),n=!0,r=!1,o=void 0;try{for(var i,u=t[Symbol.iterator]();!(n=(i=u.next()).done);n=!0){var c=i.value,s=c.type,l=c.id;this._socket.subscribe(s,l)}}catch(e){r=!0,o=e}finally{try{n||null==u.return||u.return()}finally{if(r)throw o}}}},{key:"_receiveMessage",value:function(e,t){var n=e.type,r=e.id,o=e.eventName,i=[m(o,n)];r&&i.push(m(o,n,r));for(var a=0;a<i.length;a++){var u=i[a];h.debug("Emitting",u,t),this.emit(u,t)}}},{key:"_updateAuthentication",value:function(){h.info("Update token on socket"),this._socket.authenticate()}},{key:"_resetSocket",value:function(){this._socket&&(this._socket.close(),this._socket=null),this._createSocket()}},{key:"subscribe",value:function(e,t,n,r){var a=this,u=y(n,r),c=u.handler,s=u.id;return v(e,t,s,c),this._socket.isConnecting()?new Promise((function(u){a._socket.once("open",(0,i.default)(o.default.mark((function i(){return o.default.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,a.subscribe(e,t,n,r);case 2:u();case 3:case"end":return o.stop()}}),i)}))))})):new Promise((function(n){var r=m(e,t,s);a.on(r,c),a._socket.once("subscribe_".concat(t,"_").concat(s),n),a._socket.subscribe(t,s)}))}},{key:"unsubscribe",value:function(e,t,n,r){var o=y(n,r),i=o.handler,a=o.id;v(e,t,a,i);var u=m(e,t,a);this.removeListener(u,i),this._haveEventHandler()||this._resetSocket()}},{key:"unsubscribeAll",value:function(){var e=this;this._getEventKeys().map((function(t){return e._events[t].length>0&&t})).filter(Boolean).forEach((function(t){return e._events[t]=[]})),this._resetSocket()}},{key:"_getEventKeys",value:function(){return this._events?Object.keys(this._events).map((function(e){return e.includes("//")&&e})).filter(Boolean):[]}},{key:"_haveEventHandler",value:function(){var e=this;return this._getEventKeys().map((function(t){return e._events[t].length})).filter(Boolean).length>0}}]),t}();l.default.mixin(w);var x=w;t.default=x}).call(this,n(33))},function(e,t,n){"use strict";function r(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.a=n}).call(this,n(33))},function(e,t,n){(function(t){var n=/^\[object .+?Constructor\]$/,r="object"==typeof t&&t&&t.Object===Object&&t,o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();function a(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function u(e,t){return!!(e?e.length:0)&&function(e,t,n){if(t!=t)return function(e,t,n,r){var o=e.length,i=n+(r?1:-1);for(;r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}(e,l,n);var r=n-1,o=e.length;for(;++r<o;)if(e[r]===t)return r;return-1}(e,t,0)>-1}function c(e,t,n){for(var r=-1,o=e?e.length:0;++r<o;)if(n(t,e[r]))return!0;return!1}function s(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function l(e){return e!=e}function f(e,t){return e.has(t)}function d(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var p,h=Array.prototype,m=Function.prototype,y=Object.prototype,v=i["__core-js_shared__"],g=(p=/[^.]+$/.exec(v&&v.keys&&v.keys.IE_PROTO||""))?"Symbol(src)_1."+p:"",b=m.toString,w=y.hasOwnProperty,x=y.toString,C=RegExp("^"+b.call(w).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),k=i.Symbol,S=y.propertyIsEnumerable,_=h.splice,A=k?k.isConcatSpreadable:void 0,O=Math.max,E=N(i,"Map"),B=N(i,"Set"),j=N(Object,"create");function P(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function T(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function z(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function I(e){var t=-1,n=e?e.length:0;for(this.__data__=new z;++t<n;)this.add(e[t])}function D(e,t){for(var n,r,o=e.length;o--;)if((n=e[o][0])===(r=t)||n!=n&&r!=r)return o;return-1}function R(e){return!(!Q(e)||(t=e,g&&g in t))&&(W(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?C:n).test(function(e){if(null!=e){try{return b.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e));var t}P.prototype.clear=function(){this.__data__=j?j(null):{}},P.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},P.prototype.get=function(e){var t=this.__data__;if(j){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return w.call(t,e)?t[e]:void 0},P.prototype.has=function(e){var t=this.__data__;return j?void 0!==t[e]:w.call(t,e)},P.prototype.set=function(e,t){return this.__data__[e]=j&&void 0===t?"__lodash_hash_undefined__":t,this},T.prototype.clear=function(){this.__data__=[]},T.prototype.delete=function(e){var t=this.__data__,n=D(t,e);return!(n<0)&&(n==t.length-1?t.pop():_.call(t,n,1),!0)},T.prototype.get=function(e){var t=this.__data__,n=D(t,e);return n<0?void 0:t[n][1]},T.prototype.has=function(e){return D(this.__data__,e)>-1},T.prototype.set=function(e,t){var n=this.__data__,r=D(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},z.prototype.clear=function(){this.__data__={hash:new P,map:new(E||T),string:new P}},z.prototype.delete=function(e){return M(this,e).delete(e)},z.prototype.get=function(e){return M(this,e).get(e)},z.prototype.has=function(e){return M(this,e).has(e)},z.prototype.set=function(e,t){return M(this,e).set(e,t),this},I.prototype.add=I.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},I.prototype.has=function(e){return this.__data__.has(e)};var F=B&&1/d(new B([,-0]))[1]==1/0?function(e){return new B(e)}:function(){};function M(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function N(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return R(n)?n:void 0}function L(e){return q(e)||function(e){return H(e)&&w.call(e,"callee")&&(!S.call(e,"callee")||"[object Arguments]"==x.call(e))}(e)||!!(A&&e&&e[A])}var U,$,G=(U=function(e){var t,n,r=(n=(t=e)?t.length:0)?t[n-1]:void 0;return H(r)&&(r=void 0),function(e,t,n){var r=-1,o=u,i=e.length,a=!0,s=[],l=s;if(n)a=!1,o=c;else if(i>=200){var p=t?null:F(e);if(p)return d(p);a=!1,o=f,l=new I}else l=t?[]:s;e:for(;++r<i;){var h=e[r],m=t?t(h):h;if(h=n||0!==h?h:0,a&&m==m){for(var y=l.length;y--;)if(l[y]===m)continue e;t&&l.push(m),s.push(h)}else o(l,m,n)||(l!==s&&l.push(m),s.push(h))}return s}(function e(t,n,r,o,i){var a=-1,u=t.length;for(r||(r=L),i||(i=[]);++a<u;){var c=t[a];n>0&&r(c)?n>1?e(c,n-1,r,o,i):s(i,c):o||(i[i.length]=c)}return i}(e,1,H,!0),void 0,r)},$=O(void 0===$?U.length-1:$,0),function(){for(var e=arguments,t=-1,n=O(e.length-$,0),r=Array(n);++t<n;)r[t]=e[$+t];t=-1;for(var o=Array($+1);++t<$;)o[t]=e[t];return o[$]=r,a(U,this,o)});var q=Array.isArray;function J(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}(e.length)&&!W(e)}function H(e){return function(e){return!!e&&"object"==typeof e}(e)&&J(e)}function W(e){var t=Q(e)?x.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}function Q(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}e.exports=G}).call(this,n(33))},function(e){e.exports=JSON.parse('{"drawer":"Show menu drawer","profile":"Profile","connectedDevices":"Connected devices","storage":"Storage","storage_phrase":"%{diskUsage} GB of %{diskQuota} GB used","view_offers":"View offers","view_my_offer":"My offer","help":"Help","logout":"Sign out","soon":"soon","error_UnavailableStack":"The stack is unreachable (connection timed-out).","error_UnauthorizedStack":"Some permissions are missing, the application can\'t access the requested resource on the stack.","no_apps":"No applications found on the Cozy.","menu":{"apps":"Apps","settings":"Settings","home_mobile":"Back to home...","home":"Back to home","home_title":"Home"},"Categories":{"cozy":"Cozy apps","partners":"Partners apps","ptnb":"expPTNB","others":"Other apps"},"claudy":{"title":"How to drive your Cozy?"},"searchbar":{"placeholder":"Search anything","empty":"No result has been found for the query “%{query}”"},"permsModal":{"title":"Access your whole Cozy from your application","description":"Authorize %{app} to display your Cozy applications on this device","button":"Authorize access"},"comingSoon":{"store":{"title":"The Store application will be available soon in your Cozy.","description":"Thanks to Cozy Store you will be able to install the applications that you want in your Cozy."}},"banner":{"tos-updated":{"description":"To comply with the GDPR, Cozy Cloud has updated its Terms of Services that have taken effect on May 25, 2018","CTA":"Read now"}}}')},function(e){e.exports=JSON.parse('{"drawer":"Afficher le menu latéral","profile":"Profil","connectedDevices":"Appareils connectés","storage":"Espace disque","storage_phrase":"%{diskUsage} Go sur %{diskQuota} Go","view_offers":"Voir les offres","view_my_offer":"Mon offre","help":"Aide","logout":"Déconnexion","soon":"à venir","error_UnavailableStack":"Connexion à la stack impossible (connection timed-out)","error_UnauthorizedStack":"Des permissions sont manquante, l\'application ne peut accéder aux ressources demandées.","no_apps":"Pas d\'applications Cozy trouvées.","menu":{"apps":"Applications","settings":"Paramètres","home_mobile":"Retour à l\'accueil...","home":"Retour à l\'accueil","home_title":"Accueil "},"Categories":{"cozy":"Apps Cozy","partners":"Expérimentation MesInfos","ptnb":"Expérimentation Carnet du logement","others":"Autres apps"},"claudy":{"title":"Comment utiliser votre Cozy ?"},"searchbar":{"placeholder":"Rechercher","empty":"Aucun résultat trouvé pour la requête \\"%{query}\\""},"permsModal":{"title":"Accéder à ton Cozy à partir de ton application","description":"Autoriser %{app} à afficher les applications de ton Cozy sur cet appareil","button":"Autoriser l\'accès"},"comingSoon":{"store":{"title":"L\'application Store sera bientôt disponible dans votre Cozy","description":"Grâce à cozy Store vous pourrez installer les applications que vous souhaitez sur votre Cozy."}},"banner":{"tos-updated":{"description":"Dans le cadre du RGPD, Cozy Cloud met à jour ses Conditions Générales d\'Utilisation qui ont pris effet le 25 Mai 2018","CTA":"Lire maintenant"}}}')},function(e){e.exports=JSON.parse('{"drawer":"Mostrar el menu lateral","profile":"Perfil","connectedDevices":"Aparatos conectados","storage":"Espacio en el disco","storage_phrase":"%{diskUsage} Go de %{diskQuota} Go","view_offers":"Ver ofertas","view_my_offer":"Mi oferta","help":"Ayuda","logout":"Desconectar","soon":"pronto","error_UnavailableStack":"Conexión a la stack imposible ( se agotó el tiempo para la conexión ).","error_UnauthorizedStack":"Faltan algunos permisos, la aplicación no puede acceder a los recursos solicitados.","no_apps":"No se han encontrado aplicaciones en su Cozy.","menu":{"apps":"Aplicaciones","settings":"Parámetros","home_mobile":"Regresar a Inicio...","home":"Regresar a Inicio","home_title":"Inicio"},"Categories":{"cozy":"Aplicaciones Cozy","partners":"Aplicaciones de asociados","ptnb":"expPTNB","others":"Otras aplicaciones"},"claudy":{"title":"¿Cómo utilizar su Cozy?"},"searchbar":{"placeholder":"Buscar","empty":"No se ha encontrado ningún resultado para su consulta “%{query}”"},"permsModal":{"title":"Acceder a su Cozy desde su aplicación","description":"Autorizar a %{app} para mostrar sus aplicaciones Cozy en este aparato","button":"Autorizar el acceso"},"comingSoon":{"store":{"title":"En breve, la aplicación Store estará disponible en su Cozy","description":"Gracias a Cozy Store usted podrá instalar en su Cozy las aplicaciones que desee."}},"banner":{"tos-updated":{"description":"Para cumplir con el RGPD, Cozy Cloud ha actualizado sus Condiciones de utilización que entraron en vigor desde el 25 de mayo de 2018.","CTA":"Leerlo ahora"}}}')},function(e,t,n){var r=n(455),o=n(460),i=n(241),a=n(55),u=n(463),c=n(90);var s={M:function(e){return e.getMonth()+1},MM:function(e){return d(e.getMonth()+1,2)},Q:function(e){return Math.ceil((e.getMonth()+1)/3)},D:function(e){return e.getDate()},DD:function(e){return d(e.getDate(),2)},DDD:function(e){return r(e)},DDDD:function(e){return d(r(e),3)},d:function(e){return e.getDay()},E:function(e){return e.getDay()||7},W:function(e){return o(e)},WW:function(e){return d(o(e),2)},YY:function(e){return d(e.getFullYear(),4).substr(2)},YYYY:function(e){return d(e.getFullYear(),4)},GG:function(e){return String(i(e)).substr(2)},GGGG:function(e){return i(e)},H:function(e){return e.getHours()},HH:function(e){return d(e.getHours(),2)},h:function(e){var t=e.getHours();return 0===t?12:t>12?t%12:t},hh:function(e){return d(s.h(e),2)},m:function(e){return e.getMinutes()},mm:function(e){return d(e.getMinutes(),2)},s:function(e){return e.getSeconds()},ss:function(e){return d(e.getSeconds(),2)},S:function(e){return Math.floor(e.getMilliseconds()/100)},SS:function(e){return d(Math.floor(e.getMilliseconds()/10),2)},SSS:function(e){return d(e.getMilliseconds(),3)},Z:function(e){return f(e.getTimezoneOffset(),":")},ZZ:function(e){return f(e.getTimezoneOffset())},X:function(e){return Math.floor(e.getTime()/1e3)},x:function(e){return e.getTime()}};function l(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|]$/g,""):e.replace(/\\/g,"")}function f(e,t){t=t||"";var n=e>0?"-":"+",r=Math.abs(e),o=r%60;return n+d(Math.floor(r/60),2)+t+d(o,2)}function d(e,t){for(var n=Math.abs(e).toString();n.length<t;)n="0"+n;return n}e.exports=function(e,t,n){var r=t?String(t):"YYYY-MM-DDTHH:mm:ss.SSSZ",o=(n||{}).locale,i=c.format.formatters,f=c.format.formattingTokensRegExp;o&&o.format&&o.format.formatters&&(i=o.format.formatters,o.format.formattingTokensRegExp&&(f=o.format.formattingTokensRegExp));var d=a(e);return u(d)?function(e,t,n){var r,o,i=e.match(n),a=i.length;for(r=0;r<a;r++)o=t[i[r]]||s[i[r]],i[r]=o||l(i[r]);return function(e){for(var t="",n=0;n<a;n++)i[n]instanceof Function?t+=i[n](e,s):t+=i[n];return t}}(r,i,f)(d):"Invalid Date"}},function(e,t,n){"use strict";e.exports=n(673).default},function(e,t,n){(function(t){var n=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,i=/^0o[0-7]+$/i,a=parseInt,u="object"==typeof t&&t&&t.Object===Object&&t,c="object"==typeof self&&self&&self.Object===Object&&self,s=u||c||Function("return this")(),l=Object.prototype.toString,f=Math.max,d=Math.min,p=function(){return s.Date.now()};function h(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function m(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==l.call(e)}(e))return NaN;if(h(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=h(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(n,"");var u=o.test(e);return u||i.test(e)?a(e.slice(2),u?2:8):r.test(e)?NaN:+e}e.exports=function(e,t,n){var r,o,i,a,u,c,s=0,l=!1,y=!1,v=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function g(t){var n=r,i=o;return r=o=void 0,s=t,a=e.apply(i,n)}function b(e){return s=e,u=setTimeout(x,t),l?g(e):a}function w(e){var n=e-c;return void 0===c||n>=t||n<0||y&&e-s>=i}function x(){var e=p();if(w(e))return C(e);u=setTimeout(x,function(e){var n=t-(e-c);return y?d(n,i-(e-s)):n}(e))}function C(e){return u=void 0,v&&r?g(e):(r=o=void 0,a)}function k(){var e=p(),n=w(e);if(r=arguments,o=this,c=e,n){if(void 0===u)return b(c);if(y)return u=setTimeout(x,t),g(c)}return void 0===u&&(u=setTimeout(x,t)),a}return t=m(t)||0,h(n)&&(l=!!n.leading,i=(y="maxWait"in n)?f(m(n.maxWait)||0,t):i,v="trailing"in n?!!n.trailing:v),k.cancel=function(){void 0!==u&&clearTimeout(u),s=0,r=c=o=u=void 0},k.flush=function(){return void 0===u?a:C(p())},k}}).call(this,n(33))},function(e,t,n){var r=n(63),o=0;e.exports=function(e){var t=++o;return r(e)+t}},function(e,t,n){(t=e.exports=n(70)(!0)).push([e.i,"html{--zIndex-below:-1;--zIndex-app:0;--zIndex-low:1;--zIndex-alertMobile:10;--zIndex-nav:20;--zIndex-bar:21;--zIndex-selection:30;--zIndex-popover:40;--zIndex-overlay:50;--zIndex-fileActionMenu:60;--zIndex-drawer:60;--zIndex-modal:70;--zindex-alert:80}.cozy-ui-bar-c-overlay--3097A{z-index:50;position:fixed;top:0;left:0;height:100%;width:100%;background:var(--overlay);visibility:visible;transition:opacity .3s,visibility 0s ease-out}","",{version:3,sources:["/home/anc/cozy/cozy-bar/node_modules/cozy-ui/react/Overlay/node_modules/cozy-ui/stylus/settings/z-index.styl","/home/anc/cozy/cozy-bar/node_modules/cozy-ui/react/Overlay/styles.styl","/home/anc/cozy/cozy-bar/node_modules/cozy-ui/react/Overlay/node_modules/cozy-ui/stylus/components/overlay.styl"],names:[],mappings:"AAsDA,KACI,kBACA,eACA,eACA,wBACA,gBACA,gBACA,sBACA,oBACA,oBACA,2BACA,mBACA,kBACA,iBCrDJ,CCZA,8BACI,WACA,eACA,MACA,OACA,YACA,WACA,0BACA,mBACA,6CDcJ,CAAA",file:"styles.styl",sourcesContent:["/*------------------------------------*\\\n Please, edit this file properly, with a 10 based incrementation,\n and keep things in order so it remains easily readable.\n\n How to use: just import this file in your component's style and call\n the related variable\n e.g.\n .my-app\n z-index $app-index\n\\*------------------------------------*/\n\n/*\n Z-Index\n\n List of every z-index related to components in order to keep a clean\n & maintainable order of indexes.\n\n Those indexes are 10 based so you can deal with extra layers using `$index + 1`\n\n $below-index - **index -1** Layer below the app, mostly for hiding purpose\n $app-index - **index 0** App index, the ground zero.\n $low-index - **index 1** Low level index, to make sure a positionned element goes over elements with z-index 0.\n $alert-index-mobile - **index 10** Alert index like success, errors, infos *mobile only*\n $nav-index - **index 20** Nav index\n $bar-index - **index 21** Bar index equals Nav index + 1, not actually used, just as reference.\n $selection-index - **index 30** Selection bar index, with actions for selected items\n $popover-index - **index 40** Popover index used by dropdown menu for example\n $overlay - **index 50** Overlay index for modals background\n $file-action-menu - **index 60** File action menu index *mobile only*\n $modal-index - **index 70** Modal index\n $modal-footer-index - **index 71** Modal footer index\n $modal-toolbar-index - **index 72** Modal toolbar index\n $alert-index - **index 80** Alert index such as success, errors, infos\n\n Styleguide Settings.z-index\n*/\n\n$below-index = -1\n$app-index = 0\n$low-index = 1\n$alert-index-mobile = 10\n$nav-index = 20\n$bar-index = $nav-index + 1 // Not actually used, just as reference\n$selection-index = 30\n$popover-index = 40\n$overlay-index = 50\n$file-action-menu = 60 // replaced by $drawer-index\n$drawer-index = 60\n$modal-index = 70\n$modal-footer-index = $modal-index + 1\n$modal-toolbar-index = $modal-footer-index + 1\n$alert-index = 80\n\n// @stylint off\nhtml\n --zIndex-below $below-index\n --zIndex-app $app-index\n --zIndex-low $low-index\n --zIndex-alertMobile $alert-index-mobile\n --zIndex-nav $nav-index\n --zIndex-bar $bar-index\n --zIndex-selection $selection-index\n --zIndex-popover $popover-index\n --zIndex-overlay $overlay-index\n --zIndex-fileActionMenu $file-action-menu\n --zIndex-drawer $drawer-index\n --zIndex-modal $modal-index\n --zindex-alert $alert-index\n// @stylint on\n\n","html {\n --zIndex-below: -1;\n --zIndex-app: 0;\n --zIndex-low: 1;\n --zIndex-alertMobile: 10;\n --zIndex-nav: 20;\n --zIndex-bar: 21;\n --zIndex-selection: 30;\n --zIndex-popover: 40;\n --zIndex-overlay: 50;\n --zIndex-fileActionMenu: 60;\n --zIndex-drawer: 60;\n --zIndex-modal: 70;\n --zindex-alert: 80;\n}\n.c-overlay {\n z-index: 50;\n position: fixed;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%;\n background: var(--overlay);\n visibility: visible;\n transition: opacity 0.3s, visibility 0s ease-out;\n}\n","@require '../settings/z-index'\n\n$overlay\n z-index $overlay-index\n position fixed\n top 0\n left 0\n height 100%\n width 100%\n background var(--overlay)\n visibility visible\n transition opacity .3s, visibility 0s ease-out\n"],sourceRoot:""}]),t.locals={"c-overlay":"cozy-ui-bar-c-overlay--3097A"}},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o.default}});var o=r(n(684))},function(e,t,n){(function(e){!function(t){"use strict";function n(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}function r(e,t){Object.defineProperty(this,"kind",{value:e,enumerable:!0}),t&&t.length&&Object.defineProperty(this,"path",{value:t,enumerable:!0})}function o(e,t,n){o.super_.call(this,"E",e),Object.defineProperty(this,"lhs",{value:t,enumerable:!0}),Object.defineProperty(this,"rhs",{value:n,enumerable:!0})}function i(e,t){i.super_.call(this,"N",e),Object.defineProperty(this,"rhs",{value:t,enumerable:!0})}function a(e,t){a.super_.call(this,"D",e),Object.defineProperty(this,"lhs",{value:t,enumerable:!0})}function u(e,t,n){u.super_.call(this,"A",e),Object.defineProperty(this,"index",{value:t,enumerable:!0}),Object.defineProperty(this,"item",{value:n,enumerable:!0})}function c(e,t,n){var r=e.slice((n||t)+1||e.length);return e.length=t<0?e.length+t:t,e.push.apply(e,r),e}function s(e){var t=void 0===e?"undefined":k(e);return"object"!==t?t:e===Math?"math":null===e?"null":Array.isArray(e)?"array":"[object Date]"===Object.prototype.toString.call(e)?"date":"function"==typeof e.toString&&/^\/.*\//.test(e.toString())?"regexp":"object"}function l(e,t,n,r,f,d,p){p=p||[];var h=(f=f||[]).slice(0);if(void 0!==d){if(r){if("function"==typeof r&&r(h,d))return;if("object"===(void 0===r?"undefined":k(r))){if(r.prefilter&&r.prefilter(h,d))return;if(r.normalize){var m=r.normalize(h,d,e,t);m&&(e=m[0],t=m[1])}}}h.push(d)}"regexp"===s(e)&&"regexp"===s(t)&&(e=e.toString(),t=t.toString());var y=void 0===e?"undefined":k(e),v=void 0===t?"undefined":k(t),g="undefined"!==y||p&&p[p.length-1].lhs&&p[p.length-1].lhs.hasOwnProperty(d),b="undefined"!==v||p&&p[p.length-1].rhs&&p[p.length-1].rhs.hasOwnProperty(d);if(!g&&b)n(new i(h,t));else if(!b&&g)n(new a(h,e));else if(s(e)!==s(t))n(new o(h,e,t));else if("date"===s(e)&&e-t!=0)n(new o(h,e,t));else if("object"===y&&null!==e&&null!==t)if(p.filter((function(t){return t.lhs===e})).length)e!==t&&n(new o(h,e,t));else{if(p.push({lhs:e,rhs:t}),Array.isArray(e)){var w;for(e.length,w=0;w<e.length;w++)w>=t.length?n(new u(h,w,new a(void 0,e[w]))):l(e[w],t[w],n,r,h,w,p);for(;w<t.length;)n(new u(h,w,new i(void 0,t[w++])))}else{var x=Object.keys(e),C=Object.keys(t);x.forEach((function(o,i){var a=C.indexOf(o);a>=0?(l(e[o],t[o],n,r,h,o,p),C=c(C,a)):l(e[o],void 0,n,r,h,o,p)})),C.forEach((function(e){l(void 0,t[e],n,r,h,e,p)}))}p.length=p.length-1}else e!==t&&("number"===y&&isNaN(e)&&isNaN(t)||n(new o(h,e,t)))}function f(e,t,n,r){return r=r||[],l(e,t,(function(e){e&&r.push(e)}),n),r.length?r:void 0}function d(e,t,n){if(e&&t&&n&&n.kind){for(var r=e,o=-1,i=n.path?n.path.length-1:0;++o<i;)void 0===r[n.path[o]]&&(r[n.path[o]]="number"==typeof n.path[o]?[]:{}),r=r[n.path[o]];switch(n.kind){case"A":!function e(t,n,r){if(r.path&&r.path.length){var o,i=t[n],a=r.path.length-1;for(o=0;o<a;o++)i=i[r.path[o]];switch(r.kind){case"A":e(i[r.path[o]],r.index,r.item);break;case"D":delete i[r.path[o]];break;case"E":case"N":i[r.path[o]]=r.rhs}}else switch(r.kind){case"A":e(t[n],r.index,r.item);break;case"D":t=c(t,n);break;case"E":case"N":t[n]=r.rhs}return t}(n.path?r[n.path[o]]:r,n.index,n.item);break;case"D":delete r[n.path[o]];break;case"E":case"N":r[n.path[o]]=n.rhs}}}function p(e){return"color: "+A[e].color+"; font-weight: bold"}function h(e,t,n,r){var o=f(e,t);try{r?n.groupCollapsed("diff"):n.group("diff")}catch(e){n.log("diff")}o?o.forEach((function(e){var t=e.kind,r=function(e){var t=e.kind,n=e.path,r=e.lhs,o=e.rhs,i=e.index,a=e.item;switch(t){case"E":return[n.join("."),r,"→",o];case"N":return[n.join("."),o];case"D":return[n.join(".")];case"A":return[n.join(".")+"["+i+"]",a];default:return[]}}(e);n.log.apply(n,["%c "+A[t].text,p(t)].concat(S(r)))})):n.log("—— no diff ——");try{n.groupEnd()}catch(e){n.log("—— diff end —— ")}}function m(e,t,n,r){switch(void 0===e?"undefined":k(e)){case"object":return"function"==typeof e[r]?e[r].apply(e,S(n)):e[r];case"function":return e(t);default:return e}}function y(e,t){var n=t.logger,r=t.actionTransformer,o=t.titleFormatter,i=void 0===o?function(e){var t=e.timestamp,n=e.duration;return function(e,r,o){var i=["action"];return i.push("%c"+String(e.type)),t&&i.push("%c@ "+r),n&&i.push("%c(in "+o.toFixed(2)+" ms)"),i.join(" ")}}(t):o,a=t.collapsed,u=t.colors,c=t.level,s=t.diff,l=void 0===t.titleFormatter;e.forEach((function(o,f){var d=o.started,p=o.startedTime,y=o.action,v=o.prevState,g=o.error,b=o.took,w=o.nextState,C=e[f+1];C&&(w=C.prevState,b=C.started-d);var k=r(y),S="function"==typeof a?a((function(){return w}),y,o):a,_=x(p),A=u.title?"color: "+u.title(k)+";":"",O=["color: gray; font-weight: lighter;"];O.push(A),t.timestamp&&O.push("color: gray; font-weight: lighter;"),t.duration&&O.push("color: gray; font-weight: lighter;");var E=i(k,_,b);try{S?u.title&&l?n.groupCollapsed.apply(n,["%c "+E].concat(O)):n.groupCollapsed(E):u.title&&l?n.group.apply(n,["%c "+E].concat(O)):n.group(E)}catch(e){n.log(E)}var B=m(c,k,[v],"prevState"),j=m(c,k,[k],"action"),P=m(c,k,[g,v],"error"),T=m(c,k,[w],"nextState");if(B)if(u.prevState){var z="color: "+u.prevState(v)+"; font-weight: bold";n[B]("%c prev state",z,v)}else n[B]("prev state",v);if(j)if(u.action){var I="color: "+u.action(k)+"; font-weight: bold";n[j]("%c action ",I,k)}else n[j]("action ",k);if(g&&P)if(u.error){var D="color: "+u.error(g,v)+"; font-weight: bold;";n[P]("%c error ",D,g)}else n[P]("error ",g);if(T)if(u.nextState){var R="color: "+u.nextState(w)+"; font-weight: bold";n[T]("%c next state",R,w)}else n[T]("next state",w);s&&h(v,w,n,S);try{n.groupEnd()}catch(e){n.log("—— log end ——")}}))}function v(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object.assign({},O,e),n=t.logger,r=t.stateTransformer,o=t.errorTransformer,i=t.predicate,a=t.logErrors,u=t.diffPredicate;if(void 0===n)return function(){return function(e){return function(t){return e(t)}}};if(e.getState&&e.dispatch)return console.error("[redux-logger] redux-logger not installed. Make sure to pass logger instance as middleware:\n// Logger with default options\nimport { logger } from 'redux-logger'\nconst store = createStore(\n reducer,\n applyMiddleware(logger)\n)\n// Or you can create your own logger with custom options http://bit.ly/redux-logger-options\nimport createLogger from 'redux-logger'\nconst logger = createLogger({\n // ...options\n});\nconst store = createStore(\n reducer,\n applyMiddleware(logger)\n)\n"),function(){return function(e){return function(t){return e(t)}}};var c=[];return function(e){var n=e.getState;return function(e){return function(s){if("function"==typeof i&&!i(n,s))return e(s);var l={};c.push(l),l.started=C.now(),l.startedTime=new Date,l.prevState=r(n()),l.action=s;var f=void 0;if(a)try{f=e(s)}catch(e){l.error=o(e)}else f=e(s);l.took=C.now()-l.started,l.nextState=r(n());var d=t.diff&&"function"==typeof u?u(n,s):t.diff;if(y(c,Object.assign({},t,{diff:d})),c.length=0,l.error)throw l.error;return f}}}}var g,b,w=function(e,t){return function(e,t){return new Array(t+1).join(e)}("0",t-e.toString().length)+e},x=function(e){return w(e.getHours(),2)+":"+w(e.getMinutes(),2)+":"+w(e.getSeconds(),2)+"."+w(e.getMilliseconds(),3)},C="undefined"!=typeof performance&&null!==performance&&"function"==typeof performance.now?performance:Date,k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},S=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)},_=[];g="object"===(void 0===e?"undefined":k(e))&&e?e:"undefined"!=typeof window?window:{},(b=g.DeepDiff)&&_.push((function(){void 0!==b&&g.DeepDiff===f&&(g.DeepDiff=b,b=void 0)})),n(o,r),n(i,r),n(a,r),n(u,r),Object.defineProperties(f,{diff:{value:f,enumerable:!0},observableDiff:{value:l,enumerable:!0},applyDiff:{value:function(e,t,n){e&&t&&l(e,t,(function(r){n&&!n(e,t,r)||d(e,t,r)}))},enumerable:!0},applyChange:{value:d,enumerable:!0},revertChange:{value:function(e,t,n){if(e&&t&&n&&n.kind){var r,o,i=e;for(o=n.path.length-1,r=0;r<o;r++)void 0===i[n.path[r]]&&(i[n.path[r]]={}),i=i[n.path[r]];switch(n.kind){case"A":!function e(t,n,r){if(r.path&&r.path.length){var o,i=t[n],a=r.path.length-1;for(o=0;o<a;o++)i=i[r.path[o]];switch(r.kind){case"A":e(i[r.path[o]],r.index,r.item);break;case"D":case"E":i[r.path[o]]=r.lhs;break;case"N":delete i[r.path[o]]}}else switch(r.kind){case"A":e(t[n],r.index,r.item);break;case"D":case"E":t[n]=r.lhs;break;case"N":t=c(t,n)}return t}(i[n.path[r]],n.index,n.item);break;case"D":case"E":i[n.path[r]]=n.lhs;break;case"N":delete i[n.path[r]]}}},enumerable:!0},isConflict:{value:function(){return void 0!==b},enumerable:!0},noConflict:{value:function(){return _&&(_.forEach((function(e){e()})),_=null),f},enumerable:!0}});var A={E:{color:"#2196F3",text:"CHANGED:"},N:{color:"#4CAF50",text:"ADDED:"},D:{color:"#F44336",text:"DELETED:"},A:{color:"#2196F3",text:"ARRAY:"}},O={level:"log",logger:console,logErrors:!0,collapsed:void 0,predicate:void 0,duration:!1,timestamp:!0,stateTransformer:function(e){return e},actionTransformer:function(e){return e},errorTransformer:function(e){return e},colors:{title:function(){return"inherit"},prevState:function(){return"#9E9E9E"},action:function(){return"#03A9F4"},nextState:function(){return"#4CAF50"},error:function(){return"#F20404"}},diff:!1,diffPredicate:void 0,transformer:void 0},E=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.dispatch,n=e.getState;return"function"==typeof t||"function"==typeof n?v()({dispatch:t,getState:n}):void console.error("\n[redux-logger v3] BREAKING CHANGE\n[redux-logger v3] Since 3.0.0 redux-logger exports by default logger with default settings.\n[redux-logger v3] Change\n[redux-logger v3] import createLogger from 'redux-logger'\n[redux-logger v3] to\n[redux-logger v3] import { createLogger } from 'redux-logger'\n")};t.defaults=O,t.createLogger=v,t.logger=E,t.default=E,Object.defineProperty(t,"__esModule",{value:!0})}(t)}).call(this,n(33))},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(743),i=(r=o)&&r.__esModule?r:{default:r};t.default=(0,i.default)("local")},function(e){e.exports=JSON.parse('["apps","context"]')},,,,function(e,t,n){var r=function(e){"use strict";var t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var o=t&&t.prototype instanceof f?t:f,i=Object.create(o.prototype),a=new k(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return _()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var u=w(a,n);if(u){if(u===l)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=s(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===l)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(e,n,a),i}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var l={};function f(){}function d(){}function p(){}var h={};h[o]=function(){return this};var m=Object.getPrototypeOf,y=m&&m(m(S([])));y&&y!==t&&n.call(y,o)&&(h=y);var v=p.prototype=f.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){var r;this._invoke=function(o,i){function a(){return new t((function(r,a){!function r(o,i,a,u){var c=s(e[o],e,i);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,u)}),(function(e){r("throw",e,a,u)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,u)}))}u(c.arg)}(o,i,r,a)}))}return r=r?r.then(a,a):a()}}function w(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=s(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:_}}function _(){return{value:void 0,done:!0}}return d.prototype=v.constructor=p,p.constructor=d,d.displayName=u(p,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,u(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},g(b.prototype),b.prototype[i]=function(){return this},e.AsyncIterator=b,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new b(c(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(v),u(v,a,"Generator"),v[o]=function(){return this},v.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=S,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,l):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;C(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}(e.exports);try{regeneratorRuntime=r}catch(e){Function("r","regeneratorRuntime = r")(r)}},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.getDeviceName=void 0;var o=r(n(350)),i=n(103),a=n(147),u=n(144);t.getDeviceName=function(){if(!(0,a.hasDevicePlugin)())return(0,i.isCordova)()&&console.warn("You should install `cordova-plugin-device`."),"Device";var e=window.device,t=e.manufacturer,n=e.model,r=(0,u.isIOSApp)()?function(e){for(var t=0,n=["iPhone","iPad","Watch","AppleTV"];t<n.length;t++){var r=n[t];if(e.match(new RegExp(r)))return r}return"Device"}(n):n;return"".concat((0,o.default)(t)," ").concat(r)}},function(e,t,n){var r=n(63),o=n(353);e.exports=function(e){return o(r(e).toLowerCase())}},function(e,t,n){var r=n(64),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,u=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,u),n=e[u];try{e[u]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[u]=n:delete e[u]),o}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t,n){var r=n(354)("toUpperCase");e.exports=r},function(e,t,n){var r=n(208),o=n(146),i=n(210),a=n(63);e.exports=function(e){return function(t){t=a(t);var n=o(t)?i(t):void 0,u=n?n[0]:t.charAt(0),c=n?r(n,1).join(""):t.slice(1);return u[e]()+c}}},function(e,t){e.exports=function(e){return e.split("")}},function(e,t){var n="[\\ud800-\\udfff]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\\ud83c[\\udffb-\\udfff]",i="[^\\ud800-\\udfff]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",u="[\\ud800-\\udbff][\\udc00-\\udfff]",c="(?:"+r+"|"+o+")"+"?",s="[\\ufe0e\\ufe0f]?"+c+("(?:\\u200d(?:"+[i,a,u].join("|")+")[\\ufe0e\\ufe0f]?"+c+")*"),l="(?:"+[i+r+"?",r,a,u,n].join("|")+")",f=RegExp(o+"(?="+o+")|"+l+s,"g");e.exports=function(e){return e.match(f)||[]}},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.startApp=t.default=t.checkApp=void 0;var o=r(n(7)),i=r(n(9)),a=n(144),u=function(){return window.startApp},c=function(e){var t=e.appId,n=e.uri;return(0,a.isAndroidApp)()?{package:t}:n},s={},l=s.startApp=function(){var e=(0,i.default)(o.default.mark((function e(t){var n,r;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=window.startApp,e.next=3,s.checkApp(t);case 3:if(!e.sent){e.next=9;break}return r=c(t),e.abrupt("return",new Promise((function(e,t){u()?n.set(r).start(e,t):t(new Error("Cordova plugin 'com.lampa.startapp' is not installed. This plugin is needed to start a native app. Required by cozy-bar"))})));case 9:return e.abrupt("return",!1);case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();t.startApp=l;var f=s.checkApp=function(){var e=(0,i.default)(o.default.mark((function e(t){var n,r;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=window.startApp,r=c(t),e.abrupt("return",new Promise((function(e,t){u()?n.set(r).check((function(t){e("OK"===t||t)}),(function(n){!1===n||0===n.indexOf("NameNotFoundException")?e(!1):t(n)})):t(new Error("Cordova plugin 'com.lampa.startapp' is not installed."))})));case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();t.checkApp=f;var d=s;t.default=d},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.nativeLinkOpen=void 0;var o=r(n(7)),i=r(n(9)),a=n(147),u=function(){var e=(0,i.default)(o.default.mark((function e(t){var n;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.url,e.next=3,(0,a.hasSafariPlugin)();case 3:if(e.t0=e.sent,!e.t0){e.next=6;break}e.t0=window.SafariViewController;case 6:if(!e.t0){e.next=10;break}window.SafariViewController.show({url:n,transition:"curl"},(function(e){"closed"===e.event&&window.SafariViewController.hide()}),(function(){window.SafariViewController.hide()})),e.next=11;break;case 10:(0,a.hasInAppBrowserPlugin)()?("_blank","clearcache=yes,zoom=no",window.cordova.InAppBrowser.open(n,"_blank","clearcache=yes,zoom=no")):window.location=n;case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();t.nativeLinkOpen=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.openDeeplinkOrRedirect=void 0;var r=function(e,t){var n=Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,5);window.addEventListener("blur",i);var r=function(e,t,n){var r=document.createElement("iframe");return r.src=t,r.id="hiddenIframe_".concat(n),r.style.display="none",e.appendChild(r),r}(document.body,"about:blank",n),o=setTimeout((function(){t(),window.removeEventListener("blur",i),r.parentElement.removeChild(r)}),500);function i(){clearTimeout(o),window.removeEventListener("blur",i),r.parentElement.removeChild(r)}r.contentWindow.location.href=e};t.openDeeplinkOrRedirect=function(e,t){if(navigator.msLaunchUri)!function(e,t){navigator.msLaunchUri(e,void 0,t)}(e,t);else{var n=(o=!!window.opera||navigator.userAgent.indexOf(" OPR/")>=0,i=navigator.userAgent.toLowerCase(),a=i.includes("safari")&&!i.includes("chrome")||Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor")>0,u=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,c=u&&(i.includes("os 12_2")||i.includes("os 12_3")),{isOpera:o,isFirefox:"undefined"!=typeof InstallTrigger,isSafari:a,isChrome:!!window.chrome&&!o,isIOS122:c,isIOS:u});n.isChrome||n.isIOS&&!n.isIOS122?function(e,t){for(var n=setTimeout((function(){t(),r.removeEventListener("blur",o)}),500),r=window;r!=r.parent;)r=r.parent;function o(){clearTimeout(n),r.removeEventListener("blur",o)}r.addEventListener("blur",o),window.location=e}(e,t):n.isSafari&&!n.isIOS122||n.isFirefox?r(e,t):t()}var o,i,a,u,c}},function(e,t,n){"use strict";var r=n(20),o=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(7)),a=o(n(9)),u=o(n(4)),c=o(n(6)),s=r(n(361)),l=r(n(364)),f=o(n(365)),d=n(148),p=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.client;(0,u.default)(this,e),this.request=new f.default(n),this.create=this.create.bind(this)}var t,n;return(0,c.default)(e,[{key:"create",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];if(!e)throw new Error('Misformed intent, "action" property must be provided');if(!t)throw new Error('Misformed intent, "type" property must be provided');var i=this.request.post(e,t,r,o);return i.start=function(e,t){var o,a={filteredServices:r.filteredServices,onReadyCallback:t};delete r.filteredServices;var u=i.then((function(t){return o=s.start(n.create,t,e,r,a)}));return u.stop=function(){o&&o.destroy()},u},i}},{key:"createService",value:function(e,t){return l.start(this.request)(e,t)}},{key:"getRedirectionURL",value:(n=(0,a.default)(i.default.mark((function e(t,n){var r,o,a;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t||n){e.next=2;break}throw new Error("Cannot retrieve redirection, at least type or doc must be provided");case 2:return e.next=4,this.create("REDIRECT",t,n);case 4:return r=e.sent,o=(0,d.pickService)(r),a=(0,d.removeQueryString)(o.href),e.abrupt("return",n?(0,d.buildRedirectionURL)(a,n):a);case 8:case"end":return e.stop()}}),e,this)}))),function(e,t){return n.apply(this,arguments)})},{key:"redirect",value:(t=(0,a.default)(i.default.mark((function e(t,n,r){var o;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(window){e.next=2;break}throw new Error("redirect() method can only be called in a browser");case 2:return e.next=4,this.getRedirectionURL(t,n);case 4:if(o=e.sent,!r||"function"!=typeof r){e.next=7;break}return e.abrupt("return",r(o));case 7:window.location.href=o;case 8:case"end":return e.stop()}}),e,this)}))),function(e,n,r){return t.apply(this,arguments)})}]),e}();t.default=p},function(e,t,n){"use strict";var r=n(20),o=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.start=function e(t,n,r,o){var d,p,h=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},m=function(){p&&s.remove(p),d&&d.stopListening()},y=function(){m()},v=new Promise((function(m,v){var g=(0,c.pickService)(n,h.filterServices);p=s.insertIntentIframe(n,r,g.href,h.onReadyCallback);var b=f(g.href);(d=new l.default({intentId:n.id,origin:b,onReady:function(e){e.source.postMessage(o,e.origin)},onDone:function(e){m(e.data.document),y()},onCancel:function(){m(null),y()},onError:function(e){v(e instanceof Event?c.errorSerializer.deserialize(e.data.error):e),y()},onResize:function(e){var t=e.data,n=t.transition,o=t.dimensions;s.applyStyle(r,(0,u.default)({transition:n},o))},onExposeFrameRemoval:function(e){m({document:e.document,removeIntentIframe:function(){return s.remove(p)}})},onCompose:function(){var n=(0,a.default)(i.default.mark((function n(o){var a,c,l,f,d,h,m,y;return i.default.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return a=o.data,c=a.action,l=a.doctype,f=a.data,d=o.source,h=o.origin,n.next=4,t(c,l,f);case 4:return m=n.sent,s.hide(p),n.prev=6,n.next=9,e(t,m,r,(0,u.default)({},f,{exposeIntentFrameRemoval:!1}));case 9:y=n.sent,d.postMessage(y,h);case 11:return n.prev=11,s.show(p),n.finish(11);case 14:case"end":return n.stop()}}),n,null,[[6,,11,14]])})));return function(e){return n.apply(this,arguments)}}()})).listen()}));return v.destroy=m,v};var i=o(n(7)),a=o(n(9)),u=o(n(14)),c=n(148),s=r(n(362)),l=o(n(363)),f=function(e){return e.split("/",3).join("/")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hide=function(e){e.style.display="none"},t.show=function(e){e.style.display="block"},t.remove=function(e){if(!e.parentNode)return;e.parentNode.removeChild(e)},t.iframeFromIntent=a,t.insertIntentIframe=function(e,t,n,r){i(t);var o=a(e,t,n);"function"==typeof r&&(o.onload=r);return t.appendChild(o),o.focus(),o},t.assertOKForIntentIframe=t.applyStyle=void 0;var r=function(e){return e+"px"},o={width:r,height:r,maxWidth:r,maxHeight:r};t.applyStyle=function(e,t){Object.keys(t).forEach((function(n){var r=t[n];e.style[n]="".concat(o[n]?o[n](r):r)}))};var i=function(e){var t=e.ownerDocument;if(!t)throw console.warn("assertProperForIframe: bad node",e),new Error("Cannot retrieve document object from given node");if(!t.defaultView)throw console.warn("assertProperForIframe: bad document",t),new Error("Cannot retrieve window object from document")};function a(e,t,n){var r=t.ownerDocument;if(!r)throw new Error("Cannot retrieve document object from given node");var o=r.createElement("iframe");return o.setAttribute("id","intent-".concat(e.id)),o.setAttribute("src",n),o.classList.add("coz-intent"),o}t.assertOKForIntentIframe=i},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(4)),i=r(n(6)),a=/intent-(.*):(.*)/,u=function(){function e(t){(0,o.default)(this,e),this.state={handshaken:!1},this.options=t,this.handleMessageWrapper=this.handleMessageWrapper.bind(this)}return(0,i.default)(e,[{key:"handleMessage",value:function(e){if(e.origin===this.options.origin){var t=e.data.type;if("load"!==t){var n=a.exec(t);if(n){var r=n[1];c(r==this.options.intentId,"Invalid event id","eventId: ".concat(r," != listener eventId ").concat(this.options.intentId));var o=n[2];"ready"!==o?c(this.state.handshaken,"Unexpected handshake message from intent service"):this.state.handshaken=!0;var i=this.options["on"+s(o)];if(i)return i(e);console.warn("intents: Unhandled event ".concat(o))}else console.warn("intents: Message type ".concat(t," not matching intent format"))}else console.warn&&console.warn("Cozy Client ignored MessageEvent having data.type `load`.")}}},{key:"handleMessageWrapper",value:function(e){try{this.handleMessage(e)}catch(e){this.options.onError(e)}}},{key:"listen",value:function(){window.addEventListener("message",this.handleMessageWrapper)}},{key:"stopListening",value:function(){window.removeEventListener("message",this.handleMessageWrapper)}}]),e}();t.default=u;var c=function(e,t,n){if(!e)throw n&&console.warn(n),new Error(t)},s=function(e){return e[0].toUpperCase()+e.slice(1)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.start=void 0;var r=n(148);function o(e){e&&e.style&&(e.style.height="100%")}t.start=function(e){return function(t,n){return(n=n||"undefined"!=typeof window&&window)&&n.document?(n.addEventListener("load",(function(){var e=n.document;[e.documentElement,e.body].forEach(o)})),(t=t||n.location.search.split("=")[1])?e.get(t).then((function(e){var t=!1,o=function(r){if(t)throw new Error("Intent service has already been terminated");n.parent.postMessage(r,e.attributes.client)},i=function(t,r,i){return new Promise((function(a){n.addEventListener("message",(function t(r){if(r.origin===e.attributes.client)return n.removeEventListener("message",t),a(r.data)})),o({type:"intent-".concat(e._id,":compose"),action:t,doctype:r,data:i})}))},a=function(e){o(e),t=!0},u=function(n,r){if(t)throw new Error("Intent service has been terminated");o({type:"intent-".concat(e._id,":resize"),dimensions:n.element?Object.assign({},n,{maxHeight:n.element.clientHeight,maxWidth:n.element.clientWidth}):n,transition:r})},c=function(){a({type:"intent-".concat(e._id,":cancel")})};return n.addEventListener("unload",(function(){t||c()})),function(e,t){return new Promise((function(n){t.addEventListener("message",(function r(o){o.origin===e.attributes.client&&(t.removeEventListener("message",r),n(o.data))})),t.parent.postMessage({type:"intent-".concat(e._id,":ready")},e.attributes.client)}))}(e,n).then((function(t){return{compose:i,getData:function(){return t},getIntent:function(){return e},terminate:function(n){var r=t&&t.exposeIntentFrameRemoval?"exposeFrameRemoval":"done";return a({type:"intent-".concat(e._id,":").concat(r),document:n})},throw:function(t){return a({type:"intent-".concat(e._id,":error"),error:r.errorSerializer.serialize(t)})},resizeClient:u,cancel:c}}))})):Promise.reject(new Error("Cannot retrieve intent from URL"))):Promise.reject(new Error("Intent service should be used in browser"))}}},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(4)),i=r(n(6)),a=function(){function e(t){(0,o.default)(this,e),this.stackClient=t.stackClient}return(0,i.default)(e,[{key:"get",value:function(e){return this.stackClient.fetchJSON("GET","/intents/".concat(e)).then((function(e){var t=e.data;return t._id||(t._id=t.id),t}))}},{key:"post",value:function(e,t,n,r){return this.stackClient.fetchJSON("POST","/intents",{data:{type:"io.cozy.intents",attributes:{action:e,type:t,data:n,permissions:r}}}).then((function(e){return e.data}))}}]),e}();t.default=a},function(e,t){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}}},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(7)),i=r(n(9)),a=r(n(4)),u=r(n(6)),c=r(n(2)),s=r(n(45)),l=r(n(150)),f=function(){function e(t,n){(0,a.default)(this,e),(0,c.default)(this,"_doctype","io.cozy.websocket"),(0,c.default)(this,"_webSocket",null),(0,c.default)(this,"_url",null),(0,c.default)(this,"_token",null),this._getUrl=t,this._getToken=n,this.removeAllListeners=this.removeAllListeners.bind(this),this.on("close",this.removeAllListeners)}var t;return(0,u.default)(e,[{key:"isOpen",value:function(){return!(!this._webSocket||this._webSocket.readyState!==WebSocket.OPEN)}},{key:"isConnecting",value:function(){return!(!this._webSocket||this._webSocket.readyState!==WebSocket.CONNECTING)}},{key:"connect",value:function(){var e=this;return new Promise((function(t,n){e._webSocket=new WebSocket(e._getUrl(),e._doctype),e._webSocket.onmessage=function(t){var n=JSON.parse(t.data),r=n.event.toLowerCase(),o=n.payload,i=o.type,a=o.id,u=o.doc;e.emit("message",{type:i,id:a,eventName:r},u)},e._webSocket.onclose=function(t){return e.emit("close",t)},e._webSocket.onerror=function(t){e._webSocket=null,e.emit("error",t),n(t)},e._webSocket.onopen=function(n){e.authenticate(),e.emit("open",n),t(n)}}))}},{key:"authenticate",value:function(){this.isOpen()&&this._webSocket.send(JSON.stringify({method:"AUTH",payload:this._getToken()}))}},{key:"subscribe",value:(t=(0,i.default)(o.default.mark((function e(t,n){var r,i;return o.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.isOpen()){e.next=3;break}return e.next=3,this.connect();case 3:r=(0,l.default)({type:t,id:n}),i=JSON.stringify({method:"SUBSCRIBE",payload:r}),this._webSocket.send(i),this.emit("subscribe_".concat(t,"_").concat(n));case 7:case"end":return e.stop()}}),e,this)}))),function(e,n){return t.apply(this,arguments)})},{key:"close",value:function(){this.isOpen()?this._webSocket.close():this.removeAllListeners(),this._webSocket=null}}]),e}();s.default.mixin(f);var d=f;t.default=d},function(e,t,n){var r=n(369),o=n(409),i=n(227);e.exports=function(e){var t=o(e);return 1==t.length&&t[0][2]?i(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},function(e,t,n){var r=n(104),o=n(154);e.exports=function(e,t,n,i){var a=n.length,u=a,c=!i;if(null==e)return!u;for(e=Object(e);a--;){var s=n[a];if(c&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++a<u;){var l=(s=n[a])[0],f=e[l],d=s[1];if(c&&s[2]){if(void 0===f&&!(l in e))return!1}else{var p=new r;if(i)var h=i(f,d,l,e,t,p);if(!(void 0===h?o(d,f,3,i,p):h))return!1}}return!0}},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(106),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():o.call(t,n,1),--this.size,!0)}},function(e,t,n){var r=n(106);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},function(e,t,n){var r=n(106);e.exports=function(e){return r(this.__data__,e)>-1}},function(e,t,n){var r=n(106);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},function(e,t,n){var r=n(105);e.exports=function(){this.__data__=new r,this.size=0}},function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,n){var r=n(105),o=n(151),i=n(153);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(a)}return n.set(e,t),this.size=n.size,this}},function(e,t,n){var r=n(152),o=n(381),i=n(34),a=n(214),u=/^\[object .+?Constructor\]$/,c=Function.prototype,s=Object.prototype,l=c.toString,f=s.hasOwnProperty,d=RegExp("^"+l.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(r(e)?d:u).test(a(e))}},function(e,t,n){var r,o=n(382),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}},function(e,t,n){var r=n(39)["__core-js_shared__"];e.exports=r},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t,n){var r=n(385),o=n(105),i=n(151);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},function(e,t,n){var r=n(386),o=n(387),i=n(388),a=n(389),u=n(390);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=u,e.exports=c},function(e,t,n){var r=n(107);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(e,t){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},function(e,t,n){var r=n(107),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(t,e)?t[e]:void 0}},function(e,t,n){var r=n(107),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},function(e,t,n){var r=n(107);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},function(e,t,n){var r=n(108);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},function(e,t){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},function(e,t,n){var r=n(108);e.exports=function(e){return r(this,e).get(e)}},function(e,t,n){var r=n(108);e.exports=function(e){return r(this,e).has(e)}},function(e,t,n){var r=n(108);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},function(e,t,n){var r=n(104),o=n(215),i=n(400),a=n(402),u=n(66),c=n(26),s=n(87),l=n(114),f="[object Object]",d=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,p,h,m){var y=c(e),v=c(t),g=y?"[object Array]":u(e),b=v?"[object Array]":u(t),w=(g="[object Arguments]"==g?f:g)==f,x=(b="[object Arguments]"==b?f:b)==f,C=g==b;if(C&&s(e)){if(!s(t))return!1;y=!0,w=!1}if(C&&!w)return m||(m=new r),y||l(e)?o(e,t,n,p,h,m):i(e,t,g,n,p,h,m);if(!(1&n)){var k=w&&d.call(e,"__wrapped__"),S=x&&d.call(t,"__wrapped__");if(k||S){var _=k?e.value():e,A=S?t.value():t;return m||(m=new r),h(_,A,n,p,m)}}return!!C&&(m||(m=new r),a(e,t,n,p,h,m))}},function(e,t){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},function(e,t,n){var r=n(64),o=n(216),i=n(84),a=n(215),u=n(401),c=n(155),s=r?r.prototype:void 0,l=s?s.valueOf:void 0;e.exports=function(e,t,n,r,s,f,d){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!f(new o(e),new o(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var p=u;case"[object Set]":var h=1&r;if(p||(p=c),e.size!=t.size&&!h)return!1;var m=d.get(e);if(m)return m==t;r|=2,d.set(e,t);var y=a(p(e),p(t),r,s,f,d);return d.delete(e),y;case"[object Symbol]":if(l)return l.call(e)==l.call(t)}return!1}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},function(e,t,n){var r=n(217),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,i,a,u){var c=1&n,s=r(e),l=s.length;if(l!=r(t).length&&!c)return!1;for(var f=l;f--;){var d=s[f];if(!(c?d in t:o.call(t,d)))return!1}var p=u.get(e);if(p&&u.get(t))return p==t;var h=!0;u.set(e,t),u.set(t,e);for(var m=c;++f<l;){var y=e[d=s[f]],v=t[d];if(i)var g=c?i(v,y,d,t,e,u):i(y,v,d,e,t,u);if(!(void 0===g?y===v||a(y,v,n,i,u):g)){h=!1;break}m||(m="constructor"==d)}if(h&&!m){var b=e.constructor,w=t.constructor;b==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w||(h=!1)}return u.delete(e),u.delete(t),h}},function(e,t,n){var r=n(52),o=n(40);e.exports=function(e){return o(e)&&"[object Arguments]"==r(e)}},function(e,t){e.exports=function(){return!1}},function(e,t,n){var r=n(52),o=n(157),i=n(40),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&o(e.length)&&!!a[r(e)]}},function(e,t,n){var r=n(223)(Object.keys,Object);e.exports=r},function(e,t,n){var r=n(54)(n(39),"DataView");e.exports=r},function(e,t,n){var r=n(54)(n(39),"Promise");e.exports=r},function(e,t,n){var r=n(226),o=n(85);e.exports=function(e){for(var t=o(e),n=t.length;n--;){var i=t[n],a=e[i];t[n]=[i,a,r(a)]}return t}},function(e,t,n){var r=n(154),o=n(18),i=n(228),a=n(160),u=n(226),c=n(227),s=n(68);e.exports=function(e,t){return a(e)&&u(t)?c(s(e),t):function(n){var a=o(n,e);return void 0===a&&a===t?i(n,e):r(t,a,3)}}},function(e,t,n){var r=n(412),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,(function(e,n,r,o){t.push(r?o.replace(i,"$1"):n||e)})),t}));e.exports=a},function(e,t,n){var r=n(42);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},function(e,t){e.exports=function(e,t){return null!=e&&t in Object(e)}},function(e,t,n){var r=n(161),o=n(415),i=n(160),a=n(68);e.exports=function(e){return i(e)?r(a(e)):o(e)}},function(e,t,n){var r=n(116);e.exports=function(e){return function(t){return r(t,e)}}},function(e,t,n){var r=n(34),o=n(115),i=n(417),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=o(e),n=[];for(var u in e)("constructor"!=u||!t&&a.call(e,u))&&n.push(u);return n}},function(e,t){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},function(e,t,n){var r=n(419),o=r.enable,i=r.disable,a="undefined"!=typeof navigator&&/chrome/i.test(navigator.userAgent),u=n(421);if(r.defaultBackend=a?u.minilog:u,"undefined"!=typeof window){try{r.enable(JSON.parse(window.localStorage.minilogSettings))}catch(e){}if(window.location&&window.location.search){var c=RegExp("[?&]minilog=([^&]*)").exec(window.location.search);c&&r.enable(decodeURIComponent(c[1]))}}r.enable=function(){o.call(r,!0);try{window.localStorage.minilogSettings=JSON.stringify(!0)}catch(e){}return this},r.disable=function(){i.call(r);try{delete window.localStorage.minilogSettings}catch(e){}return this},(e.exports=r).backends={array:n(424),browser:r.defaultBackend,localStorage:n(425),jQuery:n(426)}},function(e,t,n){var r=n(48),o=n(420),i=new r,a=Array.prototype.slice;(t=e.exports=function(e){var n=function(){return i.write(e,void 0,a.call(arguments)),n};return n.debug=function(){return i.write(e,"debug",a.call(arguments)),n},n.info=function(){return i.write(e,"info",a.call(arguments)),n},n.warn=function(){return i.write(e,"warn",a.call(arguments)),n},n.error=function(){return i.write(e,"error",a.call(arguments)),n},n.log=n.debug,n.suggest=t.suggest,n.format=i.format,n}).defaultBackend=t.defaultFormatter=null,t.pipe=function(e){return i.pipe(e)},t.end=t.unpipe=t.disable=function(e){return i.unpipe(e)},t.Transform=r,t.Filter=o,t.suggest=new o,t.enable=function(){return t.defaultFormatter?i.pipe(t.suggest).pipe(t.defaultFormatter).pipe(t.defaultBackend):i.pipe(t.suggest).pipe(t.defaultBackend)}},function(e,t,n){var r=n(48),o={debug:1,info:2,warn:3,error:4};function i(){this.enabled=!0,this.defaultResult=!0,this.clear()}function a(e,t){return e.n.test?e.n.test(t):e.n==t}r.mixin(i),i.prototype.allow=function(e,t){return this._white.push({n:e,l:o[t]}),this},i.prototype.deny=function(e,t){return this._black.push({n:e,l:o[t]}),this},i.prototype.clear=function(){return this._white=[],this._black=[],this},i.prototype.test=function(e,t){var n,r=Math.max(this._white.length,this._black.length);for(n=0;n<r;n++){if(this._white[n]&&a(this._white[n],e)&&o[t]>=this._white[n].l)return!0;if(this._black[n]&&a(this._black[n],e)&&o[t]<=this._black[n].l)return!1}return this.defaultResult},i.prototype.write=function(e,t,n){if(!this.enabled||this.test(e,t))return this.emit("item",e,t,n)},e.exports=i},function(e,t,n){var r=n(48),o=/\n+$/,i=new r;i.write=function(e,t,n){var r=n.length-1;if("undefined"!=typeof console&&console.log){if(console.log.apply)return console.log.apply(console,[e,t].concat(n));if(JSON&&JSON.stringify){n[r]&&"string"==typeof n[r]&&(n[r]=n[r].replace(o,""));try{for(r=0;r<n.length;r++)n[r]=JSON.stringify(n[r])}catch(e){}console.log(n.join(" "))}}},i.formatters=["color","minilog"],i.color=n(422),i.minilog=n(423),e.exports=i},function(e,t,n){var r=n(48),o=n(234),i={debug:["cyan"],info:["purple"],warn:["yellow",!0],error:["red",!0]},a=new r;a.write=function(e,t,n){console.log;console[t]&&console[t].apply&&console[t].apply(console,["%c"+e+" %c"+t,o("gray"),o.apply(o,i[t])].concat(n))},a.pipe=function(){},e.exports=a},function(e,t,n){var r=n(48),o=n(234),i={debug:["gray"],info:["purple"],warn:["yellow",!0],error:["red",!0]},a=new r;a.write=function(e,t,n){var r=console.log;"debug"!=t&&console[t]&&(r=console[t]);var a=0;if("info"!=t){for(;a<n.length&&"string"==typeof n[a];a++);r.apply(console,["%c"+e+" "+n.slice(0,a).join(" "),o.apply(o,i[t])].concat(n.slice(a)))}else r.apply(console,["%c"+e,o.apply(o,i[t])].concat(n))},a.pipe=function(){},e.exports=a},function(e,t,n){var r=n(48),o=[],i=new r;i.write=function(e,t,n){o.push([e,t,n])},i.get=function(){return o},i.empty=function(){o=[]},e.exports=i},function(e,t,n){var r=n(48),o=!1,i=new r;i.write=function(e,t,n){if("undefined"!=typeof window&&"undefined"!=typeof JSON&&JSON.stringify&&JSON.parse)try{o||(o=window.localStorage.minilog?JSON.parse(window.localStorage.minilog):[]),o.push([(new Date).toString(),e,t,n]),window.localStorage.minilog=JSON.stringify(o)}catch(e){}},e.exports=i},function(e,t,n){var r=n(48),o=(new Date).valueOf().toString(36);function i(e){this.url=e.url||"",this.cache=[],this.timer=null,this.interval=e.interval||3e4,this.enabled=!0,this.jQuery=window.jQuery,this.extras={}}r.mixin(i),i.prototype.write=function(e,t,n){this.timer||this.init(),this.cache.push([e,t].concat(n))},i.prototype.init=function(){if(this.enabled&&this.jQuery){var e=this;this.timer=setTimeout((function(){var t,n,r=[],i=e.url;if(0==e.cache.length)return e.init();for(t=0;t<e.cache.length;t++)try{JSON.stringify(e.cache[t]),r.push(e.cache[t])}catch(e){}e.jQuery.isEmptyObject(e.extras)?(n=JSON.stringify({logs:r}),i=e.url+"?client_id="+o):n=JSON.stringify(e.jQuery.extend({logs:r},e.extras)),e.jQuery.ajax(i,{type:"POST",cache:!1,processData:!1,data:n,contentType:"application/json",timeout:1e4}).success((function(t,n,r){t.interval&&(e.interval=Math.max(1e3,t.interval))})).error((function(){e.interval=3e4})).always((function(){e.init()})),e.cache=[]}),this.interval)}},i.prototype.end=function(){},i.jQueryWait=function(e){if("undefined"!=typeof window&&(window.jQuery||window.$))return e(window.jQuery||window.$);"undefined"!=typeof window&&setTimeout((function(){i.jQueryWait(e)}),200)},e.exports=i},function(e,t){e.exports=function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}},function(e,t,n){var r=n(165),o=n(429);function i(t,n,a){return o()?e.exports=i=Reflect.construct:e.exports=i=function(e,t,n){var o=[null];o.push.apply(o,t);var i=new(Function.bind.apply(e,o));return n&&r(i,n.prototype),i},i.apply(null,arguments)}e.exports=i},function(e,t){e.exports=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(19)),i=r(n(4)),a=r(n(6)),u=r(n(45)),c=r(n(432)),s=function(){function e(){(0,i.default)(this,e),this.store={},"undefined"!=typeof localStorage&&(this.longtermStore=c.default),this.restore()}return(0,a.default)(e,[{key:"restore",value:function(){if(this.longtermStore)for(var e=this.longtermStore.getAll(),t=0,n=Object.entries(e);t<n.length;t++){var r=(0,o.default)(n[t],2),i=r[0],a=r[1];this.store[i]=a,this.emit("change",i)}}},{key:"keys",value:function(){return Object.keys(this.store)}},{key:"get",value:function(e){return this.store.hasOwnProperty(e)||(this.store[e]=null),this.store[e]}},{key:"set",value:function(e,t){this.longtermStore&&this.longtermStore.setItem(e,t),this.store[e]=t,this.emit("change",e)}},{key:"remove",value:function(e){delete this.store[e],this.longtermStore&&this.longtermStore.removeItem(e),this.emit("change",e)}}]),e}();u.default.mixin(s);var l=s;t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.getKey=t.prefix=void 0;t.prefix="flag__";var r=function(e){return"flag__"+e};t.getKey=r;var o=function(){return Object.keys(localStorage).filter((function(e){return 0===e.indexOf("flag__")})).map((function(e){return e.replace("flag__","")}))},i=function(e){var t=localStorage.getItem(r(e));return t?JSON.parse(t):t},a=function(e){return localStorage.removeItem(r(e))},u={getAll:function(){var e={},t=!0,n=!1,r=void 0;try{for(var a,u=o()[Symbol.iterator]();!(t=(a=u.next()).done);t=!0){var c=a.value;e[c]=i(c)}}catch(e){n=!0,r=e}finally{try{t||null==u.return||u.return()}finally{if(n)throw r}}return e},getItem:i,setItem:function(e,t){var n=JSON.stringify(t);return localStorage.setItem(r(e),n)},clearAll:function(){var e=!0,t=!1,n=void 0;try{for(var r,i=o()[Symbol.iterator]();!(e=(r=i.next()).done);e=!0){var u=r.value;a(u)}}catch(e){t=!0,n=e}finally{try{e||null==i.return||i.return()}finally{if(t)throw n}}},removeItem:a};t.default=u},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(4)),i=r(n(6)),a=r(n(10)),u=r(n(5)),c=r(n(11)),s=r(n(8)),l=r(n(0)),f=r(n(118)),d=function(e){var t=function(t){function n(e){var t;return(0,o.default)(this,n),(t=(0,a.default)(this,(0,u.default)(n).call(this,e))).handleChange=t.handleChange.bind((0,c.default)(t)),t}return(0,s.default)(n,t),(0,i.default)(n,[{key:"componentDidMount",value:function(){f.default.store.on("change",this.handleChange)}},{key:"componentWillUnmount",value:function(){f.default.store.removeListener("change",this.handleChange)}},{key:"handleChange",value:function(){this.forceUpdate()}},{key:"render",value:function(){return l.default.createElement(e,this.props)}}]),n}(l.default.Component);return t.displayName="withFlags(".concat(e.displayName||e.name,")"),t};t.default=d},function(e,t,n){"use strict";e.exports=n(435)},function(e,t,n){"use strict";
17
17
  /** @license React v16.13.1
18
18
  * react.production.min.js
19
19
  *
@@ -73,5 +73,5 @@ t.prefix=r.default,t.supportedProperty=o.default,t.supportedValue=i.default},fun
73
73
  *
74
74
  * Copyright (c) 2014-2017, Jon Schlinkert.
75
75
  * Released under the MIT License.
76
- */e.exports=function(e){return null!=e&&"object"==typeof e&&!1===Array.isArray(e)}},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:960,lg:1280,xl:1920}:t,r=e.unit,u=void 0===r?"px":r,c=e.step,s=void 0===c?5:c,l=(0,i.default)(e,["values","unit","step"]);function f(e){var t="number"==typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(u,")")}function d(e,t){var r=a.indexOf(t)+1;return r===a.length?f(e):"@media (min-width:".concat(n[e]).concat(u,") and ")+"(max-width:".concat(n[a[r]]-s/100).concat(u,")")}return(0,o.default)({keys:a,values:n,up:f,down:function(e){var t=a.indexOf(e)+1,r=n[a[t]];return t===a.length?f("xs"):"@media (max-width:".concat(("number"==typeof r&&t>0?r:e)-s/100).concat(u,")")},between:d,only:function(e){return d(e,e)},width:function(e){return n[e]}},l)},t.keys=void 0;var o=r(n(12)),i=r(n(17)),a=["xs","sm","md","lg","xl"];t.keys=a},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r;return(0,i.default)({gutters:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,i.default)({paddingLeft:2*t.unit,paddingRight:2*t.unit},n,(0,o.default)({},e.up("sm"),(0,i.default)({paddingLeft:3*t.unit,paddingRight:3*t.unit},n[e.up("sm")])))},toolbar:(r={minHeight:56},(0,o.default)(r,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),(0,o.default)(r,e.up("sm"),{minHeight:64}),r)},n)};var o=r(n(2)),i=r(n(12))},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.primary,n=void 0===t?{light:u.default[300],main:u.default[500],dark:u.default[700]}:t,r=e.secondary,y=void 0===r?{light:c.default.A200,main:c.default.A400,dark:c.default.A700}:r,v=e.error,g=void 0===v?{light:l.default[300],main:l.default[500],dark:l.default[700]}:v,b=e.type,w=void 0===b?"light":b,x=e.contrastThreshold,C=void 0===x?3:x,k=e.tonalOffset,S=void 0===k?.2:k,_=(0,i.default)(e,["primary","secondary","error","type","contrastThreshold","tonalOffset"]);function A(e){return(0,d.getContrastRatio)(e,h.text.primary)>=C?h.text.primary:p.text.primary}function O(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;return!e.main&&e[t]&&(e.main=e[t]),m(e,"light",n,S),m(e,"dark",r,S),e.contrastText||(e.contrastText=A(e.main)),e}O(n),O(y,"A400","A200","A700"),O(g);var E={dark:h,light:p};return(0,a.default)((0,o.default)({common:f.default,type:w,primary:n,secondary:y,error:g,grey:s.default,contrastThreshold:C,getContrastText:A,augmentColor:O,tonalOffset:S},E[w]),_,{clone:!1})},t.dark=t.light=void 0;var o=r(n(12)),i=r(n(17)),a=(r(n(37)),r(n(133))),u=r(n(726)),c=r(n(727)),s=r(n(728)),l=r(n(729)),f=r(n(730)),d=n(731),p={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:f.default.white,default:s.default[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.08)",hoverOpacity:.08,selected:"rgba(0, 0, 0, 0.14)",disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)"}};t.light=p;var h={text:{primary:f.default.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:s.default[800],default:"#303030"},action:{active:f.default.white,hover:"rgba(255, 255, 255, 0.1)",hoverOpacity:.1,selected:"rgba(255, 255, 255, 0.2)",disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)"}};function m(e,t,n,r){e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,d.lighten)(e.main,r):"dark"===t&&(e.dark=(0,d.darken)(e.main,1.5*r)))}t.dark=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={black:"#000",white:"#fff"};t.default=r},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.convertHexToRGB=i,t.rgbToHex=function(e){if(0===e.indexOf("#"))return e;var t=a(e).values;return t=t.map((function(e){return 1===(t=e.toString(16)).length?"0".concat(t):t;var t})),"#".concat(t.join(""))},t.decomposeColor=a,t.recomposeColor=u,t.getContrastRatio=function(e,t){var n=c(e),r=c(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},t.getLuminance=c,t.emphasize=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return c(e)>.5?s(e,t):l(e,t)},t.fade=function(e,t){if(!e)return e;e=a(e),t=o(t),("rgb"===e.type||"hsl"===e.type)&&(e.type+="a");return e.values[3]=t,u(e)},t.darken=s,t.lighten=l;r(n(37));function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return e<t?t:e>n?n:e}function i(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length/3,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb(".concat(n.map((function(e){return parseInt(e,16)})).join(", "),")"):""}function a(e){if("#"===e.charAt(0))return a(i(e));var t=e.indexOf("("),n=e.substring(0,t),r=e.substring(t+1,e.length-1).split(",");return{type:n,values:r=r.map((function(e){return parseFloat(e)}))}}function u(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")&&(n=n.map((function(e,t){return t<3?parseInt(e,10):e}))),-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(e.type,"(").concat(n.join(", "),")")}function c(e){var t=a(e);if(-1!==t.type.indexOf("rgb")){var n=t.values.map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)}));return Number((.2126*n[0]+.7152*n[1]+.0722*n[2]).toFixed(3))}return t.values[2]/100}function s(e,t){if(!e)return e;if(e=a(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return u(e)}function l(e,t){if(!e)return e;if(e=a(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;return u(e)}},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n="function"==typeof t?t(e):t,r=n.fontFamily,l=void 0===r?'"Roboto", "Helvetica", "Arial", sans-serif':r,f=n.fontSize,d=void 0===f?14:f,p=n.fontWeightLight,h=void 0===p?300:p,m=n.fontWeightRegular,y=void 0===m?400:m,v=n.fontWeightMedium,g=void 0===v?500:v,b=n.htmlFontSize,w=void 0===b?16:b,x=n.useNextVariants,C=void 0===x?Boolean(u.ponyfillGlobal.__MUI_USE_NEXT_TYPOGRAPHY_VARIANTS__):x,k=(n.suppressWarning,n.allVariants),S=(0,i.default)(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","htmlFontSize","useNextVariants","suppressWarning","allVariants"]);var _=d/14,A=function(e){return"".concat(e/w*_,"rem")},O=function(t,n,r,i,a){return(0,o.default)({color:e.text.primary,fontFamily:l,fontWeight:t,fontSize:A(n),lineHeight:r},'"Roboto", "Helvetica", "Arial", sans-serif'===l?{letterSpacing:"".concat(c(i/n),"em")}:{},a,k)},E={h1:O(h,96,1,-1.5),h2:O(h,60,1,-.5),h3:O(y,48,1.04,0),h4:O(y,34,1.17,.25),h5:O(y,24,1.33,0),h6:O(g,20,1.6,.15),subtitle1:O(y,16,1.75,.15),subtitle2:O(g,14,1.57,.1),body1Next:O(y,16,1.5,.15),body2Next:O(y,14,1.5,.15),buttonNext:O(g,14,1.75,.4,s),captionNext:O(y,12,1.66,.4),overline:O(y,12,2.66,1,s)},B={display4:(0,o.default)({fontSize:A(112),fontWeight:h,fontFamily:l,letterSpacing:"-.04em",lineHeight:"".concat(c(128/112),"em"),marginLeft:"-.04em",color:e.text.secondary},k),display3:(0,o.default)({fontSize:A(56),fontWeight:y,fontFamily:l,letterSpacing:"-.02em",lineHeight:"".concat(c(73/56),"em"),marginLeft:"-.02em",color:e.text.secondary},k),display2:(0,o.default)({fontSize:A(45),fontWeight:y,fontFamily:l,lineHeight:"".concat(c(51/45),"em"),marginLeft:"-.02em",color:e.text.secondary},k),display1:(0,o.default)({fontSize:A(34),fontWeight:y,fontFamily:l,lineHeight:"".concat(c(41/34),"em"),color:e.text.secondary},k),headline:(0,o.default)({fontSize:A(24),fontWeight:y,fontFamily:l,lineHeight:"".concat(c(32.5/24),"em"),color:e.text.primary},k),title:(0,o.default)({fontSize:A(21),fontWeight:g,fontFamily:l,lineHeight:"".concat(c(24.5/21),"em"),color:e.text.primary},k),subheading:(0,o.default)({fontSize:A(16),fontWeight:y,fontFamily:l,lineHeight:"".concat(c(1.5),"em"),color:e.text.primary},k),body2:(0,o.default)({fontSize:A(14),fontWeight:g,fontFamily:l,lineHeight:"".concat(c(24/14),"em"),color:e.text.primary},k),body1:(0,o.default)({fontSize:A(14),fontWeight:y,fontFamily:l,lineHeight:"".concat(c(20.5/14),"em"),color:e.text.primary},k),caption:(0,o.default)({fontSize:A(12),fontWeight:y,fontFamily:l,lineHeight:"".concat(c(1.375),"em"),color:e.text.secondary},k),button:(0,o.default)({fontSize:A(14),textTransform:"uppercase",fontWeight:g,fontFamily:l,color:e.text.primary},k)};return(0,a.default)((0,o.default)({pxToRem:A,round:c,fontFamily:l,fontSize:d,fontWeightLight:h,fontWeightRegular:y,fontWeightMedium:g},B,E,C?{body1:E.body1Next,body2:E.body2Next,button:E.buttonNext,caption:E.captionNext}:{},{useNextVariants:C}),S,{clone:!1})};var o=r(n(12)),i=r(n(17)),a=r(n(133)),u=(r(n(37)),n(129));function c(e){return Math.round(1e5*e)/1e5}var s={textTransform:"uppercase"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;function r(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}var o=["none",r(0,1,3,0,0,1,1,0,0,2,1,-1),r(0,1,5,0,0,2,2,0,0,3,1,-2),r(0,1,8,0,0,3,4,0,0,3,3,-2),r(0,2,4,-1,0,4,5,0,0,1,10,0),r(0,3,5,-1,0,5,8,0,0,1,14,0),r(0,3,5,-1,0,6,10,0,0,1,18,0),r(0,4,5,-2,0,7,10,1,0,2,16,1),r(0,5,5,-3,0,8,10,1,0,3,14,2),r(0,5,6,-3,0,9,12,1,0,3,16,2),r(0,6,6,-3,0,10,14,1,0,4,18,3),r(0,6,7,-4,0,11,15,1,0,4,20,3),r(0,7,8,-4,0,12,17,2,0,5,22,4),r(0,7,8,-4,0,13,19,2,0,5,24,4),r(0,7,9,-4,0,14,21,2,0,5,26,4),r(0,8,9,-5,0,15,22,2,0,6,28,5),r(0,8,10,-5,0,16,24,2,0,6,30,5),r(0,8,11,-5,0,17,26,2,0,6,32,5),r(0,9,11,-5,0,18,28,2,0,7,34,6),r(0,9,12,-6,0,19,29,2,0,7,36,6),r(0,10,13,-6,0,20,31,3,0,8,38,7),r(0,10,13,-6,0,21,33,3,0,8,40,7),r(0,10,14,-6,0,22,35,3,0,8,42,7),r(0,11,14,-7,0,23,36,3,0,9,44,8),r(0,11,15,-7,0,24,38,3,0,9,46,8)];t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={borderRadius:4};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={unit:8};t.default=r},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.isNumber=t.isString=t.formatMs=t.duration=t.easing=void 0;var o=r(n(17)),i=(r(n(37)),{easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"});t.easing=i;var a={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};t.duration=a;var u=function(e){return"".concat(Math.round(e),"ms")};t.formatMs=u;t.isString=function(e){return"string"==typeof e};t.isNumber=function(e){return!isNaN(parseFloat(e))};var c={easing:i,duration:a,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.duration,r=void 0===n?a.standard:n,c=t.easing,s=void 0===c?i.easeInOut:c,l=t.delay,f=void 0===l?0:l;(0,o.default)(t,["duration","easing","delay"]);return(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"==typeof r?r:u(r)," ").concat(s," ").concat("string"==typeof f?f:u(f))})).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}};t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={mobileStepper:1e3,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};t.default=r},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.CHANNEL=void 0;var o=r(n(2)),i="__THEMING__";t.CHANNEL=i;var a={contextTypes:(0,o.default)({},i,(function(){})),initial:function(e){return e[i]?e[i].getState():null},subscribe:function(e,t){return e[i]?e[i].subscribe(t):null},unsubscribe:function(e,t){e[i]&&e[i].unsubscribe(t)}};t.default=a},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.dangerouslyUseGlobalCSS,n=void 0!==t&&t,r=e.productionPrefix,o=void 0===r?"jss":r,a=e.seed,u=void 0===a?"":a,c=0;return function(e,t){return c+=1,n&&t&&t.options.name?"".concat(i(t.options.name),"-").concat(e.key):"".concat(o).concat(u).concat(c)}};r(n(37));var o=/([[\].#*$><+~=|^:(),"'`\s])/g;function i(e){return String(e).replace(o,"-")}},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(12)),i=(r(n(83)),r(n(37)),r(n(133)));function a(e,t){return t}var u=function(e){var t="function"==typeof e;return{create:function(n,r){var u=t?e(n):e;if(!r||!n.overrides||!n.overrides[r])return u;var c=n.overrides[r],s=(0,o.default)({},u);return Object.keys(c).forEach((function(e){s[e]=(0,i.default)(s[e],c[e],{arrayMerge:a})})),s},options:{},themingEnabled:t}};t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){var t=e.theme,n=e.name,r=e.props;if(!t.props||!n||!t.props[n])return r;var o,i=t.props[n];for(o in i)void 0===r[o]&&(r[o]=i[o]);return r};t.default=r},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.capitalize=function(e){0;return e.charAt(0).toUpperCase()+e.slice(1)},t.contains=i,t.findIndex=a,t.find=function(e,t){var n=a(e,t);return n>-1?e[n]:void 0},t.createChainedFunction=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t){return null==t?e:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];e.apply(this,r),t.apply(this,r)}}),(function(){}))};var o=r(n(83));r(n(37));function i(e,t){return Object.keys(t).every((function(n){return e.hasOwnProperty(n)&&e[n]===t[n]}))}function a(e,t){for(var n=(0,o.default)(t),r=0;r<e.length;r+=1){if("function"===n&&!0==!!t(e[r],r,e))return r;if("object"===n&&i(e[r],t))return r;if(-1!==["string","number","boolean"].indexOf(n))return e.indexOf(t)}return-1}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t=(0,i.default)(e);return{getItem:function(e){return new Promise((function(n,r){n(t.getItem(e))}))},setItem:function(e,n){return new Promise((function(r,o){r(t.setItem(e,n))}))},removeItem:function(e){return new Promise((function(n,r){n(t.removeItem(e))}))}}};var r,o=n(744),i=(r=o)&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";t.__esModule=!0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function o(){}t.default=function(e){var t=e+"Storage";return function(e){if("object"!==("undefined"==typeof self?"undefined":r(self))||!(e in self))return!1;try{var t=self[e],n="redux-persist "+e+" test";t.setItem(n,"test"),t.getItem(n),t.removeItem(n)}catch(e){return!1}return!0}(t)?self[t]:i};var i={getItem:o,setItem:o,removeItem:o}},function(e,t,n){"use strict";n.r(t);var r=n(14),o=n.n(r),i=n(4),a=n.n(i),u=n(6),c=n.n(u),s=n(11),l=n.n(s),f=n(8),d=n.n(f),p=n(10),h=n.n(p),m=n(5),y=n.n(m),v=n(2),g=n.n(v),b=n(12),w=n.n(b),x=n(0),C=n.n(x),k=n(38),S=n(23),_=n(17),A=n.n(_),O=n(1),E=n.n(O),B=n(206),j=n.n(B),P=n(15),T=n.n(P);function z(e){return e instanceof Function}function I(e){var t=e.icon,n=e.width,r=e.height,o=e.color,i=e.className,a=e.preserveColor,u=e.rotate,c=e.size,s=e.spin,l=A()(e,["icon","width","height","color","className","preserveColor","rotate","size","spin"]),f=Object(x.useMemo)((function(){return z(t)?t:function(e){var t;return(t=e.id?"#".concat(e.id):"#"===e[0]?e:"#"+e)?function(e){return C.a.createElement("svg",e,C.a.createElement("use",{xlinkHref:t}))}:(console.warn("Icon not found ".concat(e,".")),null)}(t)}),[t]),d=e.style;d=Object.assign({},d),o&&(d.fill=o),u&&(d.transform="rotate(".concat(u,"deg)"));var p=a?"icon--preserveColor":"icon",h=T()(i,j.a[p],g()({},j.a["icon--spin"],s));return f?C.a.createElement(f,w()({className:h,style:d,width:n||c||"16",height:r||c||"16"},l)):null}I.isProperIcon=function(e){var t=e&&!!e.id,n="string"==typeof e,r=z(e);return t||n||r};var D=E.a.oneOfType([E.a.string,E.a.object,E.a.func]);I.propTypes={icon:D.isRequired,width:E.a.oneOfType([E.a.string,E.a.number]),height:E.a.oneOfType([E.a.string,E.a.number]),color:E.a.oneOfType([E.a.string,E.a.object]),className:E.a.string,preserveColor:E.a.bool,size:E.a.oneOfType([E.a.string,E.a.number]),spin:E.a.bool},I.defaultProps={spin:!1};var R=I,F=n(42),M=n.n(F),N=M()((function(){var e=document.querySelector("[role=application]");return e&&e.dataset})),L=M()((function(){var e=N();return e&&e.cozy?JSON.parse(e.cozy):null})),U=M()((function(e){var t=L();if(t&&void 0!==t[e])return"true"===t[e]||"false"===t[e]?JSON.parse(t[e]):t[e];var n=N();if(n){var r=n["cozy".concat(e[0].toUpperCase()).concat(e.substring(1))];return void 0===r?void 0:""===r||JSON.parse(r)}})),$=null,G=M()((function(){return U("tracking")})),q=function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!G())return null;if(null!==$)return $;try{!1===o&&Piwik.getTracker();var i=n(!function(){var e=new Error("Cannot find module 'piwik-react-router'");throw e.code="MODULE_NOT_FOUND",e}());return $=i({url:e||"https://matomo.cozycloud.cc",siteId:t||8,injectScript:o}),r&&J(),$}catch(e){return console.warn(e),$=null,null}},J=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(null!==$){var t,n,r,o=document.querySelector("[role=application]");if(o&&o.dataset&&(t=U("appName"),n=U("cozyDomain")),n){r=n;var i=n.indexOf(":");i>=0&&(r=r.substring(0,i))}e=Object.assign({userId:r,appDimensionId:1,app:t,heartbeat:15},e),parseInt(e.heartbeat)>0&&$.push(["enableHeartBeatTimer",parseInt(e.heartbeat,10)]),$.push(["setUserId",e.userId]),$.push(["setCustomDimension",e.appDimensionId,e.app])}},H=n(24),W=n(7),Q=n.n(W),V=n(9),Y=n.n(V),K=n(29),Z=n(81),X=n.n(Z);var ee=function(e){return C.a.createElement("svg",w()({viewBox:"0 0 16 16"},e),C.a.createElement("path",{d:"M1 11.009V5.5c0-.55.39-.773.872-.498l5.256 3.003c.476.272.872.944.872 1.495v5.508c0 .549-.39.772-.872.497l-5.256-3.003C1.396 12.231 1 11.56 1 11.01zm15 0c0 .55-.396 1.222-.872 1.494l-5.256 3.003c-.481.275-.872.052-.872-.497V9.5c0-.55.396-1.223.872-1.495l5.256-3.003c.481-.275.872-.052.872.498v5.508zM9.35 6.982c-.47.288-1.237.284-1.7 0l-4.8-2.954c-.47-.29-.463-.732.027-.995L7.623.477c.485-.261 1.264-.264 1.754 0l4.746 2.556c.485.26.49.71.027.995l-4.8 2.954z"}))},te=n(136),ne=n.n(te),re=E.a.shape({name:E.a.string,slug:E.a.string,developer:E.a.object,links:E.a.shape({icon:E.a.string}),latest_version:E.a.shape({version:E.a.string})});E.a.shape({_id:E.a.string,class:E.a.string,mime:E.a.string,name:E.a.string});function oe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h()(this,n)}}var ie=function(e){d()(r,e);var t,n=oe(r);function r(e,t){var o;return a()(this,r),o=n.call(this,e,t),g()(l()(o),"state",{error:null,icon:null,status:o.props.client?"fetching":"errored"}),o.isUnmounting=!1,o.handleError=o.handleError.bind(l()(o)),o.fetchIcon=o.fetchIcon.bind(l()(o)),o}return c()(r,[{key:"componentWillUnmount",value:function(){this.isUnmounting=!0}},{key:"componentDidMount",value:function(){this.isUnmounting=!1,this.load()}},{key:"componentDidUpdate",value:function(e){this.props.fetchIcon!==e.fetchIcon&&this.load()}},{key:"fetchIcon",value:function(){var e=this.props,t=e.app,n=e.type,r=e.priority;return e.client.getStackClient().getIconURL({type:n,slug:t.slug||t,priority:r})}},{key:"handleError",value:function(){this.setState({status:"errored"})}},{key:"load",value:(t=Y()(Q.a.mark((function e(){var t,n,r,o,i,a,u,c,s,l,f;return Q.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.props,n=t.app,r=t.fetchIcon,o=t.onReady,i=t.client,a=r||this.fetchIcon,e.prev=2,i&&(f=new URL(i.getStackClient().uri),s=f.host,l="https:"===f.protocol),e.next=6,a(n,s,l);case 6:u=e.sent,e.next=12;break;case 9:e.prev=9,e.t0=e.catch(2),c=e.t0;case 12:this.isUnmounting||(this.setState({error:c,icon:u,status:c?"errored":"done"}),"function"==typeof o&&o());case 13:case"end":return e.stop()}}),e,this,[[2,9]])}))),function(){return t.apply(this,arguments)})},{key:"render",value:function(){var e=this.props,t=e.alt,n=e.className,r=e.fallbackIcon,o=this.state,i=o.icon;switch(o.status){case"fetching":return C.a.createElement("div",{role:"progressbar",className:T()(X.a["c-loading-placeholder"],X.a["c-app-icon"],n)});case"done":return C.a.createElement("img",{alt:t,className:T()(X.a["c-app-icon"],n),src:i,onError:this.handleError});case"errored":default:return C.a.createElement(R,{className:T()(X.a["c-app-icon"],X.a["c-app-icon-default"],n),height:"100%",icon:r||ee,width:"100%",color:ne.a.coolGrey})}}}]),r}(x.Component);ie.propTypes={alt:E.a.string,app:E.a.oneOfType([re,E.a.string]),fallbackIcon:D,fetchIcon:E.a.func,client:E.a.object.isRequired,className:E.a.string,onReady:E.a.func,type:E.a.oneOf(["app","konnector"]),priority:E.a.oneOf(["stack","registry"])},ie.defaultProps={type:"app",priority:"stack"};var ae=Object(K.withClient)(ie),ue=n(25);function ce(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h()(this,n)}}function se(e){return C.a.createElement("svg",w()({width:32,height:32},e),C.a.createElement("g",{fill:"none",fillRule:"evenodd"},C.a.createElement("circle",{fill:"#297EF2",fillRule:"nonzero",cx:16,cy:16,r:16}),C.a.createElement("path",{d:"M19.314 17.561a.555.555 0 01-.82.12 4.044 4.044 0 01-2.499.862 4.04 4.04 0 01-2.494-.86.557.557 0 01-.815-.12.547.547 0 01.156-.748c.214-.14.229-.421.229-.424a.555.555 0 01.176-.385.504.504 0 01.386-.145.544.544 0 01.528.553c0 .004 0 .153-.054.36a2.954 2.954 0 003.784-.008 1.765 1.765 0 01-.053-.344.546.546 0 01.536-.561h.01c.294 0 .538.237.545.532 0 0 .015.282.227.422a.544.544 0 01.158.746m2.322-6.369a5.94 5.94 0 00-1.69-3.506A5.651 5.651 0 0015.916 6a5.648 5.648 0 00-4.029 1.687 5.936 5.936 0 00-1.691 3.524 5.677 5.677 0 00-3.433 1.737 5.966 5.966 0 00-1.643 4.137C5.12 20.347 7.704 23 10.882 23h10.236c3.176 0 5.762-2.653 5.762-5.915 0-3.083-2.31-5.623-5.244-5.893",fill:"#FFF"})))}var le=function(e){d()(n,e);var t=ce(n);function n(){return a()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props.className;return C.a.createElement(ae,{fetchIcon:function(){return"".concat(ue.b.get.cozyURL(),"/assets/images/icon-cozy-home.svg")},fallbackIcon:se,className:e})}}]),n}(x.PureComponent),fe=function(e){var t=e.webviewContext,n=e.homeHref;return t?C.a.createElement("button",{onClick:function(){t.call("backToHome")},className:"coz-nav-apps-btns-home --flagship"},C.a.createElement(le,{className:"coz-nav-apps-btns-home-svg"})):n?C.a.createElement("a",{href:n,className:"coz-nav-apps-btns-home"},C.a.createElement(le,{className:"coz-nav-apps-btns-home-svg"})):C.a.createElement("span",{className:"coz-nav-apps-btns-home"},C.a.createElement(le,{className:"coz-nav-apps-btns-home-svg"}))},de=n(51),pe=n.n(de);var he=function(e){return C.a.createElement("svg",w()({viewBox:"0 0 32 32"},e,{role:"progressbar","aria-busy":"true"}),C.a.createElement("path",{opacity:.25,d:"M16 0a16 16 0 000 32 16 16 0 000-32m0 4a12 12 0 010 24 12 12 0 010-24"}),C.a.createElement("path",{d:"M16 0a16 16 0 0116 16h-4A12 12 0 0016 4z"}))},me=function(e){var t,n=e.className,r=e.extension,o=e.size,i=e.theme,a=e.variant,u=e.round,c=e.align;return T()(pe.a["c-btn"],(t={},g()(t,pe.a["c-btn--".concat(i)],i),g()(t,pe.a["c-btn--".concat(o)],"normal"!==o),g()(t,pe.a["c-btn--".concat(a)],a),g()(t,pe.a["c-btn--".concat(r)],r),g()(t,pe.a["c-btn--".concat(c)],c),g()(t,pe.a["c-btn--round"],u),t),n)},ye=function(e){return function(t){var n=t.busy,r=t.disabled,o=A()(t,["busy","disabled"]);return n&&(o["aria-busy"]=!0),r&&(o["aria-disabled"]=!0),"button"===e&&r&&(o.disabled=!0),o}},ve={button:ye("button"),a:ye("a")},ge=function(e){return e},be={tiny:8,small:12,large:18},we=function(e){var t=e.children,n=e.icon,r=e.iconOnly,o=e.label,i=e.subtle,a=e.className,u=e.extension,c=e.round,s=e.size,l=e.theme,f=e.align,d=e.extraRight,p=e.tag,h=A()(e,["children","icon","iconOnly","label","subtle","className","extension","round","size","theme","align","extraRight","tag"]),m=ve[p]||ge,y=r?o:null,v=r?"u-visuallyhidden":null;return C.a.createElement(p,w()({},m(h),{className:me({extension:u,align:f,round:c,size:s,theme:l,className:a,variant:i&&"subtle"}),title:y}),C.a.createElement("span",null,R.isProperIcon(n)?C.a.createElement(R,{size:be[s],icon:n,"aria-hidden":!0,focusable:"false"}):n,o&&C.a.createElement("span",{className:v},o),t,d&&C.a.createElement("span",{className:"u-ml-auto"},d),h.busy&&C.a.createElement(R,{size:be[s],icon:he,spin:!0,className:"u-ml-half","aria-hidden":!0,focusable:"false"})))},xe=function(e){return C.a.createElement(we,e)},Ce=function(e){return C.a.createElement(we,e)};function ke(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h()(this,n)}}xe.propTypes={children:E.a.node,label:E.a.node.isRequired,icon:E.a.oneOfType([E.a.node,D]),iconOnly:E.a.bool,theme:E.a.string,size:E.a.oneOf(["tiny","small","large","normal"]),extension:E.a.oneOf(["narrow","full"]),align:E.a.oneOf(["left","right","center"]),round:E.a.bool,className:E.a.string,onClick:E.a.func,extraRight:E.a.PropTypes.node,busy:E.a.bool,disabled:E.a.bool,type:E.a.oneOf(["button","reset","submit"]),subtle:E.a.bool},xe.defaultProps={type:"submit",tag:"button",size:"normal",align:"center"},Ce.defaultProps={tag:"a"};var Se=function(e){d()(n,e);var t=ke(n);function n(e){var r;return a()(this,n),(r=t.call(this,e)).state={unmounted:!0},r.animate=r.animate.bind(l()(r)),r}return c()(n,[{key:"animate",value:function(){var e=this;return setTimeout((function(){e.setState((function(){return{unmounted:!1}}))}),100)}},{key:"componentDidMount",value:function(){this.animate()}},{key:"render",value:function(){var e=this.props,t=e.t,n=e.code,r=e.links,o=this.state.unmounted;return C.a.createElement("div",{className:"coz-bar-banner".concat(o?" unmounted":"")},C.a.createElement("p",null,t("banner.".concat(n,".description"))),C.a.createElement(Ce,{className:"coz-bar-banner-button",size:"tiny",href:r,label:t("banner.".concat(n,".CTA"))}))}}]),n}(x.Component),_e=Object(S.translate)()(Se),Ae=n(142),Oe=n.n(Ae),Ee={"icon--spin":"styles__icon--spin___ybfC1",spin:"styles__spin___2Vvw3",icon:"styles__icon___23x3R","icon--preserveColor":"styles__icon--preserveColor___3gBz6",shake:"styles__shake___wT_3z"};function Be(e){return e instanceof Function}function je(e){var t=e.icon,n=e.width,r=e.height,o=e.color,i=e.className,a=e.preserveColor,u=e.rotate,c=e.size,s=e.spin,l=A()(e,["icon","width","height","color","className","preserveColor","rotate","size","spin"]),f=Object(x.useMemo)((function(){return Be(t)?t:function(e){var t;return(t=e.id?"#".concat(e.id):"#"===e[0]?e:"#"+e)?function(e){return C.a.createElement("svg",e,C.a.createElement("use",{xlinkHref:t}))}:(console.warn("Icon not found ".concat(e,".")),null)}(t)}),[t]),d=e.style;d=Object.assign({},d),o&&(d.fill=o),u&&(d.transform="rotate(".concat(u,"deg)"));var p=a?"icon--preserveColor":"icon",h=T()(i,Ee[p],g()({},Ee["icon--spin"],s));return f?C.a.createElement(f,w()({className:h,style:d,width:n||c||"16",height:r||c||"16"},l)):null}je.isProperIcon=function(e){var t=e&&!!e.id,n="string"==typeof e,r=Be(e);return t||n||r};var Pe=E.a.oneOfType([E.a.string,E.a.object,E.a.func]);je.propTypes={icon:Pe.isRequired,width:E.a.oneOfType([E.a.string,E.a.number]),height:E.a.oneOfType([E.a.string,E.a.number]),color:E.a.oneOfType([E.a.string,E.a.object]),className:E.a.string,preserveColor:E.a.bool,size:E.a.oneOfType([E.a.string,E.a.number]),spin:E.a.bool},je.defaultProps={spin:!1};var Te=je;var ze=function(e){return C.a.createElement("svg",w()({viewBox:"0 0 16 16"},e),C.a.createElement("defs",null,C.a.createElement("path",{d:"M164 261a4 4 0 118 0 4 4 0 110 8h-8a4 4 0 110-8zm1.146 3.854c.155.154.423.368.793.58.618.353 1.31.566 2.061.566.75 0 1.443-.213 2.06-.566.371-.212.64-.426.794-.58a.5.5 0 10-.708-.708 2.934 2.934 0 01-.582.42A3.136 3.136 0 01168 265a3.136 3.136 0 01-1.564-.434 2.934 2.934 0 01-.582-.42.5.5 0 10-.708.708z",id:"cloud_svg__a"})),C.a.createElement("g",{fillRule:"evenodd",transform:"translate(-160 -255)"},C.a.createElement("use",{xlinkHref:"#cloud_svg__a"})))},Ie=n(137),De=n.n(Ie),Re=n(19),Fe=n.n(Re),Me=n(75),Ne=n.n(Me),Le=function(e){var t=window.innerWidth;return Ne()(e,(function(e){var n=Fe()(e,2),r=n[0],o=n[1];return t>=r&&(void 0===o||t<=o)}))},Ue={isExtraLarge:[1201],isLarge:[1024,1200],isMedium:[769,1023],isSmall:[544,768],isTiny:[0,543],isDesktop:[1024],isTablet:[769,1023],isMobile:[0,768]};function $e(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h()(this,n)}}E.a.shape(Object.keys(Ue).reduce((function(e,t){return e[t]=E.a.bool.isRequired,e}),{}));var Ge=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ue;return function(t){var n=function(n){d()(o,n);var r=$e(o);function o(t){var n;return a()(this,o),(n=r.call(this,t)).state={breakpoints:Le(e)},n.checkBreakpoints=De()((function(){n.setState({breakpoints:Le(e)})}),100,{trailing:!0}),n}return c()(o,[{key:"componentDidMount",value:function(){window.addEventListener("resize",this.checkBreakpoints)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.checkBreakpoints)}},{key:"render",value:function(){var e=this.props,n=this.state.breakpoints;return C.a.createElement(t,w()({},e,{breakpoints:n}))}}]),o}(x.Component);return n.displayName="withBreakpoints(".concat(t.displayName||t.name,")"),n}},qe=n(13),Je=n(18),He=n.n(Je),We=E.a.shape({slug:E.a.string.isRequired,name:E.a.string.isRequired,namePrefix:E.a.string,comingSoon:E.a.bool,href:E.a.string,links:E.a.shape({icon:E.a.string.isRequired})}),Qe=(Object(H.isAndroidApp)(),function(e){return e?e.startsWith("/")?e:"/"+e:"/"}),Ve=function(e){var t=e.slug,n=e.cozyUrl,r=e.subDomainType,o=e.fallbackUrl,i=e.nativePath;if(i=Qe(i),!n&&!o)throw new Error("Must have either cozyUrl or fallbackUrl to generate universal link.");n&&!o&&(o=function(e){var t=e.cozyUrl,n=e.nativePath,r=e.slug,o=e.subDomainType;n=Qe(n);var i=new URL(t);return i.host="nested"===o?"".concat(r,".").concat(i.host):i.host.split(".").map((function(e,t){return 0===t?e+"-"+r:e})).join("."),i.hash=n,i.toString()}({cozyUrl:n,nativePath:i,slug:t,subDomainType:r}));var a=new URL("https://links.mycozy.cloud/"+t+i);return a.searchParams.append("fallback",o),a.toString()},Ye={drive:{appId:"io.cozy.drive.mobile",uri:"cozydrive://",name:"Cozy Drive"},banks:{appId:Object(H.isAndroidApp)()?"io.cozy.banks.mobile":"io.cozy.banks",uri:"cozybanks://",name:"Cozy Banks"}};function Ke(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h()(this,n)}}var Ze,Xe,et,tt,nt=(Ze=function(e){return Object(H.checkApp)(e).catch((function(){return!1}))},Xe=1e4,et=function(e){return e.appId},tt={},function(e){var t=et(e),n=tt[t];return n&&n.result&&n.date-Date.now()<Xe||(tt[t]={result:Ze(e),date:Date.now()}),tt[t].result}),rt=function(e){d()(r,e);var t,n=Ke(r);function r(e){var t;return a()(this,r),t=n.call(this,e),g()(l()(t),"state",{nativeAppIsAvailable:null,isFetchingAppInfo:!1}),t}return c()(r,[{key:"componentDidMount",value:function(){Object(H.isMobileApp)()&&this.checkAppAvailability()}},{key:"checkAppAvailability",value:(t=Y()(Q.a.mark((function e(){var t,n,r;return Q.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.props.slug,!(n=Ye[t])){e.next=9;break}return e.t0=Boolean,e.next=6,nt(n);case 6:e.t1=e.sent,r=(0,e.t0)(e.t1),this.setState({nativeAppIsAvailable:r});case 9:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"render",value:function(){var e=this.props,t=e.children,n=e.slug,i=this.state.nativeAppIsAvailable,a=Ye[n],u=r.getOnClickHref(this.props,i),c=u.href,s=u.onClick;return t(o()({},a,{onClick:s,href:c}))}}],[{key:"getOnClickHref",value:function(e,t){var n=e.slug,o=e.nativePath,i=e.href,a=null,u=Object(H.isMobileApp)(),c=Ye[n];if(u)t?(a=r.openNativeFromNative.bind(this,e),i="#"):a=r.openWeb.bind(this,e);else if(Object(H.isMobile)()&&c)if(Object(H.isAndroid)())a=r.openNativeFromWeb.bind(this,e);else try{i=Ve({slug:n,nativePath:o,fallbackUrl:i})}catch(e){console.error(e),i="#"}return{href:i,onClick:a}}},{key:"openNativeFromWeb",value:function(e,t){var n=e.href,o=e.slug,i=e.nativePath,a=e.onAppSwitch,u=Ye[o];t&&t.preventDefault(),r.onAppSwitch(a),Object(H.openDeeplinkOrRedirect)(u.uri+("/"===i?"":i),(function(){window.location.href=n}))}},{key:"onAppSwitch",value:function(e){"function"==typeof e&&e()}},{key:"openNativeFromNative",value:function(e,t){var n=e.slug,o=e.onAppSwitch;t&&t.preventDefault();var i=Ye[n];r.onAppSwitch(o),Object(H.startApp)(i).catch((function(e){console.error("AppLinker: Could not open native app",e)}))}},{key:"openWeb",value:function(e){r.onAppSwitch(e.onAppSwitch)}}]),r}(C.a.Component);rt.defaultProps={nativePath:"/"},rt.propTypes={slug:E.a.string.isRequired,href:E.a.string.isRequired,nativePath:E.a.string,onAppSwitch:E.a.func};var ot=rt;function it(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h()(this,n)}}var at=He()(K.models,"applications.getAppDisplayName",(function(e){return e.namePrefix&&"cozy"!==e.namePrefix.toLowerCase()?"".concat(e.namePrefix," ").concat(e.name):e.name})),ut=function(e){d()(n,e);var t=it(n);function n(e){var r;return a()(this,n),(r=t.call(this,e)).onAppSwitch=r.onAppSwitch.bind(l()(r)),r}return c()(n,[{key:"componentWillUnmount",value:function(){this.switchTimeout&&clearTimeout(this.switchTimeout)}},{key:"buildAppUrl",value:function(e){var t;try{t=new URL(e)}catch(e){return console.error(e.message),null}var r=n.buildQueryParams(this.props,this.context);if(r)for(var o in r)t.searchParams.append(o,r[o]);return t.toString()}},{key:"onAppSwitch",value:function(){var e=this.props.onAppSwitch;"function"==typeof e&&(this.switchTimeout=setTimeout((function(){e()}),1e3))}},{key:"render",value:function(){var e=this.props,t=e.useHomeIcon,n=e.app,r=n.slug?"icon-".concat(n.slug):"",o=at(n);return C.a.createElement(ot,{onAppSwitch:this.onAppSwitch,slug:n.slug,href:this.buildAppUrl(n.href)||""},(function(e){var i=e.onClick,a=e.href;return C.a.createElement("li",{className:"coz-nav-apps-item".concat(n.isCurrentApp?" --current":"")},C.a.createElement("a",{role:"menuitem",href:a,"data-icon":r,title:o,onClick:i},t?C.a.createElement(le,{className:"coz-nav-apps-item-icon"}):C.a.createElement(ae,w()({app:n,className:"coz-nav-apps-item-icon",key:n.slug},ue.b.get.iconProps())),C.a.createElement("p",{className:"coz-label"},o)))}))}}]),n}(C.a.Component);g()(ut,"buildQueryParams",(function(){return null})),ut.propTypes={app:We.isRequired,useHomeIcon:E.a.bool};var ct=ut,st=function(){return C.a.createElement("li",{className:"coz-nav-apps-item"},C.a.createElement("span",{role:"menuitem",disabled:!0},C.a.createElement("div",{className:"coz-nav-apps-item-icon coz-loading-placeholder"}),C.a.createElement("p",{className:"coz-label coz-loading-placeholder"})))};function lt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h()(this,n)}}var ft=function(e){d()(n,e);var t=lt(n);function n(e,r){var o;return a()(this,n),(o=t.call(this,e,r)).translateApp=dt(o.props.t),o}return c()(n,[{key:"render",value:function(){var e=this.props,t=e.t,n=e.apps,r=e.breakpoints,o=e.homeApp,i=e.isFetchingApps,a=e.onAppSwitch,u=r.isMobile,c=o&&o.isCurrentApp,s=o&&o.slug;return i||n&&n.length?C.a.createElement("div",{className:"coz-nav-pop-content"},C.a.createElement("ul",{className:"coz-nav-group"},u&&o&&C.a.createElement(ct,{app:o,useHomeIcon:!0,onAppSwitch:a}),i?new Array(3).fill({}).map((function(e,t){return C.a.createElement(st,{key:t})})):n.filter((function(e){return e.slug!==s})).sort(function(e){return function(t,n){return e(t)>e(n)}}(this.translateApp)).map((function(e,t){return C.a.createElement(ct,{app:e,key:t,onAppSwitch:a})}))),o&&!u&&!c&&C.a.createElement("a",{role:"menuitem",href:o.href,className:"coz-apps-home-btn"},C.a.createElement(Te,{icon:ze}),t("menu.home"))):C.a.createElement("p",{className:"coz-nav--error coz-nav-group"},t("no_apps"))}}]),n}(x.Component);ft.propTypes={homeApp:E.a.shape({isCurrentApp:E.a.bool,slug:E.a.string}),apps:E.a.array,isFetchingApps:E.a.bool.isRequired};var dt=function(e){return function(t){var n=t.namePrefix?e("".concat(t.slug,".namePrefix"),{_:t.namePrefix}):null,r=e("".concat(t.slug,".name"),{_:t.name});return n?"".concat(n," ").concat(r):"".concat(r)}},pt=Object(k.connect)((function(e){return{apps:Object(qe.d)(e),homeApp:Object(qe.f)(e),isFetchingApps:Object(qe.n)(e)}}))(Object(S.translate)()(Ge()(ft)));var ht=function(e){return C.a.createElement("svg",w()({viewBox:"0 0 16 16"},e),C.a.createElement("path",{fillRule:"evenodd",d:"M2 1c0-.552.456-1 1.002-1h9.996A1 1 0 0114 1v14c0 .552-.456 1-1.002 1H3.002A1 1 0 012 15V1zm2 1v10h8V2H4zm4 13a1 1 0 100-2 1 1 0 000 2z"}))};var mt=function(e){return C.a.createElement("svg",w()({viewBox:"0 0 16 16"},e),C.a.createElement("path",{fillRule:"evenodd",d:"M8 9c2.21 0 4-2.015 4-4.5S10.21 0 8 0 4 2.015 4 4.5 5.79 9 8 9zm-8 5c0-1 2-4 4-4s1 1 4 1 2-1 4-1 4 3 4 4 0 2-1 2H1c-1 0-1-1-1-2z"}))};var yt=function(e){return C.a.createElement("svg",w()({viewBox:"0 0 16 16"},e),C.a.createElement("path",{fillRule:"evenodd",d:"M4 6a4 4 0 118 0 4 4 0 110 8H4a4 4 0 110-8zm1 3s0 2 3 2 3-2 3-2H5z"}))};var vt=function(e){return C.a.createElement("svg",w()({viewBox:"0 0 16 16"},e),C.a.createElement("path",{fillRule:"evenodd",d:"M12.586 9H5a1 1 0 110-2h7.586l-1.293-1.293a1 1 0 111.414-1.414l3 3a1 1 0 010 1.414l-3 3a1 1 0 01-1.414-1.414L12.586 9zM0 1a1 1 0 112 0v14a1 1 0 01-2 0V1z"}))};var gt=function(e){return C.a.createElement("svg",w()({viewBox:"0 0 16 16"},e),C.a.createElement("path",{fillRule:"evenodd",d:"M8 16A8 8 0 118 0a8 8 0 010 16zm1-7.198C10.122 8.355 11 7.21 11 6c0-1.552-1.448-3-3-3S5 4.448 5 6h2c0-.448.552-1 1-1 .448 0 1 .552 1 1 0 .448-.552 1-1 1a1 1 0 00-1 1v2h2V8.802zM7 11v2h2v-2H7z"}))},bt=Object(S.translate)()((function(e){var t=e.t,n=e.data,r=Number.isInteger(n.quota)?(n.quota/1e9).toFixed(2):n.quota,o=Number.isInteger(n.usage)?(n.usage/1e9).toFixed(2):n.usage;return C.a.createElement("div",{className:"coz-nav-storage"},C.a.createElement("p",{className:"coz-nav-storage-text"},t("storage_phrase",{diskUsage:o,diskQuota:r})),C.a.createElement("progress",{className:"cozy-nav-storage-bar",value:o,max:r,min:"0"}))}));var wt=function(e){return C.a.createElement("svg",w()({width:16,height:16},e),C.a.createElement("path",{fillRule:"evenodd",d:"M1 4h14v10.004a1 1 0 01-1.007.996H2.007A1 1 0 011 14.004V4zM0 2c0-.552.445-1 1-1h14c.552 0 1 .444 1 1v1H0V2zm5 4h6v2H5V6z"}))},xt=function(e){var t=e.icon;return C.a.createElement(Te,{className:"u-mr-half",color:"var(--slateGrey)",icon:t})},Ct=function(e){var t=e.children;return C.a.createElement("ul",{className:"coz-nav-group"},t)},kt=function(e){var t=e.children;return C.a.createElement("li",{className:"coz-nav-settings-item"},t)},St=function(e){var t=e.t,n=e.onLogOut,r=e.settingsAppURL,o=e.storageData,i=e.onClaudy,a=e.isDrawer,u=void 0!==a&&a,c=e.isClaudyLoading,s=e.toggleSupport,l=e.shoulDisplayViewOfferButton,f=e.managerUrlPremiumLink,d=e.viewOfferButtonText;return C.a.createElement("div",{className:"coz-nav-pop-content"},u&&C.a.createElement("hr",null),r&&C.a.createElement(Ct,null,C.a.createElement(kt,null,C.a.createElement("a",{role:"menuitem",href:"".concat(r,"#/profile"),target:"_self",title:t("profile")},C.a.createElement(xt,{className:"u-mr-half",icon:mt}),t("profile"))),C.a.createElement(kt,null,C.a.createElement("a",{role:"menuitem",href:"".concat(r,"#/connectedDevices"),target:"_self",title:t("connectedDevices")},C.a.createElement(xt,{icon:ht}),t("connectedDevices")))),u&&i&&!Object(H.isMobileApp)()&&C.a.createElement(Ct,null,C.a.createElement(kt,null,C.a.createElement("button",{type:"button",role:"menuitem",className:"coz-nav-settings-item-btn",busy:c,onClick:i},C.a.createElement(xt,{icon:ze})," ",t("claudy.title")))),!u&&o&&C.a.createElement(Ct,null,C.a.createElement(kt,null,C.a.createElement("a",{role:"menuitem",target:"_self",title:t("storage"),href:"".concat(r,"#/storage")},C.a.createElement(xt,{icon:wt})," ",t("storage"),C.a.createElement(bt,{data:o})))),(!u||!Object(H.isMobileApp)())&&l&&C.a.createElement(Ct,null,C.a.createElement(kt,null,C.a.createElement(Ce,{subtle:!0,role:"menuitem",className:"coz-nav-settings-item-btn",icon:C.a.createElement(xt,{icon:yt}),title:d,label:d,href:f}))),!Object(H.isMobileApp)()&&C.a.createElement(Ct,null,C.a.createElement(kt,null,C.a.createElement("button",{type:"button",role:"menuitem",className:"coz-nav-settings-item-btn",onClick:s},C.a.createElement(xt,{icon:gt})," ",t("help")))),C.a.createElement(Ct,null,C.a.createElement(kt,null,C.a.createElement("button",{type:"button",role:"menuitem",onClick:n,title:t("logout")},C.a.createElement(xt,{icon:vt})," ",t("logout")))))};St.defaultProps={shoulDisplayViewOfferButton:!1},St.propTypes={shoulDisplayViewOfferButton:E.a.bool,t:E.a.func.isRequired,onLogOut:E.a.func.isRequired,settingsAppURL:E.a.string,storageData:E.a.object,onClaudy:E.a.oneOfType([E.a.bool,E.a.func]),isDrawer:E.a.bool,isClaudyLoading:E.a.bool,toggleSupport:E.a.func.isRequired,viewOfferButtonText:E.a.string};var _t=Object(S.translate)()(St);function At(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h()(this,n)}}var Ot=function(e){d()(o,e);var t,n,r=At(o);function o(e){var t;return a()(this,o),t=r.call(this,e),g()(l()(t),"onDrawerClick",(function(e){e.target===t.wrapperRef&&t.close()})),g()(l()(t),"onTransitionEnd",(function(){t.props.visible?(t.gesturesHandler||t.attachGestures(),t.preventBackgroundScrolling()):(t.restoreBackgroundScrolling(),t.setState({isClosing:!1})),t.props.drawerListener()})),g()(l()(t),"componentWillReceiveProps",function(){var e=Y()(Q.a.mark((function e(n){return Q.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.UNSAFE_componentWillReceiveProps(n);case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),g()(l()(t),"UNSAFE_componentWillReceiveProps",function(){var e=Y()(Q.a.mark((function e(n){return Q.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.props.visible||!n.visible){e.next=3;break}return e.next=3,t.props.fetchSettingsData();case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),g()(l()(t),"close",(function(){t.state.isClosing||(t.detachGestures(),t.setState((function(){return{isClosing:!0}})),t.turnTransitionsOn(),t.props.onClose(),t.asideRef.style.transform="")})),t.state={isScrolling:!1,isClosing:!1},t.handleLogout=t.handleLogout.bind(l()(t)),t}return c()(o,[{key:"componentDidMount",value:(n=Y()(Q.a.mark((function e(){return Q.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.turnTransitionsOn();case 1:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"turnTransitionsOn",value:function(){this.asideRef.classList.add("with-transition"),this.asideRef.addEventListener("transitionend",this.onTransitionEnd)}},{key:"turnTransitionsOff",value:function(){this.asideRef.classList.remove("with-transition"),this.asideRef.removeEventListener("transitionend",this.onTransitionEnd)}},{key:"preventBackgroundScrolling",value:function(){document.body.style.overflow="hidden"}},{key:"restoreBackgroundScrolling",value:function(){document.body.style.overflow="auto"}},{key:"detachGestures",value:function(){this.gesturesHandler.destroy(),this.gesturesHandler=null}},{key:"attachGestures",value:function(){var e=this;this.gesturesHandler=new Oe.a.Manager(document.documentElement,{recognizers:[[Oe.a.Pan,{direction:Oe.a.DIRECTION_ALL}]]});var t=this.asideRef.getBoundingClientRect().width,n=null;this.gesturesHandler.on("panstart",(function(t){e.state.isClosing||("panup"===t.additionalEvent||"pandown"===t.additionalEvent?e.setState({isScrolling:!0}):(e.turnTransitionsOff(),n=0))})),this.gesturesHandler.on("pan",(function(r){e.state.isClosing||e.state.isScrolling||(n=-r.deltaX/t,e.applyTransformation(n))})),this.gesturesHandler.on("panend",(function(n){if(!e.state.isClosing)if(e.state.isScrolling)e.setState({isScrolling:!1});else{var r=-n.deltaX/t>=.4,o=n.velocity<0&&Math.abs(n.velocity)>=.2;r||o?e.close():(e.turnTransitionsOn(),e.applyTransformation(0))}}))}},{key:"applyTransformation",value:function(e){e=Math.min(1.1,Math.max(0,e)),this.asideRef.style.transform="translateX(-"+100*e+"%)"}},{key:"handleLogout",value:(t=Y()(Q.a.mark((function e(){var t,n,r,o;return Q.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.props,n=t.onLogOut,r=t.logOut,!n||"function"!=typeof n){e.next=6;break}if(!((o=n())instanceof Promise)){e.next=6;break}return e.next=6,o;case 6:r();case 7:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"render",value:function(){var e=this,t=this.props,n=t.onClaudy,r=t.visible,o=t.isClaudyLoading,i=t.toggleSupport,a=t.settingsAppURL,u=t.storageData;return C.a.createElement("div",{className:"coz-drawer-wrapper",onClick:this.onDrawerClick,"aria-hidden":r?"false":"true",ref:function(t){e.wrapperRef=t}},C.a.createElement("aside",{ref:function(t){e.asideRef=t}},C.a.createElement("nav",{className:"coz-drawer--apps"},C.a.createElement(pt,{onAppSwitch:this.close})),C.a.createElement("hr",{className:"coz-sep-flex"}),C.a.createElement("nav",{className:"coz-drawer--settings"},C.a.createElement(_t,{onLogOut:this.handleLogout,storageData:u,settingsAppURL:a,isClaudyLoading:o,onClaudy:n,toggleSupport:i,isDrawer:!0}))))}}]),o}(x.Component),Et=Object(k.connect)((function(e){return{storageData:Object(qe.i)(e),settingsAppURL:Object(qe.h)(e)}}),(function(e){return{fetchSettingsData:function(){return e(Object(qe.c)())},logOut:function(){return e(Object(qe.q)())}}}))(Ot),Bt=n(32);var jt=function(e){return C.a.createElement("svg",w()({viewBox:"0 0 16 16"},e),C.a.createElement("g",{fillRule:"evenodd"},C.a.createElement("path",{d:"M14.25 7.078c.051.26.077.568.077.926 0 .358-.026.665-.078.925l1.62 1.333c.131.086.163.203.099.352-.325.95-.859 1.826-1.602 2.628-.104.124-.229.155-.37.094l-2.032-.668c-.52.396-1.08.705-1.68.926l-.409 2c-.026.146-.117.233-.273.258-.56.1-1.094.148-1.602.148a9.21 9.21 0 01-1.601-.148c-.157-.024-.248-.11-.274-.259l-.409-1.999a5.98 5.98 0 01-1.68-.926l-2.03.668c-.145.062-.268.03-.372-.094C.892 12.44.359 11.565.032 10.614c-.065-.148-.032-.266.098-.352L1.751 8.93a4.761 4.761 0 01-.078-.925c0-.358.026-.667.078-.926L.131 5.746C0 5.66-.034 5.542.031 5.394c.326-.95.86-1.826 1.602-2.627.104-.123.228-.154.371-.093l2.031.667a5.99 5.99 0 011.68-.926l.41-1.999c.025-.148.116-.234.273-.259a8.221 8.221 0 013.202 0c.156.024.247.111.273.26l.41 1.998c.6.223 1.159.53 1.68.926l2.03-.667c.143-.062.267-.03.371.093.742.802 1.276 1.678 1.602 2.627.064.148.032.266-.098.352l-1.62 1.332zM8 4.5a3.5 3.5 0 100 7 3.5 3.5 0 000-7z"}),C.a.createElement("path",{d:"M14.25 7.078c.051.26.077.568.077.926 0 .358-.026.665-.078.925l1.62 1.333c.131.086.163.203.099.352-.325.95-.859 1.826-1.602 2.628-.104.124-.229.155-.37.094l-2.032-.668c-.52.396-1.08.705-1.68.926l-.409 2c-.026.146-.117.233-.273.258-.56.1-1.094.148-1.602.148a9.21 9.21 0 01-1.601-.148c-.157-.024-.248-.11-.274-.259l-.409-1.999a5.98 5.98 0 01-1.68-.926l-2.03.668c-.145.062-.268.03-.372-.094C.892 12.44.359 11.565.032 10.614c-.065-.148-.032-.266.098-.352L1.751 8.93a4.761 4.761 0 01-.078-.925c0-.358.026-.667.078-.926L.131 5.746C0 5.66-.034 5.542.031 5.394c.326-.95.86-1.826 1.602-2.627.104-.123.228-.154.371-.093l2.031.667a5.99 5.99 0 011.68-.926l.41-1.999c.025-.148.116-.234.273-.259a8.221 8.221 0 013.202 0c.156.024.247.111.273.26l.41 1.998c.6.223 1.159.53 1.68.926l2.03-.667c.143-.062.267-.03.371.093.742.802 1.276 1.678 1.602 2.627.064.148.032.266-.098.352l-1.62 1.332zM8 4.5a3.5 3.5 0 100 7 3.5 3.5 0 000-7z"})))},Pt={query:function(){return Object(K.Q)("io.cozy.settings").getById("instance")},as:"instanceQuery"},Tt={query:function(){return Object(K.Q)("io.cozy.settings").getById("context")},as:"contextQuery"},zt={query:function(){return Object(K.Q)("io.cozy.settings").getById("disk-usage")},as:"diskUsageQuery"},It=n(139),Dt=function(){return Object(It.a)("8.3.0")};function Rt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h()(this,n)}}var Ft=void 0,Mt=void 0,Nt=void 0;K.models&&(Ft=K.models.instance,Nt=function(e){var t=He()(e,"diskUsage.data.attributes.quota",!1);return parseInt(t)<5e10},Mt=function(e){return!Ft.isSelfHosted(e)&&Ft.arePremiumLinksEnabled(e)&&Ft.getUuid(e)&&!Nt(e)});var Lt=function(e){d()(n,e);var t=Rt(n);function n(e){var r;return a()(this,n),r=t.call(this,e),g()(l()(r),"onClickOutside",(function(e){(r.props.isFetching||r.state.opened)&&(r.rootRef.contains(e.target)||(r.setState({opened:!1}),e.stopPropagation()))})),g()(l()(r),"toggleMenu",(function(){if(r.state.opened)return r.setState({opened:!1});r.props.fetchSettingsData(),r.setState({opened:!0})})),r.state={opened:!1},r}return c()(n,[{key:"componentDidMount",value:function(){document.body.addEventListener("click",this.onClickOutside)}},{key:"componentWillUnmount",value:function(){document.body.removeEventListener("click",this.onClickOutside)}},{key:"render",value:function(){var e,t,n=this,r=this.props,o=r.isBusy,i=r.logOut,a=r.onLogOut,u=r.t,c=r.toggleSupport,s=r.diskUsageQuery,l=r.instanceQuery,f=r.contextQuery,d=r.storageData,p=r.settingsAppURL,h=r.isFetching,m=!1,y="",v=Dt();if(v&&!(t=[s,l,f].some((function(e){return"loading"===e.fetchStatus})))){var g={context:f,diskUsage:s,instance:l};(m=Ft.shouldDisplayOffers(g)||Mt(g))&&!Mt(g)?y=u("view_offers"):Mt(g)&&(y=u("view_my_offer")),e=Ft.buildPremiumLink(g)}var b=!1;b=v?!t&&!h:!h;var w=this.state.opened&&b;return C.a.createElement("div",{className:"coz-nav coz-nav-settings",ref:function(e){n.rootRef=e}},C.a.createElement(xe,{type:"button",theme:"text",onClick:this.toggleMenu,className:"coz-nav-settings-btn","aria-controls":"coz-nav-pop--settings",busy:o,icon:jt,label:u("menu.settings")}),C.a.createElement("div",{className:"coz-nav-pop coz-nav-pop--settings",id:"coz-nav-pop--settings","aria-hidden":!w},b&&C.a.createElement(C.a.Fragment,null,C.a.createElement(_t,{onLogOut:function(){a&&"function"==typeof a?a():i()},toggleSupport:c,storageData:d,settingsAppURL:p,shoulDisplayViewOfferButton:m,managerUrlPremiumLink:e,viewOfferButtonText:y}))))}}]),n}(x.Component),Ut=function(e){return{storageData:Object(qe.i)(e),settingsAppURL:Object(qe.h)(e),isBusy:Object(qe.p)(e),isFetching:Object(qe.o)(e)}},$t=function(e){return{fetchSettingsData:function(){return e(Object(qe.c)())},logOut:function(){return e(Object(qe.q)())}}},Gt=Dt()?Object(Bt.d)(Object(S.translate)(),Object(K.queryConnect)({instanceQuery:Pt,contextQuery:Tt,diskUsageQuery:zt}),Object(k.connect)(Ut,$t))(Lt):Object(Bt.d)(Object(S.translate)(),Object(k.connect)(Ut,$t))(Lt);var qt=function(e){return C.a.createElement("svg",w()({viewBox:"0 0 24 24"},e),C.a.createElement("path",{d:"M3.968 6.175a1.571 1.571 0 00-2.222 2.222l9.429 9.428a1.571 1.571 0 002.222 0l9.428-9.428a1.571 1.571 0 00-2.222-2.222l-8.317 8.317-8.318-8.317z",fillRule:"evenodd"}))};var Jt=function(e){return C.a.createElement("svg",w()({viewBox:"0 0 24 24"},e),C.a.createElement("path",{d:"M20.603 17.825a1.571 1.571 0 002.222-2.222l-9.428-9.428a1.571 1.571 0 00-2.222 0l-9.429 9.428a1.571 1.571 0 002.222 2.222l8.318-8.317 8.317 8.317z",fillRule:"evenodd"}))};function Ht(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h()(this,n)}}var Wt=function(e){d()(n,e);var t=Ht(n);function n(){return a()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props,t=e.homeApp,n=e.handleClick,r=e.appName,o=e.appNamePrefix,i=e.appSlug,a=e.iconPath,u=e.isFetchingApps,c=e.isPublic,s=e.opened,l=e.t,f=t&&t.isCurrentApp;if(!c&&u)return C.a.createElement("div",{className:"coz-nav-apps-btns --loading"},C.a.createElement("div",{className:"coz-nav-apps-btns-home coz-loading-placeholder"}),C.a.createElement("div",{className:"coz-nav-apps-btns-main coz-loading-placeholder"}));var d=!f&&o?[l("".concat(i,".name_prefix"),{_:o}),l("".concat(i,".name"),{_:r})].join(" "):l("".concat(i,".name"),{_:r}),p=!c&&t&&t.href;return C.a.createElement("div",{className:"coz-nav-apps-btns".concat(f?" --currentHome":"")},C.a.createElement(fe,{homeHref:p}),!f&&C.a.createElement("span",{className:"coz-nav-apps-btns-sep"}),C.a.createElement("button",{type:"button",onClick:c?null:n,className:"coz-nav-apps-btns-main","aria-controls":"coz-nav-pop--apps","data-tutorial":"apps",disabled:c},!f&&C.a.createElement("img",{className:"coz-bar-hide-sm",src:a,width:"28",alt:""}),C.a.createElement("span",{className:"coz-nav-app-name"},d),!c&&C.a.createElement(R,{icon:s?Jt:qt,color:"#95999d",size:"12"})))}}]),n}(x.Component),Qt=Object(k.connect)((function(e){return{homeApp:Object(qe.f)(e),isFetchingApps:Object(qe.n)(e)}}),(function(){return{}}))(Object(S.translate)()(Wt));function Vt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h()(this,n)}}var Yt=function(e){d()(n,e);var t=Vt(n);function n(e){var r;return a()(this,n),r=t.call(this,e),g()(l()(r),"onClickOutside",(function(e){r.state.opened&&(r.rootRef.contains(e.target)||r.modalContainer.contains(e.target)||(r.setState({opened:!1}),e.stopPropagation()))})),g()(l()(r),"toggleMenu",(function(){r.setState({opened:!r.state.opened})})),r.state={opened:!1},r}return c()(n,[{key:"componentDidMount",value:function(){document.body.addEventListener("click",this.onClickOutside),this.modalContainer=document.getElementById("cozy-bar-modal-dom-place")}},{key:"componentWillUnmount",value:function(){document.body.removeEventListener("click",this.onClickOutside)}},{key:"render",value:function(){var e=this,t=this.props,n=t.appName,r=t.appNamePrefix,o=t.appSlug,i=t.iconPath,a=t.isPublic,u=this.state.opened;return C.a.createElement("nav",{className:"coz-nav coz-nav-apps",ref:function(t){e.rootRef=t}},C.a.createElement(Qt,{appName:n,appNamePrefix:r,appSlug:o,iconPath:i,handleClick:this.toggleMenu,opened:u,isPublic:a}),C.a.createElement("div",{className:"coz-nav-pop coz-nav-pop--apps",id:"coz-nav-pop--apps","aria-hidden":!u},C.a.createElement(pt,null)))}}]),n}(x.Component),Kt=n(31),Zt=n.n(Kt),Xt=n(337),en=n.n(Xt),tn=n(338),nn=n.n(tn);var rn=n(138);function on(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h()(this,n)}}var an=function(e){return e.toString().toLowerCase().replace(/\//g," ").normalize("NFD").replace(/[\u0300-\u036f]/g,"").split(" ")},un=function(e,t){var n=an(t),r=an(e),o=[],i=0;r.forEach((function(e){n.forEach((function(t){var n=e.indexOf(t);n>=0&&o.push({from:i+n,to:i+n+t.length})})),i+=e.length+1}));for(var a=o.sort((function(e,t){return e.from>t.from})).reduce((function(e,t){return 0===e.length||e[e.length-1].to<t.from?e.push(t):e[e.length-1].to<t.to&&(e[e.length-1].to=t.to),e}),[]),u=a.length>0?[e.slice(0,a[0].from)]:e,c=0,s=a.length;c<s;++c)u.push(C.a.createElement("b",null,e.slice(a[c].from,a[c].to))),c+1<s&&u.push(e.slice(a[c].to,a[c+1].from));return a.length>0&&u.push(e.slice(a[a.length-1].to,e.length)),u},cn=function(e){d()(n,e);var t=on(n);function n(){var e;a()(this,n);for(var r=arguments.length,i=new Array(r),u=0;u<r;u++)i[u]=arguments[u];return e=t.call.apply(t,[this].concat(i)),g()(l()(e),"state",{input:"",query:null,searching:!1,focused:!1,suggestionsBySource:[],sourceURLs:[]}),g()(l()(e),"sources",[]),g()(l()(e),"onMessageFromSource",(function(e){return function(t){var n=e.find((function(e){return e.origin===t.origin}));if(!n)return null;t.data.type==="intent-".concat(n.id,":ready")?(n.ready=!0,n.window=t.source,n.window.postMessage({},t.origin)):t.data.type==="intent-".concat(n.id,":data")&&n.resolvers[t.data.id]?(n.resolvers[t.data.id]({id:n.id,suggestions:t.data.suggestions}),delete n.resolvers[t.data.id]):rn.a.log("unhandled message:",t)}})),g()(l()(e),"onChange",(function(t,n){var r=n.newValue;e.setState({input:r})})),g()(l()(e),"changeFocusState",(function(t){e.setState({focused:t})})),g()(l()(e),"clearSuggestions",(function(){e.setState({suggestionsBySource:[]})})),g()(l()(e),"onSuggestionsFetchRequested",(function(t){var n=t.value,r=e.sources.filter((function(e){return e.ready}));r.length>0&&(e.setState((function(e){return o()({},e,{searching:!0})})),r.forEach(function(){var t=Y()(Q.a.mark((function t(r){var i,a,u,c;return Q.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,new Promise((function(e){var t=(new Date).getTime().toString();r.resolvers[t]=e,r.window.postMessage({query:n,id:t},r.origin)}));case 2:i=t.sent,a=i.id,u=i.suggestions,c=e.sources.find((function(e){return e.id===a})).slug,e.state.query!==n?e.setState((function(e){return o()({},e,{searching:!1,query:n,suggestionsBySource:[{title:c,suggestions:u}]})})):e.setState((function(e){return o()({},e,{suggestionsBySource:[].concat(Zt()(e.suggestionsBySource),[{title:c,suggestions:u}])})}));case 7:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()))})),g()(l()(e),"onSuggestionsClearRequested",(function(){e.clearSuggestions(),e.debouncedOnSuggestionsFetchRequested.cancel(),e.setState({query:null,searching:!1})})),g()(l()(e),"onSuggestionSelected",(function(t,n){var r=n.suggestion.onSelect;if(/^open:/.test(r)){var o=r.substr(5);window.location.href=o}else console.log("suggestion onSelect ("+r+") could not be executed");e.setState({input:"",query:null})})),g()(l()(e),"getSectionSuggestions",(function(e){return e.suggestions.slice(0,10)})),g()(l()(e),"getSuggestionValue",(function(e){return e.subtitle})),g()(l()(e),"renderSectionTitle",(function(){return null})),g()(l()(e),"renderSuggestion",(function(t){return C.a.createElement("div",{className:"coz-searchbar-autosuggest-suggestion-item"},t.icon&&C.a.createElement("img",{className:"coz-searchbar-autosuggest-suggestion-icon",src:t.icon,alt:"icon"}),C.a.createElement("div",{className:"coz-searchbar-autosuggest-suggestion-content"},C.a.createElement("div",{className:"coz-searchbar-autosuggest-suggestion-title"},un(t.title,e.state.query)),t.subtitle&&C.a.createElement("div",{className:"coz-searchbar-autosuggest-suggestion-subtitle"},un(t.subtitle,e.state.query))))})),e}return c()(n,[{key:"componentWillMount",value:function(){this.debouncedOnSuggestionsFetchRequested=nn()(this.onSuggestionsFetchRequested,250)}},{key:"componentDidMount",value:function(){var e=this;(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];return Object(ue.a)(null,"POST","/intents",{data:{type:"io.cozy.intents",attributes:{action:e,type:t,data:n,permissions:r}}})})("OPEN","io.cozy.suggestions").then((function(t){var n=t.attributes.services;if(!n)return null;e.sources=n.map((function(n){var r=n.href;e.setState((function(e){return o()({},e,{sourceURLs:[].concat(Zt()(e.sourceURLs),[r])})}));var i=r.split("/",3).join("/");return{slug:n.slug,origin:i,id:t._id,ready:!1,window:null,resolvers:{}}})),window.addEventListener("message",e.onMessageFromSource(e.sources))}))}},{key:"render",value:function(){var e=this,t=this.state,n=t.input,r=t.query,o=t.searching,i=t.focused,a=t.suggestionsBySource,u=t.sourceURLs;if(0===u.length)return null;var c=this.props.t,s=""!==n&&null===r,l=a.reduce((function(e,t){return e+t.suggestions.length}),0)>0,f={placeholder:c("searchbar.placeholder"),value:n,onChange:this.onChange,onFocus:function(){return e.changeFocusState(!0)},onBlur:function(){return e.changeFocusState(!1)}},d={container:"coz-searchbar-autosuggest-container"+(o?" --searching":"")+(i?" --focused":""),input:"coz-searchbar-autosuggest-input",inputFocused:"coz-searchbar-autosuggest-input-focused",suggestionsContainer:"coz-searchbar-autosuggest-suggestions-container",suggestionsContainerOpen:"coz-searchbar-autosuggest-suggestions-container--open",suggestionsList:"coz-searchbar-autosuggest-suggestions-list",suggestion:"coz-searchbar-autosuggest-suggestion",suggestionHighlighted:"coz-searchbar-autosuggest-suggestion-highlighted",sectionTitle:"coz-searchbar-autosuggest-section-title"};return C.a.createElement("div",{className:"coz-searchbar",role:"search"},u.map((function(e,t){return C.a.createElement("iframe",{src:e,style:{visibility:"hidden",height:"0px",width:"0px"},key:e+t})})),C.a.createElement(en.a,{theme:d,suggestions:a,multiSection:!0,onSuggestionsFetchRequested:this.debouncedOnSuggestionsFetchRequested,onSuggestionsClearRequested:this.onSuggestionsClearRequested,onSuggestionSelected:this.onSuggestionSelected,getSuggestionValue:this.getSuggestionValue,getSectionSuggestions:this.getSectionSuggestions,renderSectionTitle:this.renderSectionTitle,renderSuggestion:this.renderSuggestion,inputProps:f,focusInputOnSuggestionClick:!1}),""!==n&&!s&&i&&!l&&C.a.createElement("div",{className:"coz-searchbar-autosuggest-status-container"},c("searchbar.empty",{query:n})))}}]),n}(x.Component),sn=Object(S.translate)()(cn);function ln(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h()(this,n)}}var fn=function(e){d()(n,e);var t=ln(n);function n(e,r){var o;return a()(this,n),o=t.call(this,e),g()(l()(o),"toggle",(function(){o.props.opened||o.intentWrapperRef.childNodes.length?(o.setState({isActive:!o.state.isActive}),o.props.onToggle()):(o.setState({isLoading:!0}),o.intents.create("CLAUDY","io.cozy.settings",{exposeIntentFrameRemoval:!0}).start(o.intentWrapperRef,(function(){o.setState({isLoading:!1,isActive:!0}),o.props.onToggle()})).then((function(e){var t=e.removeIntentIframe;o.intentWrapperRef.addEventListener("transitionend",(function e(n){"transform"===n.propertyName&&(t(),o.setState({isActive:!1}),n.target.removeEventListener("transitionend",e))}),!1),o.props.onToggle()})))})),o.store=r.barStore,o.state={isLoading:!1,isActive:!1},o.intents=Object(ue.c)(),o}return c()(n,[{key:"UNSAFE_componentWillReceiveProps",value:function(e){e.claudyFired&&this.toggle()}},{key:"componentWillReceiveProps",value:function(e){return this.UNSAFE_componentWillReceiveProps(e)}},{key:"render",value:function(){var e=this,t=this.props.opened,n=this.state,r=n.isLoading,o=n.isActive;return C.a.createElement("div",{className:"coz-claudy ".concat(t?"coz-claudy--opened":"")},C.a.createElement("button",{type:"button",className:"coz-claudy-icon coz-bar-hide-sm","data-claudy-opened":o,"data-claudy-loading":r,onClick:this.toggle}),C.a.createElement("div",{className:"coz-claudy-intent-wrapper",ref:function(t){e.intentWrapperRef=t}}))}}]),n}(x.Component),dn=n(340),pn=n.n(dn),hn=n(76),mn=n.n(hn);var yn=function(){return(yn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function vn(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function gn(e){return e}function bn(e,t){void 0===t&&(t=gn);var n=[],r=!1;return{read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter((function(e){return e!==o}))}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var i=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),n={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),n}}}}}var wn=function(e){void 0===e&&(e={});var t=bn(null);return t.options=yn({async:!0,ssr:!1},e),t}();function xn(e,t){return n=t,r=function(t){return e.forEach((function(e){return function(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}(e,t)}))},(o=Object(x.useState)((function(){return{value:n,callback:r,facade:{get current(){return o.value},set current(e){var t=o.value;t!==e&&(o.value=e,o.callback(e,t))}}}}))[0]).callback=r,o.facade;var n,r,o}var Cn=function(){},kn=x.forwardRef((function(e,t){var n=x.useRef(null),r=x.useState({onScrollCapture:Cn,onWheelCapture:Cn,onTouchMoveCapture:Cn}),o=r[0],i=r[1],a=e.forwardProps,u=e.children,c=e.className,s=e.removeScrollBar,l=e.enabled,f=e.shards,d=e.sideCar,p=e.noIsolation,h=e.inert,m=e.allowPinchZoom,y=e.as,v=void 0===y?"div":y,g=vn(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),b=d,w=xn([n,t]),C=yn({},g,o);return x.createElement(x.Fragment,null,l&&x.createElement(b,{sideCar:wn,removeScrollBar:s,shards:f,noIsolation:p,inert:h,setCallbacks:i,allowPinchZoom:!!m,lockRef:n}),a?x.cloneElement(x.Children.only(u),yn({},C,{ref:w})):x.createElement(v,yn({},C,{className:c,ref:w}),u))}));kn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},kn.classNames={fullWidth:"width-before-scroll-bar",zeroRight:"right-scroll-bar-position"};var Sn,_n=function(e){var t=e.sideCar,n=vn(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return x.createElement(r,yn({},n))};_n.isSideCarExport=!0;function An(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Sn||n.nc;return t&&e.setAttribute("nonce",t),e}var On=function(){var e=0,t=null;return{add:function(n){var r,o;0==e&&(t=An())&&(o=n,(r=t).styleSheet?r.styleSheet.cssText=o:r.appendChild(document.createTextNode(o)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){!--e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},En=function(){var e,t=(e=On(),function(t){x.useEffect((function(){return e.add(t),function(){e.remove()}}),[])});return function(e){var n=e.styles;return t(n),null}},Bn={left:0,top:0,right:0,gap:0},jn=function(e){return parseInt(e||"",10)||0},Pn=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return Bn;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[jn(n),jn(r),jn(o)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Tn=En(),zn=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,u=e.gap;return void 0===n&&(n="margin"),"\n .with-scroll-bars-hidden {\n overflow: hidden "+r+";\n padding-right: "+u+"px "+r+";\n }\n body {\n overflow: hidden "+r+";\n "+[t&&"position: relative "+r+";","margin"===n&&"\n padding-left: "+o+"px;\n padding-top: "+i+"px;\n padding-right: "+a+"px;\n margin-left:0;\n margin-top:0;\n margin-right: "+u+"px "+r+";\n ","padding"===n&&"padding-right: "+u+"px "+r+";"].filter(Boolean).join("")+"\n }\n \n .right-scroll-bar-position {\n right: "+u+"px "+r+";\n }\n \n .width-before-scroll-bar {\n margin-right: "+u+"px "+r+";\n }\n \n .right-scroll-bar-position .right-scroll-bar-position {\n right: 0 "+r+";\n }\n \n .width-before-scroll-bar .width-before-scroll-bar {\n margin-right: 0 "+r+";\n }\n"},In=function(e){var t=x.useState(Pn(e.gapMode)),n=t[0],r=t[1];x.useEffect((function(){r(Pn(e.gapMode))}),[e.gapMode]);var o=e.noRelative,i=e.noImportant,a=e.gapMode,u=void 0===a?"margin":a;return x.createElement(Tn,{styles:zn(n,!o,u,i?"":"!important")})},Dn=function(e,t){var n=t;do{if(Rn(e,n)){var r=Fn(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},Rn=function(e,t){return"v"===e?function(e){var t=window.getComputedStyle(e);return"hidden"!==t.overflowY&&!(t.overflowY===t.overflowX&&"visible"===t.overflowY)}(t):function(e){var t=window.getComputedStyle(e);return"hidden"!==t.overflowX&&!(t.overflowY===t.overflowX&&"visible"===t.overflowX)}(t)},Fn=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},Mn=!1;if("undefined"!=typeof window)try{var Nn=Object.defineProperty({},"passive",{get:function(){return Mn=!0,!0}});window.addEventListener("test",Nn,Nn),window.removeEventListener("test",Nn,Nn)}catch(e){Mn=!1}var Ln=!!Mn&&{passive:!1},Un=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},$n=function(e){return[e.deltaX,e.deltaY]},Gn=function(e){return e&&"current"in e?e.current:e},qn=function(e){return"\n .block-interactivity-"+e+" {pointer-events: none;}\n .allow-interactivity-"+e+" {pointer-events: all;}\n"},Jn=0,Hn=[];var Wn=function(e,t){return e.useMedium(t),_n}(wn,(function(e){var t=x.useRef([]),n=x.useRef([0,0]),r=x.useRef(),o=x.useState(Jn++)[0],i=x.useState((function(){return En()}))[0],a=x.useRef(e);x.useEffect((function(){a.current=e}),[e]),x.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-"+o);var t=[e.lockRef.current].concat((e.shards||[]).map(Gn)).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-"+o)})),function(){document.body.classList.remove("block-interactivity-"+o),t.forEach((function(e){return e.classList.remove("allow-interactivity-"+o)}))}}}),[e.inert,e.lockRef.current,e.shards]);var u=x.useCallback((function(e,t){if("touches"in e&&2===e.touches.length)return!a.current.allowPinchZoom;var o,i=Un(e),u=n.current,c="deltaX"in e?e.deltaX:u[0]-i[0],s="deltaY"in e?e.deltaY:u[1]-i[1],l=e.target,f=Math.abs(c)>Math.abs(s)?"h":"v",d=Dn(f,l);if(!d)return!0;if(d?o=f:(o="v"===f?"h":"v",d=Dn(f,l)),!d)return!1;if(!r.current&&"changedTouches"in e&&(c||s)&&(r.current=o),!o)return!0;var p=r.current||o;return function(e,t,n,r,o){var i=r,a=n.target,u=t.contains(a),c=!1,s=i>0,l=0,f=0;do{var d=Fn(e,a),p=d[0],h=d[1]-d[2]-p;(p||h)&&Rn(e,a)&&(l+=h,f+=p),a=a.parentNode}while(!u&&a!==document.body||u&&(t.contains(a)||t===a));return(s&&(o&&0===l||!o&&i>l)||!s&&(o&&0===f||!o&&-i>f))&&(c=!0),c}(p,t,e,"h"===p?c:s,!0)}),[]),c=x.useCallback((function(e){var n=e;if(Hn.length&&Hn[Hn.length-1]===i){var r="deltaY"in n?$n(n):Un(n),o=t.current.filter((function(e){return e.name===n.type&&e.target===n.target&&(t=e.delta,o=r,t[0]===o[0]&&t[1]===o[1]);var t,o}))[0];if(o&&o.should)n.preventDefault();else if(!o){var c=(a.current.shards||[]).map(Gn).filter(Boolean).filter((function(e){return e.contains(n.target)}));(c.length>0?u(n,c[0]):!a.current.noIsolation)&&n.preventDefault()}}}),[]),s=x.useCallback((function(e,n,r,o){var i={name:e,delta:n,target:r,should:o};t.current.push(i),setTimeout((function(){t.current=t.current.filter((function(e){return e!==i}))}),1)}),[]),l=x.useCallback((function(e){n.current=Un(e),r.current=void 0}),[]),f=x.useCallback((function(t){s(t.type,$n(t),t.target,u(t,e.lockRef.current))}),[]),d=x.useCallback((function(t){s(t.type,Un(t),t.target,u(t,e.lockRef.current))}),[]);x.useEffect((function(){return Hn.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:d}),document.addEventListener("wheel",c,Ln),document.addEventListener("touchmove",c,Ln),document.addEventListener("touchstart",l,Ln),function(){Hn=Hn.filter((function(e){return e!==i})),document.removeEventListener("wheel",c,Ln),document.removeEventListener("touchmove",c,Ln),document.removeEventListener("touchstart",l,Ln)}}),[]);var p=e.removeScrollBar,h=e.inert;return x.createElement(x.Fragment,null,h?x.createElement(i,{styles:qn(o)}):null,p?x.createElement(In,{gapMode:"margin"}):null)})),Qn=x.forwardRef((function(e,t){return x.createElement(kn,yn({},e,{ref:t,sideCar:Wn}))}));Qn.classNames=kn.classNames;var Vn=Qn;function Yn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h()(this,n)}}var Kn=["onEscape","children","className"],Zn=function(e){d()(n,e);var t=Yn(n);function n(){var e;a()(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),g()(l()(e),"handleKeydown",(function(t){27===t.keyCode&&e.props.onEscape()})),g()(l()(e),"handleClick",(function(t){e.props.onClick&&t.target===t.currentTarget&&e.props.onClick()})),e}return c()(n,[{key:"componentDidMount",value:function(){this.props.onEscape&&document.addEventListener("keydown",this.handleKeydown)}},{key:"componentWillUnmount",value:function(){this.props.onEscape&&document.removeEventListener("keydown",this.handleKeydown)}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,r=mn()(this.props,Kn),o=document.body.getBoundingClientRect().height>window.innerHeight?C.a.Fragment:Vn;return C.a.createElement("div",w()({onClick:this.handleClick,className:T()(pn.a["c-overlay"],n)},r),C.a.createElement(o,null,t))}}]),n}(x.Component);Zn.propTypes={className:E.a.string,children:E.a.node,onEscape:E.a.func};var Xn=Zn;function er(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return tr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tr(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function tr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var nr=n(101),rr=n.n(nr),or=function(e){var t=e.into,n=e.children,r=document.querySelector(t);return rr.a.createPortal(n,r)},ir=n(339),ar=n.n(ir),ur=n(16),cr=n.n(ur);function sr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h()(this,n)}}var lr=function(e){d()(n,e);var t=sr(n);function n(){return a()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){return this.props.children}}]),n}(x.Component);function fr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h()(this,n)}}var dr=function(e){d()(n,e);var t=fr(n);function n(e){var r;a()(this,n),r=t.call(this,e),g()(l()(r),"UNSAFE_componentWillUpdate",(function(e){var t=e.children;r.refreshComputedParts(t)})),g()(l()(r),"handleScroll",(function(){if(r.contentHeader){var e=l()(r).headerHeight;e||!r.contentHeader.clientHeight?!r.state.displayGhostHeader&&r.scrollingContent.scrollTop>e-20?r.setState((function(){return{displayGhostHeader:!0}})):r.state.displayGhostHeader&&r.scrollingContent.scrollTop<e-20&&r.setState((function(){return{displayGhostHeader:!1}})):r.headerHeight=r.contentHeader.clientHeight}}));var o=r.props.children;return r.refreshComputedParts(o),r.state={displayGhostHeader:!1},r}return c()(n,[{key:"componentWillUpdate",value:function(e,t){this.UNSAFE_componentWillUpdate(e,t)}},{key:"refreshComputedParts",value:function(e){var t=function(e){return C.a.Children.toArray(e).find((function(e){return e&&e.nodeName===lr}))}(e);this.animatedHeader=t,this.childrenToRender=t?function(e){return C.a.Children.map(e,(function(e){return e&&e.nodeName!==lr?e:null}))}(e):e}},{key:"componentDidMount",value:function(){this.scrollingContent.addEventListener("scroll",this.handleScroll,{passive:!0})}},{key:"componentWillUnmount",value:function(){this.scrollingContent.removeEventListener("scroll",this.handleScroll)}},{key:"render",value:function(){var e=this,t=this.props,n=t.className,r=t.fixed,o=this.state.displayGhostHeader,i=this.animatedHeader,a=this.childrenToRender;return C.a.createElement("div",{className:T()(cr.a["c-modal-content".concat(r?"-fixed":"")],n),ref:function(t){e.scrollingContent=t}},i&&C.a.createElement("div",{className:i.attributes.className,ref:function(t){e.contentHeader=t}},C.a.createElement("h2",{className:cr.a["c-modal-illu-header"]},i.children),C.a.createElement("div",{className:T()(cr.a["c-modal-illu-header--ghost"],i.attributes.activeClassName,g()({},cr.a["is-active"],o))},i.children)),a)}}]),n}(x.Component),pr=function(e){var t=e.children,n=e.className;return C.a.createElement("div",{className:T()(cr.a["c-modal-content"],cr.a["c-modal-section"],n)},t)},hr=function(e){var t=e.title,n=e.children,r=e.className,o=e.appIcon,i=e.appName,a=e.appEditor,u=e.style,c=e.id,s="string"==typeof n;return C.a.createElement("div",{className:T()(cr.a["c-modal-header"],r),style:u,id:c},t&&C.a.createElement("h2",null,t),s?C.a.createElement("h2",null,n):n,i&&C.a.createElement("h2",{className:cr.a["c-modal-app"]},o&&C.a.createElement("img",{className:cr.a["c-modal-app-icon"],src:o}),a&&C.a.createElement("span",{className:cr.a["c-app-editor"]},a," "),i))},mr=function(e){var t=e.logo,n=e.bg,r=e.className,i=e.style,a=void 0===i?{}:i;return C.a.createElement("h2",{className:T()(cr.a["c-modal-header--branded"],r),style:o()({background:n},a)},C.a.createElement("img",{src:t,alt:""}))};var yr=function(e){return C.a.createElement("svg",w()({viewBox:"0 0 24 24"},e),C.a.createElement("path",{fillRule:"evenodd",d:"M10.586 12L.293 1.707A1 1 0 011.707.293L12 10.586 22.293.293a1 1 0 011.414 1.414L13.414 12l10.293 10.293a1 1 0 01-1.414 1.414L12 13.414 1.707 23.707a1 1 0 01-1.414-1.414L10.586 12z"}))},vr=Object(x.createContext)(null),gr=function(){var e=Object(x.useContext)(vr);if(null===e)throw new Error("Cannot use useBreakpoints without BreakpointsProvider. The component must have a BreakpointsProvider above it.");return e},br=function(e){var t=gr().isMobile,n=e.color;return C.a.createElement(R,{icon:yr,size:t?"16":"24",color:n||ne.a.coolGrey})},wr=function(e){var t=e.onClick,n=e.color,r=e.className;return C.a.createElement("button",{className:T()(cr.a["c-modal-close"],r),onClick:t,type:"button","aria-label":"close"},C.a.createElement(br,{color:n}))},xr=function(e){var t=e.children,n=e.className;return C.a.createElement("div",{className:T()(cr.a["c-modal-footer"],n)},t)},Cr=function(e){var t=e.secondaryText,n=e.secondaryAction,r=e.secondaryType,o=e.primaryText,i=e.primaryAction,a=e.primaryType,u=e.children,c=e.className;return C.a.createElement("div",{className:T()("u-flex","u-flex-wrap-reverse","u-flex-justify-end",cr.a["c-modal-footer--button"],c)},u,t&&n&&C.a.createElement(xe,{theme:r,onClick:n,label:t,className:"u-flex-auto-s"}),o&&i&&C.a.createElement(xe,{theme:a,onClick:i,label:o,className:"u-flex-auto-s"}))};Cr.defaultProps={primaryType:"regular",secondaryType:"secondary"};var kr=Cr;var Sr=function(e){return C.a.createElement("svg",w()({viewBox:"0 0 16 16"},e),C.a.createElement("path",{d:"M3.414 7h11.58C15.548 7 16 7.444 16 8c0 .552-.45 1-1.007 1H3.414l5.293 5.293a1 1 0 01-1.414 1.414l-7-7a1 1 0 010-1.414l7-7a1 1 0 111.414 1.414L3.414 7z",fillRule:"evenodd"}))},_r=function(e){var t=gr().isMobile,n=e.className,r=A()(e,["className"]);return C.a.createElement(xe,w()({icon:Sr,iconOnly:!0,extension:"narrow",theme:"text",label:"back",className:T()(cr.a["c-modal-back-button"],"u-m-0 u-pos-absolute",{"u-p-1":t,"u-p-half":!t,"u-h-3":t},n)},r))};function Ar(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h()(this,n)}}var Or=dr,Er=function(e){d()(n,e);var t=Ar(n);function n(e){var r;return a()(this,n),r=t.call(this,e),g()(l()(r),"handleOutsideClick",(function(e){e.target===e.currentTarget&&r.props.dismissAction&&r.props.dismissAction()})),r.titleID=ar()("modal_"),r}return c()(n,[{key:"componentDidMount",value:function(){this.props.title||this.props["aria-label"]||console.warn("If your modal does not provide a `title` prop, please provide the `aria-label` prop for a11y purposes."),document.body.classList.contains("has-modal")||(document.body.classList.add("has-modal"),this.shouldRemoveBodyClass=!0)}},{key:"componentWillUnmount",value:function(){this.shouldRemoveBodyClass&&document.body.classList.remove("has-modal")}},{key:"render",value:function(){var e,t=this.props,n=t.children,r=t.description,o=t.title,i=t.closable,a=t.dismissAction,u=t.overflowHidden,c=t.className,s=t.closeBtnClassName,l=t.closeBtnColor,f=t.into,d=t.size,p=t.height,h=t.width,m=t.spacing,y=t.mobileFullscreen,v=t.overlayClassName,b=t.wrapperClassName,x=t.primaryText,k=t.primaryAction,S=t.primaryType,_=t.secondaryText,O=t.secondaryAction,E=t.secondaryType,B=t.containerClassName,j=A()(t,["children","description","title","closable","dismissAction","overflowHidden","className","closeBtnClassName","closeBtnColor","into","size","height","width","spacing","mobileFullscreen","overlayClassName","wrapperClassName","primaryText","primaryAction","primaryType","secondaryText","secondaryAction","secondaryType","containerClassName"]),P=this.titleID,z=Object.assign({},p&&{height:p},h&&{width:h});return C.a.createElement(or,{into:f},C.a.createElement("div",{className:T()(cr.a["c-modal-container"],B)},C.a.createElement(Xn,{onEscape:i?a:void 0,className:v},C.a.createElement("div",{className:T()(cr.a["c-modal-wrapper"],g()({},cr.a["c-modal-wrapper--fullscreen"],y),b),onClick:i?this.handleOutsideClick:void 0},C.a.createElement("div",w()({className:T()(cr.a["c-modal"],cr.a["c-modal--".concat(d)],(e={},g()(e,cr.a["c-modal--overflowHidden"],u),g()(e,cr.a["c-modal--".concat(m,"-spacing")],m),g()(e,cr.a["c-modal--fullscreen"],y),g()(e,cr.a["c-modal--closable"],i),e),c),style:z,role:"dialog","aria-modal":"true","aria-labelledby":o?P:null},j),i&&C.a.createElement(wr,{className:T()(s,g()({},cr.a["c-modal-close--notitle"],!o)),onClick:a,color:l}),o&&C.a.createElement(hr,{title:o,id:P}),r&&C.a.createElement(Or,null,r),n,x&&k||_&&O?C.a.createElement(xr,null,C.a.createElement(kr,{primaryText:x,primaryAction:k,primaryType:S,secondaryText:_,secondaryAction:O,secondaryType:E})):null)))))}}]),n}(x.Component);Er.propTypes={title:E.a.node,description:E.a.node,secondaryType:E.a.string,secondaryText:E.a.string,secondaryAction:E.a.func,primaryType:E.a.string,primaryText:E.a.string,primaryAction:E.a.func,closable:E.a.bool,overflowHidden:E.a.bool,className:E.a.string,closeBtnClassName:E.a.string,closeBtnColor:E.a.string,into:E.a.string,size:E.a.oneOf(["xsmall","small","medium","large","xlarge","xxlarge"]),height:E.a.string,width:E.a.string,spacing:E.a.oneOf(["small","large"]),mobileFullscreen:E.a.bool,overlayClassName:E.a.string,wrapperClassName:E.a.string,containerClassName:E.a.string,dismissAction:E.a.func},Er.defaultProps={primaryType:"regular",secondaryType:"secondary",closable:!0,overflowHidden:!1,size:"small",into:"body",mobileFullscreen:!1},mr.propTypes={bg:E.a.string.isRequired,logo:E.a.string.isRequired},hr.propTypes={appIcon:E.a.string,appEditor:E.a.string,appName:E.a.string},dr.propTypes={iconSrc:E.a.node,iconDest:E.a.node,fixed:E.a.bool};var Br,jr=(Br=[{src:"withCross",dest:"closable"},{src:"crossClassName",dest:"closeBtnClassName"},{src:"crossColor",dest:"closeBtnColor"},{fn:function(e){var t;return e.secondaryAction&&!e.dismissAction?((t=o()({},e)).dismissAction=e.secondaryAction,[t,"In the future, `secondaryAction` will not be bound to closing actions (clicking on cross, clicking outside), please use `dismissAction` for that"]):[e,null]}}],function(e){var t=function(t){var n=function(e,t){var n,r,i,a=er(t);try{for(a.s();!(i=a.n()).done;){var u=i.value;if(u.src&&u.dest){var c=u.src,s=u.dest;if(void 0===e[c])continue;(n=n||o()({},e))[s]=e[c],delete n[c],r="`".concat(c,"` is deprecated and has been migrated automatically, you should use `").concat(s,"` now")}else if(u.fn){var l=u.fn(n||e);if(2!==l.length)throw new Error("migrateOption `fn` should return [newProps, msg].");var f=Fe()(l,2);n=f[0],r=f[1]}else console.warn("migrateProps option is not valid, valid properties are `src`, `dest`, `fn`. You passed",u);window.SHOW_DEPRECATION_WARNINGS&&r&&(console.warn("Deprecation: ".concat(r)),r=null)}}catch(e){a.e(e)}finally{a.f()}return n||e}(t,Br);return C.a.createElement(e,n)};return t.displayName=e.displayName||e.name,t})(Er);jr.propTypes=Er.propTypes,jr.defaultProps=Er.defaultProps,Object.assign(jr,{ModalContent:dr,ModalSection:pr,ModalFooter:xr,ModalHeader:hr,AnimatedContentHeader:lr,ModalBrandedHeader:mr,ModalDescription:Or,ModalBackButton:_r});var Pr=jr,Tr=n(341),zr=n.n(Tr).a;var Ir=function(e){return C.a.createElement("svg",w()({viewBox:"0 0 32 32"},e,{role:"progressbar","aria-busy":"true"}),C.a.createElement("path",{opacity:.25,d:"M16 0a16 16 0 000 32 16 16 0 000-32m0 4a12 12 0 010 24 12 12 0 010-24"}),C.a.createElement("path",{d:"M16 0a16 16 0 0116 16h-4A12 12 0 0016 4z"}))},Dr=n(143),Rr=n.n(Dr),Fr=function(e){var t,n=e.t,r=e.loadingType,o=e.middle,i=e.noMargin,a=e.color,u=e.size,c=e.className,s={tiny:8,small:12,medium:16,large:24,xlarge:36,xxlarge:80}[u];return C.a.createElement("div",{className:T()(Rr.a["c-spinner"],(t={},g()(t,Rr.a["c-spinner--middle"],o),g()(t,Rr.a["c-spinner--nomargin"],i),t),c)},C.a.createElement(R,{icon:Ir,color:a,spin:!0,size:s}),r&&C.a.createElement(zr,{variant:"body1",color:"textSecondary",component:"p"},n("loading.".concat(r))))};Fr.propTypes={loadingType:E.a.string,middle:E.a.bool,noMargin:E.a.bool,color:E.a.string,size:E.a.oneOf(["tiny","small","medium","large","xlarge","xxlarge"]),className:E.a.string},Fr.defaultProps={loadingType:"",middle:!1,noMargin:!1,color:"var(--spinnerColor)",size:"medium",className:""};var Mr=Object(S.translate)()(Fr);function Nr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h()(this,n)}}var Lr=function(e){d()(n,e);var t=Nr(n);function n(e,r){var o;return a()(this,n),o=t.call(this,e),g()(l()(o),"toggle",(function(){o.setState({isLoading:!0}),o.intents.create("SUPPORT","io.cozy.settings").start(o.intentWrapperRef,(function(){o.setState({isLoading:!1})}))})),o.store=r.barStore,o.state={isLoading:!1},o.intents=Object(ue.c)(),o}return c()(n,[{key:"componentDidMount",value:function(){this.toggle()}},{key:"render",value:function(){var e=this,t=this.state.isLoading;return C.a.createElement("div",null,C.a.createElement(Pr,{secondaryAction:this.props.onClose,className:"coz-support-modal",into:"#cozy-bar-modal-dom-place",closeBtnClassName:"coz-support-modal-close"},C.a.createElement(dr,{className:"coz-support-modal-wrapper u-mt-1"},C.a.createElement("div",{className:"coz-support-modal-content"},t&&C.a.createElement(Mr,{size:"xxlarge",middle:!0}),C.a.createElement("div",{className:"coz-support-intent-wrapper".concat(t?" coz-hidden":""),ref:function(t){e.intentWrapperRef=t}})))))}}]),n}(x.Component);function Ur(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h()(this,n)}}function $r(e){return C.a.createElement("svg",w()({width:16,height:16},e),C.a.createElement("path",{d:"M0 0h4v4H0V0zm0 6h4v4H0V6zm0 6h4v4H0v-4zM6 0h4v4H6V0zm0 6h4v4H6V6zm0 6h4v4H6v-4zm6-12h4v4h-4V0zm0 6h4v4h-4V6zm0 6h4v4h-4v-4z",fillRule:"evenodd"}))}n.d(t,"Bar",(function(){return Gr})),n.d(t,"mapStateToProps",(function(){return qr})),n.d(t,"mapDispatchToProps",(function(){return Jr}));var Gr=function(e){d()(n,e);var t=Ur(n);function n(e){var r;return a()(this,n),r=t.call(this,e),g()(l()(r),"toggleDrawer",(function(){if(!r.state.claudyOpened&&!r.state.claudyFired){var e=!r.state.drawerVisible;e&&r.props.onDrawer(e),r.setState({drawerVisible:e})}})),g()(l()(r),"toggleClaudy",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(r.props.claudyEnabled){var t=r.state,n=t.usageTracker,o=t.claudyOpened;if(e&&!o)return r.setState({claudyFired:!0});r.state.claudyFired&&r.setState({claudyFired:!1}),n&&n.push(["trackEvent","Claudy",o?"close":"open","claudy"]),r.setState({claudyOpened:!o})}})),g()(l()(r),"toggleSupport",(function(){var e=r.state.supportDisplayed;r.setState({supportDisplayed:!e})})),g()(l()(r),"renderLeft",(function(){var e=r.props,t=e.t,n=e.isPublic,o=e.webviewContext;return o?C.a.createElement(fe,{webviewContext:o}):n?null:C.a.createElement("button",{type:"button",className:"coz-bar-btn coz-bar-burger",onClick:r.toggleDrawer,"data-tutorial":"apps-mobile"},C.a.createElement(R,{icon:$r,width:16,height:16,color:"currentColor"}),C.a.createElement("span",{className:"coz-bar-hidden"},t("drawer")))})),g()(l()(r),"renderRight",(function(){return r.props.isPublic?null:C.a.createElement(Gt,{toggleSupport:r.toggleSupport,onLogOut:r.props.onLogOut})})),r.state={claudyFired:!1,claudyOpened:!1,drawerVisible:!1,usageTracker:null,supportDisplayed:!1,searchBarEnabled:e.isDrive&&!e.isPublic&&!Object(H.isMobileApp)()},r.fetchApps=r.fetchApps.bind(l()(r)),r.fetchInitialData=r.fetchInitialData.bind(l()(r)),r.handleTokenRefreshed=r.handleTokenRefreshed.bind(l()(r)),r}return c()(n,[{key:"componentDidMount",value:function(){G()&&this.initPiwikTracker(),this.fetchInitialData(),this.props.cozyClient.on("tokenRefreshed",this.handleTokenRefreshed)}},{key:"componentWillUnmount",value:function(){this.props.cozyClient.removeListener("tokenRefreshed",this.handleTokenRefreshed)}},{key:"componentDidUpdate",value:function(e,t){!this.props.hasFetchedApps&&this.state.drawerVisible&&t.drawerVisible!==this.state.drawerVisible&&this.fetchApps()}},{key:"handleTokenRefreshed",value:function(){this.fetchInitialData()}},{key:"initPiwikTracker",value:function(){var e=q("https://matomo.cozycloud.cc",8,!1,!1);J({appDimensionId:1,app:"Cozy Bar",heartbeat:0}),this.setState({usageTracker:e})}},{key:"fetchApps",value:function(){this.props.fetchApps()}},{key:"fetchInitialData",value:function(){this.props.isPublic||(this.props.fetchContext(),this.props.fetchSettingsData(!1),this.fetchApps())}},{key:"renderCenter",value:function(){var e=this.props,t=e.appName,n=e.appNamePrefix,r=e.appSlug,o=e.iconPath,i=e.isPublic;return C.a.createElement(Yt,{appName:t,appNamePrefix:n,appSlug:r,iconPath:o,isPublic:i})}},{key:"render",value:function(){var e=this,t=this.state,n=t.claudyFired,r=t.claudyOpened,i=t.drawerVisible,a=t.searchBarEnabled,u=t.supportDisplayed,c=t.usageTracker,s=this.props,l=s.theme,f=s.themeOverrides,d=s.barLeft,p=s.barRight,h=s.barCenter,m=s.barSearch,y=s.claudyEnabled,v=s.onDrawer,g=s.isPublic,b=s.onLogOut,w=s.userActionRequired,x=f.primaryColor,k=f.primaryContrastTextColor,S=x?{"--cozBarThemePrimaryColor":x}:{},_=k?{"--cozBarThemePrimaryContrastTextColor":k}:{},A=o()({},S,_);return C.a.createElement("div",{className:"coz-bar-wrapper coz-theme-".concat(l),style:A},C.a.createElement("div",{id:"cozy-bar-modal-dom-place"}),C.a.createElement("div",{className:"coz-bar-container"},d||this.renderLeft(),h||this.renderCenter(),C.a.createElement("div",{className:"u-flex-grow"},m||(a?C.a.createElement(sn,null):null)),p||this.renderRight(),g?null:C.a.createElement(Et,{visible:i,onClose:this.toggleDrawer,onClaudy:y&&function(){return e.toggleClaudy(!0)}||!1,isClaudyLoading:n,drawerListener:function(){return v(i)},toggleSupport:this.toggleSupport,onLogOut:b}),y&&C.a.createElement(fn,{usageTracker:c,claudyFired:n,onToggle:function(){return e.toggleClaudy(!1)},opened:r}),u&&C.a.createElement(Lr,{onClose:this.toggleSupport})),w&&C.a.createElement(_e,w))}}]),n}(x.Component),qr=function(e){return{theme:Object(qe.j)(e).name,themeOverrides:Object(qe.j)(e).overrides,barLeft:Object(qe.e)(e,"left"),barRight:Object(qe.e)(e,"right"),barCenter:Object(qe.e)(e,"center"),barSearch:Object(qe.e)(e,"search"),isDrive:Object(qe.m)(e,{slug:"drive"}),claudyEnabled:Object(qe.z)(e),hasFetchedApps:Object(qe.l)(e),webviewContext:Object(qe.k)(e)}},Jr=function(e){return{fetchApps:function(){return e(Object(qe.a)())},fetchContext:function(){return e(Object(qe.b)())},fetchSettingsData:function(t){return e(Object(qe.c)(t))}}};t.default=Object(S.translate)()(Object(k.connect)(qr,Jr)(Gr))},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),i=(n(1),o.a.createContext(null));var a=function(e){e()},u={notify:function(){}};function c(){var e=a,t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var r=!0,o=n={callback:e,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){r&&null!==t&&(r=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}var s=function(){function e(e,t){this.store=e,this.parentSub=t,this.unsubscribe=null,this.listeners=u,this.handleChangeWrapper=this.handleChangeWrapper.bind(this)}var t=e.prototype;return t.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},t.notifyNestedSubs=function(){this.listeners.notify()},t.handleChangeWrapper=function(){this.onStateChange&&this.onStateChange()},t.isSubscribed=function(){return Boolean(this.unsubscribe)},t.trySubscribe=function(){this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.handleChangeWrapper):this.store.subscribe(this.handleChangeWrapper),this.listeners=c())},t.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=u)},e}();var l=function(e){var t=e.store,n=e.context,a=e.children,u=Object(r.useMemo)((function(){var e=new s(t);return e.onStateChange=e.notifyNestedSubs,{store:t,subscription:e}}),[t]),c=Object(r.useMemo)((function(){return t.getState()}),[t]);Object(r.useEffect)((function(){var e=u.subscription;return e.trySubscribe(),c!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[u,c]);var l=n||i;return o.a.createElement(l.Provider,{value:u},a)},f=n(28),d=n(36),p=n(79),h=n.n(p),m=n(77),y="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect,v=[],g=[null,null];function b(e,t){var n=e[1];return[t.payload,n+1]}function w(e,t,n){y((function(){return e.apply(void 0,t)}),n)}function x(e,t,n,r,o,i,a){e.current=r,t.current=o,n.current=!1,i.current&&(i.current=null,a())}function C(e,t,n,r,o,i,a,u,c,s){if(e){var l=!1,f=null,d=function(){if(!l){var e,n,d=t.getState();try{e=r(d,o.current)}catch(e){n=e,f=e}n||(f=null),e===i.current?a.current||c():(i.current=e,u.current=e,a.current=!0,s({type:"STORE_UPDATED",payload:{error:n}}))}};n.onStateChange=d,n.trySubscribe(),d();return function(){if(l=!0,n.tryUnsubscribe(),n.onStateChange=null,f)throw f}}}var k=function(){return[null,0]};function S(e,t){void 0===t&&(t={});var n=t,a=n.getDisplayName,u=void 0===a?function(e){return"ConnectAdvanced("+e+")"}:a,c=n.methodName,l=void 0===c?"connectAdvanced":c,p=n.renderCountProp,y=void 0===p?void 0:p,S=n.shouldHandleStateChanges,_=void 0===S||S,A=n.storeKey,O=void 0===A?"store":A,E=(n.withRef,n.forwardRef),B=void 0!==E&&E,j=n.context,P=void 0===j?i:j,T=Object(d.a)(n,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"]),z=P;return function(t){var n=t.displayName||t.name||"Component",i=u(n),a=Object(f.a)({},T,{getDisplayName:u,methodName:l,renderCountProp:y,shouldHandleStateChanges:_,storeKey:O,displayName:i,wrappedComponentName:n,WrappedComponent:t}),c=T.pure;var p=c?r.useMemo:function(e){return e()};function S(n){var i=Object(r.useMemo)((function(){var e=n.forwardedRef,t=Object(d.a)(n,["forwardedRef"]);return[n.context,e,t]}),[n]),u=i[0],c=i[1],l=i[2],h=Object(r.useMemo)((function(){return u&&u.Consumer&&Object(m.isContextConsumer)(o.a.createElement(u.Consumer,null))?u:z}),[u,z]),y=Object(r.useContext)(h),S=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch);Boolean(y)&&Boolean(y.store);var A=S?n.store:y.store,O=Object(r.useMemo)((function(){return function(t){return e(t.dispatch,a)}(A)}),[A]),E=Object(r.useMemo)((function(){if(!_)return g;var e=new s(A,S?null:y.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[A,S,y]),B=E[0],j=E[1],P=Object(r.useMemo)((function(){return S?y:Object(f.a)({},y,{subscription:B})}),[S,y,B]),T=Object(r.useReducer)(b,v,k),I=T[0][0],D=T[1];if(I&&I.error)throw I.error;var R=Object(r.useRef)(),F=Object(r.useRef)(l),M=Object(r.useRef)(),N=Object(r.useRef)(!1),L=p((function(){return M.current&&l===F.current?M.current:O(A.getState(),l)}),[A,I,l]);w(x,[F,R,N,l,L,M,j]),w(C,[_,A,B,O,F,R,N,M,j,D],[A,B,O]);var U=Object(r.useMemo)((function(){return o.a.createElement(t,Object(f.a)({},L,{ref:c}))}),[c,t,L]);return Object(r.useMemo)((function(){return _?o.a.createElement(h.Provider,{value:P},U):U}),[h,U,P])}var A=c?o.a.memo(S):S;if(A.WrappedComponent=t,A.displayName=i,B){var E=o.a.forwardRef((function(e,t){return o.a.createElement(A,Object(f.a)({},e,{forwardedRef:t}))}));return E.displayName=i,E.WrappedComponent=t,h()(E,t)}return h()(A,t)}}function _(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function A(e,t){if(_(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;o<n.length;o++)if(!Object.prototype.hasOwnProperty.call(t,n[o])||!_(e[n[o]],t[n[o]]))return!1;return!0}var O=n(205);function E(e){return function(t,n){var r=e(t,n);function o(){return r}return o.dependsOnOwnProps=!1,o}}function B(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function j(e,t){return function(t,n){n.displayName;var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=B(e);var o=r(t,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=B(o),o=r(t,n)),o},r}}var P=[function(e){return"function"==typeof e?j(e):void 0},function(e){return e?void 0:E((function(e){return{dispatch:e}}))},function(e){return e&&"object"==typeof e?E((function(t){return Object(O.bindActionCreators)(e,t)})):void 0}];var T=[function(e){return"function"==typeof e?j(e):void 0},function(e){return e?void 0:E((function(){return{}}))}];function z(e,t,n){return Object(f.a)({},n,{},e,{},t)}var I=[function(e){return"function"==typeof e?function(e){return function(t,n){n.displayName;var r,o=n.pure,i=n.areMergedPropsEqual,a=!1;return function(t,n,u){var c=e(t,n,u);return a?o&&i(c,r)||(r=c):(a=!0,r=c),r}}}(e):void 0},function(e){return e?void 0:function(){return z}}];function D(e,t,n,r){return function(o,i){return n(e(o,i),t(r,i),i)}}function R(e,t,n,r,o){var i,a,u,c,s,l=o.areStatesEqual,f=o.areOwnPropsEqual,d=o.areStatePropsEqual,p=!1;function h(o,p){var h,m,y=!f(p,a),v=!l(o,i);return i=o,a=p,y&&v?(u=e(i,a),t.dependsOnOwnProps&&(c=t(r,a)),s=n(u,c,a)):y?(e.dependsOnOwnProps&&(u=e(i,a)),t.dependsOnOwnProps&&(c=t(r,a)),s=n(u,c,a)):v?(h=e(i,a),m=!d(h,u),u=h,m&&(s=n(u,c,a)),s):s}return function(o,l){return p?h(o,l):(u=e(i=o,a=l),c=t(r,a),s=n(u,c,a),p=!0,s)}}function F(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,o=t.initMergeProps,i=Object(d.a)(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),a=n(e,i),u=r(e,i),c=o(e,i);return(i.pure?R:D)(a,u,c,e,i)}function M(e,t,n){for(var r=t.length-1;r>=0;r--){var o=t[r](e);if(o)return o}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function N(e,t){return e===t}function L(e){var t=void 0===e?{}:e,n=t.connectHOC,r=void 0===n?S:n,o=t.mapStateToPropsFactories,i=void 0===o?T:o,a=t.mapDispatchToPropsFactories,u=void 0===a?P:a,c=t.mergePropsFactories,s=void 0===c?I:c,l=t.selectorFactory,p=void 0===l?F:l;return function(e,t,n,o){void 0===o&&(o={});var a=o,c=a.pure,l=void 0===c||c,h=a.areStatesEqual,m=void 0===h?N:h,y=a.areOwnPropsEqual,v=void 0===y?A:y,g=a.areStatePropsEqual,b=void 0===g?A:g,w=a.areMergedPropsEqual,x=void 0===w?A:w,C=Object(d.a)(a,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),k=M(e,i,"mapStateToProps"),S=M(t,u,"mapDispatchToProps"),_=M(n,s,"mergeProps");return r(p,Object(f.a)({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:k,initMapDispatchToProps:S,initMergeProps:_,pure:l,areStatesEqual:m,areOwnPropsEqual:v,areStatePropsEqual:b,areMergedPropsEqual:x},C))}}var U=L();function $(){return Object(r.useContext)(i)}function G(e){void 0===e&&(e=i);var t=e===i?$:function(){return Object(r.useContext)(e)};return function(){return t().store}}var q=G();function J(e){void 0===e&&(e=i);var t=e===i?q:G(e);return function(){return t().dispatch}}var H=J(),W=function(e,t){return e===t};function Q(e){void 0===e&&(e=i);var t=e===i?$:function(){return Object(r.useContext)(e)};return function(e,n){void 0===n&&(n=W);var o=t();return function(e,t,n,o){var i,a=Object(r.useReducer)((function(e){return e+1}),0)[1],u=Object(r.useMemo)((function(){return new s(n,o)}),[n,o]),c=Object(r.useRef)(),l=Object(r.useRef)(),f=Object(r.useRef)();try{i=e!==l.current||c.current?e(n.getState()):f.current}catch(e){throw c.current&&(e.message+="\nThe error may be correlated with this previous error:\n"+c.current.stack+"\n\n"),e}return y((function(){l.current=e,f.current=i,c.current=void 0})),y((function(){function e(){try{var e=l.current(n.getState());if(t(e,f.current))return;f.current=e}catch(e){c.current=e}a({})}return u.onStateChange=e,u.trySubscribe(),e(),function(){return u.tryUnsubscribe()}}),[n,u]),i}(e,n,o.store,o.subscription)}}var V,Y=Q(),K=n(101);n.d(t,"Provider",(function(){return l})),n.d(t,"connectAdvanced",(function(){return S})),n.d(t,"ReactReduxContext",(function(){return i})),n.d(t,"connect",(function(){return U})),n.d(t,"batch",(function(){return K.unstable_batchedUpdates})),n.d(t,"useDispatch",(function(){return H})),n.d(t,"createDispatchHook",(function(){return J})),n.d(t,"useSelector",(function(){return Y})),n.d(t,"createSelectorHook",(function(){return Q})),n.d(t,"useStore",(function(){return q})),n.d(t,"createStoreHook",(function(){return G})),n.d(t,"shallowEqual",(function(){return A})),V=K.unstable_batchedUpdates,a=V},function(e,t,n){"use strict";n.r(t);var r=n(14),o=n.n(r),i=n(32),a=n(2),u=n.n(a),c=n(102),s=n(80),l=function(e){return function(t){var n=t.langs,r=t.locales,o=n&&n.length;if(!o)return t;var i=o&&n.includes(e)?e:n[0],a=r&&Object.keys(r);return a&&a.length&&a.includes(i)?(Object(c.a)(u()({},t.slug,r[i])),t):t}},f=function(e){var t=e.getState;return function(e){return function(n){var r=t();switch(n.type){case s.a:!function(e,t){e&&e.forEach(l(t))}(r.apps&&r.apps.apps,n.lang);break;case"RECEIVE_APP_LIST":n.apps&&n.apps.length&&n.apps.forEach(l(r.locale));break;case"RECEIVE_APP":n.app&&l(r.locale&&r.locale.lang)(n.app)}return e(n)}}},d=n(203),p="persist/REHYDRATE",h="persist/REGISTER",m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function v(e,t,n,r){r.debug;var o=y({},n);return e&&"object"===(void 0===e?"undefined":m(e))&&Object.keys(e).forEach((function(r){"_persist"!==r&&t[r]===n[r]&&(o[r]=e[r])})),o}function g(e){var t=e.blacklist||null,n=e.whitelist||null,r=e.transforms||[],o=e.throttle||0,i=""+(void 0!==e.keyPrefix?e.keyPrefix:"persist:")+e.key,a=e.storage,u=!1===e.serialize?function(e){return e}:b,c={},s={},l=[],f=null,d=null;function p(){if(0===l.length)return f&&clearInterval(f),void(f=null);var e=l.shift(),t=r.reduce((function(t,n){return n.in(t,e,c)}),c[e]);if(void 0!==t)try{s[e]=u(t)}catch(e){console.error("redux-persist/createPersistoid: error serializing state",e)}else delete s[e];0===l.length&&(Object.keys(s).forEach((function(e){void 0===c[e]&&delete s[e]})),d=a.setItem(i,u(s)).catch(h))}function h(e){0}return{update:function(e){Object.keys(e).forEach((function(r){(function(e){return(!n||-1!==n.indexOf(e)||"_persist"===e)&&(!t||-1===t.indexOf(e))})(r)&&c[r]!==e[r]&&-1===l.indexOf(r)&&l.push(r)})),Object.keys(c).forEach((function(t){void 0===e[t]&&l.push(t)})),null===f&&(f=setInterval(p,o)),c=e},flush:function(){for(;0!==l.length;)p();return d||Promise.resolve()}}}function b(e){return JSON.stringify(e)}function w(e){var t=e.transforms||[],n=""+(void 0!==e.keyPrefix?e.keyPrefix:"persist:")+e.key,r=e.storage,o=(e.debug,!1===e.serialize?function(e){return e}:x);return r.getItem(n).then((function(e){if(e)try{var n={},r=o(e);return Object.keys(r).forEach((function(e){n[e]=t.reduceRight((function(t,n){return n.out(t,e,r)}),o(r[e]))})),n}catch(e){throw e}}))}function x(e){return JSON.parse(e)}function C(e){0}var k=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function S(e,t){var n=void 0!==e.version?e.version:-1,r=(e.debug,void 0===e.stateReconciler?v:e.stateReconciler),o=e.getStoredState||w,i=void 0!==e.timeout?e.timeout:5e3,a=null,u=!1,c=!0,s=function(e){return e._persist.rehydrated&&a&&!c&&a.update(e),e};return function(l,f){var d=l||{},h=d._persist,m=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(d,["_persist"]);if("persist/PERSIST"===f.type){var y=!1,v=function(t,n){y||(f.rehydrate(e.key,t,n),y=!0)};if(i&&setTimeout((function(){!y&&v(void 0,new Error('redux-persist: persist timed out for persist key "'+e.key+'"'))}),i),c=!1,a||(a=g(e)),h)return l;if("function"!=typeof f.rehydrate||"function"!=typeof f.register)throw new Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");return f.register(e.key),o(e).then((function(t){(e.migrate||function(e,t){return Promise.resolve(e)})(t,n).then((function(e){v(e)}),(function(e){v(void 0,e)}))}),(function(e){v(void 0,e)})),k({},t(m,f),{_persist:{version:n,rehydrated:!1}})}if("persist/PURGE"===f.type)return u=!0,f.result(function(e){var t=e.storage,n=""+(void 0!==e.keyPrefix?e.keyPrefix:"persist:")+e.key;return t.removeItem(n,C)}(e)),k({},t(m,f),{_persist:h});if("persist/FLUSH"===f.type)return f.result(a&&a.flush()),k({},t(m,f),{_persist:h});if("persist/PAUSE"===f.type)c=!0;else if(f.type===p){if(u)return k({},m,{_persist:k({},h,{rehydrated:!0})});if(f.key===e.key){var b=t(m,f),w=f.payload,x=!1!==r&&void 0!==w?r(w,l,b,e):b,S=k({},x,{_persist:k({},h,{rehydrated:!0})});return s(S)}}if(!h)return t(l,f);var _=t(m,f);return _===m?l:(_._persist=h,s(_))}}var _="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},A=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function O(e,t,n,r){r.debug;var o=A({},n);return e&&"object"===(void 0===e?"undefined":_(e))&&Object.keys(e).forEach((function(r){var i;"_persist"!==r&&(t[r]===n[r]&&(null===(i=n[r])||Array.isArray(i)||"object"!==(void 0===i?"undefined":_(i))?o[r]=e[r]:o[r]=A({},o[r],e[r])))})),o}var E=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function B(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var j={registry:[],bootstrapped:!1},P=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:j,t=arguments[1];switch(t.type){case h:return E({},e,{registry:[].concat(B(e.registry),[t.key])});case p:var n=e.registry.indexOf(t.key),r=[].concat(B(e.registry));return r.splice(n,1),E({},e,{registry:r,bootstrapped:0===r.length});default:return e}};var T=n(13),z=n(342),I=n(343),D=n.n(I),R=n(344),F=n(138),M=n(78),N=n.n(M);n.d(t,"createStore",(function(){return W}));var L,U,$={storage:D.a,key:"cozy-bar",whitelist:R},G=Object(z.createLogger)({logger:F.a}),q=(L=$,U=o()({},T.t),L.stateReconciler=void 0===L.stateReconciler?O:L.stateReconciler,S(L,Object(i.c)(U))),J=[f,d.default];N()("bar.debug")&&J.push(G);var H,W=function(){var e,t,n,r,o,a,u,c;return H=Object(i.e)(q,i.a.apply(null,J)),e=H,r=n||!1,o=Object(i.e)(P,j,t?t.enhancer:void 0),a=function(e){o.dispatch({type:h,key:e})},u=function(t,n,i){var a={type:p,payload:n,err:i,key:t};e.dispatch(a),o.dispatch(a),r&&c.getState().bootstrapped&&(r(),r=!1)},(c=E({},o,{purge:function(){var t=[];return e.dispatch({type:"persist/PURGE",result:function(e){t.push(e)}}),Promise.all(t)},flush:function(){var t=[];return e.dispatch({type:"persist/FLUSH",result:function(e){t.push(e)}}),Promise.all(t)},pause:function(){e.dispatch({type:"persist/PAUSE"})},persist:function(){e.dispatch({type:"persist/PERSIST",register:a,rehydrate:u})}})).persist(),H};t.default=function(){return H||(H=W()),H}},function(e,t,n){"use strict";n.r(t);var r=n(7),o=n.n(r),i=n(9),a=n.n(i),u=n(24),c=n(25),s=n(13),l=n(4),f=n.n(l),d=n(6),p=n.n(d),h=n(8),m=n.n(h),y=n(10),v=n.n(y),g=n(5),b=n.n(g),w=n(0),x=n.n(w),C=["left","center","right","search"],k=function(e){return e[0].toUpperCase()+e.slice(1)},S=function(e){return"setBar".concat(k(e))},_=function(e){return"Bar".concat(k(e))};function A(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=b()(e);if(t){var o=b()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return v()(this,n)}}var O=0,E=function(e){var t={};return C.forEach((function(n){t[S(n)]=function(t){return e.dispatch(Object(s.u)(n,"string"==typeof(r=t)?x.a.createElement("span",{dangerouslySetInnerHTML:{__html:r}}):r,"js"));var r},t[_(n)]=function(e,t){return function(n){m()(o,n);var r=A(o);function o(){return f()(this,o),r.apply(this,arguments)}return p()(o,[{key:"componentDidMount",value:function(){this.componentId=O++,this.setContent(this.props.children)}},{key:"setContent",value:function(n){try{n=x.a.Children.only(n)}catch(e){}e.dispatch(Object(s.u)(t,n,this.componentId))}},{key:"unsetContent",value:function(){e.dispatch(Object(s.A)(t,this.componentId))}},{key:"componentWillUnmount",value:function(){this.unsetContent()}},{key:"componentDidUpdate",value:function(e){this.props.children!==e.children&&this.setContent(this.props.children)}},{key:"render",value:function(){return null}}]),o}(w.Component)}(e,n)})),t.setLocale=function(){e.dispatch(s.w.apply(void 0,arguments))},t.setTheme=function(){e.dispatch(s.x.apply(void 0,arguments))},t.setWebviewContext=function(){e.dispatch(s.y.apply(void 0,arguments))},t},B=function(e){console.error("You tried to use the CozyBar API (".concat(e,") but the CozyBar is not initialised yet via cozy.bar.init(...)."))},j=function(e,t){return function(){if(e[t])return e[t].apply(e,arguments);B(t)}},P=function(){var e=document.querySelector("[role=application]");return e&&e.dataset?e.dataset:{}},T=function(){var e=document.querySelector('link[rel="icon"][sizes^="32"]');return null!==e?e.getAttribute("href"):"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"},z=function(){return P().cozyAppNamePrefix||null},I=function(){return P().cozyAppSlug||null},D=function(){var e=document.querySelector("meta[name=user-action-required]"),t=e&&e.dataset;if(t){var n=t.title,r=t.code,o=t.detail,i=t.links;if(r)return{title:n,code:r,detail:o,links:i}}},R=n(333),F=n(334),M=n(335);n.d(t,"init",(function(){return q})),n.d(t,"version",(function(){return re})),n.d(t,"setBarCenter",(function(){return W})),n.d(t,"setBarLeft",(function(){return Q})),n.d(t,"setBarRight",(function(){return V})),n.d(t,"setBarSearch",(function(){return Y})),n.d(t,"BarLeft",(function(){return X})),n.d(t,"BarRight",(function(){return Z})),n.d(t,"BarCenter",(function(){return K})),n.d(t,"BarSearch",(function(){return ee})),n.d(t,"setTheme",(function(){return te})),n.d(t,"setWebviewContext",(function(){return ne})),n.d(t,"updateAccessToken",(function(){return J})),n.d(t,"setLocale",(function(){return s.w}));var N={en:R,fr:F,es:M},L=function(e){if(null===document.getElementById("coz-bar")){var t=function(){var e=Object(u.isMobileApp)()?"mobile":"browser",t=document.createElement("div");return t.setAttribute("id","coz-bar"),t.setAttribute("role","banner"),t.classList.add("coz-target--".concat(e)),t}(),n=document.querySelector("[role=application]");return n?(document.body.insertBefore(t,n),e.onDrawer=function(e){t.dataset.drawerVisible=e},e.userActionRequired&&document.body.classList.add("has-banner"),t):(console.warn('Cozy-bar is looking for a "'.concat("[role=application]","\" tag that contains your application and can't find it :'(… The BAR is now disabled")),null)}},U=function(e,t){var r=n(0),o=n(101).render,i=n(38),a=i.connect,u=i.Provider,c=n(23).default,l=n(745).default,f=n(29).CozyProvider,d=t.cozyClient,p=a((function(e){return{lang:Object(s.g)(e)}}))(c),h=r.createElement(u,{store:t.reduxStore},r.createElement(p,{dictRequire:function(e){return N[e]}},d?r.createElement(f,{client:d},r.createElement(l,t)):r.createElement(l,t)));return o(h,e),h},$=function(e){var t=e.cozyURL,r=e.token,o=e.isPublic,i={uri:t||function(e){var t=P();if(!t.cozyDomain)return e||console.warn("Cozy-bar can't discover the cozy's URL, and will probably fail to initialize the connection with the stack."),"";var n=window.location.protocol;return"".concat(n,"//").concat(t.cozyDomain)}(o),token:r||function(e){var t=P();return t.cozyToken?t.cozyToken:(e||console.warn("Cozy-bar can't discover the app's token, and will probably fail to initialize the connection with the stack."),"")}(o)},a=n(29).default;return console.warn("Automatically made cozyClient. Options: ",i),new a(i)},G={},q=function(){var e=a()(o.a.mark((function e(){var t,r,i,a,u,l,f,d,p,h,m,y,v,g,b,w,x,C,k,S,_,A,O=arguments;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=O.length>0&&void 0!==O[0]?O[0]:{},r=t.appName,i=t.appNamePrefix,a=void 0===i?z():i,u=t.appSlug,l=void 0===u?I():u,f=t.lang,d=t.iconPath,p=void 0===d?T():d,h=t.cozyClient,m=t.cozyURL,y=t.token,v=t.replaceTitleOnMobile,g=void 0!==v&&v,b=t.isPublic,w=void 0!==b&&b,x=t.onLogOut,!w&&/^\/public/.test(window.location.pathname)&&(w=!0),h||(h=$({cozyURL:m,token:y,isPublic:w})),C=n(747).default,(k=C()).dispatch(Object(s.v)(r,a,l)),c.b.init({cozyClient:h,onCreate:function(e){return k.dispatch(Object(s.r)(e))},onDelete:function(e){return k.dispatch(Object(s.s)(e))}}),f&&k.dispatch(Object(s.w)(f)),S=E(k),Object.assign(G,S),_={appName:r,appNamePrefix:a,appSlug:l,cozyClient:h,iconPath:p,replaceTitleOnMobile:g,isPublic:w,onLogOut:x,userActionRequired:D(),reduxStore:k},A=L(_),U(A,_);case 13:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),J=function(e){c.b.updateAccessToken(e)},H=function(e){var t={};C.forEach((function(n){var r=S(n),o=_(n);t[r]=j(e,r),t[o]=function(t){if(e[o])return x.a.createElement(e[o],t);B(o)}}));for(var n=0,r=["setLocale","setTheme","setWebviewContext"];n<r.length;n++){var o=r[n];t[o]=j(e,o)}return t}(G),W=H.setBarCenter,Q=H.setBarLeft,V=H.setBarRight,Y=H.setBarSearch,K=H.BarCenter,Z=H.BarRight,X=H.BarLeft,ee=H.BarSearch,te=H.setTheme,ne=H.setWebviewContext,re="8.4.2"}])}));
76
+ */e.exports=function(e){return null!=e&&"object"==typeof e&&!1===Array.isArray(e)}},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:960,lg:1280,xl:1920}:t,r=e.unit,u=void 0===r?"px":r,c=e.step,s=void 0===c?5:c,l=(0,i.default)(e,["values","unit","step"]);function f(e){var t="number"==typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(u,")")}function d(e,t){var r=a.indexOf(t)+1;return r===a.length?f(e):"@media (min-width:".concat(n[e]).concat(u,") and ")+"(max-width:".concat(n[a[r]]-s/100).concat(u,")")}return(0,o.default)({keys:a,values:n,up:f,down:function(e){var t=a.indexOf(e)+1,r=n[a[t]];return t===a.length?f("xs"):"@media (max-width:".concat(("number"==typeof r&&t>0?r:e)-s/100).concat(u,")")},between:d,only:function(e){return d(e,e)},width:function(e){return n[e]}},l)},t.keys=void 0;var o=r(n(12)),i=r(n(17)),a=["xs","sm","md","lg","xl"];t.keys=a},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r;return(0,i.default)({gutters:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,i.default)({paddingLeft:2*t.unit,paddingRight:2*t.unit},n,(0,o.default)({},e.up("sm"),(0,i.default)({paddingLeft:3*t.unit,paddingRight:3*t.unit},n[e.up("sm")])))},toolbar:(r={minHeight:56},(0,o.default)(r,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),(0,o.default)(r,e.up("sm"),{minHeight:64}),r)},n)};var o=r(n(2)),i=r(n(12))},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.primary,n=void 0===t?{light:u.default[300],main:u.default[500],dark:u.default[700]}:t,r=e.secondary,y=void 0===r?{light:c.default.A200,main:c.default.A400,dark:c.default.A700}:r,v=e.error,g=void 0===v?{light:l.default[300],main:l.default[500],dark:l.default[700]}:v,b=e.type,w=void 0===b?"light":b,x=e.contrastThreshold,C=void 0===x?3:x,k=e.tonalOffset,S=void 0===k?.2:k,_=(0,i.default)(e,["primary","secondary","error","type","contrastThreshold","tonalOffset"]);function A(e){return(0,d.getContrastRatio)(e,h.text.primary)>=C?h.text.primary:p.text.primary}function O(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;return!e.main&&e[t]&&(e.main=e[t]),m(e,"light",n,S),m(e,"dark",r,S),e.contrastText||(e.contrastText=A(e.main)),e}O(n),O(y,"A400","A200","A700"),O(g);var E={dark:h,light:p};return(0,a.default)((0,o.default)({common:f.default,type:w,primary:n,secondary:y,error:g,grey:s.default,contrastThreshold:C,getContrastText:A,augmentColor:O,tonalOffset:S},E[w]),_,{clone:!1})},t.dark=t.light=void 0;var o=r(n(12)),i=r(n(17)),a=(r(n(37)),r(n(133))),u=r(n(726)),c=r(n(727)),s=r(n(728)),l=r(n(729)),f=r(n(730)),d=n(731),p={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:f.default.white,default:s.default[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.08)",hoverOpacity:.08,selected:"rgba(0, 0, 0, 0.14)",disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)"}};t.light=p;var h={text:{primary:f.default.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:s.default[800],default:"#303030"},action:{active:f.default.white,hover:"rgba(255, 255, 255, 0.1)",hoverOpacity:.1,selected:"rgba(255, 255, 255, 0.2)",disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)"}};function m(e,t,n,r){e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,d.lighten)(e.main,r):"dark"===t&&(e.dark=(0,d.darken)(e.main,1.5*r)))}t.dark=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={black:"#000",white:"#fff"};t.default=r},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.convertHexToRGB=i,t.rgbToHex=function(e){if(0===e.indexOf("#"))return e;var t=a(e).values;return t=t.map((function(e){return 1===(t=e.toString(16)).length?"0".concat(t):t;var t})),"#".concat(t.join(""))},t.decomposeColor=a,t.recomposeColor=u,t.getContrastRatio=function(e,t){var n=c(e),r=c(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)},t.getLuminance=c,t.emphasize=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return c(e)>.5?s(e,t):l(e,t)},t.fade=function(e,t){if(!e)return e;e=a(e),t=o(t),("rgb"===e.type||"hsl"===e.type)&&(e.type+="a");return e.values[3]=t,u(e)},t.darken=s,t.lighten=l;r(n(37));function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return e<t?t:e>n?n:e}function i(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length/3,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb(".concat(n.map((function(e){return parseInt(e,16)})).join(", "),")"):""}function a(e){if("#"===e.charAt(0))return a(i(e));var t=e.indexOf("("),n=e.substring(0,t),r=e.substring(t+1,e.length-1).split(",");return{type:n,values:r=r.map((function(e){return parseFloat(e)}))}}function u(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")&&(n=n.map((function(e,t){return t<3?parseInt(e,10):e}))),-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(e.type,"(").concat(n.join(", "),")")}function c(e){var t=a(e);if(-1!==t.type.indexOf("rgb")){var n=t.values.map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)}));return Number((.2126*n[0]+.7152*n[1]+.0722*n[2]).toFixed(3))}return t.values[2]/100}function s(e,t){if(!e)return e;if(e=a(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return u(e)}function l(e,t){if(!e)return e;if(e=a(e),t=o(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;return u(e)}},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n="function"==typeof t?t(e):t,r=n.fontFamily,l=void 0===r?'"Roboto", "Helvetica", "Arial", sans-serif':r,f=n.fontSize,d=void 0===f?14:f,p=n.fontWeightLight,h=void 0===p?300:p,m=n.fontWeightRegular,y=void 0===m?400:m,v=n.fontWeightMedium,g=void 0===v?500:v,b=n.htmlFontSize,w=void 0===b?16:b,x=n.useNextVariants,C=void 0===x?Boolean(u.ponyfillGlobal.__MUI_USE_NEXT_TYPOGRAPHY_VARIANTS__):x,k=(n.suppressWarning,n.allVariants),S=(0,i.default)(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","htmlFontSize","useNextVariants","suppressWarning","allVariants"]);var _=d/14,A=function(e){return"".concat(e/w*_,"rem")},O=function(t,n,r,i,a){return(0,o.default)({color:e.text.primary,fontFamily:l,fontWeight:t,fontSize:A(n),lineHeight:r},'"Roboto", "Helvetica", "Arial", sans-serif'===l?{letterSpacing:"".concat(c(i/n),"em")}:{},a,k)},E={h1:O(h,96,1,-1.5),h2:O(h,60,1,-.5),h3:O(y,48,1.04,0),h4:O(y,34,1.17,.25),h5:O(y,24,1.33,0),h6:O(g,20,1.6,.15),subtitle1:O(y,16,1.75,.15),subtitle2:O(g,14,1.57,.1),body1Next:O(y,16,1.5,.15),body2Next:O(y,14,1.5,.15),buttonNext:O(g,14,1.75,.4,s),captionNext:O(y,12,1.66,.4),overline:O(y,12,2.66,1,s)},B={display4:(0,o.default)({fontSize:A(112),fontWeight:h,fontFamily:l,letterSpacing:"-.04em",lineHeight:"".concat(c(128/112),"em"),marginLeft:"-.04em",color:e.text.secondary},k),display3:(0,o.default)({fontSize:A(56),fontWeight:y,fontFamily:l,letterSpacing:"-.02em",lineHeight:"".concat(c(73/56),"em"),marginLeft:"-.02em",color:e.text.secondary},k),display2:(0,o.default)({fontSize:A(45),fontWeight:y,fontFamily:l,lineHeight:"".concat(c(51/45),"em"),marginLeft:"-.02em",color:e.text.secondary},k),display1:(0,o.default)({fontSize:A(34),fontWeight:y,fontFamily:l,lineHeight:"".concat(c(41/34),"em"),color:e.text.secondary},k),headline:(0,o.default)({fontSize:A(24),fontWeight:y,fontFamily:l,lineHeight:"".concat(c(32.5/24),"em"),color:e.text.primary},k),title:(0,o.default)({fontSize:A(21),fontWeight:g,fontFamily:l,lineHeight:"".concat(c(24.5/21),"em"),color:e.text.primary},k),subheading:(0,o.default)({fontSize:A(16),fontWeight:y,fontFamily:l,lineHeight:"".concat(c(1.5),"em"),color:e.text.primary},k),body2:(0,o.default)({fontSize:A(14),fontWeight:g,fontFamily:l,lineHeight:"".concat(c(24/14),"em"),color:e.text.primary},k),body1:(0,o.default)({fontSize:A(14),fontWeight:y,fontFamily:l,lineHeight:"".concat(c(20.5/14),"em"),color:e.text.primary},k),caption:(0,o.default)({fontSize:A(12),fontWeight:y,fontFamily:l,lineHeight:"".concat(c(1.375),"em"),color:e.text.secondary},k),button:(0,o.default)({fontSize:A(14),textTransform:"uppercase",fontWeight:g,fontFamily:l,color:e.text.primary},k)};return(0,a.default)((0,o.default)({pxToRem:A,round:c,fontFamily:l,fontSize:d,fontWeightLight:h,fontWeightRegular:y,fontWeightMedium:g},B,E,C?{body1:E.body1Next,body2:E.body2Next,button:E.buttonNext,caption:E.captionNext}:{},{useNextVariants:C}),S,{clone:!1})};var o=r(n(12)),i=r(n(17)),a=r(n(133)),u=(r(n(37)),n(129));function c(e){return Math.round(1e5*e)/1e5}var s={textTransform:"uppercase"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;function r(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}var o=["none",r(0,1,3,0,0,1,1,0,0,2,1,-1),r(0,1,5,0,0,2,2,0,0,3,1,-2),r(0,1,8,0,0,3,4,0,0,3,3,-2),r(0,2,4,-1,0,4,5,0,0,1,10,0),r(0,3,5,-1,0,5,8,0,0,1,14,0),r(0,3,5,-1,0,6,10,0,0,1,18,0),r(0,4,5,-2,0,7,10,1,0,2,16,1),r(0,5,5,-3,0,8,10,1,0,3,14,2),r(0,5,6,-3,0,9,12,1,0,3,16,2),r(0,6,6,-3,0,10,14,1,0,4,18,3),r(0,6,7,-4,0,11,15,1,0,4,20,3),r(0,7,8,-4,0,12,17,2,0,5,22,4),r(0,7,8,-4,0,13,19,2,0,5,24,4),r(0,7,9,-4,0,14,21,2,0,5,26,4),r(0,8,9,-5,0,15,22,2,0,6,28,5),r(0,8,10,-5,0,16,24,2,0,6,30,5),r(0,8,11,-5,0,17,26,2,0,6,32,5),r(0,9,11,-5,0,18,28,2,0,7,34,6),r(0,9,12,-6,0,19,29,2,0,7,36,6),r(0,10,13,-6,0,20,31,3,0,8,38,7),r(0,10,13,-6,0,21,33,3,0,8,40,7),r(0,10,14,-6,0,22,35,3,0,8,42,7),r(0,11,14,-7,0,23,36,3,0,9,44,8),r(0,11,15,-7,0,24,38,3,0,9,46,8)];t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={borderRadius:4};t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={unit:8};t.default=r},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.isNumber=t.isString=t.formatMs=t.duration=t.easing=void 0;var o=r(n(17)),i=(r(n(37)),{easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"});t.easing=i;var a={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};t.duration=a;var u=function(e){return"".concat(Math.round(e),"ms")};t.formatMs=u;t.isString=function(e){return"string"==typeof e};t.isNumber=function(e){return!isNaN(parseFloat(e))};var c={easing:i,duration:a,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.duration,r=void 0===n?a.standard:n,c=t.easing,s=void 0===c?i.easeInOut:c,l=t.delay,f=void 0===l?0:l;(0,o.default)(t,["duration","easing","delay"]);return(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"==typeof r?r:u(r)," ").concat(s," ").concat("string"==typeof f?f:u(f))})).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}};t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={mobileStepper:1e3,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};t.default=r},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.CHANNEL=void 0;var o=r(n(2)),i="__THEMING__";t.CHANNEL=i;var a={contextTypes:(0,o.default)({},i,(function(){})),initial:function(e){return e[i]?e[i].getState():null},subscribe:function(e,t){return e[i]?e[i].subscribe(t):null},unsubscribe:function(e,t){e[i]&&e[i].unsubscribe(t)}};t.default=a},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.dangerouslyUseGlobalCSS,n=void 0!==t&&t,r=e.productionPrefix,o=void 0===r?"jss":r,a=e.seed,u=void 0===a?"":a,c=0;return function(e,t){return c+=1,n&&t&&t.options.name?"".concat(i(t.options.name),"-").concat(e.key):"".concat(o).concat(u).concat(c)}};r(n(37));var o=/([[\].#*$><+~=|^:(),"'`\s])/g;function i(e){return String(e).replace(o,"-")}},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(12)),i=(r(n(83)),r(n(37)),r(n(133)));function a(e,t){return t}var u=function(e){var t="function"==typeof e;return{create:function(n,r){var u=t?e(n):e;if(!r||!n.overrides||!n.overrides[r])return u;var c=n.overrides[r],s=(0,o.default)({},u);return Object.keys(c).forEach((function(e){s[e]=(0,i.default)(s[e],c[e],{arrayMerge:a})})),s},options:{},themingEnabled:t}};t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){var t=e.theme,n=e.name,r=e.props;if(!t.props||!n||!t.props[n])return r;var o,i=t.props[n];for(o in i)void 0===r[o]&&(r[o]=i[o]);return r};t.default=r},function(e,t,n){"use strict";var r=n(3);Object.defineProperty(t,"__esModule",{value:!0}),t.capitalize=function(e){0;return e.charAt(0).toUpperCase()+e.slice(1)},t.contains=i,t.findIndex=a,t.find=function(e,t){var n=a(e,t);return n>-1?e[n]:void 0},t.createChainedFunction=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t){return null==t?e:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];e.apply(this,r),t.apply(this,r)}}),(function(){}))};var o=r(n(83));r(n(37));function i(e,t){return Object.keys(t).every((function(n){return e.hasOwnProperty(n)&&e[n]===t[n]}))}function a(e,t){for(var n=(0,o.default)(t),r=0;r<e.length;r+=1){if("function"===n&&!0==!!t(e[r],r,e))return r;if("object"===n&&i(e[r],t))return r;if(-1!==["string","number","boolean"].indexOf(n))return e.indexOf(t)}return-1}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t=(0,i.default)(e);return{getItem:function(e){return new Promise((function(n,r){n(t.getItem(e))}))},setItem:function(e,n){return new Promise((function(r,o){r(t.setItem(e,n))}))},removeItem:function(e){return new Promise((function(n,r){n(t.removeItem(e))}))}}};var r,o=n(744),i=(r=o)&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";t.__esModule=!0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function o(){}t.default=function(e){var t=e+"Storage";return function(e){if("object"!==("undefined"==typeof self?"undefined":r(self))||!(e in self))return!1;try{var t=self[e],n="redux-persist "+e+" test";t.setItem(n,"test"),t.getItem(n),t.removeItem(n)}catch(e){return!1}return!0}(t)?self[t]:i};var i={getItem:o,setItem:o,removeItem:o}},function(e,t,n){"use strict";n.r(t);var r=n(14),o=n.n(r),i=n(4),a=n.n(i),u=n(6),c=n.n(u),s=n(11),l=n.n(s),f=n(8),d=n.n(f),p=n(10),h=n.n(p),m=n(5),y=n.n(m),v=n(2),g=n.n(v),b=n(12),w=n.n(b),x=n(0),C=n.n(x),k=n(38),S=n(23),_=n(17),A=n.n(_),O=n(1),E=n.n(O),B=n(206),j=n.n(B),P=n(15),T=n.n(P);function z(e){return e instanceof Function}function I(e){var t=e.icon,n=e.width,r=e.height,o=e.color,i=e.className,a=e.preserveColor,u=e.rotate,c=e.size,s=e.spin,l=A()(e,["icon","width","height","color","className","preserveColor","rotate","size","spin"]),f=Object(x.useMemo)((function(){return z(t)?t:function(e){var t;return(t=e.id?"#".concat(e.id):"#"===e[0]?e:"#"+e)?function(e){return C.a.createElement("svg",e,C.a.createElement("use",{xlinkHref:t}))}:(console.warn("Icon not found ".concat(e,".")),null)}(t)}),[t]),d=e.style;d=Object.assign({},d),o&&(d.fill=o),u&&(d.transform="rotate(".concat(u,"deg)"));var p=a?"icon--preserveColor":"icon",h=T()(i,j.a[p],g()({},j.a["icon--spin"],s));return f?C.a.createElement(f,w()({className:h,style:d,width:n||c||"16",height:r||c||"16"},l)):null}I.isProperIcon=function(e){var t=e&&!!e.id,n="string"==typeof e,r=z(e);return t||n||r};var D=E.a.oneOfType([E.a.string,E.a.object,E.a.func]);I.propTypes={icon:D.isRequired,width:E.a.oneOfType([E.a.string,E.a.number]),height:E.a.oneOfType([E.a.string,E.a.number]),color:E.a.oneOfType([E.a.string,E.a.object]),className:E.a.string,preserveColor:E.a.bool,size:E.a.oneOfType([E.a.string,E.a.number]),spin:E.a.bool},I.defaultProps={spin:!1};var R=I,F=n(42),M=n.n(F),N=M()((function(){var e=document.querySelector("[role=application]");return e&&e.dataset})),L=M()((function(){var e=N();return e&&e.cozy?JSON.parse(e.cozy):null})),U=M()((function(e){var t=L();if(t&&void 0!==t[e])return"true"===t[e]||"false"===t[e]?JSON.parse(t[e]):t[e];var n=N();if(n){var r=n["cozy".concat(e[0].toUpperCase()).concat(e.substring(1))];return void 0===r?void 0:""===r||JSON.parse(r)}})),$=null,G=M()((function(){return U("tracking")})),q=function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!G())return null;if(null!==$)return $;try{!1===o&&Piwik.getTracker();var i=n(!function(){var e=new Error("Cannot find module 'piwik-react-router'");throw e.code="MODULE_NOT_FOUND",e}());return $=i({url:e||"https://matomo.cozycloud.cc",siteId:t||8,injectScript:o}),r&&J(),$}catch(e){return console.warn(e),$=null,null}},J=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(null!==$){var t,n,r,o=document.querySelector("[role=application]");if(o&&o.dataset&&(t=U("appName"),n=U("cozyDomain")),n){r=n;var i=n.indexOf(":");i>=0&&(r=r.substring(0,i))}e=Object.assign({userId:r,appDimensionId:1,app:t,heartbeat:15},e),parseInt(e.heartbeat)>0&&$.push(["enableHeartBeatTimer",parseInt(e.heartbeat,10)]),$.push(["setUserId",e.userId]),$.push(["setCustomDimension",e.appDimensionId,e.app])}},H=n(24),W=n(7),Q=n.n(W),V=n(9),Y=n.n(V),K=n(29),Z=n(81),X=n.n(Z);var ee=function(e){return C.a.createElement("svg",w()({viewBox:"0 0 16 16"},e),C.a.createElement("path",{d:"M1 11.009V5.5c0-.55.39-.773.872-.498l5.256 3.003c.476.272.872.944.872 1.495v5.508c0 .549-.39.772-.872.497l-5.256-3.003C1.396 12.231 1 11.56 1 11.01zm15 0c0 .55-.396 1.222-.872 1.494l-5.256 3.003c-.481.275-.872.052-.872-.497V9.5c0-.55.396-1.223.872-1.495l5.256-3.003c.481-.275.872-.052.872.498v5.508zM9.35 6.982c-.47.288-1.237.284-1.7 0l-4.8-2.954c-.47-.29-.463-.732.027-.995L7.623.477c.485-.261 1.264-.264 1.754 0l4.746 2.556c.485.26.49.71.027.995l-4.8 2.954z"}))},te=n(136),ne=n.n(te),re=E.a.shape({name:E.a.string,slug:E.a.string,developer:E.a.object,links:E.a.shape({icon:E.a.string}),latest_version:E.a.shape({version:E.a.string})});E.a.shape({_id:E.a.string,class:E.a.string,mime:E.a.string,name:E.a.string});function oe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h()(this,n)}}var ie=function(e){d()(r,e);var t,n=oe(r);function r(e,t){var o;return a()(this,r),o=n.call(this,e,t),g()(l()(o),"state",{error:null,icon:null,status:o.props.client?"fetching":"errored"}),o.isUnmounting=!1,o.handleError=o.handleError.bind(l()(o)),o.fetchIcon=o.fetchIcon.bind(l()(o)),o}return c()(r,[{key:"componentWillUnmount",value:function(){this.isUnmounting=!0}},{key:"componentDidMount",value:function(){this.isUnmounting=!1,this.load()}},{key:"componentDidUpdate",value:function(e){this.props.fetchIcon!==e.fetchIcon&&this.load()}},{key:"fetchIcon",value:function(){var e=this.props,t=e.app,n=e.type,r=e.priority;return e.client.getStackClient().getIconURL({type:n,slug:t.slug||t,priority:r})}},{key:"handleError",value:function(){this.setState({status:"errored"})}},{key:"load",value:(t=Y()(Q.a.mark((function e(){var t,n,r,o,i,a,u,c,s,l,f;return Q.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.props,n=t.app,r=t.fetchIcon,o=t.onReady,i=t.client,a=r||this.fetchIcon,e.prev=2,i&&(f=new URL(i.getStackClient().uri),s=f.host,l="https:"===f.protocol),e.next=6,a(n,s,l);case 6:u=e.sent,e.next=12;break;case 9:e.prev=9,e.t0=e.catch(2),c=e.t0;case 12:this.isUnmounting||(this.setState({error:c,icon:u,status:c?"errored":"done"}),"function"==typeof o&&o());case 13:case"end":return e.stop()}}),e,this,[[2,9]])}))),function(){return t.apply(this,arguments)})},{key:"render",value:function(){var e=this.props,t=e.alt,n=e.className,r=e.fallbackIcon,o=this.state,i=o.icon;switch(o.status){case"fetching":return C.a.createElement("div",{role:"progressbar",className:T()(X.a["c-loading-placeholder"],X.a["c-app-icon"],n)});case"done":return C.a.createElement("img",{alt:t,className:T()(X.a["c-app-icon"],n),src:i,onError:this.handleError});case"errored":default:return C.a.createElement(R,{className:T()(X.a["c-app-icon"],X.a["c-app-icon-default"],n),height:"100%",icon:r||ee,width:"100%",color:ne.a.coolGrey})}}}]),r}(x.Component);ie.propTypes={alt:E.a.string,app:E.a.oneOfType([re,E.a.string]),fallbackIcon:D,fetchIcon:E.a.func,client:E.a.object.isRequired,className:E.a.string,onReady:E.a.func,type:E.a.oneOf(["app","konnector"]),priority:E.a.oneOf(["stack","registry"])},ie.defaultProps={type:"app",priority:"stack"};var ae=Object(K.withClient)(ie),ue=n(25);function ce(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h()(this,n)}}function se(e){return C.a.createElement("svg",w()({width:32,height:32},e),C.a.createElement("g",{fill:"none",fillRule:"evenodd"},C.a.createElement("circle",{fill:"#297EF2",fillRule:"nonzero",cx:16,cy:16,r:16}),C.a.createElement("path",{d:"M19.314 17.561a.555.555 0 01-.82.12 4.044 4.044 0 01-2.499.862 4.04 4.04 0 01-2.494-.86.557.557 0 01-.815-.12.547.547 0 01.156-.748c.214-.14.229-.421.229-.424a.555.555 0 01.176-.385.504.504 0 01.386-.145.544.544 0 01.528.553c0 .004 0 .153-.054.36a2.954 2.954 0 003.784-.008 1.765 1.765 0 01-.053-.344.546.546 0 01.536-.561h.01c.294 0 .538.237.545.532 0 0 .015.282.227.422a.544.544 0 01.158.746m2.322-6.369a5.94 5.94 0 00-1.69-3.506A5.651 5.651 0 0015.916 6a5.648 5.648 0 00-4.029 1.687 5.936 5.936 0 00-1.691 3.524 5.677 5.677 0 00-3.433 1.737 5.966 5.966 0 00-1.643 4.137C5.12 20.347 7.704 23 10.882 23h10.236c3.176 0 5.762-2.653 5.762-5.915 0-3.083-2.31-5.623-5.244-5.893",fill:"#FFF"})))}var le=function(e){d()(n,e);var t=ce(n);function n(){return a()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props.className;return C.a.createElement(ae,{fetchIcon:function(){return"".concat(ue.b.get.cozyURL(),"/assets/images/icon-cozy-home.svg")},fallbackIcon:se,className:e})}}]),n}(x.PureComponent),fe=function(e){var t=e.webviewContext,n=e.homeHref;return t?C.a.createElement("button",{onClick:function(){t.call("backToHome")},className:"coz-nav-apps-btns-home --flagship"},C.a.createElement(le,{className:"coz-nav-apps-btns-home-svg"})):n?C.a.createElement("a",{href:n,className:"coz-nav-apps-btns-home"},C.a.createElement(le,{className:"coz-nav-apps-btns-home-svg"})):C.a.createElement("span",{className:"coz-nav-apps-btns-home"},C.a.createElement(le,{className:"coz-nav-apps-btns-home-svg"}))},de=n(51),pe=n.n(de);var he=function(e){return C.a.createElement("svg",w()({viewBox:"0 0 32 32"},e,{role:"progressbar","aria-busy":"true"}),C.a.createElement("path",{opacity:.25,d:"M16 0a16 16 0 000 32 16 16 0 000-32m0 4a12 12 0 010 24 12 12 0 010-24"}),C.a.createElement("path",{d:"M16 0a16 16 0 0116 16h-4A12 12 0 0016 4z"}))},me=function(e){var t,n=e.className,r=e.extension,o=e.size,i=e.theme,a=e.variant,u=e.round,c=e.align;return T()(pe.a["c-btn"],(t={},g()(t,pe.a["c-btn--".concat(i)],i),g()(t,pe.a["c-btn--".concat(o)],"normal"!==o),g()(t,pe.a["c-btn--".concat(a)],a),g()(t,pe.a["c-btn--".concat(r)],r),g()(t,pe.a["c-btn--".concat(c)],c),g()(t,pe.a["c-btn--round"],u),t),n)},ye=function(e){return function(t){var n=t.busy,r=t.disabled,o=A()(t,["busy","disabled"]);return n&&(o["aria-busy"]=!0),r&&(o["aria-disabled"]=!0),"button"===e&&r&&(o.disabled=!0),o}},ve={button:ye("button"),a:ye("a")},ge=function(e){return e},be={tiny:8,small:12,large:18},we=function(e){var t=e.children,n=e.icon,r=e.iconOnly,o=e.label,i=e.subtle,a=e.className,u=e.extension,c=e.round,s=e.size,l=e.theme,f=e.align,d=e.extraRight,p=e.tag,h=A()(e,["children","icon","iconOnly","label","subtle","className","extension","round","size","theme","align","extraRight","tag"]),m=ve[p]||ge,y=r?o:null,v=r?"u-visuallyhidden":null;return C.a.createElement(p,w()({},m(h),{className:me({extension:u,align:f,round:c,size:s,theme:l,className:a,variant:i&&"subtle"}),title:y}),C.a.createElement("span",null,R.isProperIcon(n)?C.a.createElement(R,{size:be[s],icon:n,"aria-hidden":!0,focusable:"false"}):n,o&&C.a.createElement("span",{className:v},o),t,d&&C.a.createElement("span",{className:"u-ml-auto"},d),h.busy&&C.a.createElement(R,{size:be[s],icon:he,spin:!0,className:"u-ml-half","aria-hidden":!0,focusable:"false"})))},xe=function(e){return C.a.createElement(we,e)},Ce=function(e){return C.a.createElement(we,e)};function ke(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h()(this,n)}}xe.propTypes={children:E.a.node,label:E.a.node.isRequired,icon:E.a.oneOfType([E.a.node,D]),iconOnly:E.a.bool,theme:E.a.string,size:E.a.oneOf(["tiny","small","large","normal"]),extension:E.a.oneOf(["narrow","full"]),align:E.a.oneOf(["left","right","center"]),round:E.a.bool,className:E.a.string,onClick:E.a.func,extraRight:E.a.PropTypes.node,busy:E.a.bool,disabled:E.a.bool,type:E.a.oneOf(["button","reset","submit"]),subtle:E.a.bool},xe.defaultProps={type:"submit",tag:"button",size:"normal",align:"center"},Ce.defaultProps={tag:"a"};var Se=function(e){d()(n,e);var t=ke(n);function n(e){var r;return a()(this,n),(r=t.call(this,e)).state={unmounted:!0},r.animate=r.animate.bind(l()(r)),r}return c()(n,[{key:"animate",value:function(){var e=this;return setTimeout((function(){e.setState((function(){return{unmounted:!1}}))}),100)}},{key:"componentDidMount",value:function(){this.animate()}},{key:"render",value:function(){var e=this.props,t=e.t,n=e.code,r=e.links,o=this.state.unmounted;return C.a.createElement("div",{className:"coz-bar-banner".concat(o?" unmounted":"")},C.a.createElement("p",null,t("banner.".concat(n,".description"))),C.a.createElement(Ce,{className:"coz-bar-banner-button",size:"tiny",href:r,label:t("banner.".concat(n,".CTA"))}))}}]),n}(x.Component),_e=Object(S.translate)()(Se),Ae=n(142),Oe=n.n(Ae),Ee={"icon--spin":"styles__icon--spin___ybfC1",spin:"styles__spin___2Vvw3",icon:"styles__icon___23x3R","icon--preserveColor":"styles__icon--preserveColor___3gBz6",shake:"styles__shake___wT_3z"};function Be(e){return e instanceof Function}function je(e){var t=e.icon,n=e.width,r=e.height,o=e.color,i=e.className,a=e.preserveColor,u=e.rotate,c=e.size,s=e.spin,l=A()(e,["icon","width","height","color","className","preserveColor","rotate","size","spin"]),f=Object(x.useMemo)((function(){return Be(t)?t:function(e){var t;return(t=e.id?"#".concat(e.id):"#"===e[0]?e:"#"+e)?function(e){return C.a.createElement("svg",e,C.a.createElement("use",{xlinkHref:t}))}:(console.warn("Icon not found ".concat(e,".")),null)}(t)}),[t]),d=e.style;d=Object.assign({},d),o&&(d.fill=o),u&&(d.transform="rotate(".concat(u,"deg)"));var p=a?"icon--preserveColor":"icon",h=T()(i,Ee[p],g()({},Ee["icon--spin"],s));return f?C.a.createElement(f,w()({className:h,style:d,width:n||c||"16",height:r||c||"16"},l)):null}je.isProperIcon=function(e){var t=e&&!!e.id,n="string"==typeof e,r=Be(e);return t||n||r};var Pe=E.a.oneOfType([E.a.string,E.a.object,E.a.func]);je.propTypes={icon:Pe.isRequired,width:E.a.oneOfType([E.a.string,E.a.number]),height:E.a.oneOfType([E.a.string,E.a.number]),color:E.a.oneOfType([E.a.string,E.a.object]),className:E.a.string,preserveColor:E.a.bool,size:E.a.oneOfType([E.a.string,E.a.number]),spin:E.a.bool},je.defaultProps={spin:!1};var Te=je;var ze=function(e){return C.a.createElement("svg",w()({viewBox:"0 0 16 16"},e),C.a.createElement("defs",null,C.a.createElement("path",{d:"M164 261a4 4 0 118 0 4 4 0 110 8h-8a4 4 0 110-8zm1.146 3.854c.155.154.423.368.793.58.618.353 1.31.566 2.061.566.75 0 1.443-.213 2.06-.566.371-.212.64-.426.794-.58a.5.5 0 10-.708-.708 2.934 2.934 0 01-.582.42A3.136 3.136 0 01168 265a3.136 3.136 0 01-1.564-.434 2.934 2.934 0 01-.582-.42.5.5 0 10-.708.708z",id:"cloud_svg__a"})),C.a.createElement("g",{fillRule:"evenodd",transform:"translate(-160 -255)"},C.a.createElement("use",{xlinkHref:"#cloud_svg__a"})))},Ie=n(137),De=n.n(Ie),Re=n(19),Fe=n.n(Re),Me=n(75),Ne=n.n(Me),Le=function(e){var t=window.innerWidth;return Ne()(e,(function(e){var n=Fe()(e,2),r=n[0],o=n[1];return t>=r&&(void 0===o||t<=o)}))},Ue={isExtraLarge:[1201],isLarge:[1024,1200],isMedium:[769,1023],isSmall:[544,768],isTiny:[0,543],isDesktop:[1024],isTablet:[769,1023],isMobile:[0,768]};function $e(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h()(this,n)}}E.a.shape(Object.keys(Ue).reduce((function(e,t){return e[t]=E.a.bool.isRequired,e}),{}));var Ge=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ue;return function(t){var n=function(n){d()(o,n);var r=$e(o);function o(t){var n;return a()(this,o),(n=r.call(this,t)).state={breakpoints:Le(e)},n.checkBreakpoints=De()((function(){n.setState({breakpoints:Le(e)})}),100,{trailing:!0}),n}return c()(o,[{key:"componentDidMount",value:function(){window.addEventListener("resize",this.checkBreakpoints)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.checkBreakpoints)}},{key:"render",value:function(){var e=this.props,n=this.state.breakpoints;return C.a.createElement(t,w()({},e,{breakpoints:n}))}}]),o}(x.Component);return n.displayName="withBreakpoints(".concat(t.displayName||t.name,")"),n}},qe=n(13),Je=n(18),He=n.n(Je),We=E.a.shape({slug:E.a.string.isRequired,name:E.a.string.isRequired,namePrefix:E.a.string,comingSoon:E.a.bool,href:E.a.string,links:E.a.shape({icon:E.a.string.isRequired})}),Qe=(Object(H.isAndroidApp)(),function(e){return e?e.startsWith("/")?e:"/"+e:"/"}),Ve=function(e){var t=e.slug,n=e.cozyUrl,r=e.subDomainType,o=e.fallbackUrl,i=e.nativePath;if(i=Qe(i),!n&&!o)throw new Error("Must have either cozyUrl or fallbackUrl to generate universal link.");n&&!o&&(o=function(e){var t=e.cozyUrl,n=e.nativePath,r=e.slug,o=e.subDomainType;n=Qe(n);var i=new URL(t);return i.host="nested"===o?"".concat(r,".").concat(i.host):i.host.split(".").map((function(e,t){return 0===t?e+"-"+r:e})).join("."),i.hash=n,i.toString()}({cozyUrl:n,nativePath:i,slug:t,subDomainType:r}));var a=new URL("https://links.mycozy.cloud/"+t+i);return a.searchParams.append("fallback",o),a.toString()},Ye={drive:{appId:"io.cozy.drive.mobile",uri:"cozydrive://",name:"Cozy Drive"},banks:{appId:Object(H.isAndroidApp)()?"io.cozy.banks.mobile":"io.cozy.banks",uri:"cozybanks://",name:"Cozy Banks"}};function Ke(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h()(this,n)}}var Ze,Xe,et,tt,nt=(Ze=function(e){return Object(H.checkApp)(e).catch((function(){return!1}))},Xe=1e4,et=function(e){return e.appId},tt={},function(e){var t=et(e),n=tt[t];return n&&n.result&&n.date-Date.now()<Xe||(tt[t]={result:Ze(e),date:Date.now()}),tt[t].result}),rt=function(e){d()(r,e);var t,n=Ke(r);function r(e){var t;return a()(this,r),t=n.call(this,e),g()(l()(t),"state",{nativeAppIsAvailable:null,isFetchingAppInfo:!1}),t}return c()(r,[{key:"componentDidMount",value:function(){Object(H.isMobileApp)()&&this.checkAppAvailability()}},{key:"checkAppAvailability",value:(t=Y()(Q.a.mark((function e(){var t,n,r;return Q.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.props.slug,!(n=Ye[t])){e.next=9;break}return e.t0=Boolean,e.next=6,nt(n);case 6:e.t1=e.sent,r=(0,e.t0)(e.t1),this.setState({nativeAppIsAvailable:r});case 9:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"render",value:function(){var e=this.props,t=e.children,n=e.slug,i=this.state.nativeAppIsAvailable,a=Ye[n],u=r.getOnClickHref(this.props,i),c=u.href,s=u.onClick;return t(o()({},a,{onClick:s,href:c}))}}],[{key:"getOnClickHref",value:function(e,t){var n=e.slug,o=e.nativePath,i=e.href,a=null,u=Object(H.isMobileApp)(),c=Ye[n];if(u)t?(a=r.openNativeFromNative.bind(this,e),i="#"):a=r.openWeb.bind(this,e);else if(Object(H.isMobile)()&&c)if(Object(H.isAndroid)())a=r.openNativeFromWeb.bind(this,e);else try{i=Ve({slug:n,nativePath:o,fallbackUrl:i})}catch(e){console.error(e),i="#"}return{href:i,onClick:a}}},{key:"openNativeFromWeb",value:function(e,t){var n=e.href,o=e.slug,i=e.nativePath,a=e.onAppSwitch,u=Ye[o];t&&t.preventDefault(),r.onAppSwitch(a),Object(H.openDeeplinkOrRedirect)(u.uri+("/"===i?"":i),(function(){window.location.href=n}))}},{key:"onAppSwitch",value:function(e){"function"==typeof e&&e()}},{key:"openNativeFromNative",value:function(e,t){var n=e.slug,o=e.onAppSwitch;t&&t.preventDefault();var i=Ye[n];r.onAppSwitch(o),Object(H.startApp)(i).catch((function(e){console.error("AppLinker: Could not open native app",e)}))}},{key:"openWeb",value:function(e){r.onAppSwitch(e.onAppSwitch)}}]),r}(C.a.Component);rt.defaultProps={nativePath:"/"},rt.propTypes={slug:E.a.string.isRequired,href:E.a.string.isRequired,nativePath:E.a.string,onAppSwitch:E.a.func};var ot=rt;function it(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h()(this,n)}}var at=He()(K.models,"applications.getAppDisplayName",(function(e){return e.namePrefix&&"cozy"!==e.namePrefix.toLowerCase()?"".concat(e.namePrefix," ").concat(e.name):e.name})),ut=function(e){d()(n,e);var t=it(n);function n(e){var r;return a()(this,n),(r=t.call(this,e)).onAppSwitch=r.onAppSwitch.bind(l()(r)),r}return c()(n,[{key:"componentWillUnmount",value:function(){this.switchTimeout&&clearTimeout(this.switchTimeout)}},{key:"buildAppUrl",value:function(e){var t;try{t=new URL(e)}catch(e){return console.error(e.message),null}var r=n.buildQueryParams(this.props,this.context);if(r)for(var o in r)t.searchParams.append(o,r[o]);return t.toString()}},{key:"onAppSwitch",value:function(){var e=this.props.onAppSwitch;"function"==typeof e&&(this.switchTimeout=setTimeout((function(){e()}),1e3))}},{key:"render",value:function(){var e=this.props,t=e.useHomeIcon,n=e.app,r=n.slug?"icon-".concat(n.slug):"",o=at(n);return C.a.createElement(ot,{onAppSwitch:this.onAppSwitch,slug:n.slug,href:this.buildAppUrl(n.href)||""},(function(e){var i=e.onClick,a=e.href;return C.a.createElement("li",{className:"coz-nav-apps-item".concat(n.isCurrentApp?" --current":"")},C.a.createElement("a",{role:"menuitem",href:a,"data-icon":r,title:o,onClick:i},t?C.a.createElement(le,{className:"coz-nav-apps-item-icon"}):C.a.createElement(ae,w()({app:n,className:"coz-nav-apps-item-icon",key:n.slug},ue.b.get.iconProps())),C.a.createElement("p",{className:"coz-label"},o)))}))}}]),n}(C.a.Component);g()(ut,"buildQueryParams",(function(){return null})),ut.propTypes={app:We.isRequired,useHomeIcon:E.a.bool};var ct=ut,st=function(){return C.a.createElement("li",{className:"coz-nav-apps-item"},C.a.createElement("span",{role:"menuitem",disabled:!0},C.a.createElement("div",{className:"coz-nav-apps-item-icon coz-loading-placeholder"}),C.a.createElement("p",{className:"coz-label coz-loading-placeholder"})))};function lt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h()(this,n)}}var ft=function(e){d()(n,e);var t=lt(n);function n(e,r){var o;return a()(this,n),(o=t.call(this,e,r)).translateApp=dt(o.props.t),o}return c()(n,[{key:"render",value:function(){var e=this.props,t=e.t,n=e.apps,r=e.breakpoints,o=e.homeApp,i=e.isFetchingApps,a=e.onAppSwitch,u=r.isMobile,c=o&&o.isCurrentApp,s=o&&o.slug;return i||n&&n.length?C.a.createElement("div",{className:"coz-nav-pop-content"},C.a.createElement("ul",{className:"coz-nav-group"},u&&o&&C.a.createElement(ct,{app:o,useHomeIcon:!0,onAppSwitch:a}),i?new Array(3).fill({}).map((function(e,t){return C.a.createElement(st,{key:t})})):n.filter((function(e){return e.slug!==s})).sort(function(e){return function(t,n){return e(t)>e(n)}}(this.translateApp)).map((function(e,t){return C.a.createElement(ct,{app:e,key:t,onAppSwitch:a})}))),o&&!u&&!c&&C.a.createElement("a",{role:"menuitem",href:o.href,className:"coz-apps-home-btn"},C.a.createElement(Te,{icon:ze}),t("menu.home"))):C.a.createElement("p",{className:"coz-nav--error coz-nav-group"},t("no_apps"))}}]),n}(x.Component);ft.propTypes={homeApp:E.a.shape({isCurrentApp:E.a.bool,slug:E.a.string}),apps:E.a.array,isFetchingApps:E.a.bool.isRequired};var dt=function(e){return function(t){var n=t.namePrefix?e("".concat(t.slug,".namePrefix"),{_:t.namePrefix}):null,r=e("".concat(t.slug,".name"),{_:t.name});return n?"".concat(n," ").concat(r):"".concat(r)}},pt=Object(k.connect)((function(e){return{apps:Object(qe.d)(e),homeApp:Object(qe.f)(e),isFetchingApps:Object(qe.n)(e)}}))(Object(S.translate)()(Ge()(ft)));var ht=function(e){return C.a.createElement("svg",w()({viewBox:"0 0 16 16"},e),C.a.createElement("path",{fillRule:"evenodd",d:"M2 1c0-.552.456-1 1.002-1h9.996A1 1 0 0114 1v14c0 .552-.456 1-1.002 1H3.002A1 1 0 012 15V1zm2 1v10h8V2H4zm4 13a1 1 0 100-2 1 1 0 000 2z"}))};var mt=function(e){return C.a.createElement("svg",w()({viewBox:"0 0 16 16"},e),C.a.createElement("path",{fillRule:"evenodd",d:"M8 9c2.21 0 4-2.015 4-4.5S10.21 0 8 0 4 2.015 4 4.5 5.79 9 8 9zm-8 5c0-1 2-4 4-4s1 1 4 1 2-1 4-1 4 3 4 4 0 2-1 2H1c-1 0-1-1-1-2z"}))};var yt=function(e){return C.a.createElement("svg",w()({viewBox:"0 0 16 16"},e),C.a.createElement("path",{fillRule:"evenodd",d:"M4 6a4 4 0 118 0 4 4 0 110 8H4a4 4 0 110-8zm1 3s0 2 3 2 3-2 3-2H5z"}))};var vt=function(e){return C.a.createElement("svg",w()({viewBox:"0 0 16 16"},e),C.a.createElement("path",{fillRule:"evenodd",d:"M12.586 9H5a1 1 0 110-2h7.586l-1.293-1.293a1 1 0 111.414-1.414l3 3a1 1 0 010 1.414l-3 3a1 1 0 01-1.414-1.414L12.586 9zM0 1a1 1 0 112 0v14a1 1 0 01-2 0V1z"}))};var gt=function(e){return C.a.createElement("svg",w()({viewBox:"0 0 16 16"},e),C.a.createElement("path",{fillRule:"evenodd",d:"M8 16A8 8 0 118 0a8 8 0 010 16zm1-7.198C10.122 8.355 11 7.21 11 6c0-1.552-1.448-3-3-3S5 4.448 5 6h2c0-.448.552-1 1-1 .448 0 1 .552 1 1 0 .448-.552 1-1 1a1 1 0 00-1 1v2h2V8.802zM7 11v2h2v-2H7z"}))},bt=Object(S.translate)()((function(e){var t=e.t,n=e.data,r=Number.isInteger(n.quota)?(n.quota/1e9).toFixed(2):n.quota,o=Number.isInteger(n.usage)?(n.usage/1e9).toFixed(2):n.usage;return C.a.createElement("div",{className:"coz-nav-storage"},C.a.createElement("p",{className:"coz-nav-storage-text"},t("storage_phrase",{diskUsage:o,diskQuota:r})),C.a.createElement("progress",{className:"cozy-nav-storage-bar",value:o,max:r,min:"0"}))}));var wt=function(e){return C.a.createElement("svg",w()({width:16,height:16},e),C.a.createElement("path",{fillRule:"evenodd",d:"M1 4h14v10.004a1 1 0 01-1.007.996H2.007A1 1 0 011 14.004V4zM0 2c0-.552.445-1 1-1h14c.552 0 1 .444 1 1v1H0V2zm5 4h6v2H5V6z"}))},xt=function(e){var t=e.icon;return C.a.createElement(Te,{className:"u-mr-half",color:"var(--slateGrey)",icon:t})},Ct=function(e){var t=e.children;return C.a.createElement("ul",{className:"coz-nav-group"},t)},kt=function(e){var t=e.children;return C.a.createElement("li",{className:"coz-nav-settings-item"},t)},St=function(e){var t=e.t,n=e.onLogOut,r=e.settingsAppURL,o=e.storageData,i=e.onClaudy,a=e.isDrawer,u=void 0!==a&&a,c=e.isClaudyLoading,s=e.toggleSupport,l=e.shoulDisplayViewOfferButton,f=e.managerUrlPremiumLink,d=e.viewOfferButtonText;return C.a.createElement("div",{className:"coz-nav-pop-content"},u&&C.a.createElement("hr",null),r&&C.a.createElement(Ct,null,C.a.createElement(kt,null,C.a.createElement("a",{role:"menuitem",href:"".concat(r,"#/profile"),target:"_self",title:t("profile")},C.a.createElement(xt,{className:"u-mr-half",icon:mt}),t("profile"))),C.a.createElement(kt,null,C.a.createElement("a",{role:"menuitem",href:"".concat(r,"#/connectedDevices"),target:"_self",title:t("connectedDevices")},C.a.createElement(xt,{icon:ht}),t("connectedDevices")))),u&&i&&!Object(H.isMobileApp)()&&C.a.createElement(Ct,null,C.a.createElement(kt,null,C.a.createElement("button",{type:"button",role:"menuitem",className:"coz-nav-settings-item-btn",busy:c,onClick:i},C.a.createElement(xt,{icon:ze})," ",t("claudy.title")))),!u&&o&&C.a.createElement(Ct,null,C.a.createElement(kt,null,C.a.createElement("a",{role:"menuitem",target:"_self",title:t("storage"),href:"".concat(r,"#/storage")},C.a.createElement(xt,{icon:wt})," ",t("storage"),C.a.createElement(bt,{data:o})))),(!u||!Object(H.isMobileApp)())&&l&&C.a.createElement(Ct,null,C.a.createElement(kt,null,C.a.createElement(Ce,{subtle:!0,role:"menuitem",className:"coz-nav-settings-item-btn",icon:C.a.createElement(xt,{icon:yt}),title:d,label:d,href:f}))),!Object(H.isMobileApp)()&&C.a.createElement(Ct,null,C.a.createElement(kt,null,C.a.createElement("button",{type:"button",role:"menuitem",className:"coz-nav-settings-item-btn",onClick:s},C.a.createElement(xt,{icon:gt})," ",t("help")))),C.a.createElement(Ct,null,C.a.createElement(kt,null,C.a.createElement("button",{type:"button",role:"menuitem",onClick:n,title:t("logout")},C.a.createElement(xt,{icon:vt})," ",t("logout")))))};St.defaultProps={shoulDisplayViewOfferButton:!1},St.propTypes={shoulDisplayViewOfferButton:E.a.bool,t:E.a.func.isRequired,onLogOut:E.a.func.isRequired,settingsAppURL:E.a.string,storageData:E.a.object,onClaudy:E.a.oneOfType([E.a.bool,E.a.func]),isDrawer:E.a.bool,isClaudyLoading:E.a.bool,toggleSupport:E.a.func.isRequired,viewOfferButtonText:E.a.string};var _t=Object(S.translate)()(St);function At(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h()(this,n)}}var Ot=function(e){d()(o,e);var t,n,r=At(o);function o(e){var t;return a()(this,o),t=r.call(this,e),g()(l()(t),"onDrawerClick",(function(e){e.target===t.wrapperRef&&t.close()})),g()(l()(t),"onTransitionEnd",(function(){t.props.visible?(t.gesturesHandler||t.attachGestures(),t.preventBackgroundScrolling()):(t.restoreBackgroundScrolling(),t.setState({isClosing:!1})),t.props.drawerListener()})),g()(l()(t),"componentWillReceiveProps",function(){var e=Y()(Q.a.mark((function e(n){return Q.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.UNSAFE_componentWillReceiveProps(n);case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),g()(l()(t),"UNSAFE_componentWillReceiveProps",function(){var e=Y()(Q.a.mark((function e(n){return Q.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.props.visible||!n.visible){e.next=3;break}return e.next=3,t.props.fetchSettingsData();case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),g()(l()(t),"close",(function(){t.state.isClosing||(t.detachGestures(),t.setState((function(){return{isClosing:!0}})),t.turnTransitionsOn(),t.props.onClose(),t.asideRef.style.transform="")})),t.state={isScrolling:!1,isClosing:!1},t.handleLogout=t.handleLogout.bind(l()(t)),t}return c()(o,[{key:"componentDidMount",value:(n=Y()(Q.a.mark((function e(){return Q.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.turnTransitionsOn();case 1:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"turnTransitionsOn",value:function(){this.asideRef.classList.add("with-transition"),this.asideRef.addEventListener("transitionend",this.onTransitionEnd)}},{key:"turnTransitionsOff",value:function(){this.asideRef.classList.remove("with-transition"),this.asideRef.removeEventListener("transitionend",this.onTransitionEnd)}},{key:"preventBackgroundScrolling",value:function(){document.body.style.overflow="hidden"}},{key:"restoreBackgroundScrolling",value:function(){document.body.style.overflow="auto"}},{key:"detachGestures",value:function(){this.gesturesHandler.destroy(),this.gesturesHandler=null}},{key:"attachGestures",value:function(){var e=this;this.gesturesHandler=new Oe.a.Manager(document.documentElement,{recognizers:[[Oe.a.Pan,{direction:Oe.a.DIRECTION_ALL}]]});var t=this.asideRef.getBoundingClientRect().width,n=null;this.gesturesHandler.on("panstart",(function(t){e.state.isClosing||("panup"===t.additionalEvent||"pandown"===t.additionalEvent?e.setState({isScrolling:!0}):(e.turnTransitionsOff(),n=0))})),this.gesturesHandler.on("pan",(function(r){e.state.isClosing||e.state.isScrolling||(n=-r.deltaX/t,e.applyTransformation(n))})),this.gesturesHandler.on("panend",(function(n){if(!e.state.isClosing)if(e.state.isScrolling)e.setState({isScrolling:!1});else{var r=-n.deltaX/t>=.4,o=n.velocity<0&&Math.abs(n.velocity)>=.2;r||o?e.close():(e.turnTransitionsOn(),e.applyTransformation(0))}}))}},{key:"applyTransformation",value:function(e){e=Math.min(1.1,Math.max(0,e)),this.asideRef.style.transform="translateX(-"+100*e+"%)"}},{key:"handleLogout",value:(t=Y()(Q.a.mark((function e(){var t,n,r,o;return Q.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.props,n=t.onLogOut,r=t.logOut,!n||"function"!=typeof n){e.next=6;break}if(!((o=n())instanceof Promise)){e.next=6;break}return e.next=6,o;case 6:r();case 7:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"render",value:function(){var e=this,t=this.props,n=t.onClaudy,r=t.visible,o=t.isClaudyLoading,i=t.toggleSupport,a=t.settingsAppURL,u=t.storageData;return C.a.createElement("div",{className:"coz-drawer-wrapper",onClick:this.onDrawerClick,"aria-hidden":r?"false":"true",ref:function(t){e.wrapperRef=t}},C.a.createElement("aside",{ref:function(t){e.asideRef=t}},C.a.createElement("nav",{className:"coz-drawer--apps"},C.a.createElement(pt,{onAppSwitch:this.close})),C.a.createElement("hr",{className:"coz-sep-flex"}),C.a.createElement("nav",{className:"coz-drawer--settings"},C.a.createElement(_t,{onLogOut:this.handleLogout,storageData:u,settingsAppURL:a,isClaudyLoading:o,onClaudy:n,toggleSupport:i,isDrawer:!0}))))}}]),o}(x.Component),Et=Object(k.connect)((function(e){return{storageData:Object(qe.i)(e),settingsAppURL:Object(qe.h)(e)}}),(function(e){return{fetchSettingsData:function(){return e(Object(qe.c)())},logOut:function(){return e(Object(qe.q)())}}}))(Ot),Bt=n(32);var jt=function(e){return C.a.createElement("svg",w()({viewBox:"0 0 16 16"},e),C.a.createElement("g",{fillRule:"evenodd"},C.a.createElement("path",{d:"M14.25 7.078c.051.26.077.568.077.926 0 .358-.026.665-.078.925l1.62 1.333c.131.086.163.203.099.352-.325.95-.859 1.826-1.602 2.628-.104.124-.229.155-.37.094l-2.032-.668c-.52.396-1.08.705-1.68.926l-.409 2c-.026.146-.117.233-.273.258-.56.1-1.094.148-1.602.148a9.21 9.21 0 01-1.601-.148c-.157-.024-.248-.11-.274-.259l-.409-1.999a5.98 5.98 0 01-1.68-.926l-2.03.668c-.145.062-.268.03-.372-.094C.892 12.44.359 11.565.032 10.614c-.065-.148-.032-.266.098-.352L1.751 8.93a4.761 4.761 0 01-.078-.925c0-.358.026-.667.078-.926L.131 5.746C0 5.66-.034 5.542.031 5.394c.326-.95.86-1.826 1.602-2.627.104-.123.228-.154.371-.093l2.031.667a5.99 5.99 0 011.68-.926l.41-1.999c.025-.148.116-.234.273-.259a8.221 8.221 0 013.202 0c.156.024.247.111.273.26l.41 1.998c.6.223 1.159.53 1.68.926l2.03-.667c.143-.062.267-.03.371.093.742.802 1.276 1.678 1.602 2.627.064.148.032.266-.098.352l-1.62 1.332zM8 4.5a3.5 3.5 0 100 7 3.5 3.5 0 000-7z"}),C.a.createElement("path",{d:"M14.25 7.078c.051.26.077.568.077.926 0 .358-.026.665-.078.925l1.62 1.333c.131.086.163.203.099.352-.325.95-.859 1.826-1.602 2.628-.104.124-.229.155-.37.094l-2.032-.668c-.52.396-1.08.705-1.68.926l-.409 2c-.026.146-.117.233-.273.258-.56.1-1.094.148-1.602.148a9.21 9.21 0 01-1.601-.148c-.157-.024-.248-.11-.274-.259l-.409-1.999a5.98 5.98 0 01-1.68-.926l-2.03.668c-.145.062-.268.03-.372-.094C.892 12.44.359 11.565.032 10.614c-.065-.148-.032-.266.098-.352L1.751 8.93a4.761 4.761 0 01-.078-.925c0-.358.026-.667.078-.926L.131 5.746C0 5.66-.034 5.542.031 5.394c.326-.95.86-1.826 1.602-2.627.104-.123.228-.154.371-.093l2.031.667a5.99 5.99 0 011.68-.926l.41-1.999c.025-.148.116-.234.273-.259a8.221 8.221 0 013.202 0c.156.024.247.111.273.26l.41 1.998c.6.223 1.159.53 1.68.926l2.03-.667c.143-.062.267-.03.371.093.742.802 1.276 1.678 1.602 2.627.064.148.032.266-.098.352l-1.62 1.332zM8 4.5a3.5 3.5 0 100 7 3.5 3.5 0 000-7z"})))},Pt={query:function(){return Object(K.Q)("io.cozy.settings").getById("instance")},as:"instanceQuery"},Tt={query:function(){return Object(K.Q)("io.cozy.settings").getById("context")},as:"contextQuery"},zt={query:function(){return Object(K.Q)("io.cozy.settings").getById("disk-usage")},as:"diskUsageQuery"},It=n(139),Dt=function(){return Object(It.a)("8.3.0")};function Rt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h()(this,n)}}var Ft=void 0,Mt=void 0,Nt=void 0;K.models&&(Ft=K.models.instance,Nt=function(e){var t=He()(e,"diskUsage.data.attributes.quota",!1);return parseInt(t)<5e10},Mt=function(e){return!Ft.isSelfHosted(e)&&Ft.arePremiumLinksEnabled(e)&&Ft.getUuid(e)&&!Nt(e)});var Lt=function(e){d()(n,e);var t=Rt(n);function n(e){var r;return a()(this,n),r=t.call(this,e),g()(l()(r),"onClickOutside",(function(e){(r.props.isFetching||r.state.opened)&&(r.rootRef.contains(e.target)||(r.setState({opened:!1}),e.stopPropagation()))})),g()(l()(r),"toggleMenu",(function(){if(r.state.opened)return r.setState({opened:!1});r.props.fetchSettingsData(),r.setState({opened:!0})})),r.state={opened:!1},r}return c()(n,[{key:"componentDidMount",value:function(){document.body.addEventListener("click",this.onClickOutside)}},{key:"componentWillUnmount",value:function(){document.body.removeEventListener("click",this.onClickOutside)}},{key:"render",value:function(){var e,t,n=this,r=this.props,o=r.isBusy,i=r.logOut,a=r.onLogOut,u=r.t,c=r.toggleSupport,s=r.diskUsageQuery,l=r.instanceQuery,f=r.contextQuery,d=r.storageData,p=r.settingsAppURL,h=r.isFetching,m=!1,y="",v=Dt();if(v&&!(t=[s,l,f].some((function(e){return"loading"===e.fetchStatus})))){var g={context:f,diskUsage:s,instance:l};(m=Ft.shouldDisplayOffers(g)||Mt(g))&&!Mt(g)?y=u("view_offers"):Mt(g)&&(y=u("view_my_offer")),e=Ft.buildPremiumLink(g)}var b=!1;b=v?!t&&!h:!h;var w=this.state.opened&&b;return C.a.createElement("div",{className:"coz-nav coz-nav-settings",ref:function(e){n.rootRef=e}},C.a.createElement(xe,{type:"button",theme:"text",onClick:this.toggleMenu,className:"coz-nav-settings-btn","aria-controls":"coz-nav-pop--settings",busy:o,icon:jt,label:u("menu.settings")}),C.a.createElement("div",{className:"coz-nav-pop coz-nav-pop--settings",id:"coz-nav-pop--settings","aria-hidden":!w},b&&C.a.createElement(C.a.Fragment,null,C.a.createElement(_t,{onLogOut:function(){a&&"function"==typeof a?a():i()},toggleSupport:c,storageData:d,settingsAppURL:p,shoulDisplayViewOfferButton:m,managerUrlPremiumLink:e,viewOfferButtonText:y}))))}}]),n}(x.Component),Ut=function(e){return{storageData:Object(qe.i)(e),settingsAppURL:Object(qe.h)(e),isBusy:Object(qe.p)(e),isFetching:Object(qe.o)(e)}},$t=function(e){return{fetchSettingsData:function(){return e(Object(qe.c)())},logOut:function(){return e(Object(qe.q)())}}},Gt=Dt()?Object(Bt.d)(Object(S.translate)(),Object(K.queryConnect)({instanceQuery:Pt,contextQuery:Tt,diskUsageQuery:zt}),Object(k.connect)(Ut,$t))(Lt):Object(Bt.d)(Object(S.translate)(),Object(k.connect)(Ut,$t))(Lt);var qt=function(e){return C.a.createElement("svg",w()({viewBox:"0 0 24 24"},e),C.a.createElement("path",{d:"M3.968 6.175a1.571 1.571 0 00-2.222 2.222l9.429 9.428a1.571 1.571 0 002.222 0l9.428-9.428a1.571 1.571 0 00-2.222-2.222l-8.317 8.317-8.318-8.317z",fillRule:"evenodd"}))};var Jt=function(e){return C.a.createElement("svg",w()({viewBox:"0 0 24 24"},e),C.a.createElement("path",{d:"M20.603 17.825a1.571 1.571 0 002.222-2.222l-9.428-9.428a1.571 1.571 0 00-2.222 0l-9.429 9.428a1.571 1.571 0 002.222 2.222l8.318-8.317 8.317 8.317z",fillRule:"evenodd"}))};function Ht(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h()(this,n)}}var Wt=function(e){d()(n,e);var t=Ht(n);function n(){return a()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props,t=e.homeApp,n=e.handleClick,r=e.appName,o=e.appNamePrefix,i=e.appSlug,a=e.iconPath,u=e.isFetchingApps,c=e.isPublic,s=e.opened,l=e.t,f=t&&t.isCurrentApp;if(!c&&u)return C.a.createElement("div",{className:"coz-nav-apps-btns --loading"},C.a.createElement("div",{className:"coz-nav-apps-btns-home coz-loading-placeholder"}),C.a.createElement("div",{className:"coz-nav-apps-btns-main coz-loading-placeholder"}));var d=!f&&o?[l("".concat(i,".name_prefix"),{_:o}),l("".concat(i,".name"),{_:r})].join(" "):l("".concat(i,".name"),{_:r}),p=!c&&t&&t.href;return C.a.createElement("div",{className:"coz-nav-apps-btns".concat(f?" --currentHome":"")},C.a.createElement(fe,{homeHref:p}),!f&&C.a.createElement("span",{className:"coz-nav-apps-btns-sep"}),C.a.createElement("button",{type:"button",onClick:c?null:n,className:"coz-nav-apps-btns-main","aria-controls":"coz-nav-pop--apps","data-tutorial":"apps",disabled:c},!f&&C.a.createElement("img",{className:"coz-bar-hide-sm",src:a,width:"28",alt:""}),C.a.createElement("span",{className:"coz-nav-app-name"},d),!c&&C.a.createElement(R,{icon:s?Jt:qt,color:"#95999d",size:"12"})))}}]),n}(x.Component),Qt=Object(k.connect)((function(e){return{homeApp:Object(qe.f)(e),isFetchingApps:Object(qe.n)(e)}}),(function(){return{}}))(Object(S.translate)()(Wt));function Vt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h()(this,n)}}var Yt=function(e){d()(n,e);var t=Vt(n);function n(e){var r;return a()(this,n),r=t.call(this,e),g()(l()(r),"onClickOutside",(function(e){r.state.opened&&(r.rootRef.contains(e.target)||r.modalContainer.contains(e.target)||(r.setState({opened:!1}),e.stopPropagation()))})),g()(l()(r),"toggleMenu",(function(){r.setState({opened:!r.state.opened})})),r.state={opened:!1},r}return c()(n,[{key:"componentDidMount",value:function(){document.body.addEventListener("click",this.onClickOutside),this.modalContainer=document.getElementById("cozy-bar-modal-dom-place")}},{key:"componentWillUnmount",value:function(){document.body.removeEventListener("click",this.onClickOutside)}},{key:"render",value:function(){var e=this,t=this.props,n=t.appName,r=t.appNamePrefix,o=t.appSlug,i=t.iconPath,a=t.isPublic,u=this.state.opened;return C.a.createElement("nav",{className:"coz-nav coz-nav-apps",ref:function(t){e.rootRef=t}},C.a.createElement(Qt,{appName:n,appNamePrefix:r,appSlug:o,iconPath:i,handleClick:this.toggleMenu,opened:u,isPublic:a}),C.a.createElement("div",{className:"coz-nav-pop coz-nav-pop--apps",id:"coz-nav-pop--apps","aria-hidden":!u},C.a.createElement(pt,null)))}}]),n}(x.Component),Kt=n(31),Zt=n.n(Kt),Xt=n(337),en=n.n(Xt),tn=n(338),nn=n.n(tn);var rn=n(138);function on(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h()(this,n)}}var an=function(e){return e.toString().toLowerCase().replace(/\//g," ").normalize("NFD").replace(/[\u0300-\u036f]/g,"").split(" ")},un=function(e,t){var n=an(t),r=an(e),o=[],i=0;r.forEach((function(e){n.forEach((function(t){var n=e.indexOf(t);n>=0&&o.push({from:i+n,to:i+n+t.length})})),i+=e.length+1}));for(var a=o.sort((function(e,t){return e.from>t.from})).reduce((function(e,t){return 0===e.length||e[e.length-1].to<t.from?e.push(t):e[e.length-1].to<t.to&&(e[e.length-1].to=t.to),e}),[]),u=a.length>0?[e.slice(0,a[0].from)]:e,c=0,s=a.length;c<s;++c)u.push(C.a.createElement("b",null,e.slice(a[c].from,a[c].to))),c+1<s&&u.push(e.slice(a[c].to,a[c+1].from));return a.length>0&&u.push(e.slice(a[a.length-1].to,e.length)),u},cn=function(e){d()(n,e);var t=on(n);function n(){var e;a()(this,n);for(var r=arguments.length,i=new Array(r),u=0;u<r;u++)i[u]=arguments[u];return e=t.call.apply(t,[this].concat(i)),g()(l()(e),"state",{input:"",query:null,searching:!1,focused:!1,suggestionsBySource:[],sourceURLs:[]}),g()(l()(e),"sources",[]),g()(l()(e),"onMessageFromSource",(function(e){return function(t){var n=e.find((function(e){return e.origin===t.origin}));if(!n)return null;t.data.type==="intent-".concat(n.id,":ready")?(n.ready=!0,n.window=t.source,n.window.postMessage({},t.origin)):t.data.type==="intent-".concat(n.id,":data")&&n.resolvers[t.data.id]?(n.resolvers[t.data.id]({id:n.id,suggestions:t.data.suggestions}),delete n.resolvers[t.data.id]):rn.a.log("unhandled message:",t)}})),g()(l()(e),"onChange",(function(t,n){var r=n.newValue;e.setState({input:r})})),g()(l()(e),"changeFocusState",(function(t){e.setState({focused:t})})),g()(l()(e),"clearSuggestions",(function(){e.setState({suggestionsBySource:[]})})),g()(l()(e),"onSuggestionsFetchRequested",(function(t){var n=t.value,r=e.sources.filter((function(e){return e.ready}));r.length>0&&(e.setState((function(e){return o()({},e,{searching:!0})})),r.forEach(function(){var t=Y()(Q.a.mark((function t(r){var i,a,u,c;return Q.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,new Promise((function(e){var t=(new Date).getTime().toString();r.resolvers[t]=e,r.window.postMessage({query:n,id:t},r.origin)}));case 2:i=t.sent,a=i.id,u=i.suggestions,c=e.sources.find((function(e){return e.id===a})).slug,e.state.query!==n?e.setState((function(e){return o()({},e,{searching:!1,query:n,suggestionsBySource:[{title:c,suggestions:u}]})})):e.setState((function(e){return o()({},e,{suggestionsBySource:[].concat(Zt()(e.suggestionsBySource),[{title:c,suggestions:u}])})}));case 7:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()))})),g()(l()(e),"onSuggestionsClearRequested",(function(){e.clearSuggestions(),e.debouncedOnSuggestionsFetchRequested.cancel(),e.setState({query:null,searching:!1})})),g()(l()(e),"onSuggestionSelected",(function(t,n){var r=n.suggestion.onSelect;if(/^open:/.test(r)){var o=r.substr(5);window.location.href=o}else console.log("suggestion onSelect ("+r+") could not be executed");e.setState({input:"",query:null})})),g()(l()(e),"getSectionSuggestions",(function(e){return e.suggestions.slice(0,10)})),g()(l()(e),"getSuggestionValue",(function(e){return e.subtitle})),g()(l()(e),"renderSectionTitle",(function(){return null})),g()(l()(e),"renderSuggestion",(function(t){return C.a.createElement("div",{className:"coz-searchbar-autosuggest-suggestion-item"},t.icon&&C.a.createElement("img",{className:"coz-searchbar-autosuggest-suggestion-icon",src:t.icon,alt:"icon"}),C.a.createElement("div",{className:"coz-searchbar-autosuggest-suggestion-content"},C.a.createElement("div",{className:"coz-searchbar-autosuggest-suggestion-title"},un(t.title,e.state.query)),t.subtitle&&C.a.createElement("div",{className:"coz-searchbar-autosuggest-suggestion-subtitle"},un(t.subtitle,e.state.query))))})),e}return c()(n,[{key:"componentWillMount",value:function(){this.debouncedOnSuggestionsFetchRequested=nn()(this.onSuggestionsFetchRequested,250)}},{key:"componentDidMount",value:function(){var e=this;(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];return Object(ue.a)(null,"POST","/intents",{data:{type:"io.cozy.intents",attributes:{action:e,type:t,data:n,permissions:r}}})})("OPEN","io.cozy.suggestions").then((function(t){var n=t.attributes.services;if(!n)return null;e.sources=n.map((function(n){var r=n.href;e.setState((function(e){return o()({},e,{sourceURLs:[].concat(Zt()(e.sourceURLs),[r])})}));var i=r.split("/",3).join("/");return{slug:n.slug,origin:i,id:t._id,ready:!1,window:null,resolvers:{}}})),window.addEventListener("message",e.onMessageFromSource(e.sources))}))}},{key:"render",value:function(){var e=this,t=this.state,n=t.input,r=t.query,o=t.searching,i=t.focused,a=t.suggestionsBySource,u=t.sourceURLs;if(0===u.length)return null;var c=this.props.t,s=""!==n&&null===r,l=a.reduce((function(e,t){return e+t.suggestions.length}),0)>0,f={placeholder:c("searchbar.placeholder"),value:n,onChange:this.onChange,onFocus:function(){return e.changeFocusState(!0)},onBlur:function(){return e.changeFocusState(!1)}},d={container:"coz-searchbar-autosuggest-container"+(o?" --searching":"")+(i?" --focused":""),input:"coz-searchbar-autosuggest-input",inputFocused:"coz-searchbar-autosuggest-input-focused",suggestionsContainer:"coz-searchbar-autosuggest-suggestions-container",suggestionsContainerOpen:"coz-searchbar-autosuggest-suggestions-container--open",suggestionsList:"coz-searchbar-autosuggest-suggestions-list",suggestion:"coz-searchbar-autosuggest-suggestion",suggestionHighlighted:"coz-searchbar-autosuggest-suggestion-highlighted",sectionTitle:"coz-searchbar-autosuggest-section-title"};return C.a.createElement("div",{className:"coz-searchbar",role:"search"},u.map((function(e,t){return C.a.createElement("iframe",{src:e,style:{visibility:"hidden",height:"0px",width:"0px"},key:e+t})})),C.a.createElement(en.a,{theme:d,suggestions:a,multiSection:!0,onSuggestionsFetchRequested:this.debouncedOnSuggestionsFetchRequested,onSuggestionsClearRequested:this.onSuggestionsClearRequested,onSuggestionSelected:this.onSuggestionSelected,getSuggestionValue:this.getSuggestionValue,getSectionSuggestions:this.getSectionSuggestions,renderSectionTitle:this.renderSectionTitle,renderSuggestion:this.renderSuggestion,inputProps:f,focusInputOnSuggestionClick:!1}),""!==n&&!s&&i&&!l&&C.a.createElement("div",{className:"coz-searchbar-autosuggest-status-container"},c("searchbar.empty",{query:n})))}}]),n}(x.Component),sn=Object(S.translate)()(cn);function ln(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h()(this,n)}}var fn=function(e){d()(n,e);var t=ln(n);function n(e,r){var o;return a()(this,n),o=t.call(this,e),g()(l()(o),"toggle",(function(){o.props.opened||o.intentWrapperRef.childNodes.length?(o.setState({isActive:!o.state.isActive}),o.props.onToggle()):(o.setState({isLoading:!0}),o.intents.create("CLAUDY","io.cozy.settings",{exposeIntentFrameRemoval:!0}).start(o.intentWrapperRef,(function(){o.setState({isLoading:!1,isActive:!0}),o.props.onToggle()})).then((function(e){var t=e.removeIntentIframe;o.intentWrapperRef.addEventListener("transitionend",(function e(n){"transform"===n.propertyName&&(t(),o.setState({isActive:!1}),n.target.removeEventListener("transitionend",e))}),!1),o.props.onToggle()})))})),o.store=r.barStore,o.state={isLoading:!1,isActive:!1},o.intents=Object(ue.c)(),o}return c()(n,[{key:"UNSAFE_componentWillReceiveProps",value:function(e){e.claudyFired&&this.toggle()}},{key:"componentWillReceiveProps",value:function(e){return this.UNSAFE_componentWillReceiveProps(e)}},{key:"render",value:function(){var e=this,t=this.props.opened,n=this.state,r=n.isLoading,o=n.isActive;return C.a.createElement("div",{className:"coz-claudy ".concat(t?"coz-claudy--opened":"")},C.a.createElement("button",{type:"button",className:"coz-claudy-icon coz-bar-hide-sm","data-claudy-opened":o,"data-claudy-loading":r,onClick:this.toggle}),C.a.createElement("div",{className:"coz-claudy-intent-wrapper",ref:function(t){e.intentWrapperRef=t}}))}}]),n}(x.Component),dn=n(340),pn=n.n(dn),hn=n(76),mn=n.n(hn);var yn=function(){return(yn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function vn(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function gn(e){return e}function bn(e,t){void 0===t&&(t=gn);var n=[],r=!1;return{read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter((function(e){return e!==o}))}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var i=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),n={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),n}}}}}var wn=function(e){void 0===e&&(e={});var t=bn(null);return t.options=yn({async:!0,ssr:!1},e),t}();function xn(e,t){return n=t,r=function(t){return e.forEach((function(e){return function(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}(e,t)}))},(o=Object(x.useState)((function(){return{value:n,callback:r,facade:{get current(){return o.value},set current(e){var t=o.value;t!==e&&(o.value=e,o.callback(e,t))}}}}))[0]).callback=r,o.facade;var n,r,o}var Cn=function(){},kn=x.forwardRef((function(e,t){var n=x.useRef(null),r=x.useState({onScrollCapture:Cn,onWheelCapture:Cn,onTouchMoveCapture:Cn}),o=r[0],i=r[1],a=e.forwardProps,u=e.children,c=e.className,s=e.removeScrollBar,l=e.enabled,f=e.shards,d=e.sideCar,p=e.noIsolation,h=e.inert,m=e.allowPinchZoom,y=e.as,v=void 0===y?"div":y,g=vn(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),b=d,w=xn([n,t]),C=yn({},g,o);return x.createElement(x.Fragment,null,l&&x.createElement(b,{sideCar:wn,removeScrollBar:s,shards:f,noIsolation:p,inert:h,setCallbacks:i,allowPinchZoom:!!m,lockRef:n}),a?x.cloneElement(x.Children.only(u),yn({},C,{ref:w})):x.createElement(v,yn({},C,{className:c,ref:w}),u))}));kn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},kn.classNames={fullWidth:"width-before-scroll-bar",zeroRight:"right-scroll-bar-position"};var Sn,_n=function(e){var t=e.sideCar,n=vn(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return x.createElement(r,yn({},n))};_n.isSideCarExport=!0;function An(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Sn||n.nc;return t&&e.setAttribute("nonce",t),e}var On=function(){var e=0,t=null;return{add:function(n){var r,o;0==e&&(t=An())&&(o=n,(r=t).styleSheet?r.styleSheet.cssText=o:r.appendChild(document.createTextNode(o)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){!--e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},En=function(){var e,t=(e=On(),function(t){x.useEffect((function(){return e.add(t),function(){e.remove()}}),[])});return function(e){var n=e.styles;return t(n),null}},Bn={left:0,top:0,right:0,gap:0},jn=function(e){return parseInt(e||"",10)||0},Pn=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return Bn;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[jn(n),jn(r),jn(o)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Tn=En(),zn=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,u=e.gap;return void 0===n&&(n="margin"),"\n .with-scroll-bars-hidden {\n overflow: hidden "+r+";\n padding-right: "+u+"px "+r+";\n }\n body {\n overflow: hidden "+r+";\n "+[t&&"position: relative "+r+";","margin"===n&&"\n padding-left: "+o+"px;\n padding-top: "+i+"px;\n padding-right: "+a+"px;\n margin-left:0;\n margin-top:0;\n margin-right: "+u+"px "+r+";\n ","padding"===n&&"padding-right: "+u+"px "+r+";"].filter(Boolean).join("")+"\n }\n \n .right-scroll-bar-position {\n right: "+u+"px "+r+";\n }\n \n .width-before-scroll-bar {\n margin-right: "+u+"px "+r+";\n }\n \n .right-scroll-bar-position .right-scroll-bar-position {\n right: 0 "+r+";\n }\n \n .width-before-scroll-bar .width-before-scroll-bar {\n margin-right: 0 "+r+";\n }\n"},In=function(e){var t=x.useState(Pn(e.gapMode)),n=t[0],r=t[1];x.useEffect((function(){r(Pn(e.gapMode))}),[e.gapMode]);var o=e.noRelative,i=e.noImportant,a=e.gapMode,u=void 0===a?"margin":a;return x.createElement(Tn,{styles:zn(n,!o,u,i?"":"!important")})},Dn=function(e,t){var n=t;do{if(Rn(e,n)){var r=Fn(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},Rn=function(e,t){return"v"===e?function(e){var t=window.getComputedStyle(e);return"hidden"!==t.overflowY&&!(t.overflowY===t.overflowX&&"visible"===t.overflowY)}(t):function(e){var t=window.getComputedStyle(e);return"hidden"!==t.overflowX&&!(t.overflowY===t.overflowX&&"visible"===t.overflowX)}(t)},Fn=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},Mn=!1;if("undefined"!=typeof window)try{var Nn=Object.defineProperty({},"passive",{get:function(){return Mn=!0,!0}});window.addEventListener("test",Nn,Nn),window.removeEventListener("test",Nn,Nn)}catch(e){Mn=!1}var Ln=!!Mn&&{passive:!1},Un=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},$n=function(e){return[e.deltaX,e.deltaY]},Gn=function(e){return e&&"current"in e?e.current:e},qn=function(e){return"\n .block-interactivity-"+e+" {pointer-events: none;}\n .allow-interactivity-"+e+" {pointer-events: all;}\n"},Jn=0,Hn=[];var Wn=function(e,t){return e.useMedium(t),_n}(wn,(function(e){var t=x.useRef([]),n=x.useRef([0,0]),r=x.useRef(),o=x.useState(Jn++)[0],i=x.useState((function(){return En()}))[0],a=x.useRef(e);x.useEffect((function(){a.current=e}),[e]),x.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-"+o);var t=[e.lockRef.current].concat((e.shards||[]).map(Gn)).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-"+o)})),function(){document.body.classList.remove("block-interactivity-"+o),t.forEach((function(e){return e.classList.remove("allow-interactivity-"+o)}))}}}),[e.inert,e.lockRef.current,e.shards]);var u=x.useCallback((function(e,t){if("touches"in e&&2===e.touches.length)return!a.current.allowPinchZoom;var o,i=Un(e),u=n.current,c="deltaX"in e?e.deltaX:u[0]-i[0],s="deltaY"in e?e.deltaY:u[1]-i[1],l=e.target,f=Math.abs(c)>Math.abs(s)?"h":"v",d=Dn(f,l);if(!d)return!0;if(d?o=f:(o="v"===f?"h":"v",d=Dn(f,l)),!d)return!1;if(!r.current&&"changedTouches"in e&&(c||s)&&(r.current=o),!o)return!0;var p=r.current||o;return function(e,t,n,r,o){var i=r,a=n.target,u=t.contains(a),c=!1,s=i>0,l=0,f=0;do{var d=Fn(e,a),p=d[0],h=d[1]-d[2]-p;(p||h)&&Rn(e,a)&&(l+=h,f+=p),a=a.parentNode}while(!u&&a!==document.body||u&&(t.contains(a)||t===a));return(s&&(o&&0===l||!o&&i>l)||!s&&(o&&0===f||!o&&-i>f))&&(c=!0),c}(p,t,e,"h"===p?c:s,!0)}),[]),c=x.useCallback((function(e){var n=e;if(Hn.length&&Hn[Hn.length-1]===i){var r="deltaY"in n?$n(n):Un(n),o=t.current.filter((function(e){return e.name===n.type&&e.target===n.target&&(t=e.delta,o=r,t[0]===o[0]&&t[1]===o[1]);var t,o}))[0];if(o&&o.should)n.preventDefault();else if(!o){var c=(a.current.shards||[]).map(Gn).filter(Boolean).filter((function(e){return e.contains(n.target)}));(c.length>0?u(n,c[0]):!a.current.noIsolation)&&n.preventDefault()}}}),[]),s=x.useCallback((function(e,n,r,o){var i={name:e,delta:n,target:r,should:o};t.current.push(i),setTimeout((function(){t.current=t.current.filter((function(e){return e!==i}))}),1)}),[]),l=x.useCallback((function(e){n.current=Un(e),r.current=void 0}),[]),f=x.useCallback((function(t){s(t.type,$n(t),t.target,u(t,e.lockRef.current))}),[]),d=x.useCallback((function(t){s(t.type,Un(t),t.target,u(t,e.lockRef.current))}),[]);x.useEffect((function(){return Hn.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:d}),document.addEventListener("wheel",c,Ln),document.addEventListener("touchmove",c,Ln),document.addEventListener("touchstart",l,Ln),function(){Hn=Hn.filter((function(e){return e!==i})),document.removeEventListener("wheel",c,Ln),document.removeEventListener("touchmove",c,Ln),document.removeEventListener("touchstart",l,Ln)}}),[]);var p=e.removeScrollBar,h=e.inert;return x.createElement(x.Fragment,null,h?x.createElement(i,{styles:qn(o)}):null,p?x.createElement(In,{gapMode:"margin"}):null)})),Qn=x.forwardRef((function(e,t){return x.createElement(kn,yn({},e,{ref:t,sideCar:Wn}))}));Qn.classNames=kn.classNames;var Vn=Qn;function Yn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h()(this,n)}}var Kn=["onEscape","children","className"],Zn=function(e){d()(n,e);var t=Yn(n);function n(){var e;a()(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return e=t.call.apply(t,[this].concat(o)),g()(l()(e),"handleKeydown",(function(t){27===t.keyCode&&e.props.onEscape()})),g()(l()(e),"handleClick",(function(t){e.props.onClick&&t.target===t.currentTarget&&e.props.onClick()})),e}return c()(n,[{key:"componentDidMount",value:function(){this.props.onEscape&&document.addEventListener("keydown",this.handleKeydown)}},{key:"componentWillUnmount",value:function(){this.props.onEscape&&document.removeEventListener("keydown",this.handleKeydown)}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,r=mn()(this.props,Kn),o=document.body.getBoundingClientRect().height>window.innerHeight?C.a.Fragment:Vn;return C.a.createElement("div",w()({onClick:this.handleClick,className:T()(pn.a["c-overlay"],n)},r),C.a.createElement(o,null,t))}}]),n}(x.Component);Zn.propTypes={className:E.a.string,children:E.a.node,onEscape:E.a.func};var Xn=Zn;function er(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return tr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tr(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function tr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var nr=n(101),rr=n.n(nr),or=function(e){var t=e.into,n=e.children,r=document.querySelector(t);return rr.a.createPortal(n,r)},ir=n(339),ar=n.n(ir),ur=n(16),cr=n.n(ur);function sr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h()(this,n)}}var lr=function(e){d()(n,e);var t=sr(n);function n(){return a()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){return this.props.children}}]),n}(x.Component);function fr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h()(this,n)}}var dr=function(e){d()(n,e);var t=fr(n);function n(e){var r;a()(this,n),r=t.call(this,e),g()(l()(r),"UNSAFE_componentWillUpdate",(function(e){var t=e.children;r.refreshComputedParts(t)})),g()(l()(r),"handleScroll",(function(){if(r.contentHeader){var e=l()(r).headerHeight;e||!r.contentHeader.clientHeight?!r.state.displayGhostHeader&&r.scrollingContent.scrollTop>e-20?r.setState((function(){return{displayGhostHeader:!0}})):r.state.displayGhostHeader&&r.scrollingContent.scrollTop<e-20&&r.setState((function(){return{displayGhostHeader:!1}})):r.headerHeight=r.contentHeader.clientHeight}}));var o=r.props.children;return r.refreshComputedParts(o),r.state={displayGhostHeader:!1},r}return c()(n,[{key:"componentWillUpdate",value:function(e,t){this.UNSAFE_componentWillUpdate(e,t)}},{key:"refreshComputedParts",value:function(e){var t=function(e){return C.a.Children.toArray(e).find((function(e){return e&&e.nodeName===lr}))}(e);this.animatedHeader=t,this.childrenToRender=t?function(e){return C.a.Children.map(e,(function(e){return e&&e.nodeName!==lr?e:null}))}(e):e}},{key:"componentDidMount",value:function(){this.scrollingContent.addEventListener("scroll",this.handleScroll,{passive:!0})}},{key:"componentWillUnmount",value:function(){this.scrollingContent.removeEventListener("scroll",this.handleScroll)}},{key:"render",value:function(){var e=this,t=this.props,n=t.className,r=t.fixed,o=this.state.displayGhostHeader,i=this.animatedHeader,a=this.childrenToRender;return C.a.createElement("div",{className:T()(cr.a["c-modal-content".concat(r?"-fixed":"")],n),ref:function(t){e.scrollingContent=t}},i&&C.a.createElement("div",{className:i.attributes.className,ref:function(t){e.contentHeader=t}},C.a.createElement("h2",{className:cr.a["c-modal-illu-header"]},i.children),C.a.createElement("div",{className:T()(cr.a["c-modal-illu-header--ghost"],i.attributes.activeClassName,g()({},cr.a["is-active"],o))},i.children)),a)}}]),n}(x.Component),pr=function(e){var t=e.children,n=e.className;return C.a.createElement("div",{className:T()(cr.a["c-modal-content"],cr.a["c-modal-section"],n)},t)},hr=function(e){var t=e.title,n=e.children,r=e.className,o=e.appIcon,i=e.appName,a=e.appEditor,u=e.style,c=e.id,s="string"==typeof n;return C.a.createElement("div",{className:T()(cr.a["c-modal-header"],r),style:u,id:c},t&&C.a.createElement("h2",null,t),s?C.a.createElement("h2",null,n):n,i&&C.a.createElement("h2",{className:cr.a["c-modal-app"]},o&&C.a.createElement("img",{className:cr.a["c-modal-app-icon"],src:o}),a&&C.a.createElement("span",{className:cr.a["c-app-editor"]},a," "),i))},mr=function(e){var t=e.logo,n=e.bg,r=e.className,i=e.style,a=void 0===i?{}:i;return C.a.createElement("h2",{className:T()(cr.a["c-modal-header--branded"],r),style:o()({background:n},a)},C.a.createElement("img",{src:t,alt:""}))};var yr=function(e){return C.a.createElement("svg",w()({viewBox:"0 0 24 24"},e),C.a.createElement("path",{fillRule:"evenodd",d:"M10.586 12L.293 1.707A1 1 0 011.707.293L12 10.586 22.293.293a1 1 0 011.414 1.414L13.414 12l10.293 10.293a1 1 0 01-1.414 1.414L12 13.414 1.707 23.707a1 1 0 01-1.414-1.414L10.586 12z"}))},vr=Object(x.createContext)(null),gr=function(){var e=Object(x.useContext)(vr);if(null===e)throw new Error("Cannot use useBreakpoints without BreakpointsProvider. The component must have a BreakpointsProvider above it.");return e},br=function(e){var t=gr().isMobile,n=e.color;return C.a.createElement(R,{icon:yr,size:t?"16":"24",color:n||ne.a.coolGrey})},wr=function(e){var t=e.onClick,n=e.color,r=e.className;return C.a.createElement("button",{className:T()(cr.a["c-modal-close"],r),onClick:t,type:"button","aria-label":"close"},C.a.createElement(br,{color:n}))},xr=function(e){var t=e.children,n=e.className;return C.a.createElement("div",{className:T()(cr.a["c-modal-footer"],n)},t)},Cr=function(e){var t=e.secondaryText,n=e.secondaryAction,r=e.secondaryType,o=e.primaryText,i=e.primaryAction,a=e.primaryType,u=e.children,c=e.className;return C.a.createElement("div",{className:T()("u-flex","u-flex-wrap-reverse","u-flex-justify-end",cr.a["c-modal-footer--button"],c)},u,t&&n&&C.a.createElement(xe,{theme:r,onClick:n,label:t,className:"u-flex-auto-s"}),o&&i&&C.a.createElement(xe,{theme:a,onClick:i,label:o,className:"u-flex-auto-s"}))};Cr.defaultProps={primaryType:"regular",secondaryType:"secondary"};var kr=Cr;var Sr=function(e){return C.a.createElement("svg",w()({viewBox:"0 0 16 16"},e),C.a.createElement("path",{d:"M3.414 7h11.58C15.548 7 16 7.444 16 8c0 .552-.45 1-1.007 1H3.414l5.293 5.293a1 1 0 01-1.414 1.414l-7-7a1 1 0 010-1.414l7-7a1 1 0 111.414 1.414L3.414 7z",fillRule:"evenodd"}))},_r=function(e){var t=gr().isMobile,n=e.className,r=A()(e,["className"]);return C.a.createElement(xe,w()({icon:Sr,iconOnly:!0,extension:"narrow",theme:"text",label:"back",className:T()(cr.a["c-modal-back-button"],"u-m-0 u-pos-absolute",{"u-p-1":t,"u-p-half":!t,"u-h-3":t},n)},r))};function Ar(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h()(this,n)}}var Or=dr,Er=function(e){d()(n,e);var t=Ar(n);function n(e){var r;return a()(this,n),r=t.call(this,e),g()(l()(r),"handleOutsideClick",(function(e){e.target===e.currentTarget&&r.props.dismissAction&&r.props.dismissAction()})),r.titleID=ar()("modal_"),r}return c()(n,[{key:"componentDidMount",value:function(){this.props.title||this.props["aria-label"]||console.warn("If your modal does not provide a `title` prop, please provide the `aria-label` prop for a11y purposes."),document.body.classList.contains("has-modal")||(document.body.classList.add("has-modal"),this.shouldRemoveBodyClass=!0)}},{key:"componentWillUnmount",value:function(){this.shouldRemoveBodyClass&&document.body.classList.remove("has-modal")}},{key:"render",value:function(){var e,t=this.props,n=t.children,r=t.description,o=t.title,i=t.closable,a=t.dismissAction,u=t.overflowHidden,c=t.className,s=t.closeBtnClassName,l=t.closeBtnColor,f=t.into,d=t.size,p=t.height,h=t.width,m=t.spacing,y=t.mobileFullscreen,v=t.overlayClassName,b=t.wrapperClassName,x=t.primaryText,k=t.primaryAction,S=t.primaryType,_=t.secondaryText,O=t.secondaryAction,E=t.secondaryType,B=t.containerClassName,j=A()(t,["children","description","title","closable","dismissAction","overflowHidden","className","closeBtnClassName","closeBtnColor","into","size","height","width","spacing","mobileFullscreen","overlayClassName","wrapperClassName","primaryText","primaryAction","primaryType","secondaryText","secondaryAction","secondaryType","containerClassName"]),P=this.titleID,z=Object.assign({},p&&{height:p},h&&{width:h});return C.a.createElement(or,{into:f},C.a.createElement("div",{className:T()(cr.a["c-modal-container"],B)},C.a.createElement(Xn,{onEscape:i?a:void 0,className:v},C.a.createElement("div",{className:T()(cr.a["c-modal-wrapper"],g()({},cr.a["c-modal-wrapper--fullscreen"],y),b),onClick:i?this.handleOutsideClick:void 0},C.a.createElement("div",w()({className:T()(cr.a["c-modal"],cr.a["c-modal--".concat(d)],(e={},g()(e,cr.a["c-modal--overflowHidden"],u),g()(e,cr.a["c-modal--".concat(m,"-spacing")],m),g()(e,cr.a["c-modal--fullscreen"],y),g()(e,cr.a["c-modal--closable"],i),e),c),style:z,role:"dialog","aria-modal":"true","aria-labelledby":o?P:null},j),i&&C.a.createElement(wr,{className:T()(s,g()({},cr.a["c-modal-close--notitle"],!o)),onClick:a,color:l}),o&&C.a.createElement(hr,{title:o,id:P}),r&&C.a.createElement(Or,null,r),n,x&&k||_&&O?C.a.createElement(xr,null,C.a.createElement(kr,{primaryText:x,primaryAction:k,primaryType:S,secondaryText:_,secondaryAction:O,secondaryType:E})):null)))))}}]),n}(x.Component);Er.propTypes={title:E.a.node,description:E.a.node,secondaryType:E.a.string,secondaryText:E.a.string,secondaryAction:E.a.func,primaryType:E.a.string,primaryText:E.a.string,primaryAction:E.a.func,closable:E.a.bool,overflowHidden:E.a.bool,className:E.a.string,closeBtnClassName:E.a.string,closeBtnColor:E.a.string,into:E.a.string,size:E.a.oneOf(["xsmall","small","medium","large","xlarge","xxlarge"]),height:E.a.string,width:E.a.string,spacing:E.a.oneOf(["small","large"]),mobileFullscreen:E.a.bool,overlayClassName:E.a.string,wrapperClassName:E.a.string,containerClassName:E.a.string,dismissAction:E.a.func},Er.defaultProps={primaryType:"regular",secondaryType:"secondary",closable:!0,overflowHidden:!1,size:"small",into:"body",mobileFullscreen:!1},mr.propTypes={bg:E.a.string.isRequired,logo:E.a.string.isRequired},hr.propTypes={appIcon:E.a.string,appEditor:E.a.string,appName:E.a.string},dr.propTypes={iconSrc:E.a.node,iconDest:E.a.node,fixed:E.a.bool};var Br,jr=(Br=[{src:"withCross",dest:"closable"},{src:"crossClassName",dest:"closeBtnClassName"},{src:"crossColor",dest:"closeBtnColor"},{fn:function(e){var t;return e.secondaryAction&&!e.dismissAction?((t=o()({},e)).dismissAction=e.secondaryAction,[t,"In the future, `secondaryAction` will not be bound to closing actions (clicking on cross, clicking outside), please use `dismissAction` for that"]):[e,null]}}],function(e){var t=function(t){var n=function(e,t){var n,r,i,a=er(t);try{for(a.s();!(i=a.n()).done;){var u=i.value;if(u.src&&u.dest){var c=u.src,s=u.dest;if(void 0===e[c])continue;(n=n||o()({},e))[s]=e[c],delete n[c],r="`".concat(c,"` is deprecated and has been migrated automatically, you should use `").concat(s,"` now")}else if(u.fn){var l=u.fn(n||e);if(2!==l.length)throw new Error("migrateOption `fn` should return [newProps, msg].");var f=Fe()(l,2);n=f[0],r=f[1]}else console.warn("migrateProps option is not valid, valid properties are `src`, `dest`, `fn`. You passed",u);window.SHOW_DEPRECATION_WARNINGS&&r&&(console.warn("Deprecation: ".concat(r)),r=null)}}catch(e){a.e(e)}finally{a.f()}return n||e}(t,Br);return C.a.createElement(e,n)};return t.displayName=e.displayName||e.name,t})(Er);jr.propTypes=Er.propTypes,jr.defaultProps=Er.defaultProps,Object.assign(jr,{ModalContent:dr,ModalSection:pr,ModalFooter:xr,ModalHeader:hr,AnimatedContentHeader:lr,ModalBrandedHeader:mr,ModalDescription:Or,ModalBackButton:_r});var Pr=jr,Tr=n(341),zr=n.n(Tr).a;var Ir=function(e){return C.a.createElement("svg",w()({viewBox:"0 0 32 32"},e,{role:"progressbar","aria-busy":"true"}),C.a.createElement("path",{opacity:.25,d:"M16 0a16 16 0 000 32 16 16 0 000-32m0 4a12 12 0 010 24 12 12 0 010-24"}),C.a.createElement("path",{d:"M16 0a16 16 0 0116 16h-4A12 12 0 0016 4z"}))},Dr=n(143),Rr=n.n(Dr),Fr=function(e){var t,n=e.t,r=e.loadingType,o=e.middle,i=e.noMargin,a=e.color,u=e.size,c=e.className,s={tiny:8,small:12,medium:16,large:24,xlarge:36,xxlarge:80}[u];return C.a.createElement("div",{className:T()(Rr.a["c-spinner"],(t={},g()(t,Rr.a["c-spinner--middle"],o),g()(t,Rr.a["c-spinner--nomargin"],i),t),c)},C.a.createElement(R,{icon:Ir,color:a,spin:!0,size:s}),r&&C.a.createElement(zr,{variant:"body1",color:"textSecondary",component:"p"},n("loading.".concat(r))))};Fr.propTypes={loadingType:E.a.string,middle:E.a.bool,noMargin:E.a.bool,color:E.a.string,size:E.a.oneOf(["tiny","small","medium","large","xlarge","xxlarge"]),className:E.a.string},Fr.defaultProps={loadingType:"",middle:!1,noMargin:!1,color:"var(--spinnerColor)",size:"medium",className:""};var Mr=Object(S.translate)()(Fr);function Nr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h()(this,n)}}var Lr=function(e){d()(n,e);var t=Nr(n);function n(e,r){var o;return a()(this,n),o=t.call(this,e),g()(l()(o),"toggle",(function(){o.setState({isLoading:!0}),o.intents.create("SUPPORT","io.cozy.settings").start(o.intentWrapperRef,(function(){o.setState({isLoading:!1})}))})),o.store=r.barStore,o.state={isLoading:!1},o.intents=Object(ue.c)(),o}return c()(n,[{key:"componentDidMount",value:function(){this.toggle()}},{key:"render",value:function(){var e=this,t=this.state.isLoading;return C.a.createElement("div",null,C.a.createElement(Pr,{secondaryAction:this.props.onClose,className:"coz-support-modal",into:"#cozy-bar-modal-dom-place",closeBtnClassName:"coz-support-modal-close"},C.a.createElement(dr,{className:"coz-support-modal-wrapper u-mt-1"},C.a.createElement("div",{className:"coz-support-modal-content"},t&&C.a.createElement(Mr,{size:"xxlarge",middle:!0}),C.a.createElement("div",{className:"coz-support-intent-wrapper".concat(t?" coz-hidden":""),ref:function(t){e.intentWrapperRef=t}})))))}}]),n}(x.Component);function Ur(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y()(e);if(t){var o=y()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h()(this,n)}}function $r(e){return C.a.createElement("svg",w()({width:16,height:16},e),C.a.createElement("path",{d:"M0 0h4v4H0V0zm0 6h4v4H0V6zm0 6h4v4H0v-4zM6 0h4v4H6V0zm0 6h4v4H6V6zm0 6h4v4H6v-4zm6-12h4v4h-4V0zm0 6h4v4h-4V6zm0 6h4v4h-4v-4z",fillRule:"evenodd"}))}n.d(t,"Bar",(function(){return Gr})),n.d(t,"mapStateToProps",(function(){return qr})),n.d(t,"mapDispatchToProps",(function(){return Jr}));var Gr=function(e){d()(n,e);var t=Ur(n);function n(e){var r;return a()(this,n),r=t.call(this,e),g()(l()(r),"toggleDrawer",(function(){if(!r.state.claudyOpened&&!r.state.claudyFired){var e=!r.state.drawerVisible;e&&r.props.onDrawer(e),r.setState({drawerVisible:e})}})),g()(l()(r),"toggleClaudy",(function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(r.props.claudyEnabled){var t=r.state,n=t.usageTracker,o=t.claudyOpened;if(e&&!o)return r.setState({claudyFired:!0});r.state.claudyFired&&r.setState({claudyFired:!1}),n&&n.push(["trackEvent","Claudy",o?"close":"open","claudy"]),r.setState({claudyOpened:!o})}})),g()(l()(r),"toggleSupport",(function(){var e=r.state.supportDisplayed;r.setState({supportDisplayed:!e})})),g()(l()(r),"renderLeft",(function(){var e=r.props,t=e.t,n=e.isPublic,o=e.webviewContext;return o?C.a.createElement(fe,{webviewContext:o}):n?null:C.a.createElement("button",{type:"button",className:"coz-bar-btn coz-bar-burger",onClick:r.toggleDrawer,"data-tutorial":"apps-mobile"},C.a.createElement(R,{icon:$r,width:16,height:16,color:"currentColor"}),C.a.createElement("span",{className:"coz-bar-hidden"},t("drawer")))})),g()(l()(r),"renderRight",(function(){return r.props.isPublic?null:C.a.createElement(Gt,{toggleSupport:r.toggleSupport,onLogOut:r.props.onLogOut})})),r.state={claudyFired:!1,claudyOpened:!1,drawerVisible:!1,usageTracker:null,supportDisplayed:!1,searchBarEnabled:e.isDrive&&!e.isPublic&&!Object(H.isMobileApp)()},r.fetchApps=r.fetchApps.bind(l()(r)),r.fetchInitialData=r.fetchInitialData.bind(l()(r)),r.handleTokenRefreshed=r.handleTokenRefreshed.bind(l()(r)),r}return c()(n,[{key:"componentDidMount",value:function(){G()&&this.initPiwikTracker(),this.fetchInitialData(),this.props.cozyClient.on("tokenRefreshed",this.handleTokenRefreshed)}},{key:"componentWillUnmount",value:function(){this.props.cozyClient.removeListener("tokenRefreshed",this.handleTokenRefreshed)}},{key:"componentDidUpdate",value:function(e,t){!this.props.hasFetchedApps&&this.state.drawerVisible&&t.drawerVisible!==this.state.drawerVisible&&this.fetchApps()}},{key:"handleTokenRefreshed",value:function(){this.fetchInitialData()}},{key:"initPiwikTracker",value:function(){var e=q("https://matomo.cozycloud.cc",8,!1,!1);J({appDimensionId:1,app:"Cozy Bar",heartbeat:0}),this.setState({usageTracker:e})}},{key:"fetchApps",value:function(){this.props.fetchApps()}},{key:"fetchInitialData",value:function(){this.props.isPublic||(this.props.fetchContext(),this.props.fetchSettingsData(!1),this.fetchApps())}},{key:"renderCenter",value:function(){var e=this.props,t=e.appName,n=e.appNamePrefix,r=e.appSlug,o=e.iconPath,i=e.isPublic;return C.a.createElement(Yt,{appName:t,appNamePrefix:n,appSlug:r,iconPath:o,isPublic:i})}},{key:"render",value:function(){var e=this,t=this.state,n=t.claudyFired,r=t.claudyOpened,i=t.drawerVisible,a=t.searchBarEnabled,u=t.supportDisplayed,c=t.usageTracker,s=this.props,l=s.theme,f=s.themeOverrides,d=s.barLeft,p=s.barRight,h=s.barCenter,m=s.barSearch,y=s.claudyEnabled,v=s.onDrawer,g=s.isPublic,b=s.onLogOut,w=s.userActionRequired,x=f.primaryColor,k=f.primaryContrastTextColor,S=x?{"--cozBarThemePrimaryColor":x}:{},_=k?{"--cozBarThemePrimaryContrastTextColor":k}:{},A=o()({},S,_);return C.a.createElement("div",{className:"coz-bar-wrapper coz-theme-".concat(l),style:A},C.a.createElement("div",{id:"cozy-bar-modal-dom-place"}),C.a.createElement("div",{className:"coz-bar-container"},d||this.renderLeft(),h||this.renderCenter(),C.a.createElement("div",{className:"u-flex-grow"},m||(a?C.a.createElement(sn,null):null)),p||this.renderRight(),g?null:C.a.createElement(Et,{visible:i,onClose:this.toggleDrawer,onClaudy:y&&function(){return e.toggleClaudy(!0)}||!1,isClaudyLoading:n,drawerListener:function(){return v(i)},toggleSupport:this.toggleSupport,onLogOut:b}),y&&C.a.createElement(fn,{usageTracker:c,claudyFired:n,onToggle:function(){return e.toggleClaudy(!1)},opened:r}),u&&C.a.createElement(Lr,{onClose:this.toggleSupport})),w&&C.a.createElement(_e,w))}}]),n}(x.Component),qr=function(e){return{theme:Object(qe.j)(e).name,themeOverrides:Object(qe.j)(e).overrides,barLeft:Object(qe.e)(e,"left"),barRight:Object(qe.e)(e,"right"),barCenter:Object(qe.e)(e,"center"),barSearch:Object(qe.e)(e,"search"),isDrive:Object(qe.m)(e,{slug:"drive"}),claudyEnabled:Object(qe.z)(e),hasFetchedApps:Object(qe.l)(e),webviewContext:Object(qe.k)(e)}},Jr=function(e){return{fetchApps:function(){return e(Object(qe.a)())},fetchContext:function(){return e(Object(qe.b)())},fetchSettingsData:function(t){return e(Object(qe.c)(t))}}};t.default=Object(S.translate)()(Object(k.connect)(qr,Jr)(Gr))},function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),i=(n(1),o.a.createContext(null));var a=function(e){e()},u={notify:function(){}};function c(){var e=a,t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var r=!0,o=n={callback:e,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){r&&null!==t&&(r=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}var s=function(){function e(e,t){this.store=e,this.parentSub=t,this.unsubscribe=null,this.listeners=u,this.handleChangeWrapper=this.handleChangeWrapper.bind(this)}var t=e.prototype;return t.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},t.notifyNestedSubs=function(){this.listeners.notify()},t.handleChangeWrapper=function(){this.onStateChange&&this.onStateChange()},t.isSubscribed=function(){return Boolean(this.unsubscribe)},t.trySubscribe=function(){this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.handleChangeWrapper):this.store.subscribe(this.handleChangeWrapper),this.listeners=c())},t.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=u)},e}();var l=function(e){var t=e.store,n=e.context,a=e.children,u=Object(r.useMemo)((function(){var e=new s(t);return e.onStateChange=e.notifyNestedSubs,{store:t,subscription:e}}),[t]),c=Object(r.useMemo)((function(){return t.getState()}),[t]);Object(r.useEffect)((function(){var e=u.subscription;return e.trySubscribe(),c!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[u,c]);var l=n||i;return o.a.createElement(l.Provider,{value:u},a)},f=n(28),d=n(36),p=n(79),h=n.n(p),m=n(77),y="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect,v=[],g=[null,null];function b(e,t){var n=e[1];return[t.payload,n+1]}function w(e,t,n){y((function(){return e.apply(void 0,t)}),n)}function x(e,t,n,r,o,i,a){e.current=r,t.current=o,n.current=!1,i.current&&(i.current=null,a())}function C(e,t,n,r,o,i,a,u,c,s){if(e){var l=!1,f=null,d=function(){if(!l){var e,n,d=t.getState();try{e=r(d,o.current)}catch(e){n=e,f=e}n||(f=null),e===i.current?a.current||c():(i.current=e,u.current=e,a.current=!0,s({type:"STORE_UPDATED",payload:{error:n}}))}};n.onStateChange=d,n.trySubscribe(),d();return function(){if(l=!0,n.tryUnsubscribe(),n.onStateChange=null,f)throw f}}}var k=function(){return[null,0]};function S(e,t){void 0===t&&(t={});var n=t,a=n.getDisplayName,u=void 0===a?function(e){return"ConnectAdvanced("+e+")"}:a,c=n.methodName,l=void 0===c?"connectAdvanced":c,p=n.renderCountProp,y=void 0===p?void 0:p,S=n.shouldHandleStateChanges,_=void 0===S||S,A=n.storeKey,O=void 0===A?"store":A,E=(n.withRef,n.forwardRef),B=void 0!==E&&E,j=n.context,P=void 0===j?i:j,T=Object(d.a)(n,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"]),z=P;return function(t){var n=t.displayName||t.name||"Component",i=u(n),a=Object(f.a)({},T,{getDisplayName:u,methodName:l,renderCountProp:y,shouldHandleStateChanges:_,storeKey:O,displayName:i,wrappedComponentName:n,WrappedComponent:t}),c=T.pure;var p=c?r.useMemo:function(e){return e()};function S(n){var i=Object(r.useMemo)((function(){var e=n.forwardedRef,t=Object(d.a)(n,["forwardedRef"]);return[n.context,e,t]}),[n]),u=i[0],c=i[1],l=i[2],h=Object(r.useMemo)((function(){return u&&u.Consumer&&Object(m.isContextConsumer)(o.a.createElement(u.Consumer,null))?u:z}),[u,z]),y=Object(r.useContext)(h),S=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch);Boolean(y)&&Boolean(y.store);var A=S?n.store:y.store,O=Object(r.useMemo)((function(){return function(t){return e(t.dispatch,a)}(A)}),[A]),E=Object(r.useMemo)((function(){if(!_)return g;var e=new s(A,S?null:y.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[A,S,y]),B=E[0],j=E[1],P=Object(r.useMemo)((function(){return S?y:Object(f.a)({},y,{subscription:B})}),[S,y,B]),T=Object(r.useReducer)(b,v,k),I=T[0][0],D=T[1];if(I&&I.error)throw I.error;var R=Object(r.useRef)(),F=Object(r.useRef)(l),M=Object(r.useRef)(),N=Object(r.useRef)(!1),L=p((function(){return M.current&&l===F.current?M.current:O(A.getState(),l)}),[A,I,l]);w(x,[F,R,N,l,L,M,j]),w(C,[_,A,B,O,F,R,N,M,j,D],[A,B,O]);var U=Object(r.useMemo)((function(){return o.a.createElement(t,Object(f.a)({},L,{ref:c}))}),[c,t,L]);return Object(r.useMemo)((function(){return _?o.a.createElement(h.Provider,{value:P},U):U}),[h,U,P])}var A=c?o.a.memo(S):S;if(A.WrappedComponent=t,A.displayName=i,B){var E=o.a.forwardRef((function(e,t){return o.a.createElement(A,Object(f.a)({},e,{forwardedRef:t}))}));return E.displayName=i,E.WrappedComponent=t,h()(E,t)}return h()(A,t)}}function _(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function A(e,t){if(_(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;o<n.length;o++)if(!Object.prototype.hasOwnProperty.call(t,n[o])||!_(e[n[o]],t[n[o]]))return!1;return!0}var O=n(205);function E(e){return function(t,n){var r=e(t,n);function o(){return r}return o.dependsOnOwnProps=!1,o}}function B(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function j(e,t){return function(t,n){n.displayName;var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=B(e);var o=r(t,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=B(o),o=r(t,n)),o},r}}var P=[function(e){return"function"==typeof e?j(e):void 0},function(e){return e?void 0:E((function(e){return{dispatch:e}}))},function(e){return e&&"object"==typeof e?E((function(t){return Object(O.bindActionCreators)(e,t)})):void 0}];var T=[function(e){return"function"==typeof e?j(e):void 0},function(e){return e?void 0:E((function(){return{}}))}];function z(e,t,n){return Object(f.a)({},n,{},e,{},t)}var I=[function(e){return"function"==typeof e?function(e){return function(t,n){n.displayName;var r,o=n.pure,i=n.areMergedPropsEqual,a=!1;return function(t,n,u){var c=e(t,n,u);return a?o&&i(c,r)||(r=c):(a=!0,r=c),r}}}(e):void 0},function(e){return e?void 0:function(){return z}}];function D(e,t,n,r){return function(o,i){return n(e(o,i),t(r,i),i)}}function R(e,t,n,r,o){var i,a,u,c,s,l=o.areStatesEqual,f=o.areOwnPropsEqual,d=o.areStatePropsEqual,p=!1;function h(o,p){var h,m,y=!f(p,a),v=!l(o,i);return i=o,a=p,y&&v?(u=e(i,a),t.dependsOnOwnProps&&(c=t(r,a)),s=n(u,c,a)):y?(e.dependsOnOwnProps&&(u=e(i,a)),t.dependsOnOwnProps&&(c=t(r,a)),s=n(u,c,a)):v?(h=e(i,a),m=!d(h,u),u=h,m&&(s=n(u,c,a)),s):s}return function(o,l){return p?h(o,l):(u=e(i=o,a=l),c=t(r,a),s=n(u,c,a),p=!0,s)}}function F(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,o=t.initMergeProps,i=Object(d.a)(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),a=n(e,i),u=r(e,i),c=o(e,i);return(i.pure?R:D)(a,u,c,e,i)}function M(e,t,n){for(var r=t.length-1;r>=0;r--){var o=t[r](e);if(o)return o}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function N(e,t){return e===t}function L(e){var t=void 0===e?{}:e,n=t.connectHOC,r=void 0===n?S:n,o=t.mapStateToPropsFactories,i=void 0===o?T:o,a=t.mapDispatchToPropsFactories,u=void 0===a?P:a,c=t.mergePropsFactories,s=void 0===c?I:c,l=t.selectorFactory,p=void 0===l?F:l;return function(e,t,n,o){void 0===o&&(o={});var a=o,c=a.pure,l=void 0===c||c,h=a.areStatesEqual,m=void 0===h?N:h,y=a.areOwnPropsEqual,v=void 0===y?A:y,g=a.areStatePropsEqual,b=void 0===g?A:g,w=a.areMergedPropsEqual,x=void 0===w?A:w,C=Object(d.a)(a,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),k=M(e,i,"mapStateToProps"),S=M(t,u,"mapDispatchToProps"),_=M(n,s,"mergeProps");return r(p,Object(f.a)({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:k,initMapDispatchToProps:S,initMergeProps:_,pure:l,areStatesEqual:m,areOwnPropsEqual:v,areStatePropsEqual:b,areMergedPropsEqual:x},C))}}var U=L();function $(){return Object(r.useContext)(i)}function G(e){void 0===e&&(e=i);var t=e===i?$:function(){return Object(r.useContext)(e)};return function(){return t().store}}var q=G();function J(e){void 0===e&&(e=i);var t=e===i?q:G(e);return function(){return t().dispatch}}var H=J(),W=function(e,t){return e===t};function Q(e){void 0===e&&(e=i);var t=e===i?$:function(){return Object(r.useContext)(e)};return function(e,n){void 0===n&&(n=W);var o=t();return function(e,t,n,o){var i,a=Object(r.useReducer)((function(e){return e+1}),0)[1],u=Object(r.useMemo)((function(){return new s(n,o)}),[n,o]),c=Object(r.useRef)(),l=Object(r.useRef)(),f=Object(r.useRef)();try{i=e!==l.current||c.current?e(n.getState()):f.current}catch(e){throw c.current&&(e.message+="\nThe error may be correlated with this previous error:\n"+c.current.stack+"\n\n"),e}return y((function(){l.current=e,f.current=i,c.current=void 0})),y((function(){function e(){try{var e=l.current(n.getState());if(t(e,f.current))return;f.current=e}catch(e){c.current=e}a({})}return u.onStateChange=e,u.trySubscribe(),e(),function(){return u.tryUnsubscribe()}}),[n,u]),i}(e,n,o.store,o.subscription)}}var V,Y=Q(),K=n(101);n.d(t,"Provider",(function(){return l})),n.d(t,"connectAdvanced",(function(){return S})),n.d(t,"ReactReduxContext",(function(){return i})),n.d(t,"connect",(function(){return U})),n.d(t,"batch",(function(){return K.unstable_batchedUpdates})),n.d(t,"useDispatch",(function(){return H})),n.d(t,"createDispatchHook",(function(){return J})),n.d(t,"useSelector",(function(){return Y})),n.d(t,"createSelectorHook",(function(){return Q})),n.d(t,"useStore",(function(){return q})),n.d(t,"createStoreHook",(function(){return G})),n.d(t,"shallowEqual",(function(){return A})),V=K.unstable_batchedUpdates,a=V},function(e,t,n){"use strict";n.r(t);var r=n(14),o=n.n(r),i=n(32),a=n(2),u=n.n(a),c=n(102),s=n(80),l=function(e){return function(t){var n=t.langs,r=t.locales,o=n&&n.length;if(!o)return t;var i=o&&n.includes(e)?e:n[0],a=r&&Object.keys(r);return a&&a.length&&a.includes(i)?(Object(c.a)(u()({},t.slug,r[i])),t):t}},f=function(e){var t=e.getState;return function(e){return function(n){var r=t();switch(n.type){case s.a:!function(e,t){e&&e.forEach(l(t))}(r.apps&&r.apps.apps,n.lang);break;case"RECEIVE_APP_LIST":n.apps&&n.apps.length&&n.apps.forEach(l(r.locale));break;case"RECEIVE_APP":n.app&&l(r.locale&&r.locale.lang)(n.app)}return e(n)}}},d=n(203),p="persist/REHYDRATE",h="persist/REGISTER",m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function v(e,t,n,r){r.debug;var o=y({},n);return e&&"object"===(void 0===e?"undefined":m(e))&&Object.keys(e).forEach((function(r){"_persist"!==r&&t[r]===n[r]&&(o[r]=e[r])})),o}function g(e){var t=e.blacklist||null,n=e.whitelist||null,r=e.transforms||[],o=e.throttle||0,i=""+(void 0!==e.keyPrefix?e.keyPrefix:"persist:")+e.key,a=e.storage,u=!1===e.serialize?function(e){return e}:b,c={},s={},l=[],f=null,d=null;function p(){if(0===l.length)return f&&clearInterval(f),void(f=null);var e=l.shift(),t=r.reduce((function(t,n){return n.in(t,e,c)}),c[e]);if(void 0!==t)try{s[e]=u(t)}catch(e){console.error("redux-persist/createPersistoid: error serializing state",e)}else delete s[e];0===l.length&&(Object.keys(s).forEach((function(e){void 0===c[e]&&delete s[e]})),d=a.setItem(i,u(s)).catch(h))}function h(e){0}return{update:function(e){Object.keys(e).forEach((function(r){(function(e){return(!n||-1!==n.indexOf(e)||"_persist"===e)&&(!t||-1===t.indexOf(e))})(r)&&c[r]!==e[r]&&-1===l.indexOf(r)&&l.push(r)})),Object.keys(c).forEach((function(t){void 0===e[t]&&l.push(t)})),null===f&&(f=setInterval(p,o)),c=e},flush:function(){for(;0!==l.length;)p();return d||Promise.resolve()}}}function b(e){return JSON.stringify(e)}function w(e){var t=e.transforms||[],n=""+(void 0!==e.keyPrefix?e.keyPrefix:"persist:")+e.key,r=e.storage,o=(e.debug,!1===e.serialize?function(e){return e}:x);return r.getItem(n).then((function(e){if(e)try{var n={},r=o(e);return Object.keys(r).forEach((function(e){n[e]=t.reduceRight((function(t,n){return n.out(t,e,r)}),o(r[e]))})),n}catch(e){throw e}}))}function x(e){return JSON.parse(e)}function C(e){0}var k=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function S(e,t){var n=void 0!==e.version?e.version:-1,r=(e.debug,void 0===e.stateReconciler?v:e.stateReconciler),o=e.getStoredState||w,i=void 0!==e.timeout?e.timeout:5e3,a=null,u=!1,c=!0,s=function(e){return e._persist.rehydrated&&a&&!c&&a.update(e),e};return function(l,f){var d=l||{},h=d._persist,m=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(d,["_persist"]);if("persist/PERSIST"===f.type){var y=!1,v=function(t,n){y||(f.rehydrate(e.key,t,n),y=!0)};if(i&&setTimeout((function(){!y&&v(void 0,new Error('redux-persist: persist timed out for persist key "'+e.key+'"'))}),i),c=!1,a||(a=g(e)),h)return l;if("function"!=typeof f.rehydrate||"function"!=typeof f.register)throw new Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");return f.register(e.key),o(e).then((function(t){(e.migrate||function(e,t){return Promise.resolve(e)})(t,n).then((function(e){v(e)}),(function(e){v(void 0,e)}))}),(function(e){v(void 0,e)})),k({},t(m,f),{_persist:{version:n,rehydrated:!1}})}if("persist/PURGE"===f.type)return u=!0,f.result(function(e){var t=e.storage,n=""+(void 0!==e.keyPrefix?e.keyPrefix:"persist:")+e.key;return t.removeItem(n,C)}(e)),k({},t(m,f),{_persist:h});if("persist/FLUSH"===f.type)return f.result(a&&a.flush()),k({},t(m,f),{_persist:h});if("persist/PAUSE"===f.type)c=!0;else if(f.type===p){if(u)return k({},m,{_persist:k({},h,{rehydrated:!0})});if(f.key===e.key){var b=t(m,f),w=f.payload,x=!1!==r&&void 0!==w?r(w,l,b,e):b,S=k({},x,{_persist:k({},h,{rehydrated:!0})});return s(S)}}if(!h)return t(l,f);var _=t(m,f);return _===m?l:(_._persist=h,s(_))}}var _="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},A=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function O(e,t,n,r){r.debug;var o=A({},n);return e&&"object"===(void 0===e?"undefined":_(e))&&Object.keys(e).forEach((function(r){var i;"_persist"!==r&&(t[r]===n[r]&&(null===(i=n[r])||Array.isArray(i)||"object"!==(void 0===i?"undefined":_(i))?o[r]=e[r]:o[r]=A({},o[r],e[r])))})),o}var E=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function B(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var j={registry:[],bootstrapped:!1},P=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:j,t=arguments[1];switch(t.type){case h:return E({},e,{registry:[].concat(B(e.registry),[t.key])});case p:var n=e.registry.indexOf(t.key),r=[].concat(B(e.registry));return r.splice(n,1),E({},e,{registry:r,bootstrapped:0===r.length});default:return e}};var T=n(13),z=n(342),I=n(343),D=n.n(I),R=n(344),F=n(138),M=n(78),N=n.n(M);n.d(t,"createStore",(function(){return W}));var L,U,$={storage:D.a,key:"cozy-bar",whitelist:R},G=Object(z.createLogger)({logger:F.a}),q=(L=$,U=o()({},T.t),L.stateReconciler=void 0===L.stateReconciler?O:L.stateReconciler,S(L,Object(i.c)(U))),J=[f,d.default];N()("bar.debug")&&J.push(G);var H,W=function(){var e,t,n,r,o,a,u,c;return H=Object(i.e)(q,i.a.apply(null,J)),e=H,r=n||!1,o=Object(i.e)(P,j,t?t.enhancer:void 0),a=function(e){o.dispatch({type:h,key:e})},u=function(t,n,i){var a={type:p,payload:n,err:i,key:t};e.dispatch(a),o.dispatch(a),r&&c.getState().bootstrapped&&(r(),r=!1)},(c=E({},o,{purge:function(){var t=[];return e.dispatch({type:"persist/PURGE",result:function(e){t.push(e)}}),Promise.all(t)},flush:function(){var t=[];return e.dispatch({type:"persist/FLUSH",result:function(e){t.push(e)}}),Promise.all(t)},pause:function(){e.dispatch({type:"persist/PAUSE"})},persist:function(){e.dispatch({type:"persist/PERSIST",register:a,rehydrate:u})}})).persist(),H};t.default=function(){return H||(H=W()),H}},function(e,t,n){"use strict";n.r(t);var r=n(7),o=n.n(r),i=n(9),a=n.n(i),u=n(24),c=n(25),s=n(13),l=n(4),f=n.n(l),d=n(6),p=n.n(d),h=n(8),m=n.n(h),y=n(10),v=n.n(y),g=n(5),b=n.n(g),w=n(0),x=n.n(w),C=["left","center","right","search"],k=function(e){return e[0].toUpperCase()+e.slice(1)},S=function(e){return"setBar".concat(k(e))},_=function(e){return"Bar".concat(k(e))};function A(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=b()(e);if(t){var o=b()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return v()(this,n)}}var O=0,E=function(e){var t={};return C.forEach((function(n){t[S(n)]=function(t){return e.dispatch(Object(s.u)(n,"string"==typeof(r=t)?x.a.createElement("span",{dangerouslySetInnerHTML:{__html:r}}):r,"js"));var r},t[_(n)]=function(e,t){return function(n){m()(o,n);var r=A(o);function o(){return f()(this,o),r.apply(this,arguments)}return p()(o,[{key:"componentDidMount",value:function(){this.componentId=O++,this.setContent(this.props.children)}},{key:"setContent",value:function(n){try{n=x.a.Children.only(n)}catch(e){}e.dispatch(Object(s.u)(t,n,this.componentId))}},{key:"unsetContent",value:function(){e.dispatch(Object(s.A)(t,this.componentId))}},{key:"componentWillUnmount",value:function(){this.unsetContent()}},{key:"componentDidUpdate",value:function(e){this.props.children!==e.children&&this.setContent(this.props.children)}},{key:"render",value:function(){return null}}]),o}(w.Component)}(e,n)})),t.setLocale=function(){e.dispatch(s.w.apply(void 0,arguments))},t.setTheme=function(){e.dispatch(s.x.apply(void 0,arguments))},t.setWebviewContext=function(){e.dispatch(s.y.apply(void 0,arguments))},t},B=function(e){console.error("You tried to use the CozyBar API (".concat(e,") but the CozyBar is not initialised yet via cozy.bar.init(...)."))},j=function(e,t){return function(){if(e[t])return e[t].apply(e,arguments);B(t)}},P=function(){var e=document.querySelector("[role=application]");return e&&e.dataset?e.dataset:{}},T=function(){var e=document.querySelector('link[rel="icon"][sizes^="32"]');return null!==e?e.getAttribute("href"):"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"},z=function(){return P().cozyAppNamePrefix||null},I=function(){return P().cozyAppSlug||null},D=function(){var e=document.querySelector("meta[name=user-action-required]"),t=e&&e.dataset;if(t){var n=t.title,r=t.code,o=t.detail,i=t.links;if(r)return{title:n,code:r,detail:o,links:i}}},R=n(333),F=n(334),M=n(335);n.d(t,"init",(function(){return q})),n.d(t,"version",(function(){return re})),n.d(t,"setBarCenter",(function(){return W})),n.d(t,"setBarLeft",(function(){return Q})),n.d(t,"setBarRight",(function(){return V})),n.d(t,"setBarSearch",(function(){return Y})),n.d(t,"BarLeft",(function(){return X})),n.d(t,"BarRight",(function(){return Z})),n.d(t,"BarCenter",(function(){return K})),n.d(t,"BarSearch",(function(){return ee})),n.d(t,"setTheme",(function(){return te})),n.d(t,"setWebviewContext",(function(){return ne})),n.d(t,"updateAccessToken",(function(){return J})),n.d(t,"setLocale",(function(){return s.w}));var N={en:R,fr:F,es:M},L=function(e){if(null===document.getElementById("coz-bar")){var t=function(){var e=Object(u.isMobileApp)()?"mobile":"browser",t=document.createElement("div");return t.setAttribute("id","coz-bar"),t.setAttribute("role","banner"),t.classList.add("coz-target--".concat(e)),t}(),n=document.querySelector("[role=application]");return n?(document.body.insertBefore(t,n),e.onDrawer=function(e){t.dataset.drawerVisible=e},e.userActionRequired&&document.body.classList.add("has-banner"),t):(console.warn('Cozy-bar is looking for a "'.concat("[role=application]","\" tag that contains your application and can't find it :'(… The BAR is now disabled")),null)}},U=function(e,t){var r=n(0),o=n(101).render,i=n(38),a=i.connect,u=i.Provider,c=n(23).default,l=n(745).default,f=n(29).CozyProvider,d=t.cozyClient,p=a((function(e){return{lang:Object(s.g)(e)}}))(c),h=r.createElement(u,{store:t.reduxStore},r.createElement(p,{dictRequire:function(e){return N[e]}},d?r.createElement(f,{client:d},r.createElement(l,t)):r.createElement(l,t)));return o(h,e),h},$=function(e){var t=e.cozyURL,r=e.token,o=e.isPublic,i={uri:t||function(e){var t=P();if(!t.cozyDomain)return e||console.warn("Cozy-bar can't discover the cozy's URL, and will probably fail to initialize the connection with the stack."),"";var n=window.location.protocol;return"".concat(n,"//").concat(t.cozyDomain)}(o),token:r||function(e){var t=P();return t.cozyToken?t.cozyToken:(e||console.warn("Cozy-bar can't discover the app's token, and will probably fail to initialize the connection with the stack."),"")}(o)},a=n(29).default;return console.warn("Automatically made cozyClient. Options: ",i),new a(i)},G={},q=function(){var e=a()(o.a.mark((function e(){var t,r,i,a,u,l,f,d,p,h,m,y,v,g,b,w,x,C,k,S,_,A,O=arguments;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=O.length>0&&void 0!==O[0]?O[0]:{},r=t.appName,i=t.appNamePrefix,a=void 0===i?z():i,u=t.appSlug,l=void 0===u?I():u,f=t.lang,d=t.iconPath,p=void 0===d?T():d,h=t.cozyClient,m=t.cozyURL,y=t.token,v=t.replaceTitleOnMobile,g=void 0!==v&&v,b=t.isPublic,w=void 0!==b&&b,x=t.onLogOut,!w&&/^\/public/.test(window.location.pathname)&&(w=!0),h||(h=$({cozyURL:m,token:y,isPublic:w})),C=n(747).default,(k=C()).dispatch(Object(s.v)(r,a,l)),c.b.init({cozyClient:h,onCreate:function(e){return k.dispatch(Object(s.r)(e))},onDelete:function(e){return k.dispatch(Object(s.s)(e))}}),f&&k.dispatch(Object(s.w)(f)),S=E(k),Object.assign(G,S),_={appName:r,appNamePrefix:a,appSlug:l,cozyClient:h,iconPath:p,replaceTitleOnMobile:g,isPublic:w,onLogOut:x,userActionRequired:D(),reduxStore:k},A=L(_),U(A,_);case 13:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),J=function(e){c.b.updateAccessToken(e)},H=function(e){var t={};C.forEach((function(n){var r=S(n),o=_(n);t[r]=j(e,r),t[o]=function(t){if(e[o])return x.a.createElement(e[o],t);B(o)}}));for(var n=0,r=["setLocale","setTheme","setWebviewContext"];n<r.length;n++){var o=r[n];t[o]=j(e,o)}return t}(G),W=H.setBarCenter,Q=H.setBarLeft,V=H.setBarRight,Y=H.setBarSearch,K=H.BarCenter,Z=H.BarRight,X=H.BarLeft,ee=H.BarSearch,te=H.setTheme,ne=H.setWebviewContext,re="8.4.3"}])}));
77
77
  //# sourceMappingURL=cozy-bar.min.js.map