You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

163 lines
146 KiB

  1. System.register([],(function(t){"use strict";return{execute:function(){t({$:function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")},B:jr,E:function(t){Ft.push(t)},G:function(t){Yr=t.target,setTimeout((function(){t.defaultPrevented&&(Yr=null)}),0)},H:function(t,e){var n;const i=`${null!==(n=null==e?void 0:e.keyPrefix)&&void 0!==n?n:"session-resume:"}${t}`;let r;try{r=sessionStorage.getItem(i)}catch(s){}if(!r)return;try{sessionStorage.removeItem(i)}catch(a){}const o=[];for(const[c,l]of JSON.parse(r)){const t=new CustomEvent("session:resume",{bubbles:!0,cancelable:!0,detail:{targetId:c,targetValue:l}});if(document.dispatchEvent(t)){const t=document.getElementById(c);t&&(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement)&&t.value===t.defaultValue&&(t.value=l,o.push(t))}}setTimeout((function(){for(const t of o)t.dispatchEvent(new CustomEvent("change",{bubbles:!0,cancelable:!0}))}),0)},J:function(t,e){var n,i;const r=null!==(n=null==e?void 0:e.selector)&&void 0!==n?n:".js-session-resumable",o=`${null!==(i=null==e?void 0:e.keyPrefix)&&void 0!==i?i:"session-resume:"}${t}`,s=[];for(const l of document.querySelectorAll(r))(l instanceof HTMLInputElement||l instanceof HTMLTextAreaElement)&&s.push(l);const a=s.filter((t=>function(t){return t.id&&t.value!==t.defaultValue&&t.form!==Yr}(t))).map((t=>[t.id,t.value]));if(a.length)try{sessionStorage.setItem(o,JSON.stringify(a))}catch(c){}},N:function(t,e){t.renderInto(e)},O:function(t,...e){return new TemplateResult$1(t,e,co)},S:M,X:function(t){return t&&t.default||t}
  2. /**
  3. * @license
  4. * Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
  5. * This code may only be used under the BSD style license found at
  6. * http://polymer.github.io/LICENSE.txt
  7. * The complete set of authors may be found at
  8. * http://polymer.github.io/AUTHORS.txt
  9. * The complete set of contributors may be found at
  10. * http://polymer.github.io/CONTRIBUTORS.txt
  11. * Code distributed by Google as part of the polymer project is also
  12. * subject to an additional IP rights grant found at
  13. * http://polymer.github.io/PATENTS.txt
  14. */,Y:function(t,e){return t(e={exports:{}},e.exports),e.exports},_:
  15. /*! *****************************************************************************
  16. Copyright (c) Microsoft Corporation. All rights reserved.
  17. Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  18. this file except in compliance with the License. You may obtain a copy of the
  19. License at http://www.apache.org/licenses/LICENSE-2.0
  20. THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  21. KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
  22. WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
  23. MERCHANTABLITY OR NON-INFRINGEMENT.
  24. See the Apache Version 2.0 License for specific language governing permissions
  25. and limitations under the License.
  26. ***************************************************************************** */
  27. function(t,e,n,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(s=(o<3?r(s):o>3?r(e,n,s):r(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},a:function(){var t;return(t=Rt()).observe.apply(t,arguments)},a0:function(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t},a1:T,a5:Zr,c:function(t){(function(t,e,n){if(t[e]){const i=t[e];t[e]=function(...t){n.apply(this,t),i.apply(this,t)}}else t[e]=n})(t.prototype,"connectedCallback",(function(){this.toggleAttribute("data-catalyst",!0),function(t){for(const e of t.querySelectorAll("template[data-shadowroot]"))e.parentElement===t&&t.attachShadow({mode:"closed"===e.getAttribute("data-shadowroot")?"closed":"open"}).appendChild(e.content.cloneNode(!0))}(this),function(t){Wt.add(t.tagName.toLowerCase()),t.shadowRoot&&(Vt(t.shadowRoot),jt(t.shadowRoot));Vt(t),jt(t.ownerDocument)}(this)})),function(t){const e=t.name.replace(/([A-Z]($|[a-z]))/g,"-$1").replace(/(^-|-Element$)/g,"").toLowerCase();window.customElements.get(e)||(window[t.name]=t,window.customElements.define(e,t))}(t)},d:L,f:function(t,e,n){return t.dispatchEvent(new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n}))}
  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. */,g:function(t,e){Object.defineProperty(t,e,{configurable:!0,get(){return function(t,e){const n=t.tagName.toLowerCase(),i=[];if(t.shadowRoot)for(const r of t.shadowRoot.querySelectorAll(`[data-targets~="${n}.${e}"]`))r.closest(n)||i.push(r);for(const r of t.querySelectorAll(`[data-targets~="${n}.${e}"]`))r.closest(n)===t&&i.push(r);return i}(this,e)}})},h:pr,i:function(t=0,e={}){return(n,i,r)=>{if(!r||"function"!=typeof r.value)throw new Error("debounce can only decorate functions");const o=r.value;r.value=L(o,t,e),Object.defineProperty(n,i,r)}},n:function(t){qt.push(t)},o:function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=!!i.capture,o=r?F:q,s=o[t];s||(s=new M,o[t]=s,document.addEventListener(t,z,r));s.add(e,n)},q:function(t,e){0===Object.keys(gr.children).length&&document.addEventListener("keydown",yr);const n=function(t){return t.split(",").map((t=>t.split(" ")))}(e||t.getAttribute("data-hotkey")||"").map((e=>gr.insert(e).add(t)));vr.set(t,n)},r:function(t,e){Ot||(Ot=new Map,document.addEventListener("submit",Bt));const n=Ot.get(t)||[];Ot.set(t,[...n,e])},s:function(t){let e=!1,n=null;function i(t,e,n,i=!1){e instanceof HTMLInputElement&&(e.indeterminate=i,e.checked!==n&&(e.checked=n,setTimeout((()=>{const n=new CustomEvent("change",{bubbles:!0,cancelable:!1,detail:{relatedTarget:t}});e.dispatchEvent(n)}))))}function r(r){const o=r.target;o instanceof Element&&(o.hasAttribute("data-check-all")?function(e){if(e instanceof CustomEvent&&e.detail){const{relatedTarget:t}=e.detail;if(t&&t.hasAttribute("data-check-all-item"))return}const r=e.target;if(!(r instanceof HTMLInputElement))return;n=null;for(const n of t.querySelectorAll("[data-check-all-item]"))i(r,n,r.checked);r.indeterminate=!1,s()}(r):o.hasAttribute("data-check-all-item")&&function(r){if(r instanceof CustomEvent&&r.detail){const{relatedTarget:t}=r.detail;if(t&&(t.hasAttribute("data-check-all")||t.hasAttribute("data-check-all-item")))return}const o=r.target;if(!(o instanceof HTMLInputElement))return;const a=Array.from(t.querySelectorAll("[data-check-all-item]"));if(e&&n){const[t,e]=[a.indexOf(n),a.indexOf(o)].sort();for(const n of a.slice(t,+e+1||9e9))i(o,n,o.checked)}e=!1,n=o;const c=t.querySelector("[data-check-all]");if(c){const t=a.length,e=a.filter((t=>t instanceof HTMLInputElement&&t.checked)).length;i(o,c,e===t,t>e&&e>0)}s()}(r))}function o(t){if(!(t.target instanceof Element))return;(t.target instanceof HTMLLabelElement&&t.target.control||t.target).hasAttribute("data-check-all-item")&&(e=t.shiftKey)}function s(){const e=t.querySelector("[data-check-all-count]");if(e){const n=t.querySelectorAll("[data-check-all-item]:checked").length;e.textContent=n.toString()}}return t.addEventListener("mousedown",o),t.addEventListener("change",r),{unsubscribe:()=>{t.removeEventListener("mousedown",o),t.removeEventListener("change",r)}}},t:function(t,e){Object.defineProperty(t,e,{configurable:!0,get(){return function(t,e){const n=t.tagName.toLowerCase();if(t.shadowRoot)for(const i of t.shadowRoot.querySelectorAll(`[data-target~="${n}.${e}"]`))if(!i.closest(n))return i;for(const i of t.querySelectorAll(`[data-target~="${n}.${e}"]`))if(i.closest(n)===t)return i}(this,e)}})},v:function(t){const e=vr.get(t);if(e&&e.length)for(const n of e)n&&n.delete(t);0===Object.keys(gr.children).length&&document.removeEventListener("keydown",yr)},w:function(t){return t.split("\n").reduce((function(t,e){var n=function(t){var e=kr.exec(t);if(!e)return null;var n=e[2]&&0===e[2].indexOf("native"),i=e[2]&&0===e[2].indexOf("eval"),r=Ar.exec(e[2]);i&&null!=r&&(e[2]=r[1],e[3]=r[2],e[4]=r[3]);return{file:n?null:e[2],methodName:e[1]||xr,arguments:n?[e[2]]:[],lineNumber:e[3]?+e[3]:null,column:e[4]?+e[4]:null}}(e)||function(t){var e=Tr.exec(t);if(!e)return null;return{file:e[2],methodName:e[1]||xr,arguments:[],lineNumber:+e[3],column:e[4]?+e[4]:null}}(e)||function(t){var e=Lr.exec(t);if(!e)return null;var n=e[3]&&e[3].indexOf(" > eval")>-1,i=Mr.exec(e[3]);n&&null!=i&&(e[3]=i[1],e[4]=i[2],e[5]=null);return{file:e[3],methodName:e[1]||xr,arguments:e[2]?e[2].
  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. const e=new WeakMap,n=t=>(...n)=>{const i=t(...n);return e.set(i,!0),i},i=t=>"function"==typeof t&&e.has(t),r=void 0!==window.customElements&&void 0!==window.customElements.polyfillWrapFlushCallback,o=(t,e,n=null)=>{for(;e!==n;){const n=e.nextSibling;t.removeChild(e),e=n}},s={},a={},c=`{{lit-${String(Math.random()).slice(2)}}}`,l=`\x3c!--${c}--\x3e`,u=new RegExp(`${c}|${l}`),d="$lit$";class Template{constructor(t,e){this.parts=[],this.element=e;const n=[],i=[],r=document.createTreeWalker(e.content,133,null,!1);let o=0,s=-1,a=0;const{strings:l,values:{length:m}}=t;for(;a<m;){const t=r.nextNode();if(null!==t){if(s++,1===t.nodeType){if(t.hasAttributes()){const e=t.attributes,{length:n}=e;let i=0;for(let t=0;t<n;t++)h(e[t].name,d)&&i++;for(;i-- >0;){const e=l[a],n=p.exec(e)[2],i=n.toLowerCase()+d,r=t.getAttribute(i);t.removeAttribute(i);const o=r.split(u);this.parts.push({type:"attribute",index:s,name:n,strings:o}),a+=o.length-1}}"TEMPLATE"===t.tagName&&(i.push(t),r.currentNode=t.content)}else if(3===t.nodeType){const e=t.data;if(e.indexOf(c)>=0){const i=t.parentNode,r=e.split(u),o=r.length-1;for(let e=0;e<o;e++){let n,o=r[e];if(""===o)n=f();else{const t=p.exec(o);null!==t&&h(t[2],d)&&(o=o.slice(0,t.index)+t[1]+t[2].slice(0,-d.length)+t[3]),n=document.createTextNode(o)}i.insertBefore(n,t),this.parts.push({type:"node",index:++s})}""===r[o]?(i.insertBefore(f(),t),n.push(t)):t.data=r[o],a+=o}}else if(8===t.nodeType)if(t.data===c){const e=t.parentNode;null!==t.previousSibling&&s!==o||(s++,e.insertBefore(f(),t)),o=s,this.parts.push({type:"node",index:s}),null===t.nextSibling?t.data="":(n.push(t),s--),a++}else{let e=-1;for(;-1!==(e=t.data.indexOf(c,e+1));)this.parts.push({type:"node",index:-1}),a++}}else r.currentNode=i.pop()}for(const c of n)c.parentNode.removeChild(c)}}const h=(t,e)=>{const n=t.length-e.length;return n>=0&&t.slice(n)===e},m=t=>-1!==t.index,f=()=>document.createComment(""),p=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/;
  55. /**
  56. * @license
  57. * Copyright (c) 2017 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
  60. * The complete set of authors may be found at
  61. * http://polymer.github.io/AUTHORS.txt
  62. * The complete set of contributors may be found at
  63. * http://polymer.github.io/CONTRIBUTORS.txt
  64. * Code distributed by Google as part of the polymer project is also
  65. * subject to an additional IP rights grant found at
  66. * http://polymer.github.io/PATENTS.txt
  67. */
  68. class TemplateInstance{constructor(t,e,n){this.__parts=[],this.template=t,this.processor=e,this.options=n}update(t){let e=0;for(const n of this.__parts)void 0!==n&&n.setValue(t[e]),e++;for(const n of this.__parts)void 0!==n&&n.commit()}_clone(){const t=r?this.template.element.content.cloneNode(!0):document.importNode(this.template.element.content,!0),e=[],n=this.template.parts,i=document.createTreeWalker(t,133,null,!1);let o,s=0,a=0,c=i.nextNode();for(;s<n.length;)if(o=n[s],m(o)){for(;a<o.index;)a++,"TEMPLATE"===c.nodeName&&(e.push(c),i.currentNode=c.content),null===(c=i.nextNode())&&(i.currentNode=e.pop(),c=i.nextNode());if("node"===o.type){const t=this.processor.handleTextExpression(this.options);t.insertAfterNode(c.previousSibling),this.__parts.push(t)}else this.__parts.push(...this.processor.handleAttributeExpressions(c,o.name,o.strings,this.options));s++}else this.__parts.push(void 0),s++;return r&&(document.adoptNode(t),customElements.upgrade(t)),t}}
  69. /**
  70. * @license
  71. * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
  72. * This code may only be used under the BSD style license found at
  73. * http://polymer.github.io/LICENSE.txt
  74. * The complete set of authors may be found at
  75. * http://polymer.github.io/AUTHORS.txt
  76. * The complete set of contributors may be found at
  77. * http://polymer.github.io/CONTRIBUTORS.txt
  78. * Code distributed by Google as part of the polymer project is also
  79. * subject to an additional IP rights grant found at
  80. * http://polymer.github.io/PATENTS.txt
  81. */const g=` ${c} `;class TemplateResult{constructor(t,e,n,i){this.strings=t,this.values=e,this.type=n,this.processor=i}getHTML(){const t=this.strings.length-1;let e="",n=!1;for(let i=0;i<t;i++){const t=this.strings[i],r=t.lastIndexOf("\x3c!--");n=(r>-1||n)&&-1===t.indexOf("--\x3e",r+1);const o=p.exec(t);e+=null===o?t+(n?g:l):t.substr(0,o.index)+o[1]+o[2]+d+o[3]+c}return e+=this.strings[t],e}getTemplateElement(){const t=document.createElement("template");return t.innerHTML=this.getHTML(),t}}
  82. /**
  83. * @license
  84. * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
  85. * This code may only be used under the BSD style license found at
  86. * http://polymer.github.io/LICENSE.txt
  87. * The complete set of authors may be found at
  88. * http://polymer.github.io/AUTHORS.txt
  89. * The complete set of contributors may be found at
  90. * http://polymer.github.io/CONTRIBUTORS.txt
  91. * Code distributed by Google as part of the polymer project is also
  92. * subject to an additional IP rights grant found at
  93. * http://polymer.github.io/PATENTS.txt
  94. */const v=t=>null===t||!("object"==typeof t||"function"==typeof t),b=t=>Array.isArray(t)||!(!t||!t[Symbol.iterator]);class AttributeCommitter{constructor(t,e,n){this.dirty=!0,this.element=t,this.name=e,this.strings=n,this.parts=[];for(let i=0;i<n.length-1;i++)this.parts[i]=this._createPart()}_createPart(){return new AttributePart(this)}_getValue(){const t=this.strings,e=t.length-1;let n="";for(let i=0;i<e;i++){n+=t[i];const e=this.parts[i];if(void 0!==e){const t=e.value;if(v(t)||!b(t))n+="string"==typeof t?t:String(t);else for(const e of t)n+="string"==typeof e?e:String(e)}}return n+=t[e],n}commit(){this.dirty&&(this.dirty=!1,this.element.setAttribute(this.name,this._getValue()))}}class AttributePart{constructor(t){this.value=void 0,this.committer=t}setValue(t){t===s||v(t)&&t===this.value||(this.value=t,i(t)||(this.committer.dirty=!0))}commit(){for(;i(this.value);){const t=this.value;this.value=s,t(this)}this.value!==s&&this.committer.commit()}}class NodePart{constructor(t){this.value=void 0,this.__pendingValue=void 0,this.options=t}appendInto(t){this.startNode=t.appendChild(f()),this.endNode=t.appendChild(f())}insertAfterNode(t){this.startNode=t,this.endNode=t.nextSibling}appendIntoPart(t){t.__insert(this.startNode=f()),t.__insert(this.endNode=f())}insertAfterPart(t){t.__insert(this.startNode=f()),this.endNode=t.endNode,t.endNode=this.startNode}setValue(t){this.__pendingValue=t}commit(){for(;i(this.__pendingValue);){const t=this.__pendingValue;this.__pendingValue=s,t(this)}const t=this.__pendingValue;t!==s&&(v(t)?t!==this.value&&this.__commitText(t):t instanceof TemplateResult?this.__commitTemplateResult(t):t instanceof Node?this.__commitNode(t):b(t)?this.__commitIterable(t):t===a?(this.value=a,this.clear()):this.__commitText(t))}__insert(t){this.endNode.parentNode.insertBefore(t,this.endNode)}__commitNode(t){this.value!==t&&(this.clear(),this.__insert(t),this.value=t)}__commitText(t){const 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}__commitTemplateResult(t){const e=this.options.templateFactory(t);if(this.value instanceof TemplateInstance&&this.value.template===e)this.value.update(t.values);else{const n=new TemplateInstance(e,t.processor,this.options),i=n._clone();n.update(t.values),this.__commitNode(i),this.value=n}}__commitIterable(t){Array.isArray(this.value)||(this.value=[],this.clear());const e=this.value;let n,i=0;for(const r of t)n=e[i],void 0===n&&(n=new NodePart(this.options),e.push(n),0===i?n.appendIntoPart(this):n.insertAfterPart(e[i-1])),n.setValue(r),n.commit(),i++;i<e.length&&(e.length=i,this.clear(n&&n.endNode))}clear(t=this.startNode){o(this.startNode.parentNode,t.nextSibling,this.endNode)}}class BooleanAttributePart{constructor(t,e,n){if(this.value=void 0,this.__pendingValue=void 0,2!==n.length||""!==n[0]||""!==n[1])throw new Error("Boolean attributes can only contain a single expression");this.element=t,this.name=e,this.strings=n}setValue(t){this.__pendingValue=t}commit(){for(;i(this.__pendingValue);){const t=this.__pendingValue;this.__pendingValue=s,t(this)}if(this.__pendingValue===s)return;const t=!!this.__pendingValue;this.value!==t&&(t?this.element.setAttribute(this.name,""):this.element.removeAttribute(this.name),this.value=t),this.__pendingValue=s}}class PropertyCommitter extends AttributeCommitter{constructor(t,e,n){super(t,e,n),this.single=2===n.length&&""===n[0]&&""===n[1]}_createPart(){return new PropertyPart(this)}_getValue(){return this.single?this.parts[0].value:super._getValue()}commit(){this.dirty&&(this.dirty=!1,this.element[this.name]=this._getValue())}}class PropertyPart extends AttributePart{}let E=!1;try{const t={get capture(){return E=!0,!1}};window.addEventListener("test",t,t),window.removeEventListener("test",t,t)}catch(No){}class EventPart{constructor(t,e,n){this.value=void 0,this.__pendingValue=void 0,this.element=t,this.eventName=e,this.eventContext=n,this.__boundHandleEvent=t=>this.handleEvent(t)}setValue(t){this._
  95. /**
  96. * @license
  97. * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
  98. * This code may only be used under the BSD style license found at
  99. * http://polymer.github.io/LICENSE.txt
  100. * The complete set of authors may be found at
  101. * http://polymer.github.io/AUTHORS.txt
  102. * The complete set of contributors may be found at
  103. * http://polymer.github.io/CONTRIBUTORS.txt
  104. * Code distributed by Google as part of the polymer project is also
  105. * subject to an additional IP rights grant found at
  106. * http://polymer.github.io/PATENTS.txt
  107. */;const y=new class DefaultTemplateProcessor{handleAttributeExpressions(t,e,n,i){const r=e[0];if("."===r){return new PropertyCommitter(t,e.slice(1),n).parts}if("@"===r)return[new EventPart(t,e.slice(1),i.eventContext)];if("?"===r)return[new BooleanAttributePart(t,e.slice(1),n)];return new AttributeCommitter(t,e,n).parts}handleTextExpression(t){return new NodePart(t)}};
  108. /**
  109. * @license
  110. * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
  111. * This code may only be used under the BSD style license found at
  112. * http://polymer.github.io/LICENSE.txt
  113. * The complete set of authors may be found at
  114. * http://polymer.github.io/AUTHORS.txt
  115. * The complete set of contributors may be found at
  116. * http://polymer.github.io/CONTRIBUTORS.txt
  117. * Code distributed by Google as part of the polymer project is also
  118. * subject to an additional IP rights grant found at
  119. * http://polymer.github.io/PATENTS.txt
  120. */function x(t){let e=k.get(t.type);void 0===e&&(e={stringsArray:new WeakMap,keyString:new Map},k.set(t.type,e));let n=e.stringsArray.get(t.strings);if(void 0!==n)return n;const i=t.strings.join(c);return n=e.keyString.get(i),void 0===n&&(n=new Template(t,t.getTemplateElement()),e.keyString.set(i,n)),e.stringsArray.set(t.strings,n),n}const k=new Map,A=new WeakMap;
  121. /**
  122. * @license
  123. * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
  124. * This code may only be used under the BSD style license found at
  125. * http://polymer.github.io/LICENSE.txt
  126. * The complete set of authors may be found at
  127. * http://polymer.github.io/AUTHORS.txt
  128. * The complete set of contributors may be found at
  129. * http://polymer.github.io/CONTRIBUTORS.txt
  130. * Code distributed by Google as part of the polymer project is also
  131. * subject to an additional IP rights grant found at
  132. * http://polymer.github.io/PATENTS.txt
  133. */t("b",((t,e,n)=>{let i=A.get(e);void 0===i&&(o(e,e.firstChild),A.set(e,i=new NodePart(Object.assign({templateFactory:x},n))),i.appendInto(e)),i.setValue(t),i.commit()}));
  134. /**
  135. * @license
  136. * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
  137. * This code may only be used under the BSD style license found at
  138. * http://polymer.github.io/LICENSE.txt
  139. * The complete set of authors may be found at
  140. * http://polymer.github.io/AUTHORS.txt
  141. * The complete set of contributors may be found at
  142. * http://polymer.github.io/CONTRIBUTORS.txt
  143. * Code distributed by Google as part of the polymer project is also
  144. * subject to an additional IP rights grant found at
  145. * http://polymer.github.io/PATENTS.txt
  146. */
  147. (window.litHtmlVersions||(window.litHtmlVersions=[])).push("1.1.2");t("e",((t,...e)=>new TemplateResult(t,e,"html",y)));function T(t,e=0,{start:n=!0,middle:i=!0,once:r=!1}={}){let o,s=0,a=!1;function c(...l){if(a)return;const u=Date.now()-s;s=Date.now(),n?(n=!1,t.apply(this,l),r&&c.cancel()):(i&&u<e||!i)&&(clearTimeout(o),o=setTimeout((()=>{s=Date.now(),t.apply(this,l),r&&c.cancel()}),i?e-u:e))}return c.cancel=()=>{clearTimeout(o),a=!0},c}function L(t,e=0,{start:n=!1,middle:i=!1,once:r=!1}={}){return T(t,e,{start:n,middle:i,once:r})}function M(){if(!(this instanceof M))return new M;this.size=0,this.uid=0,this.selectors=[],this.indexes=Object.create(this.indexes),this.activeIndexes=[]}var S=window.document.documentElement,C=S.matches||S.webkitMatchesSelector||S.mozMatchesSelector||S.oMatchesSelector||S.msMatchesSelector;M.prototype.matchesSelector=function(t,e){return C.call(t,e)},M.prototype.querySelectorAll=function(t,e){return e.querySelectorAll(t)},M.prototype.indexes=[];var N=/^#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/g;M.prototype.indexes.push({name:"ID",selector:function(t){var e;if(e=t.match(N))return e[0].slice(1)},element:function(t){if(t.id)return[t.id]}});var I=/^\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/g;M.prototype.indexes.push({name:"CLASS",selector:function(t){var e;if(e=t.match(I))return e[0].slice(1)},element:function(t){var e=t.className;if(e){if("string"==typeof e)return e.split(/\s/);if("object"==typeof e&&"baseVal"in e)return e.baseVal.split(/\s/)}}});var D,H=/^((?:[\w\u00c0-\uFFFF\-]|\\.)+)/g;M.prototype.indexes.push({name:"TAG",selector:function(t){var e;if(e=t.match(H))return e[0].toUpperCase()},element:function(t){return[t.nodeName.toUpperCase()]}}),M.prototype.indexes.default={name:"UNIVERSAL",selector:function(){return!0},element:function(){return[!0]}},D="function"==typeof window.Map?window.Map:function(){function t(){this.map={}}return t.prototype.get=function(t){return this.map[t+" "]},t.prototype.set=function(t,e){this.map[t+" "]=e},t}();var P=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g;function R(t,e){var n,i,r,o,s,a,c=(t=t.slice(0).concat(t.default)).length,l=e,u=[];do{if(P.exec(""),(r=P.exec(l))&&(l=r[3],r[2]||!l))for(n=0;n<c;n++)if(s=(a=t[n]).selector(r[1])){for(i=u.length,o=!1;i--;)if(u[i].index===a&&u[i].key===s){o=!0;break}o||u.push({index:a,key:s});break}}while(r);return u}function _(t,e){var n,i,r;for(n=0,i=t.length;n<i;n++)if(r=t[n],e.isPrototypeOf(r))return r}function O(t,e){return t.id-e.id}M.prototype.logDefaultIndexUsed=function(){},M.prototype.add=function(t,e){var n,i,r,o,s,a,c,l,u=this.activeIndexes,d=this.selectors;if("string"==typeof t){for(n={id:this.uid++,selector:t,data:e},c=R(this.indexes,t),i=0;i<c.length;i++)o=(l=c[i]).key,(s=_(u,r=l.index))||((s=Object.create(r)).map=new D,u.push(s)),r===this.indexes.default&&this.logDefaultIndexUsed(n),(a=s.map.get(o))||(a=[],s.map.set(o,a)),a.push(n);this.size++,d.push(t)}},M.prototype.remove=function(t,e){if("string"==typeof t){var n,i,r,o,s,a,c,l,u=this.activeIndexes,d={},h=1===arguments.length;for(n=R(this.indexes,t),r=0;r<n.length;r++)for(i=n[r],o=u.length;o--;)if(a=u[o],i.index.isPrototypeOf(a)){if(c=a.map.get(i.key))for(s=c.length;s--;)(l=c[s]).selector!==t||!h&&l.data!==e||(c.splice(s,1),d[l.id]=!0);break}this.size-=Object.keys(d).length}},M.prototype.queryAll=function(t){if(!this.selectors.length)return[];var e,n,i,r,o,s,a,c,l={},u=[],d=this.querySelectorAll(this.selectors.join(", "),t);for(e=0,i=d.length;e<i;e++)for(o=d[e],n=0,r=(s=this.matches(o)).length;n<r;n++)l[(c=s[n]).id]?a=l[c.id]:(a={id:c.id,selector:c.selector,data:c.data,elements:[]},l[c.id]=a,u.push(a)),a.elements.push(o);return u.sort(O)},M.prototype.matches=function(t){if(!t)return[];var e,n,i,r,o,s,a,c,l,u,d,h=this.activeIndexes,m={},f=[];for(e=0,r=h.length;e<r;e++)if(c=(a=h[e]).element(t))for(n=0,o=c.length;n<o;n++)if(l=a.map.get(c[n]))for(i=0,s=l.length;i<s;i++)!m[d=(u=l[i]).id]&&this.matchesSelector(t,u.selector)&&(m[d]=!0,f.push(u));return f.sort(O)};var q={},F={},B=new WeakMap,W=
  148. /**
  149. * @license
  150. * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
  151. * This code may only be used under the BSD style license found at
  152. * http://polymer.github.io/LICENSE.txt
  153. * The complete set of authors may be found at
  154. * http://polymer.github.io/AUTHORS.txt
  155. * The complete set of contributors may be found at
  156. * http://polymer.github.io/CONTRIBUTORS.txt
  157. * Code distributed by Google as part of the polymer project is also
  158. * subject to an additional IP rights grant found at
  159. * http://polymer.github.io/PATENTS.txt
  160. */const ko=(t,e)=>{const n=t.startNode.parentNode,i=void 0===e?t.endNode:e.startNode,r=n.insertBefore(f(),i);n.insertBefore(f(),i);const o=new NodePart(t.options);return o.insertAfterNode(r),o},Ao=(t,e)=>(t.setValue(e),t.commit(),t),To=(t,e,n)=>{const i=t.startNode.parentNode,r=n?n.startNode:t.endNode,o=e.endNode.nextSibling;o!==r&&((t,e,n=null,i=null)=>{for(;e!==n;){const n=e.nextSibling;t.insertBefore(e,i),e=n}})(i,e.startNode,o,r)},Lo=t=>{o(t.startNode.parentNode,t.startNode,t.endNode.nextSibling)},Mo=(t,e,n)=>{const i=new Map;for(let r=e;r<=n;r++)i.set(t[r],r);return i},So=new WeakMap,Co=new WeakMap;t("a4",n(((t,e,n)=>{let i;return void 0===n?n=e:void 0!==e&&(i=e),e=>{if(!(e instanceof NodePart))throw new Error("repeat can only be used in text bindings");const r=So.get(e)||[],o=Co.get(e)||[],s=[],a=[],c=[];let l,u,d=0;for(const g of t)c[d]=i?i(g,d):d,a[d]=n(g,d),d++;let h=0,m=r.length-1,f=0,p=a.length-1;for(;h<=m&&f<=p;)if(null===r[h])h++;else if(null===r[m])m--;else if(o[h]===c[f])s[f]=Ao(r[h],a[f]),h++,f++;else if(o[m]===c[p])s[p]=Ao(r[m],a[p]),m--,p--;else if(o[h]===c[p])s[p]=Ao(r[h],a[p]),To(e,r[h],s[p+1]),h++,p--;else if(o[m]===c[f])s[f]=Ao(r[m],a[f]),To(e,r[m],r[h]),m--,f++;else if(void 0===l&&(l=Mo(c,f,p),u=Mo(o,h,m)),l.has(o[h]))if(l.has(o[m])){const t=u.get(c[f]),n=void 0!==t?r[t]:null;if(null===n){const t=ko(e,r[h]);Ao(t,a[f]),s[f]=t}else s[f]=Ao(n,a[f]),To(e,n,r[h]),r[t]=null;f++}else Lo(r[m]),m--;else Lo(r[h]),h++;for(;f<=p;){const t=ko(e,s[p+1]);Ao(t,a[f]),s[f++]=t}for(;h<=m;){const t=r[h++];null!==t&&Lo(t)}So.set(e,s),Co.set(e,c)}})))}}}));
  161. //# sourceMappingURL=chunk-vendor-6accd1a4.js.map