jekyll-theme-hydejack 9.0.3 → 9.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (116) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/_includes/body/footer.html +1 -1
  4. data/_includes/body/scripts.html +2 -2
  5. data/_includes/components/hy-img.html +1 -1
  6. data/_includes/head/links-static.html +1 -0
  7. data/_includes/head/meta-static.html +1 -1
  8. data/_includes/head/styles-inline.html +1 -1
  9. data/_includes/head/styles-no-inline.html +1 -1
  10. data/_includes/header.txt +1 -1
  11. data/_layouts/compress.html +1 -1
  12. data/_sass/hydejack/__inline__/_base.scss +1 -4
  13. data/_sass/hydejack/__inline__/_content.scss +3 -4
  14. data/_sass/hydejack/__inline__/_toc.scss +3 -7
  15. data/_sass/hydejack/__link__/_base.scss +8 -1
  16. data/_sass/hydejack/__link__/_content.scss +10 -4
  17. data/_sass/hydejack/__link__/_toc.scss +3 -1
  18. data/_sass/hydejack/_base.pre.scss +15 -7
  19. data/_sass/hydejack/_content.pre.scss +7 -11
  20. data/_sass/hydejack/_toc.pre.scss +3 -9
  21. data/_sass/pooleparty/__inline__/_message.scss +1 -1
  22. data/_sass/pooleparty/_message.pre.scss +1 -1
  23. data/assets/css/{hydejack-9.0.3.css → hydejack-9.0.4.css} +0 -0
  24. data/assets/js/{LEGACY-drawer-hydejack-9.0.3.js → LEGACY-drawer-hydejack-9.0.4.js} +2 -2
  25. data/assets/js/{LEGACY-fetch-hydejack-9.0.3.js → LEGACY-fetch-hydejack-9.0.4.js} +1 -1
  26. data/assets/js/LEGACY-hydejack-9.0.4.js +28 -0
  27. data/assets/js/{LEGACY-navbar-hydejack-9.0.3.js → LEGACY-navbar-hydejack-9.0.4.js} +2 -2
  28. data/assets/js/{LEGACY-push-state-hydejack-9.0.3.js → LEGACY-push-state-hydejack-9.0.4.js} +2 -2
  29. data/assets/js/{LEGACY-resize-observer-hydejack-9.0.3.js → LEGACY-resize-observer-hydejack-9.0.4.js} +1 -1
  30. data/assets/js/{LEGACY-search-hydejack-9.0.2.js → LEGACY-search-hydejack-9.0.4.js} +1 -1
  31. data/assets/js/{LEGACY-shadydom-hydejack-9.0.3.js → LEGACY-shadydom-hydejack-9.0.4.js} +1 -1
  32. data/assets/js/LEGACY-toc-hydejack-9.0.4.js +14 -0
  33. data/assets/js/LEGACY-vendors~drawer-hydejack-9.0.4.js +47 -0
  34. data/assets/js/{LEGACY-vendors~drawer~push-state-hydejack-9.0.3.js → LEGACY-vendors~drawer~push-state-hydejack-9.0.4.js} +6 -6
  35. data/assets/js/{LEGACY-vendors~drawer~push-state~search-hydejack-9.0.3.js → LEGACY-vendors~drawer~push-state~search-hydejack-9.0.4.js} +1 -1
  36. data/assets/js/LEGACY-vendors~fetch-hydejack-9.0.4.js +14 -0
  37. data/assets/js/{LEGACY-vendors~intersection-observer-hydejack-9.0.3.js → LEGACY-vendors~intersection-observer-hydejack-9.0.4.js} +1 -1
  38. data/assets/js/LEGACY-vendors~push-state-hydejack-9.0.4.js +33 -0
  39. data/assets/js/{LEGACY-vendors~search-hydejack-9.0.2.js → LEGACY-vendors~search-hydejack-9.0.4.js} +1 -1
  40. data/assets/js/{LEGACY-vendors~shadydom-hydejack-9.0.3.js → LEGACY-vendors~shadydom-hydejack-9.0.4.js} +2 -2
  41. data/assets/js/{LEGACY-vendors~webanimations-hydejack-9.0.3.js → LEGACY-vendors~webanimations-hydejack-9.0.4.js} +1 -1
  42. data/assets/js/{LEGACY-vendors~webcomponents-hydejack-9.0.3.js → LEGACY-vendors~webcomponents-hydejack-9.0.4.js} +1 -1
  43. data/assets/js/{LEGACY-webcomponents-hydejack-9.0.3.js → LEGACY-webcomponents-hydejack-9.0.4.js} +1 -1
  44. data/assets/js/{drawer-hydejack-9.0.3.js → drawer-hydejack-9.0.4.js} +2 -2
  45. data/assets/js/{LEGACY-shadydom-hydejack-9.0.2.js → fetch-hydejack-9.0.4.js} +2 -2
  46. data/assets/js/hydejack-9.0.4.js +28 -0
  47. data/assets/js/navbar-hydejack-9.0.4.js +14 -0
  48. data/assets/js/{push-state-hydejack-9.0.3.js → push-state-hydejack-9.0.4.js} +2 -2
  49. data/assets/js/{LEGACY-resize-observer-hydejack-9.0.2.js → resize-observer-hydejack-9.0.4.js} +2 -2
  50. data/assets/js/{search-hydejack-9.0.2.js → search-hydejack-9.0.4.js} +1 -1
  51. data/assets/js/{shadydom-hydejack-9.0.3.js → shadydom-hydejack-9.0.4.js} +2 -2
  52. data/assets/js/toc-hydejack-9.0.4.js +14 -0
  53. data/assets/js/vendors~drawer-hydejack-9.0.4.js +47 -0
  54. data/assets/js/{vendors~drawer~push-state-hydejack-9.0.3.js → vendors~drawer~push-state-hydejack-9.0.4.js} +9 -9
  55. data/assets/js/{vendors~drawer~push-state~search-hydejack-9.0.2.js → vendors~drawer~push-state~search-hydejack-9.0.4.js} +1 -1
  56. data/assets/js/vendors~fetch-hydejack-9.0.4.js +14 -0
  57. data/assets/js/{vendors~intersection-observer-hydejack-9.0.2.js → vendors~intersection-observer-hydejack-9.0.4.js} +2 -2
  58. data/assets/js/vendors~push-state-hydejack-9.0.4.js +33 -0
  59. data/assets/js/{vendors~search-hydejack-9.0.3.js → vendors~search-hydejack-9.0.4.js} +2 -2
  60. data/assets/js/{vendors~shadydom-hydejack-9.0.3.js → vendors~shadydom-hydejack-9.0.4.js} +2 -2
  61. data/assets/js/{vendors~webanimations-hydejack-9.0.2.js → vendors~webanimations-hydejack-9.0.4.js} +2 -2
  62. data/assets/js/{webcomponents-hydejack-9.0.3.js → webcomponents-hydejack-9.0.4.js} +2 -2
  63. data/assets/version.json +2 -2
  64. metadata +42 -83
  65. data/assets/js/LEGACY-drawer-hydejack-9.0.2.js +0 -14
  66. data/assets/js/LEGACY-fetch-hydejack-9.0.2.js +0 -14
  67. data/assets/js/LEGACY-hydejack-9.0.2.js +0 -28
  68. data/assets/js/LEGACY-hydejack-9.0.2.js.map +0 -1
  69. data/assets/js/LEGACY-hydejack-9.0.3.js +0 -28
  70. data/assets/js/LEGACY-navbar-hydejack-9.0.2.js +0 -14
  71. data/assets/js/LEGACY-push-state-hydejack-9.0.2.js +0 -14
  72. data/assets/js/LEGACY-push-state-hydejack-9.0.2.js.map +0 -1
  73. data/assets/js/LEGACY-search-hydejack-9.0.3.js +0 -14
  74. data/assets/js/LEGACY-toc-hydejack-9.0.2.js +0 -14
  75. data/assets/js/LEGACY-toc-hydejack-9.0.3.js +0 -14
  76. data/assets/js/LEGACY-vendors~drawer-hydejack-9.0.2.js +0 -47
  77. data/assets/js/LEGACY-vendors~drawer-hydejack-9.0.3.js +0 -47
  78. data/assets/js/LEGACY-vendors~drawer~push-state-hydejack-9.0.2.js +0 -78
  79. data/assets/js/LEGACY-vendors~drawer~push-state-hydejack-9.0.2.js.map +0 -1
  80. data/assets/js/LEGACY-vendors~drawer~push-state~search-hydejack-9.0.2.js +0 -151
  81. data/assets/js/LEGACY-vendors~fetch-hydejack-9.0.2.js +0 -14
  82. data/assets/js/LEGACY-vendors~fetch-hydejack-9.0.3.js +0 -14
  83. data/assets/js/LEGACY-vendors~intersection-observer-hydejack-9.0.2.js +0 -14
  84. data/assets/js/LEGACY-vendors~push-state-hydejack-9.0.2.js +0 -33
  85. data/assets/js/LEGACY-vendors~push-state-hydejack-9.0.3.js +0 -33
  86. data/assets/js/LEGACY-vendors~search-hydejack-9.0.3.js +0 -40
  87. data/assets/js/LEGACY-vendors~shadydom-hydejack-9.0.2.js +0 -155
  88. data/assets/js/LEGACY-vendors~webanimations-hydejack-9.0.2.js +0 -14
  89. data/assets/js/LEGACY-vendors~webcomponents-hydejack-9.0.2.js +0 -34
  90. data/assets/js/LEGACY-webcomponents-hydejack-9.0.2.js +0 -14
  91. data/assets/js/drawer-hydejack-9.0.2.js +0 -14
  92. data/assets/js/fetch-hydejack-9.0.2.js +0 -14
  93. data/assets/js/fetch-hydejack-9.0.3.js +0 -14
  94. data/assets/js/hydejack-9.0.3.js +0 -28
  95. data/assets/js/navbar-hydejack-9.0.2.js +0 -14
  96. data/assets/js/navbar-hydejack-9.0.3.js +0 -14
  97. data/assets/js/push-state-hydejack-9.0.2.js +0 -14
  98. data/assets/js/push-state-hydejack-9.0.2.js.map +0 -1
  99. data/assets/js/resize-observer-hydejack-9.0.2.js +0 -14
  100. data/assets/js/resize-observer-hydejack-9.0.3.js +0 -14
  101. data/assets/js/search-hydejack-9.0.3.js +0 -14
  102. data/assets/js/shadydom-hydejack-9.0.2.js +0 -14
  103. data/assets/js/toc-hydejack-9.0.2.js +0 -14
  104. data/assets/js/toc-hydejack-9.0.3.js +0 -14
  105. data/assets/js/vendors~drawer-hydejack-9.0.2.js +0 -47
  106. data/assets/js/vendors~drawer-hydejack-9.0.3.js +0 -47
  107. data/assets/js/vendors~drawer~push-state-hydejack-9.0.2.js +0 -53
  108. data/assets/js/vendors~drawer~push-state-hydejack-9.0.2.js.map +0 -1
  109. data/assets/js/vendors~drawer~push-state~search-hydejack-9.0.3.js +0 -124
  110. data/assets/js/vendors~intersection-observer-hydejack-9.0.3.js +0 -14
  111. data/assets/js/vendors~push-state-hydejack-9.0.2.js +0 -33
  112. data/assets/js/vendors~push-state-hydejack-9.0.3.js +0 -33
  113. data/assets/js/vendors~search-hydejack-9.0.2.js +0 -40
  114. data/assets/js/vendors~shadydom-hydejack-9.0.2.js +0 -146
  115. data/assets/js/vendors~webanimations-hydejack-9.0.3.js +0 -14
  116. data/assets/js/webcomponents-hydejack-9.0.2.js +0 -14
@@ -1,47 +0,0 @@
1
- /*!
2
- * __ __ __ __
3
- * /\ \/\ \ /\ \ __ /\ \
4
- * \ \ \_\ \ __ __ \_\ \ __ /\_\ __ ___ \ \ \/'\
5
- * \ \ _ \ /\ \/\ \ /'_` \ /'__`\ \/\ \ /'__`\ /'___\\ \ , <
6
- * \ \ \ \ \\ \ \_\ \ /\ \L\ \ /\ __/ \ \ \ /\ \L\.\_ /\ \__/ \ \ \\`\
7
- * \ \_\ \_\\/`____ \\ \___,_\\ \____\ _\ \ \\ \__/.\_\\ \____\ \ \_\ \_\
8
- * \/_/\/_/ `/___/> \\/__,_ / \/____//\ \_\ \\/__/\/_/ \/____/ \/_/\/_/
9
- * /\___/ \ \____/
10
- * \/__/ \/___/
11
- *
12
- * Powered by Hydejack v9.0.2 <https://hydejack.com/>
13
- */
14
- (window.webpackJsonp=window.webpackJsonp||[]).push([[11],{334:function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var r=n(1),i=n(113),o=n(68),a=n(47),c=n(46),u=n(114),s={};function l(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=void 0,r=void 0;return Object(i.a)(t[t.length-1])&&(r=t.pop()),"function"==typeof t[t.length-1]&&(n=t.pop()),1===t.length&&Object(o.a)(t[0])&&(t=t[0]),Object(u.a)(t,r).lift(new f(n))}var f=function(){function t(t){this.resultSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new p(t,this.resultSelector))},t}(),p=function(t){function e(e,n){var r=t.call(this,e)||this;return r.resultSelector=n,r.active=0,r.values=[],r.observables=[],r}return Object(r.e)(e,t),e.prototype._next=function(t){this.values.push(s),this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(var n=0;n<e;n++){var r=t[n];this.add(Object(c.a)(this,r,r,n))}}},e.prototype.notifyComplete=function(t){0==(this.active-=1)&&this.destination.complete()},e.prototype.notifyNext=function(t,e,n,r,i){var o=this.values,a=o[n],c=this.toRespond?a===s?--this.toRespond:this.toRespond:0;o[n]=e,0===c&&(this.resultSelector?this._tryResultSelector(o):this.destination.next(o.slice()))},e.prototype._tryResultSelector=function(t){var e;try{e=this.resultSelector.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(a.a)},348:function(t,e,n){"use strict";n.r(e),n.d(e,"HyDrawer",(function(){return Yt}));var r=n(322),i=n(310);function o(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}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 o,c=!0,u=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return c=t.done,t},e:function(t){u=!0,o=t},f:function(){try{c||null==n.return||n.return()}finally{if(u)throw o}}}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}
15
- /**
16
- * @license
17
- * Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
18
- * This code may only be used under the BSD style license found at
19
- * http://polymer.github.io/LICENSE.txt
20
- * The complete set of authors may be found at
21
- * http://polymer.github.io/AUTHORS.txt
22
- * The complete set of contributors may be found at
23
- * http://polymer.github.io/CONTRIBUTORS.txt
24
- * Code distributed by Google as part of the polymer project is also
25
- * subject to an additional IP rights grant found at
26
- * http://polymer.github.io/PATENTS.txt
27
- */
28
- var u=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.classes=new Set,this.changed=!1,this.element=e;var n,r=o((e.getAttribute("class")||"").split(/\s+/));try{for(r.s();!(n=r.n()).done;){var i=n.value;this.classes.add(i)}}catch(t){r.e(t)}finally{r.f()}}var e,n,r;return e=t,(n=[{key:"add",value:function(t){this.classes.add(t),this.changed=!0}},{key:"remove",value:function(t){this.classes.delete(t),this.changed=!0}},{key:"commit",value:function(){if(this.changed){var t="";this.classes.forEach((function(e){return t+=e+" "})),this.element.setAttribute("class",t)}}}])&&c(e.prototype,n),r&&c(e,r),t}(),s=new WeakMap,l=Object(i.e)((function(t){return function(e){if(!(e instanceof i.a)||e instanceof i.c||"class"!==e.committer.name||e.committer.parts.length>1)throw new Error("The `classMap` directive must be used in the `class` attribute and must be the only part in the attribute.");var n=e.committer,r=n.element,o=s.get(e);void 0===o&&(r.setAttribute("class",n.strings.join(" ")),s.set(e,o=new Set));var a=r.classList||new u(r);for(var c in o.forEach((function(e){e in t||(a.remove(e),o.delete(e))})),t){var l=t[c];l!=o.has(c)&&(l?(a.add(c),o.add(c)):(a.remove(c),o.delete(c)))}"function"==typeof a.commit&&a.commit()}})),f=new WeakMap,p=Object(i.e)((function(t){return function(e){if(!(e instanceof i.a)||e instanceof i.c||"style"!==e.committer.name||e.committer.parts.length>1)throw new Error("The `styleMap` directive must be used in the style attribute and must be the only part in the attribute.");var n=e.committer,r=n.element.style,o=f.get(e);for(var a in void 0===o&&(r.cssText=n.strings.join(" "),f.set(e,o=new Set)),o.forEach((function(e){e in t||(o.delete(e),-1===e.indexOf("-")?r[e]=null:r.removeProperty(e))})),t)o.add(a),-1===a.indexOf("-")?r[a]=t[a]:r.setProperty(a,t[a])}})),h=n(350),b=n(334),d=n(326),v=n(300),y=n(149),g=n(352),m=n(313),O=n(31),j=n(327),w=n(150),S=n(152),x=n(1),k=n(47),_=n(46);function E(t){return function(e){return e.lift(new T(t))}}var T=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var n=new C(t),r=e.subscribe(n);return r.add(Object(_.a)(n,this.notifier)),r},t}(),C=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.hasValue=!1,e}return Object(x.e)(e,t),e.prototype._next=function(t){this.value=t,this.hasValue=!0},e.prototype.notifyNext=function(t,e,n,r,i){this.emitValue()},e.prototype.notifyComplete=function(){this.emitValue()},e.prototype.emitValue=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))},e}(k.a),A=n(115);function R(t){return void 0===t&&(t=A.a),Object(O.a)((function(e){return new I(e,t.now())}))}var I=function(t,e){this.value=t,this.timestamp=e},$=n(329),P=n(151),V=n(325),M=n(148),D=n(335),X=n(351),z=n(9);function B(t){return function(e){return e.lift(new W(t))}}var W=function(){function t(t){this.total=t}return t.prototype.call=function(t,e){return e.subscribe(new N(t,this.total))},t}(),N=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.count=0,r}return Object(x.e)(e,t),e.prototype._next=function(t){++this.count>this.total&&this.destination.next(t)},e}(z.a),U=n(309),Y=n(64);function F(t,e,n,r){return n*Math.sin(t/r*(Math.PI/2))+e}function J(t){return("ResizeObserver"in window?Object(U.e)(t):Object(Y.a)({contentRect:{width:t.clientWidth}})).pipe(Object(O.a)((function(t){return t.contentRect.width})))}var H={fromAttribute:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t.replace(/[\[\]]/g,"").split(",").map(Number)},toAttribute:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return t.join(",")}};var L=n(328),q=n(357);var G=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){return e.subscribe(new K(t,this.notifier,e))},t}(),K=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.notifier=n,i.source=r,i.notifications=null,i.retries=null,i.retriesSubscription=null,i.sourceIsBeingSubscribedTo=!0,i}return Object(x.e)(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)},e.prototype.notifyComplete=function(e){if(!1===this.sourceIsBeingSubscribedTo)return t.prototype.complete.call(this)},e.prototype.complete=function(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return t.prototype.complete.call(this);this._unsubscribeAndRecycle(),this.notifications.next()}},e.prototype._unsubscribe=function(){var t=this.notifications,e=this.retriesSubscription;t&&(t.unsubscribe(),this.notifications=null),e&&(e.unsubscribe(),this.retriesSubscription=null),this.retries=null},e.prototype._unsubscribeAndRecycle=function(){var e=this._unsubscribe;return this._unsubscribe=null,t.prototype._unsubscribeAndRecycle.call(this),this._unsubscribe=e,this},e.prototype.subscribeToRetries=function(){var e;this.notifications=new m.a;try{e=(0,this.notifier)(this.notifications)}catch(e){return t.prototype.complete.call(this)}this.retries=e,this.retriesSubscription=Object(_.a)(this,e)},e}(k.a);var Q=function(){function t(t){this.predicate=t}return t.prototype.call=function(t,e){return e.subscribe(new Z(t,this.predicate))},t}(),Z=function(t){function e(e,n){var r=t.call(this,e)||this;return r.predicate=n,r.skipping=!0,r.index=0,r}return Object(x.e)(e,t),e.prototype._next=function(t){var e=this.destination;this.skipping&&this.tryCallPredicate(t),this.skipping||e.next(t)},e.prototype.tryCallPredicate=function(t){try{var e=this.predicate(t,this.index++);this.skipping=Boolean(e)}catch(t){this.destination.error(t)}},e}(z.a);function tt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=t[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return et(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return et(t,e)}(t,e)||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 et(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function nt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var rt=Math.abs.bind(Math),it=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,n,r;return e=t,(n=[{key:"getStartObservable",value:function(){return Object(b.a)(this.$.mouseEvents).pipe(Object(M.a)((function(t){var e=tt(t,1)[0],n=Object(v.a)(document,"touchstart",{passive:!0}).pipe(Object(P.a)((function(t){return 1===t.touches.length})),Object(O.a)((function(t){return t.touches[0]}))),r=e?Object(v.a)(document,"mousedown").pipe(Object(O.a)((function(t){return t.event=t,t}))):y.a;return Object(d.a)(n,r)})))}},{key:"getMoveObservable",value:function(t,e){return Object(b.a)(this.$.mouseEvents,this.$.preventDefault).pipe(Object(M.a)((function(n){var r=tt(n,2),i=r[0],o=r[1],a=Object(v.a)(document,"touchmove",{passive:!o}).pipe(Object(O.a)((function(t){return t.touches[0].event=t,t.touches[0]}))),c=i?Object(v.a)(document,"mousemove",{passive:!o}).pipe(Object(U.l)(Object(d.a)(t.pipe(Object(L.a)(!0)),e.pipe(Object(L.a)(!1)))),Object(O.a)((function(t){return t.event=t,t}))):y.a;return Object(d.a)(a,c)})))}},{key:"getEndObservable",value:function(){return Object(b.a)(this.$.mouseEvents).pipe(Object(M.a)((function(t){var e=tt(t,1)[0],n=Object(v.a)(document,"touchend",{passive:!0}).pipe(Object(P.a)((function(t){return 0===t.touches.length})),Object(O.a)((function(t){return t.changedTouches[0]}))),r=e?Object(v.a)(document,"mouseup",{passive:!0}):y.a;return Object(d.a)(n,r)})))}},{key:"getIsSlidingObservable",value:function(t,e,n){return this.getIsSlidingObservableInner(t,e).pipe(Object(q.a)(1),Object(V.a)(void 0),(r=function(){return n},function(t){return t.lift(new G(r))}));var r}},{key:"getIsSlidingObservableInner",value:function(t,e){var n,r=this;return this.threshold?t.pipe(Object(w.a)(e),(n=function(t){var e=tt(t,2),n=e[0],i=n.clientX,o=n.clientY,a=e[1],c=a.clientX,u=a.clientY;return rt(u-o)<r.threshold&&rt(c-i)<r.threshold},function(t){return t.lift(new Q(n))}),Object(O.a)((function(t){var e=tt(t,2),n=e[0],r=n.clientX,i=n.clientY,o=e[1],a=o.clientX,c=o.clientY;return rt(a-r)>=rt(c-i)}))):t.pipe(Object(w.a)(e),Object(O.a)((function(t){var e=tt(t,2),n=e[0],i=n.clientX,o=n.clientY,a=n.event,c=e[1],u=c.clientX,s=c.clientY,l=rt(u-i)>=rt(s-o);return r.noScroll&&l&&a.preventDefault(),l})))}}])&&nt(e.prototype,n),r&&nt(e,r),t}();function ot(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=t[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return at(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return at(t,e)}(t,e)||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 at(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function ct(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var ut=Math.min.bind(Math),st=Math.max.bind(Math),lt=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,n,r;return e=t,(n=[{key:"calcIsInRange",value:function(t,e){var n=t.clientX;switch(this.side){case"left":var r=ot(this.range,2),i=r[0],o=r[1];return n>i&&(e||n<o);case"right":var a=window.innerWidth-this.range[0],c=window.innerWidth-this.range[1];return n<a&&(e||n>c);default:throw Error()}}},{key:"calcIsSwipe",value:function(t,e,n,r,i){var o=t.clientX;return e.clientX!==o||n>0&&n<r}},{key:"calcWillOpen",value:function(t,e,n,r,i){switch(this.side){case"left":return i>.15||!(i<-.15)&&n>=r/2;case"right":return-i>.15||!(-i<-.15)&&n<=-r/2;default:throw Error()}}},{key:"calcTranslateX",value:function(t,e,n,r){var i=t.clientX,o=e.clientX;switch(this.side){case"left":return st(0,ut(r,n+(i-o)));case"right":return ut(0,st(-r,n+(i-o)));default:throw Error()}}}])&&ct(e.prototype,n),r&&ct(e,r),t}();function ft(t){return(ft="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function pt(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ht(t,e)}function ht(t,e){return(ht=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function bt(t){var e=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(t){return!1}}();return function(){var n,r=vt(t);if(e){var i=vt(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return dt(this,n)}}function dt(t,e){return!e||"object"!==ft(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function vt(t){return(vt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function yt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function gt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function mt(t,e,n){return e&&gt(t.prototype,e),n&&gt(t,n),t}var Ot=function(){function t(){yt(this,t)}return mt(t,[{key:"updateDOM",value:function(t,e){var n=t/e*("left"===this.side?1:-1)||0;this.translateX=t,this.opacity=n,this.updater.updateDOM(t,n)}}]),t}(),jt=function(){function t(e){yt(this,t),this.parent=e}return mt(t,[{key:"contentEl",get:function(){return this.parent.contentEl}},{key:"scrimEl",get:function(){return this.parent.scrimEl}}],[{key:"getUpdaterForPlatform",value:function(t){return"attributeStyleMap"in Element.prototype&&"CSS"in window&&"number"in CSS?new St(t):new wt(t)}}]),t}(),wt=function(t){pt(n,t);var e=bt(n);function n(t){return yt(this,n),e.call(this,t)}return mt(n,[{key:"updateDOM",value:function(t,e){this.contentEl.style.transform="translate(".concat(t,"px, 0px)"),this.scrimEl.style.opacity="".concat(e)}}]),n}(jt),St=function(t){pt(n,t);var e=bt(n);function n(t){var r;return yt(this,n),(r=e.call(this,t)).tvalue=new CSSTransformValue([new CSSTranslate(CSS.px(0),CSS.px(0))]),r.ovalue=CSS.number(1),r}return mt(n,[{key:"updateDOM",value:function(t,e){this.tvalue[0].x.value=t,this.ovalue.value=e,this.contentEl.attributeStyleMap.set("transform",this.tvalue),this.scrimEl.attributeStyleMap.set("opacity",this.ovalue)}}]),n}(jt);function xt(){var t=function(t,e){e||(e=t.slice(0));return Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}(["\n @media screen {\n :host {\n touch-action: pan-x;\n }\n\n .full-screen {\n position: fixed;\n top: 0;\n left: 0;\n height: 100vh;\n width: 100vw;\n }\n\n .full-height {\n position: fixed;\n top: 0;\n height: 100vh;\n }\n\n .peek {\n left: 0;\n width: var(--hy-drawer-peek-width, 0px);\n visibility: hidden;\n z-index: calc(var(--hy-drawer-z-index, 100) - 1);\n }\n\n .scrim {\n position: fixed;\n top: 0;\n left: 0;\n height: 10vh;\n width: 10vw;\n transform: scale(10);\n transform-origin: top left;\n opacity: 0;\n pointer-events: none;\n background: var(--hy-drawer-scrim-background, rgba(0, 0, 0, 0.5));\n z-index: var(--hy-drawer-z-index, 100);\n -webkit-tap-highlight-color: transparent;\n }\n\n .range {\n position: fixed;\n top: 0;\n height: 100vh;\n z-index: calc(var(--hy-drawer-z-index, 100) + 1);\n }\n\n .grabbing-screen {\n cursor: grabbing;\n z-index: calc(var(--hy-drawer-z-index, 100) + 2);\n }\n\n .wrapper {\n width: var(--hy-drawer-width, 300px);\n background: var(--hy-drawer-background, inherit);\n box-shadow: var(--hy-drawer-box-shadow, 0 0 15px rgba(0, 0, 0, 0.25));\n z-index: calc(var(--hy-drawer-z-index, 100) + 3);\n contain: strict;\n }\n\n .wrapper.left {\n left: calc(-1 * var(--hy-drawer-width, 300px) + var(--hy-drawer-peek-width, 0px));\n }\n\n .wrapper.right {\n right: calc(-1 * var(--hy-drawer-width, 300px) + var(--hy-drawer-peek-width, 0px));\n }\n\n .wrapper > .overflow {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n overflow-x: hidden;\n overflow-y: auto;\n overscroll-behavior: contain;\n -webkit-overflow-scrolling: touch;\n }\n\n .grab {\n cursor: move;\n cursor: grab;\n }\n\n .grabbing {\n cursor: grabbing;\n }\n }\n\n @media print {\n .scrim {\n display: none !important;\n }\n\n .wrapper {\n transform: none !important;\n }\n }\n"]);return xt=function(){return t},t}var kt=Object(r.b)(xt());function _t(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Et(){var t=Ct(['<div class="grabbing-screen full-screen"></div>']);return Et=function(){return t},t}function Tt(){var t=Ct(['\n <div class="peek full-height"></div>\n <div\n class="scrim"\n style=',">\n </div>\n ","\n <div\n class=","\n style=",'\n >\n <div class="overflow">\n <slot></slot>\n </div>\n </div>\n ']);return Tt=function(){return t},t}function Ct(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function At(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=t[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(t,e)||It(t,e)||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 Rt(t){return function(t){if(Array.isArray(t))return $t(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||It(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function It(t,e){if(t){if("string"==typeof t)return $t(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$t(t,e):void 0}}function $t(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Pt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Vt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Mt(t,e,n){return(Mt="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Wt(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}})(t,e,n||t)}function Dt(t,e){return(Dt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Xt(t){var e=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(t){return!1}}();return function(){var n,r=Wt(t);if(e){var i=Wt(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return zt(this,n)}}function zt(t,e){return!e||"object"!==Nt(e)&&"function"!=typeof e?Bt(t):e}function Bt(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Wt(t){return(Wt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Nt(t){return(Nt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var Ut=function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"===("undefined"==typeof Reflect?"undefined":Nt(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(i=t[c])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},Yt=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Dt(t,e)}(a,t);var e,n,i,o=Xt(a);function a(){var t;return Pt(this,a),(t=o.apply(this,arguments)).el=Bt(t),t.opened=!1,t.side="left",t.persistent=!1,t.threshold=10,t.noScroll=!1,t.mouseEvents=!1,t.range=[0,100],t.willChange=!1,t._initialized=Object(U.f)(),t.$={},t.upgrade=function(){var e=t.getDrawerWidth(),n=t.$.persistent.pipe(Object(O.a)((function(t){return!t}))),r=t.getStartObservable().pipe(Object(U.h)(n),Object(j.a)()),i={},o=Object(h.a)((function(){return i.translateX$.pipe(Object(O.a)((function(t){return 0!==t})))})),a=r.pipe(Object(w.a)(o),Object(O.a)((function(e){var n;return(n=t).calcIsInRange.apply(n,Rt(e))})),Object(S.a)((function(e){e&&(t.willChange=!0,t.fireEvent("prepare"))})),Object(j.a)()),c=t.getEndObservable().pipe(Object(U.h)(n,a),Object(S.a)((function(){t.mouseEvents&&(t.grabbing=!1)})),Object(j.a)()),u=t.getMoveObservable(r,c).pipe(Object(U.h)(n,a),Object(j.a)()),s=t.getIsSlidingObservable(u,r,c).pipe(Object(S.a)((function(e){t.isSliding=e,e&&t.mouseEvents&&(t.grabbing=!0)}))),l=i.translateX$=Object(h.a)((function(){var n=Object(b.a)(t.$.opened,t.$.side,e).pipe(Object(O.a)((function(t){var e=At(t,3),n=e[0],r=e[1],i=e[2];return n?i*("left"===r?1:-1):0}))),o=u.pipe(Object(U.h)(s),Object(S.a)((function(){return t.scrimClickable=!1})),Object(S.a)((function(e){var n=e.event;return t.noScroll&&n.preventDefault()})),Object(w.a)(r,i.startTranslateX$,e),Object(O.a)((function(e){var n;return(n=t).calcTranslateX.apply(n,Rt(e))})));return Object(d.a)(i.tweenTranslateX$,n,o)})).pipe(Object(j.a)());i.startTranslateX$=l.pipe(E(r));var f=l.pipe(R(),Object($.a)(),Object(P.a)((function(t){var e=At(t,2),n=e[0].timestamp;return e[1].timestamp-n>0})),Object(O.a)((function(t){var e=At(t,2),n=e[0],r=n.value,i=n.timestamp,o=e[1];return(o.value-r)/(o.timestamp-i)})),Object(V.a)(0)),p=c.pipe(Object(w.a)(r,l,e,f),Object(P.a)((function(e){var n;return(n=t).calcIsSwipe.apply(n,Rt(e))})),Object(O.a)((function(e){var n;return(n=t).calcWillOpen.apply(n,Rt(e))}))),g=t.animateTo$.pipe(Object(S.a)((function(){t.willChange=!0,t.fireEvent("prepare")})));i.tweenTranslateX$=Object(d.a)(p,g).pipe(Object(w.a)(l,e),Object(M.a)((function(e){var n=At(e,3),i=n[0],o=n[1],a=n[2],c="left"===t.side?1:-1,u=(i?a*c:0)-o,s=Math.ceil(200+.15*a);return Object(U.m)(F,o,u,s).pipe(Object(D.a)((function(){t.transitioned(i)})),Object(X.a)(r),Object(X.a)(t.$.side.pipe(B(1))),Object(j.a)())}))),l.pipe(Object(w.a)(e),Object(S.a)((function(e){var n;(n=t).updateDOM.apply(n,Rt(e));var r=Bt(t),i=r.translateX,o=r.opacity;t.fireEvent("move",{detail:{translateX:i,opacity:o},bubbles:!1})}))).subscribe(),Object(v.a)(t.scrimEl,"click").pipe(Object(S.a)((function(){return t.close()}))).subscribe(),n.pipe(Object(S.a)((function(e){t.scrimEl.style.display=e?"block":"none"}))).subscribe(),t.$.mouseEvents.pipe(Object(M.a)((function(t){return t?r.pipe(Object(w.a)(a)):y.a})),Object(P.a)((function(t){var e=At(t,2),n=e[0];return e[1]&&null!=n.event})),Object(S.a)((function(t){return At(t,1)[0].event.preventDefault()}))).subscribe(),t.fireEvent("init",{detail:t.opened}),t._initialized.resolve(Bt(t))},t.transitioned=function(e){t.opened=t.scrimClickable=e,t.willChange=!1,t.fireEvent("transitioned",{detail:e})},t}return e=a,(n=[{key:"getDrawerWidth",value:function(){var t=this,e=J(this.contentEl).pipe(Object(S.a)((function(e){return t.fireEvent("content-width-change",{detail:e})}))),n=J(this.peekEl).pipe(Object(S.a)((function(e){return t.fireEvent("peek-width-change",{detail:e})})));return Object(b.a)(e,n).pipe(Object(O.a)((function(t){var e=At(t,2);return e[0]-e[1]})),Object(j.a)())}},{key:"connectedCallback",value:function(){Mt(Wt(a.prototype),"connectedCallback",this).call(this),this.$.opened=new g.a(this.opened),this.$.side=new g.a(this.side),this.$.persistent=new g.a(this.persistent),this.$.preventDefault=new g.a(this.noScroll),this.$.mouseEvents=new g.a(this.mouseEvents),this.scrimClickable=this.opened,this.animateTo$=new m.a,this.updater=jt.getUpdaterForPlatform(this),this.updateComplete.then(this.upgrade)}},{key:"render",value:function(){var t;return Object(r.d)(Tt(),p({willChange:this.willChange?"opacity":"",pointerEvents:this.scrimClickable?"all":""}),this.mouseEvents&&this.grabbing&&!this.scrimClickable?Object(r.d)(Et()):null,l((_t(t={wrapper:!0,"full-height":!0},this.side,!0),_t(t,"grab",this.mouseEvents),_t(t,"grabbing",this.mouseEvents&&this.grabbing),t)),p({willChange:this.willChange?"transform":""}))}},{key:"open",value:function(){this.animateTo$.next(!0)}},{key:"close",value:function(){this.animateTo$.next(!1)}},{key:"toggle",value:function(){this.animateTo$.next(!this.opened)}},{key:"initialized",get:function(){return this._initialized}},{key:"histId",get:function(){return this.id||this.tagName}},{key:"hashId",get:function(){return"#".concat(this.histId,"--opened")}}])&&Vt(e.prototype,n),i&&Vt(e,i),a}(Object(U.b)(U.a,[it,Ot,lt]));
29
- /**
30
- * Copyright (c) 2020 Florian Klampfer <https://qwtel.com/>
31
- *
32
- * This program is free software: you can redistribute it and/or modify
33
- * it under the terms of the GNU General Public License as published by
34
- * the Free Software Foundation, either version 3 of the License, or
35
- * (at your option) any later version.
36
- *
37
- * This program is distributed in the hope that it will be useful,
38
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
39
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
40
- * GNU General Public License for more details.
41
- *
42
- * You should have received a copy of the GNU General Public License
43
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
44
- *
45
- * @license
46
- * @nocompile
47
- */Yt.styles=kt,Ut([Object(r.f)(".scrim")],Yt.prototype,"scrimEl",void 0),Ut([Object(r.f)(".wrapper")],Yt.prototype,"contentEl",void 0),Ut([Object(r.f)(".peek")],Yt.prototype,"peekEl",void 0),Ut([Object(r.e)({type:Boolean,reflect:!0})],Yt.prototype,"opened",void 0),Ut([Object(r.e)({type:String,reflect:!0})],Yt.prototype,"side",void 0),Ut([Object(r.e)({type:Boolean,reflect:!0})],Yt.prototype,"persistent",void 0),Ut([Object(r.e)({type:Number,reflect:!0})],Yt.prototype,"threshold",void 0),Ut([Object(r.e)({type:Boolean,reflect:!0})],Yt.prototype,"noScroll",void 0),Ut([Object(r.e)({type:Boolean,reflect:!0})],Yt.prototype,"mouseEvents",void 0),Ut([Object(r.e)({reflect:!0,converter:H,hasChanged:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.length!==e.length||t.some((function(t,n){return t!==e[n]}))}})],Yt.prototype,"range",void 0),Ut([Object(r.e)()],Yt.prototype,"scrimClickable",void 0),Ut([Object(r.e)()],Yt.prototype,"grabbing",void 0),Ut([Object(r.e)()],Yt.prototype,"willChange",void 0),Ut([Object(r.e)()],Yt.prototype,"open",null),Ut([Object(r.e)()],Yt.prototype,"close",null),Ut([Object(r.e)()],Yt.prototype,"toggle",null),Yt=Ut([Object(r.c)("hy-drawer")],Yt)},358:function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var r=n(1),i=n(9),o=n(115),a=n(47),c=n(46),u={leading:!0,trailing:!1};!function(){function t(t,e,n){this.durationSelector=t,this.leading=e,this.trailing=n}t.prototype.call=function(t,e){return e.subscribe(new s(t,this.durationSelector,this.leading,this.trailing))}}();var s=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.destination=e,o.durationSelector=n,o._leading=r,o._trailing=i,o._sendValue=null,o._hasValue=!1,o}return Object(r.e)(e,t),e.prototype._next=function(t){this._hasValue=!0,this._sendValue=t,this._throttled||(this._leading?this.send():this.throttle(t))},e.prototype.send=function(){var t=this._hasValue,e=this._sendValue;t&&(this.destination.next(e),this.throttle(e)),this._hasValue=!1,this._sendValue=null},e.prototype.throttle=function(t){var e=this.tryDurationSelector(t);e&&this.add(this._throttled=Object(c.a)(this,e))},e.prototype.tryDurationSelector=function(t){try{return this.durationSelector(t)}catch(t){return this.destination.error(t),null}},e.prototype.throttlingDone=function(){var t=this._throttled,e=this._trailing;t&&t.unsubscribe(),this._throttled=null,e&&this.send()},e.prototype.notifyNext=function(t,e,n,r,i){this.throttlingDone()},e.prototype.notifyComplete=function(){this.throttlingDone()},e}(a.a);function l(t,e,n){return void 0===e&&(e=o.a),void 0===n&&(n=u),function(r){return r.lift(new f(t,e,!!n.leading,!!n.trailing))}}var f=function(){function t(t,e,n,r){this.duration=t,this.scheduler=e,this.leading=n,this.trailing=r}return t.prototype.call=function(t,e){return e.subscribe(new p(t,this.duration,this.scheduler,this.leading,this.trailing))},t}(),p=function(t){function e(e,n,r,i,o){var a=t.call(this,e)||this;return a.duration=n,a.scheduler=r,a.leading=i,a.trailing=o,a.throttled=null,a._hasTrailingValue=!1,a._trailingValue=null,a}return Object(r.e)(e,t),e.prototype._next=function(t){this.throttled?this.trailing&&(this._trailingValue=t,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(h,this.duration,{subscriber:this})),this.leading?this.destination.next(t):this.trailing&&(this._trailingValue=t,this._hasTrailingValue=!0))},e.prototype._complete=function(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()},e.prototype.clearThrottle=function(){var t=this.throttled;t&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),t.unsubscribe(),this.remove(t),this.throttled=null)},e}(i.a);function h(t){t.subscriber.clearThrottle()}}}]);
@@ -1,47 +0,0 @@
1
- /*!
2
- * __ __ __ __
3
- * /\ \/\ \ /\ \ __ /\ \
4
- * \ \ \_\ \ __ __ \_\ \ __ /\_\ __ ___ \ \ \/'\
5
- * \ \ _ \ /\ \/\ \ /'_` \ /'__`\ \/\ \ /'__`\ /'___\\ \ , <
6
- * \ \ \ \ \\ \ \_\ \ /\ \L\ \ /\ __/ \ \ \ /\ \L\.\_ /\ \__/ \ \ \\`\
7
- * \ \_\ \_\\/`____ \\ \___,_\\ \____\ _\ \ \\ \__/.\_\\ \____\ \ \_\ \_\
8
- * \/_/\/_/ `/___/> \\/__,_ / \/____//\ \_\ \\/__/\/_/ \/____/ \/_/\/_/
9
- * /\___/ \ \____/
10
- * \/__/ \/___/
11
- *
12
- * Powered by Hydejack v9.0.3 <https://hydejack.com/>
13
- */
14
- (window.webpackJsonp=window.webpackJsonp||[]).push([[8],{337:function(t,e,n){"use strict";n.r(e),n.d(e,"HyDrawer",(function(){return Yt}));var r=n(318),i=n(307);function o(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}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 o,c=!0,u=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return c=t.done,t},e:function(t){u=!0,o=t},f:function(){try{c||null==n.return||n.return()}finally{if(u)throw o}}}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}
15
- /**
16
- * @license
17
- * Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
18
- * This code may only be used under the BSD style license found at
19
- * http://polymer.github.io/LICENSE.txt
20
- * The complete set of authors may be found at
21
- * http://polymer.github.io/AUTHORS.txt
22
- * The complete set of contributors may be found at
23
- * http://polymer.github.io/CONTRIBUTORS.txt
24
- * Code distributed by Google as part of the polymer project is also
25
- * subject to an additional IP rights grant found at
26
- * http://polymer.github.io/PATENTS.txt
27
- */
28
- var u=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.classes=new Set,this.changed=!1,this.element=e;var n,r=o((e.getAttribute("class")||"").split(/\s+/));try{for(r.s();!(n=r.n()).done;){var i=n.value;this.classes.add(i)}}catch(t){r.e(t)}finally{r.f()}}var e,n,r;return e=t,(n=[{key:"add",value:function(t){this.classes.add(t),this.changed=!0}},{key:"remove",value:function(t){this.classes.delete(t),this.changed=!0}},{key:"commit",value:function(){if(this.changed){var t="";this.classes.forEach((function(e){return t+=e+" "})),this.element.setAttribute("class",t)}}}])&&c(e.prototype,n),r&&c(e,r),t}(),s=new WeakMap,l=Object(i.c)((function(t){return function(e){if(!(e instanceof i.a)||e instanceof i.b||"class"!==e.committer.name||e.committer.parts.length>1)throw new Error("The `classMap` directive must be used in the `class` attribute and must be the only part in the attribute.");var n=e.committer,r=n.element,o=s.get(e);void 0===o&&(r.setAttribute("class",n.strings.join(" ")),s.set(e,o=new Set));var a=r.classList||new u(r);for(var c in o.forEach((function(e){e in t||(a.remove(e),o.delete(e))})),t){var l=t[c];l!=o.has(c)&&(l?(a.add(c),o.add(c)):(a.remove(c),o.delete(c)))}"function"==typeof a.commit&&a.commit()}})),f=new WeakMap,p=Object(i.c)((function(t){return function(e){if(!(e instanceof i.a)||e instanceof i.b||"style"!==e.committer.name||e.committer.parts.length>1)throw new Error("The `styleMap` directive must be used in the style attribute and must be the only part in the attribute.");var n=e.committer,r=n.element.style,o=f.get(e);for(var a in void 0===o&&(r.cssText=n.strings.join(" "),f.set(e,o=new Set)),o.forEach((function(e){e in t||(o.delete(e),-1===e.indexOf("-")?r[e]=null:r.removeProperty(e))})),t)o.add(a),-1===a.indexOf("-")?r[a]=t[a]:r.setProperty(a,t[a])}})),h=n(341),b=n(339),d=n(321),v=n(298),y=n(149),g=n(344),m=n(310),O=n(31),j=n(338),w=n(150),S=n(152),x=n(1),k=n(47),_=n(46);function E(t){return function(e){return e.lift(new T(t))}}var T=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var n=new C(t),r=e.subscribe(n);return r.add(Object(_.a)(n,this.notifier)),r},t}(),C=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.hasValue=!1,e}return Object(x.e)(e,t),e.prototype._next=function(t){this.value=t,this.hasValue=!0},e.prototype.notifyNext=function(t,e,n,r,i){this.emitValue()},e.prototype.notifyComplete=function(){this.emitValue()},e.prototype.emitValue=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))},e}(k.a),A=n(115);function R(t){return void 0===t&&(t=A.a),Object(O.a)((function(e){return new I(e,t.now())}))}var I=function(t,e){this.value=t,this.timestamp=e},$=n(324),P=n(151),V=n(323),M=n(148),D=n(342),X=n(343),z=n(9);function B(t){return function(e){return e.lift(new W(t))}}var W=function(){function t(t){this.total=t}return t.prototype.call=function(t,e){return e.subscribe(new N(t,this.total))},t}(),N=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.count=0,r}return Object(x.e)(e,t),e.prototype._next=function(t){++this.count>this.total&&this.destination.next(t)},e}(z.a),U=n(305),Y=n(64);function F(t,e,n,r){return n*Math.sin(t/r*(Math.PI/2))+e}function J(t){return("ResizeObserver"in window?Object(U.e)(t):Object(Y.a)({contentRect:{width:t.clientWidth}})).pipe(Object(O.a)((function(t){return t.contentRect.width})))}var H={fromAttribute:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t.replace(/[\[\]]/g,"").split(",").map(Number)},toAttribute:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return t.join(",")}};var L=n(322),q=n(349);var G=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){return e.subscribe(new K(t,this.notifier,e))},t}(),K=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.notifier=n,i.source=r,i.notifications=null,i.retries=null,i.retriesSubscription=null,i.sourceIsBeingSubscribedTo=!0,i}return Object(x.e)(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)},e.prototype.notifyComplete=function(e){if(!1===this.sourceIsBeingSubscribedTo)return t.prototype.complete.call(this)},e.prototype.complete=function(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return t.prototype.complete.call(this);this._unsubscribeAndRecycle(),this.notifications.next()}},e.prototype._unsubscribe=function(){var t=this.notifications,e=this.retriesSubscription;t&&(t.unsubscribe(),this.notifications=null),e&&(e.unsubscribe(),this.retriesSubscription=null),this.retries=null},e.prototype._unsubscribeAndRecycle=function(){var e=this._unsubscribe;return this._unsubscribe=null,t.prototype._unsubscribeAndRecycle.call(this),this._unsubscribe=e,this},e.prototype.subscribeToRetries=function(){var e;this.notifications=new m.a;try{e=(0,this.notifier)(this.notifications)}catch(e){return t.prototype.complete.call(this)}this.retries=e,this.retriesSubscription=Object(_.a)(this,e)},e}(k.a);var Q=function(){function t(t){this.predicate=t}return t.prototype.call=function(t,e){return e.subscribe(new Z(t,this.predicate))},t}(),Z=function(t){function e(e,n){var r=t.call(this,e)||this;return r.predicate=n,r.skipping=!0,r.index=0,r}return Object(x.e)(e,t),e.prototype._next=function(t){var e=this.destination;this.skipping&&this.tryCallPredicate(t),this.skipping||e.next(t)},e.prototype.tryCallPredicate=function(t){try{var e=this.predicate(t,this.index++);this.skipping=Boolean(e)}catch(t){this.destination.error(t)}},e}(z.a);function tt(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=t[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return et(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return et(t,e)}(t,e)||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 et(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function nt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var rt=Math.abs.bind(Math),it=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,n,r;return e=t,(n=[{key:"getStartObservable",value:function(){return Object(b.a)(this.$.mouseEvents).pipe(Object(M.a)((function(t){var e=tt(t,1)[0],n=Object(v.a)(document,"touchstart",{passive:!0}).pipe(Object(P.a)((function(t){return 1===t.touches.length})),Object(O.a)((function(t){return t.touches[0]}))),r=e?Object(v.a)(document,"mousedown").pipe(Object(O.a)((function(t){return t.event=t,t}))):y.a;return Object(d.a)(n,r)})))}},{key:"getMoveObservable",value:function(t,e){return Object(b.a)(this.$.mouseEvents,this.$.preventDefault).pipe(Object(M.a)((function(n){var r=tt(n,2),i=r[0],o=r[1],a=Object(v.a)(document,"touchmove",{passive:!o}).pipe(Object(O.a)((function(t){return t.touches[0].event=t,t.touches[0]}))),c=i?Object(v.a)(document,"mousemove",{passive:!o}).pipe(Object(U.l)(Object(d.a)(t.pipe(Object(L.a)(!0)),e.pipe(Object(L.a)(!1)))),Object(O.a)((function(t){return t.event=t,t}))):y.a;return Object(d.a)(a,c)})))}},{key:"getEndObservable",value:function(){return Object(b.a)(this.$.mouseEvents).pipe(Object(M.a)((function(t){var e=tt(t,1)[0],n=Object(v.a)(document,"touchend",{passive:!0}).pipe(Object(P.a)((function(t){return 0===t.touches.length})),Object(O.a)((function(t){return t.changedTouches[0]}))),r=e?Object(v.a)(document,"mouseup",{passive:!0}):y.a;return Object(d.a)(n,r)})))}},{key:"getIsSlidingObservable",value:function(t,e,n){return this.getIsSlidingObservableInner(t,e).pipe(Object(q.a)(1),Object(V.a)(void 0),(r=function(){return n},function(t){return t.lift(new G(r))}));var r}},{key:"getIsSlidingObservableInner",value:function(t,e){var n,r=this;return this.threshold?t.pipe(Object(w.a)(e),(n=function(t){var e=tt(t,2),n=e[0],i=n.clientX,o=n.clientY,a=e[1],c=a.clientX,u=a.clientY;return rt(u-o)<r.threshold&&rt(c-i)<r.threshold},function(t){return t.lift(new Q(n))}),Object(O.a)((function(t){var e=tt(t,2),n=e[0],r=n.clientX,i=n.clientY,o=e[1],a=o.clientX,c=o.clientY;return rt(a-r)>=rt(c-i)}))):t.pipe(Object(w.a)(e),Object(O.a)((function(t){var e=tt(t,2),n=e[0],i=n.clientX,o=n.clientY,a=n.event,c=e[1],u=c.clientX,s=c.clientY,l=rt(u-i)>=rt(s-o);return r.noScroll&&l&&a.preventDefault(),l})))}}])&&nt(e.prototype,n),r&&nt(e,r),t}();function ot(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=t[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return at(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return at(t,e)}(t,e)||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 at(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function ct(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var ut=Math.min.bind(Math),st=Math.max.bind(Math),lt=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,n,r;return e=t,(n=[{key:"calcIsInRange",value:function(t,e){var n=t.clientX;switch(this.side){case"left":var r=ot(this.range,2),i=r[0],o=r[1];return n>i&&(e||n<o);case"right":var a=window.innerWidth-this.range[0],c=window.innerWidth-this.range[1];return n<a&&(e||n>c);default:throw Error()}}},{key:"calcIsSwipe",value:function(t,e,n,r,i){var o=t.clientX;return e.clientX!==o||n>0&&n<r}},{key:"calcWillOpen",value:function(t,e,n,r,i){switch(this.side){case"left":return i>.15||!(i<-.15)&&n>=r/2;case"right":return-i>.15||!(-i<-.15)&&n<=-r/2;default:throw Error()}}},{key:"calcTranslateX",value:function(t,e,n,r){var i=t.clientX,o=e.clientX;switch(this.side){case"left":return st(0,ut(r,n+(i-o)));case"right":return ut(0,st(-r,n+(i-o)));default:throw Error()}}}])&&ct(e.prototype,n),r&&ct(e,r),t}();function ft(t){return(ft="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function pt(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ht(t,e)}function ht(t,e){return(ht=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function bt(t){var e=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(t){return!1}}();return function(){var n,r=vt(t);if(e){var i=vt(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return dt(this,n)}}function dt(t,e){return!e||"object"!==ft(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function vt(t){return(vt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function yt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function gt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function mt(t,e,n){return e&&gt(t.prototype,e),n&&gt(t,n),t}var Ot=function(){function t(){yt(this,t)}return mt(t,[{key:"updateDOM",value:function(t,e){var n=t/e*("left"===this.side?1:-1)||0;this.translateX=t,this.opacity=n,this.updater.updateDOM(t,n)}}]),t}(),jt=function(){function t(e){yt(this,t),this.parent=e}return mt(t,[{key:"contentEl",get:function(){return this.parent.contentEl}},{key:"scrimEl",get:function(){return this.parent.scrimEl}}],[{key:"getUpdaterForPlatform",value:function(t){return"attributeStyleMap"in Element.prototype&&"CSS"in window&&"number"in CSS?new St(t):new wt(t)}}]),t}(),wt=function(t){pt(n,t);var e=bt(n);function n(t){return yt(this,n),e.call(this,t)}return mt(n,[{key:"updateDOM",value:function(t,e){this.contentEl.style.transform="translate(".concat(t,"px, 0px)"),this.scrimEl.style.opacity="".concat(e)}}]),n}(jt),St=function(t){pt(n,t);var e=bt(n);function n(t){var r;return yt(this,n),(r=e.call(this,t)).tvalue=new CSSTransformValue([new CSSTranslate(CSS.px(0),CSS.px(0))]),r.ovalue=CSS.number(1),r}return mt(n,[{key:"updateDOM",value:function(t,e){this.tvalue[0].x.value=t,this.ovalue.value=e,this.contentEl.attributeStyleMap.set("transform",this.tvalue),this.scrimEl.attributeStyleMap.set("opacity",this.ovalue)}}]),n}(jt);function xt(){var t=function(t,e){e||(e=t.slice(0));return Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}(["\n @media screen {\n :host {\n touch-action: pan-x;\n }\n\n .full-screen {\n position: fixed;\n top: 0;\n left: 0;\n height: 100vh;\n width: 100vw;\n }\n\n .full-height {\n position: fixed;\n top: 0;\n height: 100vh;\n }\n\n .peek {\n left: 0;\n width: var(--hy-drawer-peek-width, 0px);\n visibility: hidden;\n z-index: calc(var(--hy-drawer-z-index, 100) - 1);\n }\n\n .scrim {\n position: fixed;\n top: 0;\n left: 0;\n height: 10vh;\n width: 10vw;\n transform: scale(10);\n transform-origin: top left;\n opacity: 0;\n pointer-events: none;\n background: var(--hy-drawer-scrim-background, rgba(0, 0, 0, 0.5));\n z-index: var(--hy-drawer-z-index, 100);\n -webkit-tap-highlight-color: transparent;\n }\n\n .range {\n position: fixed;\n top: 0;\n height: 100vh;\n z-index: calc(var(--hy-drawer-z-index, 100) + 1);\n }\n\n .grabbing-screen {\n cursor: grabbing;\n z-index: calc(var(--hy-drawer-z-index, 100) + 2);\n }\n\n .wrapper {\n width: var(--hy-drawer-width, 300px);\n background: var(--hy-drawer-background, inherit);\n box-shadow: var(--hy-drawer-box-shadow, 0 0 15px rgba(0, 0, 0, 0.25));\n z-index: calc(var(--hy-drawer-z-index, 100) + 3);\n contain: strict;\n }\n\n .wrapper.left {\n left: calc(-1 * var(--hy-drawer-width, 300px) + var(--hy-drawer-peek-width, 0px));\n }\n\n .wrapper.right {\n right: calc(-1 * var(--hy-drawer-width, 300px) + var(--hy-drawer-peek-width, 0px));\n }\n\n .wrapper > .overflow {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n overflow-x: hidden;\n overflow-y: auto;\n overscroll-behavior: contain;\n -webkit-overflow-scrolling: touch;\n }\n\n .grab {\n cursor: move;\n cursor: grab;\n }\n\n .grabbing {\n cursor: grabbing;\n }\n }\n\n @media print {\n .scrim {\n display: none !important;\n }\n\n .wrapper {\n transform: none !important;\n }\n }\n"]);return xt=function(){return t},t}var kt=Object(r.b)(xt());function _t(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Et(){var t=Ct(['<div class="grabbing-screen full-screen"></div>']);return Et=function(){return t},t}function Tt(){var t=Ct(['\n <div class="peek full-height"></div>\n <div\n class="scrim"\n style=',">\n </div>\n ","\n <div\n class=","\n style=",'\n >\n <div class="overflow">\n <slot></slot>\n </div>\n </div>\n ']);return Tt=function(){return t},t}function Ct(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function At(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=t[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(t,e)||It(t,e)||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 Rt(t){return function(t){if(Array.isArray(t))return $t(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||It(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function It(t,e){if(t){if("string"==typeof t)return $t(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$t(t,e):void 0}}function $t(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Pt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Vt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Mt(t,e,n){return(Mt="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Wt(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}})(t,e,n||t)}function Dt(t,e){return(Dt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Xt(t){var e=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(t){return!1}}();return function(){var n,r=Wt(t);if(e){var i=Wt(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return zt(this,n)}}function zt(t,e){return!e||"object"!==Nt(e)&&"function"!=typeof e?Bt(t):e}function Bt(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Wt(t){return(Wt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Nt(t){return(Nt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var Ut=function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"===("undefined"==typeof Reflect?"undefined":Nt(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var c=t.length-1;c>=0;c--)(i=t[c])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},Yt=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Dt(t,e)}(a,t);var e,n,i,o=Xt(a);function a(){var t;return Pt(this,a),(t=o.apply(this,arguments)).el=Bt(t),t.opened=!1,t.side="left",t.persistent=!1,t.threshold=10,t.noScroll=!1,t.mouseEvents=!1,t.range=[0,100],t.willChange=!1,t._initialized=Object(U.f)(),t.$={},t.upgrade=function(){var e=t.getDrawerWidth(),n=t.$.persistent.pipe(Object(O.a)((function(t){return!t}))),r=t.getStartObservable().pipe(Object(U.h)(n),Object(j.a)()),i={},o=Object(h.a)((function(){return i.translateX$.pipe(Object(O.a)((function(t){return 0!==t})))})),a=r.pipe(Object(w.a)(o),Object(O.a)((function(e){var n;return(n=t).calcIsInRange.apply(n,Rt(e))})),Object(S.a)((function(e){e&&(t.willChange=!0,t.fireEvent("prepare"))})),Object(j.a)()),c=t.getEndObservable().pipe(Object(U.h)(n,a),Object(S.a)((function(){t.mouseEvents&&(t.grabbing=!1)})),Object(j.a)()),u=t.getMoveObservable(r,c).pipe(Object(U.h)(n,a),Object(j.a)()),s=t.getIsSlidingObservable(u,r,c).pipe(Object(S.a)((function(e){t.isSliding=e,e&&t.mouseEvents&&(t.grabbing=!0)}))),l=i.translateX$=Object(h.a)((function(){var n=Object(b.a)(t.$.opened,t.$.side,e).pipe(Object(O.a)((function(t){var e=At(t,3),n=e[0],r=e[1],i=e[2];return n?i*("left"===r?1:-1):0}))),o=u.pipe(Object(U.h)(s),Object(S.a)((function(){return t.scrimClickable=!1})),Object(S.a)((function(e){var n=e.event;return t.noScroll&&n.preventDefault()})),Object(w.a)(r,i.startTranslateX$,e),Object(O.a)((function(e){var n;return(n=t).calcTranslateX.apply(n,Rt(e))})));return Object(d.a)(i.tweenTranslateX$,n,o)})).pipe(Object(j.a)());i.startTranslateX$=l.pipe(E(r));var f=l.pipe(R(),Object($.a)(),Object(P.a)((function(t){var e=At(t,2),n=e[0].timestamp;return e[1].timestamp-n>0})),Object(O.a)((function(t){var e=At(t,2),n=e[0],r=n.value,i=n.timestamp,o=e[1];return(o.value-r)/(o.timestamp-i)})),Object(V.a)(0)),p=c.pipe(Object(w.a)(r,l,e,f),Object(P.a)((function(e){var n;return(n=t).calcIsSwipe.apply(n,Rt(e))})),Object(O.a)((function(e){var n;return(n=t).calcWillOpen.apply(n,Rt(e))}))),g=t.animateTo$.pipe(Object(S.a)((function(){t.willChange=!0,t.fireEvent("prepare")})));i.tweenTranslateX$=Object(d.a)(p,g).pipe(Object(w.a)(l,e),Object(M.a)((function(e){var n=At(e,3),i=n[0],o=n[1],a=n[2],c="left"===t.side?1:-1,u=(i?a*c:0)-o,s=Math.ceil(200+.15*a);return Object(U.m)(F,o,u,s).pipe(Object(D.a)((function(){t.transitioned(i)})),Object(X.a)(r),Object(X.a)(t.$.side.pipe(B(1))),Object(j.a)())}))),l.pipe(Object(w.a)(e),Object(S.a)((function(e){var n;(n=t).updateDOM.apply(n,Rt(e));var r=Bt(t),i=r.translateX,o=r.opacity;t.fireEvent("move",{detail:{translateX:i,opacity:o},bubbles:!1})}))).subscribe(),Object(v.a)(t.scrimEl,"click").pipe(Object(S.a)((function(){return t.close()}))).subscribe(),n.pipe(Object(S.a)((function(e){t.scrimEl.style.display=e?"block":"none"}))).subscribe(),t.$.mouseEvents.pipe(Object(M.a)((function(t){return t?r.pipe(Object(w.a)(a)):y.a})),Object(P.a)((function(t){var e=At(t,2),n=e[0];return e[1]&&null!=n.event})),Object(S.a)((function(t){return At(t,1)[0].event.preventDefault()}))).subscribe(),t.fireEvent("init",{detail:t.opened}),t._initialized.resolve(Bt(t))},t.transitioned=function(e){t.opened=t.scrimClickable=e,t.willChange=!1,t.fireEvent("transitioned",{detail:e})},t}return e=a,(n=[{key:"getDrawerWidth",value:function(){var t=this,e=J(this.contentEl).pipe(Object(S.a)((function(e){return t.fireEvent("content-width-change",{detail:e})}))),n=J(this.peekEl).pipe(Object(S.a)((function(e){return t.fireEvent("peek-width-change",{detail:e})})));return Object(b.a)(e,n).pipe(Object(O.a)((function(t){var e=At(t,2);return e[0]-e[1]})),Object(j.a)())}},{key:"connectedCallback",value:function(){Mt(Wt(a.prototype),"connectedCallback",this).call(this),this.$.opened=new g.a(this.opened),this.$.side=new g.a(this.side),this.$.persistent=new g.a(this.persistent),this.$.preventDefault=new g.a(this.noScroll),this.$.mouseEvents=new g.a(this.mouseEvents),this.scrimClickable=this.opened,this.animateTo$=new m.a,this.updater=jt.getUpdaterForPlatform(this),this.updateComplete.then(this.upgrade)}},{key:"render",value:function(){var t;return Object(r.d)(Tt(),p({willChange:this.willChange?"opacity":"",pointerEvents:this.scrimClickable?"all":""}),this.mouseEvents&&this.grabbing&&!this.scrimClickable?Object(r.d)(Et()):null,l((_t(t={wrapper:!0,"full-height":!0},this.side,!0),_t(t,"grab",this.mouseEvents),_t(t,"grabbing",this.mouseEvents&&this.grabbing),t)),p({willChange:this.willChange?"transform":""}))}},{key:"open",value:function(){this.animateTo$.next(!0)}},{key:"close",value:function(){this.animateTo$.next(!1)}},{key:"toggle",value:function(){this.animateTo$.next(!this.opened)}},{key:"initialized",get:function(){return this._initialized}},{key:"histId",get:function(){return this.id||this.tagName}},{key:"hashId",get:function(){return"#".concat(this.histId,"--opened")}}])&&Vt(e.prototype,n),i&&Vt(e,i),a}(Object(U.b)(U.a,[it,Ot,lt]));
29
- /**
30
- * Copyright (c) 2020 Florian Klampfer <https://qwtel.com/>
31
- *
32
- * This program is free software: you can redistribute it and/or modify
33
- * it under the terms of the GNU General Public License as published by
34
- * the Free Software Foundation, either version 3 of the License, or
35
- * (at your option) any later version.
36
- *
37
- * This program is distributed in the hope that it will be useful,
38
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
39
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
40
- * GNU General Public License for more details.
41
- *
42
- * You should have received a copy of the GNU General Public License
43
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
44
- *
45
- * @license
46
- * @nocompile
47
- */Yt.styles=kt,Ut([Object(r.f)(".scrim")],Yt.prototype,"scrimEl",void 0),Ut([Object(r.f)(".wrapper")],Yt.prototype,"contentEl",void 0),Ut([Object(r.f)(".peek")],Yt.prototype,"peekEl",void 0),Ut([Object(r.e)({type:Boolean,reflect:!0})],Yt.prototype,"opened",void 0),Ut([Object(r.e)({type:String,reflect:!0})],Yt.prototype,"side",void 0),Ut([Object(r.e)({type:Boolean,reflect:!0})],Yt.prototype,"persistent",void 0),Ut([Object(r.e)({type:Number,reflect:!0})],Yt.prototype,"threshold",void 0),Ut([Object(r.e)({type:Boolean,reflect:!0})],Yt.prototype,"noScroll",void 0),Ut([Object(r.e)({type:Boolean,reflect:!0})],Yt.prototype,"mouseEvents",void 0),Ut([Object(r.e)({reflect:!0,converter:H,hasChanged:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.length!==e.length||t.some((function(t,n){return t!==e[n]}))}})],Yt.prototype,"range",void 0),Ut([Object(r.e)()],Yt.prototype,"scrimClickable",void 0),Ut([Object(r.e)()],Yt.prototype,"grabbing",void 0),Ut([Object(r.e)()],Yt.prototype,"willChange",void 0),Ut([Object(r.e)()],Yt.prototype,"open",null),Ut([Object(r.e)()],Yt.prototype,"close",null),Ut([Object(r.e)()],Yt.prototype,"toggle",null),Yt=Ut([Object(r.c)("hy-drawer")],Yt)},339:function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var r=n(1),i=n(113),o=n(68),a=n(47),c=n(46),u=n(114),s={};function l(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=void 0,r=void 0;return Object(i.a)(t[t.length-1])&&(r=t.pop()),"function"==typeof t[t.length-1]&&(n=t.pop()),1===t.length&&Object(o.a)(t[0])&&(t=t[0]),Object(u.a)(t,r).lift(new f(n))}var f=function(){function t(t){this.resultSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new p(t,this.resultSelector))},t}(),p=function(t){function e(e,n){var r=t.call(this,e)||this;return r.resultSelector=n,r.active=0,r.values=[],r.observables=[],r}return Object(r.e)(e,t),e.prototype._next=function(t){this.values.push(s),this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(var n=0;n<e;n++){var r=t[n];this.add(Object(c.a)(this,r,r,n))}}},e.prototype.notifyComplete=function(t){0==(this.active-=1)&&this.destination.complete()},e.prototype.notifyNext=function(t,e,n,r,i){var o=this.values,a=o[n],c=this.toRespond?a===s?--this.toRespond:this.toRespond:0;o[n]=e,0===c&&(this.resultSelector?this._tryResultSelector(o):this.destination.next(o.slice()))},e.prototype._tryResultSelector=function(t){var e;try{e=this.resultSelector.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(a.a)},350:function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var r=n(1),i=n(9),o=n(115),a=n(47),c=n(46),u={leading:!0,trailing:!1};!function(){function t(t,e,n){this.durationSelector=t,this.leading=e,this.trailing=n}t.prototype.call=function(t,e){return e.subscribe(new s(t,this.durationSelector,this.leading,this.trailing))}}();var s=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.destination=e,o.durationSelector=n,o._leading=r,o._trailing=i,o._sendValue=null,o._hasValue=!1,o}return Object(r.e)(e,t),e.prototype._next=function(t){this._hasValue=!0,this._sendValue=t,this._throttled||(this._leading?this.send():this.throttle(t))},e.prototype.send=function(){var t=this._hasValue,e=this._sendValue;t&&(this.destination.next(e),this.throttle(e)),this._hasValue=!1,this._sendValue=null},e.prototype.throttle=function(t){var e=this.tryDurationSelector(t);e&&this.add(this._throttled=Object(c.a)(this,e))},e.prototype.tryDurationSelector=function(t){try{return this.durationSelector(t)}catch(t){return this.destination.error(t),null}},e.prototype.throttlingDone=function(){var t=this._throttled,e=this._trailing;t&&t.unsubscribe(),this._throttled=null,e&&this.send()},e.prototype.notifyNext=function(t,e,n,r,i){this.throttlingDone()},e.prototype.notifyComplete=function(){this.throttlingDone()},e}(a.a);function l(t,e,n){return void 0===e&&(e=o.a),void 0===n&&(n=u),function(r){return r.lift(new f(t,e,!!n.leading,!!n.trailing))}}var f=function(){function t(t,e,n,r){this.duration=t,this.scheduler=e,this.leading=n,this.trailing=r}return t.prototype.call=function(t,e){return e.subscribe(new p(t,this.duration,this.scheduler,this.leading,this.trailing))},t}(),p=function(t){function e(e,n,r,i,o){var a=t.call(this,e)||this;return a.duration=n,a.scheduler=r,a.leading=i,a.trailing=o,a.throttled=null,a._hasTrailingValue=!1,a._trailingValue=null,a}return Object(r.e)(e,t),e.prototype._next=function(t){this.throttled?this.trailing&&(this._trailingValue=t,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(h,this.duration,{subscriber:this})),this.leading?this.destination.next(t):this.trailing&&(this._trailingValue=t,this._hasTrailingValue=!0))},e.prototype._complete=function(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()},e.prototype.clearThrottle=function(){var t=this.throttled;t&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),t.unsubscribe(),this.remove(t),this.throttled=null)},e}(i.a);function h(t){t.subscriber.clearThrottle()}}}]);
@@ -1,78 +0,0 @@
1
- /*!
2
- * __ __ __ __
3
- * /\ \/\ \ /\ \ __ /\ \
4
- * \ \ \_\ \ __ __ \_\ \ __ /\_\ __ ___ \ \ \/'\
5
- * \ \ _ \ /\ \/\ \ /'_` \ /'__`\ \/\ \ /'__`\ /'___\\ \ , <
6
- * \ \ \ \ \\ \ \_\ \ /\ \L\ \ /\ __/ \ \ \ /\ \L\.\_ /\ \__/ \ \ \\`\
7
- * \ \_\ \_\\/`____ \\ \___,_\\ \____\ _\ \ \\ \__/.\_\\ \____\ \ \_\ \_\
8
- * \/_/\/_/ `/___/> \\/__,_ / \/____//\ \_\ \\/__/\/_/ \/____/ \/_/\/_/
9
- * /\___/ \ \____/
10
- * \/__/ \/___/
11
- *
12
- * Powered by Hydejack v9.0.2 <https://hydejack.com/>
13
- */
14
- (window.webpackJsonp=window.webpackJsonp||[]).push([[1],{309:function(t,e,n){"use strict";n.d(e,"g",(function(){return r.a})),n.d(e,"m",(function(){return r.c})),n.d(e,"a",(function(){return b})),n.d(e,"b",(function(){return v})),n.d(e,"e",(function(){return m.c})),n.d(e,"d",(function(){return m.b})),n.d(e,"l",(function(){return w.c})),n.d(e,"h",(function(){return w.b})),n.d(e,"c",(function(){return w.a})),n.d(e,"i",(function(){return S.b})),n.d(e,"j",(function(){return S.c})),n.d(e,"k",(function(){return S.d})),n.d(e,"f",(function(){return S.a}));var r=n(87),o=n(322),i=n(313);function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},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,u=!0,c=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return u=t.done,t},e:function(t){c=!0,i=t},f:function(){try{u||null==n.return||n.return()}finally{if(c)throw i}}}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function f(t,e,n){return(f="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=d(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function p(t,e){return(p=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function h(t){var e=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(t){return!1}}();return function(){var n,r=d(t);if(e){var o=d(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return y(this,n)}}function y(t,e){return!e||"object"!==u(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function d(t){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var b=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&p(t,e)}(u,t);var e,n,r,o=h(u);function u(){var t;return s(this,u),(t=o.apply(this,arguments)).$connected=new i.a,t}return e=u,(n=[{key:"connectedCallback",value:function(){f(d(u.prototype),"connectedCallback",this).call(this),this.$connected.next(!0)}},{key:"disconnectedCallback",value:function(){f(d(u.prototype),"disconnectedCallback",this).call(this),this.$connected.next(!1)}},{key:"firstUpdated",value:function(){this.firstUpdate=!0}},{key:"updated",value:function(t){if(!this.firstUpdate){var e,n=c(t.keys());try{for(n.s();!(e=n.n()).done;){var r=e.value;r in this.$&&this.$[r].next(this[r])}}catch(t){n.e(t)}finally{n.f()}}this.firstUpdate=!1}},{key:"fireEvent",value:function(t,e){this.dispatchEvent(new CustomEvent(t,e)),this.dispatchEvent(new CustomEvent("".concat(this.tagName.toLowerCase(),"-").concat(t),e))}}])&&l(e.prototype,n),r&&l(e,r),u}(o.a);function v(t,e){return e.forEach((function(e){Object.getOwnPropertyNames(e.prototype).forEach((function(n){t.prototype[n]=e.prototype[n]}))})),t}var m=n(116),w=n(86),S=n(67)},313:function(t,e,n){"use strict";n.d(e,"b",(function(){return l})),n.d(e,"a",(function(){return f}));var r=n(1),o=n(5),i=n(9),u=n(14),c=n(315),a=function(t){function e(e,n){var r=t.call(this)||this;return r.subject=e,r.subscriber=n,r.closed=!1,r}return Object(r.e)(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},e}(u.a),s=n(63),l=function(t){function e(e){var n=t.call(this,e)||this;return n.destination=e,n}return Object(r.e)(e,t),e}(i.a),f=function(t){function e(){var e=t.call(this)||this;return e.observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return Object(r.e)(e,t),e.prototype[s.a]=function(){return new l(this)},e.prototype.lift=function(t){var e=new p(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new c.a;if(!this.isStopped)for(var e=this.observers,n=e.length,r=e.slice(),o=0;o<n;o++)r[o].next(t)},e.prototype.error=function(t){if(this.closed)throw new c.a;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,n=e.length,r=e.slice(),o=0;o<n;o++)r[o].error(t);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new c.a;this.isStopped=!0;for(var t=this.observers,e=t.length,n=t.slice(),r=0;r<e;r++)n[r].complete();this.observers.length=0},e.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},e.prototype._trySubscribe=function(e){if(this.closed)throw new c.a;return t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){if(this.closed)throw new c.a;return this.hasError?(t.error(this.thrownError),u.a.EMPTY):this.isStopped?(t.complete(),u.a.EMPTY):(this.observers.push(t),new a(this,t))},e.prototype.asObservable=function(){var t=new o.a;return t.source=this,t},e.create=function(t,e){return new p(t,e)},e}(o.a),p=function(t){function e(e,n){var r=t.call(this)||this;return r.destination=e,r.source=n,r}return Object(r.e)(e,t),e.prototype.next=function(t){var e=this.destination;e&&e.next&&e.next(t)},e.prototype.error=function(t){var e=this.destination;e&&e.error&&this.destination.error(t)},e.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},e.prototype._subscribe=function(t){return this.source?this.source.subscribe(t):u.a.EMPTY},e}(f)},315:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(){function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t}()},322:function(t,e,n){"use strict";n.d(e,"c",(function(){return M})),n.d(e,"e",(function(){return I})),n.d(e,"f",(function(){return q})),n.d(e,"d",(function(){return f.f})),n.d(e,"b",(function(){return Y})),n.d(e,"a",(function(){return et}));var r=n(314),o=n(312);function i(t,e){for(var n=t.element.content,r=t.parts,o=document.createTreeWalker(n,133,null,!1),i=c(r),u=r[i],a=-1,s=0,l=[],f=null;o.nextNode();){a++;var p=o.currentNode;for(p.previousSibling===f&&(f=null),e.has(p)&&(l.push(p),null===f&&(f=p)),null!==f&&s++;void 0!==u&&u.index===a;)u.index=null!==f?-1:u.index-s,u=r[i=c(r,i)]}l.forEach((function(t){return t.parentNode.removeChild(t)}))}var u=function(t){for(var e=11===t.nodeType?0:1,n=document.createTreeWalker(t,133,null,!1);n.nextNode();)e++;return e},c=function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,n=e+1;n<t.length;n++){var r=t[n];if(Object(o.d)(r))return n}return-1};var a=n(321),s=n(317),l=n(320),f=n(310);function p(t){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}
15
- /**
16
- * @license
17
- * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
18
- * This code may only be used under the BSD style license found at
19
- * http://polymer.github.io/LICENSE.txt
20
- * The complete set of authors may be found at
21
- * http://polymer.github.io/AUTHORS.txt
22
- * The complete set of contributors may be found at
23
- * http://polymer.github.io/CONTRIBUTORS.txt
24
- * Code distributed by Google as part of the polymer project is also
25
- * subject to an additional IP rights grant found at
26
- * http://polymer.github.io/PATENTS.txt
27
- */var h=function(t,e){return"".concat(t,"--").concat(e)},y=!0;void 0===window.ShadyCSS?y=!1:void 0===window.ShadyCSS.prepareTemplateDom&&(console.warn("Incompatible ShadyCSS version detected. Please update to at least @webcomponents/webcomponentsjs@2.0.2 and @webcomponents/shadycss@1.3.1."),y=!1);var d=function(t){return function(e){var n=h(e.type,t),r=s.a.get(n);void 0===r&&(r={stringsArray:new WeakMap,keyString:new Map},s.a.set(n,r));var i=r.stringsArray.get(e.strings);if(void 0!==i)return i;var u=e.strings.join(o.f);if(void 0===(i=r.keyString.get(u))){var c=e.getTemplateElement();y&&window.ShadyCSS.prepareTemplateDom(c,t),i=new o.a(e,c),r.keyString.set(u,i)}return r.stringsArray.set(e.strings,i),i}},b=["html","svg"],v=new Set,m=function(t,e,n){v.add(t);var r=n?n.element:document.createElement("template"),o=e.querySelectorAll("style"),a=o.length;if(0!==a){for(var l=document.createElement("style"),f=0;f<a;f++){var p=o[f];p.parentNode.removeChild(p),l.textContent+=p.textContent}!function(t){b.forEach((function(e){var n=s.a.get(h(e,t));void 0!==n&&n.keyString.forEach((function(t){var e=t.element.content,n=new Set;Array.from(e.querySelectorAll("style")).forEach((function(t){n.add(t)})),i(t,n)}))}))}(t);var y=r.content;n?function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=t.element.content,o=t.parts;if(null!=n)for(var i=document.createTreeWalker(r,133,null,!1),a=c(o),s=0,l=-1;i.nextNode();){l++;var f=i.currentNode;for(f===n&&(s=u(e),n.parentNode.insertBefore(e,n));-1!==a&&o[a].index===l;){if(s>0){for(;-1!==a;)o[a].index+=s,a=c(o,a);return}a=c(o,a)}}else r.appendChild(e)}(n,l,y.firstChild):y.insertBefore(l,y.firstChild),window.ShadyCSS.prepareTemplateStyles(r,t);var d=y.querySelector("style");if(window.ShadyCSS.nativeShadow&&null!==d)e.insertBefore(d.cloneNode(!0),e.firstChild);else if(n){y.insertBefore(l,y.firstChild);var m=new Set;m.add(l),i(n,m)}}else window.ShadyCSS.prepareTemplateStyles(r,t)};function w(t){return function(t){if(Array.isArray(t))return _(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||S(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function S(t,e){if(t){if("string"==typeof t)return _(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_(t,e):void 0}}function _(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function g(t){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function O(t,e,n,r,o,i,u){try{var c=t[i](u),a=c.value}catch(t){return void n(t)}c.done?e(a):Promise.resolve(a).then(r,o)}function P(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function j(t,e){return!e||"object"!==g(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function k(t){var e="function"==typeof Map?new Map:void 0;return(k=function(t){if(null===t||(n=t,-1===Function.toString.call(n).indexOf("[native code]")))return t;var n;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return C(t,arguments,R(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),x(r,t)})(t)}function C(t,e,n){return(C=E()?Reflect.construct:function(t,e,n){var r=[null];r.push.apply(r,e);var o=new(Function.bind.apply(t,r));return n&&x(o,n.prototype),o}).apply(null,arguments)}function E(){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(t){return!1}}function x(t,e){return(x=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function R(t){return(R=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}
28
- /**
29
- * @license
30
- * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
31
- * This code may only be used under the BSD style license found at
32
- * http://polymer.github.io/LICENSE.txt
33
- * The complete set of authors may be found at
34
- * http://polymer.github.io/AUTHORS.txt
35
- * The complete set of contributors may be found at
36
- * http://polymer.github.io/CONTRIBUTORS.txt
37
- * Code distributed by Google as part of the polymer project is also
38
- * subject to an additional IP rights grant found at
39
- * http://polymer.github.io/PATENTS.txt
40
- */window.JSCompiler_renameProperty=function(t,e){return t};var A={toAttribute:function(t,e){switch(e){case Boolean:return t?"":null;case Object:case Array:return null==t?t:JSON.stringify(t)}return t},fromAttribute:function(t,e){switch(e){case Boolean:return null!==t;case Number:return null===t?null:Number(t);case Object:case Array:return JSON.parse(t)}return t}},T=function(t,e){return e!==t&&(e==e||t==t)},U={attribute:!0,type:String,converter:A,reflect:!1,hasChanged:T},N=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&x(t,e)}(s,t);var e,n,r,o,i,u,c,a=(e=s,n=E(),function(){var t,r=R(e);if(n){var o=R(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return j(this,t)});function s(){var t;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),(t=a.call(this))._updateState=0,t._instanceProperties=void 0,t._updatePromise=new Promise((function(e){return t._enableUpdatingResolver=e})),t._changedProperties=new Map,t._reflectingProperties=void 0,t.initialize(),t}return r=s,o=[{key:"initialize",value:function(){this._saveInstanceProperties(),this._requestUpdate()}},{key:"_saveInstanceProperties",value:function(){var t=this;this.constructor._classProperties.forEach((function(e,n){if(t.hasOwnProperty(n)){var r=t[n];delete t[n],t._instanceProperties||(t._instanceProperties=new Map),t._instanceProperties.set(n,r)}}))}},{key:"_applyInstanceProperties",value:function(){var t=this;this._instanceProperties.forEach((function(e,n){return t[n]=e})),this._instanceProperties=void 0}},{key:"connectedCallback",value:function(){this.enableUpdating()}},{key:"enableUpdating",value:function(){void 0!==this._enableUpdatingResolver&&(this._enableUpdatingResolver(),this._enableUpdatingResolver=void 0)}},{key:"disconnectedCallback",value:function(){}},{key:"attributeChangedCallback",value:function(t,e,n){e!==n&&this._attributeToProperty(t,n)}},{key:"_propertyToAttribute",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:U,r=this.constructor,o=r._attributeNameForProperty(t,n);if(void 0!==o){var i=r._propertyValueToAttribute(e,n);if(void 0===i)return;this._updateState=8|this._updateState,null==i?this.removeAttribute(o):this.setAttribute(o,i),this._updateState=-9&this._updateState}}},{key:"_attributeToProperty",value:function(t,e){if(!(8&this._updateState)){var n=this.constructor,r=n._attributeToPropertyMap.get(t);if(void 0!==r){var o=n.getPropertyOptions(r);this._updateState=16|this._updateState,this[r]=n._propertyValueFromAttribute(e,o),this._updateState=-17&this._updateState}}}},{key:"_requestUpdate",value:function(t,e){var n=!0;if(void 0!==t){var r=this.constructor,o=r.getPropertyOptions(t);r._valueHasChanged(this[t],e,o.hasChanged)?(this._changedProperties.has(t)||this._changedProperties.set(t,e),!0!==o.reflect||16&this._updateState||(void 0===this._reflectingProperties&&(this._reflectingProperties=new Map),this._reflectingProperties.set(t,o))):n=!1}!this._hasRequestedUpdate&&n&&(this._updatePromise=this._enqueueUpdate())}},{key:"requestUpdate",value:function(t,e){return this._requestUpdate(t,e),this.updateComplete}},{key:"_enqueueUpdate",value:(u=regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this._updateState=4|this._updateState,t.prev=1,t.next=4,this._updatePromise;case 4:t.next=8;break;case 6:t.prev=6,t.t0=t.catch(1);case 8:if(null==(e=this.performUpdate())){t.next=12;break}return t.next=12,e;case 12:return t.abrupt("return",!this._hasRequestedUpdate);case 13:case"end":return t.stop()}}),t,this,[[1,6]])})),c=function(){var t=this,e=arguments;return new Promise((function(n,r){var o=u.apply(t,e);function i(t){O(o,n,r,i,c,"next",t)}function c(t){O(o,n,r,i,c,"throw",t)}i(void 0)}))},function(){return c.apply(this,arguments)})},{key:"performUpdate",value:function(){this._instanceProperties&&this._applyInstanceProperties();var t=!1,e=this._changedProperties;try{(t=this.shouldUpdate(e))?this.update(e):this._markUpdated()}catch(e){throw t=!1,this._markUpdated(),e}t&&(1&this._updateState||(this._updateState=1|this._updateState,this.firstUpdated(e)),this.updated(e))}},{key:"_markUpdated",value:function(){this._changedProperties=new Map,this._updateState=-5&this._updateState}},{key:"_getUpdateComplete",value:function(){return this._updatePromise}},{key:"shouldUpdate",value:function(t){return!0}},{key:"update",value:function(t){var e=this;void 0!==this._reflectingProperties&&this._reflectingProperties.size>0&&(this._reflectingProperties.forEach((function(t,n){return e._propertyToAttribute(n,e[n],t)})),this._reflectingProperties=void 0),this._markUpdated()}},{key:"updated",value:function(t){}},{key:"firstUpdated",value:function(t){}},{key:"_hasRequestedUpdate",get:function(){return 4&this._updateState}},{key:"hasUpdated",get:function(){return 1&this._updateState}},{key:"updateComplete",get:function(){return this._getUpdateComplete()}}],i=[{key:"_ensureClassProperties",value:function(){var t=this;if(!this.hasOwnProperty(JSCompiler_renameProperty("_classProperties",this))){this._classProperties=new Map;var e=Object.getPrototypeOf(this)._classProperties;void 0!==e&&e.forEach((function(e,n){return t._classProperties.set(n,e)}))}}},{key:"createProperty",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:U;if(this._ensureClassProperties(),this._classProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){var n="symbol"===g(t)?Symbol():"__".concat(t),r=this.getPropertyDescriptor(t,n,e);void 0!==r&&Object.defineProperty(this.prototype,t,r)}}},{key:"getPropertyDescriptor",value:function(t,e,n){return{get:function(){return this[e]},set:function(n){var r=this[t];this[e]=n,this._requestUpdate(t,r)},configurable:!0,enumerable:!0}}},{key:"getPropertyOptions",value:function(t){return this._classProperties&&this._classProperties.get(t)||U}},{key:"finalize",value:function(){var t=Object.getPrototypeOf(this);if(t.hasOwnProperty("finalized")||t.finalize(),this.finalized=!0,this._ensureClassProperties(),this._attributeToPropertyMap=new Map,this.hasOwnProperty(JSCompiler_renameProperty("properties",this))){var e,n=this.properties,r=function(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=S(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},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,u=!0,c=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return u=t.done,t},e:function(t){c=!0,i=t},f:function(){try{u||null==n.return||n.return()}finally{if(c)throw i}}}}([].concat(w(Object.getOwnPropertyNames(n)),w("function"==typeof Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(n):[])));try{for(r.s();!(e=r.n()).done;){var o=e.value;this.createProperty(o,n[o])}}catch(t){r.e(t)}finally{r.f()}}}},{key:"_attributeNameForProperty",value:function(t,e){var n=e.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof t?t.toLowerCase():void 0}},{key:"_valueHasChanged",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:T;return n(t,e)}},{key:"_propertyValueFromAttribute",value:function(t,e){var n=e.type,r=e.converter||A,o="function"==typeof r?r:r.fromAttribute;return o?o(t,n):t}},{key:"_propertyValueToAttribute",value:function(t,e){if(void 0!==e.reflect){var n=e.type,r=e.converter;return(r&&r.toAttribute||A.toAttribute)(t,n)}}},{key:"observedAttributes",get:function(){var t=this;this.finalize();var e=[];return this._classProperties.forEach((function(n,r){var o=t._attributeNameForProperty(r,n);void 0!==o&&(t._attributeToPropertyMap.set(o,r),e.push(o))})),e}}],o&&P(r.prototype,o),i&&P(r,i),s}(k(HTMLElement));N.finalized=!0;
41
- /**
42
- * @license
43
- * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
44
- * This code may only be used under the BSD style license found at
45
- * http://polymer.github.io/LICENSE.txt
46
- * The complete set of authors may be found at
47
- * http://polymer.github.io/AUTHORS.txt
48
- * The complete set of contributors may be found at
49
- * http://polymer.github.io/CONTRIBUTORS.txt
50
- * Code distributed by Google as part of the polymer project is also
51
- * subject to an additional IP rights grant found at
52
- * http://polymer.github.io/PATENTS.txt
53
- */
54
- var M=function(t){return function(e){return"function"==typeof e?function(t,e){return window.customElements.define(t,e),e}(t,e):function(t,e){return{kind:e.kind,elements:e.elements,finisher:function(e){window.customElements.define(t,e)}}}(t,e)}};function I(t){return function(e,n){return void 0!==n?function(t,e,n){e.constructor.createProperty(n,t)}(t,e,n):function(t,e){return"method"===e.kind&&e.descriptor&&!("value"in e.descriptor)?Object.assign(Object.assign({},e),{finisher:function(n){n.createProperty(e.key,t)}}):{kind:"field",key:Symbol(),placement:"own",descriptor:{},initializer:function(){"function"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher:function(n){n.createProperty(e.key,t)}}}(t,e)}}function q(t){return function(e,n){var r={get:function(){return this.renderRoot.querySelector(t)},enumerable:!0,configurable:!0};return void 0!==n?z(r,e,n):F(r,e)}}var z=function(t,e,n){Object.defineProperty(e,n,t)},F=function(t,e){return{kind:"method",placement:"prototype",key:e.key,descriptor:t}};function D(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}
55
- /**
56
- @license
57
- Copyright (c) 2019 The Polymer Project Authors. All rights reserved.
58
- This code may only be used under the BSD style license found at
59
- http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
60
- http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
61
- found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
62
- part of the polymer project is also subject to an additional IP rights grant
63
- found at http://polymer.github.io/PATENTS.txt
64
- */
65
- var V="adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,J=Symbol(),$=function(){function t(e,n){if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),n!==J)throw new Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e}var e,n,r;return e=t,(n=[{key:"toString",value:function(){return this.cssText}},{key:"styleSheet",get:function(){return void 0===this._styleSheet&&(V?(this._styleSheet=new CSSStyleSheet,this._styleSheet.replaceSync(this.cssText)):this._styleSheet=null),this._styleSheet}}])&&D(e.prototype,n),r&&D(e,r),t}(),B=function(t){if(t instanceof $)return t.cssText;if("number"==typeof t)return t;throw new Error("Value passed to 'css' function must be a 'css' function result: ".concat(t,". Use 'unsafeCSS' to pass non-literal values, but\n take care to ensure page security."))},Y=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var o=n.reduce((function(e,n,r){return e+B(n)+t[r+1]}),t[0]);return new $(o,J)};function W(t){return(W="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function H(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function K(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function L(t,e,n){return(L="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Z(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function G(t,e){return(G=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Q(t){var e=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(t){return!1}}();return function(){var n,r=Z(t);if(e){var o=Z(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return X(this,n)}}function X(t,e){return!e||"object"!==W(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Z(t){return(Z=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}
66
- /**
67
- * @license
68
- * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
69
- * This code may only be used under the BSD style license found at
70
- * http://polymer.github.io/LICENSE.txt
71
- * The complete set of authors may be found at
72
- * http://polymer.github.io/AUTHORS.txt
73
- * The complete set of contributors may be found at
74
- * http://polymer.github.io/CONTRIBUTORS.txt
75
- * Code distributed by Google as part of the polymer project is also
76
- * subject to an additional IP rights grant found at
77
- * http://polymer.github.io/PATENTS.txt
78
- */(window.litElementVersions||(window.litElementVersions=[])).push("2.3.1");var tt={},et=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&G(t,e)}(i,t);var e,n,r,o=Q(i);function i(){return H(this,i),o.apply(this,arguments)}return e=i,r=[{key:"getStyles",value:function(){return this.styles}},{key:"_getUniqueStyles",value:function(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_styles",this))){var t=this.getStyles();if(void 0===t)this._styles=[];else if(Array.isArray(t)){var e=function t(e,n){return e.reduceRight((function(e,n){return Array.isArray(n)?t(n,e):(e.add(n),e)}),n)}(t,new Set),n=[];e.forEach((function(t){return n.unshift(t)})),this._styles=n}else this._styles=[t]}}}],(n=[{key:"initialize",value:function(){L(Z(i.prototype),"initialize",this).call(this),this.constructor._getUniqueStyles(),this.renderRoot=this.createRenderRoot(),window.ShadowRoot&&this.renderRoot instanceof window.ShadowRoot&&this.adoptStyles()}},{key:"createRenderRoot",value:function(){return this.attachShadow({mode:"open"})}},{key:"adoptStyles",value:function(){var t=this.constructor._styles;0!==t.length&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow?V?this.renderRoot.adoptedStyleSheets=t.map((function(t){return t.styleSheet})):this._needsShimAdoptedStyleSheets=!0:window.ShadyCSS.ScopingShim.prepareAdoptedCssText(t.map((function(t){return t.cssText})),this.localName))}},{key:"connectedCallback",value:function(){L(Z(i.prototype),"connectedCallback",this).call(this),this.hasUpdated&&void 0!==window.ShadyCSS&&window.ShadyCSS.styleElement(this)}},{key:"update",value:function(t){var e=this,n=this.render();L(Z(i.prototype),"update",this).call(this,t),n!==tt&&this.constructor.render(n,this.renderRoot,{scopeName:this.localName,eventContext:this}),this._needsShimAdoptedStyleSheets&&(this._needsShimAdoptedStyleSheets=!1,this.constructor._styles.forEach((function(t){var n=document.createElement("style");n.textContent=t.cssText,e.renderRoot.appendChild(n)})))}},{key:"render",value:function(){return tt}}])&&K(e.prototype,n),r&&K(e,r),i}(N);et.finalized=!0,et.render=function(t,e,n){if(!n||"object"!==p(n)||!n.scopeName)throw new Error("The `scopeName` option is required.");var o=n.scopeName,i=a.a.has(e),u=y&&11===e.nodeType&&!!e.host,c=u&&!v.has(o),s=c?document.createDocumentFragment():e;if(Object(a.b)(t,s,Object.assign({templateFactory:d(o)},n)),c){var f=a.a.get(s);a.a.delete(s);var h=f.value instanceof l.a?f.value.template:void 0;m(o,s,h),Object(r.b)(e,e.firstChild),e.appendChild(s),a.a.set(e,f)}!i&&u&&window.ShadyCSS.styleElement(e.host)}},323:function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return i}));var r=n(5),o=new r.a((function(t){return t.complete()}));function i(t){return t?function(t){return new r.a((function(e){return t.schedule((function(){return e.complete()}))}))}(t):o}},325:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(117),o=n(113);function i(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[t.length-1];return Object(o.a)(n)?(t.pop(),function(e){return Object(r.a)(t,e,n)}):function(e){return Object(r.a)(t,e)}}},326:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n(5),o=n(113),i=n(118),u=n(114);function c(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=Number.POSITIVE_INFINITY,c=void 0,a=t[t.length-1];return Object(o.a)(a)?(c=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof a&&(n=t.pop()),!c&&1===t.length&&t[0]instanceof r.a?t[0]:Object(i.a)(n)(Object(u.a)(t,c))}},327:function(t,e,n){"use strict";n.d(e,"a",(function(){return m}));var r=n(1),o=n(313),i=n(5),u=n(9),c=n(14);function a(){return function(t){return t.lift(new l(t))}}var s,l=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var n=this.connectable;n._refCount++;var r=new f(t,n),o=e.subscribe(r);return r.closed||(r.connection=n.connect()),o},t}(),f=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r.connection=null,r}return Object(r.e)(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},e}(u.a),p=function(t){function e(e,n){var r=t.call(this)||this;return r.source=e,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}return Object(r.e)(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new c.a).add(this.source.subscribe(new y(this.getSubject(),this))),t.closed&&(this._connection=null,t=c.a.EMPTY)),t},e.prototype.refCount=function(){return a()(this)},e}(i.a),h={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:(s=p.prototype)._subscribe},_isComplete:{value:s._isComplete,writable:!0},getSubject:{value:s.getSubject},connect:{value:s.connect},refCount:{value:s.refCount}},y=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return Object(r.e)(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(o.b),d=(function(){function t(t){this.connectable=t}t.prototype.call=function(t,e){var n=this.connectable;n._refCount++;var r=new d(t,n),o=e.subscribe(r);return r.closed||(r.connection=n.connect()),o}}(),function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return Object(r.e)(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},e}(u.a));var b=function(){function t(t,e){this.subjectFactory=t,this.selector=e}return t.prototype.call=function(t,e){var n=this.selector,r=this.subjectFactory(),o=n(r).subscribe(t);return o.add(e.subscribe(r)),o},t}();function v(){return new o.a}function m(){return function(t){return a()((e=v,function(t){var r;if(r="function"==typeof e?e:function(){return e},"function"==typeof n)return t.lift(new b(r,n));var o=Object.create(t,h);return o.source=t,o.subjectFactory=r,o})(t));var e,n}}},328:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(1),o=n(9);function i(t){return function(e){return e.lift(new u(t))}}var u=function(){function t(t){this.value=t}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.value))},t}(),c=function(t){function e(e,n){var r=t.call(this,e)||this;return r.value=n,r}return Object(r.e)(e,t),e.prototype._next=function(t){this.destination.next(this.value)},e}(o.a)},329:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(1),o=n(9);function i(){return function(t){return t.lift(new u)}}var u=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new c(t))},t}(),c=function(t){function e(e){var n=t.call(this,e)||this;return n.hasPrev=!1,n}return Object(r.e)(e,t),e.prototype._next=function(t){var e;this.hasPrev?e=[this.prev,t]:this.hasPrev=!0,this.prev=t,e&&this.destination.next(e)},e}(o.a)},335:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(1),o=n(9),i=n(14);function u(t){return function(e){return e.lift(new c(t))}}var c=function(){function t(t){this.callback=t}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.callback))},t}(),a=function(t){function e(e,n){var r=t.call(this,e)||this;return r.add(new i.a(n)),r}return Object(r.e)(e,t),e}(o.a)},349:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(1),o=n(9);function i(t,e){return function(n){return n.lift(new u(t,e))}}var u=function(){function t(t,e){this.compare=t,this.keySelector=e}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.compare,this.keySelector))},t}(),c=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.keySelector=r,o.hasKey=!1,"function"==typeof n&&(o.compare=n),o}return Object(r.e)(e,t),e.prototype.compare=function(t,e){return t===e},e.prototype._next=function(t){var e;try{var n=this.keySelector;e=n?n(t):t}catch(t){return this.destination.error(t)}var r=!1;if(this.hasKey)try{r=(0,this.compare)(this.key,e)}catch(t){return this.destination.error(t)}else this.hasKey=!0;r||(this.key=e,this.destination.next(t))},e}(o.a)},350:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(5),o=n(79),i=n(323);function u(t){return new r.a((function(e){var n;try{n=t()}catch(t){return void e.error(t)}return(n?Object(o.a)(n):i.a).subscribe(e)}))}},351:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(1),o=n(47),i=n(46);function u(t){return function(e){return e.lift(new c(t))}}var c=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var n=new a(t),r=Object(i.a)(n,this.notifier);return r&&!n.seenValue?(n.add(r),e.subscribe(n)):n},t}(),a=function(t){function e(e){var n=t.call(this,e)||this;return n.seenValue=!1,n}return Object(r.e)(e,t),e.prototype.notifyNext=function(t,e,n,r,o){this.seenValue=!0,this.complete()},e.prototype.notifyComplete=function(){},e}(o.a)},352:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(1),o=n(313),i=n(315),u=function(t){function e(e){var n=t.call(this)||this;return n._value=e,n}return Object(r.e)(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),e.prototype._subscribe=function(e){var n=t.prototype._subscribe.call(this,e);return n&&!n.closed&&e.next(this._value),n},e.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new i.a;return this._value},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)},e}(o.a)},357:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n(1),o=n(9),i=function(){function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t}(),u=n(323);function c(t){return function(e){return 0===t?u.a:e.lift(new a(t))}}var a=function(){function t(t){if(this.total=t,this.total<0)throw new i}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.total))},t}(),s=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.count=0,r}return Object(r.e)(e,t),e.prototype._next=function(t){var e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))},e}(o.a)}}]);
@@ -1 +0,0 @@
1
- {"version":3,"sources":["webpack:///../src/element.ts","webpack:///../src/index.ts","webpack:///../src/lib/css-tag.ts","webpack:///../src/lib/decorators.ts","webpack:///../src/lib/updating-element.ts","webpack:///src/lit-element.ts","webpack:///../src/lib/modify-template.ts","webpack:///../src/lib/shady-render.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AAEO,IAAM,YAAb;AAAA;;AAAA;;AAAA;AAAA;;AAAA;;;AACE,uBAAa,IAAI,4CAAJ,EAAb;AADF;AAgCC;;AAhC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AC,SAAD,EAAY,SAAS,CAAC,UAAtB,CAAX;AACA,aAAS,CAAC,WAAV,CAAsB,eAAtB;AACA,oDAAK,CAAC,GAAN,CAAU,SAAV,EAAqB,IAArB;AACD,GA7C6B,CA8C9B;AACA;AACA;AACA;AACA;AACA;;;AACA,MAAI,CAAC,WAAD,IAAgB,YAApB,EAAkC;AAChC,UAAM,CAAC,QAAP,CAAiB,YAAjB,CAA+B,SAAwB,CAAC,IAAxD;AACD;AACF,CA1DE,C","file":"LEGACY-vendors~drawer~push-state-hydejack-9.0.2.js","sourcesContent":["import { LitElement } from \"lit-element\";\nimport { Subject } from \"rxjs\";\n\nexport class RxLitElement extends LitElement {\n $connected = new Subject<boolean>();\n\n connectedCallback() { \n super.connectedCallback();\n this.$connected.next(true);\n }\n\n disconnectedCallback() { \n super.disconnectedCallback();\n this.$connected.next(false);\n }\n\n private firstUpdate: boolean;\n\n $: {};\n\n firstUpdated() {\n this.firstUpdate = true;\n }\n\n updated(changedProperties: Map<string, any>) {\n if (!this.firstUpdate) for (const prop of changedProperties.keys()) {\n if (prop in this.$) this.$[prop].next(this[prop]);\n }\n this.firstUpdate = false;\n }\n\n fireEvent<T>(name: string, eventInitDict?: CustomEventInit<T>) {\n this.dispatchEvent(new CustomEvent(name, eventInitDict));\n this.dispatchEvent(new CustomEvent(`${this.tagName.toLowerCase()}-${name}`, eventInitDict));\n }\n}\n\nexport function applyMixins<T>(derivedCtor: Constructor<T>, baseCtors: Constructor<any>[]) {\n baseCtors.forEach(baseCtor => {\n Object.getOwnPropertyNames(baseCtor.prototype).forEach(name => {\n derivedCtor.prototype[name] = baseCtor.prototype[name];\n });\n });\n return derivedCtor;\n}","export * from './creators';\nexport * from './element';\nexport * from './observers';\nexport * from './operators';\nexport * from './util';\n","/**\n@license\nCopyright (c) 2019 The Polymer Project Authors. All rights reserved.\nThis code may only be used under the BSD style license found at\nhttp://polymer.github.io/LICENSE.txt The complete set of authors may be found at\nhttp://polymer.github.io/AUTHORS.txt The complete set of contributors may be\nfound at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as\npart of the polymer project is also subject to an additional IP rights grant\nfound at http://polymer.github.io/PATENTS.txt\n*/\n\nexport const supportsAdoptingStyleSheets =\n ('adoptedStyleSheets' in Document.prototype) &&\n ('replace' in CSSStyleSheet.prototype);\n\nconst constructionToken = Symbol();\n\nexport class CSSResult {\n _styleSheet?: CSSStyleSheet|null;\n\n readonly cssText: string;\n\n constructor(cssText: string, safeToken: symbol) {\n if (safeToken !== constructionToken) {\n throw new Error(\n 'CSSResult is not constructable. Use `unsafeCSS` or `css` instead.');\n }\n this.cssText = cssText;\n }\n\n // Note, this is a getter so that it's lazy. In practice, this means\n // stylesheets are not created until the first element instance is made.\n get styleSheet(): CSSStyleSheet|null {\n if (this._styleSheet === undefined) {\n // Note, if `adoptedStyleSheets` is supported then we assume CSSStyleSheet\n // is constructable.\n if (supportsAdoptingStyleSheets) {\n this._styleSheet = new CSSStyleSheet();\n this._styleSheet.replaceSync(this.cssText);\n } else {\n this._styleSheet = null;\n }\n }\n return this._styleSheet;\n }\n\n toString(): string {\n return this.cssText;\n }\n}\n\n/**\n * Wrap a value for interpolation in a css tagged template literal.\n *\n * This is unsafe because untrusted CSS text can be used to phone home\n * or exfiltrate data to an attacker controlled site. Take care to only use\n * this with trusted input.\n */\nexport const unsafeCSS = (value: unknown) => {\n return new CSSResult(String(value), constructionToken);\n};\n\nconst textFromCSSResult = (value: CSSResult|number) => {\n if (value instanceof CSSResult) {\n return value.cssText;\n } else if (typeof value === 'number') {\n return value;\n } else {\n throw new Error(\n `Value passed to 'css' function must be a 'css' function result: ${\n value}. Use 'unsafeCSS' to pass non-literal values, but\n take care to ensure page security.`);\n }\n};\n\n/**\n * Template tag which which can be used with LitElement's `style` property to\n * set element styles. For security reasons, only literal string values may be\n * used. To incorporate non-literal values `unsafeCSS` may be used inside a\n * template string part.\n */\nexport const css =\n (strings: TemplateStringsArray, ...values: (CSSResult|number)[]) => {\n const cssText = values.reduce(\n (acc, v, idx) => acc + textFromCSSResult(v) + strings[idx + 1],\n strings[0]);\n return new CSSResult(cssText, constructionToken);\n };\n","/**\n * @license\n * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.\n * This code may only be used under the BSD style license found at\n * http://polymer.github.io/LICENSE.txt\n * The complete set of authors may be found at\n * http://polymer.github.io/AUTHORS.txt\n * The complete set of contributors may be found at\n * http://polymer.github.io/CONTRIBUTORS.txt\n * Code distributed by Google as part of the polymer project is also\n * subject to an additional IP rights grant found at\n * http://polymer.github.io/PATENTS.txt\n */\n\n/**\n * IMPORTANT: For compatibility with tsickle and the Closure JS compiler, all\n * property decorators (but not class decorators) in this file that have\n * an @ExportDecoratedItems annotation must be defined as a regular function,\n * not an arrow function.\n */\n\nimport {LitElement} from '../lit-element.js';\n\nimport {PropertyDeclaration, UpdatingElement} from './updating-element.js';\n\nexport type Constructor<T> = {\n // tslint:disable-next-line:no-any\n new (...args: any[]): T\n};\n\n// From the TC39 Decorators proposal\ninterface ClassDescriptor {\n kind: 'class';\n elements: ClassElement[];\n finisher?: <T>(clazz: Constructor<T>) => undefined | Constructor<T>;\n}\n\n// From the TC39 Decorators proposal\ninterface ClassElement {\n kind: 'field'|'method';\n key: PropertyKey;\n placement: 'static'|'prototype'|'own';\n initializer?: Function;\n extras?: ClassElement[];\n finisher?: <T>(clazz: Constructor<T>) => undefined | Constructor<T>;\n descriptor?: PropertyDescriptor;\n}\n\nconst legacyCustomElement =\n (tagName: string, clazz: Constructor<HTMLElement>) => {\n window.customElements.define(tagName, clazz);\n // Cast as any because TS doesn't recognize the return type as being a\n // subtype of the decorated class when clazz is typed as\n // `Constructor<HTMLElement>` for some reason.\n // `Constructor<HTMLElement>` is helpful to make sure the decorator is\n // applied to elements however.\n // tslint:disable-next-line:no-any\n return clazz as any;\n };\n\nconst standardCustomElement =\n (tagName: string, descriptor: ClassDescriptor) => {\n const {kind, elements} = descriptor;\n return {\n kind,\n elements,\n // This callback is called once the class is otherwise fully defined\n finisher(clazz: Constructor<HTMLElement>) {\n window.customElements.define(tagName, clazz);\n }\n };\n };\n\n/**\n * Class decorator factory that defines the decorated class as a custom element.\n *\n * ```\n * @customElement('my-element')\n * class MyElement {\n * render() {\n * return html``;\n * }\n * }\n * ```\n *\n * @param tagName The name of the custom element to define.\n */\nexport const customElement = (tagName: string) =>\n (classOrDescriptor: Constructor<HTMLElement>|ClassDescriptor) =>\n (typeof classOrDescriptor === 'function') ?\n legacyCustomElement(tagName, classOrDescriptor) :\n standardCustomElement(tagName, classOrDescriptor);\n\nconst standardProperty =\n (options: PropertyDeclaration, element: ClassElement) => {\n // When decorating an accessor, pass it through and add property metadata.\n // Note, the `hasOwnProperty` check in `createProperty` ensures we don't\n // stomp over the user's accessor.\n if (element.kind === 'method' && element.descriptor &&\n !('value' in element.descriptor)) {\n return {\n ...element,\n finisher(clazz: typeof UpdatingElement) {\n clazz.createProperty(element.key, options);\n }\n };\n } else {\n // createProperty() takes care of defining the property, but we still\n // must return some kind of descriptor, so return a descriptor for an\n // unused prototype field. The finisher calls createProperty().\n return {\n kind: 'field',\n key: Symbol(),\n placement: 'own',\n descriptor: {},\n // When @babel/plugin-proposal-decorators implements initializers,\n // do this instead of the initializer below. See:\n // https://github.com/babel/babel/issues/9260 extras: [\n // {\n // kind: 'initializer',\n // placement: 'own',\n // initializer: descriptor.initializer,\n // }\n // ],\n initializer(this: {[key: string]: unknown}) {\n if (typeof element.initializer === 'function') {\n this[element.key as string] = element.initializer.call(this);\n }\n },\n finisher(clazz: typeof UpdatingElement) {\n clazz.createProperty(element.key, options);\n }\n };\n }\n };\n\nconst legacyProperty =\n (options: PropertyDeclaration, proto: Object, name: PropertyKey) => {\n (proto.constructor as typeof UpdatingElement)\n .createProperty(name, options);\n };\n\n/**\n * A property decorator which creates a LitElement property which reflects a\n * corresponding attribute value. A `PropertyDeclaration` may optionally be\n * supplied to configure property features.\n *\n * This decorator should only be used for public fields. Private or protected\n * fields should use the internalProperty decorator.\n *\n * @example\n *\n * class MyElement {\n * @property({ type: Boolean })\n * clicked = false;\n * }\n *\n * @ExportDecoratedItems\n */\nexport function property(options?: PropertyDeclaration) {\n // tslint:disable-next-line:no-any decorator\n return (protoOrDescriptor: Object|ClassElement, name?: PropertyKey): any =>\n (name !== undefined) ?\n legacyProperty(options!, protoOrDescriptor as Object, name) :\n standardProperty(options!, protoOrDescriptor as ClassElement);\n}\n\nexport interface InternalPropertyDeclaration<Type = unknown> {\n /**\n * A function that indicates if a property should be considered changed when\n * it is set. The function should take the `newValue` and `oldValue` and\n * return `true` if an update should be requested.\n */\n hasChanged?(value: Type, oldValue: Type): boolean;\n}\n\n/**\n * Declares a private or protected property that still triggers updates to the\n * element when it changes.\n *\n * Properties declared this way must not be used from HTML or HTML templating\n * systems, they're solely for properties internal to the element. These\n * properties may be renamed by optimization tools like closure compiler.\n */\nexport function internalProperty(options?: InternalPropertyDeclaration) {\n return property({attribute: false, hasChanged: options?.hasChanged});\n}\n\n/**\n * A property decorator that converts a class property into a getter that\n * executes a querySelector on the element's renderRoot.\n *\n * @param selector A DOMString containing one or more selectors to match.\n *\n * See: https://developer.mozilla.org/en-US/docs/Web/API/Document/querySelector\n *\n * @example\n *\n * class MyElement {\n * @query('#first')\n * first;\n *\n * render() {\n * return html`\n * <div id=\"first\"></div>\n * <div id=\"second\"></div>\n * `;\n * }\n * }\n *\n */\nexport function query(selector: string) {\n return (protoOrDescriptor: Object|ClassElement,\n // tslint:disable-next-line:no-any decorator\n name?: PropertyKey): any => {\n const descriptor = {\n get(this: LitElement) {\n return this.renderRoot.querySelector(selector);\n },\n enumerable: true,\n configurable: true,\n };\n return (name !== undefined) ?\n legacyQuery(descriptor, protoOrDescriptor as Object, name) :\n standardQuery(descriptor, protoOrDescriptor as ClassElement);\n };\n}\n\n// Note, in the future, we may extend this decorator to support the use case\n// where the queried element may need to do work to become ready to interact\n// with (e.g. load some implementation code). If so, we might elect to\n// add a second argument defining a function that can be run to make the\n// queried element loaded/updated/ready.\n/**\n * A property decorator that converts a class property into a getter that\n * returns a promise that resolves to the result of a querySelector on the\n * element's renderRoot done after the element's `updateComplete` promise\n * resolves. When the queried property may change with element state, this\n * decorator can be used instead of requiring users to await the\n * `updateComplete` before accessing the property.\n *\n * @param selector A DOMString containing one or more selectors to match.\n *\n * See: https://developer.mozilla.org/en-US/docs/Web/API/Document/querySelector\n *\n * @example\n *\n * class MyElement {\n * @queryAsync('#first')\n * first;\n *\n * render() {\n * return html`\n * <div id=\"first\"></div>\n * <div id=\"second\"></div>\n * `;\n * }\n * }\n *\n * // external usage\n * async doSomethingWithFirst() {\n * (await aMyElement.first).doSomething();\n * }\n */\nexport function queryAsync(selector: string) {\n return (protoOrDescriptor: Object|ClassElement,\n // tslint:disable-next-line:no-any decorator\n name?: PropertyKey): any => {\n const descriptor = {\n async get(this: LitElement) {\n await this.updateComplete;\n return this.renderRoot.querySelector(selector);\n },\n enumerable: true,\n configurable: true,\n };\n return (name !== undefined) ?\n legacyQuery(descriptor, protoOrDescriptor as Object, name) :\n standardQuery(descriptor, protoOrDescriptor as ClassElement);\n };\n}\n\n/**\n * A property decorator that converts a class property into a getter\n * that executes a querySelectorAll on the element's renderRoot.\n *\n * @param selector A DOMString containing one or more selectors to match.\n *\n * See:\n * https://developer.mozilla.org/en-US/docs/Web/API/Document/querySelectorAll\n *\n * @example\n *\n * class MyElement {\n * @queryAll('div')\n * divs;\n *\n * render() {\n * return html`\n * <div id=\"first\"></div>\n * <div id=\"second\"></div>\n * `;\n * }\n * }\n */\nexport function queryAll(selector: string) {\n return (protoOrDescriptor: Object|ClassElement,\n // tslint:disable-next-line:no-any decorator\n name?: PropertyKey): any => {\n const descriptor = {\n get(this: LitElement) {\n return this.renderRoot.querySelectorAll(selector);\n },\n enumerable: true,\n configurable: true,\n };\n return (name !== undefined) ?\n legacyQuery(descriptor, protoOrDescriptor as Object, name) :\n standardQuery(descriptor, protoOrDescriptor as ClassElement);\n };\n}\n\nconst legacyQuery =\n (descriptor: PropertyDescriptor, proto: Object, name: PropertyKey) => {\n Object.defineProperty(proto, name, descriptor);\n };\n\nconst standardQuery = (descriptor: PropertyDescriptor, element: ClassElement) =>\n ({\n kind: 'method',\n placement: 'prototype',\n key: element.key,\n descriptor,\n });\n\nconst standardEventOptions =\n (options: AddEventListenerOptions, element: ClassElement) => {\n return {\n ...element,\n finisher(clazz: typeof UpdatingElement) {\n Object.assign(\n clazz.prototype[element.key as keyof UpdatingElement], options);\n }\n };\n };\n\nconst legacyEventOptions =\n // tslint:disable-next-line:no-any legacy decorator\n (options: AddEventListenerOptions, proto: any, name: PropertyKey) => {\n Object.assign(proto[name], options);\n };\n\n/**\n * Adds event listener options to a method used as an event listener in a\n * lit-html template.\n *\n * @param options An object that specifies event listener options as accepted by\n * `EventTarget#addEventListener` and `EventTarget#removeEventListener`.\n *\n * Current browsers support the `capture`, `passive`, and `once` options. See:\n * https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener#Parameters\n *\n * @example\n *\n * class MyElement {\n * clicked = false;\n *\n * render() {\n * return html`\n * <div @click=${this._onClick}`>\n * <button></button>\n * </div>\n * `;\n * }\n *\n * @eventOptions({capture: true})\n * _onClick(e) {\n * this.clicked = true;\n * }\n * }\n */\nexport function eventOptions(options: AddEventListenerOptions) {\n // Return value typed as any to prevent TypeScript from complaining that\n // standard decorator function signature does not match TypeScript decorator\n // signature\n // TODO(kschaaf): unclear why it was only failing on this decorator and not\n // the others\n return ((protoOrDescriptor: Object|ClassElement, name?: string) =>\n (name !== undefined) ?\n legacyEventOptions(options, protoOrDescriptor as Object, name) :\n standardEventOptions(\n options, protoOrDescriptor as ClassElement)) as\n // tslint:disable-next-line:no-any decorator\n any;\n}\n\n/**\n * A property decorator that converts a class property into a getter that\n * returns the `assignedNodes` of the given named `slot`. Note, the type of\n * this property should be annotated as `NodeListOf<HTMLElement>`.\n *\n */\nexport function queryAssignedNodes(\n slotName: string = '', flatten: boolean = false) {\n return (protoOrDescriptor: Object|ClassElement,\n // tslint:disable-next-line:no-any decorator\n name?: PropertyKey): any => {\n const descriptor = {\n get(this: LitElement) {\n const selector = `slot${slotName ? `[name=${slotName}]` : ''}`;\n const slot = this.renderRoot.querySelector(selector);\n return slot && (slot as HTMLSlotElement).assignedNodes({flatten});\n },\n enumerable: true,\n configurable: true,\n };\n return (name !== undefined) ?\n legacyQuery(descriptor, protoOrDescriptor as Object, name) :\n standardQuery(descriptor, protoOrDescriptor as ClassElement);\n };\n}\n","/**\n * @license\n * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.\n * This code may only be used under the BSD style license found at\n * http://polymer.github.io/LICENSE.txt\n * The complete set of authors may be found at\n * http://polymer.github.io/AUTHORS.txt\n * The complete set of contributors may be found at\n * http://polymer.github.io/CONTRIBUTORS.txt\n * Code distributed by Google as part of the polymer project is also\n * subject to an additional IP rights grant found at\n * http://polymer.github.io/PATENTS.txt\n */\n\n/**\n * When using Closure Compiler, JSCompiler_renameProperty(property, object) is\n * replaced at compile time by the munged name for object[property]. We cannot\n * alias this function, so we have to use a small shim that has the same\n * behavior when not compiling.\n */\nwindow.JSCompiler_renameProperty =\n <P extends PropertyKey>(prop: P, _obj: unknown): P => prop;\n\ndeclare global {\n var JSCompiler_renameProperty: <P extends PropertyKey>(\n prop: P, _obj: unknown) => P;\n\n interface Window {\n JSCompiler_renameProperty: typeof JSCompiler_renameProperty;\n }\n}\n\n/**\n * Converts property values to and from attribute values.\n */\nexport interface ComplexAttributeConverter<Type = unknown, TypeHint = unknown> {\n /**\n * Function called to convert an attribute value to a property\n * value.\n */\n fromAttribute?(value: string|null, type?: TypeHint): Type;\n\n /**\n * Function called to convert a property value to an attribute\n * value.\n *\n * It returns unknown instead of string, to be compatible with\n * https://github.com/WICG/trusted-types (and similar efforts).\n */\n toAttribute?(value: Type, type?: TypeHint): unknown;\n}\n\ntype AttributeConverter<Type = unknown, TypeHint = unknown> =\n ComplexAttributeConverter<Type>|\n ((value: string|null, type?: TypeHint) => Type);\n\n/**\n * Defines options for a property accessor.\n */\nexport interface PropertyDeclaration<Type = unknown, TypeHint = unknown> {\n /**\n * Indicates how and whether the property becomes an observed attribute.\n * If the value is `false`, the property is not added to `observedAttributes`.\n * If true or absent, the lowercased property name is observed (e.g. `fooBar`\n * becomes `foobar`). If a string, the string value is observed (e.g\n * `attribute: 'foo-bar'`).\n */\n readonly attribute?: boolean|string;\n\n /**\n * Indicates the type of the property. This is used only as a hint for the\n * `converter` to determine how to convert the attribute\n * to/from a property.\n */\n readonly type?: TypeHint;\n\n /**\n * Indicates how to convert the attribute to/from a property. If this value\n * is a function, it is used to convert the attribute value a the property\n * value. If it's an object, it can have keys for `fromAttribute` and\n * `toAttribute`. If no `toAttribute` function is provided and\n * `reflect` is set to `true`, the property value is set directly to the\n * attribute. A default `converter` is used if none is provided; it supports\n * `Boolean`, `String`, `Number`, `Object`, and `Array`. Note,\n * when a property changes and the converter is used to update the attribute,\n * the property is never updated again as a result of the attribute changing,\n * and vice versa.\n */\n readonly converter?: AttributeConverter<Type, TypeHint>;\n\n /**\n * Indicates if the property should reflect to an attribute.\n * If `true`, when the property is set, the attribute is set using the\n * attribute name determined according to the rules for the `attribute`\n * property option and the value of the property converted using the rules\n * from the `converter` property option.\n */\n readonly reflect?: boolean;\n\n /**\n * A function that indicates if a property should be considered changed when\n * it is set. The function should take the `newValue` and `oldValue` and\n * return `true` if an update should be requested.\n */\n hasChanged?(value: Type, oldValue: Type): boolean;\n\n /**\n * Indicates whether an accessor will be created for this property. By\n * default, an accessor will be generated for this property that requests an\n * update when set. If this flag is `true`, no accessor will be created, and\n * it will be the user's responsibility to call\n * `this.requestUpdate(propertyName, oldValue)` to request an update when\n * the property changes.\n */\n readonly noAccessor?: boolean;\n}\n\n/**\n * Map of properties to PropertyDeclaration options. For each property an\n * accessor is made, and the property is processed according to the\n * PropertyDeclaration options.\n */\nexport interface PropertyDeclarations {\n readonly [key: string]: PropertyDeclaration;\n}\n\ntype PropertyDeclarationMap = Map<PropertyKey, PropertyDeclaration>;\n\ntype AttributeMap = Map<string, PropertyKey>;\n\n/**\n * Map of changed properties with old values. Takes an optional generic\n * interface corresponding to the declared element properties.\n */\n// tslint:disable-next-line:no-any\nexport type PropertyValues<T = any> =\n keyof T extends PropertyKey ? Map<keyof T, unknown>: never;\n\nexport const defaultConverter: ComplexAttributeConverter = {\n\n toAttribute(value: unknown, type?: unknown): unknown {\n switch (type) {\n case Boolean:\n return value ? '' : null;\n case Object:\n case Array:\n // if the value is `null` or `undefined` pass this through\n // to allow removing/no change behavior.\n return value == null ? value : JSON.stringify(value);\n }\n return value;\n },\n\n fromAttribute(value: string|null, type?: unknown) {\n switch (type) {\n case Boolean:\n return value !== null;\n case Number:\n return value === null ? null : Number(value);\n case Object:\n case Array:\n return JSON.parse(value!);\n }\n return value;\n }\n\n};\n\nexport interface HasChanged {\n (value: unknown, old: unknown): boolean;\n}\n\n/**\n * Change function that returns true if `value` is different from `oldValue`.\n * This method is used as the default for a property's `hasChanged` function.\n */\nexport const notEqual: HasChanged = (value: unknown, old: unknown): boolean => {\n // This ensures (old==NaN, value==NaN) always returns false\n return old !== value && (old === old || value === value);\n};\n\nconst defaultPropertyDeclaration: PropertyDeclaration = {\n attribute: true,\n type: String,\n converter: defaultConverter,\n reflect: false,\n hasChanged: notEqual\n};\n\nconst STATE_HAS_UPDATED = 1;\nconst STATE_UPDATE_REQUESTED = 1 << 2;\nconst STATE_IS_REFLECTING_TO_ATTRIBUTE = 1 << 3;\nconst STATE_IS_REFLECTING_TO_PROPERTY = 1 << 4;\ntype UpdateState = typeof STATE_HAS_UPDATED|typeof STATE_UPDATE_REQUESTED|\n typeof STATE_IS_REFLECTING_TO_ATTRIBUTE|\n typeof STATE_IS_REFLECTING_TO_PROPERTY;\n\n/**\n * The Closure JS Compiler doesn't currently have good support for static\n * property semantics where \"this\" is dynamic (e.g.\n * https://github.com/google/closure-compiler/issues/3177 and others) so we use\n * this hack to bypass any rewriting by the compiler.\n */\nconst finalized = 'finalized';\n\n/**\n * Base element class which manages element properties and attributes. When\n * properties change, the `update` method is asynchronously called. This method\n * should be supplied by subclassers to render updates as desired.\n */\nexport abstract class UpdatingElement extends HTMLElement {\n /*\n * Due to closure compiler ES6 compilation bugs, @nocollapse is required on\n * all static methods and properties with initializers. Reference:\n * - https://github.com/google/closure-compiler/issues/1776\n */\n\n /**\n * Maps attribute names to properties; for example `foobar` attribute to\n * `fooBar` property. Created lazily on user subclasses when finalizing the\n * class.\n */\n private static _attributeToPropertyMap: AttributeMap;\n\n /**\n * Marks class as having finished creating properties.\n */\n protected static[finalized] = true;\n\n /**\n * Memoized list of all class properties, including any superclass properties.\n * Created lazily on user subclasses when finalizing the class.\n */\n private static _classProperties?: PropertyDeclarationMap;\n\n /**\n * User-supplied object that maps property names to `PropertyDeclaration`\n * objects containing options for configuring the property.\n */\n static properties: PropertyDeclarations;\n\n /**\n * Returns a list of attributes corresponding to the registered properties.\n * @nocollapse\n */\n static get observedAttributes() {\n // note: piggy backing on this to ensure we're finalized.\n this.finalize();\n const attributes: string[] = [];\n // Use forEach so this works even if for/of loops are compiled to for loops\n // expecting arrays\n this._classProperties!.forEach((v, p) => {\n const attr = this._attributeNameForProperty(p, v);\n if (attr !== undefined) {\n this._attributeToPropertyMap.set(attr, p);\n attributes.push(attr);\n }\n });\n return attributes;\n }\n\n /**\n * Ensures the private `_classProperties` property metadata is created.\n * In addition to `finalize` this is also called in `createProperty` to\n * ensure the `@property` decorator can add property metadata.\n */\n /** @nocollapse */\n private static _ensureClassProperties() {\n // ensure private storage for property declarations.\n if (!this.hasOwnProperty(\n JSCompiler_renameProperty('_classProperties', this))) {\n this._classProperties = new Map();\n // NOTE: Workaround IE11 not supporting Map constructor argument.\n const superProperties: PropertyDeclarationMap =\n Object.getPrototypeOf(this)._classProperties;\n if (superProperties !== undefined) {\n superProperties.forEach(\n (v: PropertyDeclaration, k: PropertyKey) =>\n this._classProperties!.set(k, v));\n }\n }\n }\n\n /**\n * Creates a property accessor on the element prototype if one does not exist\n * and stores a PropertyDeclaration for the property with the given options.\n * The property setter calls the property's `hasChanged` property option\n * or uses a strict identity check to determine whether or not to request\n * an update.\n *\n * This method may be overridden to customize properties; however,\n * when doing so, it's important to call `super.createProperty` to ensure\n * the property is setup correctly. This method calls\n * `getPropertyDescriptor` internally to get a descriptor to install.\n * To customize what properties do when they are get or set, override\n * `getPropertyDescriptor`. To customize the options for a property,\n * implement `createProperty` like this:\n *\n * static createProperty(name, options) {\n * options = Object.assign(options, {myOption: true});\n * super.createProperty(name, options);\n * }\n *\n * @nocollapse\n */\n static createProperty(\n name: PropertyKey,\n options: PropertyDeclaration = defaultPropertyDeclaration) {\n // Note, since this can be called by the `@property` decorator which\n // is called before `finalize`, we ensure storage exists for property\n // metadata.\n this._ensureClassProperties();\n this._classProperties!.set(name, options);\n // Do not generate an accessor if the prototype already has one, since\n // it would be lost otherwise and that would never be the user's intention;\n // Instead, we expect users to call `requestUpdate` themselves from\n // user-defined accessors. Note that if the super has an accessor we will\n // still overwrite it\n if (options.noAccessor || this.prototype.hasOwnProperty(name)) {\n return;\n }\n const key = typeof name === 'symbol' ? Symbol() : `__${name}`;\n const descriptor = this.getPropertyDescriptor(name, key, options);\n if (descriptor !== undefined) {\n Object.defineProperty(this.prototype, name, descriptor);\n }\n }\n\n /**\n * Returns a property descriptor to be defined on the given named property.\n * If no descriptor is returned, the property will not become an accessor.\n * For example,\n *\n * class MyElement extends LitElement {\n * static getPropertyDescriptor(name, key, options) {\n * const defaultDescriptor =\n * super.getPropertyDescriptor(name, key, options);\n * const setter = defaultDescriptor.set;\n * return {\n * get: defaultDescriptor.get,\n * set(value) {\n * setter.call(this, value);\n * // custom action.\n * },\n * configurable: true,\n * enumerable: true\n * }\n * }\n * }\n *\n * @nocollapse\n */\n protected static getPropertyDescriptor(\n name: PropertyKey, key: string|symbol, _options: PropertyDeclaration) {\n return {\n // tslint:disable-next-line:no-any no symbol in index\n get(): any {\n return (this as {[key: string]: unknown})[key as string];\n },\n set(this: UpdatingElement, value: unknown) {\n const oldValue =\n (this as {} as {[key: string]: unknown})[name as string];\n (this as {} as {[key: string]: unknown})[key as string] = value;\n (this as unknown as UpdatingElement)._requestUpdate(name, oldValue);\n },\n configurable: true,\n enumerable: true\n };\n }\n\n /**\n * Returns the property options associated with the given property.\n * These options are defined with a PropertyDeclaration via the `properties`\n * object or the `@property` decorator and are registered in\n * `createProperty(...)`.\n *\n * Note, this method should be considered \"final\" and not overridden. To\n * customize the options for a given property, override `createProperty`.\n *\n * @nocollapse\n * @final\n */\n protected static getPropertyOptions(name: PropertyKey) {\n return this._classProperties && this._classProperties.get(name) ||\n defaultPropertyDeclaration;\n }\n\n /**\n * Creates property accessors for registered properties and ensures\n * any superclasses are also finalized.\n * @nocollapse\n */\n protected static finalize() {\n // finalize any superclasses\n const superCtor = Object.getPrototypeOf(this);\n if (!superCtor.hasOwnProperty(finalized)) {\n superCtor.finalize();\n }\n this[finalized] = true;\n this._ensureClassProperties();\n // initialize Map populated in observedAttributes\n this._attributeToPropertyMap = new Map();\n // make any properties\n // Note, only process \"own\" properties since this element will inherit\n // any properties defined on the superClass, and finalization ensures\n // the entire prototype chain is finalized.\n if (this.hasOwnProperty(JSCompiler_renameProperty('properties', this))) {\n const props = this.properties;\n // support symbols in properties (IE11 does not support this)\n const propKeys = [\n ...Object.getOwnPropertyNames(props),\n ...(typeof Object.getOwnPropertySymbols === 'function') ?\n Object.getOwnPropertySymbols(props) :\n []\n ];\n // This for/of is ok because propKeys is an array\n for (const p of propKeys) {\n // note, use of `any` is due to TypeSript lack of support for symbol in\n // index types\n // tslint:disable-next-line:no-any no symbol in index\n this.createProperty(p, (props as any)[p]);\n }\n }\n }\n\n /**\n * Returns the property name for the given attribute `name`.\n * @nocollapse\n */\n private static _attributeNameForProperty(\n name: PropertyKey, options: PropertyDeclaration) {\n const attribute = options.attribute;\n return attribute === false ?\n undefined :\n (typeof attribute === 'string' ?\n attribute :\n (typeof name === 'string' ? name.toLowerCase() : undefined));\n }\n\n /**\n * Returns true if a property should request an update.\n * Called when a property value is set and uses the `hasChanged`\n * option for the property if present or a strict identity check.\n * @nocollapse\n */\n private static _valueHasChanged(\n value: unknown, old: unknown, hasChanged: HasChanged = notEqual) {\n return hasChanged(value, old);\n }\n\n /**\n * Returns the property value for the given attribute value.\n * Called via the `attributeChangedCallback` and uses the property's\n * `converter` or `converter.fromAttribute` property option.\n * @nocollapse\n */\n private static _propertyValueFromAttribute(\n value: string|null, options: PropertyDeclaration) {\n const type = options.type;\n const converter = options.converter || defaultConverter;\n const fromAttribute =\n (typeof converter === 'function' ? converter : converter.fromAttribute);\n return fromAttribute ? fromAttribute(value, type) : value;\n }\n\n /**\n * Returns the attribute value for the given property value. If this\n * returns undefined, the property will *not* be reflected to an attribute.\n * If this returns null, the attribute will be removed, otherwise the\n * attribute will be set to the value.\n * This uses the property's `reflect` and `type.toAttribute` property options.\n * @nocollapse\n */\n private static _propertyValueToAttribute(\n value: unknown, options: PropertyDeclaration) {\n if (options.reflect === undefined) {\n return;\n }\n const type = options.type;\n const converter = options.converter;\n const toAttribute =\n converter && (converter as ComplexAttributeConverter).toAttribute ||\n defaultConverter.toAttribute;\n return toAttribute!(value, type);\n }\n\n private _updateState: UpdateState = 0;\n private _instanceProperties: PropertyValues|undefined = undefined;\n // Initialize to an unresolved Promise so we can make sure the element has\n // connected before first update.\n private _updatePromise =\n new Promise((res) => this._enableUpdatingResolver = res);\n private _enableUpdatingResolver: (() => void)|undefined;\n\n /**\n * Map with keys for any properties that have changed since the last\n * update cycle with previous values.\n */\n private _changedProperties: PropertyValues = new Map();\n\n /**\n * Map with keys of properties that should be reflected when updated.\n */\n private _reflectingProperties: Map<PropertyKey, PropertyDeclaration>|\n undefined = undefined;\n\n constructor() {\n super();\n this.initialize();\n }\n\n /**\n * Performs element initialization. By default captures any pre-set values for\n * registered properties.\n */\n protected initialize() {\n this._saveInstanceProperties();\n // ensures first update will be caught by an early access of\n // `updateComplete`\n this._requestUpdate();\n }\n\n /**\n * Fixes any properties set on the instance before upgrade time.\n * Otherwise these would shadow the accessor and break these properties.\n * The properties are stored in a Map which is played back after the\n * constructor runs. Note, on very old versions of Safari (<=9) or Chrome\n * (<=41), properties created for native platform properties like (`id` or\n * `name`) may not have default values set in the element constructor. On\n * these browsers native properties appear on instances and therefore their\n * default value will overwrite any element default (e.g. if the element sets\n * this.id = 'id' in the constructor, the 'id' will become '' since this is\n * the native platform default).\n */\n private _saveInstanceProperties() {\n // Use forEach so this works even if for/of loops are compiled to for loops\n // expecting arrays\n (this.constructor as typeof UpdatingElement)\n ._classProperties!.forEach((_v, p) => {\n if (this.hasOwnProperty(p)) {\n const value = this[p as keyof this];\n delete this[p as keyof this];\n if (!this._instanceProperties) {\n this._instanceProperties = new Map();\n }\n this._instanceProperties.set(p, value);\n }\n });\n }\n\n /**\n * Applies previously saved instance properties.\n */\n private _applyInstanceProperties() {\n // Use forEach so this works even if for/of loops are compiled to for loops\n // expecting arrays\n // tslint:disable-next-line:no-any\n this._instanceProperties!.forEach((v, p) => (this as any)[p] = v);\n this._instanceProperties = undefined;\n }\n\n connectedCallback() {\n // Ensure first connection completes an update. Updates cannot complete\n // before connection.\n this.enableUpdating();\n }\n\n protected enableUpdating() {\n if (this._enableUpdatingResolver !== undefined) {\n this._enableUpdatingResolver();\n this._enableUpdatingResolver = undefined;\n }\n }\n\n /**\n * Allows for `super.disconnectedCallback()` in extensions while\n * reserving the possibility of making non-breaking feature additions\n * when disconnecting at some point in the future.\n */\n disconnectedCallback() {\n }\n\n /**\n * Synchronizes property values when attributes change.\n */\n attributeChangedCallback(name: string, old: string|null, value: string|null) {\n if (old !== value) {\n this._attributeToProperty(name, value);\n }\n }\n\n private _propertyToAttribute(\n name: PropertyKey, value: unknown,\n options: PropertyDeclaration = defaultPropertyDeclaration) {\n const ctor = (this.constructor as typeof UpdatingElement);\n const attr = ctor._attributeNameForProperty(name, options);\n if (attr !== undefined) {\n const attrValue = ctor._propertyValueToAttribute(value, options);\n // an undefined value does not change the attribute.\n if (attrValue === undefined) {\n return;\n }\n // Track if the property is being reflected to avoid\n // setting the property again via `attributeChangedCallback`. Note:\n // 1. this takes advantage of the fact that the callback is synchronous.\n // 2. will behave incorrectly if multiple attributes are in the reaction\n // stack at time of calling. However, since we process attributes\n // in `update` this should not be possible (or an extreme corner case\n // that we'd like to discover).\n // mark state reflecting\n this._updateState = this._updateState | STATE_IS_REFLECTING_TO_ATTRIBUTE;\n if (attrValue == null) {\n this.removeAttribute(attr);\n } else {\n this.setAttribute(attr, attrValue as string);\n }\n // mark state not reflecting\n this._updateState = this._updateState & ~STATE_IS_REFLECTING_TO_ATTRIBUTE;\n }\n }\n\n private _attributeToProperty(name: string, value: string|null) {\n // Use tracking info to avoid deserializing attribute value if it was\n // just set from a property setter.\n if (this._updateState & STATE_IS_REFLECTING_TO_ATTRIBUTE) {\n return;\n }\n const ctor = (this.constructor as typeof UpdatingElement);\n // Note, hint this as an `AttributeMap` so closure clearly understands\n // the type; it has issues with tracking types through statics\n // tslint:disable-next-line:no-unnecessary-type-assertion\n const propName = (ctor._attributeToPropertyMap as AttributeMap).get(name);\n if (propName !== undefined) {\n const options = ctor.getPropertyOptions(propName);\n // mark state reflecting\n this._updateState = this._updateState | STATE_IS_REFLECTING_TO_PROPERTY;\n this[propName as keyof this] =\n // tslint:disable-next-line:no-any\n ctor._propertyValueFromAttribute(value, options) as any;\n // mark state not reflecting\n this._updateState = this._updateState & ~STATE_IS_REFLECTING_TO_PROPERTY;\n }\n }\n\n /**\n * This private version of `requestUpdate` does not access or return the\n * `updateComplete` promise. This promise can be overridden and is therefore\n * not free to access.\n */\n private _requestUpdate(name?: PropertyKey, oldValue?: unknown) {\n let shouldRequestUpdate = true;\n // If we have a property key, perform property update steps.\n if (name !== undefined) {\n const ctor = this.constructor as typeof UpdatingElement;\n const options = ctor.getPropertyOptions(name);\n if (ctor._valueHasChanged(\n this[name as keyof this], oldValue, options.hasChanged)) {\n if (!this._changedProperties.has(name)) {\n this._changedProperties.set(name, oldValue);\n }\n // Add to reflecting properties set.\n // Note, it's important that every change has a chance to add the\n // property to `_reflectingProperties`. This ensures setting\n // attribute + property reflects correctly.\n if (options.reflect === true &&\n !(this._updateState & STATE_IS_REFLECTING_TO_PROPERTY)) {\n if (this._reflectingProperties === undefined) {\n this._reflectingProperties = new Map();\n }\n this._reflectingProperties.set(name, options);\n }\n } else {\n // Abort the request if the property should not be considered changed.\n shouldRequestUpdate = false;\n }\n }\n if (!this._hasRequestedUpdate && shouldRequestUpdate) {\n this._updatePromise = this._enqueueUpdate();\n }\n }\n\n /**\n * Requests an update which is processed asynchronously. This should\n * be called when an element should update based on some state not triggered\n * by setting a property. In this case, pass no arguments. It should also be\n * called when manually implementing a property setter. In this case, pass the\n * property `name` and `oldValue` to ensure that any configured property\n * options are honored. Returns the `updateComplete` Promise which is resolved\n * when the update completes.\n *\n * @param name {PropertyKey} (optional) name of requesting property\n * @param oldValue {any} (optional) old value of requesting property\n * @returns {Promise} A Promise that is resolved when the update completes.\n */\n requestUpdate(name?: PropertyKey, oldValue?: unknown) {\n this._requestUpdate(name, oldValue);\n return this.updateComplete;\n }\n\n /**\n * Sets up the element to asynchronously update.\n */\n private async _enqueueUpdate() {\n this._updateState = this._updateState | STATE_UPDATE_REQUESTED;\n try {\n // Ensure any previous update has resolved before updating.\n // This `await` also ensures that property changes are batched.\n await this._updatePromise;\n } catch (e) {\n // Ignore any previous errors. We only care that the previous cycle is\n // done. Any error should have been handled in the previous update.\n }\n const result = this.performUpdate();\n // If `performUpdate` returns a Promise, we await it. This is done to\n // enable coordinating updates with a scheduler. Note, the result is\n // checked to avoid delaying an additional microtask unless we need to.\n if (result != null) {\n await result;\n }\n return !this._hasRequestedUpdate;\n }\n\n private get _hasRequestedUpdate() {\n return (this._updateState & STATE_UPDATE_REQUESTED);\n }\n\n protected get hasUpdated() {\n return (this._updateState & STATE_HAS_UPDATED);\n }\n\n /**\n * Performs an element update. Note, if an exception is thrown during the\n * update, `firstUpdated` and `updated` will not be called.\n *\n * You can override this method to change the timing of updates. If this\n * method is overridden, `super.performUpdate()` must be called.\n *\n * For instance, to schedule updates to occur just before the next frame:\n *\n * ```\n * protected async performUpdate(): Promise<unknown> {\n * await new Promise((resolve) => requestAnimationFrame(() => resolve()));\n * super.performUpdate();\n * }\n * ```\n */\n protected performUpdate(): void|Promise<unknown> {\n // Mixin instance properties once, if they exist.\n if (this._instanceProperties) {\n this._applyInstanceProperties();\n }\n let shouldUpdate = false;\n const changedProperties = this._changedProperties;\n try {\n shouldUpdate = this.shouldUpdate(changedProperties);\n if (shouldUpdate) {\n this.update(changedProperties);\n } else {\n this._markUpdated();\n }\n } catch (e) {\n // Prevent `firstUpdated` and `updated` from running when there's an\n // update exception.\n shouldUpdate = false;\n // Ensure element can accept additional updates after an exception.\n this._markUpdated();\n throw e;\n }\n if (shouldUpdate) {\n if (!(this._updateState & STATE_HAS_UPDATED)) {\n this._updateState = this._updateState | STATE_HAS_UPDATED;\n this.firstUpdated(changedProperties);\n }\n this.updated(changedProperties);\n }\n }\n\n private _markUpdated() {\n this._changedProperties = new Map();\n this._updateState = this._updateState & ~STATE_UPDATE_REQUESTED;\n }\n\n /**\n * Returns a Promise that resolves when the element has completed updating.\n * The Promise value is a boolean that is `true` if the element completed the\n * update without triggering another update. The Promise result is `false` if\n * a property was set inside `updated()`. If the Promise is rejected, an\n * exception was thrown during the update.\n *\n * To await additional asynchronous work, override the `_getUpdateComplete`\n * method. For example, it is sometimes useful to await a rendered element\n * before fulfilling this Promise. To do this, first await\n * `super._getUpdateComplete()`, then any subsequent state.\n *\n * @returns {Promise} The Promise returns a boolean that indicates if the\n * update resolved without triggering another update.\n */\n get updateComplete() {\n return this._getUpdateComplete();\n }\n\n /**\n * Override point for the `updateComplete` promise.\n *\n * It is not safe to override the `updateComplete` getter directly due to a\n * limitation in TypeScript which means it is not possible to call a\n * superclass getter (e.g. `super.updateComplete.then(...)`) when the target\n * language is ES5 (https://github.com/microsoft/TypeScript/issues/338).\n * This method should be overridden instead. For example:\n *\n * class MyElement extends LitElement {\n * async _getUpdateComplete() {\n * await super._getUpdateComplete();\n * await this._myChild.updateComplete;\n * }\n * }\n */\n protected _getUpdateComplete() {\n return this._updatePromise;\n }\n\n /**\n * Controls whether or not `update` should be called when the element requests\n * an update. By default, this method always returns `true`, but this can be\n * customized to control when to update.\n *\n * @param _changedProperties Map of changed properties with old values\n */\n protected shouldUpdate(_changedProperties: PropertyValues): boolean {\n return true;\n }\n\n /**\n * Updates the element. This method reflects property values to attributes.\n * It can be overridden to render and keep updated element DOM.\n * Setting properties inside this method will *not* trigger\n * another update.\n *\n * @param _changedProperties Map of changed properties with old values\n */\n protected update(_changedProperties: PropertyValues) {\n if (this._reflectingProperties !== undefined &&\n this._reflectingProperties.size > 0) {\n // Use forEach so this works even if for/of loops are compiled to for\n // loops expecting arrays\n this._reflectingProperties.forEach(\n (v, k) => this._propertyToAttribute(k, this[k as keyof this], v));\n this._reflectingProperties = undefined;\n }\n this._markUpdated();\n }\n\n /**\n * Invoked whenever the element is updated. Implement to perform\n * post-updating tasks via DOM APIs, for example, focusing an element.\n *\n * Setting properties inside this method will trigger the element to update\n * again after this update cycle completes.\n *\n * @param _changedProperties Map of changed properties with old values\n */\n protected updated(_changedProperties: PropertyValues) {\n }\n\n /**\n * Invoked when the element is first updated. Implement to perform one time\n * work on the element after update.\n *\n * Setting properties inside this method will trigger the element to update\n * again after this update cycle completes.\n *\n * @param _changedProperties Map of changed properties with old values\n */\n protected firstUpdated(_changedProperties: PropertyValues) {\n }\n}\n","/**\n * @license\n * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.\n * This code may only be used under the BSD style license found at\n * http://polymer.github.io/LICENSE.txt\n * The complete set of authors may be found at\n * http://polymer.github.io/AUTHORS.txt\n * The complete set of contributors may be found at\n * http://polymer.github.io/CONTRIBUTORS.txt\n * Code distributed by Google as part of the polymer project is also\n * subject to an additional IP rights grant found at\n * http://polymer.github.io/PATENTS.txt\n */\nimport {render, ShadyRenderOptions} from 'lit-html/lib/shady-render.js';\n\nimport {PropertyValues, UpdatingElement} from './lib/updating-element.js';\n\nexport * from './lib/updating-element.js';\nexport * from './lib/decorators.js';\nexport {html, svg, TemplateResult, SVGTemplateResult} from 'lit-html/lit-html.js';\nimport {supportsAdoptingStyleSheets, CSSResult} from './lib/css-tag.js';\nexport * from './lib/css-tag.js';\n\ndeclare global {\n interface Window {\n litElementVersions: string[];\n }\n}\n\n// IMPORTANT: do not change the property name or the assignment expression.\n// This line will be used in regexes to search for LitElement usage.\n// TODO(justinfagnani): inject version number at build time\n(window['litElementVersions'] || (window['litElementVersions'] = []))\n .push('2.3.1');\n\nexport interface CSSResultArray extends Array<CSSResult|CSSResultArray> {}\n\n/**\n * Sentinal value used to avoid calling lit-html's render function when\n * subclasses do not implement `render`\n */\nconst renderNotImplemented = {};\n\nexport class LitElement extends UpdatingElement {\n /**\n * Ensure this class is marked as `finalized` as an optimization ensuring\n * it will not needlessly try to `finalize`.\n *\n * Note this property name is a string to prevent breaking Closure JS Compiler\n * optimizations. See updating-element.ts for more information.\n */\n protected static['finalized'] = true;\n\n /**\n * Render method used to render the value to the element's DOM.\n * @param result The value to render.\n * @param container Node into which to render.\n * @param options Element name.\n * @nocollapse\n */\n static render:\n (result: unknown, container: Element|DocumentFragment,\n options: ShadyRenderOptions) => void = render;\n\n /**\n * Array of styles to apply to the element. The styles should be defined\n * using the `css` tag function.\n */\n static styles?: CSSResult|CSSResultArray;\n\n private static _styles: CSSResult[]|undefined;\n\n /**\n * Return the array of styles to apply to the element.\n * Override this method to integrate into a style management system.\n *\n * @nocollapse\n */\n static getStyles(): CSSResult|CSSResultArray|undefined {\n return this.styles;\n }\n\n /** @nocollapse */\n private static _getUniqueStyles() {\n // Only gather styles once per class\n if (this.hasOwnProperty(JSCompiler_renameProperty('_styles', this))) {\n return;\n }\n // Take care not to call `this.getStyles()` multiple times since this\n // generates new CSSResults each time.\n // TODO(sorvell): Since we do not cache CSSResults by input, any\n // shared styles will generate new stylesheet objects, which is wasteful.\n // This should be addressed when a browser ships constructable\n // stylesheets.\n const userStyles = this.getStyles();\n if (userStyles === undefined) {\n this._styles = [];\n } else if (Array.isArray(userStyles)) {\n // De-duplicate styles preserving the _last_ instance in the set.\n // This is a performance optimization to avoid duplicated styles that can\n // occur especially when composing via subclassing.\n // The last item is kept to try to preserve the cascade order with the\n // assumption that it's most important that last added styles override\n // previous styles.\n const addStyles =\n (styles: CSSResultArray, set: Set<CSSResult>): Set<CSSResult> =>\n styles.reduceRight(\n (set: Set<CSSResult>, s) =>\n // Note: On IE set.add() does not return the set\n Array.isArray(s) ? addStyles(s, set) : (set.add(s), set),\n set);\n // Array.from does not work on Set in IE, otherwise return\n // Array.from(addStyles(userStyles, new Set<CSSResult>())).reverse()\n const set = addStyles(userStyles, new Set<CSSResult>());\n const styles: CSSResult[] = [];\n set.forEach((v) => styles.unshift(v));\n this._styles = styles;\n } else {\n this._styles = [userStyles];\n }\n }\n\n private _needsShimAdoptedStyleSheets?: boolean;\n\n /**\n * Node or ShadowRoot into which element DOM should be rendered. Defaults\n * to an open shadowRoot.\n */\n readonly renderRoot!: Element|DocumentFragment;\n\n /**\n * Performs element initialization. By default this calls `createRenderRoot`\n * to create the element `renderRoot` node and captures any pre-set values for\n * registered properties.\n */\n protected initialize() {\n super.initialize();\n (this.constructor as typeof LitElement)._getUniqueStyles();\n (this as {renderRoot: Element | DocumentFragment}).renderRoot =\n this.createRenderRoot();\n // Note, if renderRoot is not a shadowRoot, styles would/could apply to the\n // element's getRootNode(). While this could be done, we're choosing not to\n // support this now since it would require different logic around de-duping.\n if (window.ShadowRoot && this.renderRoot instanceof window.ShadowRoot) {\n this.adoptStyles();\n }\n }\n\n /**\n * Returns the node into which the element should render and by default\n * creates and returns an open shadowRoot. Implement to customize where the\n * element's DOM is rendered. For example, to render into the element's\n * childNodes, return `this`.\n * @returns {Element|DocumentFragment} Returns a node into which to render.\n */\n protected createRenderRoot(): Element|ShadowRoot {\n return this.attachShadow({mode: 'open'});\n }\n\n /**\n * Applies styling to the element shadowRoot using the `static get styles`\n * property. Styling will apply using `shadowRoot.adoptedStyleSheets` where\n * available and will fallback otherwise. When Shadow DOM is polyfilled,\n * ShadyCSS scopes styles and adds them to the document. When Shadow DOM\n * is available but `adoptedStyleSheets` is not, styles are appended to the\n * end of the `shadowRoot` to [mimic spec\n * behavior](https://wicg.github.io/construct-stylesheets/#using-constructed-stylesheets).\n */\n protected adoptStyles() {\n const styles = (this.constructor as typeof LitElement)._styles!;\n if (styles.length === 0) {\n return;\n }\n // There are three separate cases here based on Shadow DOM support.\n // (1) shadowRoot polyfilled: use ShadyCSS\n // (2) shadowRoot.adoptedStyleSheets available: use it.\n // (3) shadowRoot.adoptedStyleSheets polyfilled: append styles after\n // rendering\n if (window.ShadyCSS !== undefined && !window.ShadyCSS.nativeShadow) {\n window.ShadyCSS.ScopingShim!.prepareAdoptedCssText(\n styles.map((s) => s.cssText), this.localName);\n } else if (supportsAdoptingStyleSheets) {\n (this.renderRoot as ShadowRoot).adoptedStyleSheets =\n styles.map((s) => s.styleSheet!);\n } else {\n // This must be done after rendering so the actual style insertion is done\n // in `update`.\n this._needsShimAdoptedStyleSheets = true;\n }\n }\n\n connectedCallback() {\n super.connectedCallback();\n // Note, first update/render handles styleElement so we only call this if\n // connected after first update.\n if (this.hasUpdated && window.ShadyCSS !== undefined) {\n window.ShadyCSS.styleElement(this);\n }\n }\n\n /**\n * Updates the element. This method reflects property values to attributes\n * and calls `render` to render DOM via lit-html. Setting properties inside\n * this method will *not* trigger another update.\n * @param _changedProperties Map of changed properties with old values\n */\n protected update(changedProperties: PropertyValues) {\n // Setting properties in `render` should not trigger an update. Since\n // updates are allowed after super.update, it's important to call `render`\n // before that.\n const templateResult = this.render();\n super.update(changedProperties);\n // If render is not implemented by the component, don't call lit-html render\n if (templateResult !== renderNotImplemented) {\n (this.constructor as typeof LitElement)\n .render(\n templateResult,\n this.renderRoot,\n {scopeName: this.localName, eventContext: this});\n }\n // When native Shadow DOM is used but adoptedStyles are not supported,\n // insert styling after rendering to ensure adoptedStyles have highest\n // priority.\n if (this._needsShimAdoptedStyleSheets) {\n this._needsShimAdoptedStyleSheets = false;\n (this.constructor as typeof LitElement)._styles!.forEach((s) => {\n const style = document.createElement('style');\n style.textContent = s.cssText;\n this.renderRoot.appendChild(style);\n });\n }\n }\n\n /**\n * Invoked on each update to perform rendering tasks. This method may return\n * any value renderable by lit-html's NodePart - typically a TemplateResult.\n * Setting properties inside this method will *not* trigger the element to\n * update.\n */\n protected render(): unknown {\n return renderNotImplemented;\n }\n}\n","/**\n * @license\n * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.\n * This code may only be used under the BSD style license found at\n * http://polymer.github.io/LICENSE.txt\n * The complete set of authors may be found at\n * http://polymer.github.io/AUTHORS.txt\n * The complete set of contributors may be found at\n * http://polymer.github.io/CONTRIBUTORS.txt\n * Code distributed by Google as part of the polymer project is also\n * subject to an additional IP rights grant found at\n * http://polymer.github.io/PATENTS.txt\n */\n\n/**\n * @module shady-render\n */\n\nimport {isTemplatePartActive, Template, TemplatePart} from './template.js';\n\nconst walkerNodeFilter = 133 /* NodeFilter.SHOW_{ELEMENT|COMMENT|TEXT} */;\n\n/**\n * Removes the list of nodes from a Template safely. In addition to removing\n * nodes from the Template, the Template part indices are updated to match\n * the mutated Template DOM.\n *\n * As the template is walked the removal state is tracked and\n * part indices are adjusted as needed.\n *\n * div\n * div#1 (remove) <-- start removing (removing node is div#1)\n * div\n * div#2 (remove) <-- continue removing (removing node is still div#1)\n * div\n * div <-- stop removing since previous sibling is the removing node (div#1,\n * removed 4 nodes)\n */\nexport function removeNodesFromTemplate(\n template: Template, nodesToRemove: Set<Node>) {\n const {element: {content}, parts} = template;\n const walker =\n document.createTreeWalker(content, walkerNodeFilter, null, false);\n let partIndex = nextActiveIndexInTemplateParts(parts);\n let part = parts[partIndex];\n let nodeIndex = -1;\n let removeCount = 0;\n const nodesToRemoveInTemplate = [];\n let currentRemovingNode: Node|null = null;\n while (walker.nextNode()) {\n nodeIndex++;\n const node = walker.currentNode as Element;\n // End removal if stepped past the removing node\n if (node.previousSibling === currentRemovingNode) {\n currentRemovingNode = null;\n }\n // A node to remove was found in the template\n if (nodesToRemove.has(node)) {\n nodesToRemoveInTemplate.push(node);\n // Track node we're removing\n if (currentRemovingNode === null) {\n currentRemovingNode = node;\n }\n }\n // When removing, increment count by which to adjust subsequent part indices\n if (currentRemovingNode !== null) {\n removeCount++;\n }\n while (part !== undefined && part.index === nodeIndex) {\n // If part is in a removed node deactivate it by setting index to -1 or\n // adjust the index as needed.\n part.index = currentRemovingNode !== null ? -1 : part.index - removeCount;\n // go to the next active part.\n partIndex = nextActiveIndexInTemplateParts(parts, partIndex);\n part = parts[partIndex];\n }\n }\n nodesToRemoveInTemplate.forEach((n) => n.parentNode!.removeChild(n));\n}\n\nconst countNodes = (node: Node) => {\n let count = (node.nodeType === 11 /* Node.DOCUMENT_FRAGMENT_NODE */) ? 0 : 1;\n const walker = document.createTreeWalker(node, walkerNodeFilter, null, false);\n while (walker.nextNode()) {\n count++;\n }\n return count;\n};\n\nconst nextActiveIndexInTemplateParts =\n (parts: TemplatePart[], startIndex = -1) => {\n for (let i = startIndex + 1; i < parts.length; i++) {\n const part = parts[i];\n if (isTemplatePartActive(part)) {\n return i;\n }\n }\n return -1;\n };\n\n/**\n * Inserts the given node into the Template, optionally before the given\n * refNode. In addition to inserting the node into the Template, the Template\n * part indices are updated to match the mutated Template DOM.\n */\nexport function insertNodeIntoTemplate(\n template: Template, node: Node, refNode: Node|null = null) {\n const {element: {content}, parts} = template;\n // If there's no refNode, then put node at end of template.\n // No part indices need to be shifted in this case.\n if (refNode === null || refNode === undefined) {\n content.appendChild(node);\n return;\n }\n const walker =\n document.createTreeWalker(content, walkerNodeFilter, null, false);\n let partIndex = nextActiveIndexInTemplateParts(parts);\n let insertCount = 0;\n let walkerIndex = -1;\n while (walker.nextNode()) {\n walkerIndex++;\n const walkerNode = walker.currentNode as Element;\n if (walkerNode === refNode) {\n insertCount = countNodes(node);\n refNode.parentNode!.insertBefore(node, refNode);\n }\n while (partIndex !== -1 && parts[partIndex].index === walkerIndex) {\n // If we've inserted the node, simply adjust all subsequent parts\n if (insertCount > 0) {\n while (partIndex !== -1) {\n parts[partIndex].index += insertCount;\n partIndex = nextActiveIndexInTemplateParts(parts, partIndex);\n }\n return;\n }\n partIndex = nextActiveIndexInTemplateParts(parts, partIndex);\n }\n }\n}\n","/**\n * @license\n * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.\n * This code may only be used under the BSD style license found at\n * http://polymer.github.io/LICENSE.txt\n * The complete set of authors may be found at\n * http://polymer.github.io/AUTHORS.txt\n * The complete set of contributors may be found at\n * http://polymer.github.io/CONTRIBUTORS.txt\n * Code distributed by Google as part of the polymer project is also\n * subject to an additional IP rights grant found at\n * http://polymer.github.io/PATENTS.txt\n */\n\n/**\n * Module to add shady DOM/shady CSS polyfill support to lit-html template\n * rendering. See the [[render]] method for details.\n *\n * @module shady-render\n * @preferred\n */\n\n/**\n * Do not remove this comment; it keeps typedoc from misplacing the module\n * docs.\n */\nimport {removeNodes} from './dom.js';\nimport {insertNodeIntoTemplate, removeNodesFromTemplate} from './modify-template.js';\nimport {RenderOptions} from './render-options.js';\nimport {parts, render as litRender} from './render.js';\nimport {templateCaches} from './template-factory.js';\nimport {TemplateInstance} from './template-instance.js';\nimport {TemplateResult} from './template-result.js';\nimport {marker, Template} from './template.js';\n\nexport {html, svg, TemplateResult} from '../lit-html.js';\n\n// Get a key to lookup in `templateCaches`.\nconst getTemplateCacheKey = (type: string, scopeName: string) =>\n `${type}--${scopeName}`;\n\nlet compatibleShadyCSSVersion = true;\n\nif (typeof window.ShadyCSS === 'undefined') {\n compatibleShadyCSSVersion = false;\n} else if (typeof window.ShadyCSS.prepareTemplateDom === 'undefined') {\n console.warn(\n `Incompatible ShadyCSS version detected. ` +\n `Please update to at least @webcomponents/webcomponentsjs@2.0.2 and ` +\n `@webcomponents/shadycss@1.3.1.`);\n compatibleShadyCSSVersion = false;\n}\n\n/**\n * Template factory which scopes template DOM using ShadyCSS.\n * @param scopeName {string}\n */\nconst shadyTemplateFactory = (scopeName: string) =>\n (result: TemplateResult) => {\n const cacheKey = getTemplateCacheKey(result.type, scopeName);\n let templateCache = templateCaches.get(cacheKey);\n if (templateCache === undefined) {\n templateCache = {\n stringsArray: new WeakMap<TemplateStringsArray, Template>(),\n keyString: new Map<string, Template>()\n };\n templateCaches.set(cacheKey, templateCache);\n }\n\n let template = templateCache.stringsArray.get(result.strings);\n if (template !== undefined) {\n return template;\n }\n\n const key = result.strings.join(marker);\n template = templateCache.keyString.get(key);\n if (template === undefined) {\n const element = result.getTemplateElement();\n if (compatibleShadyCSSVersion) {\n window.ShadyCSS!.prepareTemplateDom(element, scopeName);\n }\n template = new Template(result, element);\n templateCache.keyString.set(key, template);\n }\n templateCache.stringsArray.set(result.strings, template);\n return template;\n };\n\nconst TEMPLATE_TYPES = ['html', 'svg'];\n\n/**\n * Removes all style elements from Templates for the given scopeName.\n */\nconst removeStylesFromLitTemplates = (scopeName: string) => {\n TEMPLATE_TYPES.forEach((type) => {\n const templates = templateCaches.get(getTemplateCacheKey(type, scopeName));\n if (templates !== undefined) {\n templates.keyString.forEach((template) => {\n const {element: {content}} = template;\n // IE 11 doesn't support the iterable param Set constructor\n const styles = new Set<Element>();\n Array.from(content.querySelectorAll('style')).forEach((s: Element) => {\n styles.add(s);\n });\n removeNodesFromTemplate(template, styles);\n });\n }\n });\n};\n\nconst shadyRenderSet = new Set<string>();\n\n/**\n * For the given scope name, ensures that ShadyCSS style scoping is performed.\n * This is done just once per scope name so the fragment and template cannot\n * be modified.\n * (1) extracts styles from the rendered fragment and hands them to ShadyCSS\n * to be scoped and appended to the document\n * (2) removes style elements from all lit-html Templates for this scope name.\n *\n * Note, <style> elements can only be placed into templates for the\n * initial rendering of the scope. If <style> elements are included in templates\n * dynamically rendered to the scope (after the first scope render), they will\n * not be scoped and the <style> will be left in the template and rendered\n * output.\n */\nconst prepareTemplateStyles =\n (scopeName: string, renderedDOM: DocumentFragment, template?: Template) => {\n shadyRenderSet.add(scopeName);\n // If `renderedDOM` is stamped from a Template, then we need to edit that\n // Template's underlying template element. Otherwise, we create one here\n // to give to ShadyCSS, which still requires one while scoping.\n const templateElement =\n !!template ? template.element : document.createElement('template');\n // Move styles out of rendered DOM and store.\n const styles = renderedDOM.querySelectorAll('style');\n const {length} = styles;\n // If there are no styles, skip unnecessary work\n if (length === 0) {\n // Ensure prepareTemplateStyles is called to support adding\n // styles via `prepareAdoptedCssText` since that requires that\n // `prepareTemplateStyles` is called.\n //\n // ShadyCSS will only update styles containing @apply in the template\n // given to `prepareTemplateStyles`. If no lit Template was given,\n // ShadyCSS will not be able to update uses of @apply in any relevant\n // template. However, this is not a problem because we only create the\n // template for the purpose of supporting `prepareAdoptedCssText`,\n // which doesn't support @apply at all.\n window.ShadyCSS!.prepareTemplateStyles(templateElement, scopeName);\n return;\n }\n const condensedStyle = document.createElement('style');\n // Collect styles into a single style. This helps us make sure ShadyCSS\n // manipulations will not prevent us from being able to fix up template\n // part indices.\n // NOTE: collecting styles is inefficient for browsers but ShadyCSS\n // currently does this anyway. When it does not, this should be changed.\n for (let i = 0; i < length; i++) {\n const style = styles[i];\n style.parentNode!.removeChild(style);\n condensedStyle.textContent! += style.textContent;\n }\n // Remove styles from nested templates in this scope.\n removeStylesFromLitTemplates(scopeName);\n // And then put the condensed style into the \"root\" template passed in as\n // `template`.\n const content = templateElement.content;\n if (!!template) {\n insertNodeIntoTemplate(template, condensedStyle, content.firstChild);\n } else {\n content.insertBefore(condensedStyle, content.firstChild);\n }\n // Note, it's important that ShadyCSS gets the template that `lit-html`\n // will actually render so that it can update the style inside when\n // needed (e.g. @apply native Shadow DOM case).\n window.ShadyCSS!.prepareTemplateStyles(templateElement, scopeName);\n const style = content.querySelector('style');\n if (window.ShadyCSS!.nativeShadow && style !== null) {\n // When in native Shadow DOM, ensure the style created by ShadyCSS is\n // included in initially rendered output (`renderedDOM`).\n renderedDOM.insertBefore(style.cloneNode(true), renderedDOM.firstChild);\n } else if (!!template) {\n // When no style is left in the template, parts will be broken as a\n // result. To fix this, we put back the style node ShadyCSS removed\n // and then tell lit to remove that node from the template.\n // There can be no style in the template in 2 cases (1) when Shady DOM\n // is in use, ShadyCSS removes all styles, (2) when native Shadow DOM\n // is in use ShadyCSS removes the style if it contains no content.\n // NOTE, ShadyCSS creates its own style so we can safely add/remove\n // `condensedStyle` here.\n content.insertBefore(condensedStyle, content.firstChild);\n const removes = new Set<Node>();\n removes.add(condensedStyle);\n removeNodesFromTemplate(template, removes);\n }\n };\n\nexport interface ShadyRenderOptions extends Partial<RenderOptions> {\n scopeName: string;\n}\n\n/**\n * Extension to the standard `render` method which supports rendering\n * to ShadowRoots when the ShadyDOM (https://github.com/webcomponents/shadydom)\n * and ShadyCSS (https://github.com/webcomponents/shadycss) polyfills are used\n * or when the webcomponentsjs\n * (https://github.com/webcomponents/webcomponentsjs) polyfill is used.\n *\n * Adds a `scopeName` option which is used to scope element DOM and stylesheets\n * when native ShadowDOM is unavailable. The `scopeName` will be added to\n * the class attribute of all rendered DOM. In addition, any style elements will\n * be automatically re-written with this `scopeName` selector and moved out\n * of the rendered DOM and into the document `<head>`.\n *\n * It is common to use this render method in conjunction with a custom element\n * which renders a shadowRoot. When this is done, typically the element's\n * `localName` should be used as the `scopeName`.\n *\n * In addition to DOM scoping, ShadyCSS also supports a basic shim for css\n * custom properties (needed only on older browsers like IE11) and a shim for\n * a deprecated feature called `@apply` that supports applying a set of css\n * custom properties to a given location.\n *\n * Usage considerations:\n *\n * * Part values in `<style>` elements are only applied the first time a given\n * `scopeName` renders. Subsequent changes to parts in style elements will have\n * no effect. Because of this, parts in style elements should only be used for\n * values that will never change, for example parts that set scope-wide theme\n * values or parts which render shared style elements.\n *\n * * Note, due to a limitation of the ShadyDOM polyfill, rendering in a\n * custom element's `constructor` is not supported. Instead rendering should\n * either done asynchronously, for example at microtask timing (for example\n * `Promise.resolve()`), or be deferred until the first time the element's\n * `connectedCallback` runs.\n *\n * Usage considerations when using shimmed custom properties or `@apply`:\n *\n * * Whenever any dynamic changes are made which affect\n * css custom properties, `ShadyCSS.styleElement(element)` must be called\n * to update the element. There are two cases when this is needed:\n * (1) the element is connected to a new parent, (2) a class is added to the\n * element that causes it to match different custom properties.\n * To address the first case when rendering a custom element, `styleElement`\n * should be called in the element's `connectedCallback`.\n *\n * * Shimmed custom properties may only be defined either for an entire\n * shadowRoot (for example, in a `:host` rule) or via a rule that directly\n * matches an element with a shadowRoot. In other words, instead of flowing from\n * parent to child as do native css custom properties, shimmed custom properties\n * flow only from shadowRoots to nested shadowRoots.\n *\n * * When using `@apply` mixing css shorthand property names with\n * non-shorthand names (for example `border` and `border-width`) is not\n * supported.\n */\nexport const render =\n (result: unknown,\n container: Element|DocumentFragment|ShadowRoot,\n options: ShadyRenderOptions) => {\n if (!options || typeof options !== 'object' || !options.scopeName) {\n throw new Error('The `scopeName` option is required.');\n }\n const scopeName = options.scopeName;\n const hasRendered = parts.has(container);\n const needsScoping = compatibleShadyCSSVersion &&\n container.nodeType === 11 /* Node.DOCUMENT_FRAGMENT_NODE */ &&\n !!(container as ShadowRoot).host;\n // Handle first render to a scope specially...\n const firstScopeRender = needsScoping && !shadyRenderSet.has(scopeName);\n // On first scope render, render into a fragment; this cannot be a single\n // fragment that is reused since nested renders can occur synchronously.\n const renderContainer =\n firstScopeRender ? document.createDocumentFragment() : container;\n litRender(\n result,\n renderContainer,\n {templateFactory: shadyTemplateFactory(scopeName), ...options} as\n RenderOptions);\n // When performing first scope render,\n // (1) We've rendered into a fragment so that there's a chance to\n // `prepareTemplateStyles` before sub-elements hit the DOM\n // (which might cause them to render based on a common pattern of\n // rendering in a custom element's `connectedCallback`);\n // (2) Scope the template with ShadyCSS one time only for this scope.\n // (3) Render the fragment into the container and make sure the\n // container knows its `part` is the one we just rendered. This ensures\n // DOM will be re-used on subsequent renders.\n if (firstScopeRender) {\n const part = parts.get(renderContainer)!;\n parts.delete(renderContainer);\n // ShadyCSS might have style sheets (e.g. from `prepareAdoptedCssText`)\n // that should apply to `renderContainer` even if the rendered value is\n // not a TemplateInstance. However, it will only insert scoped styles\n // into the document if `prepareTemplateStyles` has already been called\n // for the given scope name.\n const template = part.value instanceof TemplateInstance ?\n part.value.template :\n undefined;\n prepareTemplateStyles(\n scopeName, renderContainer as DocumentFragment, template);\n removeNodes(container, container.firstChild);\n container.appendChild(renderContainer);\n parts.set(container, part);\n }\n // After elements have hit the DOM, update styling if this is the\n // initial render to this container.\n // This is needed whenever dynamic changes are made so it would be\n // safest to do every render; however, this would regress performance\n // so we leave it up to the user to call `ShadyCSS.styleElement`\n // for dynamic changes.\n if (!hasRendered && needsScoping) {\n window.ShadyCSS!.styleElement((container as ShadowRoot).host);\n }\n };\n"],"sourceRoot":""}
@@ -1,151 +0,0 @@
1
- /*!
2
- * __ __ __ __
3
- * /\ \/\ \ /\ \ __ /\ \
4
- * \ \ \_\ \ __ __ \_\ \ __ /\_\ __ ___ \ \ \/'\
5
- * \ \ _ \ /\ \/\ \ /'_` \ /'__`\ \/\ \ /'__`\ /'___\\ \ , <
6
- * \ \ \ \ \\ \ \_\ \ /\ \L\ \ /\ __/ \ \ \ /\ \L\.\_ /\ \__/ \ \ \\`\
7
- * \ \_\ \_\\/`____ \\ \___,_\\ \____\ _\ \ \\ \__/.\_\\ \____\ \ \_\ \_\
8
- * \/_/\/_/ `/___/> \\/__,_ / \/____//\ \_\ \\/__/\/_/ \/____/ \/_/\/_/
9
- * /\___/ \ \____/
10
- * \/__/ \/___/
11
- *
12
- * Powered by Hydejack v9.0.2 <https://hydejack.com/>
13
- */
14
- (window.webpackJsonp=window.webpackJsonp||[]).push([[0],{310:function(t,e,n){"use strict";n.d(e,"e",(function(){return a.a})),n.d(e,"g",(function(){return s.b})),n.d(e,"i",(function(){return s.c})),n.d(e,"a",(function(){return r.b})),n.d(e,"b",(function(){return r.e})),n.d(e,"c",(function(){return r.g})),n.d(e,"h",(function(){return c.b})),n.d(e,"d",(function(){return l.c})),n.d(e,"f",(function(){return f}));var r=n(311);function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}
15
- /**
16
- * @license
17
- * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
18
- * This code may only be used under the BSD style license found at
19
- * http://polymer.github.io/LICENSE.txt
20
- * The complete set of authors may be found at
21
- * http://polymer.github.io/AUTHORS.txt
22
- * The complete set of contributors may be found at
23
- * http://polymer.github.io/CONTRIBUTORS.txt
24
- * Code distributed by Google as part of the polymer project is also
25
- * subject to an additional IP rights grant found at
26
- * http://polymer.github.io/PATENTS.txt
27
- */
28
- var o=new(function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,n,o;return e=t,(n=[{key:"handleAttributeExpressions",value:function(t,e,n,i){var o=e[0];return"."===o?new r.f(t,e.slice(1),n).parts:"@"===o?[new r.d(t,e.slice(1),i.eventContext)]:"?"===o?[new r.c(t,e.slice(1),n)]:new r.a(t,e,n).parts}},{key:"handleTextExpression",value:function(t){return new r.e(t)}}])&&i(e.prototype,n),o&&i(e,o),t}()),u=n(316),a=n(318),s=n(314),c=(n(319),n(321)),l=(n(317),n(320),n(312));
29
- /**
30
- * @license
31
- * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
32
- * This code may only be used under the BSD style license found at
33
- * http://polymer.github.io/LICENSE.txt
34
- * The complete set of authors may be found at
35
- * http://polymer.github.io/AUTHORS.txt
36
- * The complete set of contributors may be found at
37
- * http://polymer.github.io/CONTRIBUTORS.txt
38
- * Code distributed by Google as part of the polymer project is also
39
- * subject to an additional IP rights grant found at
40
- * http://polymer.github.io/PATENTS.txt
41
- */
42
- "undefined"!=typeof window&&(window.litHtmlVersions||(window.litHtmlVersions=[])).push("1.2.1");var f=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return new u.b(t,n,"html",o)}},311:function(t,e,n){"use strict";n.d(e,"a",(function(){return O})),n.d(e,"b",(function(){return N})),n.d(e,"e",(function(){return k})),n.d(e,"c",(function(){return S})),n.d(e,"f",(function(){return j})),n.d(e,"g",(function(){return E})),n.d(e,"d",(function(){return A}));var r=n(318),i=n(314),o=n(319),u=n(320),a=n(316),s=n(312);function c(t,e,n){return(c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=p(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}})(t,e,n||t)}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function h(t){var e=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(t){return!1}}();return function(){var n,r=p(t);if(e){var i=p(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return d(this,n)}}function d(t,e){return!e||"object"!==_(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function p(t){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function v(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return y(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return y(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}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 o,u=!0,a=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return u=t.done,t},e:function(t){a=!0,o=t},f:function(){try{u||null==n.return||n.return()}finally{if(a)throw o}}}}function y(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function m(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function b(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function g(t,e,n){return e&&b(t.prototype,e),n&&b(t,n),t}function _(t){return(_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}
43
- /**
44
- * @license
45
- * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
46
- * This code may only be used under the BSD style license found at
47
- * http://polymer.github.io/LICENSE.txt
48
- * The complete set of authors may be found at
49
- * http://polymer.github.io/AUTHORS.txt
50
- * The complete set of contributors may be found at
51
- * http://polymer.github.io/CONTRIBUTORS.txt
52
- * Code distributed by Google as part of the polymer project is also
53
- * subject to an additional IP rights grant found at
54
- * http://polymer.github.io/PATENTS.txt
55
- */var w=function(t){return null===t||!("object"===_(t)||"function"==typeof t)},x=function(t){return Array.isArray(t)||!(!t||!t[Symbol.iterator])},O=function(){function t(e,n,r){m(this,t),this.dirty=!0,this.element=e,this.name=n,this.strings=r,this.parts=[];for(var i=0;i<r.length-1;i++)this.parts[i]=this._createPart()}return g(t,[{key:"_createPart",value:function(){return new N(this)}},{key:"_getValue",value:function(){for(var t=this.strings,e=t.length-1,n="",r=0;r<e;r++){n+=t[r];var i=this.parts[r];if(void 0!==i){var o=i.value;if(w(o)||!x(o))n+="string"==typeof o?o:String(o);else{var u,a=v(o);try{for(a.s();!(u=a.n()).done;){var s=u.value;n+="string"==typeof s?s:String(s)}}catch(t){a.e(t)}finally{a.f()}}}}return n+=t[e]}},{key:"commit",value:function(){this.dirty&&(this.dirty=!1,this.element.setAttribute(this.name,this._getValue()))}}]),t}(),N=function(){function t(e){m(this,t),this.value=void 0,this.committer=e}return g(t,[{key:"setValue",value:function(t){t===o.a||w(t)&&t===this.value||(this.value=t,Object(r.b)(t)||(this.committer.dirty=!0))}},{key:"commit",value:function(){for(;Object(r.b)(this.value);){var t=this.value;this.value=o.a,t(this)}this.value!==o.a&&this.committer.commit()}}]),t}(),k=function(){function t(e){m(this,t),this.value=void 0,this.__pendingValue=void 0,this.options=e}return g(t,[{key:"appendInto",value:function(t){this.startNode=t.appendChild(Object(s.c)()),this.endNode=t.appendChild(Object(s.c)())}},{key:"insertAfterNode",value:function(t){this.startNode=t,this.endNode=t.nextSibling}},{key:"appendIntoPart",value:function(t){t.__insert(this.startNode=Object(s.c)()),t.__insert(this.endNode=Object(s.c)())}},{key:"insertAfterPart",value:function(t){t.__insert(this.startNode=Object(s.c)()),this.endNode=t.endNode,t.endNode=this.startNode}},{key:"setValue",value:function(t){this.__pendingValue=t}},{key:"commit",value:function(){if(null!==this.startNode.parentNode){for(;Object(r.b)(this.__pendingValue);){var t=this.__pendingValue;this.__pendingValue=o.a,t(this)}var e=this.__pendingValue;e!==o.a&&(w(e)?e!==this.value&&this.__commitText(e):e instanceof a.b?this.__commitTemplateResult(e):e instanceof Node?this.__commitNode(e):x(e)?this.__commitIterable(e):e===o.b?(this.value=o.b,this.clear()):this.__commitText(e))}}},{key:"__insert",value:function(t){this.endNode.parentNode.insertBefore(t,this.endNode)}},{key:"__commitNode",value:function(t){this.value!==t&&(this.clear(),this.__insert(t),this.value=t)}},{key:"__commitText",value:function(t){var e=this.startNode.nextSibling,n="string"==typeof(t=null==t?"":t)?t:String(t);e===this.endNode.previousSibling&&3===e.nodeType?e.data=n:this.__commitNode(document.createTextNode(n)),this.value=t}},{key:"__commitTemplateResult",value:function(t){var e=this.options.templateFactory(t);if(this.value instanceof u.a&&this.value.template===e)this.value.update(t.values);else{var n=new u.a(e,t.processor,this.options),r=n._clone();n.update(t.values),this.__commitNode(r),this.value=n}}},{key:"__commitIterable",value:function(e){Array.isArray(this.value)||(this.value=[],this.clear());var n,r,i=this.value,o=0,u=v(e);try{for(u.s();!(r=u.n()).done;){var a=r.value;void 0===(n=i[o])&&(n=new t(this.options),i.push(n),0===o?n.appendIntoPart(this):n.insertAfterPart(i[o-1])),n.setValue(a),n.commit(),o++}}catch(t){u.e(t)}finally{u.f()}o<i.length&&(i.length=o,this.clear(n&&n.endNode))}},{key:"clear",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.startNode;Object(i.b)(this.startNode.parentNode,t.nextSibling,this.endNode)}}]),t}(),S=function(){function t(e,n,r){if(m(this,t),this.value=void 0,this.__pendingValue=void 0,2!==r.length||""!==r[0]||""!==r[1])throw new Error("Boolean attributes can only contain a single expression");this.element=e,this.name=n,this.strings=r}return g(t,[{key:"setValue",value:function(t){this.__pendingValue=t}},{key:"commit",value:function(){for(;Object(r.b)(this.__pendingValue);){var t=this.__pendingValue;this.__pendingValue=o.a,t(this)}if(this.__pendingValue!==o.a){var e=!!this.__pendingValue;this.value!==e&&(e?this.element.setAttribute(this.name,""):this.element.removeAttribute(this.name),this.value=e),this.__pendingValue=o.a}}}]),t}(),j=function(t){l(n,t);var e=h(n);function n(t,r,i){var o;return m(this,n),(o=e.call(this,t,r,i)).single=2===i.length&&""===i[0]&&""===i[1],o}return g(n,[{key:"_createPart",value:function(){return new E(this)}},{key:"_getValue",value:function(){return this.single?this.parts[0].value:c(p(n.prototype),"_getValue",this).call(this)}},{key:"commit",value:function(){this.dirty&&(this.dirty=!1,this.element[this.name]=this._getValue())}}]),n}(O),E=function(t){l(n,t);var e=h(n);function n(){return m(this,n),e.apply(this,arguments)}return n}(N),T=!1;!function(){try{var t={get capture(){return T=!0,!1}};window.addEventListener("test",t,t),window.removeEventListener("test",t,t)}catch(t){}}();var A=function(){function t(e,n,r){var i=this;m(this,t),this.value=void 0,this.__pendingValue=void 0,this.element=e,this.eventName=n,this.eventContext=r,this.__boundHandleEvent=function(t){return i.handleEvent(t)}}return g(t,[{key:"setValue",value:function(t){this.__pendingValue=t}},{key:"commit",value:function(){for(;Object(r.b)(this.__pendingValue);){var t=this.__pendingValue;this.__pendingValue=o.a,t(this)}if(this.__pendingValue!==o.a){var e=this.__pendingValue,n=this.value,i=null==e||null!=n&&(e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive),u=null!=e&&(null==n||i);i&&this.element.removeEventListener(this.eventName,this.__boundHandleEvent,this.__options),u&&(this.__options=V(e),this.element.addEventListener(this.eventName,this.__boundHandleEvent,this.__options)),this.value=e,this.__pendingValue=o.a}}},{key:"handleEvent",value:function(t){"function"==typeof this.value?this.value.call(this.eventContext||this.element,t):this.value.handleEvent(t)}}]),t}(),V=function(t){return t&&(T?{capture:t.capture,passive:t.passive,once:t.once}:t.capture)}},312:function(t,e,n){"use strict";n.d(e,"f",(function(){return r})),n.d(e,"g",(function(){return i})),n.d(e,"b",(function(){return u})),n.d(e,"a",(function(){return a})),n.d(e,"d",(function(){return c})),n.d(e,"c",(function(){return l})),n.d(e,"e",(function(){return f}));
56
- /**
57
- * @license
58
- * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
59
- * This code may only be used under the BSD style license found at
60
- * http://polymer.github.io/LICENSE.txt
61
- * The complete set of authors may be found at
62
- * http://polymer.github.io/AUTHORS.txt
63
- * The complete set of contributors may be found at
64
- * http://polymer.github.io/CONTRIBUTORS.txt
65
- * Code distributed by Google as part of the polymer project is also
66
- * subject to an additional IP rights grant found at
67
- * http://polymer.github.io/PATENTS.txt
68
- */
69
- var r="{{lit-".concat(String(Math.random()).slice(2),"}}"),i="\x3c!--".concat(r,"--\x3e"),o=new RegExp("".concat(r,"|").concat(i)),u="$lit$",a=function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.parts=[],this.element=n;for(var i=[],a=[],c=document.createTreeWalker(n.content,133,null,!1),h=0,d=-1,p=0,v=e.strings,y=e.values.length;p<y;){var m=c.nextNode();if(null!==m){if(d++,1===m.nodeType){if(m.hasAttributes()){for(var b=m.attributes,g=b.length,_=0,w=0;w<g;w++)s(b[w].name,u)&&_++;for(;_-- >0;){var x=v[p],O=f.exec(x)[2],N=O.toLowerCase()+u,k=m.getAttribute(N);m.removeAttribute(N);var S=k.split(o);this.parts.push({type:"attribute",index:d,name:O,strings:S}),p+=S.length-1}}"TEMPLATE"===m.tagName&&(a.push(m),c.currentNode=m.content)}else if(3===m.nodeType){var j=m.data;if(j.indexOf(r)>=0){for(var E=m.parentNode,T=j.split(o),A=T.length-1,V=0;V<A;V++){var P=void 0,C=T[V];if(""===C)P=l();else{var R=f.exec(C);null!==R&&s(R[2],u)&&(C=C.slice(0,R.index)+R[1]+R[2].slice(0,-u.length)+R[3]),P=document.createTextNode(C)}E.insertBefore(P,m),this.parts.push({type:"node",index:++d})}""===T[A]?(E.insertBefore(l(),m),i.push(m)):m.data=T[A],p+=A}}else if(8===m.nodeType)if(m.data===r){var I=m.parentNode;null!==m.previousSibling&&d!==h||(d++,I.insertBefore(l(),m)),h=d,this.parts.push({type:"node",index:d}),null===m.nextSibling?m.data="":(i.push(m),d--),p++}else for(var M=-1;-1!==(M=m.data.indexOf(r,M+1));)this.parts.push({type:"node",index:-1}),p++}else c.currentNode=a.pop()}for(var L=0,H=i;L<H.length;L++){var B=H[L];B.parentNode.removeChild(B)}},s=function(t,e){var n=t.length-e.length;return n>=0&&t.slice(n)===e},c=function(t){return-1!==t.index},l=function(){return document.createComment("")},f=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/},314:function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"c",(function(){return i})),n.d(e,"b",(function(){return o}));
70
- /**
71
- * @license
72
- * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
73
- * This code may only be used under the BSD style license found at
74
- * http://polymer.github.io/LICENSE.txt
75
- * The complete set of authors may be found at
76
- * http://polymer.github.io/AUTHORS.txt
77
- * The complete set of contributors may be found at
78
- * http://polymer.github.io/CONTRIBUTORS.txt
79
- * Code distributed by Google as part of the polymer project is also
80
- * subject to an additional IP rights grant found at
81
- * http://polymer.github.io/PATENTS.txt
82
- */
83
- var r="undefined"!=typeof window&&null!=window.customElements&&void 0!==window.customElements.polyfillWrapFlushCallback,i=function(t,e){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;e!==n;){var i=e.nextSibling;t.insertBefore(e,r),e=i}},o=function(t,e){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;e!==n;){var r=e.nextSibling;t.removeChild(e),e=r}}},316:function(t,e,n){"use strict";n.d(e,"b",(function(){return v})),n.d(e,"a",(function(){return y}));var r=n(314),i=n(312);function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t,e,n){return(u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=l(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}})(t,e,n||t)}function a(t,e){return(a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function s(t){var e=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(t){return!1}}();return function(){var n,r=l(t);if(e){var i=l(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return c(this,n)}}function c(t,e){return!e||"object"!==o(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function d(t,e,n){return e&&h(t.prototype,e),n&&h(t,n),t}
84
- /**
85
- * @license
86
- * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
87
- * This code may only be used under the BSD style license found at
88
- * http://polymer.github.io/LICENSE.txt
89
- * The complete set of authors may be found at
90
- * http://polymer.github.io/AUTHORS.txt
91
- * The complete set of contributors may be found at
92
- * http://polymer.github.io/CONTRIBUTORS.txt
93
- * Code distributed by Google as part of the polymer project is also
94
- * subject to an additional IP rights grant found at
95
- * http://polymer.github.io/PATENTS.txt
96
- */var p=" ".concat(i.f," "),v=function(){function t(e,n,r,i){f(this,t),this.strings=e,this.values=n,this.type=r,this.processor=i}return d(t,[{key:"getHTML",value:function(){for(var t=this.strings.length-1,e="",n=!1,r=0;r<t;r++){var o=this.strings[r],u=o.lastIndexOf("\x3c!--");n=(u>-1||n)&&-1===o.indexOf("--\x3e",u+1);var a=i.e.exec(o);e+=null===a?o+(n?p:i.g):o.substr(0,a.index)+a[1]+a[2]+i.b+a[3]+i.f}return e+=this.strings[t]}},{key:"getTemplateElement",value:function(){var t=document.createElement("template");return t.innerHTML=this.getHTML(),t}}]),t}(),y=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&a(t,e)}(n,t);var e=s(n);function n(){return f(this,n),e.apply(this,arguments)}return d(n,[{key:"getHTML",value:function(){return"<svg>".concat(u(l(n.prototype),"getHTML",this).call(this),"</svg>")}},{key:"getTemplateElement",value:function(){var t=u(l(n.prototype),"getTemplateElement",this).call(this),e=t.content,i=e.firstChild;return e.removeChild(i),Object(r.c)(e,i.firstChild),t}}]),n}(v)},317:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return o}));var r=n(312);
97
- /**
98
- * @license
99
- * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
100
- * This code may only be used under the BSD style license found at
101
- * http://polymer.github.io/LICENSE.txt
102
- * The complete set of authors may be found at
103
- * http://polymer.github.io/AUTHORS.txt
104
- * The complete set of contributors may be found at
105
- * http://polymer.github.io/CONTRIBUTORS.txt
106
- * Code distributed by Google as part of the polymer project is also
107
- * subject to an additional IP rights grant found at
108
- * http://polymer.github.io/PATENTS.txt
109
- */function i(t){var e=o.get(t.type);void 0===e&&(e={stringsArray:new WeakMap,keyString:new Map},o.set(t.type,e));var n=e.stringsArray.get(t.strings);if(void 0!==n)return n;var i=t.strings.join(r.f);return void 0===(n=e.keyString.get(i))&&(n=new r.a(t,t.getTemplateElement()),e.keyString.set(i,n)),e.stringsArray.set(t.strings,n),n}var o=new Map},318:function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return o}));
110
- /**
111
- * @license
112
- * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
113
- * This code may only be used under the BSD style license found at
114
- * http://polymer.github.io/LICENSE.txt
115
- * The complete set of authors may be found at
116
- * http://polymer.github.io/AUTHORS.txt
117
- * The complete set of contributors may be found at
118
- * http://polymer.github.io/CONTRIBUTORS.txt
119
- * Code distributed by Google as part of the polymer project is also
120
- * subject to an additional IP rights grant found at
121
- * http://polymer.github.io/PATENTS.txt
122
- */
123
- var r=new WeakMap,i=function(t){return function(){var e=t.apply(void 0,arguments);return r.set(e,!0),e}},o=function(t){return"function"==typeof t&&r.has(t)}},319:function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return i}));
124
- /**
125
- * @license
126
- * Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
127
- * This code may only be used under the BSD style license found at
128
- * http://polymer.github.io/LICENSE.txt
129
- * The complete set of authors may be found at
130
- * http://polymer.github.io/AUTHORS.txt
131
- * The complete set of contributors may be found at
132
- * http://polymer.github.io/CONTRIBUTORS.txt
133
- * Code distributed by Google as part of the polymer project is also
134
- * subject to an additional IP rights grant found at
135
- * http://polymer.github.io/PATENTS.txt
136
- */
137
- var r={},i={}},320:function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var r=n(314),i=n(312);function o(t){return function(t){if(Array.isArray(t))return s(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||a(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=a(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}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 o,u=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return u=t.done,t},e:function(t){s=!0,o=t},f:function(){try{u||null==n.return||n.return()}finally{if(s)throw o}}}}function a(t,e){if(t){if("string"==typeof t)return s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(t,e):void 0}}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}
138
- /**
139
- * @license
140
- * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
141
- * This code may only be used under the BSD style license found at
142
- * http://polymer.github.io/LICENSE.txt
143
- * The complete set of authors may be found at
144
- * http://polymer.github.io/AUTHORS.txt
145
- * The complete set of contributors may be found at
146
- * http://polymer.github.io/CONTRIBUTORS.txt
147
- * Code distributed by Google as part of the polymer project is also
148
- * subject to an additional IP rights grant found at
149
- * http://polymer.github.io/PATENTS.txt
150
- */
151
- var l=function(){function t(e,n,r){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.__parts=[],this.template=e,this.processor=n,this.options=r}var e,n,a;return e=t,(n=[{key:"update",value:function(t){var e,n=0,r=u(this.__parts);try{for(r.s();!(e=r.n()).done;){var i=e.value;void 0!==i&&i.setValue(t[n]),n++}}catch(t){r.e(t)}finally{r.f()}var o,a=u(this.__parts);try{for(a.s();!(o=a.n()).done;){var s=o.value;void 0!==s&&s.commit()}}catch(t){a.e(t)}finally{a.f()}}},{key:"_clone",value:function(){for(var t,e=r.a?this.template.element.content.cloneNode(!0):document.importNode(this.template.element.content,!0),n=[],u=this.template.parts,a=document.createTreeWalker(e,133,null,!1),s=0,c=0,l=a.nextNode();s<u.length;)if(t=u[s],Object(i.d)(t)){for(;c<t.index;)c++,"TEMPLATE"===l.nodeName&&(n.push(l),a.currentNode=l.content),null===(l=a.nextNode())&&(a.currentNode=n.pop(),l=a.nextNode());if("node"===t.type){var f=this.processor.handleTextExpression(this.options);f.insertAfterNode(l.previousSibling),this.__parts.push(f)}else{var h;(h=this.__parts).push.apply(h,o(this.processor.handleAttributeExpressions(l,t.name,t.strings,this.options)))}s++}else this.__parts.push(void 0),s++;return r.a&&(document.adoptNode(e),customElements.upgrade(e)),e}}])&&c(e.prototype,n),a&&c(e,a),t}()},321:function(t,e,n){"use strict";n.d(e,"a",(function(){return u})),n.d(e,"b",(function(){return a}));var r=n(314),i=n(311),o=n(317),u=new WeakMap,a=function(t,e,n){var a=u.get(e);void 0===a&&(Object(r.b)(e,e.firstChild),u.set(e,a=new i.e(Object.assign({templateFactory:o.b},n))),a.appendInto(e)),a.setValue(t),a.commit()}}}]);
@@ -1,14 +0,0 @@
1
- /*!
2
- * __ __ __ __
3
- * /\ \/\ \ /\ \ __ /\ \
4
- * \ \ \_\ \ __ __ \_\ \ __ /\_\ __ ___ \ \ \/'\
5
- * \ \ _ \ /\ \/\ \ /'_` \ /'__`\ \/\ \ /'__`\ /'___\\ \ , <
6
- * \ \ \ \ \\ \ \_\ \ /\ \L\ \ /\ __/ \ \ \ /\ \L\.\_ /\ \__/ \ \ \\`\
7
- * \ \_\ \_\\/`____ \\ \___,_\\ \____\ _\ \ \\ \__/.\_\\ \____\ \ \_\ \_\
8
- * \/_/\/_/ `/___/> \\/__,_ / \/____//\ \_\ \\/__/\/_/ \/____/ \/_/\/_/
9
- * /\___/ \ \____/
10
- * \/__/ \/___/
11
- *
12
- * Powered by Hydejack v9.0.2 <https://hydejack.com/>
13
- */
14
- (window.webpackJsonp=window.webpackJsonp||[]).push([[12],{324:function(t,e){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"===("undefined"==typeof window?"undefined":r(window))&&(n=window)}t.exports=n},343:function(t,e,r){"use strict";var n="URLSearchParams"in self,o="Symbol"in self&&"iterator"in Symbol,i="FileReader"in self&&"Blob"in self&&function(){try{return new Blob,!0}catch(t){return!1}}(),s="FormData"in self,a="ArrayBuffer"in self;if(a)var u=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],f=ArrayBuffer.isView||function(t){return t&&u.indexOf(Object.prototype.toString.call(t))>-1};function l(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function c(t){return"string"!=typeof t&&(t=String(t)),t}function h(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return o&&(e[Symbol.iterator]=function(){return e}),e}function y(t){this.map={},t instanceof y?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function p(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function d(t){return new Promise((function(e,r){t.onload=function(){e(t.result)},t.onerror=function(){r(t.error)}}))}function b(t){var e=new FileReader,r=d(e);return e.readAsArrayBuffer(t),r}function v(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function m(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:i&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:s&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:n&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():a&&i&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=v(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a&&(ArrayBuffer.prototype.isPrototypeOf(t)||f(t))?this._bodyArrayBuffer=v(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i&&(this.blob=function(){var t=p(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?p(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(b)}),this.text=function(){var t,e,r,n=p(this);if(n)return n;if(this._bodyBlob)return t=this._bodyBlob,e=new FileReader,r=d(e),e.readAsText(t),r;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),r=new Array(e.length),n=0;n<e.length;n++)r[n]=String.fromCharCode(e[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},s&&(this.formData=function(){return this.text().then(O)}),this.json=function(){return this.text().then(JSON.parse)},this}y.prototype.append=function(t,e){t=l(t),e=c(e);var r=this.map[t];this.map[t]=r?r+", "+e:e},y.prototype.delete=function(t){delete this.map[l(t)]},y.prototype.get=function(t){return t=l(t),this.has(t)?this.map[t]:null},y.prototype.has=function(t){return this.map.hasOwnProperty(l(t))},y.prototype.set=function(t,e){this.map[l(t)]=c(e)},y.prototype.forEach=function(t,e){for(var r in this.map)this.map.hasOwnProperty(r)&&t.call(e,this.map[r],r,this)},y.prototype.keys=function(){var t=[];return this.forEach((function(e,r){t.push(r)})),h(t)},y.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),h(t)},y.prototype.entries=function(){var t=[];return this.forEach((function(e,r){t.push([r,e])})),h(t)},o&&(y.prototype[Symbol.iterator]=y.prototype.entries);var w=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function g(t,e){var r,n,o=(e=e||{}).body;if(t instanceof g){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new y(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,o||null==t._bodyInit||(o=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new y(e.headers)),this.method=(r=e.method||this.method||"GET",n=r.toUpperCase(),w.indexOf(n)>-1?n:r),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(o)}function O(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var r=t.split("="),n=r.shift().replace(/\+/g," "),o=r.join("=").replace(/\+/g," ");e.append(decodeURIComponent(n),decodeURIComponent(o))}})),e}function _(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new y(e.headers),this.url=e.url||"",this._initBody(t)}g.prototype.clone=function(){return new g(this,{body:this._bodyInit})},m.call(g.prototype),m.call(_.prototype),_.prototype.clone=function(){return new _(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new y(this.headers),url:this.url})},_.error=function(){var t=new _(null,{status:0,statusText:""});return t.type="error",t};var E=[301,302,303,307,308];_.redirect=function(t,e){if(-1===E.indexOf(e))throw new RangeError("Invalid status code");return new _(null,{status:e,headers:{location:t}})};var A=self.DOMException;try{new A}catch(t){(A=function(t,e){this.message=t,this.name=e;var r=Error(t);this.stack=r.stack}).prototype=Object.create(Error.prototype),A.prototype.constructor=A}function T(t,e){return new Promise((function(r,n){var o=new g(t,e);if(o.signal&&o.signal.aborted)return n(new A("Aborted","AbortError"));var s=new XMLHttpRequest;function a(){s.abort()}s.onload=function(){var t,e,n={status:s.status,statusText:s.statusText,headers:(t=s.getAllResponseHeaders()||"",e=new y,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var r=t.split(":"),n=r.shift().trim();if(n){var o=r.join(":").trim();e.append(n,o)}})),e)};n.url="responseURL"in s?s.responseURL:n.headers.get("X-Request-URL");var o="response"in s?s.response:s.responseText;r(new _(o,n))},s.onerror=function(){n(new TypeError("Network request failed"))},s.ontimeout=function(){n(new TypeError("Network request failed"))},s.onabort=function(){n(new A("Aborted","AbortError"))},s.open(o.method,o.url,!0),"include"===o.credentials?s.withCredentials=!0:"omit"===o.credentials&&(s.withCredentials=!1),"responseType"in s&&i&&(s.responseType="blob"),o.headers.forEach((function(t,e){s.setRequestHeader(e,t)})),o.signal&&(o.signal.addEventListener("abort",a),s.onreadystatechange=function(){4===s.readyState&&o.signal.removeEventListener("abort",a)}),s.send(void 0===o._bodyInit?null:o._bodyInit)}))}T.polyfill=!0,self.fetch||(self.fetch=T,self.Headers=y,self.Request=g,self.Response=_)},344:function(t,e,r){(function(n){var o,i;function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}void 0===(i="function"==typeof(o=function(){"use strict";function t(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function e(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function r(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}function o(t){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function a(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function u(t,e,r){return(u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,r){var n=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=o(t)););return t}(t,e);if(n){var i=Object.getOwnPropertyDescriptor(n,e);return i.get?i.get.call(r):i.value}})(t,e,r||t)}var f=function(){function e(){t(this,e),Object.defineProperty(this,"listeners",{value:{},writable:!0,configurable:!0})}return r(e,[{key:"addEventListener",value:function(t,e){t in this.listeners||(this.listeners[t]=[]),this.listeners[t].push(e)}},{key:"removeEventListener",value:function(t,e){if(t in this.listeners)for(var r=this.listeners[t],n=0,o=r.length;n<o;n++)if(r[n]===e)return void r.splice(n,1)}},{key:"dispatchEvent",value:function(t){var e=this;if(t.type in this.listeners){for(var r=function(r){setTimeout((function(){return r.call(e,t)}))},n=this.listeners[t.type],o=0,i=n.length;o<i;o++)r(n[o]);return!t.defaultPrevented}}}]),e}(),l=function(e){function n(){var e;return t(this,n),(e=function(t,e){return!e||"object"!==s(e)&&"function"!=typeof e?a(t):e}(this,o(n).call(this))).listeners||f.call(a(e)),Object.defineProperty(a(e),"aborted",{value:!1,writable:!0,configurable:!0}),Object.defineProperty(a(e),"onabort",{value:null,writable:!0,configurable:!0}),e}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&i(t,e)}(n,e),r(n,[{key:"toString",value:function(){return"[object AbortSignal]"}},{key:"dispatchEvent",value:function(t){"abort"===t.type&&(this.aborted=!0,"function"==typeof this.onabort&&this.onabort.call(this,t)),u(o(n.prototype),"dispatchEvent",this).call(this,t)}}]),n}(f),c=function(){function e(){t(this,e),Object.defineProperty(this,"signal",{value:new l,writable:!0,configurable:!0})}return r(e,[{key:"abort",value:function(){var t;try{t=new Event("abort")}catch(e){"undefined"!=typeof document?document.createEvent?(t=document.createEvent("Event")).initEvent("abort",!1,!1):(t=document.createEventObject()).type="abort":t={type:"abort",bubbles:!1,cancelable:!1}}this.signal.dispatchEvent(t)}},{key:"toString",value:function(){return"[object AbortController]"}}]),e}();function h(t){return t.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL?(console.log("__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL=true is set, will force install polyfill"),!0):"function"==typeof t.Request&&!t.Request.prototype.hasOwnProperty("signal")||!t.AbortController}"undefined"!=typeof Symbol&&Symbol.toStringTag&&(c.prototype[Symbol.toStringTag]="AbortController",l.prototype[Symbol.toStringTag]="AbortSignal"),function(t){if(h(t))if(t.fetch){var e=function(t){"function"==typeof t&&(t={fetch:t});var e=t,r=e.fetch,n=e.Request,o=void 0===n?r.Request:n,i=e.AbortController,s=e.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL,a=void 0!==s&&s;if(!h({fetch:r,Request:o,AbortController:i,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:a}))return{fetch:r,Request:u};var u=o;(u&&!u.prototype.hasOwnProperty("signal")||a)&&((u=function(t,e){var r;e&&e.signal&&(r=e.signal,delete e.signal);var n=new o(t,e);return r&&Object.defineProperty(n,"signal",{writable:!1,enumerable:!1,configurable:!0,value:r}),n}).prototype=o.prototype);var f=r;return{fetch:function(t,e){var r=u&&u.prototype.isPrototypeOf(t)?t.signal:e?e.signal:void 0;if(r){var n;try{n=new DOMException("Aborted","AbortError")}catch(t){(n=new Error("Aborted")).name="AbortError"}if(r.aborted)return Promise.reject(n);var o=new Promise((function(t,e){r.addEventListener("abort",(function(){return e(n)}),{once:!0})}));return e&&e.signal&&delete e.signal,Promise.race([o,f(t,e)])}return f(t,e)},Request:u}}(t),r=e.fetch,n=e.Request;t.fetch=r,t.Request=n,Object.defineProperty(t,"AbortController",{writable:!0,enumerable:!1,configurable:!0,value:c}),Object.defineProperty(t,"AbortSignal",{writable:!0,enumerable:!1,configurable:!0,value:l})}else console.warn("fetch() is not available, cannot install abortcontroller-polyfill")}("undefined"!=typeof self?self:n)})?o.call(e,r,e,t):o)||(t.exports=i)}).call(this,r(324))}}]);
@@ -1,14 +0,0 @@
1
- /*!
2
- * __ __ __ __
3
- * /\ \/\ \ /\ \ __ /\ \
4
- * \ \ \_\ \ __ __ \_\ \ __ /\_\ __ ___ \ \ \/'\
5
- * \ \ _ \ /\ \/\ \ /'_` \ /'__`\ \/\ \ /'__`\ /'___\\ \ , <
6
- * \ \ \ \ \\ \ \_\ \ /\ \L\ \ /\ __/ \ \ \ /\ \L\.\_ /\ \__/ \ \ \\`\
7
- * \ \_\ \_\\/`____ \\ \___,_\\ \____\ _\ \ \\ \__/.\_\\ \____\ \ \_\ \_\
8
- * \/_/\/_/ `/___/> \\/__,_ / \/____//\ \_\ \\/__/\/_/ \/____/ \/_/\/_/
9
- * /\___/ \ \____/
10
- * \/__/ \/___/
11
- *
12
- * Powered by Hydejack v9.0.3 <https://hydejack.com/>
13
- */
14
- (window.webpackJsonp=window.webpackJsonp||[]).push([[9],{320:function(t,e){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"===("undefined"==typeof window?"undefined":r(window))&&(n=window)}t.exports=n},332:function(t,e,r){"use strict";var n="URLSearchParams"in self,o="Symbol"in self&&"iterator"in Symbol,i="FileReader"in self&&"Blob"in self&&function(){try{return new Blob,!0}catch(t){return!1}}(),s="FormData"in self,a="ArrayBuffer"in self;if(a)var u=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],f=ArrayBuffer.isView||function(t){return t&&u.indexOf(Object.prototype.toString.call(t))>-1};function l(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function c(t){return"string"!=typeof t&&(t=String(t)),t}function h(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return o&&(e[Symbol.iterator]=function(){return e}),e}function y(t){this.map={},t instanceof y?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function p(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function d(t){return new Promise((function(e,r){t.onload=function(){e(t.result)},t.onerror=function(){r(t.error)}}))}function b(t){var e=new FileReader,r=d(e);return e.readAsArrayBuffer(t),r}function v(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function m(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:i&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:s&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:n&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():a&&i&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=v(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a&&(ArrayBuffer.prototype.isPrototypeOf(t)||f(t))?this._bodyArrayBuffer=v(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i&&(this.blob=function(){var t=p(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?p(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(b)}),this.text=function(){var t,e,r,n=p(this);if(n)return n;if(this._bodyBlob)return t=this._bodyBlob,e=new FileReader,r=d(e),e.readAsText(t),r;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),r=new Array(e.length),n=0;n<e.length;n++)r[n]=String.fromCharCode(e[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},s&&(this.formData=function(){return this.text().then(O)}),this.json=function(){return this.text().then(JSON.parse)},this}y.prototype.append=function(t,e){t=l(t),e=c(e);var r=this.map[t];this.map[t]=r?r+", "+e:e},y.prototype.delete=function(t){delete this.map[l(t)]},y.prototype.get=function(t){return t=l(t),this.has(t)?this.map[t]:null},y.prototype.has=function(t){return this.map.hasOwnProperty(l(t))},y.prototype.set=function(t,e){this.map[l(t)]=c(e)},y.prototype.forEach=function(t,e){for(var r in this.map)this.map.hasOwnProperty(r)&&t.call(e,this.map[r],r,this)},y.prototype.keys=function(){var t=[];return this.forEach((function(e,r){t.push(r)})),h(t)},y.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),h(t)},y.prototype.entries=function(){var t=[];return this.forEach((function(e,r){t.push([r,e])})),h(t)},o&&(y.prototype[Symbol.iterator]=y.prototype.entries);var w=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function g(t,e){var r,n,o=(e=e||{}).body;if(t instanceof g){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new y(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,o||null==t._bodyInit||(o=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new y(e.headers)),this.method=(r=e.method||this.method||"GET",n=r.toUpperCase(),w.indexOf(n)>-1?n:r),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(o)}function O(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var r=t.split("="),n=r.shift().replace(/\+/g," "),o=r.join("=").replace(/\+/g," ");e.append(decodeURIComponent(n),decodeURIComponent(o))}})),e}function _(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new y(e.headers),this.url=e.url||"",this._initBody(t)}g.prototype.clone=function(){return new g(this,{body:this._bodyInit})},m.call(g.prototype),m.call(_.prototype),_.prototype.clone=function(){return new _(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new y(this.headers),url:this.url})},_.error=function(){var t=new _(null,{status:0,statusText:""});return t.type="error",t};var E=[301,302,303,307,308];_.redirect=function(t,e){if(-1===E.indexOf(e))throw new RangeError("Invalid status code");return new _(null,{status:e,headers:{location:t}})};var A=self.DOMException;try{new A}catch(t){(A=function(t,e){this.message=t,this.name=e;var r=Error(t);this.stack=r.stack}).prototype=Object.create(Error.prototype),A.prototype.constructor=A}function T(t,e){return new Promise((function(r,n){var o=new g(t,e);if(o.signal&&o.signal.aborted)return n(new A("Aborted","AbortError"));var s=new XMLHttpRequest;function a(){s.abort()}s.onload=function(){var t,e,n={status:s.status,statusText:s.statusText,headers:(t=s.getAllResponseHeaders()||"",e=new y,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var r=t.split(":"),n=r.shift().trim();if(n){var o=r.join(":").trim();e.append(n,o)}})),e)};n.url="responseURL"in s?s.responseURL:n.headers.get("X-Request-URL");var o="response"in s?s.response:s.responseText;r(new _(o,n))},s.onerror=function(){n(new TypeError("Network request failed"))},s.ontimeout=function(){n(new TypeError("Network request failed"))},s.onabort=function(){n(new A("Aborted","AbortError"))},s.open(o.method,o.url,!0),"include"===o.credentials?s.withCredentials=!0:"omit"===o.credentials&&(s.withCredentials=!1),"responseType"in s&&i&&(s.responseType="blob"),o.headers.forEach((function(t,e){s.setRequestHeader(e,t)})),o.signal&&(o.signal.addEventListener("abort",a),s.onreadystatechange=function(){4===s.readyState&&o.signal.removeEventListener("abort",a)}),s.send(void 0===o._bodyInit?null:o._bodyInit)}))}T.polyfill=!0,self.fetch||(self.fetch=T,self.Headers=y,self.Request=g,self.Response=_)},333:function(t,e,r){(function(n){var o,i;function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}void 0===(i="function"==typeof(o=function(){"use strict";function t(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function e(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function r(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}function o(t){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function a(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function u(t,e,r){return(u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,r){var n=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=o(t)););return t}(t,e);if(n){var i=Object.getOwnPropertyDescriptor(n,e);return i.get?i.get.call(r):i.value}})(t,e,r||t)}var f=function(){function e(){t(this,e),Object.defineProperty(this,"listeners",{value:{},writable:!0,configurable:!0})}return r(e,[{key:"addEventListener",value:function(t,e){t in this.listeners||(this.listeners[t]=[]),this.listeners[t].push(e)}},{key:"removeEventListener",value:function(t,e){if(t in this.listeners)for(var r=this.listeners[t],n=0,o=r.length;n<o;n++)if(r[n]===e)return void r.splice(n,1)}},{key:"dispatchEvent",value:function(t){var e=this;if(t.type in this.listeners){for(var r=function(r){setTimeout((function(){return r.call(e,t)}))},n=this.listeners[t.type],o=0,i=n.length;o<i;o++)r(n[o]);return!t.defaultPrevented}}}]),e}(),l=function(e){function n(){var e;return t(this,n),(e=function(t,e){return!e||"object"!==s(e)&&"function"!=typeof e?a(t):e}(this,o(n).call(this))).listeners||f.call(a(e)),Object.defineProperty(a(e),"aborted",{value:!1,writable:!0,configurable:!0}),Object.defineProperty(a(e),"onabort",{value:null,writable:!0,configurable:!0}),e}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&i(t,e)}(n,e),r(n,[{key:"toString",value:function(){return"[object AbortSignal]"}},{key:"dispatchEvent",value:function(t){"abort"===t.type&&(this.aborted=!0,"function"==typeof this.onabort&&this.onabort.call(this,t)),u(o(n.prototype),"dispatchEvent",this).call(this,t)}}]),n}(f),c=function(){function e(){t(this,e),Object.defineProperty(this,"signal",{value:new l,writable:!0,configurable:!0})}return r(e,[{key:"abort",value:function(){var t;try{t=new Event("abort")}catch(e){"undefined"!=typeof document?document.createEvent?(t=document.createEvent("Event")).initEvent("abort",!1,!1):(t=document.createEventObject()).type="abort":t={type:"abort",bubbles:!1,cancelable:!1}}this.signal.dispatchEvent(t)}},{key:"toString",value:function(){return"[object AbortController]"}}]),e}();function h(t){return t.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL?(console.log("__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL=true is set, will force install polyfill"),!0):"function"==typeof t.Request&&!t.Request.prototype.hasOwnProperty("signal")||!t.AbortController}"undefined"!=typeof Symbol&&Symbol.toStringTag&&(c.prototype[Symbol.toStringTag]="AbortController",l.prototype[Symbol.toStringTag]="AbortSignal"),function(t){if(h(t))if(t.fetch){var e=function(t){"function"==typeof t&&(t={fetch:t});var e=t,r=e.fetch,n=e.Request,o=void 0===n?r.Request:n,i=e.AbortController,s=e.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL,a=void 0!==s&&s;if(!h({fetch:r,Request:o,AbortController:i,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:a}))return{fetch:r,Request:u};var u=o;(u&&!u.prototype.hasOwnProperty("signal")||a)&&((u=function(t,e){var r;e&&e.signal&&(r=e.signal,delete e.signal);var n=new o(t,e);return r&&Object.defineProperty(n,"signal",{writable:!1,enumerable:!1,configurable:!0,value:r}),n}).prototype=o.prototype);var f=r;return{fetch:function(t,e){var r=u&&u.prototype.isPrototypeOf(t)?t.signal:e?e.signal:void 0;if(r){var n;try{n=new DOMException("Aborted","AbortError")}catch(t){(n=new Error("Aborted")).name="AbortError"}if(r.aborted)return Promise.reject(n);var o=new Promise((function(t,e){r.addEventListener("abort",(function(){return e(n)}),{once:!0})}));return e&&e.signal&&delete e.signal,Promise.race([o,f(t,e)])}return f(t,e)},Request:u}}(t),r=e.fetch,n=e.Request;t.fetch=r,t.Request=n,Object.defineProperty(t,"AbortController",{writable:!0,enumerable:!1,configurable:!0,value:c}),Object.defineProperty(t,"AbortSignal",{writable:!0,enumerable:!1,configurable:!0,value:l})}else console.warn("fetch() is not available, cannot install abortcontroller-polyfill")}("undefined"!=typeof self?self:n)})?o.call(e,r,e,t):o)||(t.exports=i)}).call(this,r(320))}}]);
@@ -1,14 +0,0 @@
1
- /*!
2
- * __ __ __ __
3
- * /\ \/\ \ /\ \ __ /\ \
4
- * \ \ \_\ \ __ __ \_\ \ __ /\_\ __ ___ \ \ \/'\
5
- * \ \ _ \ /\ \/\ \ /'_` \ /'__`\ \/\ \ /'__`\ /'___\\ \ , <
6
- * \ \ \ \ \\ \ \_\ \ /\ \L\ \ /\ __/ \ \ \ /\ \L\.\_ /\ \__/ \ \ \\`\
7
- * \ \_\ \_\\/`____ \\ \___,_\\ \____\ _\ \ \\ \__/.\_\\ \____\ \ \_\ \_\
8
- * \/_/\/_/ `/___/> \\/__,_ / \/____//\ \_\ \\/__/\/_/ \/____/ \/_/\/_/
9
- * /\___/ \ \____/
10
- * \/__/ \/___/
11
- *
12
- * Powered by Hydejack v9.0.2 <https://hydejack.com/>
13
- */
14
- (window.webpackJsonp=window.webpackJsonp||[]).push([[13],{306:function(t,e){function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(){"use strict";if("object"===("undefined"==typeof window?"undefined":n(window)))if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var t=window.document,e=[],o=null,i=null;s.prototype.THROTTLE_TIMEOUT=100,s.prototype.POLL_INTERVAL=null,s.prototype.USE_MUTATION_OBSERVER=!0,s._setupCrossOriginUpdater=function(){return o||(o=function(t,n){i=t&&n?l(t,n):{top:0,bottom:0,left:0,right:0,width:0,height:0},e.forEach((function(t){t._checkForIntersections()}))}),o},s._resetCrossOriginUpdater=function(){o=null,i=null},s.prototype.observe=function(t){if(!this._observationTargets.some((function(e){return e.element==t}))){if(!t||1!=t.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:t,entry:null}),this._monitorIntersections(t.ownerDocument),this._checkForIntersections()}},s.prototype.unobserve=function(t){this._observationTargets=this._observationTargets.filter((function(e){return e.element!=t})),this._unmonitorIntersections(t.ownerDocument),0==this._observationTargets.length&&this._unregisterInstance()},s.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},s.prototype.takeRecords=function(){var t=this._queuedEntries.slice();return this._queuedEntries=[],t},s.prototype._initThresholds=function(t){var e=t||[0];return Array.isArray(e)||(e=[e]),e.sort().filter((function(t,e,n){if("number"!=typeof t||isNaN(t)||t<0||t>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return t!==n[e-1]}))},s.prototype._parseRootMargin=function(t){var e=(t||"0px").split(/\s+/).map((function(t){var e=/^(-?\d*\.?\d+)(px|%)$/.exec(t);if(!e)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(e[1]),unit:e[2]}}));return e[1]=e[1]||e[0],e[2]=e[2]||e[0],e[3]=e[3]||e[1],e},s.prototype._monitorIntersections=function(e){var n=e.defaultView;if(n&&-1==this._monitoringDocuments.indexOf(e)){var o=this._checkForIntersections,i=null,r=null;if(this.POLL_INTERVAL?i=n.setInterval(o,this.POLL_INTERVAL):(h(n,"resize",o,!0),h(e,"scroll",o,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in n&&(r=new n.MutationObserver(o)).observe(e,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),this._monitoringDocuments.push(e),this._monitoringUnsubscribes.push((function(){var t=e.defaultView;t&&(i&&t.clearInterval(i),u(t,"resize",o,!0)),u(e,"scroll",o,!0),r&&r.disconnect()})),e!=(this.root&&this.root.ownerDocument||t)){var s=d(e);s&&this._monitorIntersections(s.ownerDocument)}}},s.prototype._unmonitorIntersections=function(e){var n=this._monitoringDocuments.indexOf(e);if(-1!=n){var o=this.root&&this.root.ownerDocument||t;if(!this._observationTargets.some((function(t){var n=t.element.ownerDocument;if(n==e)return!0;for(;n&&n!=o;){var i=d(n);if((n=i&&i.ownerDocument)==e)return!0}return!1}))){var i=this._monitoringUnsubscribes[n];if(this._monitoringDocuments.splice(n,1),this._monitoringUnsubscribes.splice(n,1),i(),e!=o){var r=d(e);r&&this._unmonitorIntersections(r.ownerDocument)}}}},s.prototype._unmonitorAllIntersections=function(){var t=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var e=0;e<t.length;e++)t[e]()},s.prototype._checkForIntersections=function(){if(this.root||!o||i){var t=this._rootIsInDom(),e=t?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach((function(n){var i=n.element,s=c(i),h=this._rootContainsTarget(i),u=n.entry,a=t&&h&&this._computeTargetAndRootIntersection(i,s,e),l=n.entry=new r({time:window.performance&&performance.now&&performance.now(),target:i,boundingClientRect:s,rootBounds:o&&!this.root?null:e,intersectionRect:a});u?t&&h?this._hasCrossedThreshold(u,l)&&this._queuedEntries.push(l):u&&u.isIntersecting&&this._queuedEntries.push(l):this._queuedEntries.push(l)}),this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},s.prototype._computeTargetAndRootIntersection=function(e,n,r){if("none"!=window.getComputedStyle(e).display){for(var s,h,u,a,f,d,g,m,b=n,v=p(e),w=!1;!w&&v;){var _=null,y=1==v.nodeType?window.getComputedStyle(v):{};if("none"==y.display)return null;if(v==this.root||9==v.nodeType)if(w=!0,v==this.root||v==t)o&&!this.root?!i||0==i.width&&0==i.height?(v=null,_=null,b=null):_=i:_=r;else{var I=p(v),E=I&&c(I),T=I&&this._computeTargetAndRootIntersection(I,E,r);E&&T?(v=I,_=l(E,T)):(v=null,b=null)}else{var R=v.ownerDocument;v!=R.body&&v!=R.documentElement&&"visible"!=y.overflow&&(_=c(v))}if(_&&(s=_,h=b,u=void 0,a=void 0,f=void 0,d=void 0,g=void 0,m=void 0,u=Math.max(s.top,h.top),a=Math.min(s.bottom,h.bottom),f=Math.max(s.left,h.left),d=Math.min(s.right,h.right),m=a-u,b=(g=d-f)>=0&&m>=0&&{top:u,bottom:a,left:f,right:d,width:g,height:m}||null),!b)break;v=v&&p(v)}return b}},s.prototype._getRootRect=function(){var e;if(this.root)e=c(this.root);else{var n=t.documentElement,o=t.body;e={top:0,left:0,right:n.clientWidth||o.clientWidth,width:n.clientWidth||o.clientWidth,bottom:n.clientHeight||o.clientHeight,height:n.clientHeight||o.clientHeight}}return this._expandRectByRootMargin(e)},s.prototype._expandRectByRootMargin=function(t){var e=this._rootMarginValues.map((function(e,n){return"px"==e.unit?e.value:e.value*(n%2?t.width:t.height)/100})),n={top:t.top-e[0],right:t.right+e[1],bottom:t.bottom+e[2],left:t.left-e[3]};return n.width=n.right-n.left,n.height=n.bottom-n.top,n},s.prototype._hasCrossedThreshold=function(t,e){var n=t&&t.isIntersecting?t.intersectionRatio||0:-1,o=e.isIntersecting?e.intersectionRatio||0:-1;if(n!==o)for(var i=0;i<this.thresholds.length;i++){var r=this.thresholds[i];if(r==n||r==o||r<n!=r<o)return!0}},s.prototype._rootIsInDom=function(){return!this.root||f(t,this.root)},s.prototype._rootContainsTarget=function(e){return f(this.root||t,e)&&(!this.root||this.root.ownerDocument==e.ownerDocument)},s.prototype._registerInstance=function(){e.indexOf(this)<0&&e.push(this)},s.prototype._unregisterInstance=function(){var t=e.indexOf(this);-1!=t&&e.splice(t,1)},window.IntersectionObserver=s,window.IntersectionObserverEntry=r}function r(t){this.time=t.time,this.target=t.target,this.rootBounds=a(t.rootBounds),this.boundingClientRect=a(t.boundingClientRect),this.intersectionRect=a(t.intersectionRect||{top:0,bottom:0,left:0,right:0,width:0,height:0}),this.isIntersecting=!!t.intersectionRect;var e=this.boundingClientRect,n=e.width*e.height,o=this.intersectionRect,i=o.width*o.height;this.intersectionRatio=n?Number((i/n).toFixed(4)):this.isIntersecting?1:0}function s(t,e){var n,o,i,r=e||{};if("function"!=typeof t)throw new Error("callback must be a function");if(r.root&&1!=r.root.nodeType)throw new Error("root must be an Element");this._checkForIntersections=(n=this._checkForIntersections.bind(this),o=this.THROTTLE_TIMEOUT,i=null,function(){i||(i=setTimeout((function(){n(),i=null}),o))}),this._callback=t,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(r.rootMargin),this.thresholds=this._initThresholds(r.threshold),this.root=r.root||null,this.rootMargin=this._rootMarginValues.map((function(t){return t.value+t.unit})).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}function h(t,e,n,o){"function"==typeof t.addEventListener?t.addEventListener(e,n,o||!1):"function"==typeof t.attachEvent&&t.attachEvent("on"+e,n)}function u(t,e,n,o){"function"==typeof t.removeEventListener?t.removeEventListener(e,n,o||!1):"function"==typeof t.detatchEvent&&t.detatchEvent("on"+e,n)}function c(t){var e;try{e=t.getBoundingClientRect()}catch(t){}return e?(e.width&&e.height||(e={top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.right-e.left,height:e.bottom-e.top}),e):{top:0,bottom:0,left:0,right:0,width:0,height:0}}function a(t){return!t||"x"in t?t:{top:t.top,y:t.top,bottom:t.bottom,left:t.left,x:t.left,right:t.right,width:t.width,height:t.height}}function l(t,e){var n=e.top-t.top,o=e.left-t.left;return{top:n,left:o,height:e.height,width:e.width,bottom:n+e.height,right:o+e.width}}function f(t,e){for(var n=e;n;){if(n==t)return!0;n=p(n)}return!1}function p(e){var n=e.parentNode;return 9==e.nodeType&&e!=t?d(e):n&&11==n.nodeType&&n.host?n.host:n&&n.assignedSlot?n.assignedSlot.parentNode:n}function d(t){try{return t.defaultView&&t.defaultView.frameElement||null}catch(t){return null}}}()}}]);
@@ -1,33 +0,0 @@
1
- /*!
2
- * __ __ __ __
3
- * /\ \/\ \ /\ \ __ /\ \
4
- * \ \ \_\ \ __ __ \_\ \ __ /\_\ __ ___ \ \ \/'\
5
- * \ \ _ \ /\ \/\ \ /'_` \ /'__`\ \/\ \ /'__`\ /'___\\ \ , <
6
- * \ \ \ \ \\ \ \_\ \ /\ \L\ \ /\ __/ \ \ \ /\ \L\.\_ /\ \__/ \ \ \\`\
7
- * \ \_\ \_\\/`____ \\ \___,_\\ \____\ _\ \ \\ \__/.\_\\ \____\ \ \_\ \_\
8
- * \/_/\/_/ `/___/> \\/__,_ / \/____//\ \_\ \\/__/\/_/ \/____/ \/_/\/_/
9
- * /\___/ \ \____/
10
- * \/__/ \/___/
11
- *
12
- * Powered by Hydejack v9.0.2 <https://hydejack.com/>
13
- */
14
- (window.webpackJsonp=window.webpackJsonp||[]).push([[14],{347:function(e,t,r){"use strict";r.r(t),r.d(t,"HyPushState",(function(){return Ke}));var n,o=r(322),i=r(313),c=r(300),a=r(326),u=r(1),s=function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.scheduler=t,n.work=r,n}return Object(u.e)(t,e),t.prototype.requestAsyncId=function(t,r,n){return void 0===n&&(n=0),null!==n&&n>0?e.prototype.requestAsyncId.call(this,t,r,n):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame((function(){return t.flush(void 0)}))))},t.prototype.recycleAsyncId=function(t,r,n){if(void 0===n&&(n=0),null!==n&&n>0||null===n&&this.delay>0)return e.prototype.recycleAsyncId.call(this,t,r,n);0===t.actions.length&&(cancelAnimationFrame(r),t.scheduled=void 0)},t}(r(147).a),l=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(u.e)(t,e),t.prototype.flush=function(e){this.active=!0,this.scheduled=void 0;var t,r=this.actions,n=-1,o=r.length;e=e||r.shift();do{if(t=e.execute(e.state,e.delay))break}while(++n<o&&(e=r.shift()));if(this.active=!1,t){for(;++n<o&&(e=r.shift());)e.unsubscribe();throw t}},t}(r(146).a))(s),f=r(350),h=r(352),p=r(31),b=r(151),y=r(152),d=r(325),v=r(329),m=r(327),O=r(9),j=r(323),g=r(64),w=r(5);function S(e){var t=e.error;e.subscriber.error(t)}!function(e){e.NEXT="N",e.ERROR="E",e.COMPLETE="C"}(n||(n={}));var P=function(){function e(e,t,r){this.kind=e,this.value=t,this.error=r,this.hasValue="N"===e}return e.prototype.observe=function(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}},e.prototype.do=function(e,t,r){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return r&&r()}},e.prototype.accept=function(e,t,r){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,r)},e.prototype.toObservable=function(){var e,t;switch(this.kind){case"N":return Object(g.a)(this.value);case"E":return e=this.error,t?new w.a((function(r){return t.schedule(S,0,{error:e,subscriber:r})})):new w.a((function(t){return t.error(e)}));case"C":return j.a}throw new Error("unexpected notification kind value")},e.createNext=function(t){return void 0!==t?new e("N",t):e.undefinedValueNotification},e.createError=function(t){return new e("E",void 0,t)},e.createComplete=function(){return e.completeNotification},e.completeNotification=new e("C"),e.undefinedValueNotification=new e("N",void 0),e}();function E(e,t){return void 0===t&&(t=0),function(r){return r.lift(new A(e,t))}}var k,A=function(){function e(e,t){void 0===t&&(t=0),this.scheduler=e,this.delay=t}return e.prototype.call=function(e,t){return t.subscribe(new C(e,this.scheduler,this.delay))},e}(),C=function(e){function t(t,r,n){void 0===n&&(n=0);var o=e.call(this,t)||this;return o.scheduler=r,o.delay=n,o}return Object(u.e)(t,e),t.dispatch=function(e){var t=e.notification,r=e.destination;t.observe(r),this.unsubscribe()},t.prototype.scheduleMessage=function(e){this.destination.add(this.scheduler.schedule(t.dispatch,this.delay,new N(e,this.destination)))},t.prototype._next=function(e){this.scheduleMessage(P.createNext(e))},t.prototype._error=function(e){this.scheduleMessage(P.createError(e)),this.unsubscribe()},t.prototype._complete=function(){this.scheduleMessage(P.createComplete()),this.unsubscribe()},t}(O.a),N=function(e,t){this.notification=e,this.destination=t},R=r(328),x=r(349),M=r(148),L=r(150),_=r(353),T=r(351),I=r(309);function q(e){var t=e.protocol,r=e.host,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.location;return t!==n.protocol||r!==n.host}function U(e){return e&&""===e.target}function D(e,t){var r=e.url,n=e.anchor,o=e.event,i=o.metaKey,c=o.ctrlKey;return!i&&!c&&U(n)&&!q(r,t)}function H(e,t){var r=e.url;return U(e.anchor)&&!q(r,t)&&!function(e){var t=e.hash,r=e.origin,n=e.pathname,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.location;return""!==t&&r===o.origin&&n===o.pathname}(r,t)}function $(e){var t=e.cause,r=e.url,n=r.pathname,o=r.hash;return n===e.oldURL.pathname&&(t===k.Pop||t===k.Push&&""!==o)}!function(e){e.Init="init",e.Hint="hint",e.Push="push",e.Pop="pop"}(k||(k={}));var V=r(354),B=r(357);function F(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var c,a=e[Symbol.iterator]();!(n=(c=a.next()).done)&&(r.push(c.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==a.return||a.return()}finally{if(o)throw i}}return r}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return z(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return z(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function z(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function W(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function X(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?W(Object(r),!0).forEach((function(t){J(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):W(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function J(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function K(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var G=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.parent=t}var t,r,n;return t=e,(r=[{key:"fetchPage",value:function(e){return Object(I.g)(e.url.href,{method:"GET",mode:"cors",headers:{Accept:"text/html"}}).pipe(Object(M.a)((function(e){return e.text()})),Object(p.a)((function(t){return X(X({},e),{},{responseText:t})})),Object(_.a)((function(t){return Object(g.a)(X(X({},e),{},{error:t,responseText:null}))})))}},{key:"selectPrefetch",value:function(e,t,r){return e.href===t.url.href?Object(g.a)(t):r.pipe(Object(B.a)(1))}},{key:"getResponse",value:function(e,t,r){return Object(V.a)(this.selectPrefetch(t.url,r,e),this.parent.animPromise).pipe(Object(p.a)((function(e){return X(X({},F(e,1)[0]),t)})))}}])&&K(t.prototype,r),n&&K(t,n),e}(),Q=r(79),Y=r(301),Z=r(335);function ee(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var c,a=e[Symbol.iterator]();!(n=(c=a.next()).done)&&(r.push(c.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==a.return||a.return()}finally{if(o)throw i}}return r}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return te(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return te(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function te(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function re(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ne(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?re(Object(r),!0).forEach((function(t){oe(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):re(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function oe(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ie(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var ce=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.parent=t}var t,r,n;return t=e,(r=[{key:"removeScriptTags",value:function(e){var t=this,r=[];return e.forEach((function(e){return e.querySelectorAll(t.scriptSelector).forEach((function(e){var t=[function(e){var t=document.createElement("script");return Array.from(e.attributes).forEach((function(e){return t.setAttributeNode(e.cloneNode())})),t.innerHTML=e.innerHTML,t}(e),e];r.push(t)}))})),r}},{key:"reinsertScriptTags",value:function(e){var t=this;if(!this.scriptSelector)return Promise.resolve(e);var r=e.scripts,n=document.write;return Object(Q.a)(r).pipe(Object(Y.a)((function(e){return t.insertScript(e)})),Object(_.a)((function(t){return Object(g.a)(ne(ne({},e),{},{error:t}))})),Object(Z.a)((function(){return document.write=n})),Object(R.a)(e)).toPromise()}},{key:"insertScript",value:function(e){var t=ee(e,2),r=t[0],n=t[1];return document.write=function(){for(var e=document.createElement("div"),t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];e.innerHTML=r.join(),Array.from(e.childNodes).forEach((function(e){return n.parentNode.insertBefore(e,n)}))},new Promise((function(e,t){""!==r.src?(r.addEventListener("load",e),r.addEventListener("error",t),n.parentNode.replaceChild(r,n)):(n.parentNode.replaceChild(r,n),e({}))}))}},{key:"scriptSelector",get:function(){return this.parent.scriptSelector}}])&&ie(t.prototype,r),n&&ie(t,n),e}();function ae(e,t){e.forEach((function(e){e.querySelectorAll("[href]").forEach(ue("href",t)),e.querySelectorAll("[src]").forEach(ue("src",t)),e.querySelectorAll("img[srcset]").forEach(function(e,t){return function(r){try{r.setAttribute(e,r.getAttribute(e).split(/\s*,\s*/).map((function(e){var r=e.split(/\s+/);return r[0]=new URL(r[0],t).href,r.join(" ")})).join(", "))}catch(e){}}}("srcset",t)),e.querySelectorAll("blockquote[cite]").forEach(ue("cite",t)),e.querySelectorAll("del[cite]").forEach(ue("cite",t)),e.querySelectorAll("ins[cite]").forEach(ue("cite",t)),e.querySelectorAll("q[cite]").forEach(ue("cite",t)),e.querySelectorAll("img[longdesc]").forEach(ue("longdesc",t)),e.querySelectorAll("frame[longdesc]").forEach(ue("longdesc",t)),e.querySelectorAll("iframe[longdesc]").forEach(ue("longdesc",t)),e.querySelectorAll("img[usemap]").forEach(ue("usemap",t)),e.querySelectorAll("input[usemap]").forEach(ue("usemap",t)),e.querySelectorAll("object[usemap]").forEach(ue("usemap",t)),e.querySelectorAll("form[action]").forEach(ue("action",t)),e.querySelectorAll("button[formaction]").forEach(ue("formaction",t)),e.querySelectorAll("input[formaction]").forEach(ue("formaction",t)),e.querySelectorAll("video[poster]").forEach(ue("poster",t)),e.querySelectorAll("object[data]").forEach(ue("data",t)),e.querySelectorAll("object[codebase]").forEach(ue("codebase",t)),e.querySelectorAll("object[archive]").forEach(function(e,t){return function(r){try{r.setAttribute(e,r.getAttribute(e).split(/[\s,]+/).map((function(e){return new URL(e,t).href})).join(", "))}catch(e){}}}("archive",t))}))}function ue(e,t){return function(r){try{r.setAttribute(e,new URL(r.getAttribute(e),t).href)}catch(e){}}}function se(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var c,a=e[Symbol.iterator]();!(n=(c=a.next()).done)&&(r.push(c.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==a.return||a.return()}finally{if(o)throw i}}return r}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return le(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return le(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function le(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function fe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function he(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?fe(Object(r),!0).forEach((function(t){pe(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function pe(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function be(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var ye=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.parent=t,this.scriptManager=new ce(t)}var t,r,n;return t=e,(r=[{key:"getReplaceElements",value:function(e){if(this.replaceSelector)return this.replaceSelector.split(",").map((function(t){return e.querySelector(t)}));if(this.el.id)return[e.getElementById(this.el.id)];var t=Array.from(document.getElementsByTagName(this.el.tagName)).indexOf(this.el);return[e.getElementsByTagName(this.el.tagName)[t]]}},{key:"responseToContent",value:function(e){try{var t=e.responseText,r=(new DOMParser).parseFromString(t,"text/html"),n=r.title,o=void 0===n?"":n,i=this.getReplaceElements(r),c=this.scriptSelector?this.scriptManager.removeScriptTags(i):[];return he(he({},e),{},{document:r,title:o,replaceEls:i,scripts:c})}catch(e){console.error(e)}}},{key:"replaceContentWithSelector",value:function(e){this.replaceSelector.split(",").map((function(e){return document.querySelector(e)})).forEach((function(t,r){return t.parentNode.replaceChild(e[r],t)}))}},{key:"replaceContentWholesale",value:function(e){var t=se(e,1)[0];this.el.innerHTML=t.innerHTML}},{key:"replaceContent",value:function(e){this.replaceSelector?this.replaceContentWithSelector(e):this.replaceContentWholesale(e)}},{key:"replaceHead",value:function(e){var t=this.el.ownerDocument.head,r=t.querySelector("link[rel=canonical]"),n=e.head.querySelector("link[rel=canonical]");r&&n&&(r.href=n.href);var o=t.querySelector("meta[name=description]"),i=e.head.querySelector("meta[name=description]");o&&i&&(o.content=i.content)}},{key:"updateDOM",value:function(e){try{var t=e.replaceEls,r=e.document;q(this.parent)&&ae(t,this.parent.href),this.replaceContent(t),this.replaceHead(r)}catch(t){throw he(he({},e),{},{error:t})}}},{key:"reinsertScriptTags",value:function(e){return this.scriptManager.reinsertScriptTags(e)}},{key:"el",get:function(){return this.parent.el}},{key:"replaceSelector",get:function(){return this.parent.replaceSelector}},{key:"scriptSelector",get:function(){return this.parent.scriptSelector}}])&&be(t.prototype,r),n&&be(t,n),e}(),de=r(65),ve=r(118);function me(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var Oe=function(e){return Array.prototype.concat.apply([],e)},je=function(e){return{addedNodes:new Set(Oe(e.map((function(e){return Array.from(e.addedNodes)})))),removedNodes:new Set(Oe(e.map((function(e){return Array.from(e.removedNodes)}))))}},ge=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r,n;return t=e,(r=[{key:"setupEventListeners",value:function(){var e=this,t=Object(c.a)(this.el,"click").pipe(Object(p.a)((function(t){var r=Object(I.k)(t.target,e.linkSelector);if(r instanceof HTMLAnchorElement)return[t,r]})),Object(b.a)((function(e){return!!e}))),r=function(e,t){return e.matches(t)?Object(g.a)(e):Object(Q.a)(e.querySelectorAll(t))};return{hintEvent$:this.$.linkSelector.pipe(Object(M.a)((function(t){var n=new Map,o=function(e){n.has(e)||n.set(e,function(e){return Object(a.a)(Object(c.a)(e,"mouseenter",{passive:!0}),Object(c.a)(e,"touchstart",{passive:!0}),Object(c.a)(e,"focus",{passive:!0})).pipe(Object(p.a)((function(t){return[t,e]})))}(e))},i=function(e){n.delete(e)};return Object(I.d)(e.el,{childList:!0,subtree:!0}).pipe(Object(d.a)({addedNodes:[e.el],removedNodes:[]}),Object(I.c)(500),Object(p.a)(je),Object(M.a)((function(e){var c=e.addedNodes,a=e.removedNodes;return Object(Q.a)(a).pipe(Object(b.a)((function(e){return e instanceof Element})),Object(de.a)((function(e){return r(e,t)})),Object(y.a)(i)).subscribe(),Object(Q.a)(c).pipe(Object(b.a)((function(e){return e instanceof Element})),Object(de.a)((function(e){return r(e,t)})),Object(y.a)(o)).subscribe(),Object(Q.a)(n.values()).pipe(Object(ve.a)())})),Object(I.l)(e.$.prefetch))}))),pushEvent$:t}}}])&&me(t.prototype,r),n&&me(t,n),e}();function we(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Se(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?we(Object(r),!0).forEach((function(t){Pe(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):we(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Pe(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ee(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var ke=function(e){return new Promise((function(t){return setTimeout(t,e)}))},Ae=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.parent=t}var t,r,n;return t=e,(r=[{key:"onStart",value:function(e){var t=this;this.parent.animPromise=ke(this.parent.duration),this.parent.fireEvent("start",{detail:Se(Se({},e),{},{transitionUntil:function(e){t.parent.animPromise=Promise.all([t.parent.animPromise,e])}})})}},{key:"emitDOMError",value:function(e){var t=e.replaceElMissing,r=e.url;t?(window.history.back(),setTimeout((function(){return document.location.assign(r)}),100)):this.parent.fireEvent("error",{detail:e})}},{key:"emitNetworkError",value:function(e){this.parent.fireEvent("networkerror",{detail:e})}},{key:"emitError",value:function(e){this.parent.fireEvent("error",{detail:e})}},{key:"emitReady",value:function(e){this.parent.fireEvent("ready",{detail:e})}},{key:"emitAfter",value:function(e){var t=this;this.parent.fadePromise=ke(this.parent.duration),this.parent.fireEvent("after",{detail:Se(Se({},e),{},{transitionUntil:function(e){t.parent.fadePromise=Promise.all([t.parent.fadePromise,e])}})})}},{key:"emitProgress",value:function(e){this.parent.fireEvent("progress",{detail:e})}},{key:"emitLoad",value:function(e){this.parent.fireEvent("load",{detail:e})}}])&&Ee(t.prototype,r),n&&Ee(t,n),e}();function Ce(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ne(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ce(Object(r),!0).forEach((function(t){Re(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ce(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Re(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}window.HashChangeEvent=window.HashChangeEvent||function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.oldURL,n=void 0===r?"":r,o=t.newURL,i=void 0===o?"":o,c=new CustomEvent(e);return c.oldURL=n,c.newURL=i,c};var Me=function(){function e(t){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.updateHistoryScrollPosition=function(){if(!q(r.parent)){var e=r.assignScrollPosition(history.state||{});history.replaceState(e,document.title)}},this.parent=t}var t,r,n;return t=e,(r=[{key:"updateHistoryState",value:function(e){var t=e.cause,r=e.replace,n=e.url,o=e.oldURL;if(!q(this.parent))switch(t){case k.Init:case k.Push:var i=this.parent.histId;if(r||n.href===location.href){var c=Ne(Ne({},history.state),{},Re({},i,{}));history.replaceState(c,document.title,n.href)}else history.pushState(Re({},i,{}),document.title,n.href);case k.Pop:this.parent.simulateHashChange&&function(e,t){e.hash!==t.hash&&window.dispatchEvent(new HashChangeEvent("hashchange",{newURL:e.href,oldURL:t.href}))}(n,o)}}},{key:"updateTitle",value:function(e){var t=e.cause,r=e.title;document.title=r,q(this.parent)||t!==k.Push||history.replaceState(history.state,r)}},{key:"assignScrollPosition",value:function(e){var t=this.parent.histId;return Ne(Ne({},e),{},Re({},t,Ne(Ne({},e[t]),{},{scrollTop:Object(I.j)(),scrollHeight:Object(I.i)()})))}}])&&xe(t.prototype,r),n&&xe(t,n),e}();function Le(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var _e=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.parent=t,"scrollRestoration"in history&&(history.scrollRestoration="manual")}var t,r,n;return t=e,(r=[{key:"manageScrollPosition",value:function(e){var t=e.cause,r=e.url.hash;switch(t){case k.Push:this.scrollHashIntoView(r,{behavior:"smooth",block:"start",inline:"nearest"});break;case k.Pop:this.restoreScrollPosition();break;case k.Init:this.restoreScrollPositionOnReload()}}},{key:"elementFromHash",value:function(e){return document.getElementById(decodeURIComponent(e.substr(1)))}},{key:"scrollHashIntoView",value:function(e,t){if(e){var r=this.elementFromHash(e);r&&r.scrollIntoView(t)}else window.scroll(window.pageXOffset,0)}},{key:"restoreScrollPosition",value:function(){var e=this.parent.histId,t=(history.state&&history.state[e]||{}).scrollTop;null!=t&&window.scroll(window.pageXOffset,t)}},{key:"restoreScrollPositionOnReload",value:function(){var e=this,t=this.parent.histId;history.state&&history.state[t]&&0===Object(I.j)()?this.restoreScrollPosition():location.hash&&requestAnimationFrame((function(){return e.scrollHashIntoView(location.hash,!0)}))}}])&&Le(t.prototype,r),n&&Le(t,n),e}();function Te(e){return function(e){if(Array.isArray(e))return Ue(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||qe(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ie(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var c,a=e[Symbol.iterator]();!(n=(c=a.next()).done)&&(r.push(c.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==a.return||a.return()}finally{if(o)throw i}}return r}(e,t)||qe(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qe(e,t){if(e){if("string"==typeof e)return Ue(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ue(e,t):void 0}}function Ue(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function De(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function He(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function $e(e,t,r){return($e="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=We(e)););return e}(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(r):o.value}})(e,t,r||e)}function Ve(e,t){return(Ve=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Be(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=We(e);if(t){var o=We(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Fe(this,r)}}function Fe(e,t){return!t||"object"!==Xe(t)&&"function"!=typeof t?ze(e):t}function ze(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function We(e){return(We=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Xe(e){return(Xe="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})(e)}var Je=function(e,t,r,n){var o,i=arguments.length,c=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"===("undefined"==typeof Reflect?"undefined":Xe(Reflect))&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(c=(i<3?o(c):i>3?o(t,r,c):o(t,r))||c);return i>3&&c&&Object.defineProperty(t,r,c),c},Ke=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ve(e,t)}(u,e);var t,r,n,o=Be(u);function u(){var e;return De(this,u),(e=o.apply(this,arguments)).el=ze(e),e.linkSelector="a[href]:not([data-no-push])",e.prefetch=!1,e.duration=0,e.simulateHashChange=!1,e.baseURL=window.location.href,e._initialized=Object(I.f)(),e.$={},e.fadePromise=Promise.resolve(null),e.scrollManager=new _e(ze(e)),e.historyManager=new Me(ze(e)),e.fetchManager=new G(ze(e)),e.updateManager=new ye(ze(e)),e.eventManager=new Ae(ze(e)),e._url=new URL(e.baseURL),e.reload$=new i.a,e.cacheNr=0,e.upgrade=function(){var t=e.setupEventListeners(),r=t.pushEvent$,n=t.hintEvent$,o={},i=r.pipe(Object(p.a)((function(t){var r=Ie(t,2),n=r[0],o=r[1];return{cause:k.Push,url:new URL(o.href,e.href),anchor:o,event:n,cacheNr:e.cacheNr}})),Object(b.a)((function(t){return D(t,ze(e))})),Object(y.a)((function(t){t.event.preventDefault(),e.historyManager.updateHistoryScrollPosition()}))),u=Object(c.a)(window,"popstate").pipe(Object(b.a)((function(){return window.history.state&&window.history.state[e.histId]})),Object(p.a)((function(t){return{cause:k.Pop,url:new URL(window.location.href),cacheNr:e.cacheNr,event:t}}))),s=e.reload$,h=Object(a.a)(i,u,s).pipe(Object(d.a)({url:new URL(window.location.href)}),Object(v.a)(),Object(p.a)((function(e){var t=Ie(e,2),r=t[0],n=t[1];return Object.assign(n,{oldURL:r.url})})),Object(m.a)()),O=h.pipe(Object(b.a)((function(e){return!$(e)})),Object(m.a)()),j=h.pipe(Object(b.a)((function(e){return $(e)})),Object(b.a)((function(){return history.state&&history.state[e.histId]})),E(l),Object(y.a)((function(t){e.historyManager.updateHistoryState(t),e.scrollManager.manageScrollPosition(t)}))),g=Object(f.a)((function(){return Object(a.a)(O.pipe(Object(R.a)(!0)),o.response$.pipe(Object(R.a)(!1)))})).pipe(Object(d.a)(!1)),w=n.pipe(Object(I.h)(g.pipe(Object(p.a)((function(e){return!e})))),Object(p.a)((function(t){var r=Ie(t,2),n=r[0],o=r[1];return{cause:k.Hint,url:new URL(o.href,e.href),anchor:o,event:n,cacheNr:e.cacheNr}})),Object(b.a)((function(t){return H(t,ze(e))}))),S=Object(a.a)(w,O).pipe(Object(x.a)((function(t,r){return e.compareContext(t,r)})),Object(M.a)((function(t){return e.fetchManager.fetchPage(t)})),Object(d.a)({url:{}}),Object(m.a)()),P=o.response$=O.pipe(Object(y.a)((function(t){e.eventManager.onStart(t),e.historyManager.updateHistoryState(t),e._url=t.url})),Object(L.a)(S),Object(M.a)((function(t){var r;return(r=e.fetchManager).getResponse.apply(r,[S].concat(Te(t)))})),Object(m.a)()),A=P.pipe(Object(b.a)((function(e){return!e.error}))),C=P.pipe(Object(b.a)((function(e){return!!e.error}))),N=A.pipe(Object(p.a)((function(t){return e.updateManager.responseToContent(t)})),Object(y.a)((function(t){return e.eventManager.emitReady(t)})),E(l),Object(y.a)((function(t){e.updateManager.updateDOM(t),e.historyManager.updateTitle(t),e.eventManager.emitAfter(t)})),Object(d.a)({cause:k.Init,url:e._url,scripts:[]}),E(l),Object(y.a)((function(t){return e.scrollManager.manageScrollPosition(t)})),Object(y.a)({error:function(t){return e.eventManager.emitDOMError(t)}}),Object(_.a)((function(e,t){return t})),Object(M.a)((function(t){return e.updateManager.reinsertScriptTags(t)})),Object(y.a)({error:function(t){return e.eventManager.emitError(t)}}),Object(_.a)((function(e,t){return t})),Object(M.a)((function(){return e.fadePromise})),Object(y.a)((function(t){return e.eventManager.emitLoad(t)}))),q=C.pipe(Object(y.a)((function(t){return e.eventManager.emitNetworkError(t)}))),U=O.pipe(Object(M.a)((function(t){return Object(f.a)((function(){return e.animPromise})).pipe(Object(T.a)(P),Object(R.a)(t))})),Object(y.a)((function(t){return e.eventManager.emitProgress(t)})));N.subscribe(),j.subscribe(),q.subscribe(),U.subscribe(),e._initialized.resolve(ze(e)),e.fireEvent("init")},e}return t=u,(r=[{key:"createRenderRoot",value:function(){return this}},{key:"_setLocation",value:function(e,t){var r=new URL(this._url.href);r[e]=t,this.assign(r.href)}},{key:"assign",value:function(e){this.reload$.next({cause:k.Push,url:new URL(e,this.href),cacheNr:++this.cacheNr})}},{key:"reload",value:function(){this.reload$.next({cause:k.Push,url:new URL(this.href),cacheNr:++this.cacheNr,replace:!0})}},{key:"replace",value:function(e){this.reload$.next({cause:k.Push,url:new URL(e,this.href),cacheNr:++this.cacheNr,replace:!0})}},{key:"compareContext",value:function(e,t){return e.url.href===t.url.href&&e.error===t.error&&e.cacheNr===t.cacheNr}},{key:"connectedCallback",value:function(){$e(We(u.prototype),"connectedCallback",this).call(this),this.$.linkSelector=new h.a(this.linkSelector),this.$.prefetch=new h.a(this.prefetch),window.addEventListener("beforeunload",this.historyManager.updateHistoryScrollPosition),this.updateComplete.then(this.upgrade)}},{key:"disconnectedCallback",value:function(){window.removeEventListener("beforeunload",this.historyManager.updateHistoryScrollPosition)}},{key:"initialized",get:function(){return this._initialized}},{key:"hash",get:function(){return this._url.hash},set:function(e){this._setLocation("hash",e)}},{key:"host",get:function(){return this._url.host},set:function(e){this._setLocation("host",e)}},{key:"hostname",get:function(){return this._url.hostname},set:function(e){this._setLocation("hostname",e)}},{key:"href",get:function(){return this._url.href},set:function(e){this._setLocation("href",e)}},{key:"pathname",get:function(){return this._url.pathname},set:function(e){this._setLocation("pathname",e)}},{key:"port",get:function(){return this._url.port},set:function(e){this._setLocation("port",e)}},{key:"protocol",get:function(){return this._url.protocol},set:function(e){this._setLocation("protocol",e)}},{key:"search",get:function(){return this._url.search},set:function(e){this._setLocation("search",e)}},{key:"origin",get:function(){return this._url.origin},set:function(e){}},{key:"ancestorOrigins",get:function(){return window.location.ancestorOrigins},set:function(e){}},{key:"histId",get:function(){return this.id||this.tagName}}])&&He(t.prototype,r),n&&He(t,n),u}(Object(I.b)(I.a,[ge]));
15
- /**
16
- * Copyright (c) 2020 Florian Klampfer <https://qwtel.com/>
17
- *
18
- * This program is free software: you can redistribute it and/or modify
19
- * it under the terms of the GNU General Public License as published by
20
- * the Free Software Foundation, either version 3 of the License, or
21
- * (at your option) any later version.
22
- *
23
- * This program is distributed in the hope that it will be useful,
24
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
25
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26
- * GNU General Public License for more details.
27
- *
28
- * You should have received a copy of the GNU General Public License
29
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
30
- *
31
- * @license
32
- * @nocompile
33
- */Je([Object(o.e)({type:String,reflect:!0,attribute:"replace-selector"})],Ke.prototype,"replaceSelector",void 0),Je([Object(o.e)({type:String,reflect:!0,attribute:"link-selector"})],Ke.prototype,"linkSelector",void 0),Je([Object(o.e)({type:String,reflect:!0,attribute:"script-selector"})],Ke.prototype,"scriptSelector",void 0),Je([Object(o.e)({type:Boolean,reflect:!0,attribute:"prefetch"})],Ke.prototype,"prefetch",void 0),Je([Object(o.e)({type:Number,reflect:!0,attribute:"duration"})],Ke.prototype,"duration",void 0),Je([Object(o.e)({type:Boolean,reflect:!0,attribute:"hashchange"})],Ke.prototype,"simulateHashChange",void 0),Je([Object(o.e)({type:String})],Ke.prototype,"baseURL",void 0),Je([Object(o.e)()],Ke.prototype,"assign",null),Je([Object(o.e)()],Ke.prototype,"reload",null),Je([Object(o.e)()],Ke.prototype,"replace",null),Ke=Je([Object(o.c)("hy-push-state")],Ke)},353:function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(1),o=r(47),i=r(55),c=r(46);function a(e){return function(t){var r=new u(e),n=t.lift(r);return r.caught=n}}var u=function(){function e(e){this.selector=e}return e.prototype.call=function(e,t){return t.subscribe(new s(e,this.selector,this.caught))},e}(),s=function(e){function t(t,r,n){var o=e.call(this,t)||this;return o.selector=r,o.caught=n,o}return Object(n.e)(t,e),t.prototype.error=function(t){if(!this.isStopped){var r=void 0;try{r=this.selector(t,this.caught)}catch(t){return void e.prototype.error.call(this,t)}this._unsubscribeAndRecycle();var n=new i.a(this,void 0,void 0);this.add(n);var o=Object(c.a)(this,r,void 0,void 0,n);o!==n&&this.add(o)}},t}(o.a)},354:function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var n=r(1),o=r(114),i=r(68),c=r(9),a=r(47),u=r(46),s=r(38);function l(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=e[e.length-1],n=void 0;return"function"==typeof r&&(n=e.pop()),Object(o.a)(e,void 0).lift(new f(n))}var f=function(){function e(e){this.resultSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new h(e,this.resultSelector))},e}(),h=function(e){function t(t,r,n){void 0===n&&(n=Object.create(null));var o=e.call(this,t)||this;return o.iterators=[],o.active=0,o.resultSelector=r,o.values=n,o}return Object(n.e)(t,e),t.prototype._next=function(e){var t=this.iterators;Object(i.a)(e)?t.push(new b(e)):"function"==typeof e[s.a]?t.push(new p(e[s.a]())):t.push(new y(this.destination,this,e))},t.prototype._complete=function(){var e=this.iterators,t=e.length;if(this.unsubscribe(),0!==t){this.active=t;for(var r=0;r<t;r++){var n=e[r];if(n.stillUnsubscribed)this.destination.add(n.subscribe(n,r));else this.active--}}else this.destination.complete()},t.prototype.notifyInactive=function(){this.active--,0===this.active&&this.destination.complete()},t.prototype.checkIterators=function(){for(var e=this.iterators,t=e.length,r=this.destination,n=0;n<t;n++){if("function"==typeof(c=e[n]).hasValue&&!c.hasValue())return}var o=!1,i=[];for(n=0;n<t;n++){var c,a=(c=e[n]).next();if(c.hasCompleted()&&(o=!0),a.done)return void r.complete();i.push(a.value)}this.resultSelector?this._tryresultSelector(i):r.next(i),o&&r.complete()},t.prototype._tryresultSelector=function(e){var t;try{t=this.resultSelector.apply(this,e)}catch(e){return void this.destination.error(e)}this.destination.next(t)},t}(c.a),p=function(){function e(e){this.iterator=e,this.nextResult=e.next()}return e.prototype.hasValue=function(){return!0},e.prototype.next=function(){var e=this.nextResult;return this.nextResult=this.iterator.next(),e},e.prototype.hasCompleted=function(){var e=this.nextResult;return e&&!!e.done},e}(),b=function(){function e(e){this.array=e,this.index=0,this.length=0,this.length=e.length}return e.prototype[s.a]=function(){return this},e.prototype.next=function(e){var t=this.index++,r=this.array;return t<this.length?{value:r[t],done:!1}:{value:null,done:!0}},e.prototype.hasValue=function(){return this.array.length>this.index},e.prototype.hasCompleted=function(){return this.array.length===this.index},e}(),y=function(e){function t(t,r,n){var o=e.call(this,t)||this;return o.parent=r,o.observable=n,o.stillUnsubscribed=!0,o.buffer=[],o.isComplete=!1,o}return Object(n.e)(t,e),t.prototype[s.a]=function(){return this},t.prototype.next=function(){var e=this.buffer;return 0===e.length&&this.isComplete?{value:null,done:!0}:{value:e.shift(),done:!1}},t.prototype.hasValue=function(){return this.buffer.length>0},t.prototype.hasCompleted=function(){return 0===this.buffer.length&&this.isComplete},t.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},t.prototype.notifyNext=function(e,t,r,n,o){this.buffer.push(t),this.parent.checkIterators()},t.prototype.subscribe=function(e,t){return Object(u.a)(this,this.observable,this,t)},t}(a.a)},355:function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var n=r(1),o=r(47),i=r(55),c=r(46),a=r(31),u=r(79);function s(e,t){return t?function(r){return r.pipe(s((function(r,n){return Object(u.a)(e(r,n)).pipe(Object(a.a)((function(e,o){return t(r,e,n,o)})))})))}:function(t){return t.lift(new l(e))}}var l=function(){function e(e){this.project=e}return e.prototype.call=function(e,t){return t.subscribe(new f(e,this.project))},e}(),f=function(e){function t(t,r){var n=e.call(this,t)||this;return n.project=r,n.hasSubscription=!1,n.hasCompleted=!1,n.index=0,n}return Object(n.e)(t,e),t.prototype._next=function(e){this.hasSubscription||this.tryNext(e)},t.prototype.tryNext=function(e){var t,r=this.index++;try{t=this.project(e,r)}catch(e){return void this.destination.error(e)}this.hasSubscription=!0,this._innerSub(t,e,r)},t.prototype._innerSub=function(e,t,r){var n=new i.a(this,t,r),o=this.destination;o.add(n);var a=Object(c.a)(this,e,void 0,void 0,n);a!==n&&o.add(a)},t.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()},t.prototype.notifyNext=function(e,t,r,n,o){this.destination.next(t)},t.prototype.notifyError=function(e){this.destination.error(e)},t.prototype.notifyComplete=function(e){this.destination.remove(e),this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},t}(o.a)},359:function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var n=r(5),o=r(115),i=r(68);function c(e){return!Object(i.a)(e)&&e-parseFloat(e)+1>=0}var a=r(113);function u(e,t,r){void 0===e&&(e=0);var i=-1;return c(t)?i=Number(t)<1?1:Number(t):Object(a.a)(t)&&(r=t),Object(a.a)(r)||(r=o.a),new n.a((function(t){var n=c(e)?e:+e-r.now();return r.schedule(s,n,{index:0,period:i,subscriber:t})}))}function s(e){var t=e.index,r=e.period,n=e.subscriber;if(n.next(t),!n.closed){if(-1===r)return n.complete();e.index=t+1,this.schedule(e,r)}}}}]);
@@ -1,33 +0,0 @@
1
- /*!
2
- * __ __ __ __
3
- * /\ \/\ \ /\ \ __ /\ \
4
- * \ \ \_\ \ __ __ \_\ \ __ /\_\ __ ___ \ \ \/'\
5
- * \ \ _ \ /\ \/\ \ /'_` \ /'__`\ \/\ \ /'__`\ /'___\\ \ , <
6
- * \ \ \ \ \\ \ \_\ \ /\ \L\ \ /\ __/ \ \ \ /\ \L\.\_ /\ \__/ \ \ \\`\
7
- * \ \_\ \_\\/`____ \\ \___,_\\ \____\ _\ \ \\ \__/.\_\\ \____\ \ \_\ \_\
8
- * \/_/\/_/ `/___/> \\/__,_ / \/____//\ \_\ \\/__/\/_/ \/____/ \/_/\/_/
9
- * /\___/ \ \____/
10
- * \/__/ \/___/
11
- *
12
- * Powered by Hydejack v9.0.3 <https://hydejack.com/>
13
- */
14
- (window.webpackJsonp=window.webpackJsonp||[]).push([[11],{336:function(e,t,r){"use strict";r.r(t),r.d(t,"HyPushState",(function(){return Ke}));var n,o=r(318),i=r(310),c=r(298),a=r(321),u=r(1),s=function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.scheduler=t,n.work=r,n}return Object(u.e)(t,e),t.prototype.requestAsyncId=function(t,r,n){return void 0===n&&(n=0),null!==n&&n>0?e.prototype.requestAsyncId.call(this,t,r,n):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame((function(){return t.flush(void 0)}))))},t.prototype.recycleAsyncId=function(t,r,n){if(void 0===n&&(n=0),null!==n&&n>0||null===n&&this.delay>0)return e.prototype.recycleAsyncId.call(this,t,r,n);0===t.actions.length&&(cancelAnimationFrame(r),t.scheduled=void 0)},t}(r(147).a),l=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(u.e)(t,e),t.prototype.flush=function(e){this.active=!0,this.scheduled=void 0;var t,r=this.actions,n=-1,o=r.length;e=e||r.shift();do{if(t=e.execute(e.state,e.delay))break}while(++n<o&&(e=r.shift()));if(this.active=!1,t){for(;++n<o&&(e=r.shift());)e.unsubscribe();throw t}},t}(r(146).a))(s),f=r(341),h=r(344),p=r(31),b=r(151),y=r(152),d=r(323),v=r(324),m=r(338),O=r(9),j=r(319),g=r(64),w=r(5);function S(e){var t=e.error;e.subscriber.error(t)}!function(e){e.NEXT="N",e.ERROR="E",e.COMPLETE="C"}(n||(n={}));var P=function(){function e(e,t,r){this.kind=e,this.value=t,this.error=r,this.hasValue="N"===e}return e.prototype.observe=function(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}},e.prototype.do=function(e,t,r){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return r&&r()}},e.prototype.accept=function(e,t,r){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,r)},e.prototype.toObservable=function(){var e,t;switch(this.kind){case"N":return Object(g.a)(this.value);case"E":return e=this.error,t?new w.a((function(r){return t.schedule(S,0,{error:e,subscriber:r})})):new w.a((function(t){return t.error(e)}));case"C":return j.a}throw new Error("unexpected notification kind value")},e.createNext=function(t){return void 0!==t?new e("N",t):e.undefinedValueNotification},e.createError=function(t){return new e("E",void 0,t)},e.createComplete=function(){return e.completeNotification},e.completeNotification=new e("C"),e.undefinedValueNotification=new e("N",void 0),e}();function E(e,t){return void 0===t&&(t=0),function(r){return r.lift(new A(e,t))}}var k,A=function(){function e(e,t){void 0===t&&(t=0),this.scheduler=e,this.delay=t}return e.prototype.call=function(e,t){return t.subscribe(new C(e,this.scheduler,this.delay))},e}(),C=function(e){function t(t,r,n){void 0===n&&(n=0);var o=e.call(this,t)||this;return o.scheduler=r,o.delay=n,o}return Object(u.e)(t,e),t.dispatch=function(e){var t=e.notification,r=e.destination;t.observe(r),this.unsubscribe()},t.prototype.scheduleMessage=function(e){this.destination.add(this.scheduler.schedule(t.dispatch,this.delay,new N(e,this.destination)))},t.prototype._next=function(e){this.scheduleMessage(P.createNext(e))},t.prototype._error=function(e){this.scheduleMessage(P.createError(e)),this.unsubscribe()},t.prototype._complete=function(){this.scheduleMessage(P.createComplete()),this.unsubscribe()},t}(O.a),N=function(e,t){this.notification=e,this.destination=t},R=r(322),x=r(340),M=r(148),L=r(150),_=r(345),T=r(343),I=r(305);function q(e){var t=e.protocol,r=e.host,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.location;return t!==n.protocol||r!==n.host}function U(e){return e&&""===e.target}function D(e,t){var r=e.url,n=e.anchor,o=e.event,i=o.metaKey,c=o.ctrlKey;return!i&&!c&&U(n)&&!q(r,t)}function H(e,t){var r=e.url;return U(e.anchor)&&!q(r,t)&&!function(e){var t=e.hash,r=e.origin,n=e.pathname,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.location;return""!==t&&r===o.origin&&n===o.pathname}(r,t)}function $(e){var t=e.cause,r=e.url,n=r.pathname,o=r.hash;return n===e.oldURL.pathname&&(t===k.Pop||t===k.Push&&""!==o)}!function(e){e.Init="init",e.Hint="hint",e.Push="push",e.Pop="pop"}(k||(k={}));var V=r(346),B=r(349);function F(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var c,a=e[Symbol.iterator]();!(n=(c=a.next()).done)&&(r.push(c.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==a.return||a.return()}finally{if(o)throw i}}return r}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return z(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return z(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function z(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function W(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function X(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?W(Object(r),!0).forEach((function(t){J(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):W(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function J(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function K(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var G=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.parent=t}var t,r,n;return t=e,(r=[{key:"fetchPage",value:function(e){return Object(I.g)(e.url.href,{method:"GET",mode:"cors",headers:{Accept:"text/html"}}).pipe(Object(M.a)((function(e){return e.text()})),Object(p.a)((function(t){return X(X({},e),{},{responseText:t})})),Object(_.a)((function(t){return Object(g.a)(X(X({},e),{},{error:t,responseText:null}))})))}},{key:"selectPrefetch",value:function(e,t,r){return e.href===t.url.href?Object(g.a)(t):r.pipe(Object(B.a)(1))}},{key:"getResponse",value:function(e,t,r){return Object(V.a)(this.selectPrefetch(t.url,r,e),this.parent.animPromise).pipe(Object(p.a)((function(e){return X(X({},F(e,1)[0]),t)})))}}])&&K(t.prototype,r),n&&K(t,n),e}(),Q=r(79),Y=r(299),Z=r(342);function ee(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var c,a=e[Symbol.iterator]();!(n=(c=a.next()).done)&&(r.push(c.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==a.return||a.return()}finally{if(o)throw i}}return r}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return te(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return te(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function te(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function re(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ne(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?re(Object(r),!0).forEach((function(t){oe(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):re(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function oe(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ie(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var ce=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.parent=t}var t,r,n;return t=e,(r=[{key:"removeScriptTags",value:function(e){var t=this,r=[];return e.forEach((function(e){return e.querySelectorAll(t.scriptSelector).forEach((function(e){var t=[function(e){var t=document.createElement("script");return Array.from(e.attributes).forEach((function(e){return t.setAttributeNode(e.cloneNode())})),t.innerHTML=e.innerHTML,t}(e),e];r.push(t)}))})),r}},{key:"reinsertScriptTags",value:function(e){var t=this;if(!this.scriptSelector)return Promise.resolve(e);var r=e.scripts,n=document.write;return Object(Q.a)(r).pipe(Object(Y.a)((function(e){return t.insertScript(e)})),Object(_.a)((function(t){return Object(g.a)(ne(ne({},e),{},{error:t}))})),Object(Z.a)((function(){return document.write=n})),Object(R.a)(e)).toPromise()}},{key:"insertScript",value:function(e){var t=ee(e,2),r=t[0],n=t[1];return document.write=function(){for(var e=document.createElement("div"),t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];e.innerHTML=r.join(),Array.from(e.childNodes).forEach((function(e){return n.parentNode.insertBefore(e,n)}))},new Promise((function(e,t){""!==r.src?(r.addEventListener("load",e),r.addEventListener("error",t),n.parentNode.replaceChild(r,n)):(n.parentNode.replaceChild(r,n),e({}))}))}},{key:"scriptSelector",get:function(){return this.parent.scriptSelector}}])&&ie(t.prototype,r),n&&ie(t,n),e}();function ae(e,t){e.forEach((function(e){e.querySelectorAll("[href]").forEach(ue("href",t)),e.querySelectorAll("[src]").forEach(ue("src",t)),e.querySelectorAll("img[srcset]").forEach(function(e,t){return function(r){try{r.setAttribute(e,r.getAttribute(e).split(/\s*,\s*/).map((function(e){var r=e.split(/\s+/);return r[0]=new URL(r[0],t).href,r.join(" ")})).join(", "))}catch(e){}}}("srcset",t)),e.querySelectorAll("blockquote[cite]").forEach(ue("cite",t)),e.querySelectorAll("del[cite]").forEach(ue("cite",t)),e.querySelectorAll("ins[cite]").forEach(ue("cite",t)),e.querySelectorAll("q[cite]").forEach(ue("cite",t)),e.querySelectorAll("img[longdesc]").forEach(ue("longdesc",t)),e.querySelectorAll("frame[longdesc]").forEach(ue("longdesc",t)),e.querySelectorAll("iframe[longdesc]").forEach(ue("longdesc",t)),e.querySelectorAll("img[usemap]").forEach(ue("usemap",t)),e.querySelectorAll("input[usemap]").forEach(ue("usemap",t)),e.querySelectorAll("object[usemap]").forEach(ue("usemap",t)),e.querySelectorAll("form[action]").forEach(ue("action",t)),e.querySelectorAll("button[formaction]").forEach(ue("formaction",t)),e.querySelectorAll("input[formaction]").forEach(ue("formaction",t)),e.querySelectorAll("video[poster]").forEach(ue("poster",t)),e.querySelectorAll("object[data]").forEach(ue("data",t)),e.querySelectorAll("object[codebase]").forEach(ue("codebase",t)),e.querySelectorAll("object[archive]").forEach(function(e,t){return function(r){try{r.setAttribute(e,r.getAttribute(e).split(/[\s,]+/).map((function(e){return new URL(e,t).href})).join(", "))}catch(e){}}}("archive",t))}))}function ue(e,t){return function(r){try{r.setAttribute(e,new URL(r.getAttribute(e),t).href)}catch(e){}}}function se(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var c,a=e[Symbol.iterator]();!(n=(c=a.next()).done)&&(r.push(c.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==a.return||a.return()}finally{if(o)throw i}}return r}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return le(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return le(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function le(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function fe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function he(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?fe(Object(r),!0).forEach((function(t){pe(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fe(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function pe(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function be(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var ye=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.parent=t,this.scriptManager=new ce(t)}var t,r,n;return t=e,(r=[{key:"getReplaceElements",value:function(e){if(this.replaceSelector)return this.replaceSelector.split(",").map((function(t){return e.querySelector(t)}));if(this.el.id)return[e.getElementById(this.el.id)];var t=Array.from(document.getElementsByTagName(this.el.tagName)).indexOf(this.el);return[e.getElementsByTagName(this.el.tagName)[t]]}},{key:"responseToContent",value:function(e){try{var t=e.responseText,r=(new DOMParser).parseFromString(t,"text/html"),n=r.title,o=void 0===n?"":n,i=this.getReplaceElements(r),c=this.scriptSelector?this.scriptManager.removeScriptTags(i):[];return he(he({},e),{},{document:r,title:o,replaceEls:i,scripts:c})}catch(e){console.error(e)}}},{key:"replaceContentWithSelector",value:function(e){this.replaceSelector.split(",").map((function(e){return document.querySelector(e)})).forEach((function(t,r){return t.parentNode.replaceChild(e[r],t)}))}},{key:"replaceContentWholesale",value:function(e){var t=se(e,1)[0];this.el.innerHTML=t.innerHTML}},{key:"replaceContent",value:function(e){this.replaceSelector?this.replaceContentWithSelector(e):this.replaceContentWholesale(e)}},{key:"replaceHead",value:function(e){var t=this.el.ownerDocument.head,r=t.querySelector("link[rel=canonical]"),n=e.head.querySelector("link[rel=canonical]");r&&n&&(r.href=n.href);var o=t.querySelector("meta[name=description]"),i=e.head.querySelector("meta[name=description]");o&&i&&(o.content=i.content)}},{key:"updateDOM",value:function(e){try{var t=e.replaceEls,r=e.document;q(this.parent)&&ae(t,this.parent.href),this.replaceContent(t),this.replaceHead(r)}catch(t){throw he(he({},e),{},{error:t})}}},{key:"reinsertScriptTags",value:function(e){return this.scriptManager.reinsertScriptTags(e)}},{key:"el",get:function(){return this.parent.el}},{key:"replaceSelector",get:function(){return this.parent.replaceSelector}},{key:"scriptSelector",get:function(){return this.parent.scriptSelector}}])&&be(t.prototype,r),n&&be(t,n),e}(),de=r(65),ve=r(117);function me(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var Oe=function(e){return Array.prototype.concat.apply([],e)},je=function(e){return{addedNodes:new Set(Oe(e.map((function(e){return Array.from(e.addedNodes)})))),removedNodes:new Set(Oe(e.map((function(e){return Array.from(e.removedNodes)}))))}},ge=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r,n;return t=e,(r=[{key:"setupEventListeners",value:function(){var e=this,t=Object(c.a)(this.el,"click").pipe(Object(p.a)((function(t){var r=Object(I.k)(t.target,e.linkSelector);if(r instanceof HTMLAnchorElement)return[t,r]})),Object(b.a)((function(e){return!!e}))),r=function(e,t){return e.matches(t)?Object(g.a)(e):Object(Q.a)(e.querySelectorAll(t))};return{hintEvent$:this.$.linkSelector.pipe(Object(M.a)((function(t){var n=new Map,o=function(e){n.has(e)||n.set(e,function(e){return Object(a.a)(Object(c.a)(e,"mouseenter",{passive:!0}),Object(c.a)(e,"touchstart",{passive:!0}),Object(c.a)(e,"focus",{passive:!0})).pipe(Object(p.a)((function(t){return[t,e]})))}(e))},i=function(e){n.delete(e)};return Object(I.d)(e.el,{childList:!0,subtree:!0}).pipe(Object(d.a)({addedNodes:[e.el],removedNodes:[]}),Object(I.c)(500),Object(p.a)(je),Object(M.a)((function(e){var c=e.addedNodes,a=e.removedNodes;return Object(Q.a)(a).pipe(Object(b.a)((function(e){return e instanceof Element})),Object(de.a)((function(e){return r(e,t)})),Object(y.a)(i)).subscribe(),Object(Q.a)(c).pipe(Object(b.a)((function(e){return e instanceof Element})),Object(de.a)((function(e){return r(e,t)})),Object(y.a)(o)).subscribe(),Object(Q.a)(n.values()).pipe(Object(ve.a)())})),Object(I.l)(e.$.prefetch))}))),pushEvent$:t}}}])&&me(t.prototype,r),n&&me(t,n),e}();function we(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Se(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?we(Object(r),!0).forEach((function(t){Pe(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):we(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Pe(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ee(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var ke=function(e){return new Promise((function(t){return setTimeout(t,e)}))},Ae=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.parent=t}var t,r,n;return t=e,(r=[{key:"onStart",value:function(e){var t=this;this.parent.animPromise=ke(this.parent.duration),this.parent.fireEvent("start",{detail:Se(Se({},e),{},{transitionUntil:function(e){t.parent.animPromise=Promise.all([t.parent.animPromise,e])}})})}},{key:"emitDOMError",value:function(e){var t=e.replaceElMissing,r=e.url;t?(window.history.back(),setTimeout((function(){return document.location.assign(r)}),100)):this.parent.fireEvent("error",{detail:e})}},{key:"emitNetworkError",value:function(e){this.parent.fireEvent("networkerror",{detail:e})}},{key:"emitError",value:function(e){this.parent.fireEvent("error",{detail:e})}},{key:"emitReady",value:function(e){this.parent.fireEvent("ready",{detail:e})}},{key:"emitAfter",value:function(e){var t=this;this.parent.fadePromise=ke(this.parent.duration),this.parent.fireEvent("after",{detail:Se(Se({},e),{},{transitionUntil:function(e){t.parent.fadePromise=Promise.all([t.parent.fadePromise,e])}})})}},{key:"emitProgress",value:function(e){this.parent.fireEvent("progress",{detail:e})}},{key:"emitLoad",value:function(e){this.parent.fireEvent("load",{detail:e})}}])&&Ee(t.prototype,r),n&&Ee(t,n),e}();function Ce(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ne(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ce(Object(r),!0).forEach((function(t){Re(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ce(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Re(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}window.HashChangeEvent=window.HashChangeEvent||function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.oldURL,n=void 0===r?"":r,o=t.newURL,i=void 0===o?"":o,c=new CustomEvent(e);return c.oldURL=n,c.newURL=i,c};var Me=function(){function e(t){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.updateHistoryScrollPosition=function(){if(!q(r.parent)){var e=r.assignScrollPosition(history.state||{});history.replaceState(e,document.title)}},this.parent=t}var t,r,n;return t=e,(r=[{key:"updateHistoryState",value:function(e){var t=e.cause,r=e.replace,n=e.url,o=e.oldURL;if(!q(this.parent))switch(t){case k.Init:case k.Push:var i=this.parent.histId;if(r||n.href===location.href){var c=Ne(Ne({},history.state),{},Re({},i,{}));history.replaceState(c,document.title,n.href)}else history.pushState(Re({},i,{}),document.title,n.href);case k.Pop:this.parent.simulateHashChange&&function(e,t){e.hash!==t.hash&&window.dispatchEvent(new HashChangeEvent("hashchange",{newURL:e.href,oldURL:t.href}))}(n,o)}}},{key:"updateTitle",value:function(e){var t=e.cause,r=e.title;document.title=r,q(this.parent)||t!==k.Push||history.replaceState(history.state,r)}},{key:"assignScrollPosition",value:function(e){var t=this.parent.histId;return Ne(Ne({},e),{},Re({},t,Ne(Ne({},e[t]),{},{scrollTop:Object(I.j)(),scrollHeight:Object(I.i)()})))}}])&&xe(t.prototype,r),n&&xe(t,n),e}();function Le(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var _e=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.parent=t,"scrollRestoration"in history&&(history.scrollRestoration="manual")}var t,r,n;return t=e,(r=[{key:"manageScrollPosition",value:function(e){var t=e.cause,r=e.url.hash;switch(t){case k.Push:this.scrollHashIntoView(r,{behavior:"smooth",block:"start",inline:"nearest"});break;case k.Pop:this.restoreScrollPosition();break;case k.Init:this.restoreScrollPositionOnReload()}}},{key:"elementFromHash",value:function(e){return document.getElementById(decodeURIComponent(e.substr(1)))}},{key:"scrollHashIntoView",value:function(e,t){if(e){var r=this.elementFromHash(e);r&&r.scrollIntoView(t)}else window.scroll(window.pageXOffset,0)}},{key:"restoreScrollPosition",value:function(){var e=this.parent.histId,t=(history.state&&history.state[e]||{}).scrollTop;null!=t&&window.scroll(window.pageXOffset,t)}},{key:"restoreScrollPositionOnReload",value:function(){var e=this,t=this.parent.histId;history.state&&history.state[t]&&0===Object(I.j)()?this.restoreScrollPosition():location.hash&&requestAnimationFrame((function(){return e.scrollHashIntoView(location.hash,!0)}))}}])&&Le(t.prototype,r),n&&Le(t,n),e}();function Te(e){return function(e){if(Array.isArray(e))return Ue(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||qe(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ie(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var c,a=e[Symbol.iterator]();!(n=(c=a.next()).done)&&(r.push(c.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==a.return||a.return()}finally{if(o)throw i}}return r}(e,t)||qe(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qe(e,t){if(e){if("string"==typeof e)return Ue(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ue(e,t):void 0}}function Ue(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function De(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function He(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function $e(e,t,r){return($e="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=We(e)););return e}(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(r):o.value}})(e,t,r||e)}function Ve(e,t){return(Ve=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Be(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=We(e);if(t){var o=We(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Fe(this,r)}}function Fe(e,t){return!t||"object"!==Xe(t)&&"function"!=typeof t?ze(e):t}function ze(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function We(e){return(We=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Xe(e){return(Xe="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})(e)}var Je=function(e,t,r,n){var o,i=arguments.length,c=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"===("undefined"==typeof Reflect?"undefined":Xe(Reflect))&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(c=(i<3?o(c):i>3?o(t,r,c):o(t,r))||c);return i>3&&c&&Object.defineProperty(t,r,c),c},Ke=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ve(e,t)}(u,e);var t,r,n,o=Be(u);function u(){var e;return De(this,u),(e=o.apply(this,arguments)).el=ze(e),e.linkSelector="a[href]:not([data-no-push])",e.prefetch=!1,e.duration=0,e.simulateHashChange=!1,e.baseURL=window.location.href,e._initialized=Object(I.f)(),e.$={},e.fadePromise=Promise.resolve(null),e.scrollManager=new _e(ze(e)),e.historyManager=new Me(ze(e)),e.fetchManager=new G(ze(e)),e.updateManager=new ye(ze(e)),e.eventManager=new Ae(ze(e)),e._url=new URL(e.baseURL),e.reload$=new i.a,e.cacheNr=0,e.upgrade=function(){var t=e.setupEventListeners(),r=t.pushEvent$,n=t.hintEvent$,o={},i=r.pipe(Object(p.a)((function(t){var r=Ie(t,2),n=r[0],o=r[1];return{cause:k.Push,url:new URL(o.href,e.href),anchor:o,event:n,cacheNr:e.cacheNr}})),Object(b.a)((function(t){return D(t,ze(e))})),Object(y.a)((function(t){t.event.preventDefault(),e.historyManager.updateHistoryScrollPosition()}))),u=Object(c.a)(window,"popstate").pipe(Object(b.a)((function(){return window.history.state&&window.history.state[e.histId]})),Object(p.a)((function(t){return{cause:k.Pop,url:new URL(window.location.href),cacheNr:e.cacheNr,event:t}}))),s=e.reload$,h=Object(a.a)(i,u,s).pipe(Object(d.a)({url:new URL(window.location.href)}),Object(v.a)(),Object(p.a)((function(e){var t=Ie(e,2),r=t[0],n=t[1];return Object.assign(n,{oldURL:r.url})})),Object(m.a)()),O=h.pipe(Object(b.a)((function(e){return!$(e)})),Object(m.a)()),j=h.pipe(Object(b.a)((function(e){return $(e)})),Object(b.a)((function(){return history.state&&history.state[e.histId]})),E(l),Object(y.a)((function(t){e.historyManager.updateHistoryState(t),e.scrollManager.manageScrollPosition(t)}))),g=Object(f.a)((function(){return Object(a.a)(O.pipe(Object(R.a)(!0)),o.response$.pipe(Object(R.a)(!1)))})).pipe(Object(d.a)(!1)),w=n.pipe(Object(I.h)(g.pipe(Object(p.a)((function(e){return!e})))),Object(p.a)((function(t){var r=Ie(t,2),n=r[0],o=r[1];return{cause:k.Hint,url:new URL(o.href,e.href),anchor:o,event:n,cacheNr:e.cacheNr}})),Object(b.a)((function(t){return H(t,ze(e))}))),S=Object(a.a)(w,O).pipe(Object(x.a)((function(t,r){return e.compareContext(t,r)})),Object(M.a)((function(t){return e.fetchManager.fetchPage(t)})),Object(d.a)({url:{}}),Object(m.a)()),P=o.response$=O.pipe(Object(y.a)((function(t){e.eventManager.onStart(t),e.historyManager.updateHistoryState(t),e._url=t.url})),Object(L.a)(S),Object(M.a)((function(t){var r;return(r=e.fetchManager).getResponse.apply(r,[S].concat(Te(t)))})),Object(m.a)()),A=P.pipe(Object(b.a)((function(e){return!e.error}))),C=P.pipe(Object(b.a)((function(e){return!!e.error}))),N=A.pipe(Object(p.a)((function(t){return e.updateManager.responseToContent(t)})),Object(y.a)((function(t){return e.eventManager.emitReady(t)})),E(l),Object(y.a)((function(t){e.updateManager.updateDOM(t),e.historyManager.updateTitle(t),e.eventManager.emitAfter(t)})),Object(d.a)({cause:k.Init,url:e._url,scripts:[]}),E(l),Object(y.a)((function(t){return e.scrollManager.manageScrollPosition(t)})),Object(y.a)({error:function(t){return e.eventManager.emitDOMError(t)}}),Object(_.a)((function(e,t){return t})),Object(M.a)((function(t){return e.updateManager.reinsertScriptTags(t)})),Object(y.a)({error:function(t){return e.eventManager.emitError(t)}}),Object(_.a)((function(e,t){return t})),Object(M.a)((function(){return e.fadePromise})),Object(y.a)((function(t){return e.eventManager.emitLoad(t)}))),q=C.pipe(Object(y.a)((function(t){return e.eventManager.emitNetworkError(t)}))),U=O.pipe(Object(M.a)((function(t){return Object(f.a)((function(){return e.animPromise})).pipe(Object(T.a)(P),Object(R.a)(t))})),Object(y.a)((function(t){return e.eventManager.emitProgress(t)})));N.subscribe(),j.subscribe(),q.subscribe(),U.subscribe(),e._initialized.resolve(ze(e)),e.fireEvent("init")},e}return t=u,(r=[{key:"createRenderRoot",value:function(){return this}},{key:"_setLocation",value:function(e,t){var r=new URL(this._url.href);r[e]=t,this.assign(r.href)}},{key:"assign",value:function(e){this.reload$.next({cause:k.Push,url:new URL(e,this.href),cacheNr:++this.cacheNr})}},{key:"reload",value:function(){this.reload$.next({cause:k.Push,url:new URL(this.href),cacheNr:++this.cacheNr,replace:!0})}},{key:"replace",value:function(e){this.reload$.next({cause:k.Push,url:new URL(e,this.href),cacheNr:++this.cacheNr,replace:!0})}},{key:"compareContext",value:function(e,t){return e.url.href===t.url.href&&e.error===t.error&&e.cacheNr===t.cacheNr}},{key:"connectedCallback",value:function(){$e(We(u.prototype),"connectedCallback",this).call(this),this.$.linkSelector=new h.a(this.linkSelector),this.$.prefetch=new h.a(this.prefetch),window.addEventListener("beforeunload",this.historyManager.updateHistoryScrollPosition),this.updateComplete.then(this.upgrade)}},{key:"disconnectedCallback",value:function(){window.removeEventListener("beforeunload",this.historyManager.updateHistoryScrollPosition)}},{key:"initialized",get:function(){return this._initialized}},{key:"hash",get:function(){return this._url.hash},set:function(e){this._setLocation("hash",e)}},{key:"host",get:function(){return this._url.host},set:function(e){this._setLocation("host",e)}},{key:"hostname",get:function(){return this._url.hostname},set:function(e){this._setLocation("hostname",e)}},{key:"href",get:function(){return this._url.href},set:function(e){this._setLocation("href",e)}},{key:"pathname",get:function(){return this._url.pathname},set:function(e){this._setLocation("pathname",e)}},{key:"port",get:function(){return this._url.port},set:function(e){this._setLocation("port",e)}},{key:"protocol",get:function(){return this._url.protocol},set:function(e){this._setLocation("protocol",e)}},{key:"search",get:function(){return this._url.search},set:function(e){this._setLocation("search",e)}},{key:"origin",get:function(){return this._url.origin},set:function(e){}},{key:"ancestorOrigins",get:function(){return window.location.ancestorOrigins},set:function(e){}},{key:"histId",get:function(){return this.id||this.tagName}}])&&He(t.prototype,r),n&&He(t,n),u}(Object(I.b)(I.a,[ge]));
15
- /**
16
- * Copyright (c) 2020 Florian Klampfer <https://qwtel.com/>
17
- *
18
- * This program is free software: you can redistribute it and/or modify
19
- * it under the terms of the GNU General Public License as published by
20
- * the Free Software Foundation, either version 3 of the License, or
21
- * (at your option) any later version.
22
- *
23
- * This program is distributed in the hope that it will be useful,
24
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
25
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26
- * GNU General Public License for more details.
27
- *
28
- * You should have received a copy of the GNU General Public License
29
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
30
- *
31
- * @license
32
- * @nocompile
33
- */Je([Object(o.e)({type:String,reflect:!0,attribute:"replace-selector"})],Ke.prototype,"replaceSelector",void 0),Je([Object(o.e)({type:String,reflect:!0,attribute:"link-selector"})],Ke.prototype,"linkSelector",void 0),Je([Object(o.e)({type:String,reflect:!0,attribute:"script-selector"})],Ke.prototype,"scriptSelector",void 0),Je([Object(o.e)({type:Boolean,reflect:!0,attribute:"prefetch"})],Ke.prototype,"prefetch",void 0),Je([Object(o.e)({type:Number,reflect:!0,attribute:"duration"})],Ke.prototype,"duration",void 0),Je([Object(o.e)({type:Boolean,reflect:!0,attribute:"hashchange"})],Ke.prototype,"simulateHashChange",void 0),Je([Object(o.e)({type:String})],Ke.prototype,"baseURL",void 0),Je([Object(o.e)()],Ke.prototype,"assign",null),Je([Object(o.e)()],Ke.prototype,"reload",null),Je([Object(o.e)()],Ke.prototype,"replace",null),Ke=Je([Object(o.c)("hy-push-state")],Ke)},345:function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(1),o=r(47),i=r(55),c=r(46);function a(e){return function(t){var r=new u(e),n=t.lift(r);return r.caught=n}}var u=function(){function e(e){this.selector=e}return e.prototype.call=function(e,t){return t.subscribe(new s(e,this.selector,this.caught))},e}(),s=function(e){function t(t,r,n){var o=e.call(this,t)||this;return o.selector=r,o.caught=n,o}return Object(n.e)(t,e),t.prototype.error=function(t){if(!this.isStopped){var r=void 0;try{r=this.selector(t,this.caught)}catch(t){return void e.prototype.error.call(this,t)}this._unsubscribeAndRecycle();var n=new i.a(this,void 0,void 0);this.add(n);var o=Object(c.a)(this,r,void 0,void 0,n);o!==n&&this.add(o)}},t}(o.a)},346:function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var n=r(1),o=r(114),i=r(68),c=r(9),a=r(47),u=r(46),s=r(38);function l(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=e[e.length-1],n=void 0;return"function"==typeof r&&(n=e.pop()),Object(o.a)(e,void 0).lift(new f(n))}var f=function(){function e(e){this.resultSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new h(e,this.resultSelector))},e}(),h=function(e){function t(t,r,n){void 0===n&&(n=Object.create(null));var o=e.call(this,t)||this;return o.iterators=[],o.active=0,o.resultSelector=r,o.values=n,o}return Object(n.e)(t,e),t.prototype._next=function(e){var t=this.iterators;Object(i.a)(e)?t.push(new b(e)):"function"==typeof e[s.a]?t.push(new p(e[s.a]())):t.push(new y(this.destination,this,e))},t.prototype._complete=function(){var e=this.iterators,t=e.length;if(this.unsubscribe(),0!==t){this.active=t;for(var r=0;r<t;r++){var n=e[r];if(n.stillUnsubscribed)this.destination.add(n.subscribe(n,r));else this.active--}}else this.destination.complete()},t.prototype.notifyInactive=function(){this.active--,0===this.active&&this.destination.complete()},t.prototype.checkIterators=function(){for(var e=this.iterators,t=e.length,r=this.destination,n=0;n<t;n++){if("function"==typeof(c=e[n]).hasValue&&!c.hasValue())return}var o=!1,i=[];for(n=0;n<t;n++){var c,a=(c=e[n]).next();if(c.hasCompleted()&&(o=!0),a.done)return void r.complete();i.push(a.value)}this.resultSelector?this._tryresultSelector(i):r.next(i),o&&r.complete()},t.prototype._tryresultSelector=function(e){var t;try{t=this.resultSelector.apply(this,e)}catch(e){return void this.destination.error(e)}this.destination.next(t)},t}(c.a),p=function(){function e(e){this.iterator=e,this.nextResult=e.next()}return e.prototype.hasValue=function(){return!0},e.prototype.next=function(){var e=this.nextResult;return this.nextResult=this.iterator.next(),e},e.prototype.hasCompleted=function(){var e=this.nextResult;return e&&!!e.done},e}(),b=function(){function e(e){this.array=e,this.index=0,this.length=0,this.length=e.length}return e.prototype[s.a]=function(){return this},e.prototype.next=function(e){var t=this.index++,r=this.array;return t<this.length?{value:r[t],done:!1}:{value:null,done:!0}},e.prototype.hasValue=function(){return this.array.length>this.index},e.prototype.hasCompleted=function(){return this.array.length===this.index},e}(),y=function(e){function t(t,r,n){var o=e.call(this,t)||this;return o.parent=r,o.observable=n,o.stillUnsubscribed=!0,o.buffer=[],o.isComplete=!1,o}return Object(n.e)(t,e),t.prototype[s.a]=function(){return this},t.prototype.next=function(){var e=this.buffer;return 0===e.length&&this.isComplete?{value:null,done:!0}:{value:e.shift(),done:!1}},t.prototype.hasValue=function(){return this.buffer.length>0},t.prototype.hasCompleted=function(){return 0===this.buffer.length&&this.isComplete},t.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},t.prototype.notifyNext=function(e,t,r,n,o){this.buffer.push(t),this.parent.checkIterators()},t.prototype.subscribe=function(e,t){return Object(u.a)(this,this.observable,this,t)},t}(a.a)},347:function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var n=r(1),o=r(47),i=r(55),c=r(46),a=r(31),u=r(79);function s(e,t){return t?function(r){return r.pipe(s((function(r,n){return Object(u.a)(e(r,n)).pipe(Object(a.a)((function(e,o){return t(r,e,n,o)})))})))}:function(t){return t.lift(new l(e))}}var l=function(){function e(e){this.project=e}return e.prototype.call=function(e,t){return t.subscribe(new f(e,this.project))},e}(),f=function(e){function t(t,r){var n=e.call(this,t)||this;return n.project=r,n.hasSubscription=!1,n.hasCompleted=!1,n.index=0,n}return Object(n.e)(t,e),t.prototype._next=function(e){this.hasSubscription||this.tryNext(e)},t.prototype.tryNext=function(e){var t,r=this.index++;try{t=this.project(e,r)}catch(e){return void this.destination.error(e)}this.hasSubscription=!0,this._innerSub(t,e,r)},t.prototype._innerSub=function(e,t,r){var n=new i.a(this,t,r),o=this.destination;o.add(n);var a=Object(c.a)(this,e,void 0,void 0,n);a!==n&&o.add(a)},t.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()},t.prototype.notifyNext=function(e,t,r,n,o){this.destination.next(t)},t.prototype.notifyError=function(e){this.destination.error(e)},t.prototype.notifyComplete=function(e){this.destination.remove(e),this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},t}(o.a)},351:function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var n=r(5),o=r(115),i=r(68);function c(e){return!Object(i.a)(e)&&e-parseFloat(e)+1>=0}var a=r(113);function u(e,t,r){void 0===e&&(e=0);var i=-1;return c(t)?i=Number(t)<1?1:Number(t):Object(a.a)(t)&&(r=t),Object(a.a)(r)||(r=o.a),new n.a((function(t){var n=c(e)?e:+e-r.now();return r.schedule(s,n,{index:0,period:i,subscriber:t})}))}function s(e){var t=e.index,r=e.period,n=e.subscriber;if(n.next(t),!n.closed){if(-1===r)return n.complete();e.index=t+1,this.schedule(e,r)}}}}]);
@@ -1,40 +0,0 @@
1
- /*!
2
- * __ __ __ __
3
- * /\ \/\ \ /\ \ __ /\ \
4
- * \ \ \_\ \ __ __ \_\ \ __ /\_\ __ ___ \ \ \/'\
5
- * \ \ _ \ /\ \/\ \ /'_` \ /'__`\ \/\ \ /'__`\ /'___\\ \ , <
6
- * \ \ \ \ \\ \ \_\ \ /\ \L\ \ /\ __/ \ \ \ /\ \L\.\_ /\ \__/ \ \ \\`\
7
- * \ \_\ \_\\/`____ \\ \___,_\\ \____\ _\ \ \\ \__/.\_\\ \____\ \ \_\ \_\
8
- * \/_/\/_/ `/___/> \\/__,_ / \/____//\ \_\ \\/__/\/_/ \/____/ \/_/\/_/
9
- * /\___/ \ \____/
10
- * \/__/ \/___/
11
- *
12
- * Powered by Hydejack v9.0.3 <https://hydejack.com/>
13
- */
14
- (window.webpackJsonp=window.webpackJsonp||[]).push([[15],{330:function(e,t,n){(function(e){function n(e,t){for(var n=0,r=e.length-1;r>=0;r--){var o=e[r];"."===o?e.splice(r,1):".."===o?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function r(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}t.resolve=function(){for(var t="",o=!1,i=arguments.length-1;i>=-1&&!o;i--){var u=i>=0?arguments[i]:e.cwd();if("string"!=typeof u)throw new TypeError("Arguments to path.resolve must be strings");u&&(t=u+"/"+t,o="/"===u.charAt(0))}return(o?"/":"")+(t=n(r(t.split("/"),(function(e){return!!e})),!o).join("/"))||"."},t.normalize=function(e){var i=t.isAbsolute(e),u="/"===o(e,-1);return(e=n(r(e.split("/"),(function(e){return!!e})),!i).join("/"))||i||(e="."),e&&u&&(e+="/"),(i?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(r(e,(function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},t.relative=function(e,n){function r(e){for(var t=0;t<e.length&&""===e[t];t++);for(var n=e.length-1;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var o=r(e.split("/")),i=r(n.split("/")),u=Math.min(o.length,i.length),a=u,s=0;s<u;s++)if(o[s]!==i[s]){a=s;break}var f=[];for(s=a;s<o.length;s++)f.push("..");return(f=f.concat(i.slice(a))).join("/")},t.sep="/",t.delimiter=":",t.dirname=function(e){if("string"!=typeof e&&(e+=""),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,r=-1,o=!0,i=e.length-1;i>=1;--i)if(47===(t=e.charCodeAt(i))){if(!o){r=i;break}}else o=!1;return-1===r?n?"/":".":n&&1===r?"/":e.slice(0,r)},t.basename=function(e,t){var n=function(e){"string"!=typeof e&&(e+="");var t,n=0,r=-1,o=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!o){n=t+1;break}}else-1===r&&(o=!1,r=t+1);return-1===r?"":e.slice(n,r)}(e);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},t.extname=function(e){"string"!=typeof e&&(e+="");for(var t=-1,n=0,r=-1,o=!0,i=0,u=e.length-1;u>=0;--u){var a=e.charCodeAt(u);if(47!==a)-1===r&&(o=!1,r=u+1),46===a?-1===t?t=u:1!==i&&(i=1):-1!==t&&(i=-1);else if(!o){n=u+1;break}}return-1===t||-1===r||0===i||1===i&&t===r-1&&t===n+1?"":e.slice(t,r)};var o="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,n(331))},331:function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function u(){throw new Error("clearTimeout has not been defined")}function a(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:u}catch(e){r=u}}();var s,f=[],c=!1,l=-1;function h(){c&&s&&(c=!1,s.length?f=s.concat(f):l=-1,f.length&&v())}function v(){if(!c){var e=a(h);c=!0;for(var t=f.length;t;){for(s=f,f=[];++l<t;)s&&s[l].run();l=-1,t=f.length}s=null,c=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===u||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function d(e,t){this.fun=e,this.array=t}function p(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];f.push(new d(e,t)),1!==f.length||c||a(v)},d.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=p,o.addListener=p,o.once=p,o.off=p,o.removeListener=p,o.removeAllListeners=p,o.emit=p,o.prependListener=p,o.prependOnceListener=p,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},332:function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var r=n(310);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 i(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 i(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 u,a=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,u=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw u}}}}function i(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}
15
- /**
16
- * @license
17
- * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
18
- * This code may only be used under the BSD style license found at
19
- * http://polymer.github.io/LICENSE.txt
20
- * The complete set of authors may be found at
21
- * http://polymer.github.io/AUTHORS.txt
22
- * The complete set of contributors may be found at
23
- * http://polymer.github.io/CONTRIBUTORS.txt
24
- * Code distributed by Google as part of the polymer project is also
25
- * subject to an additional IP rights grant found at
26
- * http://polymer.github.io/PATENTS.txt
27
- */var u=function(e,t){var n=e.startNode.parentNode,o=void 0===t?e.endNode:t.startNode,i=n.insertBefore(Object(r.d)(),o);n.insertBefore(Object(r.d)(),o);var u=new r.b(e.options);return u.insertAfterNode(i),u},a=function(e,t){return e.setValue(t),e.commit(),e},s=function(e,t,n){var o=e.startNode.parentNode,i=n?n.startNode:e.endNode,u=t.endNode.nextSibling;u!==i&&Object(r.i)(o,t.startNode,u,i)},f=function(e){Object(r.g)(e.startNode.parentNode,e.startNode,e.endNode.nextSibling)},c=function(e,t,n){for(var r=new Map,o=t;o<=n;o++)r.set(e[o],o);return r},l=new WeakMap,h=new WeakMap,v=Object(r.e)((function(e,t,n){var i;return void 0===n?n=t:void 0!==t&&(i=t),function(t){if(!(t instanceof r.b))throw new Error("repeat can only be used in text bindings");var v,d,p,g=l.get(t)||[],m=h.get(t)||[],b=[],y=[],w=[],A=0,T=o(e);try{for(T.s();!(v=T.n()).done;){var j=v.value;w[A]=i?i(j,A):A,y[A]=n(j,A),A++}}catch(e){T.e(e)}finally{T.f()}for(var N=0,k=g.length-1,O=0,E=y.length-1;N<=k&&O<=E;)if(null===g[N])N++;else if(null===g[k])k--;else if(m[N]===w[O])b[O]=a(g[N],y[O]),N++,O++;else if(m[k]===w[E])b[E]=a(g[k],y[E]),k--,E--;else if(m[N]===w[E])b[E]=a(g[N],y[E]),s(t,g[N],b[E+1]),N++,E--;else if(m[k]===w[O])b[O]=a(g[k],y[O]),s(t,g[k],g[N]),k--,O++;else if(void 0===d&&(d=c(w,O,E),p=c(m,N,k)),d.has(m[N]))if(d.has(m[k])){var S=p.get(w[O]),x=void 0!==S?g[S]:null;if(null===x){var M=u(t,g[N]);a(M,y[O]),b[O]=M}else b[O]=a(x,y[O]),s(t,x,g[N]),g[S]=null;O++}else f(g[k]),k--;else f(g[N]),N++;for(;O<=E;){var C=u(t,b[E+1]);a(C,y[O]),b[O++]=C}for(;N<=k;){var L=g[N++];null!==L&&f(L)}l.set(t,b),h.set(t,w)}}))},333:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(310),o=new WeakMap,i=Object(r.e)((function(e){return function(t){var n=o.get(t);if(void 0===e&&t instanceof r.a){if(void 0!==n||!o.has(t)){var i=t.committer.name;t.committer.element.removeAttribute(i)}}else e!==n&&t.setValue(e);o.set(t,e)}}));
28
- /**
29
- * @license
30
- * Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
31
- * This code may only be used under the BSD style license found at
32
- * http://polymer.github.io/LICENSE.txt
33
- * The complete set of authors may be found at
34
- * http://polymer.github.io/AUTHORS.txt
35
- * The complete set of contributors may be found at
36
- * http://polymer.github.io/CONTRIBUTORS.txt
37
- * Code distributed by Google as part of the polymer project is also
38
- * subject to an additional IP rights grant found at
39
- * http://polymer.github.io/PATENTS.txt
40
- */}}]);