@nyaruka/temba-components 0.28.3 → 0.29.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (135) hide show
  1. package/.eslintrc.js +1 -0
  2. package/.yarnrc +1 -1
  3. package/.yarnrc.yml +1 -0
  4. package/CHANGELOG.md +103 -56
  5. package/dist/{a549bd4a.js → a439f561.js} +56 -84
  6. package/dist/index.js +56 -84
  7. package/dist/sw.js +1 -1
  8. package/dist/sw.js.map +1 -1
  9. package/dist/templates/components-body.html +1 -1
  10. package/dist/templates/components-head.html +1 -1
  11. package/dist/workbox-80efdfd1.js.map +1 -1
  12. package/out-tsc/src/contacts/ContactBadges.js +2 -9
  13. package/out-tsc/src/contacts/ContactBadges.js.map +1 -1
  14. package/out-tsc/src/contacts/ContactChat.js +3 -0
  15. package/out-tsc/src/contacts/ContactChat.js.map +1 -1
  16. package/out-tsc/src/contacts/ContactStoreElement.js +9 -2
  17. package/out-tsc/src/contacts/ContactStoreElement.js.map +1 -1
  18. package/out-tsc/src/contacts/events.js +0 -3
  19. package/out-tsc/src/contacts/events.js.map +1 -1
  20. package/out-tsc/src/label/Label.js +29 -42
  21. package/out-tsc/src/label/Label.js.map +1 -1
  22. package/out-tsc/src/slider/TembaSlider.js +9 -1
  23. package/out-tsc/src/slider/TembaSlider.js.map +1 -1
  24. package/out-tsc/src/sms/gsmvalidator.js +9 -138
  25. package/out-tsc/src/sms/gsmvalidator.js.map +1 -1
  26. package/out-tsc/src/store/Store.js +4 -1
  27. package/out-tsc/src/store/Store.js.map +1 -1
  28. package/out-tsc/src/vectoricon/VectorIcon.js +0 -5
  29. package/out-tsc/src/vectoricon/VectorIcon.js.map +1 -1
  30. package/out-tsc/temba-components.js +1 -2
  31. package/out-tsc/temba-components.js.map +1 -1
  32. package/out-tsc/temba-modules.js +1 -1
  33. package/out-tsc/temba-modules.js.map +1 -1
  34. package/out-tsc/test/MouseHelper.js +47 -0
  35. package/out-tsc/test/MouseHelper.js.map +1 -0
  36. package/out-tsc/test/temba-contact-badges.test.js +23 -0
  37. package/out-tsc/test/temba-contact-badges.test.js.map +1 -0
  38. package/out-tsc/test/temba-contact-chat.test.js +111 -7
  39. package/out-tsc/test/temba-contact-chat.test.js.map +1 -1
  40. package/out-tsc/test/temba-contact-history.test.js +6 -6
  41. package/out-tsc/test/temba-contact-history.test.js.map +1 -1
  42. package/out-tsc/test/temba-dialog.test.js +1 -1
  43. package/out-tsc/test/temba-dialog.test.js.map +1 -1
  44. package/out-tsc/test/temba-label.test.js +66 -0
  45. package/out-tsc/test/temba-label.test.js.map +1 -0
  46. package/out-tsc/test/temba-list.test.js +1 -1
  47. package/out-tsc/test/temba-list.test.js.map +1 -1
  48. package/out-tsc/test/temba-menu.test.js +1 -1
  49. package/out-tsc/test/temba-menu.test.js.map +1 -1
  50. package/out-tsc/test/temba-select.test.js +1 -6
  51. package/out-tsc/test/temba-select.test.js.map +1 -1
  52. package/out-tsc/test/temba-slider.test.js +151 -8
  53. package/out-tsc/test/temba-slider.test.js.map +1 -1
  54. package/out-tsc/test/temba-store.test.js +5 -0
  55. package/out-tsc/test/temba-store.test.js.map +1 -1
  56. package/out-tsc/test/temba-textinput.test.js +3 -4
  57. package/out-tsc/test/temba-textinput.test.js.map +1 -1
  58. package/out-tsc/test/temba-tip.test.js +1 -1
  59. package/out-tsc/test/temba-tip.test.js.map +1 -1
  60. package/out-tsc/test/utils.test.js +26 -14
  61. package/out-tsc/test/utils.test.js.map +1 -1
  62. package/package.json +5 -4
  63. package/screenshots/truth/contacts/badges.png +0 -0
  64. package/screenshots/truth/contacts/contact-active-default.png +0 -0
  65. package/screenshots/truth/contacts/contact-active-show-chat-history.png +0 -0
  66. package/screenshots/truth/contacts/contact-active-show-chat-msg.png +0 -0
  67. package/screenshots/truth/contacts/contact-archived-hide-chat-msg.png +0 -0
  68. package/screenshots/truth/contacts/contact-archived-show-chat-history.png +0 -0
  69. package/screenshots/truth/contacts/contact-blocked-hide-chat-msg.png +0 -0
  70. package/screenshots/truth/contacts/contact-blocked-show-chat-history.png +0 -0
  71. package/screenshots/truth/contacts/contact-stopped-hide-chat-msg.png +0 -0
  72. package/screenshots/truth/contacts/contact-stopped-show-chat-history.png +0 -0
  73. package/screenshots/truth/contacts/history-expanded.png +0 -0
  74. package/screenshots/truth/contacts/history.png +0 -0
  75. package/screenshots/truth/label/custom.png +0 -0
  76. package/screenshots/truth/label/danger.png +0 -0
  77. package/screenshots/truth/label/dark.png +0 -0
  78. package/screenshots/truth/label/default-icon.png +0 -0
  79. package/screenshots/truth/label/no-icon.png +0 -0
  80. package/screenshots/truth/label/primary.png +0 -0
  81. package/screenshots/truth/label/secondary.png +0 -0
  82. package/screenshots/truth/label/shadow.png +0 -0
  83. package/screenshots/truth/label/tertiary.png +0 -0
  84. package/screenshots/truth/slider/custom-min-custom-max-valid-value.png +0 -0
  85. package/screenshots/truth/slider/custom-min-default-max-no-value.png +0 -0
  86. package/screenshots/truth/slider/default-min-custom-max-no-value.png +0 -0
  87. package/screenshots/truth/slider/default-min-default-max-invalid-value.png +0 -0
  88. package/screenshots/truth/slider/default-min-default-max-valid-value.png +0 -0
  89. package/screenshots/truth/slider/default.png +0 -0
  90. package/screenshots/truth/slider/no-visible-range-invalid-value.png +0 -0
  91. package/screenshots/truth/slider/no-visible-range-no-value.png +0 -0
  92. package/screenshots/truth/slider/no-visible-range-valid-value.png +0 -0
  93. package/screenshots/truth/slider/update-slider-on-circle-dragged.png +0 -0
  94. package/screenshots/truth/slider/update-slider-on-track-clicked.png +0 -0
  95. package/screenshots/truth/slider/update-slider-on-value-change.png +0 -0
  96. package/src/contacts/ContactBadges.ts +2 -9
  97. package/src/contacts/ContactChat.ts +3 -0
  98. package/src/contacts/ContactStoreElement.ts +5 -2
  99. package/src/contacts/events.ts +0 -3
  100. package/src/label/Label.ts +31 -43
  101. package/src/slider/TembaSlider.ts +8 -1
  102. package/src/sms/gsmvalidator.ts +9 -138
  103. package/src/store/Store.ts +17 -1
  104. package/src/untyped.d.ts +3 -0
  105. package/src/vectoricon/VectorIcon.ts +0 -5
  106. package/static/css/temba-components.css +3 -8
  107. package/static/icons/SVG/credits.svg +5 -0
  108. package/temba-components.ts +1 -2
  109. package/temba-modules.ts +1 -1
  110. package/test/MouseHelper.ts +47 -0
  111. package/test/temba-contact-badges.test.ts +33 -0
  112. package/test/temba-contact-chat.test.ts +202 -6
  113. package/test/temba-contact-history.test.ts +6 -6
  114. package/test/temba-dialog.test.ts +1 -1
  115. package/test/temba-label.test.ts +75 -0
  116. package/test/temba-list.test.ts +1 -1
  117. package/test/temba-menu.test.ts +1 -0
  118. package/test/temba-select.test.ts +6 -10
  119. package/test/temba-slider.test.ts +204 -8
  120. package/test/temba-store.test.ts +6 -0
  121. package/test/temba-textinput.test.ts +3 -4
  122. package/test/temba-tip.test.ts +1 -1
  123. package/test/utils.test.ts +34 -16
  124. package/test-assets/contacts/contact-barak-archived +40 -0
  125. package/test-assets/contacts/contact-dave-active +52 -0
  126. package/test-assets/contacts/contact-michelle-blocked +40 -0
  127. package/test-assets/contacts/contact-tim-stopped +52 -0
  128. package/test-assets/store/groups.json +29 -0
  129. package/test-assets/store/languages.json +290 -0
  130. package/test-assets/style.css +2 -0
  131. package/web-test-runner.config.mjs +16 -0
  132. package/.yarn/releases/yarn-1.22.10.cjs +0 -147392
  133. package/out-tsc/src/contacts/ContactGroups.js +0 -40
  134. package/out-tsc/src/contacts/ContactGroups.js.map +0 -1
  135. package/src/contacts/ContactGroups.ts +0 -42
@@ -1,4 +1,4 @@
1
- function t(t,e,i,n){var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s}const e=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,i=Symbol(),n=new Map;class o{constructor(t,e){if(this._$cssResult$=!0,e!==i)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t}get styleSheet(){let t=n.get(this.cssText);return e&&void 0===t&&(n.set(this.cssText,t=new CSSStyleSheet),t.replaceSync(this.cssText)),t}toString(){return this.cssText}}const r=(t,...e)=>{const n=1===t.length?t[0]:e.reduce(((e,i,n)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[n+1]),t[0]);return new o(n,i)},s=e?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return(t=>new o("string"==typeof t?t:t+"",i))(e)})(t):t;var a;const l=window.trustedTypes,c=l?l.emptyScript:"",h=window.reactiveElementPolyfillSupport,u={toAttribute(t,e){switch(e){case Boolean:t=t?c:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},d=(t,e)=>e!==t&&(e==e||t==t),p={attribute:!0,type:String,converter:u,reflect:!1,hasChanged:d};class m extends HTMLElement{constructor(){super(),this._$Et=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Ei=null,this.o()}static addInitializer(t){var e;null!==(e=this.l)&&void 0!==e||(this.l=[]),this.l.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,i)=>{const n=this._$Eh(i,e);void 0!==n&&(this._$Eu.set(n,i),t.push(n))})),t}static createProperty(t,e=p){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i="symbol"==typeof t?Symbol():"__"+t,n=this.getPropertyDescriptor(t,i,e);void 0!==n&&Object.defineProperty(this.prototype,t,n)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(n){const o=this[t];this[e]=n,this.requestUpdate(t,o,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||p}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),this.elementProperties=new Map(t.elementProperties),this._$Eu=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const i of e)this.createProperty(i,t[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(s(t))}else void 0!==t&&e.push(s(t));return e}static _$Eh(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}o(){var t;this._$Ep=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Em(),this.requestUpdate(),null===(t=this.constructor.l)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,i;(null!==(e=this._$Eg)&&void 0!==e?e:this._$Eg=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(i=t.hostConnected)||void 0===i||i.call(t))}removeController(t){var e;null===(e=this._$Eg)||void 0===e||e.splice(this._$Eg.indexOf(t)>>>0,1)}_$Em(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Et.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const i=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return((t,i)=>{e?t.adoptedStyleSheets=i.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):i.forEach((e=>{const i=document.createElement("style"),n=window.litNonce;void 0!==n&&i.setAttribute("nonce",n),i.textContent=e.cssText,t.appendChild(i)}))})(i,this.constructor.elementStyles),i}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$ES(t,e,i=p){var n,o;const r=this.constructor._$Eh(t,i);if(void 0!==r&&!0===i.reflect){const s=(null!==(o=null===(n=i.converter)||void 0===n?void 0:n.toAttribute)&&void 0!==o?o:u.toAttribute)(e,i.type);this._$Ei=t,null==s?this.removeAttribute(r):this.setAttribute(r,s),this._$Ei=null}}_$AK(t,e){var i,n,o;const r=this.constructor,s=r._$Eu.get(t);if(void 0!==s&&this._$Ei!==s){const t=r.getPropertyOptions(s),a=t.converter,l=null!==(o=null!==(n=null===(i=a)||void 0===i?void 0:i.fromAttribute)&&void 0!==n?n:"function"==typeof a?a:null)&&void 0!==o?o:u.fromAttribute;this._$Ei=s,this[s]=l(e,t.type),this._$Ei=null}}requestUpdate(t,e,i){let n=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||d)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$Ei!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,i))):n=!1),!this.isUpdatePending&&n&&(this._$Ep=this._$E_())}async _$E_(){this.isUpdatePending=!0;try{await this._$Ep}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Et&&(this._$Et.forEach(((t,e)=>this[e]=t)),this._$Et=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(i)):this._$EU()}catch(t){throw e=!1,this._$EU(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null===(e=this._$Eg)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Ep}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$ES(e,this[e],t))),this._$EC=void 0),this._$EU()}updated(t){}firstUpdated(t){}}var f;m.finalized=!0,m.elementProperties=new Map,m.elementStyles=[],m.shadowRootOptions={mode:"open"},null==h||h({ReactiveElement:m}),(null!==(a=globalThis.reactiveElementVersions)&&void 0!==a?a:globalThis.reactiveElementVersions=[]).push("1.3.0");const g=globalThis.trustedTypes,v=g?g.createPolicy("lit-html",{createHTML:t=>t}):void 0,y=`lit$${(Math.random()+"").slice(9)}$`,b="?"+y,_=`<${b}>`,x=document,w=(t="")=>x.createComment(t),k=t=>null===t||"object"!=typeof t&&"function"!=typeof t,C=Array.isArray,S=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,E=/-->/g,T=/>/g,M=/>|[ \n \r](?:([^\s"'>=/]+)([ \n \r]*=[ \n \r]*(?:[^ \n \r"'`<>=]|("|')|))|$)/g,D=/'/g,$=/"/g,A=/^(?:script|style|textarea|title)$/i,O=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),P=Symbol.for("lit-noChange"),I=Symbol.for("lit-nothing"),N=new WeakMap,z=x.createTreeWalker(x,129,null,!1),R=(t,e)=>{const i=t.length-1,n=[];let o,r=2===e?"<svg>":"",s=S;for(let e=0;e<i;e++){const i=t[e];let a,l,c=-1,h=0;for(;h<i.length&&(s.lastIndex=h,l=s.exec(i),null!==l);)h=s.lastIndex,s===S?"!--"===l[1]?s=E:void 0!==l[1]?s=T:void 0!==l[2]?(A.test(l[2])&&(o=RegExp("</"+l[2],"g")),s=M):void 0!==l[3]&&(s=M):s===M?">"===l[0]?(s=null!=o?o:S,c=-1):void 0===l[1]?c=-2:(c=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?M:'"'===l[3]?$:D):s===$||s===D?s=M:s===E||s===T?s=S:(s=M,o=void 0);const u=s===M&&t[e+1].startsWith("/>")?" ":"";r+=s===S?i+_:c>=0?(n.push(a),i.slice(0,c)+"$lit$"+i.slice(c)+y+u):i+y+(-2===c?(n.push(void 0),e):u)}const a=r+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==v?v.createHTML(a):a,n]};class B{constructor({strings:t,_$litType$:e},i){let n;this.parts=[];let o=0,r=0;const s=t.length-1,a=this.parts,[l,c]=R(t,e);if(this.el=B.createElement(l,i),z.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(n=z.nextNode())&&a.length<s;){if(1===n.nodeType){if(n.hasAttributes()){const t=[];for(const e of n.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(y)){const i=c[r++];if(t.push(e),void 0!==i){const t=n.getAttribute(i.toLowerCase()+"$lit$").split(y),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:o,name:e[2],strings:t,ctor:"."===e[1]?H:"?"===e[1]?V:"@"===e[1]?W:Z})}else a.push({type:6,index:o})}for(const e of t)n.removeAttribute(e)}if(A.test(n.tagName)){const t=n.textContent.split(y),e=t.length-1;if(e>0){n.textContent=g?g.emptyScript:"";for(let i=0;i<e;i++)n.append(t[i],w()),z.nextNode(),a.push({type:2,index:++o});n.append(t[e],w())}}}else if(8===n.nodeType)if(n.data===b)a.push({type:2,index:o});else{let t=-1;for(;-1!==(t=n.data.indexOf(y,t+1));)a.push({type:7,index:o}),t+=y.length-1}o++}}static createElement(t,e){const i=x.createElement("template");return i.innerHTML=t,i}}function F(t,e,i=t,n){var o,r,s,a;if(e===P)return e;let l=void 0!==n?null===(o=i._$Cl)||void 0===o?void 0:o[n]:i._$Cu;const c=k(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==c&&(null===(r=null==l?void 0:l._$AO)||void 0===r||r.call(l,!1),void 0===c?l=void 0:(l=new c(t),l._$AT(t,i,n)),void 0!==n?(null!==(s=(a=i)._$Cl)&&void 0!==s?s:a._$Cl=[])[n]=l:i._$Cu=l),void 0!==l&&(e=F(t,l._$AS(t,e.values),l,n)),e}class q{constructor(t,e){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var e;const{el:{content:i},parts:n}=this._$AD,o=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:x).importNode(i,!0);z.currentNode=o;let r=z.nextNode(),s=0,a=0,l=n[0];for(;void 0!==l;){if(s===l.index){let e;2===l.type?e=new j(r,r.nextSibling,this,t):1===l.type?e=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(e=new G(r,this,t)),this.v.push(e),l=n[++a]}s!==(null==l?void 0:l.index)&&(r=z.nextNode(),s++)}return o}m(t){let e=0;for(const i of this.v)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class j{constructor(t,e,i,n){var o;this.type=2,this._$AH=I,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=n,this._$Cg=null===(o=null==n?void 0:n.isConnected)||void 0===o||o}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cg}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=F(this,t,e),k(t)?t===I||null==t||""===t?(this._$AH!==I&&this._$AR(),this._$AH=I):t!==this._$AH&&t!==P&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.k(t):(t=>{var e;return C(t)||"function"==typeof(null===(e=t)||void 0===e?void 0:e[Symbol.iterator])})(t)?this.S(t):this.$(t)}A(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.A(t))}$(t){this._$AH!==I&&k(this._$AH)?this._$AA.nextSibling.data=t:this.k(x.createTextNode(t)),this._$AH=t}T(t){var e;const{values:i,_$litType$:n}=t,o="number"==typeof n?this._$AC(t):(void 0===n.el&&(n.el=B.createElement(n.h,this.options)),n);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===o)this._$AH.m(i);else{const t=new q(o,this),e=t.p(this.options);t.m(i),this.k(e),this._$AH=t}}_$AC(t){let e=N.get(t.strings);return void 0===e&&N.set(t.strings,e=new B(t)),e}S(t){C(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,n=0;for(const o of t)n===e.length?e.push(i=new j(this.A(w()),this.A(w()),this,this.options)):i=e[n],i._$AI(o),n++;n<e.length&&(this._$AR(i&&i._$AB.nextSibling,n),e.length=n)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cg=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class Z{constructor(t,e,i,n,o){this.type=1,this._$AH=I,this._$AN=void 0,this.element=t,this.name=e,this._$AM=n,this.options=o,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=I}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,n){const o=this.strings;let r=!1;if(void 0===o)t=F(this,t,e,0),r=!k(t)||t!==this._$AH&&t!==P,r&&(this._$AH=t);else{const n=t;let s,a;for(t=o[0],s=0;s<o.length-1;s++)a=F(this,n[i+s],e,s),a===P&&(a=this._$AH[s]),r||(r=!k(a)||a!==this._$AH[s]),a===I?t=I:t!==I&&(t+=(null!=a?a:"")+o[s+1]),this._$AH[s]=a}r&&!n&&this.C(t)}C(t){t===I?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class H extends Z{constructor(){super(...arguments),this.type=3}C(t){this.element[this.name]=t===I?void 0:t}}const U=g?g.emptyScript:"";class V extends Z{constructor(){super(...arguments),this.type=4}C(t){t&&t!==I?this.element.setAttribute(this.name,U):this.element.removeAttribute(this.name)}}class W extends Z{constructor(t,e,i,n,o){super(t,e,i,n,o),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=F(this,t,e,0))&&void 0!==i?i:I)===P)return;const n=this._$AH,o=t===I&&n!==I||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,r=t!==I&&(n===I||o);o&&this.element.removeEventListener(this.name,this,n),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class G{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){F(this,t)}}const Y=window.litHtmlPolyfillSupport;var K,J;null==Y||Y(B,j),(null!==(f=globalThis.litHtmlVersions)&&void 0!==f?f:globalThis.litHtmlVersions=[]).push("2.2.0");class X extends m{constructor(){super(...arguments),this.renderOptions={host:this},this._$Dt=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Dt=((t,e,i)=>{var n,o;const r=null!==(n=null==i?void 0:i.renderBefore)&&void 0!==n?n:e;let s=r._$litPart$;if(void 0===s){const t=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:null;r._$litPart$=s=new j(e.insertBefore(w(),t),t,void 0,null!=i?i:{})}return s._$AI(t),s})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!1)}render(){return P}}X.finalized=!0,X._$litElement$=!0,null===(K=globalThis.litElementHydrateSupport)||void 0===K||K.call(globalThis,{LitElement:X});const Q=globalThis.litElementPolyfillSupport;null==Q||Q({LitElement:X}),(null!==(J=globalThis.litElementVersions)&&void 0!==J?J:globalThis.litElementVersions=[]).push("3.2.0");class tt extends X{constructor(){super(...arguments),this.eles={}}getEventHandlers(){return[]}connectedCallback(){super.connectedCallback();for(const t of this.getEventHandlers())t.isDocument?document.addEventListener(t.event,t.method.bind(this)):this.addEventListener(t.event,t.method.bind(this))}disconnectedCallback(){for(const t of this.getEventHandlers())t.isDocument?document.removeEventListener(t.event,t.method):this.removeEventListener(t.event,t.method);super.disconnectedCallback()}fireEvent(t){return this.dispatchEvent(new Event(t,{bubbles:!0,composed:!0}))}fireCustomEvent(t,e={}){const i=new CustomEvent(t,{detail:e,bubbles:!0,composed:!0});return this.dispatchEvent(i)}dispatchEvent(t){super.dispatchEvent(t);const e=t.target;if(e){const i=e["-"+t.type];if(i)return i(t);return new Function("event",`with(document) {\n with(this) {\n let handler = ${e.getAttribute("-"+t.type)};\n if(typeof handler === 'function') { \n handler(event) ;\n }\n }\n }`).call(e,t)}}closestElement(t,e=this){return function e(i){if(!i||i===document||i===window)return null;i.assignedSlot&&(i=i.assignedSlot);const n=i.closest(t);return n||e(i.getRootNode().host)}(e)}getDiv(t){let e=this.eles[t];return e||(e=this.shadowRoot.querySelector(t),e&&(this.eles[t]=e),e)}}const et=(t,e)=>"method"===e.kind&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(i){i.createProperty(e.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){"function"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher(i){i.createProperty(e.key,t)}};function it(t){return(e,i)=>void 0!==i?((t,e,i)=>{e.constructor.createProperty(i,t)})(t,e,i):et(t,e)}var nt;null===(nt=window.HTMLSlotElement)||void 0===nt||nt.prototype.assignedElements;class ot extends tt{constructor(){super(...arguments),this.hiddenInputs=[],this.values=[],this.value="",this.inputRoot=this}setValue(t){t?this.setValues([t]):this.setValues([]),this.value=t}setValues(t){this.values=t,this.requestUpdate("values")}addValue(t){this.values.push(t),this.requestUpdate("values")}removeValue(t){this.values=this.values.filter((e=>e!==t)),this.requestUpdate("values")}popValue(){this.values.pop(),this.requestUpdate("values")}clear(){this.values=[],this.requestUpdate("values")}serializeValue(t){return JSON.stringify(t)}updateInputs(){for(let t=null;t=this.hiddenInputs.pop();)t.remove();for(const t of this.values){const e=document.createElement("input");e.setAttribute("type","hidden"),e.setAttribute("name",this.getAttribute("name")),e.setAttribute("value",this.serializeValue(t)),this.hiddenInputs.push(e),this.inputRoot.parentElement.appendChild(e)}}updated(t){super.updated(t),t.has("values")&&this.updateInputs()}}t([it({type:String,attribute:"help_text"})],ot.prototype,"helpText",void 0),t([it({type:Boolean,attribute:"help_always"})],ot.prototype,"helpAlways",void 0),t([it({type:Boolean,attribute:"widget_only"})],ot.prototype,"widgetOnly",void 0),t([it({type:Boolean,attribute:"hide_label"})],ot.prototype,"hideLabel",void 0),t([it({type:String})],ot.prototype,"label",void 0),t([it({type:Array})],ot.prototype,"errors",void 0),t([it({type:Array})],ot.prototype,"values",void 0),t([it({type:String})],ot.prototype,"value",void 0),t([it({attribute:!1})],ot.prototype,"inputRoot",void 0);class rt extends ot{constructor(){super(...arguments),this.name="",this.disabled=!1,this.size=1.2,this.animateChange="pulse"}static get styles(){return r`
1
+ function t(t,e,i,n){var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(r<3?o(s):r>3?o(e,i,s):o(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s}const e=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,i=Symbol(),n=new WeakMap;class o{constructor(t,e,n){if(this._$cssResult$=!0,n!==i)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const i=this.t;if(e&&void 0===t){const e=void 0!==i&&1===i.length;e&&(t=n.get(i)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&n.set(i,t))}return t}toString(){return this.cssText}}const r=(t,...e)=>{const n=1===t.length?t[0]:e.reduce(((e,i,n)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[n+1]),t[0]);return new o(n,t,i)},s=e?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return(t=>new o("string"==typeof t?t:t+"",void 0,i))(e)})(t):t;var a;const l=window.trustedTypes,c=l?l.emptyScript:"",h=window.reactiveElementPolyfillSupport,u={toAttribute(t,e){switch(e){case Boolean:t=t?c:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},d=(t,e)=>e!==t&&(e==e||t==t),p={attribute:!0,type:String,converter:u,reflect:!1,hasChanged:d};class m extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var e;null!==(e=this.h)&&void 0!==e||(this.h=[]),this.h.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,i)=>{const n=this._$Ep(i,e);void 0!==n&&(this._$Ev.set(n,i),t.push(n))})),t}static createProperty(t,e=p){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i="symbol"==typeof t?Symbol():"__"+t,n=this.getPropertyDescriptor(t,i,e);void 0!==n&&Object.defineProperty(this.prototype,t,n)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(n){const o=this[t];this[e]=n,this.requestUpdate(t,o,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||p}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const i of e)this.createProperty(i,t[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(s(t))}else void 0!==t&&e.push(s(t));return e}static _$Ep(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,i;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(i=t.hostConnected)||void 0===i||i.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const i=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return((t,i)=>{e?t.adoptedStyleSheets=i.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):i.forEach((e=>{const i=document.createElement("style"),n=window.litNonce;void 0!==n&&i.setAttribute("nonce",n),i.textContent=e.cssText,t.appendChild(i)}))})(i,this.constructor.elementStyles),i}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e,i=p){var n,o;const r=this.constructor._$Ep(t,i);if(void 0!==r&&!0===i.reflect){const s=(null!==(o=null===(n=i.converter)||void 0===n?void 0:n.toAttribute)&&void 0!==o?o:u.toAttribute)(e,i.type);this._$El=t,null==s?this.removeAttribute(r):this.setAttribute(r,s),this._$El=null}}_$AK(t,e){var i,n;const o=this.constructor,r=o._$Ev.get(t);if(void 0!==r&&this._$El!==r){const t=o.getPropertyOptions(r),s=t.converter,a=null!==(n=null!==(i=null==s?void 0:s.fromAttribute)&&void 0!==i?i:"function"==typeof s?s:null)&&void 0!==n?n:u.fromAttribute;this._$El=r,this[r]=a(e,t.type),this._$El=null}}requestUpdate(t,e,i){let n=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||d)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,i))):n=!1),!this.isUpdatePending&&n&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,e)=>this[e]=t)),this._$Ei=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(i)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null===(e=this._$ES)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$EO(e,this[e],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}var f;m.finalized=!0,m.elementProperties=new Map,m.elementStyles=[],m.shadowRootOptions={mode:"open"},null==h||h({ReactiveElement:m}),(null!==(a=globalThis.reactiveElementVersions)&&void 0!==a?a:globalThis.reactiveElementVersions=[]).push("1.3.4");const g=globalThis.trustedTypes,v=g?g.createPolicy("lit-html",{createHTML:t=>t}):void 0,y=`lit$${(Math.random()+"").slice(9)}$`,b="?"+y,_=`<${b}>`,x=document,w=(t="")=>x.createComment(t),k=t=>null===t||"object"!=typeof t&&"function"!=typeof t,C=Array.isArray,S=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,E=/-->/g,T=/>/g,M=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),D=/'/g,$=/"/g,A=/^(?:script|style|textarea|title)$/i,O=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),P=Symbol.for("lit-noChange"),I=Symbol.for("lit-nothing"),N=new WeakMap,z=x.createTreeWalker(x,129,null,!1),R=(t,e)=>{const i=t.length-1,n=[];let o,r=2===e?"<svg>":"",s=S;for(let e=0;e<i;e++){const i=t[e];let a,l,c=-1,h=0;for(;h<i.length&&(s.lastIndex=h,l=s.exec(i),null!==l);)h=s.lastIndex,s===S?"!--"===l[1]?s=E:void 0!==l[1]?s=T:void 0!==l[2]?(A.test(l[2])&&(o=RegExp("</"+l[2],"g")),s=M):void 0!==l[3]&&(s=M):s===M?">"===l[0]?(s=null!=o?o:S,c=-1):void 0===l[1]?c=-2:(c=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?M:'"'===l[3]?$:D):s===$||s===D?s=M:s===E||s===T?s=S:(s=M,o=void 0);const u=s===M&&t[e+1].startsWith("/>")?" ":"";r+=s===S?i+_:c>=0?(n.push(a),i.slice(0,c)+"$lit$"+i.slice(c)+y+u):i+y+(-2===c?(n.push(void 0),e):u)}const a=r+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==v?v.createHTML(a):a,n]};class B{constructor({strings:t,_$litType$:e},i){let n;this.parts=[];let o=0,r=0;const s=t.length-1,a=this.parts,[l,c]=R(t,e);if(this.el=B.createElement(l,i),z.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(n=z.nextNode())&&a.length<s;){if(1===n.nodeType){if(n.hasAttributes()){const t=[];for(const e of n.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(y)){const i=c[r++];if(t.push(e),void 0!==i){const t=n.getAttribute(i.toLowerCase()+"$lit$").split(y),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:o,name:e[2],strings:t,ctor:"."===e[1]?H:"?"===e[1]?V:"@"===e[1]?W:Z})}else a.push({type:6,index:o})}for(const e of t)n.removeAttribute(e)}if(A.test(n.tagName)){const t=n.textContent.split(y),e=t.length-1;if(e>0){n.textContent=g?g.emptyScript:"";for(let i=0;i<e;i++)n.append(t[i],w()),z.nextNode(),a.push({type:2,index:++o});n.append(t[e],w())}}}else if(8===n.nodeType)if(n.data===b)a.push({type:2,index:o});else{let t=-1;for(;-1!==(t=n.data.indexOf(y,t+1));)a.push({type:7,index:o}),t+=y.length-1}o++}}static createElement(t,e){const i=x.createElement("template");return i.innerHTML=t,i}}function F(t,e,i=t,n){var o,r,s,a;if(e===P)return e;let l=void 0!==n?null===(o=i._$Cl)||void 0===o?void 0:o[n]:i._$Cu;const c=k(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==c&&(null===(r=null==l?void 0:l._$AO)||void 0===r||r.call(l,!1),void 0===c?l=void 0:(l=new c(t),l._$AT(t,i,n)),void 0!==n?(null!==(s=(a=i)._$Cl)&&void 0!==s?s:a._$Cl=[])[n]=l:i._$Cu=l),void 0!==l&&(e=F(t,l._$AS(t,e.values),l,n)),e}class q{constructor(t,e){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var e;const{el:{content:i},parts:n}=this._$AD,o=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:x).importNode(i,!0);z.currentNode=o;let r=z.nextNode(),s=0,a=0,l=n[0];for(;void 0!==l;){if(s===l.index){let e;2===l.type?e=new j(r,r.nextSibling,this,t):1===l.type?e=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(e=new G(r,this,t)),this.v.push(e),l=n[++a]}s!==(null==l?void 0:l.index)&&(r=z.nextNode(),s++)}return o}m(t){let e=0;for(const i of this.v)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class j{constructor(t,e,i,n){var o;this.type=2,this._$AH=I,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=n,this._$C_=null===(o=null==n?void 0:n.isConnected)||void 0===o||o}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$C_}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=F(this,t,e),k(t)?t===I||null==t||""===t?(this._$AH!==I&&this._$AR(),this._$AH=I):t!==this._$AH&&t!==P&&this.T(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.k(t):(t=>C(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.S(t):this.T(t)}j(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.j(t))}T(t){this._$AH!==I&&k(this._$AH)?this._$AA.nextSibling.data=t:this.k(x.createTextNode(t)),this._$AH=t}$(t){var e;const{values:i,_$litType$:n}=t,o="number"==typeof n?this._$AC(t):(void 0===n.el&&(n.el=B.createElement(n.h,this.options)),n);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===o)this._$AH.m(i);else{const t=new q(o,this),e=t.p(this.options);t.m(i),this.k(e),this._$AH=t}}_$AC(t){let e=N.get(t.strings);return void 0===e&&N.set(t.strings,e=new B(t)),e}S(t){C(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,n=0;for(const o of t)n===e.length?e.push(i=new j(this.j(w()),this.j(w()),this,this.options)):i=e[n],i._$AI(o),n++;n<e.length&&(this._$AR(i&&i._$AB.nextSibling,n),e.length=n)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$C_=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class Z{constructor(t,e,i,n,o){this.type=1,this._$AH=I,this._$AN=void 0,this.element=t,this.name=e,this._$AM=n,this.options=o,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=I}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,n){const o=this.strings;let r=!1;if(void 0===o)t=F(this,t,e,0),r=!k(t)||t!==this._$AH&&t!==P,r&&(this._$AH=t);else{const n=t;let s,a;for(t=o[0],s=0;s<o.length-1;s++)a=F(this,n[i+s],e,s),a===P&&(a=this._$AH[s]),r||(r=!k(a)||a!==this._$AH[s]),a===I?t=I:t!==I&&(t+=(null!=a?a:"")+o[s+1]),this._$AH[s]=a}r&&!n&&this.P(t)}P(t){t===I?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class H extends Z{constructor(){super(...arguments),this.type=3}P(t){this.element[this.name]=t===I?void 0:t}}const U=g?g.emptyScript:"";class V extends Z{constructor(){super(...arguments),this.type=4}P(t){t&&t!==I?this.element.setAttribute(this.name,U):this.element.removeAttribute(this.name)}}class W extends Z{constructor(t,e,i,n,o){super(t,e,i,n,o),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=F(this,t,e,0))&&void 0!==i?i:I)===P)return;const n=this._$AH,o=t===I&&n!==I||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,r=t!==I&&(n===I||o);o&&this.element.removeEventListener(this.name,this,n),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class G{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){F(this,t)}}const Y=window.litHtmlPolyfillSupport;var K,J;null==Y||Y(B,j),(null!==(f=globalThis.litHtmlVersions)&&void 0!==f?f:globalThis.litHtmlVersions=[]).push("2.2.7");class X extends m{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{var n,o;const r=null!==(n=null==i?void 0:i.renderBefore)&&void 0!==n?n:e;let s=r._$litPart$;if(void 0===s){const t=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:null;r._$litPart$=s=new j(e.insertBefore(w(),t),t,void 0,null!=i?i:{})}return s._$AI(t),s})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return P}}X.finalized=!0,X._$litElement$=!0,null===(K=globalThis.litElementHydrateSupport)||void 0===K||K.call(globalThis,{LitElement:X});const Q=globalThis.litElementPolyfillSupport;null==Q||Q({LitElement:X}),(null!==(J=globalThis.litElementVersions)&&void 0!==J?J:globalThis.litElementVersions=[]).push("3.2.2");class tt extends X{constructor(){super(...arguments),this.eles={}}getEventHandlers(){return[]}connectedCallback(){super.connectedCallback();for(const t of this.getEventHandlers())t.isDocument?document.addEventListener(t.event,t.method.bind(this)):this.addEventListener(t.event,t.method.bind(this))}disconnectedCallback(){for(const t of this.getEventHandlers())t.isDocument?document.removeEventListener(t.event,t.method):this.removeEventListener(t.event,t.method);super.disconnectedCallback()}fireEvent(t){return this.dispatchEvent(new Event(t,{bubbles:!0,composed:!0}))}fireCustomEvent(t,e={}){const i=new CustomEvent(t,{detail:e,bubbles:!0,composed:!0});return this.dispatchEvent(i)}dispatchEvent(t){super.dispatchEvent(t);const e=t.target;if(e){const i=e["-"+t.type];if(i)return i(t);return new Function("event",`with(document) {\n with(this) {\n let handler = ${e.getAttribute("-"+t.type)};\n if(typeof handler === 'function') { \n handler(event) ;\n }\n }\n }`).call(e,t)}}closestElement(t,e=this){return function e(i){if(!i||i===document||i===window)return null;i.assignedSlot&&(i=i.assignedSlot);const n=i.closest(t);return n||e(i.getRootNode().host)}(e)}getDiv(t){let e=this.eles[t];return e||(e=this.shadowRoot.querySelector(t),e&&(this.eles[t]=e),e)}}const et=(t,e)=>"method"===e.kind&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(i){i.createProperty(e.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){"function"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher(i){i.createProperty(e.key,t)}};function it(t){return(e,i)=>void 0!==i?((t,e,i)=>{e.constructor.createProperty(i,t)})(t,e,i):et(t,e)}var nt;null===(nt=window.HTMLSlotElement)||void 0===nt||nt.prototype.assignedElements;class ot extends tt{constructor(){super(...arguments),this.hiddenInputs=[],this.values=[],this.value="",this.inputRoot=this}setValue(t){t?this.setValues([t]):this.setValues([]),this.value=t}setValues(t){this.values=t,this.requestUpdate("values")}addValue(t){this.values.push(t),this.requestUpdate("values")}removeValue(t){this.values=this.values.filter((e=>e!==t)),this.requestUpdate("values")}popValue(){this.values.pop(),this.requestUpdate("values")}clear(){this.values=[],this.requestUpdate("values")}serializeValue(t){return JSON.stringify(t)}updateInputs(){for(let t=null;t=this.hiddenInputs.pop();)t.remove();for(const t of this.values){const e=document.createElement("input");e.setAttribute("type","hidden"),e.setAttribute("name",this.getAttribute("name")),e.setAttribute("value",this.serializeValue(t)),this.hiddenInputs.push(e),this.inputRoot.parentElement.appendChild(e)}}updated(t){super.updated(t),t.has("values")&&this.updateInputs()}}t([it({type:String,attribute:"help_text"})],ot.prototype,"helpText",void 0),t([it({type:Boolean,attribute:"help_always"})],ot.prototype,"helpAlways",void 0),t([it({type:Boolean,attribute:"widget_only"})],ot.prototype,"widgetOnly",void 0),t([it({type:Boolean,attribute:"hide_label"})],ot.prototype,"hideLabel",void 0),t([it({type:String})],ot.prototype,"label",void 0),t([it({type:Array})],ot.prototype,"errors",void 0),t([it({type:Array})],ot.prototype,"values",void 0),t([it({type:String})],ot.prototype,"value",void 0),t([it({attribute:!1})],ot.prototype,"inputRoot",void 0);class rt extends ot{constructor(){super(...arguments),this.name="",this.disabled=!1,this.size=1.2,this.animateChange="pulse"}static get styles(){return r`
2
2
  :host {
3
3
  color: var(--color-text);
4
4
  display: inline-block;
@@ -69,35 +69,35 @@ function t(t,e,i,n){var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPro
69
69
  </div>
70
70
  </temba-field>
71
71
  </div>
72
- `}}t([it({type:String})],rt.prototype,"name",void 0),t([it({type:Boolean})],rt.prototype,"checked",void 0),t([it({type:Boolean})],rt.prototype,"disabled",void 0),t([it({type:Number})],rt.prototype,"size",void 0),t([it({type:String})],rt.prototype,"animateChange",void 0);const st=t=>null!=t?t:I,at=1,lt=2,ct=t=>(...e)=>({_$litDirective$:t,values:e});class ht{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}const ut=ct(class extends ht{constructor(t){var e;if(super(t),t.type!==at||"style"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce(((e,i)=>{const n=t[i];return null==n?e:e+`${i=i.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${n};`}),"")}update(t,[e]){const{style:i}=t.element;if(void 0===this.ct){this.ct=new Set;for(const t in e)this.ct.add(t);return this.render(e)}this.ct.forEach((t=>{null==e[t]&&(this.ct.delete(t),t.includes("-")?i.removeProperty(t):i[t]="")}));for(const t in e){const n=e[t];null!=n&&(this.ct.add(t),t.includes("-")?i.setProperty(t,n):i[t]=n)}return P}});var dt=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],pt={_disable:[],allowInput:!1,allowInvalidPreload:!1,altFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",animate:"object"==typeof window&&-1===window.navigator.userAgent.indexOf("MSIE"),ariaDateFormat:"F j, Y",autoFillDefaultTime:!0,clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enableSeconds:!1,enableTime:!1,errorHandler:function(t){return"undefined"!=typeof console&&console.warn(t)},getWeek:function(t){var e=new Date(t.getTime());e.setHours(0,0,0,0),e.setDate(e.getDate()+3-(e.getDay()+6)%7);var i=new Date(e.getFullYear(),0,4);return 1+Math.round(((e.getTime()-i.getTime())/864e5-3+(i.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",monthSelectorType:"dropdown",nextArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /></svg>",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1},mt={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(t){var e=t%100;if(e>3&&e<21)return"th";switch(e%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1},ft=function(t,e){return void 0===e&&(e=2),("000"+t).slice(-1*e)},gt=function(t){return!0===t?1:0};function vt(t,e){var i;return function(){var n=this,o=arguments;clearTimeout(i),i=setTimeout((function(){return t.apply(n,o)}),e)}}var yt=function(t){return t instanceof Array?t:[t]};function bt(t,e,i){if(!0===i)return t.classList.add(e);t.classList.remove(e)}function _t(t,e,i){var n=window.document.createElement(t);return e=e||"",i=i||"",n.className=e,void 0!==i&&(n.textContent=i),n}function xt(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function wt(t,e){return e(t)?t:t.parentNode?wt(t.parentNode,e):void 0}function kt(t,e){var i=_t("div","numInputWrapper"),n=_t("input","numInput "+t),o=_t("span","arrowUp"),r=_t("span","arrowDown");if(-1===navigator.userAgent.indexOf("MSIE 9.0")?n.type="number":(n.type="text",n.pattern="\\d*"),void 0!==e)for(var s in e)n.setAttribute(s,e[s]);return i.appendChild(n),i.appendChild(o),i.appendChild(r),i}function Ct(t){try{return"function"==typeof t.composedPath?t.composedPath()[0]:t.target}catch(e){return t.target}}var St=function(){},Et=function(t,e,i){return i.months[e?"shorthand":"longhand"][t]},Tt={D:St,F:function(t,e,i){t.setMonth(i.months.longhand.indexOf(e))},G:function(t,e){t.setHours((t.getHours()>=12?12:0)+parseFloat(e))},H:function(t,e){t.setHours(parseFloat(e))},J:function(t,e){t.setDate(parseFloat(e))},K:function(t,e,i){t.setHours(t.getHours()%12+12*gt(new RegExp(i.amPM[1],"i").test(e)))},M:function(t,e,i){t.setMonth(i.months.shorthand.indexOf(e))},S:function(t,e){t.setSeconds(parseFloat(e))},U:function(t,e){return new Date(1e3*parseFloat(e))},W:function(t,e,i){var n=parseInt(e),o=new Date(t.getFullYear(),0,2+7*(n-1),0,0,0,0);return o.setDate(o.getDate()-o.getDay()+i.firstDayOfWeek),o},Y:function(t,e){t.setFullYear(parseFloat(e))},Z:function(t,e){return new Date(e)},d:function(t,e){t.setDate(parseFloat(e))},h:function(t,e){t.setHours((t.getHours()>=12?12:0)+parseFloat(e))},i:function(t,e){t.setMinutes(parseFloat(e))},j:function(t,e){t.setDate(parseFloat(e))},l:St,m:function(t,e){t.setMonth(parseFloat(e)-1)},n:function(t,e){t.setMonth(parseFloat(e)-1)},s:function(t,e){t.setSeconds(parseFloat(e))},u:function(t,e){return new Date(parseFloat(e))},w:St,y:function(t,e){t.setFullYear(2e3+parseFloat(e))}},Mt={D:"",F:"",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},Dt={Z:function(t){return t.toISOString()},D:function(t,e,i){return e.weekdays.shorthand[Dt.w(t,e,i)]},F:function(t,e,i){return Et(Dt.n(t,e,i)-1,!1,e)},G:function(t,e,i){return ft(Dt.h(t,e,i))},H:function(t){return ft(t.getHours())},J:function(t,e){return void 0!==e.ordinal?t.getDate()+e.ordinal(t.getDate()):t.getDate()},K:function(t,e){return e.amPM[gt(t.getHours()>11)]},M:function(t,e){return Et(t.getMonth(),!0,e)},S:function(t){return ft(t.getSeconds())},U:function(t){return t.getTime()/1e3},W:function(t,e,i){return i.getWeek(t)},Y:function(t){return ft(t.getFullYear(),4)},d:function(t){return ft(t.getDate())},h:function(t){return t.getHours()%12?t.getHours()%12:12},i:function(t){return ft(t.getMinutes())},j:function(t){return t.getDate()},l:function(t,e){return e.weekdays.longhand[t.getDay()]},m:function(t){return ft(t.getMonth()+1)},n:function(t){return t.getMonth()+1},s:function(t){return t.getSeconds()},u:function(t){return t.getTime()},w:function(t){return t.getDay()},y:function(t){return String(t.getFullYear()).substring(2)}},$t=function(t){var e=t.config,i=void 0===e?pt:e,n=t.l10n,o=void 0===n?mt:n,r=t.isMobile,s=void 0!==r&&r;return function(t,e,n){var r=n||o;return void 0===i.formatDate||s?e.split("").map((function(e,n,o){return Dt[e]&&"\\"!==o[n-1]?Dt[e](t,r,i):"\\"!==e?e:""})).join(""):i.formatDate(t,e,r)}},At=function(t){var e=t.config,i=void 0===e?pt:e,n=t.l10n,o=void 0===n?mt:n;return function(t,e,n,r){if(0===t||t){var s,a=r||o,l=t;if(t instanceof Date)s=new Date(t.getTime());else if("string"!=typeof t&&void 0!==t.toFixed)s=new Date(t);else if("string"==typeof t){var c=e||(i||pt).dateFormat,h=String(t).trim();if("today"===h)s=new Date,n=!0;else if(i&&i.parseDate)s=i.parseDate(t,c);else if(/Z$/.test(h)||/GMT$/.test(h))s=new Date(t);else{for(var u=void 0,d=[],p=0,m=0,f="";p<c.length;p++){var g=c[p],v="\\"===g,y="\\"===c[p-1]||v;if(Mt[g]&&!y){f+=Mt[g];var b=new RegExp(f).exec(t);b&&(u=!0)&&d["Y"!==g?"push":"unshift"]({fn:Tt[g],val:b[++m]})}else v||(f+=".")}s=i&&i.noCalendar?new Date((new Date).setHours(0,0,0,0)):new Date((new Date).getFullYear(),0,1,0,0,0,0),d.forEach((function(t){var e=t.fn,i=t.val;return s=e(s,i,a)||s})),s=u?s:void 0}}if(s instanceof Date&&!isNaN(s.getTime()))return!0===n&&s.setHours(0,0,0,0),s;i.errorHandler(new Error("Invalid date provided: "+l))}}};function Lt(t,e,i){return void 0===i&&(i=!0),!1!==i?new Date(t.getTime()).setHours(0,0,0,0)-new Date(e.getTime()).setHours(0,0,0,0):t.getTime()-e.getTime()}var Ot=function(t,e,i){return 3600*t+60*e+i},Pt=864e5;function It(t){var e=t.defaultHour,i=t.defaultMinute,n=t.defaultSeconds;if(void 0!==t.minDate){var o=t.minDate.getHours(),r=t.minDate.getMinutes(),s=t.minDate.getSeconds();e<o&&(e=o),e===o&&i<r&&(i=r),e===o&&i===r&&n<s&&(n=t.minDate.getSeconds())}if(void 0!==t.maxDate){var a=t.maxDate.getHours(),l=t.maxDate.getMinutes();(e=Math.min(e,a))===a&&(i=Math.min(l,i)),e===a&&i===l&&(n=t.maxDate.getSeconds())}return{hours:e,minutes:i,seconds:n}}"function"!=typeof Object.assign&&(Object.assign=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(!t)throw TypeError("Cannot convert undefined or null to object");for(var n=function(e){e&&Object.keys(e).forEach((function(i){return t[i]=e[i]}))},o=0,r=e;o<r.length;o++){var s=r[o];n(s)}return t});var Nt=function(){return Nt=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Nt.apply(this,arguments)},zt=function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;var n=Array(t),o=0;for(e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};function Rt(t,e){var i={config:Nt(Nt({},pt),Ft.defaultConfig),l10n:mt};function n(){var t;return(null===(t=i.calendarContainer)||void 0===t?void 0:t.getRootNode()).activeElement||document.activeElement}function o(t){return t.bind(i)}function r(){var t=i.config;!1===t.weekNumbers&&1===t.showMonths||!0!==t.noCalendar&&window.requestAnimationFrame((function(){if(void 0!==i.calendarContainer&&(i.calendarContainer.style.visibility="hidden",i.calendarContainer.style.display="block"),void 0!==i.daysContainer){var e=(i.days.offsetWidth+1)*t.showMonths;i.daysContainer.style.width=e+"px",i.calendarContainer.style.width=e+(void 0!==i.weekWrapper?i.weekWrapper.offsetWidth:0)+"px",i.calendarContainer.style.removeProperty("visibility"),i.calendarContainer.style.removeProperty("display")}}))}function s(t){if(0===i.selectedDates.length){var e=void 0===i.config.minDate||Lt(new Date,i.config.minDate)>=0?new Date:new Date(i.config.minDate.getTime()),n=It(i.config);e.setHours(n.hours,n.minutes,n.seconds,e.getMilliseconds()),i.selectedDates=[e],i.latestSelectedDateObj=e}void 0!==t&&"blur"!==t.type&&function(t){t.preventDefault();var e="keydown"===t.type,n=Ct(t),o=n;void 0!==i.amPM&&n===i.amPM&&(i.amPM.textContent=i.l10n.amPM[gt(i.amPM.textContent===i.l10n.amPM[0])]);var r=parseFloat(o.getAttribute("min")),s=parseFloat(o.getAttribute("max")),a=parseFloat(o.getAttribute("step")),l=parseInt(o.value,10),c=t.delta||(e?38===t.which?1:-1:0),h=l+a*c;if(void 0!==o.value&&2===o.value.length){var u=o===i.hourElement,d=o===i.minuteElement;h<r?(h=s+h+gt(!u)+(gt(u)&&gt(!i.amPM)),d&&f(void 0,-1,i.hourElement)):h>s&&(h=o===i.hourElement?h-s-gt(!i.amPM):r,d&&f(void 0,1,i.hourElement)),i.amPM&&u&&(1===a?h+l===23:Math.abs(h-l)>a)&&(i.amPM.textContent=i.l10n.amPM[gt(i.amPM.textContent===i.l10n.amPM[0])]),o.value=ft(h)}}(t);var o=i._input.value;a(),Q(),i._input.value!==o&&i._debouncedChange()}function a(){if(void 0!==i.hourElement&&void 0!==i.minuteElement){var t,e,n=(parseInt(i.hourElement.value.slice(-2),10)||0)%24,o=(parseInt(i.minuteElement.value,10)||0)%60,r=void 0!==i.secondElement?(parseInt(i.secondElement.value,10)||0)%60:0;void 0!==i.amPM&&(t=n,e=i.amPM.textContent,n=t%12+12*gt(e===i.l10n.amPM[1]));var s=void 0!==i.config.minTime||i.config.minDate&&i.minDateHasTime&&i.latestSelectedDateObj&&0===Lt(i.latestSelectedDateObj,i.config.minDate,!0),a=void 0!==i.config.maxTime||i.config.maxDate&&i.maxDateHasTime&&i.latestSelectedDateObj&&0===Lt(i.latestSelectedDateObj,i.config.maxDate,!0);if(void 0!==i.config.maxTime&&void 0!==i.config.minTime&&i.config.minTime>i.config.maxTime){var l=Ot(i.config.minTime.getHours(),i.config.minTime.getMinutes(),i.config.minTime.getSeconds()),h=Ot(i.config.maxTime.getHours(),i.config.maxTime.getMinutes(),i.config.maxTime.getSeconds()),u=Ot(n,o,r);if(u>h&&u<l){var d=function(t){var e=Math.floor(t/3600),i=(t-3600*e)/60;return[e,i,t-3600*e-60*i]}(l);n=d[0],o=d[1],r=d[2]}}else{if(a){var p=void 0!==i.config.maxTime?i.config.maxTime:i.config.maxDate;(n=Math.min(n,p.getHours()))===p.getHours()&&(o=Math.min(o,p.getMinutes())),o===p.getMinutes()&&(r=Math.min(r,p.getSeconds()))}if(s){var m=void 0!==i.config.minTime?i.config.minTime:i.config.minDate;(n=Math.max(n,m.getHours()))===m.getHours()&&o<m.getMinutes()&&(o=m.getMinutes()),o===m.getMinutes()&&(r=Math.max(r,m.getSeconds()))}}c(n,o,r)}}function l(t){var e=t||i.latestSelectedDateObj;e&&e instanceof Date&&c(e.getHours(),e.getMinutes(),e.getSeconds())}function c(t,e,n){void 0!==i.latestSelectedDateObj&&i.latestSelectedDateObj.setHours(t%24,e,n||0,0),i.hourElement&&i.minuteElement&&!i.isMobile&&(i.hourElement.value=ft(i.config.time_24hr?t:(12+t)%12+12*gt(t%12==0)),i.minuteElement.value=ft(e),void 0!==i.amPM&&(i.amPM.textContent=i.l10n.amPM[gt(t>=12)]),void 0!==i.secondElement&&(i.secondElement.value=ft(n)))}function h(t){var e=Ct(t),i=parseInt(e.value)+(t.delta||0);(i/1e3>1||"Enter"===t.key&&!/[^\d]/.test(i.toString()))&&$(i)}function u(t,e,n,o){return e instanceof Array?e.forEach((function(e){return u(t,e,n,o)})):t instanceof Array?t.forEach((function(t){return u(t,e,n,o)})):(t.addEventListener(e,n,o),void i._handlers.push({remove:function(){return t.removeEventListener(e,n,o)}}))}function d(){G("onChange")}function p(t,e){var n=void 0!==t?i.parseDate(t):i.latestSelectedDateObj||(i.config.minDate&&i.config.minDate>i.now?i.config.minDate:i.config.maxDate&&i.config.maxDate<i.now?i.config.maxDate:i.now),o=i.currentYear,r=i.currentMonth;try{void 0!==n&&(i.currentYear=n.getFullYear(),i.currentMonth=n.getMonth())}catch(t){t.message="Invalid date supplied: "+n,i.config.errorHandler(t)}e&&i.currentYear!==o&&(G("onYearChange"),w()),!e||i.currentYear===o&&i.currentMonth===r||G("onMonthChange"),i.redraw()}function m(t){var e=Ct(t);~e.className.indexOf("arrow")&&f(t,e.classList.contains("arrowUp")?1:-1)}function f(t,e,i){var n=t&&Ct(t),o=i||n&&n.parentNode&&n.parentNode.firstChild,r=Y("increment");r.delta=e,o&&o.dispatchEvent(r)}function g(t,e,n,o){var r=A(e,!0),s=_t("span",t,e.getDate().toString());return s.dateObj=e,s.$i=o,s.setAttribute("aria-label",i.formatDate(e,i.config.ariaDateFormat)),-1===t.indexOf("hidden")&&0===Lt(e,i.now)&&(i.todayDateElem=s,s.classList.add("today"),s.setAttribute("aria-current","date")),r?(s.tabIndex=-1,K(e)&&(s.classList.add("selected"),i.selectedDateElem=s,"range"===i.config.mode&&(bt(s,"startRange",i.selectedDates[0]&&0===Lt(e,i.selectedDates[0],!0)),bt(s,"endRange",i.selectedDates[1]&&0===Lt(e,i.selectedDates[1],!0)),"nextMonthDay"===t&&s.classList.add("inRange")))):s.classList.add("flatpickr-disabled"),"range"===i.config.mode&&function(t){return!("range"!==i.config.mode||i.selectedDates.length<2)&&(Lt(t,i.selectedDates[0])>=0&&Lt(t,i.selectedDates[1])<=0)}(e)&&!K(e)&&s.classList.add("inRange"),i.weekNumbers&&1===i.config.showMonths&&"prevMonthDay"!==t&&o%7==6&&i.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+i.config.getWeek(e)+"</span>"),G("onDayCreate",s),s}function v(t){t.focus(),"range"===i.config.mode&&I(t)}function y(t){for(var e=t>0?0:i.config.showMonths-1,n=t>0?i.config.showMonths:-1,o=e;o!=n;o+=t)for(var r=i.daysContainer.children[o],s=t>0?0:r.children.length-1,a=t>0?r.children.length:-1,l=s;l!=a;l+=t){var c=r.children[l];if(-1===c.className.indexOf("hidden")&&A(c.dateObj))return c}}function b(t,e){var o=n(),r=L(o||document.body),s=void 0!==t?t:r?o:void 0!==i.selectedDateElem&&L(i.selectedDateElem)?i.selectedDateElem:void 0!==i.todayDateElem&&L(i.todayDateElem)?i.todayDateElem:y(e>0?1:-1);void 0===s?i._input.focus():r?function(t,e){for(var n=-1===t.className.indexOf("Month")?t.dateObj.getMonth():i.currentMonth,o=e>0?i.config.showMonths:-1,r=e>0?1:-1,s=n-i.currentMonth;s!=o;s+=r)for(var a=i.daysContainer.children[s],l=n-i.currentMonth===s?t.$i+e:e<0?a.children.length-1:0,c=a.children.length,h=l;h>=0&&h<c&&h!=(e>0?c:-1);h+=r){var u=a.children[h];if(-1===u.className.indexOf("hidden")&&A(u.dateObj)&&Math.abs(t.$i-h)>=Math.abs(e))return v(u)}i.changeMonth(r),b(y(r),0)}(s,e):v(s)}function _(t,e){for(var n=(new Date(t,e,1).getDay()-i.l10n.firstDayOfWeek+7)%7,o=i.utils.getDaysInMonth((e-1+12)%12,t),r=i.utils.getDaysInMonth(e,t),s=window.document.createDocumentFragment(),a=i.config.showMonths>1,l=a?"prevMonthDay hidden":"prevMonthDay",c=a?"nextMonthDay hidden":"nextMonthDay",h=o+1-n,u=0;h<=o;h++,u++)s.appendChild(g("flatpickr-day "+l,new Date(t,e-1,h),0,u));for(h=1;h<=r;h++,u++)s.appendChild(g("flatpickr-day",new Date(t,e,h),0,u));for(var d=r+1;d<=42-n&&(1===i.config.showMonths||u%7!=0);d++,u++)s.appendChild(g("flatpickr-day "+c,new Date(t,e+1,d%r),0,u));var p=_t("div","dayContainer");return p.appendChild(s),p}function x(){if(void 0!==i.daysContainer){xt(i.daysContainer),i.weekNumbers&&xt(i.weekNumbers);for(var t=document.createDocumentFragment(),e=0;e<i.config.showMonths;e++){var n=new Date(i.currentYear,i.currentMonth,1);n.setMonth(i.currentMonth+e),t.appendChild(_(n.getFullYear(),n.getMonth()))}i.daysContainer.appendChild(t),i.days=i.daysContainer.firstChild,"range"===i.config.mode&&1===i.selectedDates.length&&I()}}function w(){if(!(i.config.showMonths>1||"dropdown"!==i.config.monthSelectorType)){var t=function(t){return!(void 0!==i.config.minDate&&i.currentYear===i.config.minDate.getFullYear()&&t<i.config.minDate.getMonth())&&!(void 0!==i.config.maxDate&&i.currentYear===i.config.maxDate.getFullYear()&&t>i.config.maxDate.getMonth())};i.monthsDropdownContainer.tabIndex=-1,i.monthsDropdownContainer.innerHTML="";for(var e=0;e<12;e++)if(t(e)){var n=_t("option","flatpickr-monthDropdown-month");n.value=new Date(i.currentYear,e).getMonth().toString(),n.textContent=Et(e,i.config.shorthandCurrentMonth,i.l10n),n.tabIndex=-1,i.currentMonth===e&&(n.selected=!0),i.monthsDropdownContainer.appendChild(n)}}}function k(){var t,e=_t("div","flatpickr-month"),n=window.document.createDocumentFragment();i.config.showMonths>1||"static"===i.config.monthSelectorType?t=_t("span","cur-month"):(i.monthsDropdownContainer=_t("select","flatpickr-monthDropdown-months"),i.monthsDropdownContainer.setAttribute("aria-label",i.l10n.monthAriaLabel),u(i.monthsDropdownContainer,"change",(function(t){var e=Ct(t),n=parseInt(e.value,10);i.changeMonth(n-i.currentMonth),G("onMonthChange")})),w(),t=i.monthsDropdownContainer);var o=kt("cur-year",{tabindex:"-1"}),r=o.getElementsByTagName("input")[0];r.setAttribute("aria-label",i.l10n.yearAriaLabel),i.config.minDate&&r.setAttribute("min",i.config.minDate.getFullYear().toString()),i.config.maxDate&&(r.setAttribute("max",i.config.maxDate.getFullYear().toString()),r.disabled=!!i.config.minDate&&i.config.minDate.getFullYear()===i.config.maxDate.getFullYear());var s=_t("div","flatpickr-current-month");return s.appendChild(t),s.appendChild(o),n.appendChild(s),e.appendChild(n),{container:e,yearElement:r,monthElement:t}}function C(){xt(i.monthNav),i.monthNav.appendChild(i.prevMonthNav),i.config.showMonths&&(i.yearElements=[],i.monthElements=[]);for(var t=i.config.showMonths;t--;){var e=k();i.yearElements.push(e.yearElement),i.monthElements.push(e.monthElement),i.monthNav.appendChild(e.container)}i.monthNav.appendChild(i.nextMonthNav)}function S(){i.weekdayContainer?xt(i.weekdayContainer):i.weekdayContainer=_t("div","flatpickr-weekdays");for(var t=i.config.showMonths;t--;){var e=_t("div","flatpickr-weekdaycontainer");i.weekdayContainer.appendChild(e)}return E(),i.weekdayContainer}function E(){if(i.weekdayContainer){var t=i.l10n.firstDayOfWeek,e=zt(i.l10n.weekdays.shorthand);t>0&&t<e.length&&(e=zt(e.splice(t,e.length),e.splice(0,t)));for(var n=i.config.showMonths;n--;)i.weekdayContainer.children[n].innerHTML="\n <span class='flatpickr-weekday'>\n "+e.join("</span><span class='flatpickr-weekday'>")+"\n </span>\n "}}function T(t,e){void 0===e&&(e=!0);var n=e?t:t-i.currentMonth;n<0&&!0===i._hidePrevMonthArrow||n>0&&!0===i._hideNextMonthArrow||(i.currentMonth+=n,(i.currentMonth<0||i.currentMonth>11)&&(i.currentYear+=i.currentMonth>11?1:-1,i.currentMonth=(i.currentMonth+12)%12,G("onYearChange"),w()),x(),G("onMonthChange"),J())}function M(t){return i.calendarContainer.contains(t)}function D(t){if(i.isOpen&&!i.config.inline){var e=Ct(t),n=M(e),o=!(e===i.input||e===i.altInput||i.element.contains(e)||t.path&&t.path.indexOf&&(~t.path.indexOf(i.input)||~t.path.indexOf(i.altInput)))&&!n&&!M(t.relatedTarget),r=!i.config.ignoredFocusElements.some((function(t){return t.contains(e)}));o&&r&&(i.config.allowInput&&i.setDate(i._input.value,!1,i.config.altInput?i.config.altFormat:i.config.dateFormat),void 0!==i.timeContainer&&void 0!==i.minuteElement&&void 0!==i.hourElement&&""!==i.input.value&&void 0!==i.input.value&&s(),i.close(),i.config&&"range"===i.config.mode&&1===i.selectedDates.length&&i.clear(!1))}}function $(t){if(!(!t||i.config.minDate&&t<i.config.minDate.getFullYear()||i.config.maxDate&&t>i.config.maxDate.getFullYear())){var e=t,n=i.currentYear!==e;i.currentYear=e||i.currentYear,i.config.maxDate&&i.currentYear===i.config.maxDate.getFullYear()?i.currentMonth=Math.min(i.config.maxDate.getMonth(),i.currentMonth):i.config.minDate&&i.currentYear===i.config.minDate.getFullYear()&&(i.currentMonth=Math.max(i.config.minDate.getMonth(),i.currentMonth)),n&&(i.redraw(),G("onYearChange"),w())}}function A(t,e){var n;void 0===e&&(e=!0);var o=i.parseDate(t,void 0,e);if(i.config.minDate&&o&&Lt(o,i.config.minDate,void 0!==e?e:!i.minDateHasTime)<0||i.config.maxDate&&o&&Lt(o,i.config.maxDate,void 0!==e?e:!i.maxDateHasTime)>0)return!1;if(!i.config.enable&&0===i.config.disable.length)return!0;if(void 0===o)return!1;for(var r=!!i.config.enable,s=null!==(n=i.config.enable)&&void 0!==n?n:i.config.disable,a=0,l=void 0;a<s.length;a++){if("function"==typeof(l=s[a])&&l(o))return r;if(l instanceof Date&&void 0!==o&&l.getTime()===o.getTime())return r;if("string"==typeof l){var c=i.parseDate(l,void 0,!0);return c&&c.getTime()===o.getTime()?r:!r}if("object"==typeof l&&void 0!==o&&l.from&&l.to&&o.getTime()>=l.from.getTime()&&o.getTime()<=l.to.getTime())return r}return!r}function L(t){return void 0!==i.daysContainer&&(-1===t.className.indexOf("hidden")&&-1===t.className.indexOf("flatpickr-disabled")&&i.daysContainer.contains(t))}function O(t){var e=t.target===i._input,n=i._input.value.trimEnd()!==X();!e||!n||t.relatedTarget&&M(t.relatedTarget)||i.setDate(i._input.value,!0,t.target===i.altInput?i.config.altFormat:i.config.dateFormat)}function P(e){var o=Ct(e),r=i.config.wrap?t.contains(o):o===i._input,l=i.config.allowInput,c=i.isOpen&&(!l||!r),h=i.config.inline&&r&&!l;if(13===e.keyCode&&r){if(l)return i.setDate(i._input.value,!0,o===i.altInput?i.config.altFormat:i.config.dateFormat),i.close(),o.blur();i.open()}else if(M(o)||c||h){var u=!!i.timeContainer&&i.timeContainer.contains(o);switch(e.keyCode){case 13:u?(e.preventDefault(),s(),j()):Z(e);break;case 27:e.preventDefault(),j();break;case 8:case 46:r&&!i.config.allowInput&&(e.preventDefault(),i.clear());break;case 37:case 39:if(u||r)i.hourElement&&i.hourElement.focus();else{e.preventDefault();var d=n();if(void 0!==i.daysContainer&&(!1===l||d&&L(d))){var p=39===e.keyCode?1:-1;e.ctrlKey?(e.stopPropagation(),T(p),b(y(1),0)):b(void 0,p)}}break;case 38:case 40:e.preventDefault();var m=40===e.keyCode?1:-1;i.daysContainer&&void 0!==o.$i||o===i.input||o===i.altInput?e.ctrlKey?(e.stopPropagation(),$(i.currentYear-m),b(y(1),0)):u||b(void 0,7*m):o===i.currentYearElement?$(i.currentYear-m):i.config.enableTime&&(!u&&i.hourElement&&i.hourElement.focus(),s(e),i._debouncedChange());break;case 9:if(u){var f=[i.hourElement,i.minuteElement,i.secondElement,i.amPM].concat(i.pluginElements).filter((function(t){return t})),g=f.indexOf(o);if(-1!==g){var v=f[g+(e.shiftKey?-1:1)];e.preventDefault(),(v||i._input).focus()}}else!i.config.noCalendar&&i.daysContainer&&i.daysContainer.contains(o)&&e.shiftKey&&(e.preventDefault(),i._input.focus())}}if(void 0!==i.amPM&&o===i.amPM)switch(e.key){case i.l10n.amPM[0].charAt(0):case i.l10n.amPM[0].charAt(0).toLowerCase():i.amPM.textContent=i.l10n.amPM[0],a(),Q();break;case i.l10n.amPM[1].charAt(0):case i.l10n.amPM[1].charAt(0).toLowerCase():i.amPM.textContent=i.l10n.amPM[1],a(),Q()}(r||M(o))&&G("onKeyDown",e)}function I(t,e){if(void 0===e&&(e="flatpickr-day"),1===i.selectedDates.length&&(!t||t.classList.contains(e)&&!t.classList.contains("flatpickr-disabled"))){for(var n=t?t.dateObj.getTime():i.days.firstElementChild.dateObj.getTime(),o=i.parseDate(i.selectedDates[0],void 0,!0).getTime(),r=Math.min(n,i.selectedDates[0].getTime()),s=Math.max(n,i.selectedDates[0].getTime()),a=!1,l=0,c=0,h=r;h<s;h+=Pt)A(new Date(h),!0)||(a=a||h>r&&h<s,h<o&&(!l||h>l)?l=h:h>o&&(!c||h<c)&&(c=h));Array.from(i.rContainer.querySelectorAll("*:nth-child(-n+"+i.config.showMonths+") > ."+e)).forEach((function(e){var r,s,h,u=e.dateObj.getTime(),d=l>0&&u<l||c>0&&u>c;if(d)return e.classList.add("notAllowed"),void["inRange","startRange","endRange"].forEach((function(t){e.classList.remove(t)}));a&&!d||(["startRange","inRange","endRange","notAllowed"].forEach((function(t){e.classList.remove(t)})),void 0!==t&&(t.classList.add(n<=i.selectedDates[0].getTime()?"startRange":"endRange"),o<n&&u===o?e.classList.add("startRange"):o>n&&u===o&&e.classList.add("endRange"),u>=l&&(0===c||u<=c)&&(s=o,h=n,(r=u)>Math.min(s,h)&&r<Math.max(s,h))&&e.classList.add("inRange")))}))}}function N(){!i.isOpen||i.config.static||i.config.inline||F()}function z(t){return function(e){var n=i.config["_"+t+"Date"]=i.parseDate(e,i.config.dateFormat),o=i.config["_"+("min"===t?"max":"min")+"Date"];void 0!==n&&(i["min"===t?"minDateHasTime":"maxDateHasTime"]=n.getHours()>0||n.getMinutes()>0||n.getSeconds()>0),i.selectedDates&&(i.selectedDates=i.selectedDates.filter((function(t){return A(t)})),i.selectedDates.length||"min"!==t||l(n),Q()),i.daysContainer&&(q(),void 0!==n?i.currentYearElement[t]=n.getFullYear().toString():i.currentYearElement.removeAttribute(t),i.currentYearElement.disabled=!!o&&void 0!==n&&o.getFullYear()===n.getFullYear())}}function R(){return i.config.wrap?t.querySelector("[data-input]"):t}function B(){"object"!=typeof i.config.locale&&void 0===Ft.l10ns[i.config.locale]&&i.config.errorHandler(new Error("flatpickr: invalid locale "+i.config.locale)),i.l10n=Nt(Nt({},Ft.l10ns.default),"object"==typeof i.config.locale?i.config.locale:"default"!==i.config.locale?Ft.l10ns[i.config.locale]:void 0),Mt.D="("+i.l10n.weekdays.shorthand.join("|")+")",Mt.l="("+i.l10n.weekdays.longhand.join("|")+")",Mt.M="("+i.l10n.months.shorthand.join("|")+")",Mt.F="("+i.l10n.months.longhand.join("|")+")",Mt.K="("+i.l10n.amPM[0]+"|"+i.l10n.amPM[1]+"|"+i.l10n.amPM[0].toLowerCase()+"|"+i.l10n.amPM[1].toLowerCase()+")",void 0===Nt(Nt({},e),JSON.parse(JSON.stringify(t.dataset||{}))).time_24hr&&void 0===Ft.defaultConfig.time_24hr&&(i.config.time_24hr=i.l10n.time_24hr),i.formatDate=$t(i),i.parseDate=At({config:i.config,l10n:i.l10n})}function F(t){if("function"!=typeof i.config.position){if(void 0!==i.calendarContainer){G("onPreCalendarPosition");var e=t||i._positionElement,n=Array.prototype.reduce.call(i.calendarContainer.children,(function(t,e){return t+e.offsetHeight}),0),o=i.calendarContainer.offsetWidth,r=i.config.position.split(" "),s=r[0],a=r.length>1?r[1]:null,l=e.getBoundingClientRect(),c=window.innerHeight-l.bottom,h="above"===s||"below"!==s&&c<n&&l.top>n,u=window.pageYOffset+l.top+(h?-n-2:e.offsetHeight+2);if(bt(i.calendarContainer,"arrowTop",!h),bt(i.calendarContainer,"arrowBottom",h),!i.config.inline){var d=window.pageXOffset+l.left,p=!1,m=!1;"center"===a?(d-=(o-l.width)/2,p=!0):"right"===a&&(d-=o-l.width,m=!0),bt(i.calendarContainer,"arrowLeft",!p&&!m),bt(i.calendarContainer,"arrowCenter",p),bt(i.calendarContainer,"arrowRight",m);var f=window.document.body.offsetWidth-(window.pageXOffset+l.right),g=d+o>window.document.body.offsetWidth,v=f+o>window.document.body.offsetWidth;if(bt(i.calendarContainer,"rightMost",g),!i.config.static)if(i.calendarContainer.style.top=u+"px",g)if(v){var y=function(){for(var t=null,e=0;e<document.styleSheets.length;e++){var i=document.styleSheets[e];if(i.cssRules){try{i.cssRules}catch(t){continue}t=i;break}}return null!=t?t:(n=document.createElement("style"),document.head.appendChild(n),n.sheet);var n}();if(void 0===y)return;var b=window.document.body.offsetWidth,_=Math.max(0,b/2-o/2),x=y.cssRules.length,w="{left:"+l.left+"px;right:auto;}";bt(i.calendarContainer,"rightMost",!1),bt(i.calendarContainer,"centerMost",!0),y.insertRule(".flatpickr-calendar.centerMost:before,.flatpickr-calendar.centerMost:after"+w,x),i.calendarContainer.style.left=_+"px",i.calendarContainer.style.right="auto"}else i.calendarContainer.style.left="auto",i.calendarContainer.style.right=f+"px";else i.calendarContainer.style.left=d+"px",i.calendarContainer.style.right="auto"}}}else i.config.position(i,t)}function q(){i.config.noCalendar||i.isMobile||(w(),J(),x())}function j(){i._input.focus(),-1!==window.navigator.userAgent.indexOf("MSIE")||void 0!==navigator.msMaxTouchPoints?setTimeout(i.close,0):i.close()}function Z(t){t.preventDefault(),t.stopPropagation();var e=wt(Ct(t),(function(t){return t.classList&&t.classList.contains("flatpickr-day")&&!t.classList.contains("flatpickr-disabled")&&!t.classList.contains("notAllowed")}));if(void 0!==e){var n=e,o=i.latestSelectedDateObj=new Date(n.dateObj.getTime()),r=(o.getMonth()<i.currentMonth||o.getMonth()>i.currentMonth+i.config.showMonths-1)&&"range"!==i.config.mode;if(i.selectedDateElem=n,"single"===i.config.mode)i.selectedDates=[o];else if("multiple"===i.config.mode){var s=K(o);s?i.selectedDates.splice(parseInt(s),1):i.selectedDates.push(o)}else"range"===i.config.mode&&(2===i.selectedDates.length&&i.clear(!1,!1),i.latestSelectedDateObj=o,i.selectedDates.push(o),0!==Lt(o,i.selectedDates[0],!0)&&i.selectedDates.sort((function(t,e){return t.getTime()-e.getTime()})));if(a(),r){var l=i.currentYear!==o.getFullYear();i.currentYear=o.getFullYear(),i.currentMonth=o.getMonth(),l&&(G("onYearChange"),w()),G("onMonthChange")}if(J(),x(),Q(),r||"range"===i.config.mode||1!==i.config.showMonths?void 0!==i.selectedDateElem&&void 0===i.hourElement&&i.selectedDateElem&&i.selectedDateElem.focus():v(n),void 0!==i.hourElement&&void 0!==i.hourElement&&i.hourElement.focus(),i.config.closeOnSelect){var c="single"===i.config.mode&&!i.config.enableTime,h="range"===i.config.mode&&2===i.selectedDates.length&&!i.config.enableTime;(c||h)&&j()}d()}}i.parseDate=At({config:i.config,l10n:i.l10n}),i._handlers=[],i.pluginElements=[],i.loadedPlugins=[],i._bind=u,i._setHoursFromDate=l,i._positionCalendar=F,i.changeMonth=T,i.changeYear=$,i.clear=function(t,e){void 0===t&&(t=!0);void 0===e&&(e=!0);i.input.value="",void 0!==i.altInput&&(i.altInput.value="");void 0!==i.mobileInput&&(i.mobileInput.value="");i.selectedDates=[],i.latestSelectedDateObj=void 0,!0===e&&(i.currentYear=i._initialDate.getFullYear(),i.currentMonth=i._initialDate.getMonth());if(!0===i.config.enableTime){var n=It(i.config),o=n.hours,r=n.minutes,s=n.seconds;c(o,r,s)}i.redraw(),t&&G("onChange")},i.close=function(){i.isOpen=!1,i.isMobile||(void 0!==i.calendarContainer&&i.calendarContainer.classList.remove("open"),void 0!==i._input&&i._input.classList.remove("active"));G("onClose")},i.onMouseOver=I,i._createElement=_t,i.createDay=g,i.destroy=function(){void 0!==i.config&&G("onDestroy");for(var t=i._handlers.length;t--;)i._handlers[t].remove();if(i._handlers=[],i.mobileInput)i.mobileInput.parentNode&&i.mobileInput.parentNode.removeChild(i.mobileInput),i.mobileInput=void 0;else if(i.calendarContainer&&i.calendarContainer.parentNode)if(i.config.static&&i.calendarContainer.parentNode){var e=i.calendarContainer.parentNode;if(e.lastChild&&e.removeChild(e.lastChild),e.parentNode){for(;e.firstChild;)e.parentNode.insertBefore(e.firstChild,e);e.parentNode.removeChild(e)}}else i.calendarContainer.parentNode.removeChild(i.calendarContainer);i.altInput&&(i.input.type="text",i.altInput.parentNode&&i.altInput.parentNode.removeChild(i.altInput),delete i.altInput);i.input&&(i.input.type=i.input._type,i.input.classList.remove("flatpickr-input"),i.input.removeAttribute("readonly"));["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach((function(t){try{delete i[t]}catch(t){}}))},i.isEnabled=A,i.jumpToDate=p,i.updateValue=Q,i.open=function(t,e){void 0===e&&(e=i._positionElement);if(!0===i.isMobile){if(t){t.preventDefault();var n=Ct(t);n&&n.blur()}return void 0!==i.mobileInput&&(i.mobileInput.focus(),i.mobileInput.click()),void G("onOpen")}if(i._input.disabled||i.config.inline)return;var o=i.isOpen;i.isOpen=!0,o||(i.calendarContainer.classList.add("open"),i._input.classList.add("active"),G("onOpen"),F(e));!0===i.config.enableTime&&!0===i.config.noCalendar&&(!1!==i.config.allowInput||void 0!==t&&i.timeContainer.contains(t.relatedTarget)||setTimeout((function(){return i.hourElement.select()}),50))},i.redraw=q,i.set=function(t,e){if(null!==t&&"object"==typeof t)for(var n in Object.assign(i.config,t),t)void 0!==H[n]&&H[n].forEach((function(t){return t()}));else i.config[t]=e,void 0!==H[t]?H[t].forEach((function(t){return t()})):dt.indexOf(t)>-1&&(i.config[t]=yt(e));i.redraw(),Q(!0)},i.setDate=function(t,e,n){void 0===e&&(e=!1);void 0===n&&(n=i.config.dateFormat);if(0!==t&&!t||t instanceof Array&&0===t.length)return i.clear(e);U(t,n),i.latestSelectedDateObj=i.selectedDates[i.selectedDates.length-1],i.redraw(),p(void 0,e),l(),0===i.selectedDates.length&&i.clear(!1);Q(e),e&&G("onChange")},i.toggle=function(t){if(!0===i.isOpen)return i.close();i.open(t)};var H={locale:[B,E],showMonths:[C,r,S],minDate:[p],maxDate:[p],positionElement:[W],clickOpens:[function(){!0===i.config.clickOpens?(u(i._input,"focus",i.open),u(i._input,"click",i.open)):(i._input.removeEventListener("focus",i.open),i._input.removeEventListener("click",i.open))}]};function U(t,e){var n=[];if(t instanceof Array)n=t.map((function(t){return i.parseDate(t,e)}));else if(t instanceof Date||"number"==typeof t)n=[i.parseDate(t,e)];else if("string"==typeof t)switch(i.config.mode){case"single":case"time":n=[i.parseDate(t,e)];break;case"multiple":n=t.split(i.config.conjunction).map((function(t){return i.parseDate(t,e)}));break;case"range":n=t.split(i.l10n.rangeSeparator).map((function(t){return i.parseDate(t,e)}))}else i.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(t)));i.selectedDates=i.config.allowInvalidPreload?n:n.filter((function(t){return t instanceof Date&&A(t,!1)})),"range"===i.config.mode&&i.selectedDates.sort((function(t,e){return t.getTime()-e.getTime()}))}function V(t){return t.slice().map((function(t){return"string"==typeof t||"number"==typeof t||t instanceof Date?i.parseDate(t,void 0,!0):t&&"object"==typeof t&&t.from&&t.to?{from:i.parseDate(t.from,void 0),to:i.parseDate(t.to,void 0)}:t})).filter((function(t){return t}))}function W(){i._positionElement=i.config.positionElement||i._input}function G(t,e){if(void 0!==i.config){var n=i.config[t];if(void 0!==n&&n.length>0)for(var o=0;n[o]&&o<n.length;o++)n[o](i.selectedDates,i.input.value,i,e);"onChange"===t&&(i.input.dispatchEvent(Y("change")),i.input.dispatchEvent(Y("input")))}}function Y(t){var e=document.createEvent("Event");return e.initEvent(t,!0,!0),e}function K(t){for(var e=0;e<i.selectedDates.length;e++){var n=i.selectedDates[e];if(n instanceof Date&&0===Lt(n,t))return""+e}return!1}function J(){i.config.noCalendar||i.isMobile||!i.monthNav||(i.yearElements.forEach((function(t,e){var n=new Date(i.currentYear,i.currentMonth,1);n.setMonth(i.currentMonth+e),i.config.showMonths>1||"static"===i.config.monthSelectorType?i.monthElements[e].textContent=Et(n.getMonth(),i.config.shorthandCurrentMonth,i.l10n)+" ":i.monthsDropdownContainer.value=n.getMonth().toString(),t.value=n.getFullYear().toString()})),i._hidePrevMonthArrow=void 0!==i.config.minDate&&(i.currentYear===i.config.minDate.getFullYear()?i.currentMonth<=i.config.minDate.getMonth():i.currentYear<i.config.minDate.getFullYear()),i._hideNextMonthArrow=void 0!==i.config.maxDate&&(i.currentYear===i.config.maxDate.getFullYear()?i.currentMonth+1>i.config.maxDate.getMonth():i.currentYear>i.config.maxDate.getFullYear()))}function X(t){var e=t||(i.config.altInput?i.config.altFormat:i.config.dateFormat);return i.selectedDates.map((function(t){return i.formatDate(t,e)})).filter((function(t,e,n){return"range"!==i.config.mode||i.config.enableTime||n.indexOf(t)===e})).join("range"!==i.config.mode?i.config.conjunction:i.l10n.rangeSeparator)}function Q(t){void 0===t&&(t=!0),void 0!==i.mobileInput&&i.mobileFormatStr&&(i.mobileInput.value=void 0!==i.latestSelectedDateObj?i.formatDate(i.latestSelectedDateObj,i.mobileFormatStr):""),i.input.value=X(i.config.dateFormat),void 0!==i.altInput&&(i.altInput.value=X(i.config.altFormat)),!1!==t&&G("onValueUpdate")}function tt(t){var e=Ct(t),n=i.prevMonthNav.contains(e),o=i.nextMonthNav.contains(e);n||o?T(n?-1:1):i.yearElements.indexOf(e)>=0?e.select():e.classList.contains("arrowUp")?i.changeYear(i.currentYear+1):e.classList.contains("arrowDown")&&i.changeYear(i.currentYear-1)}return function(){i.element=i.input=t,i.isOpen=!1,function(){var n=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],r=Nt(Nt({},JSON.parse(JSON.stringify(t.dataset||{}))),e),s={};i.config.parseDate=r.parseDate,i.config.formatDate=r.formatDate,Object.defineProperty(i.config,"enable",{get:function(){return i.config._enable},set:function(t){i.config._enable=V(t)}}),Object.defineProperty(i.config,"disable",{get:function(){return i.config._disable},set:function(t){i.config._disable=V(t)}});var a="time"===r.mode;if(!r.dateFormat&&(r.enableTime||a)){var l=Ft.defaultConfig.dateFormat||pt.dateFormat;s.dateFormat=r.noCalendar||a?"H:i"+(r.enableSeconds?":S":""):l+" H:i"+(r.enableSeconds?":S":"")}if(r.altInput&&(r.enableTime||a)&&!r.altFormat){var c=Ft.defaultConfig.altFormat||pt.altFormat;s.altFormat=r.noCalendar||a?"h:i"+(r.enableSeconds?":S K":" K"):c+" h:i"+(r.enableSeconds?":S":"")+" K"}Object.defineProperty(i.config,"minDate",{get:function(){return i.config._minDate},set:z("min")}),Object.defineProperty(i.config,"maxDate",{get:function(){return i.config._maxDate},set:z("max")});var h=function(t){return function(e){i.config["min"===t?"_minTime":"_maxTime"]=i.parseDate(e,"H:i:S")}};Object.defineProperty(i.config,"minTime",{get:function(){return i.config._minTime},set:h("min")}),Object.defineProperty(i.config,"maxTime",{get:function(){return i.config._maxTime},set:h("max")}),"time"===r.mode&&(i.config.noCalendar=!0,i.config.enableTime=!0);Object.assign(i.config,s,r);for(var u=0;u<n.length;u++)i.config[n[u]]=!0===i.config[n[u]]||"true"===i.config[n[u]];dt.filter((function(t){return void 0!==i.config[t]})).forEach((function(t){i.config[t]=yt(i.config[t]||[]).map(o)})),i.isMobile=!i.config.disableMobile&&!i.config.inline&&"single"===i.config.mode&&!i.config.disable.length&&!i.config.enable&&!i.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);for(u=0;u<i.config.plugins.length;u++){var d=i.config.plugins[u](i)||{};for(var p in d)dt.indexOf(p)>-1?i.config[p]=yt(d[p]).map(o).concat(i.config[p]):void 0===r[p]&&(i.config[p]=d[p])}r.altInputClass||(i.config.altInputClass=R().className+" "+i.config.altInputClass);G("onParseConfig")}(),B(),function(){if(i.input=R(),!i.input)return void i.config.errorHandler(new Error("Invalid input element specified"));i.input._type=i.input.type,i.input.type="text",i.input.classList.add("flatpickr-input"),i._input=i.input,i.config.altInput&&(i.altInput=_t(i.input.nodeName,i.config.altInputClass),i._input=i.altInput,i.altInput.placeholder=i.input.placeholder,i.altInput.disabled=i.input.disabled,i.altInput.required=i.input.required,i.altInput.tabIndex=i.input.tabIndex,i.altInput.type="text",i.input.setAttribute("type","hidden"),!i.config.static&&i.input.parentNode&&i.input.parentNode.insertBefore(i.altInput,i.input.nextSibling));i.config.allowInput||i._input.setAttribute("readonly","readonly");W()}(),function(){i.selectedDates=[],i.now=i.parseDate(i.config.now)||new Date;var t=i.config.defaultDate||("INPUT"!==i.input.nodeName&&"TEXTAREA"!==i.input.nodeName||!i.input.placeholder||i.input.value!==i.input.placeholder?i.input.value:null);t&&U(t,i.config.dateFormat);i._initialDate=i.selectedDates.length>0?i.selectedDates[0]:i.config.minDate&&i.config.minDate.getTime()>i.now.getTime()?i.config.minDate:i.config.maxDate&&i.config.maxDate.getTime()<i.now.getTime()?i.config.maxDate:i.now,i.currentYear=i._initialDate.getFullYear(),i.currentMonth=i._initialDate.getMonth(),i.selectedDates.length>0&&(i.latestSelectedDateObj=i.selectedDates[0]);void 0!==i.config.minTime&&(i.config.minTime=i.parseDate(i.config.minTime,"H:i"));void 0!==i.config.maxTime&&(i.config.maxTime=i.parseDate(i.config.maxTime,"H:i"));i.minDateHasTime=!!i.config.minDate&&(i.config.minDate.getHours()>0||i.config.minDate.getMinutes()>0||i.config.minDate.getSeconds()>0),i.maxDateHasTime=!!i.config.maxDate&&(i.config.maxDate.getHours()>0||i.config.maxDate.getMinutes()>0||i.config.maxDate.getSeconds()>0)}(),i.utils={getDaysInMonth:function(t,e){return void 0===t&&(t=i.currentMonth),void 0===e&&(e=i.currentYear),1===t&&(e%4==0&&e%100!=0||e%400==0)?29:i.l10n.daysInMonth[t]}},i.isMobile||function(){var t=window.document.createDocumentFragment();if(i.calendarContainer=_t("div","flatpickr-calendar"),i.calendarContainer.tabIndex=-1,!i.config.noCalendar){if(t.appendChild((i.monthNav=_t("div","flatpickr-months"),i.yearElements=[],i.monthElements=[],i.prevMonthNav=_t("span","flatpickr-prev-month"),i.prevMonthNav.innerHTML=i.config.prevArrow,i.nextMonthNav=_t("span","flatpickr-next-month"),i.nextMonthNav.innerHTML=i.config.nextArrow,C(),Object.defineProperty(i,"_hidePrevMonthArrow",{get:function(){return i.__hidePrevMonthArrow},set:function(t){i.__hidePrevMonthArrow!==t&&(bt(i.prevMonthNav,"flatpickr-disabled",t),i.__hidePrevMonthArrow=t)}}),Object.defineProperty(i,"_hideNextMonthArrow",{get:function(){return i.__hideNextMonthArrow},set:function(t){i.__hideNextMonthArrow!==t&&(bt(i.nextMonthNav,"flatpickr-disabled",t),i.__hideNextMonthArrow=t)}}),i.currentYearElement=i.yearElements[0],J(),i.monthNav)),i.innerContainer=_t("div","flatpickr-innerContainer"),i.config.weekNumbers){var e=function(){i.calendarContainer.classList.add("hasWeeks");var t=_t("div","flatpickr-weekwrapper");t.appendChild(_t("span","flatpickr-weekday",i.l10n.weekAbbreviation));var e=_t("div","flatpickr-weeks");return t.appendChild(e),{weekWrapper:t,weekNumbers:e}}(),n=e.weekWrapper,o=e.weekNumbers;i.innerContainer.appendChild(n),i.weekNumbers=o,i.weekWrapper=n}i.rContainer=_t("div","flatpickr-rContainer"),i.rContainer.appendChild(S()),i.daysContainer||(i.daysContainer=_t("div","flatpickr-days"),i.daysContainer.tabIndex=-1),x(),i.rContainer.appendChild(i.daysContainer),i.innerContainer.appendChild(i.rContainer),t.appendChild(i.innerContainer)}i.config.enableTime&&t.appendChild(function(){i.calendarContainer.classList.add("hasTime"),i.config.noCalendar&&i.calendarContainer.classList.add("noCalendar");var t=It(i.config);i.timeContainer=_t("div","flatpickr-time"),i.timeContainer.tabIndex=-1;var e=_t("span","flatpickr-time-separator",":"),n=kt("flatpickr-hour",{"aria-label":i.l10n.hourAriaLabel});i.hourElement=n.getElementsByTagName("input")[0];var o=kt("flatpickr-minute",{"aria-label":i.l10n.minuteAriaLabel});i.minuteElement=o.getElementsByTagName("input")[0],i.hourElement.tabIndex=i.minuteElement.tabIndex=-1,i.hourElement.value=ft(i.latestSelectedDateObj?i.latestSelectedDateObj.getHours():i.config.time_24hr?t.hours:function(t){switch(t%24){case 0:case 12:return 12;default:return t%12}}(t.hours)),i.minuteElement.value=ft(i.latestSelectedDateObj?i.latestSelectedDateObj.getMinutes():t.minutes),i.hourElement.setAttribute("step",i.config.hourIncrement.toString()),i.minuteElement.setAttribute("step",i.config.minuteIncrement.toString()),i.hourElement.setAttribute("min",i.config.time_24hr?"0":"1"),i.hourElement.setAttribute("max",i.config.time_24hr?"23":"12"),i.hourElement.setAttribute("maxlength","2"),i.minuteElement.setAttribute("min","0"),i.minuteElement.setAttribute("max","59"),i.minuteElement.setAttribute("maxlength","2"),i.timeContainer.appendChild(n),i.timeContainer.appendChild(e),i.timeContainer.appendChild(o),i.config.time_24hr&&i.timeContainer.classList.add("time24hr");if(i.config.enableSeconds){i.timeContainer.classList.add("hasSeconds");var r=kt("flatpickr-second");i.secondElement=r.getElementsByTagName("input")[0],i.secondElement.value=ft(i.latestSelectedDateObj?i.latestSelectedDateObj.getSeconds():t.seconds),i.secondElement.setAttribute("step",i.minuteElement.getAttribute("step")),i.secondElement.setAttribute("min","0"),i.secondElement.setAttribute("max","59"),i.secondElement.setAttribute("maxlength","2"),i.timeContainer.appendChild(_t("span","flatpickr-time-separator",":")),i.timeContainer.appendChild(r)}i.config.time_24hr||(i.amPM=_t("span","flatpickr-am-pm",i.l10n.amPM[gt((i.latestSelectedDateObj?i.hourElement.value:i.config.defaultHour)>11)]),i.amPM.title=i.l10n.toggleTitle,i.amPM.tabIndex=-1,i.timeContainer.appendChild(i.amPM));return i.timeContainer}());bt(i.calendarContainer,"rangeMode","range"===i.config.mode),bt(i.calendarContainer,"animate",!0===i.config.animate),bt(i.calendarContainer,"multiMonth",i.config.showMonths>1),i.calendarContainer.appendChild(t);var r=void 0!==i.config.appendTo&&void 0!==i.config.appendTo.nodeType;if((i.config.inline||i.config.static)&&(i.calendarContainer.classList.add(i.config.inline?"inline":"static"),i.config.inline&&(!r&&i.element.parentNode?i.element.parentNode.insertBefore(i.calendarContainer,i._input.nextSibling):void 0!==i.config.appendTo&&i.config.appendTo.appendChild(i.calendarContainer)),i.config.static)){var s=_t("div","flatpickr-wrapper");i.element.parentNode&&i.element.parentNode.insertBefore(s,i.element),s.appendChild(i.element),i.altInput&&s.appendChild(i.altInput),s.appendChild(i.calendarContainer)}i.config.static||i.config.inline||(void 0!==i.config.appendTo?i.config.appendTo:window.document.body).appendChild(i.calendarContainer)}(),function(){i.config.wrap&&["open","close","toggle","clear"].forEach((function(t){Array.prototype.forEach.call(i.element.querySelectorAll("[data-"+t+"]"),(function(e){return u(e,"click",i[t])}))}));if(i.isMobile)return void function(){var t=i.config.enableTime?i.config.noCalendar?"time":"datetime-local":"date";i.mobileInput=_t("input",i.input.className+" flatpickr-mobile"),i.mobileInput.tabIndex=1,i.mobileInput.type=t,i.mobileInput.disabled=i.input.disabled,i.mobileInput.required=i.input.required,i.mobileInput.placeholder=i.input.placeholder,i.mobileFormatStr="datetime-local"===t?"Y-m-d\\TH:i:S":"date"===t?"Y-m-d":"H:i:S",i.selectedDates.length>0&&(i.mobileInput.defaultValue=i.mobileInput.value=i.formatDate(i.selectedDates[0],i.mobileFormatStr));i.config.minDate&&(i.mobileInput.min=i.formatDate(i.config.minDate,"Y-m-d"));i.config.maxDate&&(i.mobileInput.max=i.formatDate(i.config.maxDate,"Y-m-d"));i.input.getAttribute("step")&&(i.mobileInput.step=String(i.input.getAttribute("step")));i.input.type="hidden",void 0!==i.altInput&&(i.altInput.type="hidden");try{i.input.parentNode&&i.input.parentNode.insertBefore(i.mobileInput,i.input.nextSibling)}catch(t){}u(i.mobileInput,"change",(function(t){i.setDate(Ct(t).value,!1,i.mobileFormatStr),G("onChange"),G("onClose")}))}();var t=vt(N,50);i._debouncedChange=vt(d,300),i.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&u(i.daysContainer,"mouseover",(function(t){"range"===i.config.mode&&I(Ct(t))}));u(i._input,"keydown",P),void 0!==i.calendarContainer&&u(i.calendarContainer,"keydown",P);i.config.inline||i.config.static||u(window,"resize",t);void 0!==window.ontouchstart?u(window.document,"touchstart",D):u(window.document,"mousedown",D);u(window.document,"focus",D,{capture:!0}),!0===i.config.clickOpens&&(u(i._input,"focus",i.open),u(i._input,"click",i.open));void 0!==i.daysContainer&&(u(i.monthNav,"click",tt),u(i.monthNav,["keyup","increment"],h),u(i.daysContainer,"click",Z));if(void 0!==i.timeContainer&&void 0!==i.minuteElement&&void 0!==i.hourElement){var e=function(t){return Ct(t).select()};u(i.timeContainer,["increment"],s),u(i.timeContainer,"blur",s,{capture:!0}),u(i.timeContainer,"click",m),u([i.hourElement,i.minuteElement],["focus","click"],e),void 0!==i.secondElement&&u(i.secondElement,"focus",(function(){return i.secondElement&&i.secondElement.select()})),void 0!==i.amPM&&u(i.amPM,"click",(function(t){s(t)}))}i.config.allowInput&&u(i._input,"blur",O)}(),(i.selectedDates.length||i.config.noCalendar)&&(i.config.enableTime&&l(i.config.noCalendar?i.latestSelectedDateObj:void 0),Q(!1)),r();var n=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!i.isMobile&&n&&F(),G("onReady")}(),i}function Bt(t,e){for(var i=Array.prototype.slice.call(t).filter((function(t){return t instanceof HTMLElement})),n=[],o=0;o<i.length;o++){var r=i[o];try{if(null!==r.getAttribute("data-fp-omit"))continue;void 0!==r._flatpickr&&(r._flatpickr.destroy(),r._flatpickr=void 0),r._flatpickr=Rt(r,e||{}),n.push(r._flatpickr)}catch(t){console.error(t)}}return 1===n.length?n[0]:n}"undefined"!=typeof HTMLElement&&"undefined"!=typeof HTMLCollection&&"undefined"!=typeof NodeList&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(t){return Bt(this,t)},HTMLElement.prototype.flatpickr=function(t){return Bt([this],t)});var Ft=function(t,e){return"string"==typeof t?Bt(window.document.querySelectorAll(t),e):t instanceof Node?Bt([t],e):Bt(t,e)};Ft.defaultConfig={},Ft.l10ns={en:Nt({},mt),default:Nt({},mt)},Ft.localize=function(t){Ft.l10ns.default=Nt(Nt({},Ft.l10ns.default),t)},Ft.setDefaults=function(t){Ft.defaultConfig=Nt(Nt({},Ft.defaultConfig),t)},Ft.parseDate=At({}),Ft.formatDate=$t({}),Ft.compareDates=Lt,"undefined"!=typeof jQuery&&void 0!==jQuery.fn&&(jQuery.fn.flatpickr=function(t){return Bt(this,t)}),Date.prototype.fp_incr=function(t){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+("string"==typeof t?parseInt(t,10):t))},"undefined"!=typeof window&&(window.flatpickr=Ft);var qt;!function(t){t.light="light",t.dark="dark",t.materialBlue="material_blue",t.materialGreen="material_green",t.materialOrange="material_orange",t.materialRed="material_red",t.airbnb="airbnb",t.confetti="confetti",t.none="none"}(qt||(qt={}));class jt{constructor(t){this.theme=t,this.theme=t}async initStyles(){const t=`https://npmcdn.com/flatpickr@4.6.9/dist/themes/${this.theme}.css`;this.isThemeLoaded()||(this.appendThemeStyles(t),await this.waitForStyleToLoad((()=>this.isThemeLoaded())))}waitForStyleToLoad(t){return new Promise(((e,i)=>{const n=(i=0)=>{if(t())return e();if(i>10)throw Error("Styles took too long to load, or were not able to be loaded");setTimeout((()=>n(i++)),100)};n()}))}isThemeLoaded(){if(this.theme===qt.none)return!0;return Array.from(document.styleSheets).map((t=>t.href)).some((t=>null!=t&&new RegExp("https://npmcdn.com/flatpickr@4.6.9/dist/themes").test(t)))}appendThemeStyles(t){const e=document.createElement("link");e.rel="stylesheet",e.type="text/css",e.href=t,document.head.append(e)}}let Zt=class extends X{constructor(){super(...arguments),this.placeholder="",this.altFormat="F j, Y",this.altInput=!1,this.altInputClass="",this.allowInput=!1,this.ariaDateFormat="F j, Y",this.clickOpens=!0,this.dateFormat="Y-m-d",this.defaultHour=12,this.defaultMinute=0,this.disable=[],this.disableMobile=!1,this.enable=void 0,this.enableTime=!1,this.enableSeconds=!1,this.hourIncrement=1,this.minuteIncrement=5,this.inline=!1,this.mode="single",this.nextArrow=">",this.prevArrow="<",this.noCalendar=!1,this.position="auto",this.shorthandCurrentMonth=!1,this.showMonths=1,this.static=!1,this.time_24hr=!1,this.weekNumbers=!1,this.wrap=!1,this.theme="light",this.firstDayOfWeek=1,this._hasSlottedElement=!1}static get styles(){return[r`
73
- :host {
74
- width: fit-content;
75
- display: block;
76
- cursor: pointer;
77
- background: #fff;
78
- color: #000;
79
- overflow: hidden;
80
- }
72
+ `}}t([it({type:String})],rt.prototype,"name",void 0),t([it({type:Boolean})],rt.prototype,"checked",void 0),t([it({type:Boolean})],rt.prototype,"disabled",void 0),t([it({type:Number})],rt.prototype,"size",void 0),t([it({type:String})],rt.prototype,"animateChange",void 0);const st=t=>null!=t?t:I,at=1,lt=2,ct=t=>(...e)=>({_$litDirective$:t,values:e});class ht{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}const ut=ct(class extends ht{constructor(t){var e;if(super(t),t.type!==at||"style"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce(((e,i)=>{const n=t[i];return null==n?e:e+`${i=i.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${n};`}),"")}update(t,[e]){const{style:i}=t.element;if(void 0===this.vt){this.vt=new Set;for(const t in e)this.vt.add(t);return this.render(e)}this.vt.forEach((t=>{null==e[t]&&(this.vt.delete(t),t.includes("-")?i.removeProperty(t):i[t]="")}));for(const t in e){const n=e[t];null!=n&&(this.vt.add(t),t.includes("-")?i.setProperty(t,n):i[t]=n)}return P}});var dt=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],pt={_disable:[],allowInput:!1,allowInvalidPreload:!1,altFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",animate:"object"==typeof window&&-1===window.navigator.userAgent.indexOf("MSIE"),ariaDateFormat:"F j, Y",autoFillDefaultTime:!0,clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enableSeconds:!1,enableTime:!1,errorHandler:function(t){return"undefined"!=typeof console&&console.warn(t)},getWeek:function(t){var e=new Date(t.getTime());e.setHours(0,0,0,0),e.setDate(e.getDate()+3-(e.getDay()+6)%7);var i=new Date(e.getFullYear(),0,4);return 1+Math.round(((e.getTime()-i.getTime())/864e5-3+(i.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",monthSelectorType:"dropdown",nextArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /></svg>",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1},mt={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(t){var e=t%100;if(e>3&&e<21)return"th";switch(e%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1},ft=function(t,e){return void 0===e&&(e=2),("000"+t).slice(-1*e)},gt=function(t){return!0===t?1:0};function vt(t,e){var i;return function(){var n=this,o=arguments;clearTimeout(i),i=setTimeout((function(){return t.apply(n,o)}),e)}}var yt=function(t){return t instanceof Array?t:[t]};function bt(t,e,i){if(!0===i)return t.classList.add(e);t.classList.remove(e)}function _t(t,e,i){var n=window.document.createElement(t);return e=e||"",i=i||"",n.className=e,void 0!==i&&(n.textContent=i),n}function xt(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function wt(t,e){return e(t)?t:t.parentNode?wt(t.parentNode,e):void 0}function kt(t,e){var i=_t("div","numInputWrapper"),n=_t("input","numInput "+t),o=_t("span","arrowUp"),r=_t("span","arrowDown");if(-1===navigator.userAgent.indexOf("MSIE 9.0")?n.type="number":(n.type="text",n.pattern="\\d*"),void 0!==e)for(var s in e)n.setAttribute(s,e[s]);return i.appendChild(n),i.appendChild(o),i.appendChild(r),i}function Ct(t){try{return"function"==typeof t.composedPath?t.composedPath()[0]:t.target}catch(e){return t.target}}var St=function(){},Et=function(t,e,i){return i.months[e?"shorthand":"longhand"][t]},Tt={D:St,F:function(t,e,i){t.setMonth(i.months.longhand.indexOf(e))},G:function(t,e){t.setHours((t.getHours()>=12?12:0)+parseFloat(e))},H:function(t,e){t.setHours(parseFloat(e))},J:function(t,e){t.setDate(parseFloat(e))},K:function(t,e,i){t.setHours(t.getHours()%12+12*gt(new RegExp(i.amPM[1],"i").test(e)))},M:function(t,e,i){t.setMonth(i.months.shorthand.indexOf(e))},S:function(t,e){t.setSeconds(parseFloat(e))},U:function(t,e){return new Date(1e3*parseFloat(e))},W:function(t,e,i){var n=parseInt(e),o=new Date(t.getFullYear(),0,2+7*(n-1),0,0,0,0);return o.setDate(o.getDate()-o.getDay()+i.firstDayOfWeek),o},Y:function(t,e){t.setFullYear(parseFloat(e))},Z:function(t,e){return new Date(e)},d:function(t,e){t.setDate(parseFloat(e))},h:function(t,e){t.setHours((t.getHours()>=12?12:0)+parseFloat(e))},i:function(t,e){t.setMinutes(parseFloat(e))},j:function(t,e){t.setDate(parseFloat(e))},l:St,m:function(t,e){t.setMonth(parseFloat(e)-1)},n:function(t,e){t.setMonth(parseFloat(e)-1)},s:function(t,e){t.setSeconds(parseFloat(e))},u:function(t,e){return new Date(parseFloat(e))},w:St,y:function(t,e){t.setFullYear(2e3+parseFloat(e))}},Mt={D:"",F:"",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},Dt={Z:function(t){return t.toISOString()},D:function(t,e,i){return e.weekdays.shorthand[Dt.w(t,e,i)]},F:function(t,e,i){return Et(Dt.n(t,e,i)-1,!1,e)},G:function(t,e,i){return ft(Dt.h(t,e,i))},H:function(t){return ft(t.getHours())},J:function(t,e){return void 0!==e.ordinal?t.getDate()+e.ordinal(t.getDate()):t.getDate()},K:function(t,e){return e.amPM[gt(t.getHours()>11)]},M:function(t,e){return Et(t.getMonth(),!0,e)},S:function(t){return ft(t.getSeconds())},U:function(t){return t.getTime()/1e3},W:function(t,e,i){return i.getWeek(t)},Y:function(t){return ft(t.getFullYear(),4)},d:function(t){return ft(t.getDate())},h:function(t){return t.getHours()%12?t.getHours()%12:12},i:function(t){return ft(t.getMinutes())},j:function(t){return t.getDate()},l:function(t,e){return e.weekdays.longhand[t.getDay()]},m:function(t){return ft(t.getMonth()+1)},n:function(t){return t.getMonth()+1},s:function(t){return t.getSeconds()},u:function(t){return t.getTime()},w:function(t){return t.getDay()},y:function(t){return String(t.getFullYear()).substring(2)}},$t=function(t){var e=t.config,i=void 0===e?pt:e,n=t.l10n,o=void 0===n?mt:n,r=t.isMobile,s=void 0!==r&&r;return function(t,e,n){var r=n||o;return void 0===i.formatDate||s?e.split("").map((function(e,n,o){return Dt[e]&&"\\"!==o[n-1]?Dt[e](t,r,i):"\\"!==e?e:""})).join(""):i.formatDate(t,e,r)}},At=function(t){var e=t.config,i=void 0===e?pt:e,n=t.l10n,o=void 0===n?mt:n;return function(t,e,n,r){if(0===t||t){var s,a=r||o,l=t;if(t instanceof Date)s=new Date(t.getTime());else if("string"!=typeof t&&void 0!==t.toFixed)s=new Date(t);else if("string"==typeof t){var c=e||(i||pt).dateFormat,h=String(t).trim();if("today"===h)s=new Date,n=!0;else if(i&&i.parseDate)s=i.parseDate(t,c);else if(/Z$/.test(h)||/GMT$/.test(h))s=new Date(t);else{for(var u=void 0,d=[],p=0,m=0,f="";p<c.length;p++){var g=c[p],v="\\"===g,y="\\"===c[p-1]||v;if(Mt[g]&&!y){f+=Mt[g];var b=new RegExp(f).exec(t);b&&(u=!0)&&d["Y"!==g?"push":"unshift"]({fn:Tt[g],val:b[++m]})}else v||(f+=".")}s=i&&i.noCalendar?new Date((new Date).setHours(0,0,0,0)):new Date((new Date).getFullYear(),0,1,0,0,0,0),d.forEach((function(t){var e=t.fn,i=t.val;return s=e(s,i,a)||s})),s=u?s:void 0}}if(s instanceof Date&&!isNaN(s.getTime()))return!0===n&&s.setHours(0,0,0,0),s;i.errorHandler(new Error("Invalid date provided: "+l))}}};function Lt(t,e,i){return void 0===i&&(i=!0),!1!==i?new Date(t.getTime()).setHours(0,0,0,0)-new Date(e.getTime()).setHours(0,0,0,0):t.getTime()-e.getTime()}var Ot=function(t,e,i){return 3600*t+60*e+i},Pt=864e5;function It(t){var e=t.defaultHour,i=t.defaultMinute,n=t.defaultSeconds;if(void 0!==t.minDate){var o=t.minDate.getHours(),r=t.minDate.getMinutes(),s=t.minDate.getSeconds();e<o&&(e=o),e===o&&i<r&&(i=r),e===o&&i===r&&n<s&&(n=t.minDate.getSeconds())}if(void 0!==t.maxDate){var a=t.maxDate.getHours(),l=t.maxDate.getMinutes();(e=Math.min(e,a))===a&&(i=Math.min(l,i)),e===a&&i===l&&(n=t.maxDate.getSeconds())}return{hours:e,minutes:i,seconds:n}}"function"!=typeof Object.assign&&(Object.assign=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(!t)throw TypeError("Cannot convert undefined or null to object");for(var n=function(e){e&&Object.keys(e).forEach((function(i){return t[i]=e[i]}))},o=0,r=e;o<r.length;o++){var s=r[o];n(s)}return t});var Nt=function(){return Nt=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Nt.apply(this,arguments)},zt=function(){for(var t=0,e=0,i=arguments.length;e<i;e++)t+=arguments[e].length;var n=Array(t),o=0;for(e=0;e<i;e++)for(var r=arguments[e],s=0,a=r.length;s<a;s++,o++)n[o]=r[s];return n};function Rt(t,e){var i={config:Nt(Nt({},pt),Ft.defaultConfig),l10n:mt};function n(){var t;return(null===(t=i.calendarContainer)||void 0===t?void 0:t.getRootNode()).activeElement||document.activeElement}function o(t){return t.bind(i)}function r(){var t=i.config;!1===t.weekNumbers&&1===t.showMonths||!0!==t.noCalendar&&window.requestAnimationFrame((function(){if(void 0!==i.calendarContainer&&(i.calendarContainer.style.visibility="hidden",i.calendarContainer.style.display="block"),void 0!==i.daysContainer){var e=(i.days.offsetWidth+1)*t.showMonths;i.daysContainer.style.width=e+"px",i.calendarContainer.style.width=e+(void 0!==i.weekWrapper?i.weekWrapper.offsetWidth:0)+"px",i.calendarContainer.style.removeProperty("visibility"),i.calendarContainer.style.removeProperty("display")}}))}function s(t){if(0===i.selectedDates.length){var e=void 0===i.config.minDate||Lt(new Date,i.config.minDate)>=0?new Date:new Date(i.config.minDate.getTime()),n=It(i.config);e.setHours(n.hours,n.minutes,n.seconds,e.getMilliseconds()),i.selectedDates=[e],i.latestSelectedDateObj=e}void 0!==t&&"blur"!==t.type&&function(t){t.preventDefault();var e="keydown"===t.type,n=Ct(t),o=n;void 0!==i.amPM&&n===i.amPM&&(i.amPM.textContent=i.l10n.amPM[gt(i.amPM.textContent===i.l10n.amPM[0])]);var r=parseFloat(o.getAttribute("min")),s=parseFloat(o.getAttribute("max")),a=parseFloat(o.getAttribute("step")),l=parseInt(o.value,10),c=t.delta||(e?38===t.which?1:-1:0),h=l+a*c;if(void 0!==o.value&&2===o.value.length){var u=o===i.hourElement,d=o===i.minuteElement;h<r?(h=s+h+gt(!u)+(gt(u)&&gt(!i.amPM)),d&&f(void 0,-1,i.hourElement)):h>s&&(h=o===i.hourElement?h-s-gt(!i.amPM):r,d&&f(void 0,1,i.hourElement)),i.amPM&&u&&(1===a?h+l===23:Math.abs(h-l)>a)&&(i.amPM.textContent=i.l10n.amPM[gt(i.amPM.textContent===i.l10n.amPM[0])]),o.value=ft(h)}}(t);var o=i._input.value;a(),Q(),i._input.value!==o&&i._debouncedChange()}function a(){if(void 0!==i.hourElement&&void 0!==i.minuteElement){var t,e,n=(parseInt(i.hourElement.value.slice(-2),10)||0)%24,o=(parseInt(i.minuteElement.value,10)||0)%60,r=void 0!==i.secondElement?(parseInt(i.secondElement.value,10)||0)%60:0;void 0!==i.amPM&&(t=n,e=i.amPM.textContent,n=t%12+12*gt(e===i.l10n.amPM[1]));var s=void 0!==i.config.minTime||i.config.minDate&&i.minDateHasTime&&i.latestSelectedDateObj&&0===Lt(i.latestSelectedDateObj,i.config.minDate,!0),a=void 0!==i.config.maxTime||i.config.maxDate&&i.maxDateHasTime&&i.latestSelectedDateObj&&0===Lt(i.latestSelectedDateObj,i.config.maxDate,!0);if(void 0!==i.config.maxTime&&void 0!==i.config.minTime&&i.config.minTime>i.config.maxTime){var l=Ot(i.config.minTime.getHours(),i.config.minTime.getMinutes(),i.config.minTime.getSeconds()),h=Ot(i.config.maxTime.getHours(),i.config.maxTime.getMinutes(),i.config.maxTime.getSeconds()),u=Ot(n,o,r);if(u>h&&u<l){var d=function(t){var e=Math.floor(t/3600),i=(t-3600*e)/60;return[e,i,t-3600*e-60*i]}(l);n=d[0],o=d[1],r=d[2]}}else{if(a){var p=void 0!==i.config.maxTime?i.config.maxTime:i.config.maxDate;(n=Math.min(n,p.getHours()))===p.getHours()&&(o=Math.min(o,p.getMinutes())),o===p.getMinutes()&&(r=Math.min(r,p.getSeconds()))}if(s){var m=void 0!==i.config.minTime?i.config.minTime:i.config.minDate;(n=Math.max(n,m.getHours()))===m.getHours()&&o<m.getMinutes()&&(o=m.getMinutes()),o===m.getMinutes()&&(r=Math.max(r,m.getSeconds()))}}c(n,o,r)}}function l(t){var e=t||i.latestSelectedDateObj;e&&e instanceof Date&&c(e.getHours(),e.getMinutes(),e.getSeconds())}function c(t,e,n){void 0!==i.latestSelectedDateObj&&i.latestSelectedDateObj.setHours(t%24,e,n||0,0),i.hourElement&&i.minuteElement&&!i.isMobile&&(i.hourElement.value=ft(i.config.time_24hr?t:(12+t)%12+12*gt(t%12==0)),i.minuteElement.value=ft(e),void 0!==i.amPM&&(i.amPM.textContent=i.l10n.amPM[gt(t>=12)]),void 0!==i.secondElement&&(i.secondElement.value=ft(n)))}function h(t){var e=Ct(t),i=parseInt(e.value)+(t.delta||0);(i/1e3>1||"Enter"===t.key&&!/[^\d]/.test(i.toString()))&&$(i)}function u(t,e,n,o){return e instanceof Array?e.forEach((function(e){return u(t,e,n,o)})):t instanceof Array?t.forEach((function(t){return u(t,e,n,o)})):(t.addEventListener(e,n,o),void i._handlers.push({remove:function(){return t.removeEventListener(e,n,o)}}))}function d(){G("onChange")}function p(t,e){var n=void 0!==t?i.parseDate(t):i.latestSelectedDateObj||(i.config.minDate&&i.config.minDate>i.now?i.config.minDate:i.config.maxDate&&i.config.maxDate<i.now?i.config.maxDate:i.now),o=i.currentYear,r=i.currentMonth;try{void 0!==n&&(i.currentYear=n.getFullYear(),i.currentMonth=n.getMonth())}catch(t){t.message="Invalid date supplied: "+n,i.config.errorHandler(t)}e&&i.currentYear!==o&&(G("onYearChange"),w()),!e||i.currentYear===o&&i.currentMonth===r||G("onMonthChange"),i.redraw()}function m(t){var e=Ct(t);~e.className.indexOf("arrow")&&f(t,e.classList.contains("arrowUp")?1:-1)}function f(t,e,i){var n=t&&Ct(t),o=i||n&&n.parentNode&&n.parentNode.firstChild,r=Y("increment");r.delta=e,o&&o.dispatchEvent(r)}function g(t,e,n,o){var r=A(e,!0),s=_t("span",t,e.getDate().toString());return s.dateObj=e,s.$i=o,s.setAttribute("aria-label",i.formatDate(e,i.config.ariaDateFormat)),-1===t.indexOf("hidden")&&0===Lt(e,i.now)&&(i.todayDateElem=s,s.classList.add("today"),s.setAttribute("aria-current","date")),r?(s.tabIndex=-1,K(e)&&(s.classList.add("selected"),i.selectedDateElem=s,"range"===i.config.mode&&(bt(s,"startRange",i.selectedDates[0]&&0===Lt(e,i.selectedDates[0],!0)),bt(s,"endRange",i.selectedDates[1]&&0===Lt(e,i.selectedDates[1],!0)),"nextMonthDay"===t&&s.classList.add("inRange")))):s.classList.add("flatpickr-disabled"),"range"===i.config.mode&&function(t){return!("range"!==i.config.mode||i.selectedDates.length<2)&&(Lt(t,i.selectedDates[0])>=0&&Lt(t,i.selectedDates[1])<=0)}(e)&&!K(e)&&s.classList.add("inRange"),i.weekNumbers&&1===i.config.showMonths&&"prevMonthDay"!==t&&o%7==6&&i.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+i.config.getWeek(e)+"</span>"),G("onDayCreate",s),s}function v(t){t.focus(),"range"===i.config.mode&&I(t)}function y(t){for(var e=t>0?0:i.config.showMonths-1,n=t>0?i.config.showMonths:-1,o=e;o!=n;o+=t)for(var r=i.daysContainer.children[o],s=t>0?0:r.children.length-1,a=t>0?r.children.length:-1,l=s;l!=a;l+=t){var c=r.children[l];if(-1===c.className.indexOf("hidden")&&A(c.dateObj))return c}}function b(t,e){var o=n(),r=L(o||document.body),s=void 0!==t?t:r?o:void 0!==i.selectedDateElem&&L(i.selectedDateElem)?i.selectedDateElem:void 0!==i.todayDateElem&&L(i.todayDateElem)?i.todayDateElem:y(e>0?1:-1);void 0===s?i._input.focus():r?function(t,e){for(var n=-1===t.className.indexOf("Month")?t.dateObj.getMonth():i.currentMonth,o=e>0?i.config.showMonths:-1,r=e>0?1:-1,s=n-i.currentMonth;s!=o;s+=r)for(var a=i.daysContainer.children[s],l=n-i.currentMonth===s?t.$i+e:e<0?a.children.length-1:0,c=a.children.length,h=l;h>=0&&h<c&&h!=(e>0?c:-1);h+=r){var u=a.children[h];if(-1===u.className.indexOf("hidden")&&A(u.dateObj)&&Math.abs(t.$i-h)>=Math.abs(e))return v(u)}i.changeMonth(r),b(y(r),0)}(s,e):v(s)}function _(t,e){for(var n=(new Date(t,e,1).getDay()-i.l10n.firstDayOfWeek+7)%7,o=i.utils.getDaysInMonth((e-1+12)%12,t),r=i.utils.getDaysInMonth(e,t),s=window.document.createDocumentFragment(),a=i.config.showMonths>1,l=a?"prevMonthDay hidden":"prevMonthDay",c=a?"nextMonthDay hidden":"nextMonthDay",h=o+1-n,u=0;h<=o;h++,u++)s.appendChild(g("flatpickr-day "+l,new Date(t,e-1,h),0,u));for(h=1;h<=r;h++,u++)s.appendChild(g("flatpickr-day",new Date(t,e,h),0,u));for(var d=r+1;d<=42-n&&(1===i.config.showMonths||u%7!=0);d++,u++)s.appendChild(g("flatpickr-day "+c,new Date(t,e+1,d%r),0,u));var p=_t("div","dayContainer");return p.appendChild(s),p}function x(){if(void 0!==i.daysContainer){xt(i.daysContainer),i.weekNumbers&&xt(i.weekNumbers);for(var t=document.createDocumentFragment(),e=0;e<i.config.showMonths;e++){var n=new Date(i.currentYear,i.currentMonth,1);n.setMonth(i.currentMonth+e),t.appendChild(_(n.getFullYear(),n.getMonth()))}i.daysContainer.appendChild(t),i.days=i.daysContainer.firstChild,"range"===i.config.mode&&1===i.selectedDates.length&&I()}}function w(){if(!(i.config.showMonths>1||"dropdown"!==i.config.monthSelectorType)){var t=function(t){return!(void 0!==i.config.minDate&&i.currentYear===i.config.minDate.getFullYear()&&t<i.config.minDate.getMonth())&&!(void 0!==i.config.maxDate&&i.currentYear===i.config.maxDate.getFullYear()&&t>i.config.maxDate.getMonth())};i.monthsDropdownContainer.tabIndex=-1,i.monthsDropdownContainer.innerHTML="";for(var e=0;e<12;e++)if(t(e)){var n=_t("option","flatpickr-monthDropdown-month");n.value=new Date(i.currentYear,e).getMonth().toString(),n.textContent=Et(e,i.config.shorthandCurrentMonth,i.l10n),n.tabIndex=-1,i.currentMonth===e&&(n.selected=!0),i.monthsDropdownContainer.appendChild(n)}}}function k(){var t,e=_t("div","flatpickr-month"),n=window.document.createDocumentFragment();i.config.showMonths>1||"static"===i.config.monthSelectorType?t=_t("span","cur-month"):(i.monthsDropdownContainer=_t("select","flatpickr-monthDropdown-months"),i.monthsDropdownContainer.setAttribute("aria-label",i.l10n.monthAriaLabel),u(i.monthsDropdownContainer,"change",(function(t){var e=Ct(t),n=parseInt(e.value,10);i.changeMonth(n-i.currentMonth),G("onMonthChange")})),w(),t=i.monthsDropdownContainer);var o=kt("cur-year",{tabindex:"-1"}),r=o.getElementsByTagName("input")[0];r.setAttribute("aria-label",i.l10n.yearAriaLabel),i.config.minDate&&r.setAttribute("min",i.config.minDate.getFullYear().toString()),i.config.maxDate&&(r.setAttribute("max",i.config.maxDate.getFullYear().toString()),r.disabled=!!i.config.minDate&&i.config.minDate.getFullYear()===i.config.maxDate.getFullYear());var s=_t("div","flatpickr-current-month");return s.appendChild(t),s.appendChild(o),n.appendChild(s),e.appendChild(n),{container:e,yearElement:r,monthElement:t}}function C(){xt(i.monthNav),i.monthNav.appendChild(i.prevMonthNav),i.config.showMonths&&(i.yearElements=[],i.monthElements=[]);for(var t=i.config.showMonths;t--;){var e=k();i.yearElements.push(e.yearElement),i.monthElements.push(e.monthElement),i.monthNav.appendChild(e.container)}i.monthNav.appendChild(i.nextMonthNav)}function S(){i.weekdayContainer?xt(i.weekdayContainer):i.weekdayContainer=_t("div","flatpickr-weekdays");for(var t=i.config.showMonths;t--;){var e=_t("div","flatpickr-weekdaycontainer");i.weekdayContainer.appendChild(e)}return E(),i.weekdayContainer}function E(){if(i.weekdayContainer){var t=i.l10n.firstDayOfWeek,e=zt(i.l10n.weekdays.shorthand);t>0&&t<e.length&&(e=zt(e.splice(t,e.length),e.splice(0,t)));for(var n=i.config.showMonths;n--;)i.weekdayContainer.children[n].innerHTML="\n <span class='flatpickr-weekday'>\n "+e.join("</span><span class='flatpickr-weekday'>")+"\n </span>\n "}}function T(t,e){void 0===e&&(e=!0);var n=e?t:t-i.currentMonth;n<0&&!0===i._hidePrevMonthArrow||n>0&&!0===i._hideNextMonthArrow||(i.currentMonth+=n,(i.currentMonth<0||i.currentMonth>11)&&(i.currentYear+=i.currentMonth>11?1:-1,i.currentMonth=(i.currentMonth+12)%12,G("onYearChange"),w()),x(),G("onMonthChange"),J())}function M(t){return i.calendarContainer.contains(t)}function D(t){if(i.isOpen&&!i.config.inline){var e=Ct(t),n=M(e),o=!(e===i.input||e===i.altInput||i.element.contains(e)||t.path&&t.path.indexOf&&(~t.path.indexOf(i.input)||~t.path.indexOf(i.altInput)))&&!n&&!M(t.relatedTarget),r=!i.config.ignoredFocusElements.some((function(t){return t.contains(e)}));o&&r&&(i.config.allowInput&&i.setDate(i._input.value,!1,i.config.altInput?i.config.altFormat:i.config.dateFormat),void 0!==i.timeContainer&&void 0!==i.minuteElement&&void 0!==i.hourElement&&""!==i.input.value&&void 0!==i.input.value&&s(),i.close(),i.config&&"range"===i.config.mode&&1===i.selectedDates.length&&i.clear(!1))}}function $(t){if(!(!t||i.config.minDate&&t<i.config.minDate.getFullYear()||i.config.maxDate&&t>i.config.maxDate.getFullYear())){var e=t,n=i.currentYear!==e;i.currentYear=e||i.currentYear,i.config.maxDate&&i.currentYear===i.config.maxDate.getFullYear()?i.currentMonth=Math.min(i.config.maxDate.getMonth(),i.currentMonth):i.config.minDate&&i.currentYear===i.config.minDate.getFullYear()&&(i.currentMonth=Math.max(i.config.minDate.getMonth(),i.currentMonth)),n&&(i.redraw(),G("onYearChange"),w())}}function A(t,e){var n;void 0===e&&(e=!0);var o=i.parseDate(t,void 0,e);if(i.config.minDate&&o&&Lt(o,i.config.minDate,void 0!==e?e:!i.minDateHasTime)<0||i.config.maxDate&&o&&Lt(o,i.config.maxDate,void 0!==e?e:!i.maxDateHasTime)>0)return!1;if(!i.config.enable&&0===i.config.disable.length)return!0;if(void 0===o)return!1;for(var r=!!i.config.enable,s=null!==(n=i.config.enable)&&void 0!==n?n:i.config.disable,a=0,l=void 0;a<s.length;a++){if("function"==typeof(l=s[a])&&l(o))return r;if(l instanceof Date&&void 0!==o&&l.getTime()===o.getTime())return r;if("string"==typeof l){var c=i.parseDate(l,void 0,!0);return c&&c.getTime()===o.getTime()?r:!r}if("object"==typeof l&&void 0!==o&&l.from&&l.to&&o.getTime()>=l.from.getTime()&&o.getTime()<=l.to.getTime())return r}return!r}function L(t){return void 0!==i.daysContainer&&(-1===t.className.indexOf("hidden")&&-1===t.className.indexOf("flatpickr-disabled")&&i.daysContainer.contains(t))}function O(t){var e=t.target===i._input,n=i._input.value.trimEnd()!==X();!e||!n||t.relatedTarget&&M(t.relatedTarget)||i.setDate(i._input.value,!0,t.target===i.altInput?i.config.altFormat:i.config.dateFormat)}function P(e){var o=Ct(e),r=i.config.wrap?t.contains(o):o===i._input,l=i.config.allowInput,c=i.isOpen&&(!l||!r),h=i.config.inline&&r&&!l;if(13===e.keyCode&&r){if(l)return i.setDate(i._input.value,!0,o===i.altInput?i.config.altFormat:i.config.dateFormat),i.close(),o.blur();i.open()}else if(M(o)||c||h){var u=!!i.timeContainer&&i.timeContainer.contains(o);switch(e.keyCode){case 13:u?(e.preventDefault(),s(),j()):Z(e);break;case 27:e.preventDefault(),j();break;case 8:case 46:r&&!i.config.allowInput&&(e.preventDefault(),i.clear());break;case 37:case 39:if(u||r)i.hourElement&&i.hourElement.focus();else{e.preventDefault();var d=n();if(void 0!==i.daysContainer&&(!1===l||d&&L(d))){var p=39===e.keyCode?1:-1;e.ctrlKey?(e.stopPropagation(),T(p),b(y(1),0)):b(void 0,p)}}break;case 38:case 40:e.preventDefault();var m=40===e.keyCode?1:-1;i.daysContainer&&void 0!==o.$i||o===i.input||o===i.altInput?e.ctrlKey?(e.stopPropagation(),$(i.currentYear-m),b(y(1),0)):u||b(void 0,7*m):o===i.currentYearElement?$(i.currentYear-m):i.config.enableTime&&(!u&&i.hourElement&&i.hourElement.focus(),s(e),i._debouncedChange());break;case 9:if(u){var f=[i.hourElement,i.minuteElement,i.secondElement,i.amPM].concat(i.pluginElements).filter((function(t){return t})),g=f.indexOf(o);if(-1!==g){var v=f[g+(e.shiftKey?-1:1)];e.preventDefault(),(v||i._input).focus()}}else!i.config.noCalendar&&i.daysContainer&&i.daysContainer.contains(o)&&e.shiftKey&&(e.preventDefault(),i._input.focus())}}if(void 0!==i.amPM&&o===i.amPM)switch(e.key){case i.l10n.amPM[0].charAt(0):case i.l10n.amPM[0].charAt(0).toLowerCase():i.amPM.textContent=i.l10n.amPM[0],a(),Q();break;case i.l10n.amPM[1].charAt(0):case i.l10n.amPM[1].charAt(0).toLowerCase():i.amPM.textContent=i.l10n.amPM[1],a(),Q()}(r||M(o))&&G("onKeyDown",e)}function I(t,e){if(void 0===e&&(e="flatpickr-day"),1===i.selectedDates.length&&(!t||t.classList.contains(e)&&!t.classList.contains("flatpickr-disabled"))){for(var n=t?t.dateObj.getTime():i.days.firstElementChild.dateObj.getTime(),o=i.parseDate(i.selectedDates[0],void 0,!0).getTime(),r=Math.min(n,i.selectedDates[0].getTime()),s=Math.max(n,i.selectedDates[0].getTime()),a=!1,l=0,c=0,h=r;h<s;h+=Pt)A(new Date(h),!0)||(a=a||h>r&&h<s,h<o&&(!l||h>l)?l=h:h>o&&(!c||h<c)&&(c=h));Array.from(i.rContainer.querySelectorAll("*:nth-child(-n+"+i.config.showMonths+") > ."+e)).forEach((function(e){var r,s,h,u=e.dateObj.getTime(),d=l>0&&u<l||c>0&&u>c;if(d)return e.classList.add("notAllowed"),void["inRange","startRange","endRange"].forEach((function(t){e.classList.remove(t)}));a&&!d||(["startRange","inRange","endRange","notAllowed"].forEach((function(t){e.classList.remove(t)})),void 0!==t&&(t.classList.add(n<=i.selectedDates[0].getTime()?"startRange":"endRange"),o<n&&u===o?e.classList.add("startRange"):o>n&&u===o&&e.classList.add("endRange"),u>=l&&(0===c||u<=c)&&(s=o,h=n,(r=u)>Math.min(s,h)&&r<Math.max(s,h))&&e.classList.add("inRange")))}))}}function N(){!i.isOpen||i.config.static||i.config.inline||F()}function z(t){return function(e){var n=i.config["_"+t+"Date"]=i.parseDate(e,i.config.dateFormat),o=i.config["_"+("min"===t?"max":"min")+"Date"];void 0!==n&&(i["min"===t?"minDateHasTime":"maxDateHasTime"]=n.getHours()>0||n.getMinutes()>0||n.getSeconds()>0),i.selectedDates&&(i.selectedDates=i.selectedDates.filter((function(t){return A(t)})),i.selectedDates.length||"min"!==t||l(n),Q()),i.daysContainer&&(q(),void 0!==n?i.currentYearElement[t]=n.getFullYear().toString():i.currentYearElement.removeAttribute(t),i.currentYearElement.disabled=!!o&&void 0!==n&&o.getFullYear()===n.getFullYear())}}function R(){return i.config.wrap?t.querySelector("[data-input]"):t}function B(){"object"!=typeof i.config.locale&&void 0===Ft.l10ns[i.config.locale]&&i.config.errorHandler(new Error("flatpickr: invalid locale "+i.config.locale)),i.l10n=Nt(Nt({},Ft.l10ns.default),"object"==typeof i.config.locale?i.config.locale:"default"!==i.config.locale?Ft.l10ns[i.config.locale]:void 0),Mt.D="("+i.l10n.weekdays.shorthand.join("|")+")",Mt.l="("+i.l10n.weekdays.longhand.join("|")+")",Mt.M="("+i.l10n.months.shorthand.join("|")+")",Mt.F="("+i.l10n.months.longhand.join("|")+")",Mt.K="("+i.l10n.amPM[0]+"|"+i.l10n.amPM[1]+"|"+i.l10n.amPM[0].toLowerCase()+"|"+i.l10n.amPM[1].toLowerCase()+")",void 0===Nt(Nt({},e),JSON.parse(JSON.stringify(t.dataset||{}))).time_24hr&&void 0===Ft.defaultConfig.time_24hr&&(i.config.time_24hr=i.l10n.time_24hr),i.formatDate=$t(i),i.parseDate=At({config:i.config,l10n:i.l10n})}function F(t){if("function"!=typeof i.config.position){if(void 0!==i.calendarContainer){G("onPreCalendarPosition");var e=t||i._positionElement,n=Array.prototype.reduce.call(i.calendarContainer.children,(function(t,e){return t+e.offsetHeight}),0),o=i.calendarContainer.offsetWidth,r=i.config.position.split(" "),s=r[0],a=r.length>1?r[1]:null,l=e.getBoundingClientRect(),c=window.innerHeight-l.bottom,h="above"===s||"below"!==s&&c<n&&l.top>n,u=window.pageYOffset+l.top+(h?-n-2:e.offsetHeight+2);if(bt(i.calendarContainer,"arrowTop",!h),bt(i.calendarContainer,"arrowBottom",h),!i.config.inline){var d=window.pageXOffset+l.left,p=!1,m=!1;"center"===a?(d-=(o-l.width)/2,p=!0):"right"===a&&(d-=o-l.width,m=!0),bt(i.calendarContainer,"arrowLeft",!p&&!m),bt(i.calendarContainer,"arrowCenter",p),bt(i.calendarContainer,"arrowRight",m);var f=window.document.body.offsetWidth-(window.pageXOffset+l.right),g=d+o>window.document.body.offsetWidth,v=f+o>window.document.body.offsetWidth;if(bt(i.calendarContainer,"rightMost",g),!i.config.static)if(i.calendarContainer.style.top=u+"px",g)if(v){var y=function(){for(var t=null,e=0;e<document.styleSheets.length;e++){var i=document.styleSheets[e];if(i.cssRules){try{i.cssRules}catch(t){continue}t=i;break}}return null!=t?t:(n=document.createElement("style"),document.head.appendChild(n),n.sheet);var n}();if(void 0===y)return;var b=window.document.body.offsetWidth,_=Math.max(0,b/2-o/2),x=y.cssRules.length,w="{left:"+l.left+"px;right:auto;}";bt(i.calendarContainer,"rightMost",!1),bt(i.calendarContainer,"centerMost",!0),y.insertRule(".flatpickr-calendar.centerMost:before,.flatpickr-calendar.centerMost:after"+w,x),i.calendarContainer.style.left=_+"px",i.calendarContainer.style.right="auto"}else i.calendarContainer.style.left="auto",i.calendarContainer.style.right=f+"px";else i.calendarContainer.style.left=d+"px",i.calendarContainer.style.right="auto"}}}else i.config.position(i,t)}function q(){i.config.noCalendar||i.isMobile||(w(),J(),x())}function j(){i._input.focus(),-1!==window.navigator.userAgent.indexOf("MSIE")||void 0!==navigator.msMaxTouchPoints?setTimeout(i.close,0):i.close()}function Z(t){t.preventDefault(),t.stopPropagation();var e=wt(Ct(t),(function(t){return t.classList&&t.classList.contains("flatpickr-day")&&!t.classList.contains("flatpickr-disabled")&&!t.classList.contains("notAllowed")}));if(void 0!==e){var n=e,o=i.latestSelectedDateObj=new Date(n.dateObj.getTime()),r=(o.getMonth()<i.currentMonth||o.getMonth()>i.currentMonth+i.config.showMonths-1)&&"range"!==i.config.mode;if(i.selectedDateElem=n,"single"===i.config.mode)i.selectedDates=[o];else if("multiple"===i.config.mode){var s=K(o);s?i.selectedDates.splice(parseInt(s),1):i.selectedDates.push(o)}else"range"===i.config.mode&&(2===i.selectedDates.length&&i.clear(!1,!1),i.latestSelectedDateObj=o,i.selectedDates.push(o),0!==Lt(o,i.selectedDates[0],!0)&&i.selectedDates.sort((function(t,e){return t.getTime()-e.getTime()})));if(a(),r){var l=i.currentYear!==o.getFullYear();i.currentYear=o.getFullYear(),i.currentMonth=o.getMonth(),l&&(G("onYearChange"),w()),G("onMonthChange")}if(J(),x(),Q(),r||"range"===i.config.mode||1!==i.config.showMonths?void 0!==i.selectedDateElem&&void 0===i.hourElement&&i.selectedDateElem&&i.selectedDateElem.focus():v(n),void 0!==i.hourElement&&void 0!==i.hourElement&&i.hourElement.focus(),i.config.closeOnSelect){var c="single"===i.config.mode&&!i.config.enableTime,h="range"===i.config.mode&&2===i.selectedDates.length&&!i.config.enableTime;(c||h)&&j()}d()}}i.parseDate=At({config:i.config,l10n:i.l10n}),i._handlers=[],i.pluginElements=[],i.loadedPlugins=[],i._bind=u,i._setHoursFromDate=l,i._positionCalendar=F,i.changeMonth=T,i.changeYear=$,i.clear=function(t,e){void 0===t&&(t=!0);void 0===e&&(e=!0);i.input.value="",void 0!==i.altInput&&(i.altInput.value="");void 0!==i.mobileInput&&(i.mobileInput.value="");i.selectedDates=[],i.latestSelectedDateObj=void 0,!0===e&&(i.currentYear=i._initialDate.getFullYear(),i.currentMonth=i._initialDate.getMonth());if(!0===i.config.enableTime){var n=It(i.config),o=n.hours,r=n.minutes,s=n.seconds;c(o,r,s)}i.redraw(),t&&G("onChange")},i.close=function(){i.isOpen=!1,i.isMobile||(void 0!==i.calendarContainer&&i.calendarContainer.classList.remove("open"),void 0!==i._input&&i._input.classList.remove("active"));G("onClose")},i.onMouseOver=I,i._createElement=_t,i.createDay=g,i.destroy=function(){void 0!==i.config&&G("onDestroy");for(var t=i._handlers.length;t--;)i._handlers[t].remove();if(i._handlers=[],i.mobileInput)i.mobileInput.parentNode&&i.mobileInput.parentNode.removeChild(i.mobileInput),i.mobileInput=void 0;else if(i.calendarContainer&&i.calendarContainer.parentNode)if(i.config.static&&i.calendarContainer.parentNode){var e=i.calendarContainer.parentNode;if(e.lastChild&&e.removeChild(e.lastChild),e.parentNode){for(;e.firstChild;)e.parentNode.insertBefore(e.firstChild,e);e.parentNode.removeChild(e)}}else i.calendarContainer.parentNode.removeChild(i.calendarContainer);i.altInput&&(i.input.type="text",i.altInput.parentNode&&i.altInput.parentNode.removeChild(i.altInput),delete i.altInput);i.input&&(i.input.type=i.input._type,i.input.classList.remove("flatpickr-input"),i.input.removeAttribute("readonly"));["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach((function(t){try{delete i[t]}catch(t){}}))},i.isEnabled=A,i.jumpToDate=p,i.updateValue=Q,i.open=function(t,e){void 0===e&&(e=i._positionElement);if(!0===i.isMobile){if(t){t.preventDefault();var n=Ct(t);n&&n.blur()}return void 0!==i.mobileInput&&(i.mobileInput.focus(),i.mobileInput.click()),void G("onOpen")}if(i._input.disabled||i.config.inline)return;var o=i.isOpen;i.isOpen=!0,o||(i.calendarContainer.classList.add("open"),i._input.classList.add("active"),G("onOpen"),F(e));!0===i.config.enableTime&&!0===i.config.noCalendar&&(!1!==i.config.allowInput||void 0!==t&&i.timeContainer.contains(t.relatedTarget)||setTimeout((function(){return i.hourElement.select()}),50))},i.redraw=q,i.set=function(t,e){if(null!==t&&"object"==typeof t)for(var n in Object.assign(i.config,t),t)void 0!==H[n]&&H[n].forEach((function(t){return t()}));else i.config[t]=e,void 0!==H[t]?H[t].forEach((function(t){return t()})):dt.indexOf(t)>-1&&(i.config[t]=yt(e));i.redraw(),Q(!0)},i.setDate=function(t,e,n){void 0===e&&(e=!1);void 0===n&&(n=i.config.dateFormat);if(0!==t&&!t||t instanceof Array&&0===t.length)return i.clear(e);U(t,n),i.latestSelectedDateObj=i.selectedDates[i.selectedDates.length-1],i.redraw(),p(void 0,e),l(),0===i.selectedDates.length&&i.clear(!1);Q(e),e&&G("onChange")},i.toggle=function(t){if(!0===i.isOpen)return i.close();i.open(t)};var H={locale:[B,E],showMonths:[C,r,S],minDate:[p],maxDate:[p],positionElement:[W],clickOpens:[function(){!0===i.config.clickOpens?(u(i._input,"focus",i.open),u(i._input,"click",i.open)):(i._input.removeEventListener("focus",i.open),i._input.removeEventListener("click",i.open))}]};function U(t,e){var n=[];if(t instanceof Array)n=t.map((function(t){return i.parseDate(t,e)}));else if(t instanceof Date||"number"==typeof t)n=[i.parseDate(t,e)];else if("string"==typeof t)switch(i.config.mode){case"single":case"time":n=[i.parseDate(t,e)];break;case"multiple":n=t.split(i.config.conjunction).map((function(t){return i.parseDate(t,e)}));break;case"range":n=t.split(i.l10n.rangeSeparator).map((function(t){return i.parseDate(t,e)}))}else i.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(t)));i.selectedDates=i.config.allowInvalidPreload?n:n.filter((function(t){return t instanceof Date&&A(t,!1)})),"range"===i.config.mode&&i.selectedDates.sort((function(t,e){return t.getTime()-e.getTime()}))}function V(t){return t.slice().map((function(t){return"string"==typeof t||"number"==typeof t||t instanceof Date?i.parseDate(t,void 0,!0):t&&"object"==typeof t&&t.from&&t.to?{from:i.parseDate(t.from,void 0),to:i.parseDate(t.to,void 0)}:t})).filter((function(t){return t}))}function W(){i._positionElement=i.config.positionElement||i._input}function G(t,e){if(void 0!==i.config){var n=i.config[t];if(void 0!==n&&n.length>0)for(var o=0;n[o]&&o<n.length;o++)n[o](i.selectedDates,i.input.value,i,e);"onChange"===t&&(i.input.dispatchEvent(Y("change")),i.input.dispatchEvent(Y("input")))}}function Y(t){var e=document.createEvent("Event");return e.initEvent(t,!0,!0),e}function K(t){for(var e=0;e<i.selectedDates.length;e++){var n=i.selectedDates[e];if(n instanceof Date&&0===Lt(n,t))return""+e}return!1}function J(){i.config.noCalendar||i.isMobile||!i.monthNav||(i.yearElements.forEach((function(t,e){var n=new Date(i.currentYear,i.currentMonth,1);n.setMonth(i.currentMonth+e),i.config.showMonths>1||"static"===i.config.monthSelectorType?i.monthElements[e].textContent=Et(n.getMonth(),i.config.shorthandCurrentMonth,i.l10n)+" ":i.monthsDropdownContainer.value=n.getMonth().toString(),t.value=n.getFullYear().toString()})),i._hidePrevMonthArrow=void 0!==i.config.minDate&&(i.currentYear===i.config.minDate.getFullYear()?i.currentMonth<=i.config.minDate.getMonth():i.currentYear<i.config.minDate.getFullYear()),i._hideNextMonthArrow=void 0!==i.config.maxDate&&(i.currentYear===i.config.maxDate.getFullYear()?i.currentMonth+1>i.config.maxDate.getMonth():i.currentYear>i.config.maxDate.getFullYear()))}function X(t){var e=t||(i.config.altInput?i.config.altFormat:i.config.dateFormat);return i.selectedDates.map((function(t){return i.formatDate(t,e)})).filter((function(t,e,n){return"range"!==i.config.mode||i.config.enableTime||n.indexOf(t)===e})).join("range"!==i.config.mode?i.config.conjunction:i.l10n.rangeSeparator)}function Q(t){void 0===t&&(t=!0),void 0!==i.mobileInput&&i.mobileFormatStr&&(i.mobileInput.value=void 0!==i.latestSelectedDateObj?i.formatDate(i.latestSelectedDateObj,i.mobileFormatStr):""),i.input.value=X(i.config.dateFormat),void 0!==i.altInput&&(i.altInput.value=X(i.config.altFormat)),!1!==t&&G("onValueUpdate")}function tt(t){var e=Ct(t),n=i.prevMonthNav.contains(e),o=i.nextMonthNav.contains(e);n||o?T(n?-1:1):i.yearElements.indexOf(e)>=0?e.select():e.classList.contains("arrowUp")?i.changeYear(i.currentYear+1):e.classList.contains("arrowDown")&&i.changeYear(i.currentYear-1)}return function(){i.element=i.input=t,i.isOpen=!1,function(){var n=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],r=Nt(Nt({},JSON.parse(JSON.stringify(t.dataset||{}))),e),s={};i.config.parseDate=r.parseDate,i.config.formatDate=r.formatDate,Object.defineProperty(i.config,"enable",{get:function(){return i.config._enable},set:function(t){i.config._enable=V(t)}}),Object.defineProperty(i.config,"disable",{get:function(){return i.config._disable},set:function(t){i.config._disable=V(t)}});var a="time"===r.mode;if(!r.dateFormat&&(r.enableTime||a)){var l=Ft.defaultConfig.dateFormat||pt.dateFormat;s.dateFormat=r.noCalendar||a?"H:i"+(r.enableSeconds?":S":""):l+" H:i"+(r.enableSeconds?":S":"")}if(r.altInput&&(r.enableTime||a)&&!r.altFormat){var c=Ft.defaultConfig.altFormat||pt.altFormat;s.altFormat=r.noCalendar||a?"h:i"+(r.enableSeconds?":S K":" K"):c+" h:i"+(r.enableSeconds?":S":"")+" K"}Object.defineProperty(i.config,"minDate",{get:function(){return i.config._minDate},set:z("min")}),Object.defineProperty(i.config,"maxDate",{get:function(){return i.config._maxDate},set:z("max")});var h=function(t){return function(e){i.config["min"===t?"_minTime":"_maxTime"]=i.parseDate(e,"H:i:S")}};Object.defineProperty(i.config,"minTime",{get:function(){return i.config._minTime},set:h("min")}),Object.defineProperty(i.config,"maxTime",{get:function(){return i.config._maxTime},set:h("max")}),"time"===r.mode&&(i.config.noCalendar=!0,i.config.enableTime=!0);Object.assign(i.config,s,r);for(var u=0;u<n.length;u++)i.config[n[u]]=!0===i.config[n[u]]||"true"===i.config[n[u]];dt.filter((function(t){return void 0!==i.config[t]})).forEach((function(t){i.config[t]=yt(i.config[t]||[]).map(o)})),i.isMobile=!i.config.disableMobile&&!i.config.inline&&"single"===i.config.mode&&!i.config.disable.length&&!i.config.enable&&!i.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);for(u=0;u<i.config.plugins.length;u++){var d=i.config.plugins[u](i)||{};for(var p in d)dt.indexOf(p)>-1?i.config[p]=yt(d[p]).map(o).concat(i.config[p]):void 0===r[p]&&(i.config[p]=d[p])}r.altInputClass||(i.config.altInputClass=R().className+" "+i.config.altInputClass);G("onParseConfig")}(),B(),function(){if(i.input=R(),!i.input)return void i.config.errorHandler(new Error("Invalid input element specified"));i.input._type=i.input.type,i.input.type="text",i.input.classList.add("flatpickr-input"),i._input=i.input,i.config.altInput&&(i.altInput=_t(i.input.nodeName,i.config.altInputClass),i._input=i.altInput,i.altInput.placeholder=i.input.placeholder,i.altInput.disabled=i.input.disabled,i.altInput.required=i.input.required,i.altInput.tabIndex=i.input.tabIndex,i.altInput.type="text",i.input.setAttribute("type","hidden"),!i.config.static&&i.input.parentNode&&i.input.parentNode.insertBefore(i.altInput,i.input.nextSibling));i.config.allowInput||i._input.setAttribute("readonly","readonly");W()}(),function(){i.selectedDates=[],i.now=i.parseDate(i.config.now)||new Date;var t=i.config.defaultDate||("INPUT"!==i.input.nodeName&&"TEXTAREA"!==i.input.nodeName||!i.input.placeholder||i.input.value!==i.input.placeholder?i.input.value:null);t&&U(t,i.config.dateFormat);i._initialDate=i.selectedDates.length>0?i.selectedDates[0]:i.config.minDate&&i.config.minDate.getTime()>i.now.getTime()?i.config.minDate:i.config.maxDate&&i.config.maxDate.getTime()<i.now.getTime()?i.config.maxDate:i.now,i.currentYear=i._initialDate.getFullYear(),i.currentMonth=i._initialDate.getMonth(),i.selectedDates.length>0&&(i.latestSelectedDateObj=i.selectedDates[0]);void 0!==i.config.minTime&&(i.config.minTime=i.parseDate(i.config.minTime,"H:i"));void 0!==i.config.maxTime&&(i.config.maxTime=i.parseDate(i.config.maxTime,"H:i"));i.minDateHasTime=!!i.config.minDate&&(i.config.minDate.getHours()>0||i.config.minDate.getMinutes()>0||i.config.minDate.getSeconds()>0),i.maxDateHasTime=!!i.config.maxDate&&(i.config.maxDate.getHours()>0||i.config.maxDate.getMinutes()>0||i.config.maxDate.getSeconds()>0)}(),i.utils={getDaysInMonth:function(t,e){return void 0===t&&(t=i.currentMonth),void 0===e&&(e=i.currentYear),1===t&&(e%4==0&&e%100!=0||e%400==0)?29:i.l10n.daysInMonth[t]}},i.isMobile||function(){var t=window.document.createDocumentFragment();if(i.calendarContainer=_t("div","flatpickr-calendar"),i.calendarContainer.tabIndex=-1,!i.config.noCalendar){if(t.appendChild((i.monthNav=_t("div","flatpickr-months"),i.yearElements=[],i.monthElements=[],i.prevMonthNav=_t("span","flatpickr-prev-month"),i.prevMonthNav.innerHTML=i.config.prevArrow,i.nextMonthNav=_t("span","flatpickr-next-month"),i.nextMonthNav.innerHTML=i.config.nextArrow,C(),Object.defineProperty(i,"_hidePrevMonthArrow",{get:function(){return i.__hidePrevMonthArrow},set:function(t){i.__hidePrevMonthArrow!==t&&(bt(i.prevMonthNav,"flatpickr-disabled",t),i.__hidePrevMonthArrow=t)}}),Object.defineProperty(i,"_hideNextMonthArrow",{get:function(){return i.__hideNextMonthArrow},set:function(t){i.__hideNextMonthArrow!==t&&(bt(i.nextMonthNav,"flatpickr-disabled",t),i.__hideNextMonthArrow=t)}}),i.currentYearElement=i.yearElements[0],J(),i.monthNav)),i.innerContainer=_t("div","flatpickr-innerContainer"),i.config.weekNumbers){var e=function(){i.calendarContainer.classList.add("hasWeeks");var t=_t("div","flatpickr-weekwrapper");t.appendChild(_t("span","flatpickr-weekday",i.l10n.weekAbbreviation));var e=_t("div","flatpickr-weeks");return t.appendChild(e),{weekWrapper:t,weekNumbers:e}}(),n=e.weekWrapper,o=e.weekNumbers;i.innerContainer.appendChild(n),i.weekNumbers=o,i.weekWrapper=n}i.rContainer=_t("div","flatpickr-rContainer"),i.rContainer.appendChild(S()),i.daysContainer||(i.daysContainer=_t("div","flatpickr-days"),i.daysContainer.tabIndex=-1),x(),i.rContainer.appendChild(i.daysContainer),i.innerContainer.appendChild(i.rContainer),t.appendChild(i.innerContainer)}i.config.enableTime&&t.appendChild(function(){i.calendarContainer.classList.add("hasTime"),i.config.noCalendar&&i.calendarContainer.classList.add("noCalendar");var t=It(i.config);i.timeContainer=_t("div","flatpickr-time"),i.timeContainer.tabIndex=-1;var e=_t("span","flatpickr-time-separator",":"),n=kt("flatpickr-hour",{"aria-label":i.l10n.hourAriaLabel});i.hourElement=n.getElementsByTagName("input")[0];var o=kt("flatpickr-minute",{"aria-label":i.l10n.minuteAriaLabel});i.minuteElement=o.getElementsByTagName("input")[0],i.hourElement.tabIndex=i.minuteElement.tabIndex=-1,i.hourElement.value=ft(i.latestSelectedDateObj?i.latestSelectedDateObj.getHours():i.config.time_24hr?t.hours:function(t){switch(t%24){case 0:case 12:return 12;default:return t%12}}(t.hours)),i.minuteElement.value=ft(i.latestSelectedDateObj?i.latestSelectedDateObj.getMinutes():t.minutes),i.hourElement.setAttribute("step",i.config.hourIncrement.toString()),i.minuteElement.setAttribute("step",i.config.minuteIncrement.toString()),i.hourElement.setAttribute("min",i.config.time_24hr?"0":"1"),i.hourElement.setAttribute("max",i.config.time_24hr?"23":"12"),i.hourElement.setAttribute("maxlength","2"),i.minuteElement.setAttribute("min","0"),i.minuteElement.setAttribute("max","59"),i.minuteElement.setAttribute("maxlength","2"),i.timeContainer.appendChild(n),i.timeContainer.appendChild(e),i.timeContainer.appendChild(o),i.config.time_24hr&&i.timeContainer.classList.add("time24hr");if(i.config.enableSeconds){i.timeContainer.classList.add("hasSeconds");var r=kt("flatpickr-second");i.secondElement=r.getElementsByTagName("input")[0],i.secondElement.value=ft(i.latestSelectedDateObj?i.latestSelectedDateObj.getSeconds():t.seconds),i.secondElement.setAttribute("step",i.minuteElement.getAttribute("step")),i.secondElement.setAttribute("min","0"),i.secondElement.setAttribute("max","59"),i.secondElement.setAttribute("maxlength","2"),i.timeContainer.appendChild(_t("span","flatpickr-time-separator",":")),i.timeContainer.appendChild(r)}i.config.time_24hr||(i.amPM=_t("span","flatpickr-am-pm",i.l10n.amPM[gt((i.latestSelectedDateObj?i.hourElement.value:i.config.defaultHour)>11)]),i.amPM.title=i.l10n.toggleTitle,i.amPM.tabIndex=-1,i.timeContainer.appendChild(i.amPM));return i.timeContainer}());bt(i.calendarContainer,"rangeMode","range"===i.config.mode),bt(i.calendarContainer,"animate",!0===i.config.animate),bt(i.calendarContainer,"multiMonth",i.config.showMonths>1),i.calendarContainer.appendChild(t);var r=void 0!==i.config.appendTo&&void 0!==i.config.appendTo.nodeType;if((i.config.inline||i.config.static)&&(i.calendarContainer.classList.add(i.config.inline?"inline":"static"),i.config.inline&&(!r&&i.element.parentNode?i.element.parentNode.insertBefore(i.calendarContainer,i._input.nextSibling):void 0!==i.config.appendTo&&i.config.appendTo.appendChild(i.calendarContainer)),i.config.static)){var s=_t("div","flatpickr-wrapper");i.element.parentNode&&i.element.parentNode.insertBefore(s,i.element),s.appendChild(i.element),i.altInput&&s.appendChild(i.altInput),s.appendChild(i.calendarContainer)}i.config.static||i.config.inline||(void 0!==i.config.appendTo?i.config.appendTo:window.document.body).appendChild(i.calendarContainer)}(),function(){i.config.wrap&&["open","close","toggle","clear"].forEach((function(t){Array.prototype.forEach.call(i.element.querySelectorAll("[data-"+t+"]"),(function(e){return u(e,"click",i[t])}))}));if(i.isMobile)return void function(){var t=i.config.enableTime?i.config.noCalendar?"time":"datetime-local":"date";i.mobileInput=_t("input",i.input.className+" flatpickr-mobile"),i.mobileInput.tabIndex=1,i.mobileInput.type=t,i.mobileInput.disabled=i.input.disabled,i.mobileInput.required=i.input.required,i.mobileInput.placeholder=i.input.placeholder,i.mobileFormatStr="datetime-local"===t?"Y-m-d\\TH:i:S":"date"===t?"Y-m-d":"H:i:S",i.selectedDates.length>0&&(i.mobileInput.defaultValue=i.mobileInput.value=i.formatDate(i.selectedDates[0],i.mobileFormatStr));i.config.minDate&&(i.mobileInput.min=i.formatDate(i.config.minDate,"Y-m-d"));i.config.maxDate&&(i.mobileInput.max=i.formatDate(i.config.maxDate,"Y-m-d"));i.input.getAttribute("step")&&(i.mobileInput.step=String(i.input.getAttribute("step")));i.input.type="hidden",void 0!==i.altInput&&(i.altInput.type="hidden");try{i.input.parentNode&&i.input.parentNode.insertBefore(i.mobileInput,i.input.nextSibling)}catch(t){}u(i.mobileInput,"change",(function(t){i.setDate(Ct(t).value,!1,i.mobileFormatStr),G("onChange"),G("onClose")}))}();var t=vt(N,50);i._debouncedChange=vt(d,300),i.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&u(i.daysContainer,"mouseover",(function(t){"range"===i.config.mode&&I(Ct(t))}));u(i._input,"keydown",P),void 0!==i.calendarContainer&&u(i.calendarContainer,"keydown",P);i.config.inline||i.config.static||u(window,"resize",t);void 0!==window.ontouchstart?u(window.document,"touchstart",D):u(window.document,"mousedown",D);u(window.document,"focus",D,{capture:!0}),!0===i.config.clickOpens&&(u(i._input,"focus",i.open),u(i._input,"click",i.open));void 0!==i.daysContainer&&(u(i.monthNav,"click",tt),u(i.monthNav,["keyup","increment"],h),u(i.daysContainer,"click",Z));if(void 0!==i.timeContainer&&void 0!==i.minuteElement&&void 0!==i.hourElement){var e=function(t){return Ct(t).select()};u(i.timeContainer,["increment"],s),u(i.timeContainer,"blur",s,{capture:!0}),u(i.timeContainer,"click",m),u([i.hourElement,i.minuteElement],["focus","click"],e),void 0!==i.secondElement&&u(i.secondElement,"focus",(function(){return i.secondElement&&i.secondElement.select()})),void 0!==i.amPM&&u(i.amPM,"click",(function(t){s(t)}))}i.config.allowInput&&u(i._input,"blur",O)}(),(i.selectedDates.length||i.config.noCalendar)&&(i.config.enableTime&&l(i.config.noCalendar?i.latestSelectedDateObj:void 0),Q(!1)),r();var n=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!i.isMobile&&n&&F(),G("onReady")}(),i}function Bt(t,e){for(var i=Array.prototype.slice.call(t).filter((function(t){return t instanceof HTMLElement})),n=[],o=0;o<i.length;o++){var r=i[o];try{if(null!==r.getAttribute("data-fp-omit"))continue;void 0!==r._flatpickr&&(r._flatpickr.destroy(),r._flatpickr=void 0),r._flatpickr=Rt(r,e||{}),n.push(r._flatpickr)}catch(t){console.error(t)}}return 1===n.length?n[0]:n}"undefined"!=typeof HTMLElement&&"undefined"!=typeof HTMLCollection&&"undefined"!=typeof NodeList&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(t){return Bt(this,t)},HTMLElement.prototype.flatpickr=function(t){return Bt([this],t)});var Ft=function(t,e){return"string"==typeof t?Bt(window.document.querySelectorAll(t),e):t instanceof Node?Bt([t],e):Bt(t,e)};Ft.defaultConfig={},Ft.l10ns={en:Nt({},mt),default:Nt({},mt)},Ft.localize=function(t){Ft.l10ns.default=Nt(Nt({},Ft.l10ns.default),t)},Ft.setDefaults=function(t){Ft.defaultConfig=Nt(Nt({},Ft.defaultConfig),t)},Ft.parseDate=At({}),Ft.formatDate=$t({}),Ft.compareDates=Lt,"undefined"!=typeof jQuery&&void 0!==jQuery.fn&&(jQuery.fn.flatpickr=function(t){return Bt(this,t)}),Date.prototype.fp_incr=function(t){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+("string"==typeof t?parseInt(t,10):t))},"undefined"!=typeof window&&(window.flatpickr=Ft);var qt;!function(t){t.light="light",t.dark="dark",t.materialBlue="material_blue",t.materialGreen="material_green",t.materialOrange="material_orange",t.materialRed="material_red",t.airbnb="airbnb",t.confetti="confetti",t.none="none"}(qt||(qt={}));class jt{constructor(t){this.theme=t,this.theme=t}async initStyles(){const t=`https://npmcdn.com/flatpickr@4.6.9/dist/themes/${this.theme}.css`;this.isThemeLoaded()||(this.appendThemeStyles(t),await this.waitForStyleToLoad((()=>this.isThemeLoaded())))}waitForStyleToLoad(t){return new Promise(((e,i)=>{const n=(i=0)=>{if(t())return e();if(i>10)throw Error("Styles took too long to load, or were not able to be loaded");setTimeout((()=>n(i++)),100)};n()}))}isThemeLoaded(){if(this.theme===qt.none)return!0;return Array.from(document.styleSheets).map((t=>t.href)).some((t=>null!=t&&new RegExp("https://npmcdn.com/flatpickr@4.6.9/dist/themes").test(t)))}appendThemeStyles(t){const e=document.createElement("link");e.rel="stylesheet",e.type="text/css",e.href=t,document.head.append(e)}}let Zt=class extends X{constructor(){super(...arguments),this.placeholder="",this.altFormat="F j, Y",this.altInput=!1,this.altInputClass="",this.allowInput=!1,this.ariaDateFormat="F j, Y",this.clickOpens=!0,this.dateFormat="Y-m-d",this.defaultHour=12,this.defaultMinute=0,this.disable=[],this.disableMobile=!1,this.enable=void 0,this.enableTime=!1,this.enableSeconds=!1,this.hourIncrement=1,this.minuteIncrement=5,this.inline=!1,this.mode="single",this.nextArrow=">",this.prevArrow="<",this.noCalendar=!1,this.position="auto",this.shorthandCurrentMonth=!1,this.showMonths=1,this.static=!1,this.time_24hr=!1,this.weekNumbers=!1,this.wrap=!1,this.theme="light",this.firstDayOfWeek=1,this.defaultToToday=!1,this._hasSlottedElement=!1}static get styles(){return[r`
73
+ :host {
74
+ width: fit-content;
75
+ display: block;
76
+ cursor: pointer;
77
+ background: #fff;
78
+ color: #000;
79
+ overflow: hidden;
80
+ }
81
81
 
82
- ::slotted(*) {
83
- cursor: pointer;
84
- }
82
+ ::slotted(*) {
83
+ cursor: pointer;
84
+ }
85
85
 
86
- input {
87
- width: 100%;
88
- height: 100%;
89
- font-size: inherit;
90
- cursor: pointer;
91
- background: inherit;
92
- box-sizing: border-box;
93
- outline: none;
94
- color: inherit;
95
- border: none;
96
- }
97
- `]}firstUpdated(){this._hasSlottedElement=this.checkForSlottedElement()}updated(){this.init()}checkForSlottedElement(){var t;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector("slot"),i=e?e.assignedNodes().filter(this.removeTextNodes):[];return null!=e&&i&&i.length>0}getSlottedElement(){var t;if(!this._hasSlottedElement)return;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector("slot"),i=null==e?void 0:e.assignedNodes().filter(this.removeTextNodes);return!i||i.length<1?void 0:i[0]}removeTextNodes(t){return"#text"!==t.nodeName}async init(){const t=new jt(this.theme);await t.initStyles(),this.locale&&await async function(t){const e="https://npmcdn.com/flatpickr@4.6.9/dist/l10n/"+t+".js";await import(e)}(this.locale),this.initializeComponent()}getOptions(){const t={altFormat:this.altFormat,altInput:this.altInput,altInputClass:this.altInputClass,allowInput:this.allowInput,ariaDateFormat:this.ariaDateFormat,clickOpens:this.clickOpens,dateFormat:this.dateFormat,defaultDate:this.defaultDate,defaultHour:this.defaultHour,defaultMinute:this.defaultMinute,disable:this.disable,disableMobile:this.disableMobile,enable:this.enable,enableTime:this.enableTime,enableSeconds:this.enableSeconds,formatDate:this.formatDateFn,hourIncrement:this.hourIncrement,inline:this.inline,maxDate:this.maxDate,minDate:this.minDate,minuteIncrement:this.minuteIncrement,mode:this.mode,nextArrow:this.nextArrow,prevArrow:this.prevArrow,noCalendar:this.noCalendar,onChange:this.onChange,onClose:this.onClose,onOpen:this.onOpen,onReady:this.onReady,onMonthChange:this.onMonthChange,onYearChange:this.onYearChange,onValueUpdate:this.onValueUpdate,parseDate:this.parseDateFn,position:this.position,shorthandCurrentMonth:this.shorthandCurrentMonth,showMonths:this.showMonths,static:this.static,time_24hr:this.time_24hr,weekNumbers:this.weekNumbers,wrap:this.wrap,locale:this.locale};return Object.keys(t).forEach((e=>{void 0===t[e]&&delete t[e]})),t}initializeComponent(){var t;let e;this._instance&&Object.prototype.hasOwnProperty.call(this,"destroy")&&this._instance.destroy(),e=this._hasSlottedElement?this.findInputField():null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector("input"),e&&(this._inputElement=e,flatpickr.l10ns.default.firstDayOfWeek=this.firstDayOfWeek,this._instance=flatpickr(e,this.getOptions()))}findInputField(){let t=null;if(t=this.querySelector("input"),t)return t;const e=this.getSlottedElement();return void 0!==typeof e&&(t=this.searchWebComponentForInputElement(e)),t||null}searchWebComponentForInputElement(t){let e=this.getInputFieldInElement(t);if(e)return e;const i=this.getWebComponentsInsideElement(t);for(let t=0;t<i.length&&(e=this.searchWebComponentForInputElement(i[t]),!e);t++);return e}getInputFieldInElement(t){let e=null;return e=t.shadowRoot?t.shadowRoot.querySelector("input"):t.querySelector("input"),e}getWebComponentsInsideElement(t){return t.shadowRoot?[...Array.from(t.querySelectorAll("*")),...Array.from(t.shadowRoot.querySelectorAll("*"))].filter((t=>t.shadowRoot)):Array.from(t.querySelectorAll("*")).filter((t=>t.shadowRoot))}changeMonth(t,e=!0){this._instance&&this._instance.changeMonth(t,e)}clear(){this._instance&&this._instance.clear()}close(){this._instance&&this._instance.close()}destroy(){this._instance&&this._instance.destroy()}formatDate(t,e){return this._instance?this._instance.formatDate(t,e):""}jumpToDate(t,e){this._instance&&this._instance.jumpToDate(t,e)}open(){this._instance&&this._instance.open()}parseDate(t,e){if(this._instance)return this._instance.parseDate(t,e)}redraw(){this._instance&&this._instance.redraw()}set(t,e){this._instance&&this._instance.set(t,e)}setDate(t,e,i){this._instance&&this._instance.setDate(t,e,i)}toggle(){this._instance}getSelectedDates(){return this._instance?this._instance.selectedDates:[]}getCurrentYear(){return this._instance?this._instance.currentYear:-1}getCurrentMonth(){return this._instance?this._instance.currentMonth:-1}getConfig(){return this._instance?this._instance.config:{}}getValue(){return this._inputElement?this._inputElement.value:""}render(){return O`
86
+ input {
87
+ width: 100%;
88
+ height: 100%;
89
+ font-size: inherit;
90
+ cursor: pointer;
91
+ background: inherit;
92
+ box-sizing: border-box;
93
+ outline: none;
94
+ color: inherit;
95
+ border: none;
96
+ }
97
+ `]}firstUpdated(){this._hasSlottedElement=this.checkForSlottedElement()}updated(){this.init()}getToday(){const t=new Date;return`${t.getFullYear()}-${t.getMonth()+1}-${t.getDate()}`}checkForSlottedElement(){var t;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector("slot"),i=e?e.assignedNodes().filter(this.removeTextNodes):[];return null!=e&&i&&i.length>0}getSlottedElement(){var t;if(!this._hasSlottedElement)return;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector("slot"),i=null==e?void 0:e.assignedNodes().filter(this.removeTextNodes);return!i||i.length<1?void 0:i[0]}removeTextNodes(t){return"#text"!==t.nodeName}async init(){const t=new jt(this.theme);await t.initStyles(),this.locale&&await async function(t){const e="https://npmcdn.com/flatpickr@4.6.9/dist/l10n/"+t+".js";await import(e)}(this.locale),this.initializeComponent()}getOptions(){const t={altFormat:this.altFormat,altInput:this.altInput,altInputClass:this.altInputClass,allowInput:this.allowInput,ariaDateFormat:this.ariaDateFormat,clickOpens:this.clickOpens,dateFormat:this.dateFormat,defaultDate:this.defaultToToday?this.getToday():this.defaultDate,defaultHour:this.defaultHour,defaultMinute:this.defaultMinute,disable:this.disable,disableMobile:this.disableMobile,enable:this.enable,enableTime:this.enableTime,enableSeconds:this.enableSeconds,formatDate:this.formatDateFn,hourIncrement:this.hourIncrement,inline:this.inline,maxDate:this.maxDate,minDate:this.minDate,minuteIncrement:this.minuteIncrement,mode:this.mode,nextArrow:this.nextArrow,prevArrow:this.prevArrow,noCalendar:this.noCalendar,onChange:this.onChange,onClose:this.onClose,onOpen:this.onOpen,onReady:this.onReady,onMonthChange:this.onMonthChange,onYearChange:this.onYearChange,onValueUpdate:this.onValueUpdate,parseDate:this.parseDateFn,position:this.position,shorthandCurrentMonth:this.shorthandCurrentMonth,showMonths:this.showMonths,static:this.static,time_24hr:this.time_24hr,weekNumbers:this.weekNumbers,wrap:this.wrap,locale:this.locale};return Object.keys(t).forEach((e=>{void 0===t[e]&&delete t[e]})),t}initializeComponent(){var t;let e;this._instance&&Object.prototype.hasOwnProperty.call(this,"destroy")&&this._instance.destroy(),e=this._hasSlottedElement?this.findInputField():null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector("input"),e&&(this._inputElement=e,flatpickr.l10ns.default.firstDayOfWeek=this.firstDayOfWeek,this._instance=flatpickr(e,this.getOptions()))}findInputField(){let t=null;if(t=this.querySelector("input"),t)return t;const e=this.getSlottedElement();return void 0!==typeof e&&(t=this.searchWebComponentForInputElement(e)),t||null}searchWebComponentForInputElement(t){let e=this.getInputFieldInElement(t);if(e)return e;const i=this.getWebComponentsInsideElement(t);for(let t=0;t<i.length&&(e=this.searchWebComponentForInputElement(i[t]),!e);t++);return e}getInputFieldInElement(t){let e=null;return e=t.shadowRoot?t.shadowRoot.querySelector("input"):t.querySelector("input"),e}getWebComponentsInsideElement(t){return t.shadowRoot?[...Array.from(t.querySelectorAll("*")),...Array.from(t.shadowRoot.querySelectorAll("*"))].filter((t=>t.shadowRoot)):Array.from(t.querySelectorAll("*")).filter((t=>t.shadowRoot))}changeMonth(t,e=!0){this._instance&&this._instance.changeMonth(t,e)}clear(){this._instance&&this._instance.clear()}close(){this._instance&&this._instance.close()}destroy(){this._instance&&this._instance.destroy()}formatDate(t,e){return this._instance?this._instance.formatDate(t,e):""}jumpToDate(t,e){this._instance&&this._instance.jumpToDate(t,e)}open(){this._instance&&this._instance.open()}parseDate(t,e){if(this._instance)return this._instance.parseDate(t,e)}redraw(){this._instance&&this._instance.redraw()}set(t,e){this._instance&&this._instance.set(t,e)}setDate(t,e,i){this._instance&&this._instance.setDate(t,e,i)}toggle(){this._instance}getSelectedDates(){return this._instance?this._instance.selectedDates:[]}getCurrentYear(){return this._instance?this._instance.currentYear:-1}getCurrentMonth(){return this._instance?this._instance.currentMonth:-1}getConfig(){return this._instance?this._instance.config:{}}getValue(){return this._inputElement?this._inputElement.value:""}render(){return O`
98
98
  ${this._hasSlottedElement?O``:O`<input class="lit-flatpickr flatpickr flatpickr-input" placeholder=${this.placeholder} />`}
99
99
  <slot></slot>
100
- `}};t([it({type:String})],Zt.prototype,"placeholder",void 0),t([it({type:String})],Zt.prototype,"altFormat",void 0),t([it({type:Boolean})],Zt.prototype,"altInput",void 0),t([it({type:String})],Zt.prototype,"altInputClass",void 0),t([it({type:Boolean})],Zt.prototype,"allowInput",void 0),t([it({type:String})],Zt.prototype,"ariaDateFormat",void 0),t([it({type:Boolean})],Zt.prototype,"clickOpens",void 0),t([it({type:String})],Zt.prototype,"dateFormat",void 0),t([it({type:Object})],Zt.prototype,"defaultDate",void 0),t([it({type:Number})],Zt.prototype,"defaultHour",void 0),t([it({type:Number})],Zt.prototype,"defaultMinute",void 0),t([it({type:Array})],Zt.prototype,"disable",void 0),t([it({type:Boolean})],Zt.prototype,"disableMobile",void 0),t([it({type:Array})],Zt.prototype,"enable",void 0),t([it({type:Boolean})],Zt.prototype,"enableTime",void 0),t([it({type:Boolean})],Zt.prototype,"enableSeconds",void 0),t([it({type:Function})],Zt.prototype,"formatDateFn",void 0),t([it({type:Number})],Zt.prototype,"hourIncrement",void 0),t([it({type:Number})],Zt.prototype,"minuteIncrement",void 0),t([it({type:Boolean})],Zt.prototype,"inline",void 0),t([it({type:String})],Zt.prototype,"maxDate",void 0),t([it({type:String})],Zt.prototype,"minDate",void 0),t([it({type:String})],Zt.prototype,"mode",void 0),t([it({type:String})],Zt.prototype,"nextArrow",void 0),t([it({type:String})],Zt.prototype,"prevArrow",void 0),t([it({type:Boolean})],Zt.prototype,"noCalendar",void 0),t([it({type:Function})],Zt.prototype,"onChange",void 0),t([it({type:Function})],Zt.prototype,"onClose",void 0),t([it({type:Function})],Zt.prototype,"onOpen",void 0),t([it({type:Function})],Zt.prototype,"onReady",void 0),t([it({type:Function})],Zt.prototype,"onMonthChange",void 0),t([it({type:Function})],Zt.prototype,"onYearChange",void 0),t([it({type:Function})],Zt.prototype,"onValueUpdate",void 0),t([it({type:Function})],Zt.prototype,"parseDateFn",void 0),t([it({type:String})],Zt.prototype,"position",void 0),t([it({type:Boolean})],Zt.prototype,"shorthandCurrentMonth",void 0),t([it({type:Number})],Zt.prototype,"showMonths",void 0),t([it({type:Boolean})],Zt.prototype,"static",void 0),t([it({type:Boolean})],Zt.prototype,"time_24hr",void 0),t([it({type:Boolean})],Zt.prototype,"weekNumbers",void 0),t([it({type:Boolean})],Zt.prototype,"wrap",void 0),t([it({type:String})],Zt.prototype,"theme",void 0),t([it({type:Number})],Zt.prototype,"firstDayOfWeek",void 0),t([it({type:String})],Zt.prototype,"locale",void 0),t([it({type:Boolean})],Zt.prototype,"_hasSlottedElement",void 0),Zt=t([(t=>e=>"function"==typeof e?((t,e)=>(window.customElements.define(t,e),e))(t,e):((t,e)=>{const{kind:i,elements:n}=e;return{kind:i,elements:n,finisher(e){window.customElements.define(t,e)}}})(t,e))("lit-flatpickr")],Zt);class Ht extends ot{constructor(){super(),this.placeholder="",this.value="",this.name="",this.loading=!0,this.submitOnEnter=!0,this.disabled=!1,this.autogrow=!1,this.counterElement=null,this.cursorStart=-1,this.cursorEnd=-1}static get styles(){return r`
100
+ `}};t([it({type:String})],Zt.prototype,"placeholder",void 0),t([it({type:String})],Zt.prototype,"altFormat",void 0),t([it({type:Boolean})],Zt.prototype,"altInput",void 0),t([it({type:String})],Zt.prototype,"altInputClass",void 0),t([it({type:Boolean})],Zt.prototype,"allowInput",void 0),t([it({type:String})],Zt.prototype,"ariaDateFormat",void 0),t([it({type:Boolean})],Zt.prototype,"clickOpens",void 0),t([it({type:String})],Zt.prototype,"dateFormat",void 0),t([it({type:Object})],Zt.prototype,"defaultDate",void 0),t([it({type:Number})],Zt.prototype,"defaultHour",void 0),t([it({type:Number})],Zt.prototype,"defaultMinute",void 0),t([it({type:Array})],Zt.prototype,"disable",void 0),t([it({type:Boolean})],Zt.prototype,"disableMobile",void 0),t([it({type:Array})],Zt.prototype,"enable",void 0),t([it({type:Boolean})],Zt.prototype,"enableTime",void 0),t([it({type:Boolean})],Zt.prototype,"enableSeconds",void 0),t([it({type:Function})],Zt.prototype,"formatDateFn",void 0),t([it({type:Number})],Zt.prototype,"hourIncrement",void 0),t([it({type:Number})],Zt.prototype,"minuteIncrement",void 0),t([it({type:Boolean})],Zt.prototype,"inline",void 0),t([it({type:String})],Zt.prototype,"maxDate",void 0),t([it({type:String})],Zt.prototype,"minDate",void 0),t([it({type:String})],Zt.prototype,"mode",void 0),t([it({type:String})],Zt.prototype,"nextArrow",void 0),t([it({type:String})],Zt.prototype,"prevArrow",void 0),t([it({type:Boolean})],Zt.prototype,"noCalendar",void 0),t([it({type:Function})],Zt.prototype,"onChange",void 0),t([it({type:Function})],Zt.prototype,"onClose",void 0),t([it({type:Function})],Zt.prototype,"onOpen",void 0),t([it({type:Function})],Zt.prototype,"onReady",void 0),t([it({type:Function})],Zt.prototype,"onMonthChange",void 0),t([it({type:Function})],Zt.prototype,"onYearChange",void 0),t([it({type:Function})],Zt.prototype,"onValueUpdate",void 0),t([it({type:Function})],Zt.prototype,"parseDateFn",void 0),t([it({type:String})],Zt.prototype,"position",void 0),t([it({type:Boolean})],Zt.prototype,"shorthandCurrentMonth",void 0),t([it({type:Number})],Zt.prototype,"showMonths",void 0),t([it({type:Boolean})],Zt.prototype,"static",void 0),t([it({type:Boolean})],Zt.prototype,"time_24hr",void 0),t([it({type:Boolean})],Zt.prototype,"weekNumbers",void 0),t([it({type:Boolean})],Zt.prototype,"wrap",void 0),t([it({type:String})],Zt.prototype,"theme",void 0),t([it({type:Number})],Zt.prototype,"firstDayOfWeek",void 0),t([it({type:String})],Zt.prototype,"locale",void 0),t([it({type:Boolean,attribute:"default-to-today"})],Zt.prototype,"defaultToToday",void 0),t([it({type:Boolean})],Zt.prototype,"_hasSlottedElement",void 0),Zt=t([(t=>e=>"function"==typeof e?((t,e)=>(window.customElements.define(t,e),e))(t,e):((t,e)=>{const{kind:i,elements:n}=e;return{kind:i,elements:n,finisher(e){window.customElements.define(t,e)}}})(t,e))("lit-flatpickr")],Zt);class Ht extends ot{constructor(){super(),this.placeholder="",this.value="",this.name="",this.loading=!0,this.submitOnEnter=!0,this.disabled=!1,this.autogrow=!1,this.counterElement=null,this.cursorStart=-1,this.cursorEnd=-1}static get styles(){return r`
101
101
  .input-container {
102
102
  border-radius: var(--curvature-widget);
103
103
  cursor: text;
@@ -286,7 +286,7 @@ function t(t,e,i,n){var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPro
286
286
  <slot></slot>
287
287
  </div>
288
288
  </temba-field>
289
- `}}t([it({type:Boolean})],Ht.prototype,"textarea",void 0),t([it({type:Boolean})],Ht.prototype,"datepicker",void 0),t([it({type:Boolean})],Ht.prototype,"datetimepicker",void 0),t([it({type:String})],Ht.prototype,"placeholder",void 0),t([it({type:String})],Ht.prototype,"value",void 0),t([it({type:String})],Ht.prototype,"name",void 0),t([it({type:Boolean})],Ht.prototype,"password",void 0),t([it({type:Number})],Ht.prototype,"maxlength",void 0),t([it({type:Object})],Ht.prototype,"inputElement",void 0),t([it({type:Object})],Ht.prototype,"dateElement",void 0),t([it({type:Boolean})],Ht.prototype,"clearable",void 0),t([it({type:Boolean})],Ht.prototype,"gsm",void 0),t([it({type:String})],Ht.prototype,"counter",void 0),t([it({type:Boolean})],Ht.prototype,"loading",void 0),t([it({type:Boolean})],Ht.prototype,"submitOnEnter",void 0),t([it()],Ht.prototype,"onBlur",void 0),t([it({type:Boolean})],Ht.prototype,"disabled",void 0),t([it({type:Boolean})],Ht.prototype,"autogrow",void 0);const Ut=/(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))/,Vt=(t={})=>{const e=(t=>{for(const e of document.cookie.split(";")){const i=e.indexOf("=");let n=e.substr(0,i),o=e.substr(i+1);if(n=n.trim(),o=o.trim(),n===t)return o}return null})("csrftoken"),i=e?{"X-CSRFToken":e}:{};return i["X-Requested-With"]="XMLHttpRequest",Object.keys(t).forEach((e=>{i[e]=t[e]})),i},Wt=(t,e=null,i={})=>new Promise(((n,o)=>{const r={method:"GET",headers:Vt(i)};e&&(r.signal=e.signal),fetch(t,r).then((t=>{t.text().then((i=>{let o={};try{o=JSON.parse(i)}catch(t){}n({controller:e,body:i,json:o,headers:t.headers,status:t.status})}))})).catch((t=>{o(t)}))})),Gt=t=>{const e=[];Object.keys(t).forEach((i=>{t[i]&&e.push(i)}));let i=e.join(" ");return i.trim().length>0&&(i=" "+i),i},Yt=(t,e=null)=>new Promise(((i,n)=>{Wt(t,e).then((t=>{i({results:t.json.results,next:t.json.next})})).catch((t=>n(t)))})),Kt=async t=>{if(!t)return new Promise((t=>t([])));let e=[],i=t;for(;i;){const t=await Yt(i);t.results&&(e=e.concat(t.results)),i=t.next}return e},Jt=t=>new Promise(((e,i)=>{Wt(t).then((t=>{e({assets:t.json.results,next:t.json.next})})).catch((t=>i(t)))})),Xt=async t=>{if(!t)return new Promise((t=>t([])));let e=[],i=t;for(;i;){const t=await Jt(i);e=e.concat(t.assets),i=t.next}return e},Qt=(t,e,i={},n=null)=>{const o=Vt(i);n&&(o["Content-Type"]=n);const r={method:"POST",headers:o,body:e};return new Promise(((e,i)=>{fetch(t,r).then((async t=>{t.text().then((i=>{let n={};try{n=JSON.parse(i)}catch(t){}e({body:i,json:n,headers:t.headers,status:t.status})}))})).catch((t=>{i(t)}))}))},te=(t,e)=>Qt(t,JSON.stringify(e),!1,"application/json"),ee=t=>{const e=t.parentNode||t.host;if(e){const t=e instanceof HTMLElement&&window.getComputedStyle(e).overflowY,i=t&&!(t.includes("hidden")||t.includes("visible"));return e?i&&e.scrollHeight>=e.clientHeight?e:ee(e):null}return null};const ie=new class{getCurrentDate(){return new Date}},ne=(t,e={suffix:""})=>{const{compareDate:i,hideRecentText:n,suffix:o}=e,r=i||ie.getCurrentDate(),s=Math.floor((r.getTime()-t.getTime())/1e3);if(s<60)return i?s+"s"+o:!n&&o?o:"just now";if(s<3600)return Math.round(s/60)+"m"+o;if(s<=86400)return Math.round(s/3600)+"h"+o;if(s<=2592e3)return Math.round(s/86400)+"d"+o;if(s<15552e3)return Math.round(s/2592e3)+"mth"+o;return t.getDate()+" "+t.toDateString().match(/ [a-zA-Z]*/)[0].replace(" ","")+(t.getFullYear()==r.getFullYear()?"":" "+t.getFullYear())},oe=(t,e)=>{let i=!0;return function(...n){i&&(i=!1,t.apply(this,n),setTimeout((()=>{i=!0}),e))}},re=(t,e="and")=>1===t.length?t[0]:2===t.length?"html"===t[0].type?O`${t[0]} ${e} ${t[1]}`:t.join(" "+e+" "):"html"===t[0].type?t.map(((i,n)=>n<t.length-1?O`${i}, `:O`${e} ${i}`)):t.join(", ")+e+t[t.length-1],se=(t,e,i="and")=>re(t.map(e),i),ae=t=>"true"===((t=>{let e=null;if(document.cookie&&""!=document.cookie){const i=document.cookie.split(";");for(let n=0;n<i.length;n++){const o=i[n].trim();if(o.substring(0,t.length+1)==t+"="){e=decodeURIComponent(o.substring(t.length+1));break}}}return e})(t)||"");var le,ce,he,ue,de;!function(t){t.MENU_COLLAPSED="menu-collapsed",t.TICKET_SHOW_DETAILS="tickets.show-details"}(le||(le={})),function(t){t.DayFirst="day_first",t.MonthFirst="month_first",t.YearFirst="year_first"}(ce||(ce={})),function(t){t.CampaignEvent="campaign_event",t.ScheduledBroadcast="scheduled_broadcast",t.ScheduledTrigger="scheduled_trigger"}(he||(he={})),function(t){t.Open="open",t.Closed="closed"}(ue||(ue={})),function(t){t.Loaded="temba-loaded",t.Canceled="temba-canceled",t.CursorChanged="temba-cursor-changed",t.Refreshed="temba-refreshed",t.Selection="temba-selection",t.ButtonClicked="temba-button-clicked",t.DialogHidden="temba-dialog-hidden",t.ScrollThreshold="temba-scroll-threshold",t.ContentChanged="temba-content-changed",t.ContextChanged="temba-context-changed",t.FetchComplete="temba-fetch-complete",t.Submitted="temba-submitted",t.Redirected="temba-redirected",t.NoPath="temba-no-path",t.StoreUpdated="temba-store-updated",t.Ready="temba-ready"}(de||(de={}));class pe{constructor(t=0,e=0){this.first=null,this.items=Object.create(null),this.last=null,this.max=t,this.size=0,this.ttl=e}has(t){return t in this.items}clear(){return this.first=null,this.items=Object.create(null),this.last=null,this.size=0,this}delete(t){if(this.has(t)){const e=this.items[t];delete this.items[t],this.size--,null!==e.prev&&(e.prev.next=e.next),null!==e.next&&(e.next.prev=e.prev),this.first===e&&(this.first=e.next),this.last===e&&(this.last=e.prev)}return this}evict(t=!1){if(t||this.size>0){const t=this.first;delete this.items[t.key],this.size--,0===this.size?(this.first=null,this.last=null):(this.first=t.next,this.first.prev=null)}return this}get(t){let e;if(this.has(t)){const i=this.items[t];this.ttl>0&&i.expiry<=(new Date).getTime()?this.delete(t):(e=i.value,this.set(t,e,!0))}return e}keys(){return Object.keys(this.items)}set(t,e,i=!1){let n;if(i||this.has(t)){if(n=this.items[t],n.value=e,this.last!==n){const t=this.last,e=n.next,i=n.prev;this.first===n&&(this.first=n.next),n.next=null,n.prev=this.last,t.next=n,null!==i&&(i.next=e),null!==e&&(e.prev=i)}}else this.max>0&&this.size===this.max&&this.evict(!0),n=this.items[t]={expiry:this.ttl>0?(new Date).getTime()+this.ttl:this.ttl,key:t,prev:this.last,next:null,value:e},1==++this.size?this.first=n:this.last.next=n;return this.last=n,this}}function me(t=1e3,e=0){if(isNaN(t)||t<0)throw new TypeError("Invalid max value");if(isNaN(e)||e<0)throw new TypeError("Invalid ttl value");return new pe(t,e)}var fe=function(){function t(){var t=this;this.languages={ar:{y:function(t){return 1===t?"سنة":"سنوات"},mo:function(t){return 1===t?"شهر":"أشهر"},w:function(t){return 1===t?"أسبوع":"أسابيع"},d:function(t){return 1===t?"يوم":"أيام"},h:function(t){return 1===t?"ساعة":"ساعات"},m:function(e){return["دقيقة","دقائق"][t.getArabicForm(e)]},s:function(t){return 1===t?"ثانية":"ثواني"},ms:function(t){return 1===t?"جزء من الثانية":"أجزاء من الثانية"},decimal:","},bg:{y:function(e){return["години","година","години"][t.getSlavicForm(e)]},mo:function(e){return["месеца","месец","месеца"][t.getSlavicForm(e)]},w:function(e){return["седмици","седмица","седмици"][t.getSlavicForm(e)]},d:function(e){return["дни","ден","дни"][t.getSlavicForm(e)]},h:function(e){return["часа","час","часа"][t.getSlavicForm(e)]},m:function(e){return["минути","минута","минути"][t.getSlavicForm(e)]},s:function(e){return["секунди","секунда","секунди"][t.getSlavicForm(e)]},ms:function(e){return["милисекунди","милисекунда","милисекунди"][t.getSlavicForm(e)]},decimal:","},ca:{y:function(t){return"any"+(1===t?"":"s")},mo:function(t){return"mes"+(1===t?"":"os")},w:function(t){return"setman"+(1===t?"a":"es")},d:function(t){return"di"+(1===t?"a":"es")},h:function(t){return"hor"+(1===t?"a":"es")},m:function(t){return"minut"+(1===t?"":"s")},s:function(t){return"segon"+(1===t?"":"s")},ms:function(t){return"milisegon"+(1===t?"":"s")},decimal:","},cs:{y:function(e){return["rok","roku","roky","let"][t.getCzechOrSlovakForm(e)]},mo:function(e){return["měsíc","měsíce","měsíce","měsíců"][t.getCzechOrSlovakForm(e)]},w:function(e){return["týden","týdne","týdny","týdnů"][t.getCzechOrSlovakForm(e)]},d:function(e){return["den","dne","dny","dní"][t.getCzechOrSlovakForm(e)]},h:function(e){return["hodina","hodiny","hodiny","hodin"][t.getCzechOrSlovakForm(e)]},m:function(e){return["minuta","minuty","minuty","minut"][t.getCzechOrSlovakForm(e)]},s:function(e){return["sekunda","sekundy","sekundy","sekund"][t.getCzechOrSlovakForm(e)]},ms:function(e){return["milisekunda","milisekundy","milisekundy","milisekund"][t.getCzechOrSlovakForm(e)]},decimal:","},da:{y:function(){return"år"},mo:function(t){return"måned"+(1===t?"":"er")},w:function(t){return"uge"+(1===t?"":"r")},d:function(t){return"dag"+(1===t?"":"e")},h:function(t){return"time"+(1===t?"":"r")},m:function(t){return"minut"+(1===t?"":"ter")},s:function(t){return"sekund"+(1===t?"":"er")},ms:function(t){return"millisekund"+(1===t?"":"er")},decimal:","},de:{y:function(t){return"Jahr"+(1===t?"":"e")},mo:function(t){return"Monat"+(1===t?"":"e")},w:function(t){return"Woche"+(1===t?"":"n")},d:function(t){return"Tag"+(1===t?"":"e")},h:function(t){return"Stunde"+(1===t?"":"n")},m:function(t){return"Minute"+(1===t?"":"n")},s:function(t){return"Sekunde"+(1===t?"":"n")},ms:function(t){return"Millisekunde"+(1===t?"":"n")},decimal:","},el:{y:function(t){return 1===t?"χρόνος":"χρόνια"},mo:function(t){return 1===t?"μήνας":"μήνες"},w:function(t){return 1===t?"εβδομάδα":"εβδομάδες"},d:function(t){return 1===t?"μέρα":"μέρες"},h:function(t){return 1===t?"ώρα":"ώρες"},m:function(t){return 1===t?"λεπτό":"λεπτά"},s:function(t){return 1===t?"δευτερόλεπτο":"δευτερόλεπτα"},ms:function(t){return 1===t?"χιλιοστό του δευτερολέπτου":"χιλιοστά του δευτερολέπτου"},decimal:","},en:{y:function(t){return"year"+(1===t?"":"s")},mo:function(t){return"month"+(1===t?"":"s")},w:function(t){return"week"+(1===t?"":"s")},d:function(t){return"day"+(1===t?"":"s")},h:function(t){return"hour"+(1===t?"":"s")},m:function(t){return"minute"+(1===t?"":"s")},s:function(t){return"second"+(1===t?"":"s")},ms:function(t){return"millisecond"+(1===t?"":"s")},decimal:"."},es:{y:function(t){return"año"+(1===t?"":"s")},mo:function(t){return"mes"+(1===t?"":"es")},w:function(t){return"semana"+(1===t?"":"s")},d:function(t){return"día"+(1===t?"":"s")},h:function(t){return"hora"+(1===t?"":"s")},m:function(t){return"minuto"+(1===t?"":"s")},s:function(t){return"segundo"+(1===t?"":"s")},ms:function(t){return"milisegundo"+(1===t?"":"s")},decimal:","},et:{y:function(t){return"aasta"+(1===t?"":"t")},mo:function(t){return"kuu"+(1===t?"":"d")},w:function(t){return"nädal"+(1===t?"":"at")},d:function(t){return"päev"+(1===t?"":"a")},h:function(t){return"tund"+(1===t?"":"i")},m:function(t){return"minut"+(1===t?"":"it")},s:function(t){return"sekund"+(1===t?"":"it")},ms:function(t){return"millisekund"+(1===t?"":"it")},decimal:","},fa:{y:function(){return"سال"},mo:function(){return"ماه"},w:function(){return"هفته"},d:function(){return"روز"},h:function(){return"ساعت"},m:function(){return"دقیقه"},s:function(){return"ثانیه"},ms:function(){return"میلی ثانیه"},decimal:"."},fi:{y:function(t){return 1===t?"vuosi":"vuotta"},mo:function(t){return 1===t?"kuukausi":"kuukautta"},w:function(t){return"viikko"+(1===t?"":"a")},d:function(t){return"päivä"+(1===t?"":"ä")},h:function(t){return"tunti"+(1===t?"":"a")},m:function(t){return"minuutti"+(1===t?"":"a")},s:function(t){return"sekunti"+(1===t?"":"a")},ms:function(t){return"millisekunti"+(1===t?"":"a")},decimal:","},fo:{y:function(){return"ár"},mo:function(t){return 1===t?"mánaður":"mánaðir"},w:function(t){return 1===t?"vika":"vikur"},d:function(t){return 1===t?"dagur":"dagar"},h:function(t){return 1===t?"tími":"tímar"},m:function(t){return 1===t?"minuttur":"minuttir"},s:function(){return"sekund"},ms:function(){return"millisekund"},decimal:","},fr:{y:function(t){return"an"+(t>=2?"s":"")},mo:function(){return"mois"},w:function(t){return"semaine"+(t>=2?"s":"")},d:function(t){return"jour"+(t>=2?"s":"")},h:function(t){return"heure"+(t>=2?"s":"")},m:function(t){return"minute"+(t>=2?"s":"")},s:function(t){return"seconde"+(t>=2?"s":"")},ms:function(t){return"milliseconde"+(t>=2?"s":"")},decimal:","},hr:{y:function(t){return t%10==2||t%10==3||t%10==4?"godine":"godina"},mo:function(t){return 1===t?"mjesec":2===t||3===t||4===t?"mjeseca":"mjeseci"},w:function(t){return t%10==1&&11!==t?"tjedan":"tjedna"},d:function(t){return 1===t?"dan":"dana"},h:function(t){return 1===t?"sat":2===t||3===t||4===t?"sata":"sati"},m:function(t){var e=t%10;return 2!==e&&3!==e&&4!==e||!(t<10||t>14)?"minuta":"minute"},s:function(t){return 10===t||11===t||12===t||13===t||14===t||16===t||17===t||18===t||19===t||t%10==5?"sekundi":t%10==1?"sekunda":t%10==2||t%10==3||t%10==4?"sekunde":"sekundi"},ms:function(t){return 1===t?"milisekunda":t%10==2||t%10==3||t%10==4?"milisekunde":"milisekundi"},decimal:","},hu:{y:function(){return"év"},mo:function(){return"hónap"},w:function(){return"hét"},d:function(){return"nap"},h:function(){return"óra"},m:function(){return"perc"},s:function(){return"másodperc"},ms:function(){return"ezredmásodperc"},decimal:","},id:{y:function(){return"tahun"},mo:function(){return"bulan"},w:function(){return"minggu"},d:function(){return"hari"},h:function(){return"jam"},m:function(){return"menit"},s:function(){return"detik"},ms:function(){return"milidetik"},decimal:"."},is:{y:function(){return"ár"},mo:function(t){return"mánuð"+(1===t?"ur":"ir")},w:function(t){return"vik"+(1===t?"a":"ur")},d:function(t){return"dag"+(1===t?"ur":"ar")},h:function(t){return"klukkutím"+(1===t?"i":"ar")},m:function(t){return"mínút"+(1===t?"a":"ur")},s:function(t){return"sekúnd"+(1===t?"a":"ur")},ms:function(t){return"millisekúnd"+(1===t?"a":"ur")},decimal:"."},it:{y:function(t){return"ann"+(1===t?"o":"i")},mo:function(t){return"mes"+(1===t?"e":"i")},w:function(t){return"settiman"+(1===t?"a":"e")},d:function(t){return"giorn"+(1===t?"o":"i")},h:function(t){return"or"+(1===t?"a":"e")},m:function(t){return"minut"+(1===t?"o":"i")},s:function(t){return"second"+(1===t?"o":"i")},ms:function(t){return"millisecond"+(1===t?"o":"i")},decimal:","},ja:{y:function(){return"年"},mo:function(){return"月"},w:function(){return"週"},d:function(){return"日"},h:function(){return"時間"},m:function(){return"分"},s:function(){return"秒"},ms:function(){return"ミリ秒"},decimal:"."},ko:{y:function(){return"년"},mo:function(){return"개월"},w:function(){return"주일"},d:function(){return"일"},h:function(){return"시간"},m:function(){return"분"},s:function(){return"초"},ms:function(){return"밀리 초"},decimal:"."},lo:{y:function(){return"ປີ"},mo:function(){return"ເດືອນ"},w:function(){return"ອາທິດ"},d:function(){return"ມື້"},h:function(){return"ຊົ່ວໂມງ"},m:function(){return"ນາທີ"},s:function(){return"ວິນາທີ"},ms:function(){return"ມິນລິວິນາທີ"},decimal:","},lt:{y:function(t){return t%10==0||t%100>=10&&t%100<=20?"metų":"metai"},mo:function(e){return["mėnuo","mėnesiai","mėnesių"][t.getLithuanianForm(e)]},w:function(e){return["savaitė","savaitės","savaičių"][t.getLithuanianForm(e)]},d:function(e){return["diena","dienos","dienų"][t.getLithuanianForm(e)]},h:function(e){return["valanda","valandos","valandų"][t.getLithuanianForm(e)]},m:function(e){return["minutė","minutės","minučių"][t.getLithuanianForm(e)]},s:function(e){return["sekundė","sekundės","sekundžių"][t.getLithuanianForm(e)]},ms:function(e){return["milisekundė","milisekundės","milisekundžių"][t.getLithuanianForm(e)]},decimal:","},lv:{y:function(e){return["gads","gadi"][t.getLatvianForm(e)]},mo:function(e){return["mēnesis","mēneši"][t.getLatvianForm(e)]},w:function(e){return["nedēļa","nedēļas"][t.getLatvianForm(e)]},d:function(e){return["diena","dienas"][t.getLatvianForm(e)]},h:function(e){return["stunda","stundas"][t.getLatvianForm(e)]},m:function(e){return["minūte","minūtes"][t.getLatvianForm(e)]},s:function(e){return["sekunde","sekundes"][t.getLatvianForm(e)]},ms:function(e){return["milisekunde","milisekundes"][t.getLatvianForm(e)]},decimal:","},ms:{y:function(){return"tahun"},mo:function(){return"bulan"},w:function(){return"minggu"},d:function(){return"hari"},h:function(){return"jam"},m:function(){return"minit"},s:function(){return"saat"},ms:function(){return"milisaat"},decimal:"."},nl:{y:function(){return"jaar"},mo:function(t){return 1===t?"maand":"maanden"},w:function(t){return 1===t?"week":"weken"},d:function(t){return 1===t?"dag":"dagen"},h:function(){return"uur"},m:function(t){return 1===t?"minuut":"minuten"},s:function(t){return 1===t?"seconde":"seconden"},ms:function(t){return 1===t?"milliseconde":"milliseconden"},decimal:","},no:{y:function(){return"år"},mo:function(t){return"måned"+(1===t?"":"er")},w:function(t){return"uke"+(1===t?"":"r")},d:function(t){return"dag"+(1===t?"":"er")},h:function(t){return"time"+(1===t?"":"r")},m:function(t){return"minutt"+(1===t?"":"er")},s:function(t){return"sekund"+(1===t?"":"er")},ms:function(t){return"millisekund"+(1===t?"":"er")},decimal:","},pl:{y:function(e){return["rok","roku","lata","lat"][t.getPolishForm(e)]},mo:function(e){return["miesiąc","miesiąca","miesiące","miesięcy"][t.getPolishForm(e)]},w:function(e){return["tydzień","tygodnia","tygodnie","tygodni"][t.getPolishForm(e)]},d:function(e){return["dzień","dnia","dni","dni"][t.getPolishForm(e)]},h:function(e){return["godzina","godziny","godziny","godzin"][t.getPolishForm(e)]},m:function(e){return["minuta","minuty","minuty","minut"][t.getPolishForm(e)]},s:function(e){return["sekunda","sekundy","sekundy","sekund"][t.getPolishForm(e)]},ms:function(e){return["milisekunda","milisekundy","milisekundy","milisekund"][t.getPolishForm(e)]},decimal:","},pt:{y:function(t){return"ano"+(1===t?"":"s")},mo:function(t){return 1===t?"mês":"meses"},w:function(t){return"semana"+(1===t?"":"s")},d:function(t){return"dia"+(1===t?"":"s")},h:function(t){return"hora"+(1===t?"":"s")},m:function(t){return"minuto"+(1===t?"":"s")},s:function(t){return"segundo"+(1===t?"":"s")},ms:function(t){return"milissegundo"+(1===t?"":"s")},decimal:","},ro:{y:function(t){return 1===t?"an":"ani"},mo:function(t){return 1===t?"lună":"luni"},w:function(t){return 1===t?"săptămână":"săptămâni"},d:function(t){return 1===t?"zi":"zile"},h:function(t){return 1===t?"oră":"ore"},m:function(t){return 1===t?"minut":"minute"},s:function(t){return 1===t?"secundă":"secunde"},ms:function(t){return 1===t?"milisecundă":"milisecunde"},decimal:","},ru:{y:function(e){return["лет","год","года"][t.getSlavicForm(e)]},mo:function(e){return["месяцев","месяц","месяца"][t.getSlavicForm(e)]},w:function(e){return["недель","неделя","недели"][t.getSlavicForm(e)]},d:function(e){return["дней","день","дня"][t.getSlavicForm(e)]},h:function(e){return["часов","час","часа"][t.getSlavicForm(e)]},m:function(e){return["минут","минута","минуты"][t.getSlavicForm(e)]},s:function(e){return["секунд","секунда","секунды"][t.getSlavicForm(e)]},ms:function(e){return["миллисекунд","миллисекунда","миллисекунды"][t.getSlavicForm(e)]},decimal:","},uk:{y:function(e){return["років","рік","роки"][t.getSlavicForm(e)]},mo:function(e){return["місяців","місяць","місяці"][t.getSlavicForm(e)]},w:function(e){return["тижнів","тиждень","тижні"][t.getSlavicForm(e)]},d:function(e){return["днів","день","дні"][t.getSlavicForm(e)]},h:function(e){return["годин","година","години"][t.getSlavicForm(e)]},m:function(e){return["хвилин","хвилина","хвилини"][t.getSlavicForm(e)]},s:function(e){return["секунд","секунда","секунди"][t.getSlavicForm(e)]},ms:function(e){return["мілісекунд","мілісекунда","мілісекунди"][t.getSlavicForm(e)]},decimal:","},ur:{y:function(){return"سال"},mo:function(t){return 1===t?"مہینہ":"مہینے"},w:function(t){return 1===t?"ہفتہ":"ہفتے"},d:function(){return"دن"},h:function(t){return 1===t?"گھنٹہ":"گھنٹے"},m:function(){return"منٹ"},s:function(){return"سیکنڈ"},ms:function(){return"ملی سیکنڈ"},decimal:"."},sk:{y:function(e){return["rok","roky","roky","rokov"][t.getCzechOrSlovakForm(e)]},mo:function(e){return["mesiac","mesiace","mesiace","mesiacov"][t.getCzechOrSlovakForm(e)]},w:function(e){return["týždeň","týždne","týždne","týždňov"][t.getCzechOrSlovakForm(e)]},d:function(e){return["deň","dni","dni","dní"][t.getCzechOrSlovakForm(e)]},h:function(e){return["hodina","hodiny","hodiny","hodín"][t.getCzechOrSlovakForm(e)]},m:function(e){return["minúta","minúty","minúty","minút"][t.getCzechOrSlovakForm(e)]},s:function(e){return["sekunda","sekundy","sekundy","sekúnd"][t.getCzechOrSlovakForm(e)]},ms:function(e){return["milisekunda","milisekundy","milisekundy","milisekúnd"][t.getCzechOrSlovakForm(e)]},decimal:","},sv:{y:function(){return"år"},mo:function(t){return"månad"+(1===t?"":"er")},w:function(t){return"veck"+(1===t?"a":"or")},d:function(t){return"dag"+(1===t?"":"ar")},h:function(t){return"timm"+(1===t?"e":"ar")},m:function(t){return"minut"+(1===t?"":"er")},s:function(t){return"sekund"+(1===t?"":"er")},ms:function(t){return"millisekund"+(1===t?"":"er")},decimal:","},tr:{y:function(){return"yıl"},mo:function(){return"ay"},w:function(){return"hafta"},d:function(){return"gün"},h:function(){return"saat"},m:function(){return"dakika"},s:function(){return"saniye"},ms:function(){return"milisaniye"},decimal:","},th:{y:function(){return"ปี"},mo:function(){return"เดือน"},w:function(){return"อาทิตย์"},d:function(){return"วัน"},h:function(){return"ชั่วโมง"},m:function(){return"นาที"},s:function(){return"วินาที"},ms:function(){return"มิลลิวินาที"},decimal:"."},vi:{y:function(){return"năm"},mo:function(){return"tháng"},w:function(){return"tuần"},d:function(){return"ngày"},h:function(){return"giờ"},m:function(){return"phút"},s:function(){return"giây"},ms:function(){return"mili giây"},decimal:","},zh_CN:{y:function(){return"年"},mo:function(){return"个月"},w:function(){return"周"},d:function(){return"天"},h:function(){return"小时"},m:function(){return"分钟"},s:function(){return"秒"},ms:function(){return"毫秒"},decimal:"."},zh_TW:{y:function(){return"年"},mo:function(){return"個月"},w:function(){return"周"},d:function(){return"天"},h:function(){return"小時"},m:function(){return"分鐘"},s:function(){return"秒"},ms:function(){return"毫秒"},decimal:"."}}}return t.prototype.addLanguage=function(t,e){this.languages[t]=e},t.prototype.getCzechForm=function(t){return 1===t?0:Math.floor(t)!==t?1:t%10>=2&&t%10<=4&&t%100<10?2:3},t.prototype.getPolishForm=function(t){return 1===t?0:Math.floor(t)!==t?1:t%10>=2&&t%10<=4&&!(t%100>10&&t%100<20)?2:3},t.prototype.getSlavicForm=function(t){return Math.floor(t)!==t?2:t>=5&&t<=20||t%10>=5&&t%10<=9||t%10==0?0:t%10==1?1:t>1?2:0},t.prototype.getLithuanianForm=function(t){return 1===t||t%10==1&&t%100>20?0:Math.floor(t)!==t||t%10>=2&&t%100>20||t%10>=2&&t%100<10?1:2},t.prototype.getArabicForm=function(t){return t<=2?0:t>2&&t<11?1:0},t.prototype.getCzechOrSlovakForm=function(t){return 1===t?0:Math.floor(t)!==t?1:t%10>=2&&t%10<=4&&t%100<10?2:3},t.prototype.getLatvianForm=function(t){return 1===t||t%10==1&&t%100!=11?0:1},t}(),ge=function(){function t(t){this.languageUtil=t,this.defaultOptions={language:"en",delimiter:", ",spacer:" ",conjunction:"",serialComma:!0,units:["y","mo","w","d","h","m","s"],languages:{},largest:10,decimal:".",round:!1,unitMeasures:{y:315576e5,mo:26298e5,w:6048e5,d:864e5,h:36e5,m:6e4,s:1e3,ms:1}},this.options=void 0,this.options=this.defaultOptions}return t.prototype.humanize=function(t,e){var i=void 0!==e?this.extend(this.options,e):this.defaultOptions;return this.doHumanization(t,i)},t.prototype.setOptions=function(t){this.options=void 0!==t?this.extend(this.defaultOptions,t):this.defaultOptions},t.prototype.getSupportedLanguages=function(){var t=[];for(var e in this.languageUtil.languages)this.languageUtil.languages.hasOwnProperty(e)&&t.push(e);return t},t.prototype.addLanguage=function(t,e){this.languageUtil.addLanguage(t,e)},t.prototype.doHumanization=function(t,e){var i,n,o;t=Math.abs(t);var r=e.languages[e.language]||this.languageUtil.languages[e.language];if(!r)throw new Error("No language "+r+".");var s,a,l,c=[];for(i=0,n=e.units.length;i<n;i++)s=e.units[i],a=e.unitMeasures[s],l=i+1===n?t/a:Math.floor(t/a),c.push({unitCount:l,unitName:s}),t-=l*a;var h=0;for(i=0;i<c.length;i++)if(c[i].unitCount){h=i;break}if(e.round){var u=void 0,d=void 0;for(i=c.length-1;i>=0&&((o=c[i]).unitCount=Math.round(o.unitCount),0!==i);i--)d=c[i-1],u=e.unitMeasures[d.unitName]/e.unitMeasures[o.unitName],(o.unitCount%u==0||e.largest&&e.largest-1<i-h)&&(d.unitCount+=o.unitCount/u,o.unitCount=0)}var p=[];for(i=0,c.length;i<n&&((o=c[i]).unitCount&&p.push(this.render(o.unitCount,o.unitName,r,e)),p.length!==e.largest);i++);return p.length?e.conjunction&&1!==p.length?2===p.length?p.join(e.conjunction):p.length>2?p.slice(0,-1).join(e.delimiter)+(e.serialComma?",":"")+e.conjunction+p.slice(-1):void 0:p.join(e.delimiter):this.render(0,e.units[e.units.length-1],r,e)},t.prototype.render=function(t,e,i,n){var o;o=void 0===n.decimal?i.decimal:n.decimal;var r=t.toString().replace(".",o.toString()),s=i[e](t);return r+n.spacer+s},t.prototype.extend=function(t,e){for(var i in e)t.hasOwnProperty(i)&&(t[i]=e[i]);return t},t}();class ve extends Error{}class ye extends ve{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}}class be extends ve{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}}class _e extends ve{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}}class xe extends ve{}class we extends ve{constructor(t){super(`Invalid unit ${t}`)}}class ke extends ve{}class Ce extends ve{constructor(){super("Zone is an abstract class")}}const Se="numeric",Ee="short",Te="long",Me={year:Se,month:Se,day:Se},De={year:Se,month:Ee,day:Se},$e={year:Se,month:Ee,day:Se,weekday:Ee},Ae={year:Se,month:Te,day:Se},Le={year:Se,month:Te,day:Se,weekday:Te},Oe={hour:Se,minute:Se},Pe={hour:Se,minute:Se,second:Se},Ie={hour:Se,minute:Se,second:Se,timeZoneName:Ee},Ne={hour:Se,minute:Se,second:Se,timeZoneName:Te},ze={hour:Se,minute:Se,hourCycle:"h23"},Re={hour:Se,minute:Se,second:Se,hourCycle:"h23"},Be={hour:Se,minute:Se,second:Se,hourCycle:"h23",timeZoneName:Ee},Fe={hour:Se,minute:Se,second:Se,hourCycle:"h23",timeZoneName:Te},qe={year:Se,month:Se,day:Se,hour:Se,minute:Se},je={year:Se,month:Se,day:Se,hour:Se,minute:Se,second:Se},Ze={year:Se,month:Ee,day:Se,hour:Se,minute:Se},He={year:Se,month:Ee,day:Se,hour:Se,minute:Se,second:Se},Ue={year:Se,month:Ee,day:Se,weekday:Ee,hour:Se,minute:Se},Ve={year:Se,month:Te,day:Se,hour:Se,minute:Se,timeZoneName:Ee},We={year:Se,month:Te,day:Se,hour:Se,minute:Se,second:Se,timeZoneName:Ee},Ge={year:Se,month:Te,day:Se,weekday:Te,hour:Se,minute:Se,timeZoneName:Te},Ye={year:Se,month:Te,day:Se,weekday:Te,hour:Se,minute:Se,second:Se,timeZoneName:Te};function Ke(t){return void 0===t}function Je(t){return"number"==typeof t}function Xe(t){return"number"==typeof t&&t%1==0}function Qe(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(t){return!1}}function ti(t,e,i){if(0!==t.length)return t.reduce(((t,n)=>{const o=[e(n),n];return t&&i(t[0],o[0])===t[0]?t:o}),null)[1]}function ei(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function ii(t,e,i){return Xe(t)&&t>=e&&t<=i}function ni(t,e=2){let i;return i=t<0?"-"+(""+-t).padStart(e,"0"):(""+t).padStart(e,"0"),i}function oi(t){return Ke(t)||null===t||""===t?void 0:parseInt(t,10)}function ri(t){return Ke(t)||null===t||""===t?void 0:parseFloat(t)}function si(t){if(!Ke(t)&&null!==t&&""!==t){const e=1e3*parseFloat("0."+t);return Math.floor(e)}}function ai(t,e,i=!1){const n=10**e;return(i?Math.trunc:Math.round)(t*n)/n}function li(t){return t%4==0&&(t%100!=0||t%400==0)}function ci(t){return li(t)?366:365}function hi(t,e){const i=function(t,e){return t-e*Math.floor(t/e)}(e-1,12)+1;return 2===i?li(t+(e-i)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][i-1]}function ui(t){let e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e),e.setUTCFullYear(e.getUTCFullYear()-1900)),+e}function di(t){const e=(t+Math.floor(t/4)-Math.floor(t/100)+Math.floor(t/400))%7,i=t-1,n=(i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400))%7;return 4===e||3===n?53:52}function pi(t){return t>99?t:t>60?1900+t:2e3+t}function mi(t,e,i,n=null){const o=new Date(t),r={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};n&&(r.timeZone=n);const s={timeZoneName:e,...r},a=new Intl.DateTimeFormat(i,s).formatToParts(o).find((t=>"timezonename"===t.type.toLowerCase()));return a?a.value:null}function fi(t,e){let i=parseInt(t,10);Number.isNaN(i)&&(i=0);const n=parseInt(e,10)||0;return 60*i+(i<0||Object.is(i,-0)?-n:n)}function gi(t){const e=Number(t);if("boolean"==typeof t||""===t||Number.isNaN(e))throw new ke(`Invalid unit value ${t}`);return e}function vi(t,e){const i={};for(const n in t)if(ei(t,n)){const o=t[n];if(null==o)continue;i[e(n)]=gi(o)}return i}function yi(t,e){const i=Math.trunc(Math.abs(t/60)),n=Math.trunc(Math.abs(t%60)),o=t>=0?"+":"-";switch(e){case"short":return`${o}${ni(i,2)}:${ni(n,2)}`;case"narrow":return`${o}${i}${n>0?`:${n}`:""}`;case"techie":return`${o}${ni(i,2)}${ni(n,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function bi(t){return function(t,e){return e.reduce(((e,i)=>(e[i]=t[i],e)),{})}(t,["hour","minute","second","millisecond"])}const _i=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/,xi=["January","February","March","April","May","June","July","August","September","October","November","December"],wi=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],ki=["J","F","M","A","M","J","J","A","S","O","N","D"];function Ci(t){switch(t){case"narrow":return[...ki];case"short":return[...wi];case"long":return[...xi];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const Si=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Ei=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Ti=["M","T","W","T","F","S","S"];function Mi(t){switch(t){case"narrow":return[...Ti];case"short":return[...Ei];case"long":return[...Si];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const Di=["AM","PM"],$i=["Before Christ","Anno Domini"],Ai=["BC","AD"],Li=["B","A"];function Oi(t){switch(t){case"narrow":return[...Li];case"short":return[...Ai];case"long":return[...$i];default:return null}}function Pi(t,e){let i="";for(const n of t)n.literal?i+=n.val:i+=e(n.val);return i}const Ii={D:Me,DD:De,DDD:Ae,DDDD:Le,t:Oe,tt:Pe,ttt:Ie,tttt:Ne,T:ze,TT:Re,TTT:Be,TTTT:Fe,f:qe,ff:Ze,fff:Ve,ffff:Ge,F:je,FF:He,FFF:We,FFFF:Ye};class Ni{static create(t,e={}){return new Ni(t,e)}static parseFormat(t){let e=null,i="",n=!1;const o=[];for(let r=0;r<t.length;r++){const s=t.charAt(r);"'"===s?(i.length>0&&o.push({literal:n,val:i}),e=null,i="",n=!n):n||s===e?i+=s:(i.length>0&&o.push({literal:!1,val:i}),i=s,e=s)}return i.length>0&&o.push({literal:n,val:i}),o}static macroTokenToFormatOpts(t){return Ii[t]}constructor(t,e){this.opts=e,this.loc=t,this.systemLoc=null}formatWithSystemDefault(t,e){null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem());return this.systemLoc.dtFormatter(t,{...this.opts,...e}).format()}formatDateTime(t,e={}){return this.loc.dtFormatter(t,{...this.opts,...e}).format()}formatDateTimeParts(t,e={}){return this.loc.dtFormatter(t,{...this.opts,...e}).formatToParts()}resolvedOptions(t,e={}){return this.loc.dtFormatter(t,{...this.opts,...e}).resolvedOptions()}num(t,e=0){if(this.opts.forceSimple)return ni(t,e);const i={...this.opts};return e>0&&(i.padTo=e),this.loc.numberFormatter(i).format(t)}formatDateTimeFromString(t,e){const i="en"===this.loc.listingMode(),n=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,o=(e,i)=>this.loc.extract(t,e,i),r=e=>t.isOffsetFixed&&0===t.offset&&e.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,e.format):"",s=()=>i?function(t){return Di[t.hour<12?0:1]}(t):o({hour:"numeric",hourCycle:"h12"},"dayperiod"),a=(e,n)=>i?function(t,e){return Ci(e)[t.month-1]}(t,e):o(n?{month:e}:{month:e,day:"numeric"},"month"),l=(e,n)=>i?function(t,e){return Mi(e)[t.weekday-1]}(t,e):o(n?{weekday:e}:{weekday:e,month:"long",day:"numeric"},"weekday"),c=e=>{const i=Ni.macroTokenToFormatOpts(e);return i?this.formatWithSystemDefault(t,i):e},h=e=>i?function(t,e){return Oi(e)[t.year<0?0:1]}(t,e):o({era:e},"era");return Pi(Ni.parseFormat(e),(e=>{switch(e){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"uu":return this.num(Math.floor(t.millisecond/10),2);case"uuu":return this.num(Math.floor(t.millisecond/100));case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12==0?12:t.hour%12);case"hh":return this.num(t.hour%12==0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return r({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return r({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return r({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return s();case"d":return n?o({day:"numeric"},"day"):this.num(t.day);case"dd":return n?o({day:"2-digit"},"day"):this.num(t.day,2);case"c":case"E":return this.num(t.weekday);case"ccc":return l("short",!0);case"cccc":return l("long",!0);case"ccccc":return l("narrow",!0);case"EEE":return l("short",!1);case"EEEE":return l("long",!1);case"EEEEE":return l("narrow",!1);case"L":return n?o({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return n?o({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return a("short",!0);case"LLLL":return a("long",!0);case"LLLLL":return a("narrow",!0);case"M":return n?o({month:"numeric"},"month"):this.num(t.month);case"MM":return n?o({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return a("short",!1);case"MMMM":return a("long",!1);case"MMMMM":return a("narrow",!1);case"y":return n?o({year:"numeric"},"year"):this.num(t.year);case"yy":return n?o({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return n?o({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return n?o({year:"numeric"},"year"):this.num(t.year,6);case"G":return h("short");case"GG":return h("long");case"GGGGG":return h("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);case"WW":return this.num(t.weekNumber,2);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return c(e)}}))}formatDurationFromString(t,e){const i=t=>{switch(t[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},n=Ni.parseFormat(e),o=n.reduce(((t,{literal:e,val:i})=>e?t:t.concat(i)),[]),r=t.shiftTo(...o.map(i).filter((t=>t)));return Pi(n,(t=>e=>{const n=i(e);return n?this.num(t.get(n),e.length):e})(r))}}class zi{constructor(t,e){this.reason=t,this.explanation=e}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}class Ri{get type(){throw new Ce}get name(){throw new Ce}get ianaName(){return this.name}get isUniversal(){throw new Ce}offsetName(t,e){throw new Ce}formatOffset(t,e){throw new Ce}offset(t){throw new Ce}equals(t){throw new Ce}get isValid(){throw new Ce}}let Bi=null;class Fi extends Ri{static get instance(){return null===Bi&&(Bi=new Fi),Bi}get type(){return"system"}get name(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:e,locale:i}){return mi(t,e,i)}formatOffset(t,e){return yi(this.offset(t),e)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return"system"===t.type}get isValid(){return!0}}let qi={};const ji={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};let Zi={};class Hi extends Ri{static create(t){return Zi[t]||(Zi[t]=new Hi(t)),Zi[t]}static resetCache(){Zi={},qi={}}static isValidSpecifier(t){return this.isValidZone(t)}static isValidZone(t){if(!t)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:t}).format(),!0}catch(t){return!1}}constructor(t){super(),this.zoneName=t,this.valid=Hi.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(t,{format:e,locale:i}){return mi(t,e,i,this.name)}formatOffset(t,e){return yi(this.offset(t),e)}offset(t){const e=new Date(t);if(isNaN(e))return NaN;const i=(n=this.name,qi[n]||(qi[n]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:n,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),qi[n]);var n;let[o,r,s,a,l,c,h]=i.formatToParts?function(t,e){const i=t.formatToParts(e),n=[];for(let t=0;t<i.length;t++){const{type:e,value:o}=i[t],r=ji[e];"era"===e?n[r]=o:Ke(r)||(n[r]=parseInt(o,10))}return n}(i,e):function(t,e){const i=t.format(e).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(i),[,o,r,s,a,l,c,h]=n;return[s,o,r,a,l,c,h]}(i,e);"BC"===a&&(o=1-Math.abs(o));let u=+e;const d=u%1e3;return u-=d>=0?d:1e3+d,(ui({year:o,month:r,day:s,hour:24===l?0:l,minute:c,second:h,millisecond:0})-u)/6e4}equals(t){return"iana"===t.type&&t.name===this.name}get isValid(){return this.valid}}let Ui=null;class Vi extends Ri{static get utcInstance(){return null===Ui&&(Ui=new Vi(0)),Ui}static instance(t){return 0===t?Vi.utcInstance:new Vi(t)}static parseSpecifier(t){if(t){const e=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(e)return new Vi(fi(e[1],e[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return 0===this.fixed?"UTC":`UTC${yi(this.fixed,"narrow")}`}get ianaName(){return 0===this.fixed?"Etc/UTC":`Etc/GMT${yi(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,e){return yi(this.fixed,e)}get isUniversal(){return!0}offset(){return this.fixed}equals(t){return"fixed"===t.type&&t.fixed===this.fixed}get isValid(){return!0}}class Wi extends Ri{constructor(t){super(),this.zoneName=t}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function Gi(t,e){if(Ke(t)||null===t)return e;if(t instanceof Ri)return t;if(function(t){return"string"==typeof t}(t)){const i=t.toLowerCase();return"local"===i||"system"===i?e:"utc"===i||"gmt"===i?Vi.utcInstance:Vi.parseSpecifier(i)||Hi.create(t)}return Je(t)?Vi.instance(t):"object"==typeof t&&t.offset&&"number"==typeof t.offset?t:new Wi(t)}let Yi,Ki=()=>Date.now(),Ji="system",Xi=null,Qi=null,tn=null;class en{static get now(){return Ki}static set now(t){Ki=t}static set defaultZone(t){Ji=t}static get defaultZone(){return Gi(Ji,Fi.instance)}static get defaultLocale(){return Xi}static set defaultLocale(t){Xi=t}static get defaultNumberingSystem(){return Qi}static set defaultNumberingSystem(t){Qi=t}static get defaultOutputCalendar(){return tn}static set defaultOutputCalendar(t){tn=t}static get throwOnInvalid(){return Yi}static set throwOnInvalid(t){Yi=t}static resetCaches(){pn.resetCache(),Hi.resetCache()}}let nn={};let on={};function rn(t,e={}){const i=JSON.stringify([t,e]);let n=on[i];return n||(n=new Intl.DateTimeFormat(t,e),on[i]=n),n}let sn={};let an={};let ln=null;function cn(t,e,i,n,o){const r=t.listingMode(i);return"error"===r?null:"en"===r?n(e):o(e)}class hn{constructor(t,e,i){this.padTo=i.padTo||0,this.floor=i.floor||!1;const{padTo:n,floor:o,...r}=i;if(!e||Object.keys(r).length>0){const e={useGrouping:!1,...i};i.padTo>0&&(e.minimumIntegerDigits=i.padTo),this.inf=function(t,e={}){const i=JSON.stringify([t,e]);let n=sn[i];return n||(n=new Intl.NumberFormat(t,e),sn[i]=n),n}(t,e)}}format(t){if(this.inf){const e=this.floor?Math.floor(t):t;return this.inf.format(e)}return ni(this.floor?Math.floor(t):ai(t,3),this.padTo)}}class un{constructor(t,e,i){let n;if(this.opts=i,t.zone.isUniversal){const e=t.offset/60*-1,o=e>=0?`Etc/GMT+${e}`:`Etc/GMT${e}`;0!==t.offset&&Hi.create(o).valid?(n=o,this.dt=t):(n="UTC",i.timeZoneName?this.dt=t:this.dt=0===t.offset?t:hr.fromMillis(t.ts+60*t.offset*1e3))}else"system"===t.zone.type?this.dt=t:(this.dt=t,n=t.zone.name);const o={...this.opts};n&&(o.timeZone=n),this.dtf=rn(e,o)}format(){return this.dtf.format(this.dt.toJSDate())}formatToParts(){return this.dtf.formatToParts(this.dt.toJSDate())}resolvedOptions(){return this.dtf.resolvedOptions()}}class dn{constructor(t,e,i){this.opts={style:"long",...i},!e&&Qe()&&(this.rtf=function(t,e={}){const{base:i,...n}=e,o=JSON.stringify([t,n]);let r=an[o];return r||(r=new Intl.RelativeTimeFormat(t,e),an[o]=r),r}(t,i))}format(t,e){return this.rtf?this.rtf.format(t,e):function(t,e,i="always",n=!1){const o={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},r=-1===["hours","minutes","seconds"].indexOf(t);if("auto"===i&&r){const i="days"===t;switch(e){case 1:return i?"tomorrow":`next ${o[t][0]}`;case-1:return i?"yesterday":`last ${o[t][0]}`;case 0:return i?"today":`this ${o[t][0]}`}}const s=Object.is(e,-0)||e<0,a=Math.abs(e),l=1===a,c=o[t],h=n?l?c[1]:c[2]||c[1]:l?o[t][0]:t;return s?`${a} ${h} ago`:`in ${a} ${h}`}(e,t,this.opts.numeric,"long"!==this.opts.style)}formatToParts(t,e){return this.rtf?this.rtf.formatToParts(t,e):[]}}class pn{static fromOpts(t){return pn.create(t.locale,t.numberingSystem,t.outputCalendar,t.defaultToEN)}static create(t,e,i,n=!1){const o=t||en.defaultLocale,r=o||(n?"en-US":ln||(ln=(new Intl.DateTimeFormat).resolvedOptions().locale,ln)),s=e||en.defaultNumberingSystem,a=i||en.defaultOutputCalendar;return new pn(r,s,a,o)}static resetCache(){ln=null,on={},sn={},an={}}static fromObject({locale:t,numberingSystem:e,outputCalendar:i}={}){return pn.create(t,e,i)}constructor(t,e,i,n){const[o,r,s]=function(t){const e=t.indexOf("-u-");if(-1===e)return[t];{let i;const n=t.substring(0,e);try{i=rn(t).resolvedOptions()}catch(t){i=rn(n).resolvedOptions()}const{numberingSystem:o,calendar:r}=i;return[n,o,r]}}(t);this.locale=o,this.numberingSystem=e||r||null,this.outputCalendar=i||s||null,this.intl=function(t,e,i){return i||e?(t+="-u",i&&(t+=`-ca-${i}`),e&&(t+=`-nu-${e}`),t):t}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=n,this.fastNumbersCached=null}get fastNumbers(){var t;return null==this.fastNumbersCached&&(this.fastNumbersCached=(!(t=this).numberingSystem||"latn"===t.numberingSystem)&&("latn"===t.numberingSystem||!t.locale||t.locale.startsWith("en")||"latn"===new Intl.DateTimeFormat(t.intl).resolvedOptions().numberingSystem)),this.fastNumbersCached}listingMode(){const t=this.isEnglish(),e=!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar);return t&&e?"en":"intl"}clone(t){return t&&0!==Object.getOwnPropertyNames(t).length?pn.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,t.defaultToEN||!1):this}redefaultToEN(t={}){return this.clone({...t,defaultToEN:!0})}redefaultToSystem(t={}){return this.clone({...t,defaultToEN:!1})}months(t,e=!1,i=!0){return cn(this,t,i,Ci,(()=>{const i=e?{month:t,day:"numeric"}:{month:t},n=e?"format":"standalone";return this.monthsCache[n][t]||(this.monthsCache[n][t]=function(t){const e=[];for(let i=1;i<=12;i++){const n=hr.utc(2016,i,1);e.push(t(n))}return e}((t=>this.extract(t,i,"month")))),this.monthsCache[n][t]}))}weekdays(t,e=!1,i=!0){return cn(this,t,i,Mi,(()=>{const i=e?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},n=e?"format":"standalone";return this.weekdaysCache[n][t]||(this.weekdaysCache[n][t]=function(t){const e=[];for(let i=1;i<=7;i++){const n=hr.utc(2016,11,13+i);e.push(t(n))}return e}((t=>this.extract(t,i,"weekday")))),this.weekdaysCache[n][t]}))}meridiems(t=!0){return cn(this,void 0,t,(()=>Di),(()=>{if(!this.meridiemCache){const t={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[hr.utc(2016,11,13,9),hr.utc(2016,11,13,19)].map((e=>this.extract(e,t,"dayperiod")))}return this.meridiemCache}))}eras(t,e=!0){return cn(this,t,e,Oi,(()=>{const e={era:t};return this.eraCache[t]||(this.eraCache[t]=[hr.utc(-40,1,1),hr.utc(2017,1,1)].map((t=>this.extract(t,e,"era")))),this.eraCache[t]}))}extract(t,e,i){const n=this.dtFormatter(t,e).formatToParts().find((t=>t.type.toLowerCase()===i));return n?n.value:null}numberFormatter(t={}){return new hn(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,e={}){return new un(t,this.intl,e)}relFormatter(t={}){return new dn(this.intl,this.isEnglish(),t)}listFormatter(t={}){return function(t,e={}){const i=JSON.stringify([t,e]);let n=nn[i];return n||(n=new Intl.ListFormat(t,e),nn[i]=n),n}(this.intl,t)}isEnglish(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}equals(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar}}function mn(...t){const e=t.reduce(((t,e)=>t+e.source),"");return RegExp(`^${e}$`)}function fn(...t){return e=>t.reduce((([t,i,n],o)=>{const[r,s,a]=o(e,n);return[{...t,...r},s||i,a]}),[{},null,1]).slice(0,2)}function gn(t,...e){if(null==t)return[null,null];for(const[i,n]of e){const e=i.exec(t);if(e)return n(e)}return[null,null]}function vn(...t){return(e,i)=>{const n={};let o;for(o=0;o<t.length;o++)n[t[o]]=oi(e[i+o]);return[n,null,i+o]}}const yn=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,bn=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,_n=RegExp(`${bn.source}${`(?:${yn.source}?(?:\\[(${_i.source})\\])?)?`}`),xn=RegExp(`(?:T${_n.source})?`),wn=vn("weekYear","weekNumber","weekDay"),kn=vn("year","ordinal"),Cn=RegExp(`${bn.source} ?(?:${yn.source}|(${_i.source}))?`),Sn=RegExp(`(?: ${Cn.source})?`);function En(t,e,i){const n=t[e];return Ke(n)?i:oi(n)}function Tn(t,e){return[{hours:En(t,e,0),minutes:En(t,e+1,0),seconds:En(t,e+2,0),milliseconds:si(t[e+3])},null,e+4]}function Mn(t,e){const i=!t[e]&&!t[e+1],n=fi(t[e+1],t[e+2]);return[{},i?null:Vi.instance(n),e+3]}function Dn(t,e){return[{},t[e]?Hi.create(t[e]):null,e+1]}const $n=RegExp(`^T?${bn.source}$`),An=/^-?P(?:(?:(-?\d{1,9}(?:\.\d{1,9})?)Y)?(?:(-?\d{1,9}(?:\.\d{1,9})?)M)?(?:(-?\d{1,9}(?:\.\d{1,9})?)W)?(?:(-?\d{1,9}(?:\.\d{1,9})?)D)?(?:T(?:(-?\d{1,9}(?:\.\d{1,9})?)H)?(?:(-?\d{1,9}(?:\.\d{1,9})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,9}))?S)?)?)$/;function Ln(t){const[e,i,n,o,r,s,a,l,c]=t,h="-"===e[0],u=l&&"-"===l[0],d=(t,e=!1)=>void 0!==t&&(e||t&&h)?-t:t;return[{years:d(ri(i)),months:d(ri(n)),weeks:d(ri(o)),days:d(ri(r)),hours:d(ri(s)),minutes:d(ri(a)),seconds:d(ri(l),"-0"===l),milliseconds:d(si(c),u)}]}const On={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Pn(t,e,i,n,o,r,s){const a={year:2===e.length?pi(oi(e)):oi(e),month:wi.indexOf(i)+1,day:oi(n),hour:oi(o),minute:oi(r)};return s&&(a.second=oi(s)),t&&(a.weekday=t.length>3?Si.indexOf(t)+1:Ei.indexOf(t)+1),a}const In=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function Nn(t){const[,e,i,n,o,r,s,a,l,c,h,u]=t,d=Pn(e,o,n,i,r,s,a);let p;return p=l?On[l]:c?0:fi(h,u),[d,new Vi(p)]}const zn=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Rn=/^(Monday|Tuesday|Wedsday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,Bn=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Fn(t){const[,e,i,n,o,r,s,a]=t;return[Pn(e,o,n,i,r,s,a),Vi.utcInstance]}function qn(t){const[,e,i,n,o,r,s,a]=t;return[Pn(e,a,i,n,o,r,s),Vi.utcInstance]}const jn=mn(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,xn),Zn=mn(/(\d{4})-?W(\d\d)(?:-?(\d))?/,xn),Hn=mn(/(\d{4})-?(\d{3})/,xn),Un=mn(_n),Vn=fn((function(t,e){return[{year:En(t,e),month:En(t,e+1,1),day:En(t,e+2,1)},null,e+3]}),Tn,Mn,Dn),Wn=fn(wn,Tn,Mn,Dn),Gn=fn(kn,Tn,Mn,Dn),Yn=fn(Tn,Mn,Dn);const Kn=fn(Tn);const Jn=mn(/(\d{4})-(\d\d)-(\d\d)/,Sn),Xn=mn(Cn),Qn=fn(Tn,Mn,Dn);const to={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},eo={years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6},...to},io={years:{quarters:4,months:12,weeks:52.1775,days:365.2425,hours:8765.82,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:30.436875/7,days:30.436875,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3},...to},no=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],oo=no.slice(0).reverse();function ro(t,e,i=!1){const n={values:i?e.values:{...t.values,...e.values||{}},loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy};return new ao(n)}function so(t,e,i,n,o){const r=t[o][i],s=e[i]/r,a=!(Math.sign(s)===Math.sign(n[o]))&&0!==n[o]&&Math.abs(s)<=1?function(t){return t<0?Math.floor(t):Math.ceil(t)}(s):Math.trunc(s);n[o]+=a,e[i]-=a*r}class ao{constructor(t){const e="longterm"===t.conversionAccuracy||!1;this.values=t.values,this.loc=t.loc||pn.create(),this.conversionAccuracy=e?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=e?io:eo,this.isLuxonDuration=!0}static fromMillis(t,e){return ao.fromObject({milliseconds:t},e)}static fromObject(t,e={}){if(null==t||"object"!=typeof t)throw new ke("Duration.fromObject: argument expected to be an object, got "+(null===t?"null":typeof t));return new ao({values:vi(t,ao.normalizeUnit),loc:pn.fromObject(e),conversionAccuracy:e.conversionAccuracy})}static fromDurationLike(t){if(Je(t))return ao.fromMillis(t);if(ao.isDuration(t))return t;if("object"==typeof t)return ao.fromObject(t);throw new ke(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,e){const[i]=function(t){return gn(t,[An,Ln])}(t);return i?ao.fromObject(i,e):ao.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,e){const[i]=function(t){return gn(t,[$n,Kn])}(t);return i?ao.fromObject(i,e):ao.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,e=null){if(!t)throw new ke("need to specify a reason the Duration is invalid");const i=t instanceof zi?t:new zi(t,e);if(en.throwOnInvalid)throw new _e(i);return new ao({invalid:i})}static normalizeUnit(t){const e={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[t?t.toLowerCase():t];if(!e)throw new we(t);return e}static isDuration(t){return t&&t.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(t,e={}){const i={...e,floor:!1!==e.round&&!1!==e.floor};return this.isValid?Ni.create(this.loc,i).formatDurationFromString(this,t):"Invalid Duration"}toHuman(t={}){const e=no.map((e=>{const i=this.values[e];return Ke(i)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...t,unit:e.slice(0,-1)}).format(i)})).filter((t=>t));return this.loc.listFormatter({type:"conjunction",style:t.listStyle||"narrow",...t}).format(e)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let t="P";return 0!==this.years&&(t+=this.years+"Y"),0===this.months&&0===this.quarters||(t+=this.months+3*this.quarters+"M"),0!==this.weeks&&(t+=this.weeks+"W"),0!==this.days&&(t+=this.days+"D"),0===this.hours&&0===this.minutes&&0===this.seconds&&0===this.milliseconds||(t+="T"),0!==this.hours&&(t+=this.hours+"H"),0!==this.minutes&&(t+=this.minutes+"M"),0===this.seconds&&0===this.milliseconds||(t+=ai(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===t&&(t+="T0S"),t}toISOTime(t={}){if(!this.isValid)return null;const e=this.toMillis();if(e<0||e>=864e5)return null;t={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...t};const i=this.shiftTo("hours","minutes","seconds","milliseconds");let n="basic"===t.format?"hhmm":"hh:mm";t.suppressSeconds&&0===i.seconds&&0===i.milliseconds||(n+="basic"===t.format?"ss":":ss",t.suppressMilliseconds&&0===i.milliseconds||(n+=".SSS"));let o=i.toFormat(n);return t.includePrefix&&(o="T"+o),o}toJSON(){return this.toISO()}toString(){return this.toISO()}toMillis(){return this.as("milliseconds")}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;const e=ao.fromDurationLike(t),i={};for(const t of no)(ei(e.values,t)||ei(this.values,t))&&(i[t]=e.get(t)+this.get(t));return ro(this,{values:i},!0)}minus(t){if(!this.isValid)return this;const e=ao.fromDurationLike(t);return this.plus(e.negate())}mapUnits(t){if(!this.isValid)return this;const e={};for(const i of Object.keys(this.values))e[i]=gi(t(this.values[i],i));return ro(this,{values:e},!0)}get(t){return this[ao.normalizeUnit(t)]}set(t){if(!this.isValid)return this;return ro(this,{values:{...this.values,...vi(t,ao.normalizeUnit)}})}reconfigure({locale:t,numberingSystem:e,conversionAccuracy:i}={}){const n={loc:this.loc.clone({locale:t,numberingSystem:e})};return i&&(n.conversionAccuracy=i),ro(this,n)}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;const t=this.toObject();return function(t,e){oo.reduce(((i,n)=>Ke(e[n])?i:(i&&so(t,e,i,e,n),n)),null)}(this.matrix,t),ro(this,{values:t},!0)}shiftTo(...t){if(!this.isValid)return this;if(0===t.length)return this;t=t.map((t=>ao.normalizeUnit(t)));const e={},i={},n=this.toObject();let o;for(const r of no)if(t.indexOf(r)>=0){o=r;let t=0;for(const e in i)t+=this.matrix[e][r]*i[e],i[e]=0;Je(n[r])&&(t+=n[r]);const s=Math.trunc(t);e[r]=s,i[r]=(1e3*t-1e3*s)/1e3;for(const t in n)no.indexOf(t)>no.indexOf(r)&&so(this.matrix,n,t,e,r)}else Je(n[r])&&(i[r]=n[r]);for(const t in i)0!==i[t]&&(e[o]+=t===o?i[t]:i[t]/this.matrix[o][t]);return ro(this,{values:e},!0).normalize()}negate(){if(!this.isValid)return this;const t={};for(const e of Object.keys(this.values))t[e]=0===this.values[e]?0:-this.values[e];return ro(this,{values:t},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(t){if(!this.isValid||!t.isValid)return!1;if(!this.loc.equals(t.loc))return!1;for(const n of no)if(e=this.values[n],i=t.values[n],!(void 0===e||0===e?void 0===i||0===i:e===i))return!1;var e,i;return!0}}const lo="Invalid Interval";class co{constructor(t){this.s=t.start,this.e=t.end,this.invalid=t.invalid||null,this.isLuxonInterval=!0}static invalid(t,e=null){if(!t)throw new ke("need to specify a reason the Interval is invalid");const i=t instanceof zi?t:new zi(t,e);if(en.throwOnInvalid)throw new be(i);return new co({invalid:i})}static fromDateTimes(t,e){const i=ur(t),n=ur(e),o=function(t,e){return t&&t.isValid?e&&e.isValid?e<t?co.invalid("end before start",`The end of an interval must be after its start, but you had start=${t.toISO()} and end=${e.toISO()}`):null:co.invalid("missing or invalid end"):co.invalid("missing or invalid start")}(i,n);return null==o?new co({start:i,end:n}):o}static after(t,e){const i=ao.fromDurationLike(e),n=ur(t);return co.fromDateTimes(n,n.plus(i))}static before(t,e){const i=ao.fromDurationLike(e),n=ur(t);return co.fromDateTimes(n.minus(i),n)}static fromISO(t,e){const[i,n]=(t||"").split("/",2);if(i&&n){let t,o,r,s;try{t=hr.fromISO(i,e),o=t.isValid}catch(n){o=!1}try{r=hr.fromISO(n,e),s=r.isValid}catch(n){s=!1}if(o&&s)return co.fromDateTimes(t,r);if(o){const i=ao.fromISO(n,e);if(i.isValid)return co.after(t,i)}else if(s){const t=ao.fromISO(i,e);if(t.isValid)return co.before(r,t)}}return co.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static isInterval(t){return t&&t.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return null===this.invalidReason}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(t="milliseconds"){return this.isValid?this.toDuration(t).get(t):NaN}count(t="milliseconds"){if(!this.isValid)return NaN;const e=this.start.startOf(t),i=this.end.startOf(t);return Math.floor(i.diff(e,t).get(t))+1}hasSame(t){return!!this.isValid&&(this.isEmpty()||this.e.minus(1).hasSame(this.s,t))}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(t){return!!this.isValid&&this.s>t}isBefore(t){return!!this.isValid&&this.e<=t}contains(t){return!!this.isValid&&(this.s<=t&&this.e>t)}set({start:t,end:e}={}){return this.isValid?co.fromDateTimes(t||this.s,e||this.e):this}splitAt(...t){if(!this.isValid)return[];const e=t.map(ur).filter((t=>this.contains(t))).sort(),i=[];let{s:n}=this,o=0;for(;n<this.e;){const t=e[o]||this.e,r=+t>+this.e?this.e:t;i.push(co.fromDateTimes(n,r)),n=r,o+=1}return i}splitBy(t){const e=ao.fromDurationLike(t);if(!this.isValid||!e.isValid||0===e.as("milliseconds"))return[];let i,{s:n}=this,o=1;const r=[];for(;n<this.e;){const t=this.start.plus(e.mapUnits((t=>t*o)));i=+t>+this.e?this.e:t,r.push(co.fromDateTimes(n,i)),n=i,o+=1}return r}divideEqually(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]}overlaps(t){return this.e>t.s&&this.s<t.e}abutsStart(t){return!!this.isValid&&+this.e==+t.s}abutsEnd(t){return!!this.isValid&&+t.e==+this.s}engulfs(t){return!!this.isValid&&(this.s<=t.s&&this.e>=t.e)}equals(t){return!(!this.isValid||!t.isValid)&&(this.s.equals(t.s)&&this.e.equals(t.e))}intersection(t){if(!this.isValid)return this;const e=this.s>t.s?this.s:t.s,i=this.e<t.e?this.e:t.e;return e>=i?null:co.fromDateTimes(e,i)}union(t){if(!this.isValid)return this;const e=this.s<t.s?this.s:t.s,i=this.e>t.e?this.e:t.e;return co.fromDateTimes(e,i)}static merge(t){const[e,i]=t.sort(((t,e)=>t.s-e.s)).reduce((([t,e],i)=>e?e.overlaps(i)||e.abutsStart(i)?[t,e.union(i)]:[t.concat([e]),i]:[t,i]),[[],null]);return i&&e.push(i),e}static xor(t){let e=null,i=0;const n=[],o=t.map((t=>[{time:t.s,type:"s"},{time:t.e,type:"e"}])),r=Array.prototype.concat(...o).sort(((t,e)=>t.time-e.time));for(const t of r)i+="s"===t.type?1:-1,1===i?e=t.time:(e&&+e!=+t.time&&n.push(co.fromDateTimes(e,t.time)),e=null);return co.merge(n)}difference(...t){return co.xor([this].concat(t)).map((t=>this.intersection(t))).filter((t=>t&&!t.isEmpty()))}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:lo}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:lo}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:lo}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:lo}toFormat(t,{separator:e=" – "}={}){return this.isValid?`${this.s.toFormat(t)}${e}${this.e.toFormat(t)}`:lo}toDuration(t,e){return this.isValid?this.e.diff(this.s,t,e):ao.invalid(this.invalidReason)}mapEndpoints(t){return co.fromDateTimes(t(this.s),t(this.e))}}class ho{static hasDST(t=en.defaultZone){const e=hr.now().setZone(t).set({month:12});return!t.isUniversal&&e.offset!==e.set({month:6}).offset}static isValidIANAZone(t){return Hi.isValidZone(t)}static normalizeZone(t){return Gi(t,en.defaultZone)}static months(t="long",{locale:e=null,numberingSystem:i=null,locObj:n=null,outputCalendar:o="gregory"}={}){return(n||pn.create(e,i,o)).months(t)}static monthsFormat(t="long",{locale:e=null,numberingSystem:i=null,locObj:n=null,outputCalendar:o="gregory"}={}){return(n||pn.create(e,i,o)).months(t,!0)}static weekdays(t="long",{locale:e=null,numberingSystem:i=null,locObj:n=null}={}){return(n||pn.create(e,i,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:e=null,numberingSystem:i=null,locObj:n=null}={}){return(n||pn.create(e,i,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return pn.create(t).meridiems()}static eras(t="short",{locale:e=null}={}){return pn.create(e,null,"gregory").eras(t)}static features(){return{relative:Qe()}}}function uo(t,e){const i=t=>t.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),n=i(e)-i(t);return Math.floor(ao.fromMillis(n).as("days"))}function po(t,e,i,n){let[o,r,s,a]=function(t,e,i){const n=[["years",(t,e)=>e.year-t.year],["quarters",(t,e)=>e.quarter-t.quarter],["months",(t,e)=>e.month-t.month+12*(e.year-t.year)],["weeks",(t,e)=>{const i=uo(t,e);return(i-i%7)/7}],["days",uo]],o={};let r,s;for(const[a,l]of n)if(i.indexOf(a)>=0){r=a;let i=l(t,e);s=t.plus({[a]:i}),s>e?(t=t.plus({[a]:i-1}),i-=1):t=s,o[a]=i}return[t,o,s,r]}(t,e,i);const l=e-o,c=i.filter((t=>["hours","minutes","seconds","milliseconds"].indexOf(t)>=0));0===c.length&&(s<e&&(s=o.plus({[a]:1})),s!==o&&(r[a]=(r[a]||0)+l/(s-o)));const h=ao.fromObject(r,n);return c.length>0?ao.fromMillis(l,n).shiftTo(...c).plus(h):h}const mo={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},fo={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},go=mo.hanidec.replace(/[\[|\]]/g,"").split("");function vo({numberingSystem:t},e=""){return new RegExp(`${mo[t||"latn"]}${e}`)}function yo(t,e=(t=>t)){return{regex:t,deser:([t])=>e(function(t){let e=parseInt(t,10);if(isNaN(e)){e="";for(let i=0;i<t.length;i++){const n=t.charCodeAt(i);if(-1!==t[i].search(mo.hanidec))e+=go.indexOf(t[i]);else for(const t in fo){const[i,o]=fo[t];n>=i&&n<=o&&(e+=n-i)}}return parseInt(e,10)}return e}(t))}}const bo=`[ ${String.fromCharCode(160)}]`,_o=new RegExp(bo,"g");function xo(t){return t.replace(/\./g,"\\.?").replace(_o,bo)}function wo(t){return t.replace(/\./g,"").replace(_o," ").toLowerCase()}function ko(t,e){return null===t?null:{regex:RegExp(t.map(xo).join("|")),deser:([i])=>t.findIndex((t=>wo(i)===wo(t)))+e}}function Co(t,e){return{regex:t,deser:([,t,e])=>fi(t,e),groups:e}}function So(t){return{regex:t,deser:([t])=>t}}const Eo={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour:{numeric:"h","2-digit":"hh"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"}};let To=null;function Mo(t,e){if(t.literal)return t;const i=Ni.macroTokenToFormatOpts(t.val);if(!i)return t;const n=Ni.create(e,i).formatDateTimeParts((To||(To=hr.fromMillis(1555555555555)),To)).map((t=>function(t,e,i){const{type:n,value:o}=t;if("literal"===n)return{literal:!0,val:o};const r=i[n];let s=Eo[n];return"object"==typeof s&&(s=s[r]),s?{literal:!1,val:s}:void 0}(t,0,i)));return n.includes(void 0)?t:n}function Do(t,e,i){const n=function(t,e){return Array.prototype.concat(...t.map((t=>Mo(t,e))))}(Ni.parseFormat(i),t),o=n.map((e=>function(t,e){const i=vo(e),n=vo(e,"{2}"),o=vo(e,"{3}"),r=vo(e,"{4}"),s=vo(e,"{6}"),a=vo(e,"{1,2}"),l=vo(e,"{1,3}"),c=vo(e,"{1,6}"),h=vo(e,"{1,9}"),u=vo(e,"{2,4}"),d=vo(e,"{4,6}"),p=t=>{return{regex:RegExp((e=t.val,e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"))),deser:([t])=>t,literal:!0};var e},m=(m=>{if(t.literal)return p(m);switch(m.val){case"G":return ko(e.eras("short",!1),0);case"GG":return ko(e.eras("long",!1),0);case"y":return yo(c);case"yy":case"kk":return yo(u,pi);case"yyyy":case"kkkk":return yo(r);case"yyyyy":return yo(d);case"yyyyyy":return yo(s);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return yo(a);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return yo(n);case"MMM":return ko(e.months("short",!0,!1),1);case"MMMM":return ko(e.months("long",!0,!1),1);case"LLL":return ko(e.months("short",!1,!1),1);case"LLLL":return ko(e.months("long",!1,!1),1);case"o":case"S":return yo(l);case"ooo":case"SSS":return yo(o);case"u":return So(h);case"uu":return So(a);case"uuu":case"E":case"c":return yo(i);case"a":return ko(e.meridiems(),0);case"EEE":return ko(e.weekdays("short",!1,!1),1);case"EEEE":return ko(e.weekdays("long",!1,!1),1);case"ccc":return ko(e.weekdays("short",!0,!1),1);case"cccc":return ko(e.weekdays("long",!0,!1),1);case"Z":case"ZZ":return Co(new RegExp(`([+-]${a.source})(?::(${n.source}))?`),2);case"ZZZ":return Co(new RegExp(`([+-]${a.source})(${n.source})?`),2);case"z":return So(/[a-z_+-/]{1,256}?/i);default:return p(m)}})(t)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"};return m.token=t,m}(e,t))),r=o.find((t=>t.invalidReason));if(r)return{input:e,tokens:n,invalidReason:r.invalidReason};{const[t,i]=function(t){const e=t.map((t=>t.regex)).reduce(((t,e)=>`${t}(${e.source})`),"");return[`^${e}$`,t]}(o),r=RegExp(t,"i"),[s,a]=function(t,e,i){const n=t.match(e);if(n){const t={};let e=1;for(const o in i)if(ei(i,o)){const r=i[o],s=r.groups?r.groups+1:1;!r.literal&&r.token&&(t[r.token.val[0]]=r.deser(n.slice(e,e+s))),e+=s}return[n,t]}return[n,{}]}(e,r,i),[l,c,h]=a?function(t){let e,i=null;Ke(t.z)||(i=Hi.create(t.z)),Ke(t.Z)||(i||(i=new Vi(t.Z)),e=t.Z),Ke(t.q)||(t.M=3*(t.q-1)+1),Ke(t.h)||(t.h<12&&1===t.a?t.h+=12:12===t.h&&0===t.a&&(t.h=0)),0===t.G&&t.y&&(t.y=-t.y),Ke(t.u)||(t.S=si(t.u));const n=Object.keys(t).reduce(((e,i)=>{const n=(t=>{switch(t){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}})(i);return n&&(e[n]=t[i]),e}),{});return[n,i,e]}(a):[null,null,void 0];if(ei(a,"a")&&ei(a,"H"))throw new xe("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:n,regex:r,rawMatches:s,matches:a,result:l,zone:c,specificOffset:h}}}const $o=[0,31,59,90,120,151,181,212,243,273,304,334],Ao=[0,31,60,91,121,152,182,213,244,274,305,335];function Lo(t,e){return new zi("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function Oo(t,e,i){const n=new Date(Date.UTC(t,e-1,i));t<100&&t>=0&&n.setUTCFullYear(n.getUTCFullYear()-1900);const o=n.getUTCDay();return 0===o?7:o}function Po(t,e,i){return i+(li(t)?Ao:$o)[e-1]}function Io(t,e){const i=li(t)?Ao:$o,n=i.findIndex((t=>t<e));return{month:n+1,day:e-i[n]}}function No(t){const{year:e,month:i,day:n}=t,o=Po(e,i,n),r=Oo(e,i,n);let s,a=Math.floor((o-r+10)/7);return a<1?(s=e-1,a=di(s)):a>di(e)?(s=e+1,a=1):s=e,{weekYear:s,weekNumber:a,weekday:r,...bi(t)}}function zo(t){const{weekYear:e,weekNumber:i,weekday:n}=t,o=Oo(e,1,4),r=ci(e);let s,a=7*i+n-o-3;a<1?(s=e-1,a+=ci(s)):a>r?(s=e+1,a-=ci(e)):s=e;const{month:l,day:c}=Io(s,a);return{year:s,month:l,day:c,...bi(t)}}function Ro(t){const{year:e,month:i,day:n}=t;return{year:e,ordinal:Po(e,i,n),...bi(t)}}function Bo(t){const{year:e,ordinal:i}=t,{month:n,day:o}=Io(e,i);return{year:e,month:n,day:o,...bi(t)}}function Fo(t){const e=Xe(t.year),i=ii(t.month,1,12),n=ii(t.day,1,hi(t.year,t.month));return e?i?!n&&Lo("day",t.day):Lo("month",t.month):Lo("year",t.year)}function qo(t){const{hour:e,minute:i,second:n,millisecond:o}=t,r=ii(e,0,23)||24===e&&0===i&&0===n&&0===o,s=ii(i,0,59),a=ii(n,0,59),l=ii(o,0,999);return r?s?a?!l&&Lo("millisecond",o):Lo("second",n):Lo("minute",i):Lo("hour",e)}const jo="Invalid DateTime";function Zo(t){return new zi("unsupported zone",`the zone "${t.name}" is not supported`)}function Ho(t){return null===t.weekData&&(t.weekData=No(t.c)),t.weekData}function Uo(t,e){const i={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new hr({...i,...e,old:i})}function Vo(t,e,i){let n=t-60*e*1e3;const o=i.offset(n);if(e===o)return[n,e];n-=60*(o-e)*1e3;const r=i.offset(n);return o===r?[n,o]:[t-60*Math.min(o,r)*1e3,Math.max(o,r)]}function Wo(t,e){const i=new Date(t+=60*e*1e3);return{year:i.getUTCFullYear(),month:i.getUTCMonth()+1,day:i.getUTCDate(),hour:i.getUTCHours(),minute:i.getUTCMinutes(),second:i.getUTCSeconds(),millisecond:i.getUTCMilliseconds()}}function Go(t,e,i){return Vo(ui(t),e,i)}function Yo(t,e){const i=t.o,n=t.c.year+Math.trunc(e.years),o=t.c.month+Math.trunc(e.months)+3*Math.trunc(e.quarters),r={...t.c,year:n,month:o,day:Math.min(t.c.day,hi(n,o))+Math.trunc(e.days)+7*Math.trunc(e.weeks)},s=ao.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),a=ui(r);let[l,c]=Vo(a,i,t.zone);return 0!==s&&(l+=s,c=t.zone.offset(l)),{ts:l,o:c}}function Ko(t,e,i,n,o,r){const{setZone:s,zone:a}=i;if(t&&0!==Object.keys(t).length){const n=e||a,o=hr.fromObject(t,{...i,zone:n,specificOffset:r});return s?o:o.setZone(a)}return hr.invalid(new zi("unparsable",`the input "${o}" can't be parsed as ${n}`))}function Jo(t,e,i=!0){return t.isValid?Ni.create(pn.create("en-US"),{allowZ:i,forceSimple:!0}).formatDateTimeFromString(t,e):null}function Xo(t,e){const i=t.c.year>9999||t.c.year<0;let n="";return i&&t.c.year>=0&&(n+="+"),n+=ni(t.c.year,i?6:4),e?(n+="-",n+=ni(t.c.month),n+="-",n+=ni(t.c.day)):(n+=ni(t.c.month),n+=ni(t.c.day)),n}function Qo(t,e,i,n,o,r){let s=ni(t.c.hour);return e?(s+=":",s+=ni(t.c.minute),0===t.c.second&&i||(s+=":")):s+=ni(t.c.minute),0===t.c.second&&i||(s+=ni(t.c.second),0===t.c.millisecond&&n||(s+=".",s+=ni(t.c.millisecond,3))),o&&(t.isOffsetFixed&&0===t.offset&&!r?s+="Z":t.o<0?(s+="-",s+=ni(Math.trunc(-t.o/60)),s+=":",s+=ni(Math.trunc(-t.o%60))):(s+="+",s+=ni(Math.trunc(t.o/60)),s+=":",s+=ni(Math.trunc(t.o%60)))),r&&(s+="["+t.zone.ianaName+"]"),s}const tr={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},er={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},ir={ordinal:1,hour:0,minute:0,second:0,millisecond:0},nr=["year","month","day","hour","minute","second","millisecond"],or=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],rr=["year","ordinal","hour","minute","second","millisecond"];function sr(t){const e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!e)throw new we(t);return e}function ar(t,e){const i=Gi(e.zone,en.defaultZone),n=pn.fromObject(e),o=en.now();let r,s;if(Ke(t.year))r=o;else{for(const e of nr)Ke(t[e])&&(t[e]=tr[e]);const e=Fo(t)||qo(t);if(e)return hr.invalid(e);const n=i.offset(o);[r,s]=Go(t,n,i)}return new hr({ts:r,zone:i,loc:n,o:s})}function lr(t,e,i){const n=!!Ke(i.round)||i.round,o=(t,o)=>{t=ai(t,n||i.calendary?0:2,!0);return e.loc.clone(i).relFormatter(i).format(t,o)},r=n=>i.calendary?e.hasSame(t,n)?0:e.startOf(n).diff(t.startOf(n),n).get(n):e.diff(t,n).get(n);if(i.unit)return o(r(i.unit),i.unit);for(const t of i.units){const e=r(t);if(Math.abs(e)>=1)return o(e,t)}return o(t>e?-0:0,i.units[i.units.length-1])}function cr(t){let e,i={};return t.length>0&&"object"==typeof t[t.length-1]?(i=t[t.length-1],e=Array.from(t).slice(0,t.length-1)):e=Array.from(t),[i,e]}class hr{constructor(t){const e=t.zone||en.defaultZone;let i=t.invalid||(Number.isNaN(t.ts)?new zi("invalid input"):null)||(e.isValid?null:Zo(e));this.ts=Ke(t.ts)?en.now():t.ts;let n=null,o=null;if(!i){if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(e))[n,o]=[t.old.c,t.old.o];else{const t=e.offset(this.ts);n=Wo(this.ts,t),i=Number.isNaN(n.year)?new zi("invalid input"):null,n=i?null:n,o=i?null:t}}this._zone=e,this.loc=t.loc||pn.create(),this.invalid=i,this.weekData=null,this.c=n,this.o=o,this.isLuxonDateTime=!0}static now(){return new hr({})}static local(){const[t,e]=cr(arguments),[i,n,o,r,s,a,l]=e;return ar({year:i,month:n,day:o,hour:r,minute:s,second:a,millisecond:l},t)}static utc(){const[t,e]=cr(arguments),[i,n,o,r,s,a,l]=e;return t.zone=Vi.utcInstance,ar({year:i,month:n,day:o,hour:r,minute:s,second:a,millisecond:l},t)}static fromJSDate(t,e={}){const i=function(t){return"[object Date]"===Object.prototype.toString.call(t)}(t)?t.valueOf():NaN;if(Number.isNaN(i))return hr.invalid("invalid input");const n=Gi(e.zone,en.defaultZone);return n.isValid?new hr({ts:i,zone:n,loc:pn.fromObject(e)}):hr.invalid(Zo(n))}static fromMillis(t,e={}){if(Je(t))return t<-864e13||t>864e13?hr.invalid("Timestamp out of range"):new hr({ts:t,zone:Gi(e.zone,en.defaultZone),loc:pn.fromObject(e)});throw new ke(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,e={}){if(Je(t))return new hr({ts:1e3*t,zone:Gi(e.zone,en.defaultZone),loc:pn.fromObject(e)});throw new ke("fromSeconds requires a numerical input")}static fromObject(t,e={}){t=t||{};const i=Gi(e.zone,en.defaultZone);if(!i.isValid)return hr.invalid(Zo(i));const n=en.now(),o=Ke(e.specificOffset)?i.offset(n):e.specificOffset,r=vi(t,sr),s=!Ke(r.ordinal),a=!Ke(r.year),l=!Ke(r.month)||!Ke(r.day),c=a||l,h=r.weekYear||r.weekNumber,u=pn.fromObject(e);if((c||s)&&h)throw new xe("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(l&&s)throw new xe("Can't mix ordinal dates with month/day");const d=h||r.weekday&&!c;let p,m,f=Wo(n,o);d?(p=or,m=er,f=No(f)):s?(p=rr,m=ir,f=Ro(f)):(p=nr,m=tr);let g=!1;for(const t of p){Ke(r[t])?r[t]=g?m[t]:f[t]:g=!0}const v=d?function(t){const e=Xe(t.weekYear),i=ii(t.weekNumber,1,di(t.weekYear)),n=ii(t.weekday,1,7);return e?i?!n&&Lo("weekday",t.weekday):Lo("week",t.week):Lo("weekYear",t.weekYear)}(r):s?function(t){const e=Xe(t.year),i=ii(t.ordinal,1,ci(t.year));return e?!i&&Lo("ordinal",t.ordinal):Lo("year",t.year)}(r):Fo(r),y=v||qo(r);if(y)return hr.invalid(y);const b=d?zo(r):s?Bo(r):r,[_,x]=Go(b,o,i),w=new hr({ts:_,zone:i,o:x,loc:u});return r.weekday&&c&&t.weekday!==w.weekday?hr.invalid("mismatched weekday",`you can't specify both a weekday of ${r.weekday} and a date of ${w.toISO()}`):w}static fromISO(t,e={}){const[i,n]=function(t){return gn(t,[jn,Vn],[Zn,Wn],[Hn,Gn],[Un,Yn])}(t);return Ko(i,n,e,"ISO 8601",t)}static fromRFC2822(t,e={}){const[i,n]=function(t){return gn(function(t){return t.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(t),[In,Nn])}(t);return Ko(i,n,e,"RFC 2822",t)}static fromHTTP(t,e={}){const[i,n]=function(t){return gn(t,[zn,Fn],[Rn,Fn],[Bn,qn])}(t);return Ko(i,n,e,"HTTP",e)}static fromFormat(t,e,i={}){if(Ke(t)||Ke(e))throw new ke("fromFormat requires an input string and a format");const{locale:n=null,numberingSystem:o=null}=i,r=pn.fromOpts({locale:n,numberingSystem:o,defaultToEN:!0}),[s,a,l,c]=function(t,e,i){const{result:n,zone:o,specificOffset:r,invalidReason:s}=Do(t,e,i);return[n,o,r,s]}(r,t,e);return c?hr.invalid(c):Ko(s,a,i,`format ${e}`,t,l)}static fromString(t,e,i={}){return hr.fromFormat(t,e,i)}static fromSQL(t,e={}){const[i,n]=function(t){return gn(t,[Jn,Vn],[Xn,Qn])}(t);return Ko(i,n,e,"SQL",t)}static invalid(t,e=null){if(!t)throw new ke("need to specify a reason the DateTime is invalid");const i=t instanceof zi?t:new zi(t,e);if(en.throwOnInvalid)throw new ye(i);return new hr({invalid:i})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}get(t){return this[t]}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?Ho(this).weekYear:NaN}get weekNumber(){return this.isValid?Ho(this).weekNumber:NaN}get weekday(){return this.isValid?Ho(this).weekday:NaN}get ordinal(){return this.isValid?Ro(this.c).ordinal:NaN}get monthShort(){return this.isValid?ho.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?ho.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?ho.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?ho.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return!this.isOffsetFixed&&(this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset)}get isInLeapYear(){return li(this.year)}get daysInMonth(){return hi(this.year,this.month)}get daysInYear(){return this.isValid?ci(this.year):NaN}get weeksInWeekYear(){return this.isValid?di(this.weekYear):NaN}resolvedLocaleOptions(t={}){const{locale:e,numberingSystem:i,calendar:n}=Ni.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:e,numberingSystem:i,outputCalendar:n}}toUTC(t=0,e={}){return this.setZone(Vi.instance(t),e)}toLocal(){return this.setZone(en.defaultZone)}setZone(t,{keepLocalTime:e=!1,keepCalendarTime:i=!1}={}){if((t=Gi(t,en.defaultZone)).equals(this.zone))return this;if(t.isValid){let n=this.ts;if(e||i){const e=t.offset(this.ts),i=this.toObject();[n]=Go(i,e,t)}return Uo(this,{ts:n,zone:t})}return hr.invalid(Zo(t))}reconfigure({locale:t,numberingSystem:e,outputCalendar:i}={}){return Uo(this,{loc:this.loc.clone({locale:t,numberingSystem:e,outputCalendar:i})})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;const e=vi(t,sr),i=!Ke(e.weekYear)||!Ke(e.weekNumber)||!Ke(e.weekday),n=!Ke(e.ordinal),o=!Ke(e.year),r=!Ke(e.month)||!Ke(e.day),s=o||r,a=e.weekYear||e.weekNumber;if((s||n)&&a)throw new xe("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(r&&n)throw new xe("Can't mix ordinal dates with month/day");let l;i?l=zo({...No(this.c),...e}):Ke(e.ordinal)?(l={...this.toObject(),...e},Ke(e.day)&&(l.day=Math.min(hi(l.year,l.month),l.day))):l=Bo({...Ro(this.c),...e});const[c,h]=Go(l,this.o,this.zone);return Uo(this,{ts:c,o:h})}plus(t){if(!this.isValid)return this;return Uo(this,Yo(this,ao.fromDurationLike(t)))}minus(t){if(!this.isValid)return this;return Uo(this,Yo(this,ao.fromDurationLike(t).negate()))}startOf(t){if(!this.isValid)return this;const e={},i=ao.normalizeUnit(t);switch(i){case"years":e.month=1;case"quarters":case"months":e.day=1;case"weeks":case"days":e.hour=0;case"hours":e.minute=0;case"minutes":e.second=0;case"seconds":e.millisecond=0}if("weeks"===i&&(e.weekday=1),"quarters"===i){const t=Math.ceil(this.month/3);e.month=3*(t-1)+1}return this.set(e)}endOf(t){return this.isValid?this.plus({[t]:1}).startOf(t).minus(1):this}toFormat(t,e={}){return this.isValid?Ni.create(this.loc.redefaultToEN(e)).formatDateTimeFromString(this,t):jo}toLocaleString(t=Me,e={}){return this.isValid?Ni.create(this.loc.clone(e),t).formatDateTime(this):jo}toLocaleParts(t={}){return this.isValid?Ni.create(this.loc.clone(t),t).formatDateTimeParts(this):[]}toISO({format:t="extended",suppressSeconds:e=!1,suppressMilliseconds:i=!1,includeOffset:n=!0,extendedZone:o=!1}={}){if(!this.isValid)return null;const r="extended"===t;let s=Xo(this,r);return s+="T",s+=Qo(this,r,e,i,n,o),s}toISODate({format:t="extended"}={}){return this.isValid?Xo(this,"extended"===t):null}toISOWeekDate(){return Jo(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:t=!1,suppressSeconds:e=!1,includeOffset:i=!0,includePrefix:n=!1,extendedZone:o=!1,format:r="extended"}={}){if(!this.isValid)return null;return(n?"T":"")+Qo(this,"extended"===r,e,t,i,o)}toRFC2822(){return Jo(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Jo(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?Xo(this,!0):null}toSQLTime({includeOffset:t=!0,includeZone:e=!1,includeOffsetSpace:i=!0}={}){let n="HH:mm:ss.SSS";return(e||t)&&(i&&(n+=" "),e?n+="z":t&&(n+="ZZ")),Jo(this,n,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():jo}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(t={}){if(!this.isValid)return{};const e={...this.c};return t.includeConfig&&(e.outputCalendar=this.outputCalendar,e.numberingSystem=this.loc.numberingSystem,e.locale=this.loc.locale),e}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(t,e="milliseconds",i={}){if(!this.isValid||!t.isValid)return ao.invalid("created by diffing an invalid DateTime");const n={locale:this.locale,numberingSystem:this.numberingSystem,...i},o=(a=e,Array.isArray(a)?a:[a]).map(ao.normalizeUnit),r=t.valueOf()>this.valueOf(),s=po(r?this:t,r?t:this,o,n);var a;return r?s.negate():s}diffNow(t="milliseconds",e={}){return this.diff(hr.now(),t,e)}until(t){return this.isValid?co.fromDateTimes(this,t):this}hasSame(t,e){if(!this.isValid)return!1;const i=t.valueOf(),n=this.setZone(t.zone,{keepLocalTime:!0});return n.startOf(e)<=i&&i<=n.endOf(e)}equals(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)}toRelative(t={}){if(!this.isValid)return null;const e=t.base||hr.fromObject({},{zone:this.zone}),i=t.padding?this<e?-t.padding:t.padding:0;let n=["years","months","days","hours","minutes","seconds"],o=t.unit;return Array.isArray(t.unit)&&(n=t.unit,o=void 0),lr(e,this.plus(i),{...t,numeric:"always",units:n,unit:o})}toRelativeCalendar(t={}){return this.isValid?lr(t.base||hr.fromObject({},{zone:this.zone}),this,{...t,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...t){if(!t.every(hr.isDateTime))throw new ke("min requires all arguments be DateTimes");return ti(t,(t=>t.valueOf()),Math.min)}static max(...t){if(!t.every(hr.isDateTime))throw new ke("max requires all arguments be DateTimes");return ti(t,(t=>t.valueOf()),Math.max)}static fromFormatExplain(t,e,i={}){const{locale:n=null,numberingSystem:o=null}=i;return Do(pn.fromOpts({locale:n,numberingSystem:o,defaultToEN:!0}),t,e)}static fromStringExplain(t,e,i={}){return hr.fromFormatExplain(t,e,i)}static get DATE_SHORT(){return Me}static get DATE_MED(){return De}static get DATE_MED_WITH_WEEKDAY(){return $e}static get DATE_FULL(){return Ae}static get DATE_HUGE(){return Le}static get TIME_SIMPLE(){return Oe}static get TIME_WITH_SECONDS(){return Pe}static get TIME_WITH_SHORT_OFFSET(){return Ie}static get TIME_WITH_LONG_OFFSET(){return Ne}static get TIME_24_SIMPLE(){return ze}static get TIME_24_WITH_SECONDS(){return Re}static get TIME_24_WITH_SHORT_OFFSET(){return Be}static get TIME_24_WITH_LONG_OFFSET(){return Fe}static get DATETIME_SHORT(){return qe}static get DATETIME_SHORT_WITH_SECONDS(){return je}static get DATETIME_MED(){return Ze}static get DATETIME_MED_WITH_SECONDS(){return He}static get DATETIME_MED_WITH_WEEKDAY(){return Ue}static get DATETIME_FULL(){return Ve}static get DATETIME_FULL_WITH_SECONDS(){return We}static get DATETIME_HUGE(){return Ge}static get DATETIME_HUGE_WITH_SECONDS(){return Ye}}function ur(t){if(hr.isDateTime(t))return t;if(t&&t.valueOf&&Je(t.valueOf()))return hr.fromJSDate(t);if(t&&"object"==typeof t)return hr.fromObject(t);throw new ke(`Unknown datetime argument: ${t}, of type ${typeof t}`)}class dr extends tt{constructor(){super(...arguments),this.ttl=6e4,this.max=20,this.keyedAssets={},this.locale=[...navigator.languages],this.fields={},this.groups={},this.languages={},this.pinnedFields=[],this.langService=new fe,this.humanizer=new ge(this.langService),this.pendingResolves={},this.fetching={}}firstUpdated(){this.cache=me(this.max,this.ttl);const t=[];this.completionEndpoint&&t.push(Wt(this.completionEndpoint).then((t=>{this.schema=t.json.context,this.fnOptions=t.json.functions}))),this.fieldsEndpoint&&t.push(Xt(this.fieldsEndpoint).then((t=>{this.keyedAssets.fields=[],this.pinnedFields=[],t.forEach((t=>{this.keyedAssets.fields.push(t.key),this.fields[t.key]=t,t.pinned&&this.pinnedFields.push(t)})),this.pinnedFields.sort(((t,e)=>e.priority-t.priority))}))),this.globalsEndpoint&&t.push(Xt(this.globalsEndpoint).then((t=>{this.keyedAssets.globals=t.map((t=>t.key))}))),this.languagesEndpoint&&t.push(Xt(this.languagesEndpoint).then((t=>{this.languages=t.reduce((function(t,e){return t[e.value]=e.name,t}),{})}))),this.groupsEndpoint&&t.push(Xt(this.groupsEndpoint).then((t=>{t.forEach((t=>{this.groups[t.uuid]=t}))}))),this.workspaceEndpoint&&t.push(Wt(this.workspaceEndpoint).then((t=>{this.workspace=t.json;const e=t.headers.get("content-language");e&&(this.locale=[e,...this.locale])}))),this.httpComplete=Promise.all(t)}getLanguageCode(){return this.locale.length>0?this.locale[0].split("-")[0]:"en"}getShortDuration(t){const e=hr.fromISO(t),i=hr.now(),n=e.diff(i).valueOf();return this.humanizer.humanize(n,{language:this.getLanguageCode(),largest:1,round:!1})}setKeyedAssets(t,e){this.keyedAssets[t]=e}updated(t){super.updated(t)}getCompletionSchema(){return this.schema}getFunctions(){return this.fnOptions}getKeyedAssets(){return this.keyedAssets}getContactField(t){return this.fields[t]}getPinnedFields(){return this.pinnedFields}getLanguageName(t){return this.languages[t]}isDynamicGroup(t){const e=this.groups[t];return!(!e||!e.query)}getWorkspace(){return this.workspace}formatDate(t){return new Date(t).toLocaleString(this.locale,{year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric"})}getUrl(t,e){return!(e=e||{}).force&&this.cache.has(t)?new Promise((e=>{e(this.cache.get(t))})):Wt(t,e.controller,e.headers||{}).then((e=>new Promise(((i,n)=>{e.status>=200&&e.status<=300?(this.cache.set(t,e),i(e)):n("Status: "+e.status)}))))}getResults(t,e){e=e||{};const i="results_"+t,n=this.cache.get(i);return!e.force&&n?new Promise((t=>{t(n)})):new Promise((e=>{const n=this.pendingResolves[t]||[];n.push(e),this.pendingResolves[t]=n,n.length<=1&&Kt(t).then((e=>{this.cache.set(i,e);const n=this.pendingResolves[t]||[];for(;n.length>0;){n.pop()(e)}}))}))}updateCache(t,e){this.cache.set(t,e),this.fireCustomEvent(de.StoreUpdated,{url:t,data:e})}makeRequest(t,e){const i=this.fetching[t],n=(new Date).getTime();if(i&&n-i<500)return;this.fetching[t]=n,e=e||{};const o=this.cache.get(t);o&&!e.force?this.fireCustomEvent(de.StoreUpdated,{url:t,data:o}):Kt(t).then((i=>{i=e.prepareData?e.prepareData(i):i,this.cache.set(t,i),this.fireCustomEvent(de.StoreUpdated,{url:t,data:i}),delete this.fetching[t]}))}}t([it({type:Number})],dr.prototype,"ttl",void 0),t([it({type:Number})],dr.prototype,"max",void 0),t([it({type:String,attribute:"completion"})],dr.prototype,"completionEndpoint",void 0),t([it({type:String,attribute:"fields"})],dr.prototype,"fieldsEndpoint",void 0),t([it({type:String,attribute:"groups"})],dr.prototype,"groupsEndpoint",void 0),t([it({type:String,attribute:"globals"})],dr.prototype,"globalsEndpoint",void 0),t([it({type:String,attribute:"languages"})],dr.prototype,"languagesEndpoint",void 0),t([it({type:String,attribute:"workspace"})],dr.prototype,"workspaceEndpoint",void 0),t([it({type:Object,attribute:!1})],dr.prototype,"schema",void 0),t([it({type:Object,attribute:!1})],dr.prototype,"fnOptions",void 0),t([it({type:Object,attribute:!1})],dr.prototype,"keyedAssets",void 0);class pr extends tt{constructor(){super(...arguments),this.marginHorizontal=0,this.marginVertical=7,this.scrollPct=75,this.cursorIndex=-1,this.nameKey="name",this.loading=!1,this.getName=function(t){return t[this.nameKey||"name"]},this.renderInputOption=function(){return null},this.scrollHeight=0,this.triggerScroll=!1,this.scrollParent=null,this.setCursor=oe((function(t){t!==this.cursorIndex&&(this.cursorIndex=t)}),50)}static get styles(){return r`
289
+ `}}t([it({type:Boolean})],Ht.prototype,"textarea",void 0),t([it({type:Boolean})],Ht.prototype,"datepicker",void 0),t([it({type:Boolean})],Ht.prototype,"datetimepicker",void 0),t([it({type:String})],Ht.prototype,"placeholder",void 0),t([it({type:String})],Ht.prototype,"value",void 0),t([it({type:String})],Ht.prototype,"name",void 0),t([it({type:Boolean})],Ht.prototype,"password",void 0),t([it({type:Number})],Ht.prototype,"maxlength",void 0),t([it({type:Object})],Ht.prototype,"inputElement",void 0),t([it({type:Object})],Ht.prototype,"dateElement",void 0),t([it({type:Boolean})],Ht.prototype,"clearable",void 0),t([it({type:Boolean})],Ht.prototype,"gsm",void 0),t([it({type:String})],Ht.prototype,"counter",void 0),t([it({type:Boolean})],Ht.prototype,"loading",void 0),t([it({type:Boolean})],Ht.prototype,"submitOnEnter",void 0),t([it()],Ht.prototype,"onBlur",void 0),t([it({type:Boolean})],Ht.prototype,"disabled",void 0),t([it({type:Boolean})],Ht.prototype,"autogrow",void 0);const Ut=/(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))/,Vt=(t={})=>{const e=(t=>{for(const e of document.cookie.split(";")){const i=e.indexOf("=");let n=e.substr(0,i),o=e.substr(i+1);if(n=n.trim(),o=o.trim(),n===t)return o}return null})("csrftoken"),i=e?{"X-CSRFToken":e}:{};return i["X-Requested-With"]="XMLHttpRequest",Object.keys(t).forEach((e=>{i[e]=t[e]})),i},Wt=(t,e=null,i={})=>new Promise(((n,o)=>{const r={method:"GET",headers:Vt(i)};e&&(r.signal=e.signal),fetch(t,r).then((t=>{t.text().then((i=>{let o={};try{o=JSON.parse(i)}catch(t){}n({controller:e,body:i,json:o,headers:t.headers,status:t.status})}))})).catch((t=>{o(t)}))})),Gt=t=>{const e=[];Object.keys(t).forEach((i=>{t[i]&&e.push(i)}));let i=e.join(" ");return i.trim().length>0&&(i=" "+i),i},Yt=(t,e=null)=>new Promise(((i,n)=>{Wt(t,e).then((t=>{i({results:t.json.results,next:t.json.next})})).catch((t=>n(t)))})),Kt=async t=>{if(!t)return new Promise((t=>t([])));let e=[],i=t;for(;i;){const t=await Yt(i);t.results&&(e=e.concat(t.results)),i=t.next}return e},Jt=t=>new Promise(((e,i)=>{Wt(t).then((t=>{e({assets:t.json.results,next:t.json.next})})).catch((t=>i(t)))})),Xt=async t=>{if(!t)return new Promise((t=>t([])));let e=[],i=t;for(;i;){const t=await Jt(i);e=e.concat(t.assets),i=t.next}return e},Qt=(t,e,i={},n=null)=>{const o=Vt(i);n&&(o["Content-Type"]=n);const r={method:"POST",headers:o,body:e};return new Promise(((e,i)=>{fetch(t,r).then((async t=>{t.text().then((i=>{let n={};try{n=JSON.parse(i)}catch(t){}e({body:i,json:n,headers:t.headers,status:t.status})}))})).catch((t=>{i(t)}))}))},te=(t,e)=>Qt(t,JSON.stringify(e),!1,"application/json"),ee=t=>{const e=t.parentNode||t.host;if(e){const t=e instanceof HTMLElement&&window.getComputedStyle(e).overflowY,i=t&&!(t.includes("hidden")||t.includes("visible"));return e?i&&e.scrollHeight>=e.clientHeight?e:ee(e):null}return null};const ie=new class{getCurrentDate(){return new Date}},ne=(t,e={suffix:""})=>{const{compareDate:i,hideRecentText:n,suffix:o}=e,r=i||ie.getCurrentDate(),s=Math.floor((r.getTime()-t.getTime())/1e3);if(s<60)return i?s+"s"+o:!n&&o?o:"just now";if(s<3600)return Math.round(s/60)+"m"+o;if(s<=86400)return Math.round(s/3600)+"h"+o;if(s<=2592e3)return Math.round(s/86400)+"d"+o;if(s<15552e3)return Math.round(s/2592e3)+"mth"+o;return t.getDate()+" "+t.toDateString().match(/ [a-zA-Z]*/)[0].replace(" ","")+(t.getFullYear()==r.getFullYear()?"":" "+t.getFullYear())},oe=(t,e)=>{let i=!0;return function(...n){i&&(i=!1,t.apply(this,n),setTimeout((()=>{i=!0}),e))}},re=(t,e="and")=>1===t.length?t[0]:2===t.length?"html"===t[0].type?O`${t[0]} ${e} ${t[1]}`:t.join(" "+e+" "):"html"===t[0].type?t.map(((i,n)=>n<t.length-1?O`${i}, `:O`${e} ${i}`)):t.join(", ")+e+t[t.length-1],se=(t,e,i="and")=>re(t.map(e),i),ae=t=>"true"===((t=>{let e=null;if(document.cookie&&""!=document.cookie){const i=document.cookie.split(";");for(let n=0;n<i.length;n++){const o=i[n].trim();if(o.substring(0,t.length+1)==t+"="){e=decodeURIComponent(o.substring(t.length+1));break}}}return e})(t)||"");var le,ce,he,ue,de;!function(t){t.MENU_COLLAPSED="menu-collapsed",t.TICKET_SHOW_DETAILS="tickets.show-details"}(le||(le={})),function(t){t.DayFirst="day_first",t.MonthFirst="month_first",t.YearFirst="year_first"}(ce||(ce={})),function(t){t.CampaignEvent="campaign_event",t.ScheduledBroadcast="scheduled_broadcast",t.ScheduledTrigger="scheduled_trigger"}(he||(he={})),function(t){t.Open="open",t.Closed="closed"}(ue||(ue={})),function(t){t.Loaded="temba-loaded",t.Canceled="temba-canceled",t.CursorChanged="temba-cursor-changed",t.Refreshed="temba-refreshed",t.Selection="temba-selection",t.ButtonClicked="temba-button-clicked",t.DialogHidden="temba-dialog-hidden",t.ScrollThreshold="temba-scroll-threshold",t.ContentChanged="temba-content-changed",t.ContextChanged="temba-context-changed",t.FetchComplete="temba-fetch-complete",t.Submitted="temba-submitted",t.Redirected="temba-redirected",t.NoPath="temba-no-path",t.StoreUpdated="temba-store-updated",t.Ready="temba-ready"}(de||(de={}));class pe{constructor(t=0,e=0){this.first=null,this.items=Object.create(null),this.last=null,this.max=t,this.size=0,this.ttl=e}has(t){return t in this.items}clear(){return this.first=null,this.items=Object.create(null),this.last=null,this.size=0,this}delete(t){if(this.has(t)){const e=this.items[t];delete this.items[t],this.size--,null!==e.prev&&(e.prev.next=e.next),null!==e.next&&(e.next.prev=e.prev),this.first===e&&(this.first=e.next),this.last===e&&(this.last=e.prev)}return this}evict(t=!1){if(t||this.size>0){const t=this.first;delete this.items[t.key],this.size--,0===this.size?(this.first=null,this.last=null):(this.first=t.next,this.first.prev=null)}return this}get(t){let e;if(this.has(t)){const i=this.items[t];this.ttl>0&&i.expiry<=(new Date).getTime()?this.delete(t):(e=i.value,this.set(t,e,!0))}return e}keys(){return Object.keys(this.items)}set(t,e,i=!1){let n;if(i||this.has(t)){if(n=this.items[t],n.value=e,this.last!==n){const t=this.last,e=n.next,i=n.prev;this.first===n&&(this.first=n.next),n.next=null,n.prev=this.last,t.next=n,null!==i&&(i.next=e),null!==e&&(e.prev=i)}}else this.max>0&&this.size===this.max&&this.evict(!0),n=this.items[t]={expiry:this.ttl>0?(new Date).getTime()+this.ttl:this.ttl,key:t,prev:this.last,next:null,value:e},1==++this.size?this.first=n:this.last.next=n;return this.last=n,this}}function me(t=1e3,e=0){if(isNaN(t)||t<0)throw new TypeError("Invalid max value");if(isNaN(e)||e<0)throw new TypeError("Invalid ttl value");return new pe(t,e)}var fe=function(){function t(){var t=this;this.languages={ar:{y:function(t){return 1===t?"سنة":"سنوات"},mo:function(t){return 1===t?"شهر":"أشهر"},w:function(t){return 1===t?"أسبوع":"أسابيع"},d:function(t){return 1===t?"يوم":"أيام"},h:function(t){return 1===t?"ساعة":"ساعات"},m:function(e){return["دقيقة","دقائق"][t.getArabicForm(e)]},s:function(t){return 1===t?"ثانية":"ثواني"},ms:function(t){return 1===t?"جزء من الثانية":"أجزاء من الثانية"},decimal:","},bg:{y:function(e){return["години","година","години"][t.getSlavicForm(e)]},mo:function(e){return["месеца","месец","месеца"][t.getSlavicForm(e)]},w:function(e){return["седмици","седмица","седмици"][t.getSlavicForm(e)]},d:function(e){return["дни","ден","дни"][t.getSlavicForm(e)]},h:function(e){return["часа","час","часа"][t.getSlavicForm(e)]},m:function(e){return["минути","минута","минути"][t.getSlavicForm(e)]},s:function(e){return["секунди","секунда","секунди"][t.getSlavicForm(e)]},ms:function(e){return["милисекунди","милисекунда","милисекунди"][t.getSlavicForm(e)]},decimal:","},ca:{y:function(t){return"any"+(1===t?"":"s")},mo:function(t){return"mes"+(1===t?"":"os")},w:function(t){return"setman"+(1===t?"a":"es")},d:function(t){return"di"+(1===t?"a":"es")},h:function(t){return"hor"+(1===t?"a":"es")},m:function(t){return"minut"+(1===t?"":"s")},s:function(t){return"segon"+(1===t?"":"s")},ms:function(t){return"milisegon"+(1===t?"":"s")},decimal:","},cs:{y:function(e){return["rok","roku","roky","let"][t.getCzechOrSlovakForm(e)]},mo:function(e){return["měsíc","měsíce","měsíce","měsíců"][t.getCzechOrSlovakForm(e)]},w:function(e){return["týden","týdne","týdny","týdnů"][t.getCzechOrSlovakForm(e)]},d:function(e){return["den","dne","dny","dní"][t.getCzechOrSlovakForm(e)]},h:function(e){return["hodina","hodiny","hodiny","hodin"][t.getCzechOrSlovakForm(e)]},m:function(e){return["minuta","minuty","minuty","minut"][t.getCzechOrSlovakForm(e)]},s:function(e){return["sekunda","sekundy","sekundy","sekund"][t.getCzechOrSlovakForm(e)]},ms:function(e){return["milisekunda","milisekundy","milisekundy","milisekund"][t.getCzechOrSlovakForm(e)]},decimal:","},da:{y:function(){return"år"},mo:function(t){return"måned"+(1===t?"":"er")},w:function(t){return"uge"+(1===t?"":"r")},d:function(t){return"dag"+(1===t?"":"e")},h:function(t){return"time"+(1===t?"":"r")},m:function(t){return"minut"+(1===t?"":"ter")},s:function(t){return"sekund"+(1===t?"":"er")},ms:function(t){return"millisekund"+(1===t?"":"er")},decimal:","},de:{y:function(t){return"Jahr"+(1===t?"":"e")},mo:function(t){return"Monat"+(1===t?"":"e")},w:function(t){return"Woche"+(1===t?"":"n")},d:function(t){return"Tag"+(1===t?"":"e")},h:function(t){return"Stunde"+(1===t?"":"n")},m:function(t){return"Minute"+(1===t?"":"n")},s:function(t){return"Sekunde"+(1===t?"":"n")},ms:function(t){return"Millisekunde"+(1===t?"":"n")},decimal:","},el:{y:function(t){return 1===t?"χρόνος":"χρόνια"},mo:function(t){return 1===t?"μήνας":"μήνες"},w:function(t){return 1===t?"εβδομάδα":"εβδομάδες"},d:function(t){return 1===t?"μέρα":"μέρες"},h:function(t){return 1===t?"ώρα":"ώρες"},m:function(t){return 1===t?"λεπτό":"λεπτά"},s:function(t){return 1===t?"δευτερόλεπτο":"δευτερόλεπτα"},ms:function(t){return 1===t?"χιλιοστό του δευτερολέπτου":"χιλιοστά του δευτερολέπτου"},decimal:","},en:{y:function(t){return"year"+(1===t?"":"s")},mo:function(t){return"month"+(1===t?"":"s")},w:function(t){return"week"+(1===t?"":"s")},d:function(t){return"day"+(1===t?"":"s")},h:function(t){return"hour"+(1===t?"":"s")},m:function(t){return"minute"+(1===t?"":"s")},s:function(t){return"second"+(1===t?"":"s")},ms:function(t){return"millisecond"+(1===t?"":"s")},decimal:"."},es:{y:function(t){return"año"+(1===t?"":"s")},mo:function(t){return"mes"+(1===t?"":"es")},w:function(t){return"semana"+(1===t?"":"s")},d:function(t){return"día"+(1===t?"":"s")},h:function(t){return"hora"+(1===t?"":"s")},m:function(t){return"minuto"+(1===t?"":"s")},s:function(t){return"segundo"+(1===t?"":"s")},ms:function(t){return"milisegundo"+(1===t?"":"s")},decimal:","},et:{y:function(t){return"aasta"+(1===t?"":"t")},mo:function(t){return"kuu"+(1===t?"":"d")},w:function(t){return"nädal"+(1===t?"":"at")},d:function(t){return"päev"+(1===t?"":"a")},h:function(t){return"tund"+(1===t?"":"i")},m:function(t){return"minut"+(1===t?"":"it")},s:function(t){return"sekund"+(1===t?"":"it")},ms:function(t){return"millisekund"+(1===t?"":"it")},decimal:","},fa:{y:function(){return"سال"},mo:function(){return"ماه"},w:function(){return"هفته"},d:function(){return"روز"},h:function(){return"ساعت"},m:function(){return"دقیقه"},s:function(){return"ثانیه"},ms:function(){return"میلی ثانیه"},decimal:"."},fi:{y:function(t){return 1===t?"vuosi":"vuotta"},mo:function(t){return 1===t?"kuukausi":"kuukautta"},w:function(t){return"viikko"+(1===t?"":"a")},d:function(t){return"päivä"+(1===t?"":"ä")},h:function(t){return"tunti"+(1===t?"":"a")},m:function(t){return"minuutti"+(1===t?"":"a")},s:function(t){return"sekunti"+(1===t?"":"a")},ms:function(t){return"millisekunti"+(1===t?"":"a")},decimal:","},fo:{y:function(){return"ár"},mo:function(t){return 1===t?"mánaður":"mánaðir"},w:function(t){return 1===t?"vika":"vikur"},d:function(t){return 1===t?"dagur":"dagar"},h:function(t){return 1===t?"tími":"tímar"},m:function(t){return 1===t?"minuttur":"minuttir"},s:function(){return"sekund"},ms:function(){return"millisekund"},decimal:","},fr:{y:function(t){return"an"+(t>=2?"s":"")},mo:function(){return"mois"},w:function(t){return"semaine"+(t>=2?"s":"")},d:function(t){return"jour"+(t>=2?"s":"")},h:function(t){return"heure"+(t>=2?"s":"")},m:function(t){return"minute"+(t>=2?"s":"")},s:function(t){return"seconde"+(t>=2?"s":"")},ms:function(t){return"milliseconde"+(t>=2?"s":"")},decimal:","},hr:{y:function(t){return t%10==2||t%10==3||t%10==4?"godine":"godina"},mo:function(t){return 1===t?"mjesec":2===t||3===t||4===t?"mjeseca":"mjeseci"},w:function(t){return t%10==1&&11!==t?"tjedan":"tjedna"},d:function(t){return 1===t?"dan":"dana"},h:function(t){return 1===t?"sat":2===t||3===t||4===t?"sata":"sati"},m:function(t){var e=t%10;return 2!==e&&3!==e&&4!==e||!(t<10||t>14)?"minuta":"minute"},s:function(t){return 10===t||11===t||12===t||13===t||14===t||16===t||17===t||18===t||19===t||t%10==5?"sekundi":t%10==1?"sekunda":t%10==2||t%10==3||t%10==4?"sekunde":"sekundi"},ms:function(t){return 1===t?"milisekunda":t%10==2||t%10==3||t%10==4?"milisekunde":"milisekundi"},decimal:","},hu:{y:function(){return"év"},mo:function(){return"hónap"},w:function(){return"hét"},d:function(){return"nap"},h:function(){return"óra"},m:function(){return"perc"},s:function(){return"másodperc"},ms:function(){return"ezredmásodperc"},decimal:","},id:{y:function(){return"tahun"},mo:function(){return"bulan"},w:function(){return"minggu"},d:function(){return"hari"},h:function(){return"jam"},m:function(){return"menit"},s:function(){return"detik"},ms:function(){return"milidetik"},decimal:"."},is:{y:function(){return"ár"},mo:function(t){return"mánuð"+(1===t?"ur":"ir")},w:function(t){return"vik"+(1===t?"a":"ur")},d:function(t){return"dag"+(1===t?"ur":"ar")},h:function(t){return"klukkutím"+(1===t?"i":"ar")},m:function(t){return"mínút"+(1===t?"a":"ur")},s:function(t){return"sekúnd"+(1===t?"a":"ur")},ms:function(t){return"millisekúnd"+(1===t?"a":"ur")},decimal:"."},it:{y:function(t){return"ann"+(1===t?"o":"i")},mo:function(t){return"mes"+(1===t?"e":"i")},w:function(t){return"settiman"+(1===t?"a":"e")},d:function(t){return"giorn"+(1===t?"o":"i")},h:function(t){return"or"+(1===t?"a":"e")},m:function(t){return"minut"+(1===t?"o":"i")},s:function(t){return"second"+(1===t?"o":"i")},ms:function(t){return"millisecond"+(1===t?"o":"i")},decimal:","},ja:{y:function(){return"年"},mo:function(){return"月"},w:function(){return"週"},d:function(){return"日"},h:function(){return"時間"},m:function(){return"分"},s:function(){return"秒"},ms:function(){return"ミリ秒"},decimal:"."},ko:{y:function(){return"년"},mo:function(){return"개월"},w:function(){return"주일"},d:function(){return"일"},h:function(){return"시간"},m:function(){return"분"},s:function(){return"초"},ms:function(){return"밀리 초"},decimal:"."},lo:{y:function(){return"ປີ"},mo:function(){return"ເດືອນ"},w:function(){return"ອາທິດ"},d:function(){return"ມື້"},h:function(){return"ຊົ່ວໂມງ"},m:function(){return"ນາທີ"},s:function(){return"ວິນາທີ"},ms:function(){return"ມິນລິວິນາທີ"},decimal:","},lt:{y:function(t){return t%10==0||t%100>=10&&t%100<=20?"metų":"metai"},mo:function(e){return["mėnuo","mėnesiai","mėnesių"][t.getLithuanianForm(e)]},w:function(e){return["savaitė","savaitės","savaičių"][t.getLithuanianForm(e)]},d:function(e){return["diena","dienos","dienų"][t.getLithuanianForm(e)]},h:function(e){return["valanda","valandos","valandų"][t.getLithuanianForm(e)]},m:function(e){return["minutė","minutės","minučių"][t.getLithuanianForm(e)]},s:function(e){return["sekundė","sekundės","sekundžių"][t.getLithuanianForm(e)]},ms:function(e){return["milisekundė","milisekundės","milisekundžių"][t.getLithuanianForm(e)]},decimal:","},lv:{y:function(e){return["gads","gadi"][t.getLatvianForm(e)]},mo:function(e){return["mēnesis","mēneši"][t.getLatvianForm(e)]},w:function(e){return["nedēļa","nedēļas"][t.getLatvianForm(e)]},d:function(e){return["diena","dienas"][t.getLatvianForm(e)]},h:function(e){return["stunda","stundas"][t.getLatvianForm(e)]},m:function(e){return["minūte","minūtes"][t.getLatvianForm(e)]},s:function(e){return["sekunde","sekundes"][t.getLatvianForm(e)]},ms:function(e){return["milisekunde","milisekundes"][t.getLatvianForm(e)]},decimal:","},ms:{y:function(){return"tahun"},mo:function(){return"bulan"},w:function(){return"minggu"},d:function(){return"hari"},h:function(){return"jam"},m:function(){return"minit"},s:function(){return"saat"},ms:function(){return"milisaat"},decimal:"."},nl:{y:function(){return"jaar"},mo:function(t){return 1===t?"maand":"maanden"},w:function(t){return 1===t?"week":"weken"},d:function(t){return 1===t?"dag":"dagen"},h:function(){return"uur"},m:function(t){return 1===t?"minuut":"minuten"},s:function(t){return 1===t?"seconde":"seconden"},ms:function(t){return 1===t?"milliseconde":"milliseconden"},decimal:","},no:{y:function(){return"år"},mo:function(t){return"måned"+(1===t?"":"er")},w:function(t){return"uke"+(1===t?"":"r")},d:function(t){return"dag"+(1===t?"":"er")},h:function(t){return"time"+(1===t?"":"r")},m:function(t){return"minutt"+(1===t?"":"er")},s:function(t){return"sekund"+(1===t?"":"er")},ms:function(t){return"millisekund"+(1===t?"":"er")},decimal:","},pl:{y:function(e){return["rok","roku","lata","lat"][t.getPolishForm(e)]},mo:function(e){return["miesiąc","miesiąca","miesiące","miesięcy"][t.getPolishForm(e)]},w:function(e){return["tydzień","tygodnia","tygodnie","tygodni"][t.getPolishForm(e)]},d:function(e){return["dzień","dnia","dni","dni"][t.getPolishForm(e)]},h:function(e){return["godzina","godziny","godziny","godzin"][t.getPolishForm(e)]},m:function(e){return["minuta","minuty","minuty","minut"][t.getPolishForm(e)]},s:function(e){return["sekunda","sekundy","sekundy","sekund"][t.getPolishForm(e)]},ms:function(e){return["milisekunda","milisekundy","milisekundy","milisekund"][t.getPolishForm(e)]},decimal:","},pt:{y:function(t){return"ano"+(1===t?"":"s")},mo:function(t){return 1===t?"mês":"meses"},w:function(t){return"semana"+(1===t?"":"s")},d:function(t){return"dia"+(1===t?"":"s")},h:function(t){return"hora"+(1===t?"":"s")},m:function(t){return"minuto"+(1===t?"":"s")},s:function(t){return"segundo"+(1===t?"":"s")},ms:function(t){return"milissegundo"+(1===t?"":"s")},decimal:","},ro:{y:function(t){return 1===t?"an":"ani"},mo:function(t){return 1===t?"lună":"luni"},w:function(t){return 1===t?"săptămână":"săptămâni"},d:function(t){return 1===t?"zi":"zile"},h:function(t){return 1===t?"oră":"ore"},m:function(t){return 1===t?"minut":"minute"},s:function(t){return 1===t?"secundă":"secunde"},ms:function(t){return 1===t?"milisecundă":"milisecunde"},decimal:","},ru:{y:function(e){return["лет","год","года"][t.getSlavicForm(e)]},mo:function(e){return["месяцев","месяц","месяца"][t.getSlavicForm(e)]},w:function(e){return["недель","неделя","недели"][t.getSlavicForm(e)]},d:function(e){return["дней","день","дня"][t.getSlavicForm(e)]},h:function(e){return["часов","час","часа"][t.getSlavicForm(e)]},m:function(e){return["минут","минута","минуты"][t.getSlavicForm(e)]},s:function(e){return["секунд","секунда","секунды"][t.getSlavicForm(e)]},ms:function(e){return["миллисекунд","миллисекунда","миллисекунды"][t.getSlavicForm(e)]},decimal:","},uk:{y:function(e){return["років","рік","роки"][t.getSlavicForm(e)]},mo:function(e){return["місяців","місяць","місяці"][t.getSlavicForm(e)]},w:function(e){return["тижнів","тиждень","тижні"][t.getSlavicForm(e)]},d:function(e){return["днів","день","дні"][t.getSlavicForm(e)]},h:function(e){return["годин","година","години"][t.getSlavicForm(e)]},m:function(e){return["хвилин","хвилина","хвилини"][t.getSlavicForm(e)]},s:function(e){return["секунд","секунда","секунди"][t.getSlavicForm(e)]},ms:function(e){return["мілісекунд","мілісекунда","мілісекунди"][t.getSlavicForm(e)]},decimal:","},ur:{y:function(){return"سال"},mo:function(t){return 1===t?"مہینہ":"مہینے"},w:function(t){return 1===t?"ہفتہ":"ہفتے"},d:function(){return"دن"},h:function(t){return 1===t?"گھنٹہ":"گھنٹے"},m:function(){return"منٹ"},s:function(){return"سیکنڈ"},ms:function(){return"ملی سیکنڈ"},decimal:"."},sk:{y:function(e){return["rok","roky","roky","rokov"][t.getCzechOrSlovakForm(e)]},mo:function(e){return["mesiac","mesiace","mesiace","mesiacov"][t.getCzechOrSlovakForm(e)]},w:function(e){return["týždeň","týždne","týždne","týždňov"][t.getCzechOrSlovakForm(e)]},d:function(e){return["deň","dni","dni","dní"][t.getCzechOrSlovakForm(e)]},h:function(e){return["hodina","hodiny","hodiny","hodín"][t.getCzechOrSlovakForm(e)]},m:function(e){return["minúta","minúty","minúty","minút"][t.getCzechOrSlovakForm(e)]},s:function(e){return["sekunda","sekundy","sekundy","sekúnd"][t.getCzechOrSlovakForm(e)]},ms:function(e){return["milisekunda","milisekundy","milisekundy","milisekúnd"][t.getCzechOrSlovakForm(e)]},decimal:","},sv:{y:function(){return"år"},mo:function(t){return"månad"+(1===t?"":"er")},w:function(t){return"veck"+(1===t?"a":"or")},d:function(t){return"dag"+(1===t?"":"ar")},h:function(t){return"timm"+(1===t?"e":"ar")},m:function(t){return"minut"+(1===t?"":"er")},s:function(t){return"sekund"+(1===t?"":"er")},ms:function(t){return"millisekund"+(1===t?"":"er")},decimal:","},tr:{y:function(){return"yıl"},mo:function(){return"ay"},w:function(){return"hafta"},d:function(){return"gün"},h:function(){return"saat"},m:function(){return"dakika"},s:function(){return"saniye"},ms:function(){return"milisaniye"},decimal:","},th:{y:function(){return"ปี"},mo:function(){return"เดือน"},w:function(){return"อาทิตย์"},d:function(){return"วัน"},h:function(){return"ชั่วโมง"},m:function(){return"นาที"},s:function(){return"วินาที"},ms:function(){return"มิลลิวินาที"},decimal:"."},vi:{y:function(){return"năm"},mo:function(){return"tháng"},w:function(){return"tuần"},d:function(){return"ngày"},h:function(){return"giờ"},m:function(){return"phút"},s:function(){return"giây"},ms:function(){return"mili giây"},decimal:","},zh_CN:{y:function(){return"年"},mo:function(){return"个月"},w:function(){return"周"},d:function(){return"天"},h:function(){return"小时"},m:function(){return"分钟"},s:function(){return"秒"},ms:function(){return"毫秒"},decimal:"."},zh_TW:{y:function(){return"年"},mo:function(){return"個月"},w:function(){return"周"},d:function(){return"天"},h:function(){return"小時"},m:function(){return"分鐘"},s:function(){return"秒"},ms:function(){return"毫秒"},decimal:"."}}}return t.prototype.addLanguage=function(t,e){this.languages[t]=e},t.prototype.getCzechForm=function(t){return 1===t?0:Math.floor(t)!==t?1:t%10>=2&&t%10<=4&&t%100<10?2:3},t.prototype.getPolishForm=function(t){return 1===t?0:Math.floor(t)!==t?1:t%10>=2&&t%10<=4&&!(t%100>10&&t%100<20)?2:3},t.prototype.getSlavicForm=function(t){return Math.floor(t)!==t?2:t>=5&&t<=20||t%10>=5&&t%10<=9||t%10==0?0:t%10==1?1:t>1?2:0},t.prototype.getLithuanianForm=function(t){return 1===t||t%10==1&&t%100>20?0:Math.floor(t)!==t||t%10>=2&&t%100>20||t%10>=2&&t%100<10?1:2},t.prototype.getArabicForm=function(t){return t<=2?0:t>2&&t<11?1:0},t.prototype.getCzechOrSlovakForm=function(t){return 1===t?0:Math.floor(t)!==t?1:t%10>=2&&t%10<=4&&t%100<10?2:3},t.prototype.getLatvianForm=function(t){return 1===t||t%10==1&&t%100!=11?0:1},t}(),ge=function(){function t(t){this.languageUtil=t,this.defaultOptions={language:"en",delimiter:", ",spacer:" ",conjunction:"",serialComma:!0,units:["y","mo","w","d","h","m","s"],languages:{},largest:10,decimal:".",round:!1,unitMeasures:{y:315576e5,mo:26298e5,w:6048e5,d:864e5,h:36e5,m:6e4,s:1e3,ms:1}},this.options=void 0,this.options=this.defaultOptions}return t.prototype.humanize=function(t,e){var i=void 0!==e?this.extend(this.options,e):this.defaultOptions;return this.doHumanization(t,i)},t.prototype.setOptions=function(t){this.options=void 0!==t?this.extend(this.defaultOptions,t):this.defaultOptions},t.prototype.getSupportedLanguages=function(){var t=[];for(var e in this.languageUtil.languages)this.languageUtil.languages.hasOwnProperty(e)&&t.push(e);return t},t.prototype.addLanguage=function(t,e){this.languageUtil.addLanguage(t,e)},t.prototype.doHumanization=function(t,e){var i,n,o;t=Math.abs(t);var r=e.languages[e.language]||this.languageUtil.languages[e.language];if(!r)throw new Error("No language "+r+".");var s,a,l,c=[];for(i=0,n=e.units.length;i<n;i++)s=e.units[i],a=e.unitMeasures[s],l=i+1===n?t/a:Math.floor(t/a),c.push({unitCount:l,unitName:s}),t-=l*a;var h=0;for(i=0;i<c.length;i++)if(c[i].unitCount){h=i;break}if(e.round){var u=void 0,d=void 0;for(i=c.length-1;i>=0&&((o=c[i]).unitCount=Math.round(o.unitCount),0!==i);i--)d=c[i-1],u=e.unitMeasures[d.unitName]/e.unitMeasures[o.unitName],(o.unitCount%u==0||e.largest&&e.largest-1<i-h)&&(d.unitCount+=o.unitCount/u,o.unitCount=0)}var p=[];for(i=0,c.length;i<n&&((o=c[i]).unitCount&&p.push(this.render(o.unitCount,o.unitName,r,e)),p.length!==e.largest);i++);return p.length?e.conjunction&&1!==p.length?2===p.length?p.join(e.conjunction):p.length>2?p.slice(0,-1).join(e.delimiter)+(e.serialComma?",":"")+e.conjunction+p.slice(-1):void 0:p.join(e.delimiter):this.render(0,e.units[e.units.length-1],r,e)},t.prototype.render=function(t,e,i,n){var o;o=void 0===n.decimal?i.decimal:n.decimal;var r=t.toString().replace(".",o.toString()),s=i[e](t);return r+n.spacer+s},t.prototype.extend=function(t,e){for(var i in e)t.hasOwnProperty(i)&&(t[i]=e[i]);return t},t}();class ve extends Error{}class ye extends ve{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}}class be extends ve{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}}class _e extends ve{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}}class xe extends ve{}class we extends ve{constructor(t){super(`Invalid unit ${t}`)}}class ke extends ve{}class Ce extends ve{constructor(){super("Zone is an abstract class")}}const Se="numeric",Ee="short",Te="long",Me={year:Se,month:Se,day:Se},De={year:Se,month:Ee,day:Se},$e={year:Se,month:Ee,day:Se,weekday:Ee},Ae={year:Se,month:Te,day:Se},Le={year:Se,month:Te,day:Se,weekday:Te},Oe={hour:Se,minute:Se},Pe={hour:Se,minute:Se,second:Se},Ie={hour:Se,minute:Se,second:Se,timeZoneName:Ee},Ne={hour:Se,minute:Se,second:Se,timeZoneName:Te},ze={hour:Se,minute:Se,hourCycle:"h23"},Re={hour:Se,minute:Se,second:Se,hourCycle:"h23"},Be={hour:Se,minute:Se,second:Se,hourCycle:"h23",timeZoneName:Ee},Fe={hour:Se,minute:Se,second:Se,hourCycle:"h23",timeZoneName:Te},qe={year:Se,month:Se,day:Se,hour:Se,minute:Se},je={year:Se,month:Se,day:Se,hour:Se,minute:Se,second:Se},Ze={year:Se,month:Ee,day:Se,hour:Se,minute:Se},He={year:Se,month:Ee,day:Se,hour:Se,minute:Se,second:Se},Ue={year:Se,month:Ee,day:Se,weekday:Ee,hour:Se,minute:Se},Ve={year:Se,month:Te,day:Se,hour:Se,minute:Se,timeZoneName:Ee},We={year:Se,month:Te,day:Se,hour:Se,minute:Se,second:Se,timeZoneName:Ee},Ge={year:Se,month:Te,day:Se,weekday:Te,hour:Se,minute:Se,timeZoneName:Te},Ye={year:Se,month:Te,day:Se,weekday:Te,hour:Se,minute:Se,second:Se,timeZoneName:Te};function Ke(t){return void 0===t}function Je(t){return"number"==typeof t}function Xe(t){return"number"==typeof t&&t%1==0}function Qe(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(t){return!1}}function ti(t,e,i){if(0!==t.length)return t.reduce(((t,n)=>{const o=[e(n),n];return t&&i(t[0],o[0])===t[0]?t:o}),null)[1]}function ei(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function ii(t,e,i){return Xe(t)&&t>=e&&t<=i}function ni(t,e=2){let i;return i=t<0?"-"+(""+-t).padStart(e,"0"):(""+t).padStart(e,"0"),i}function oi(t){return Ke(t)||null===t||""===t?void 0:parseInt(t,10)}function ri(t){return Ke(t)||null===t||""===t?void 0:parseFloat(t)}function si(t){if(!Ke(t)&&null!==t&&""!==t){const e=1e3*parseFloat("0."+t);return Math.floor(e)}}function ai(t,e,i=!1){const n=10**e;return(i?Math.trunc:Math.round)(t*n)/n}function li(t){return t%4==0&&(t%100!=0||t%400==0)}function ci(t){return li(t)?366:365}function hi(t,e){const i=function(t,e){return t-e*Math.floor(t/e)}(e-1,12)+1;return 2===i?li(t+(e-i)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][i-1]}function ui(t){let e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e),e.setUTCFullYear(e.getUTCFullYear()-1900)),+e}function di(t){const e=(t+Math.floor(t/4)-Math.floor(t/100)+Math.floor(t/400))%7,i=t-1,n=(i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400))%7;return 4===e||3===n?53:52}function pi(t){return t>99?t:t>60?1900+t:2e3+t}function mi(t,e,i,n=null){const o=new Date(t),r={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};n&&(r.timeZone=n);const s={timeZoneName:e,...r},a=new Intl.DateTimeFormat(i,s).formatToParts(o).find((t=>"timezonename"===t.type.toLowerCase()));return a?a.value:null}function fi(t,e){let i=parseInt(t,10);Number.isNaN(i)&&(i=0);const n=parseInt(e,10)||0;return 60*i+(i<0||Object.is(i,-0)?-n:n)}function gi(t){const e=Number(t);if("boolean"==typeof t||""===t||Number.isNaN(e))throw new ke(`Invalid unit value ${t}`);return e}function vi(t,e){const i={};for(const n in t)if(ei(t,n)){const o=t[n];if(null==o)continue;i[e(n)]=gi(o)}return i}function yi(t,e){const i=Math.trunc(Math.abs(t/60)),n=Math.trunc(Math.abs(t%60)),o=t>=0?"+":"-";switch(e){case"short":return`${o}${ni(i,2)}:${ni(n,2)}`;case"narrow":return`${o}${i}${n>0?`:${n}`:""}`;case"techie":return`${o}${ni(i,2)}${ni(n,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function bi(t){return function(t,e){return e.reduce(((e,i)=>(e[i]=t[i],e)),{})}(t,["hour","minute","second","millisecond"])}const _i=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/,xi=["January","February","March","April","May","June","July","August","September","October","November","December"],wi=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],ki=["J","F","M","A","M","J","J","A","S","O","N","D"];function Ci(t){switch(t){case"narrow":return[...ki];case"short":return[...wi];case"long":return[...xi];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const Si=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Ei=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Ti=["M","T","W","T","F","S","S"];function Mi(t){switch(t){case"narrow":return[...Ti];case"short":return[...Ei];case"long":return[...Si];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const Di=["AM","PM"],$i=["Before Christ","Anno Domini"],Ai=["BC","AD"],Li=["B","A"];function Oi(t){switch(t){case"narrow":return[...Li];case"short":return[...Ai];case"long":return[...$i];default:return null}}function Pi(t,e){let i="";for(const n of t)n.literal?i+=n.val:i+=e(n.val);return i}const Ii={D:Me,DD:De,DDD:Ae,DDDD:Le,t:Oe,tt:Pe,ttt:Ie,tttt:Ne,T:ze,TT:Re,TTT:Be,TTTT:Fe,f:qe,ff:Ze,fff:Ve,ffff:Ge,F:je,FF:He,FFF:We,FFFF:Ye};class Ni{static create(t,e={}){return new Ni(t,e)}static parseFormat(t){let e=null,i="",n=!1;const o=[];for(let r=0;r<t.length;r++){const s=t.charAt(r);"'"===s?(i.length>0&&o.push({literal:n,val:i}),e=null,i="",n=!n):n||s===e?i+=s:(i.length>0&&o.push({literal:!1,val:i}),i=s,e=s)}return i.length>0&&o.push({literal:n,val:i}),o}static macroTokenToFormatOpts(t){return Ii[t]}constructor(t,e){this.opts=e,this.loc=t,this.systemLoc=null}formatWithSystemDefault(t,e){null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem());return this.systemLoc.dtFormatter(t,{...this.opts,...e}).format()}formatDateTime(t,e={}){return this.loc.dtFormatter(t,{...this.opts,...e}).format()}formatDateTimeParts(t,e={}){return this.loc.dtFormatter(t,{...this.opts,...e}).formatToParts()}resolvedOptions(t,e={}){return this.loc.dtFormatter(t,{...this.opts,...e}).resolvedOptions()}num(t,e=0){if(this.opts.forceSimple)return ni(t,e);const i={...this.opts};return e>0&&(i.padTo=e),this.loc.numberFormatter(i).format(t)}formatDateTimeFromString(t,e){const i="en"===this.loc.listingMode(),n=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,o=(e,i)=>this.loc.extract(t,e,i),r=e=>t.isOffsetFixed&&0===t.offset&&e.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,e.format):"",s=()=>i?function(t){return Di[t.hour<12?0:1]}(t):o({hour:"numeric",hourCycle:"h12"},"dayperiod"),a=(e,n)=>i?function(t,e){return Ci(e)[t.month-1]}(t,e):o(n?{month:e}:{month:e,day:"numeric"},"month"),l=(e,n)=>i?function(t,e){return Mi(e)[t.weekday-1]}(t,e):o(n?{weekday:e}:{weekday:e,month:"long",day:"numeric"},"weekday"),c=e=>{const i=Ni.macroTokenToFormatOpts(e);return i?this.formatWithSystemDefault(t,i):e},h=e=>i?function(t,e){return Oi(e)[t.year<0?0:1]}(t,e):o({era:e},"era");return Pi(Ni.parseFormat(e),(e=>{switch(e){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"uu":return this.num(Math.floor(t.millisecond/10),2);case"uuu":return this.num(Math.floor(t.millisecond/100));case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12==0?12:t.hour%12);case"hh":return this.num(t.hour%12==0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return r({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return r({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return r({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return s();case"d":return n?o({day:"numeric"},"day"):this.num(t.day);case"dd":return n?o({day:"2-digit"},"day"):this.num(t.day,2);case"c":case"E":return this.num(t.weekday);case"ccc":return l("short",!0);case"cccc":return l("long",!0);case"ccccc":return l("narrow",!0);case"EEE":return l("short",!1);case"EEEE":return l("long",!1);case"EEEEE":return l("narrow",!1);case"L":return n?o({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return n?o({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return a("short",!0);case"LLLL":return a("long",!0);case"LLLLL":return a("narrow",!0);case"M":return n?o({month:"numeric"},"month"):this.num(t.month);case"MM":return n?o({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return a("short",!1);case"MMMM":return a("long",!1);case"MMMMM":return a("narrow",!1);case"y":return n?o({year:"numeric"},"year"):this.num(t.year);case"yy":return n?o({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return n?o({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return n?o({year:"numeric"},"year"):this.num(t.year,6);case"G":return h("short");case"GG":return h("long");case"GGGGG":return h("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);case"WW":return this.num(t.weekNumber,2);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return c(e)}}))}formatDurationFromString(t,e){const i=t=>{switch(t[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},n=Ni.parseFormat(e),o=n.reduce(((t,{literal:e,val:i})=>e?t:t.concat(i)),[]),r=t.shiftTo(...o.map(i).filter((t=>t)));return Pi(n,(t=>e=>{const n=i(e);return n?this.num(t.get(n),e.length):e})(r))}}class zi{constructor(t,e){this.reason=t,this.explanation=e}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}class Ri{get type(){throw new Ce}get name(){throw new Ce}get ianaName(){return this.name}get isUniversal(){throw new Ce}offsetName(t,e){throw new Ce}formatOffset(t,e){throw new Ce}offset(t){throw new Ce}equals(t){throw new Ce}get isValid(){throw new Ce}}let Bi=null;class Fi extends Ri{static get instance(){return null===Bi&&(Bi=new Fi),Bi}get type(){return"system"}get name(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:e,locale:i}){return mi(t,e,i)}formatOffset(t,e){return yi(this.offset(t),e)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return"system"===t.type}get isValid(){return!0}}let qi={};const ji={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};let Zi={};class Hi extends Ri{static create(t){return Zi[t]||(Zi[t]=new Hi(t)),Zi[t]}static resetCache(){Zi={},qi={}}static isValidSpecifier(t){return this.isValidZone(t)}static isValidZone(t){if(!t)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:t}).format(),!0}catch(t){return!1}}constructor(t){super(),this.zoneName=t,this.valid=Hi.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(t,{format:e,locale:i}){return mi(t,e,i,this.name)}formatOffset(t,e){return yi(this.offset(t),e)}offset(t){const e=new Date(t);if(isNaN(e))return NaN;const i=(n=this.name,qi[n]||(qi[n]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:n,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),qi[n]);var n;let[o,r,s,a,l,c,h]=i.formatToParts?function(t,e){const i=t.formatToParts(e),n=[];for(let t=0;t<i.length;t++){const{type:e,value:o}=i[t],r=ji[e];"era"===e?n[r]=o:Ke(r)||(n[r]=parseInt(o,10))}return n}(i,e):function(t,e){const i=t.format(e).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(i),[,o,r,s,a,l,c,h]=n;return[s,o,r,a,l,c,h]}(i,e);"BC"===a&&(o=1-Math.abs(o));let u=+e;const d=u%1e3;return u-=d>=0?d:1e3+d,(ui({year:o,month:r,day:s,hour:24===l?0:l,minute:c,second:h,millisecond:0})-u)/6e4}equals(t){return"iana"===t.type&&t.name===this.name}get isValid(){return this.valid}}let Ui=null;class Vi extends Ri{static get utcInstance(){return null===Ui&&(Ui=new Vi(0)),Ui}static instance(t){return 0===t?Vi.utcInstance:new Vi(t)}static parseSpecifier(t){if(t){const e=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(e)return new Vi(fi(e[1],e[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return 0===this.fixed?"UTC":`UTC${yi(this.fixed,"narrow")}`}get ianaName(){return 0===this.fixed?"Etc/UTC":`Etc/GMT${yi(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,e){return yi(this.fixed,e)}get isUniversal(){return!0}offset(){return this.fixed}equals(t){return"fixed"===t.type&&t.fixed===this.fixed}get isValid(){return!0}}class Wi extends Ri{constructor(t){super(),this.zoneName=t}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function Gi(t,e){if(Ke(t)||null===t)return e;if(t instanceof Ri)return t;if(function(t){return"string"==typeof t}(t)){const i=t.toLowerCase();return"local"===i||"system"===i?e:"utc"===i||"gmt"===i?Vi.utcInstance:Vi.parseSpecifier(i)||Hi.create(t)}return Je(t)?Vi.instance(t):"object"==typeof t&&t.offset&&"number"==typeof t.offset?t:new Wi(t)}let Yi,Ki=()=>Date.now(),Ji="system",Xi=null,Qi=null,tn=null;class en{static get now(){return Ki}static set now(t){Ki=t}static set defaultZone(t){Ji=t}static get defaultZone(){return Gi(Ji,Fi.instance)}static get defaultLocale(){return Xi}static set defaultLocale(t){Xi=t}static get defaultNumberingSystem(){return Qi}static set defaultNumberingSystem(t){Qi=t}static get defaultOutputCalendar(){return tn}static set defaultOutputCalendar(t){tn=t}static get throwOnInvalid(){return Yi}static set throwOnInvalid(t){Yi=t}static resetCaches(){pn.resetCache(),Hi.resetCache()}}let nn={};let on={};function rn(t,e={}){const i=JSON.stringify([t,e]);let n=on[i];return n||(n=new Intl.DateTimeFormat(t,e),on[i]=n),n}let sn={};let an={};let ln=null;function cn(t,e,i,n,o){const r=t.listingMode(i);return"error"===r?null:"en"===r?n(e):o(e)}class hn{constructor(t,e,i){this.padTo=i.padTo||0,this.floor=i.floor||!1;const{padTo:n,floor:o,...r}=i;if(!e||Object.keys(r).length>0){const e={useGrouping:!1,...i};i.padTo>0&&(e.minimumIntegerDigits=i.padTo),this.inf=function(t,e={}){const i=JSON.stringify([t,e]);let n=sn[i];return n||(n=new Intl.NumberFormat(t,e),sn[i]=n),n}(t,e)}}format(t){if(this.inf){const e=this.floor?Math.floor(t):t;return this.inf.format(e)}return ni(this.floor?Math.floor(t):ai(t,3),this.padTo)}}class un{constructor(t,e,i){let n;if(this.opts=i,t.zone.isUniversal){const e=t.offset/60*-1,o=e>=0?`Etc/GMT+${e}`:`Etc/GMT${e}`;0!==t.offset&&Hi.create(o).valid?(n=o,this.dt=t):(n="UTC",i.timeZoneName?this.dt=t:this.dt=0===t.offset?t:hr.fromMillis(t.ts+60*t.offset*1e3))}else"system"===t.zone.type?this.dt=t:(this.dt=t,n=t.zone.name);const o={...this.opts};n&&(o.timeZone=n),this.dtf=rn(e,o)}format(){return this.dtf.format(this.dt.toJSDate())}formatToParts(){return this.dtf.formatToParts(this.dt.toJSDate())}resolvedOptions(){return this.dtf.resolvedOptions()}}class dn{constructor(t,e,i){this.opts={style:"long",...i},!e&&Qe()&&(this.rtf=function(t,e={}){const{base:i,...n}=e,o=JSON.stringify([t,n]);let r=an[o];return r||(r=new Intl.RelativeTimeFormat(t,e),an[o]=r),r}(t,i))}format(t,e){return this.rtf?this.rtf.format(t,e):function(t,e,i="always",n=!1){const o={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},r=-1===["hours","minutes","seconds"].indexOf(t);if("auto"===i&&r){const i="days"===t;switch(e){case 1:return i?"tomorrow":`next ${o[t][0]}`;case-1:return i?"yesterday":`last ${o[t][0]}`;case 0:return i?"today":`this ${o[t][0]}`}}const s=Object.is(e,-0)||e<0,a=Math.abs(e),l=1===a,c=o[t],h=n?l?c[1]:c[2]||c[1]:l?o[t][0]:t;return s?`${a} ${h} ago`:`in ${a} ${h}`}(e,t,this.opts.numeric,"long"!==this.opts.style)}formatToParts(t,e){return this.rtf?this.rtf.formatToParts(t,e):[]}}class pn{static fromOpts(t){return pn.create(t.locale,t.numberingSystem,t.outputCalendar,t.defaultToEN)}static create(t,e,i,n=!1){const o=t||en.defaultLocale,r=o||(n?"en-US":ln||(ln=(new Intl.DateTimeFormat).resolvedOptions().locale,ln)),s=e||en.defaultNumberingSystem,a=i||en.defaultOutputCalendar;return new pn(r,s,a,o)}static resetCache(){ln=null,on={},sn={},an={}}static fromObject({locale:t,numberingSystem:e,outputCalendar:i}={}){return pn.create(t,e,i)}constructor(t,e,i,n){const[o,r,s]=function(t){const e=t.indexOf("-u-");if(-1===e)return[t];{let i;const n=t.substring(0,e);try{i=rn(t).resolvedOptions()}catch(t){i=rn(n).resolvedOptions()}const{numberingSystem:o,calendar:r}=i;return[n,o,r]}}(t);this.locale=o,this.numberingSystem=e||r||null,this.outputCalendar=i||s||null,this.intl=function(t,e,i){return i||e?(t+="-u",i&&(t+=`-ca-${i}`),e&&(t+=`-nu-${e}`),t):t}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=n,this.fastNumbersCached=null}get fastNumbers(){var t;return null==this.fastNumbersCached&&(this.fastNumbersCached=(!(t=this).numberingSystem||"latn"===t.numberingSystem)&&("latn"===t.numberingSystem||!t.locale||t.locale.startsWith("en")||"latn"===new Intl.DateTimeFormat(t.intl).resolvedOptions().numberingSystem)),this.fastNumbersCached}listingMode(){const t=this.isEnglish(),e=!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar);return t&&e?"en":"intl"}clone(t){return t&&0!==Object.getOwnPropertyNames(t).length?pn.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,t.defaultToEN||!1):this}redefaultToEN(t={}){return this.clone({...t,defaultToEN:!0})}redefaultToSystem(t={}){return this.clone({...t,defaultToEN:!1})}months(t,e=!1,i=!0){return cn(this,t,i,Ci,(()=>{const i=e?{month:t,day:"numeric"}:{month:t},n=e?"format":"standalone";return this.monthsCache[n][t]||(this.monthsCache[n][t]=function(t){const e=[];for(let i=1;i<=12;i++){const n=hr.utc(2016,i,1);e.push(t(n))}return e}((t=>this.extract(t,i,"month")))),this.monthsCache[n][t]}))}weekdays(t,e=!1,i=!0){return cn(this,t,i,Mi,(()=>{const i=e?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},n=e?"format":"standalone";return this.weekdaysCache[n][t]||(this.weekdaysCache[n][t]=function(t){const e=[];for(let i=1;i<=7;i++){const n=hr.utc(2016,11,13+i);e.push(t(n))}return e}((t=>this.extract(t,i,"weekday")))),this.weekdaysCache[n][t]}))}meridiems(t=!0){return cn(this,void 0,t,(()=>Di),(()=>{if(!this.meridiemCache){const t={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[hr.utc(2016,11,13,9),hr.utc(2016,11,13,19)].map((e=>this.extract(e,t,"dayperiod")))}return this.meridiemCache}))}eras(t,e=!0){return cn(this,t,e,Oi,(()=>{const e={era:t};return this.eraCache[t]||(this.eraCache[t]=[hr.utc(-40,1,1),hr.utc(2017,1,1)].map((t=>this.extract(t,e,"era")))),this.eraCache[t]}))}extract(t,e,i){const n=this.dtFormatter(t,e).formatToParts().find((t=>t.type.toLowerCase()===i));return n?n.value:null}numberFormatter(t={}){return new hn(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,e={}){return new un(t,this.intl,e)}relFormatter(t={}){return new dn(this.intl,this.isEnglish(),t)}listFormatter(t={}){return function(t,e={}){const i=JSON.stringify([t,e]);let n=nn[i];return n||(n=new Intl.ListFormat(t,e),nn[i]=n),n}(this.intl,t)}isEnglish(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}equals(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar}}function mn(...t){const e=t.reduce(((t,e)=>t+e.source),"");return RegExp(`^${e}$`)}function fn(...t){return e=>t.reduce((([t,i,n],o)=>{const[r,s,a]=o(e,n);return[{...t,...r},s||i,a]}),[{},null,1]).slice(0,2)}function gn(t,...e){if(null==t)return[null,null];for(const[i,n]of e){const e=i.exec(t);if(e)return n(e)}return[null,null]}function vn(...t){return(e,i)=>{const n={};let o;for(o=0;o<t.length;o++)n[t[o]]=oi(e[i+o]);return[n,null,i+o]}}const yn=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,bn=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,_n=RegExp(`${bn.source}${`(?:${yn.source}?(?:\\[(${_i.source})\\])?)?`}`),xn=RegExp(`(?:T${_n.source})?`),wn=vn("weekYear","weekNumber","weekDay"),kn=vn("year","ordinal"),Cn=RegExp(`${bn.source} ?(?:${yn.source}|(${_i.source}))?`),Sn=RegExp(`(?: ${Cn.source})?`);function En(t,e,i){const n=t[e];return Ke(n)?i:oi(n)}function Tn(t,e){return[{hours:En(t,e,0),minutes:En(t,e+1,0),seconds:En(t,e+2,0),milliseconds:si(t[e+3])},null,e+4]}function Mn(t,e){const i=!t[e]&&!t[e+1],n=fi(t[e+1],t[e+2]);return[{},i?null:Vi.instance(n),e+3]}function Dn(t,e){return[{},t[e]?Hi.create(t[e]):null,e+1]}const $n=RegExp(`^T?${bn.source}$`),An=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function Ln(t){const[e,i,n,o,r,s,a,l,c]=t,h="-"===e[0],u=l&&"-"===l[0],d=(t,e=!1)=>void 0!==t&&(e||t&&h)?-t:t;return[{years:d(ri(i)),months:d(ri(n)),weeks:d(ri(o)),days:d(ri(r)),hours:d(ri(s)),minutes:d(ri(a)),seconds:d(ri(l),"-0"===l),milliseconds:d(si(c),u)}]}const On={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Pn(t,e,i,n,o,r,s){const a={year:2===e.length?pi(oi(e)):oi(e),month:wi.indexOf(i)+1,day:oi(n),hour:oi(o),minute:oi(r)};return s&&(a.second=oi(s)),t&&(a.weekday=t.length>3?Si.indexOf(t)+1:Ei.indexOf(t)+1),a}const In=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function Nn(t){const[,e,i,n,o,r,s,a,l,c,h,u]=t,d=Pn(e,o,n,i,r,s,a);let p;return p=l?On[l]:c?0:fi(h,u),[d,new Vi(p)]}const zn=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Rn=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,Bn=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Fn(t){const[,e,i,n,o,r,s,a]=t;return[Pn(e,o,n,i,r,s,a),Vi.utcInstance]}function qn(t){const[,e,i,n,o,r,s,a]=t;return[Pn(e,a,i,n,o,r,s),Vi.utcInstance]}const jn=mn(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,xn),Zn=mn(/(\d{4})-?W(\d\d)(?:-?(\d))?/,xn),Hn=mn(/(\d{4})-?(\d{3})/,xn),Un=mn(_n),Vn=fn((function(t,e){return[{year:En(t,e),month:En(t,e+1,1),day:En(t,e+2,1)},null,e+3]}),Tn,Mn,Dn),Wn=fn(wn,Tn,Mn,Dn),Gn=fn(kn,Tn,Mn,Dn),Yn=fn(Tn,Mn,Dn);const Kn=fn(Tn);const Jn=mn(/(\d{4})-(\d\d)-(\d\d)/,Sn),Xn=mn(Cn),Qn=fn(Tn,Mn,Dn);const to={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},eo={years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6},...to},io={years:{quarters:4,months:12,weeks:52.1775,days:365.2425,hours:8765.82,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:30.436875/7,days:30.436875,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3},...to},no=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],oo=no.slice(0).reverse();function ro(t,e,i=!1){const n={values:i?e.values:{...t.values,...e.values||{}},loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy};return new ao(n)}function so(t,e,i,n,o){const r=t[o][i],s=e[i]/r,a=!(Math.sign(s)===Math.sign(n[o]))&&0!==n[o]&&Math.abs(s)<=1?function(t){return t<0?Math.floor(t):Math.ceil(t)}(s):Math.trunc(s);n[o]+=a,e[i]-=a*r}class ao{constructor(t){const e="longterm"===t.conversionAccuracy||!1;this.values=t.values,this.loc=t.loc||pn.create(),this.conversionAccuracy=e?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=e?io:eo,this.isLuxonDuration=!0}static fromMillis(t,e){return ao.fromObject({milliseconds:t},e)}static fromObject(t,e={}){if(null==t||"object"!=typeof t)throw new ke("Duration.fromObject: argument expected to be an object, got "+(null===t?"null":typeof t));return new ao({values:vi(t,ao.normalizeUnit),loc:pn.fromObject(e),conversionAccuracy:e.conversionAccuracy})}static fromDurationLike(t){if(Je(t))return ao.fromMillis(t);if(ao.isDuration(t))return t;if("object"==typeof t)return ao.fromObject(t);throw new ke(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,e){const[i]=function(t){return gn(t,[An,Ln])}(t);return i?ao.fromObject(i,e):ao.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,e){const[i]=function(t){return gn(t,[$n,Kn])}(t);return i?ao.fromObject(i,e):ao.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,e=null){if(!t)throw new ke("need to specify a reason the Duration is invalid");const i=t instanceof zi?t:new zi(t,e);if(en.throwOnInvalid)throw new _e(i);return new ao({invalid:i})}static normalizeUnit(t){const e={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[t?t.toLowerCase():t];if(!e)throw new we(t);return e}static isDuration(t){return t&&t.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(t,e={}){const i={...e,floor:!1!==e.round&&!1!==e.floor};return this.isValid?Ni.create(this.loc,i).formatDurationFromString(this,t):"Invalid Duration"}toHuman(t={}){const e=no.map((e=>{const i=this.values[e];return Ke(i)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...t,unit:e.slice(0,-1)}).format(i)})).filter((t=>t));return this.loc.listFormatter({type:"conjunction",style:t.listStyle||"narrow",...t}).format(e)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let t="P";return 0!==this.years&&(t+=this.years+"Y"),0===this.months&&0===this.quarters||(t+=this.months+3*this.quarters+"M"),0!==this.weeks&&(t+=this.weeks+"W"),0!==this.days&&(t+=this.days+"D"),0===this.hours&&0===this.minutes&&0===this.seconds&&0===this.milliseconds||(t+="T"),0!==this.hours&&(t+=this.hours+"H"),0!==this.minutes&&(t+=this.minutes+"M"),0===this.seconds&&0===this.milliseconds||(t+=ai(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===t&&(t+="T0S"),t}toISOTime(t={}){if(!this.isValid)return null;const e=this.toMillis();if(e<0||e>=864e5)return null;t={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...t};const i=this.shiftTo("hours","minutes","seconds","milliseconds");let n="basic"===t.format?"hhmm":"hh:mm";t.suppressSeconds&&0===i.seconds&&0===i.milliseconds||(n+="basic"===t.format?"ss":":ss",t.suppressMilliseconds&&0===i.milliseconds||(n+=".SSS"));let o=i.toFormat(n);return t.includePrefix&&(o="T"+o),o}toJSON(){return this.toISO()}toString(){return this.toISO()}toMillis(){return this.as("milliseconds")}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;const e=ao.fromDurationLike(t),i={};for(const t of no)(ei(e.values,t)||ei(this.values,t))&&(i[t]=e.get(t)+this.get(t));return ro(this,{values:i},!0)}minus(t){if(!this.isValid)return this;const e=ao.fromDurationLike(t);return this.plus(e.negate())}mapUnits(t){if(!this.isValid)return this;const e={};for(const i of Object.keys(this.values))e[i]=gi(t(this.values[i],i));return ro(this,{values:e},!0)}get(t){return this[ao.normalizeUnit(t)]}set(t){if(!this.isValid)return this;return ro(this,{values:{...this.values,...vi(t,ao.normalizeUnit)}})}reconfigure({locale:t,numberingSystem:e,conversionAccuracy:i}={}){const n={loc:this.loc.clone({locale:t,numberingSystem:e})};return i&&(n.conversionAccuracy=i),ro(this,n)}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;const t=this.toObject();return function(t,e){oo.reduce(((i,n)=>Ke(e[n])?i:(i&&so(t,e,i,e,n),n)),null)}(this.matrix,t),ro(this,{values:t},!0)}shiftTo(...t){if(!this.isValid)return this;if(0===t.length)return this;t=t.map((t=>ao.normalizeUnit(t)));const e={},i={},n=this.toObject();let o;for(const r of no)if(t.indexOf(r)>=0){o=r;let t=0;for(const e in i)t+=this.matrix[e][r]*i[e],i[e]=0;Je(n[r])&&(t+=n[r]);const s=Math.trunc(t);e[r]=s,i[r]=(1e3*t-1e3*s)/1e3;for(const t in n)no.indexOf(t)>no.indexOf(r)&&so(this.matrix,n,t,e,r)}else Je(n[r])&&(i[r]=n[r]);for(const t in i)0!==i[t]&&(e[o]+=t===o?i[t]:i[t]/this.matrix[o][t]);return ro(this,{values:e},!0).normalize()}negate(){if(!this.isValid)return this;const t={};for(const e of Object.keys(this.values))t[e]=0===this.values[e]?0:-this.values[e];return ro(this,{values:t},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(t){if(!this.isValid||!t.isValid)return!1;if(!this.loc.equals(t.loc))return!1;for(const n of no)if(e=this.values[n],i=t.values[n],!(void 0===e||0===e?void 0===i||0===i:e===i))return!1;var e,i;return!0}}const lo="Invalid Interval";class co{constructor(t){this.s=t.start,this.e=t.end,this.invalid=t.invalid||null,this.isLuxonInterval=!0}static invalid(t,e=null){if(!t)throw new ke("need to specify a reason the Interval is invalid");const i=t instanceof zi?t:new zi(t,e);if(en.throwOnInvalid)throw new be(i);return new co({invalid:i})}static fromDateTimes(t,e){const i=ur(t),n=ur(e),o=function(t,e){return t&&t.isValid?e&&e.isValid?e<t?co.invalid("end before start",`The end of an interval must be after its start, but you had start=${t.toISO()} and end=${e.toISO()}`):null:co.invalid("missing or invalid end"):co.invalid("missing or invalid start")}(i,n);return null==o?new co({start:i,end:n}):o}static after(t,e){const i=ao.fromDurationLike(e),n=ur(t);return co.fromDateTimes(n,n.plus(i))}static before(t,e){const i=ao.fromDurationLike(e),n=ur(t);return co.fromDateTimes(n.minus(i),n)}static fromISO(t,e){const[i,n]=(t||"").split("/",2);if(i&&n){let t,o,r,s;try{t=hr.fromISO(i,e),o=t.isValid}catch(n){o=!1}try{r=hr.fromISO(n,e),s=r.isValid}catch(n){s=!1}if(o&&s)return co.fromDateTimes(t,r);if(o){const i=ao.fromISO(n,e);if(i.isValid)return co.after(t,i)}else if(s){const t=ao.fromISO(i,e);if(t.isValid)return co.before(r,t)}}return co.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static isInterval(t){return t&&t.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return null===this.invalidReason}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(t="milliseconds"){return this.isValid?this.toDuration(t).get(t):NaN}count(t="milliseconds"){if(!this.isValid)return NaN;const e=this.start.startOf(t),i=this.end.startOf(t);return Math.floor(i.diff(e,t).get(t))+1}hasSame(t){return!!this.isValid&&(this.isEmpty()||this.e.minus(1).hasSame(this.s,t))}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(t){return!!this.isValid&&this.s>t}isBefore(t){return!!this.isValid&&this.e<=t}contains(t){return!!this.isValid&&(this.s<=t&&this.e>t)}set({start:t,end:e}={}){return this.isValid?co.fromDateTimes(t||this.s,e||this.e):this}splitAt(...t){if(!this.isValid)return[];const e=t.map(ur).filter((t=>this.contains(t))).sort(),i=[];let{s:n}=this,o=0;for(;n<this.e;){const t=e[o]||this.e,r=+t>+this.e?this.e:t;i.push(co.fromDateTimes(n,r)),n=r,o+=1}return i}splitBy(t){const e=ao.fromDurationLike(t);if(!this.isValid||!e.isValid||0===e.as("milliseconds"))return[];let i,{s:n}=this,o=1;const r=[];for(;n<this.e;){const t=this.start.plus(e.mapUnits((t=>t*o)));i=+t>+this.e?this.e:t,r.push(co.fromDateTimes(n,i)),n=i,o+=1}return r}divideEqually(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]}overlaps(t){return this.e>t.s&&this.s<t.e}abutsStart(t){return!!this.isValid&&+this.e==+t.s}abutsEnd(t){return!!this.isValid&&+t.e==+this.s}engulfs(t){return!!this.isValid&&(this.s<=t.s&&this.e>=t.e)}equals(t){return!(!this.isValid||!t.isValid)&&(this.s.equals(t.s)&&this.e.equals(t.e))}intersection(t){if(!this.isValid)return this;const e=this.s>t.s?this.s:t.s,i=this.e<t.e?this.e:t.e;return e>=i?null:co.fromDateTimes(e,i)}union(t){if(!this.isValid)return this;const e=this.s<t.s?this.s:t.s,i=this.e>t.e?this.e:t.e;return co.fromDateTimes(e,i)}static merge(t){const[e,i]=t.sort(((t,e)=>t.s-e.s)).reduce((([t,e],i)=>e?e.overlaps(i)||e.abutsStart(i)?[t,e.union(i)]:[t.concat([e]),i]:[t,i]),[[],null]);return i&&e.push(i),e}static xor(t){let e=null,i=0;const n=[],o=t.map((t=>[{time:t.s,type:"s"},{time:t.e,type:"e"}])),r=Array.prototype.concat(...o).sort(((t,e)=>t.time-e.time));for(const t of r)i+="s"===t.type?1:-1,1===i?e=t.time:(e&&+e!=+t.time&&n.push(co.fromDateTimes(e,t.time)),e=null);return co.merge(n)}difference(...t){return co.xor([this].concat(t)).map((t=>this.intersection(t))).filter((t=>t&&!t.isEmpty()))}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:lo}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:lo}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:lo}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:lo}toFormat(t,{separator:e=" – "}={}){return this.isValid?`${this.s.toFormat(t)}${e}${this.e.toFormat(t)}`:lo}toDuration(t,e){return this.isValid?this.e.diff(this.s,t,e):ao.invalid(this.invalidReason)}mapEndpoints(t){return co.fromDateTimes(t(this.s),t(this.e))}}class ho{static hasDST(t=en.defaultZone){const e=hr.now().setZone(t).set({month:12});return!t.isUniversal&&e.offset!==e.set({month:6}).offset}static isValidIANAZone(t){return Hi.isValidZone(t)}static normalizeZone(t){return Gi(t,en.defaultZone)}static months(t="long",{locale:e=null,numberingSystem:i=null,locObj:n=null,outputCalendar:o="gregory"}={}){return(n||pn.create(e,i,o)).months(t)}static monthsFormat(t="long",{locale:e=null,numberingSystem:i=null,locObj:n=null,outputCalendar:o="gregory"}={}){return(n||pn.create(e,i,o)).months(t,!0)}static weekdays(t="long",{locale:e=null,numberingSystem:i=null,locObj:n=null}={}){return(n||pn.create(e,i,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:e=null,numberingSystem:i=null,locObj:n=null}={}){return(n||pn.create(e,i,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return pn.create(t).meridiems()}static eras(t="short",{locale:e=null}={}){return pn.create(e,null,"gregory").eras(t)}static features(){return{relative:Qe()}}}function uo(t,e){const i=t=>t.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),n=i(e)-i(t);return Math.floor(ao.fromMillis(n).as("days"))}function po(t,e,i,n){let[o,r,s,a]=function(t,e,i){const n=[["years",(t,e)=>e.year-t.year],["quarters",(t,e)=>e.quarter-t.quarter],["months",(t,e)=>e.month-t.month+12*(e.year-t.year)],["weeks",(t,e)=>{const i=uo(t,e);return(i-i%7)/7}],["days",uo]],o={};let r,s;for(const[a,l]of n)if(i.indexOf(a)>=0){r=a;let i=l(t,e);s=t.plus({[a]:i}),s>e?(t=t.plus({[a]:i-1}),i-=1):t=s,o[a]=i}return[t,o,s,r]}(t,e,i);const l=e-o,c=i.filter((t=>["hours","minutes","seconds","milliseconds"].indexOf(t)>=0));0===c.length&&(s<e&&(s=o.plus({[a]:1})),s!==o&&(r[a]=(r[a]||0)+l/(s-o)));const h=ao.fromObject(r,n);return c.length>0?ao.fromMillis(l,n).shiftTo(...c).plus(h):h}const mo={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},fo={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},go=mo.hanidec.replace(/[\[|\]]/g,"").split("");function vo({numberingSystem:t},e=""){return new RegExp(`${mo[t||"latn"]}${e}`)}function yo(t,e=(t=>t)){return{regex:t,deser:([t])=>e(function(t){let e=parseInt(t,10);if(isNaN(e)){e="";for(let i=0;i<t.length;i++){const n=t.charCodeAt(i);if(-1!==t[i].search(mo.hanidec))e+=go.indexOf(t[i]);else for(const t in fo){const[i,o]=fo[t];n>=i&&n<=o&&(e+=n-i)}}return parseInt(e,10)}return e}(t))}}const bo=`[ ${String.fromCharCode(160)}]`,_o=new RegExp(bo,"g");function xo(t){return t.replace(/\./g,"\\.?").replace(_o,bo)}function wo(t){return t.replace(/\./g,"").replace(_o," ").toLowerCase()}function ko(t,e){return null===t?null:{regex:RegExp(t.map(xo).join("|")),deser:([i])=>t.findIndex((t=>wo(i)===wo(t)))+e}}function Co(t,e){return{regex:t,deser:([,t,e])=>fi(t,e),groups:e}}function So(t){return{regex:t,deser:([t])=>t}}const Eo={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour:{numeric:"h","2-digit":"hh"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"}};let To=null;function Mo(t,e){if(t.literal)return t;const i=Ni.macroTokenToFormatOpts(t.val);if(!i)return t;const n=Ni.create(e,i).formatDateTimeParts((To||(To=hr.fromMillis(1555555555555)),To)).map((t=>function(t,e,i){const{type:n,value:o}=t;if("literal"===n)return{literal:!0,val:o};const r=i[n];let s=Eo[n];return"object"==typeof s&&(s=s[r]),s?{literal:!1,val:s}:void 0}(t,0,i)));return n.includes(void 0)?t:n}function Do(t,e,i){const n=function(t,e){return Array.prototype.concat(...t.map((t=>Mo(t,e))))}(Ni.parseFormat(i),t),o=n.map((e=>function(t,e){const i=vo(e),n=vo(e,"{2}"),o=vo(e,"{3}"),r=vo(e,"{4}"),s=vo(e,"{6}"),a=vo(e,"{1,2}"),l=vo(e,"{1,3}"),c=vo(e,"{1,6}"),h=vo(e,"{1,9}"),u=vo(e,"{2,4}"),d=vo(e,"{4,6}"),p=t=>{return{regex:RegExp((e=t.val,e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"))),deser:([t])=>t,literal:!0};var e},m=(m=>{if(t.literal)return p(m);switch(m.val){case"G":return ko(e.eras("short",!1),0);case"GG":return ko(e.eras("long",!1),0);case"y":return yo(c);case"yy":case"kk":return yo(u,pi);case"yyyy":case"kkkk":return yo(r);case"yyyyy":return yo(d);case"yyyyyy":return yo(s);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return yo(a);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return yo(n);case"MMM":return ko(e.months("short",!0,!1),1);case"MMMM":return ko(e.months("long",!0,!1),1);case"LLL":return ko(e.months("short",!1,!1),1);case"LLLL":return ko(e.months("long",!1,!1),1);case"o":case"S":return yo(l);case"ooo":case"SSS":return yo(o);case"u":return So(h);case"uu":return So(a);case"uuu":case"E":case"c":return yo(i);case"a":return ko(e.meridiems(),0);case"EEE":return ko(e.weekdays("short",!1,!1),1);case"EEEE":return ko(e.weekdays("long",!1,!1),1);case"ccc":return ko(e.weekdays("short",!0,!1),1);case"cccc":return ko(e.weekdays("long",!0,!1),1);case"Z":case"ZZ":return Co(new RegExp(`([+-]${a.source})(?::(${n.source}))?`),2);case"ZZZ":return Co(new RegExp(`([+-]${a.source})(${n.source})?`),2);case"z":return So(/[a-z_+-/]{1,256}?/i);default:return p(m)}})(t)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"};return m.token=t,m}(e,t))),r=o.find((t=>t.invalidReason));if(r)return{input:e,tokens:n,invalidReason:r.invalidReason};{const[t,i]=function(t){const e=t.map((t=>t.regex)).reduce(((t,e)=>`${t}(${e.source})`),"");return[`^${e}$`,t]}(o),r=RegExp(t,"i"),[s,a]=function(t,e,i){const n=t.match(e);if(n){const t={};let e=1;for(const o in i)if(ei(i,o)){const r=i[o],s=r.groups?r.groups+1:1;!r.literal&&r.token&&(t[r.token.val[0]]=r.deser(n.slice(e,e+s))),e+=s}return[n,t]}return[n,{}]}(e,r,i),[l,c,h]=a?function(t){let e,i=null;Ke(t.z)||(i=Hi.create(t.z)),Ke(t.Z)||(i||(i=new Vi(t.Z)),e=t.Z),Ke(t.q)||(t.M=3*(t.q-1)+1),Ke(t.h)||(t.h<12&&1===t.a?t.h+=12:12===t.h&&0===t.a&&(t.h=0)),0===t.G&&t.y&&(t.y=-t.y),Ke(t.u)||(t.S=si(t.u));const n=Object.keys(t).reduce(((e,i)=>{const n=(t=>{switch(t){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}})(i);return n&&(e[n]=t[i]),e}),{});return[n,i,e]}(a):[null,null,void 0];if(ei(a,"a")&&ei(a,"H"))throw new xe("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:n,regex:r,rawMatches:s,matches:a,result:l,zone:c,specificOffset:h}}}const $o=[0,31,59,90,120,151,181,212,243,273,304,334],Ao=[0,31,60,91,121,152,182,213,244,274,305,335];function Lo(t,e){return new zi("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function Oo(t,e,i){const n=new Date(Date.UTC(t,e-1,i));t<100&&t>=0&&n.setUTCFullYear(n.getUTCFullYear()-1900);const o=n.getUTCDay();return 0===o?7:o}function Po(t,e,i){return i+(li(t)?Ao:$o)[e-1]}function Io(t,e){const i=li(t)?Ao:$o,n=i.findIndex((t=>t<e));return{month:n+1,day:e-i[n]}}function No(t){const{year:e,month:i,day:n}=t,o=Po(e,i,n),r=Oo(e,i,n);let s,a=Math.floor((o-r+10)/7);return a<1?(s=e-1,a=di(s)):a>di(e)?(s=e+1,a=1):s=e,{weekYear:s,weekNumber:a,weekday:r,...bi(t)}}function zo(t){const{weekYear:e,weekNumber:i,weekday:n}=t,o=Oo(e,1,4),r=ci(e);let s,a=7*i+n-o-3;a<1?(s=e-1,a+=ci(s)):a>r?(s=e+1,a-=ci(e)):s=e;const{month:l,day:c}=Io(s,a);return{year:s,month:l,day:c,...bi(t)}}function Ro(t){const{year:e,month:i,day:n}=t;return{year:e,ordinal:Po(e,i,n),...bi(t)}}function Bo(t){const{year:e,ordinal:i}=t,{month:n,day:o}=Io(e,i);return{year:e,month:n,day:o,...bi(t)}}function Fo(t){const e=Xe(t.year),i=ii(t.month,1,12),n=ii(t.day,1,hi(t.year,t.month));return e?i?!n&&Lo("day",t.day):Lo("month",t.month):Lo("year",t.year)}function qo(t){const{hour:e,minute:i,second:n,millisecond:o}=t,r=ii(e,0,23)||24===e&&0===i&&0===n&&0===o,s=ii(i,0,59),a=ii(n,0,59),l=ii(o,0,999);return r?s?a?!l&&Lo("millisecond",o):Lo("second",n):Lo("minute",i):Lo("hour",e)}const jo="Invalid DateTime";function Zo(t){return new zi("unsupported zone",`the zone "${t.name}" is not supported`)}function Ho(t){return null===t.weekData&&(t.weekData=No(t.c)),t.weekData}function Uo(t,e){const i={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new hr({...i,...e,old:i})}function Vo(t,e,i){let n=t-60*e*1e3;const o=i.offset(n);if(e===o)return[n,e];n-=60*(o-e)*1e3;const r=i.offset(n);return o===r?[n,o]:[t-60*Math.min(o,r)*1e3,Math.max(o,r)]}function Wo(t,e){const i=new Date(t+=60*e*1e3);return{year:i.getUTCFullYear(),month:i.getUTCMonth()+1,day:i.getUTCDate(),hour:i.getUTCHours(),minute:i.getUTCMinutes(),second:i.getUTCSeconds(),millisecond:i.getUTCMilliseconds()}}function Go(t,e,i){return Vo(ui(t),e,i)}function Yo(t,e){const i=t.o,n=t.c.year+Math.trunc(e.years),o=t.c.month+Math.trunc(e.months)+3*Math.trunc(e.quarters),r={...t.c,year:n,month:o,day:Math.min(t.c.day,hi(n,o))+Math.trunc(e.days)+7*Math.trunc(e.weeks)},s=ao.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),a=ui(r);let[l,c]=Vo(a,i,t.zone);return 0!==s&&(l+=s,c=t.zone.offset(l)),{ts:l,o:c}}function Ko(t,e,i,n,o,r){const{setZone:s,zone:a}=i;if(t&&0!==Object.keys(t).length){const n=e||a,o=hr.fromObject(t,{...i,zone:n,specificOffset:r});return s?o:o.setZone(a)}return hr.invalid(new zi("unparsable",`the input "${o}" can't be parsed as ${n}`))}function Jo(t,e,i=!0){return t.isValid?Ni.create(pn.create("en-US"),{allowZ:i,forceSimple:!0}).formatDateTimeFromString(t,e):null}function Xo(t,e){const i=t.c.year>9999||t.c.year<0;let n="";return i&&t.c.year>=0&&(n+="+"),n+=ni(t.c.year,i?6:4),e?(n+="-",n+=ni(t.c.month),n+="-",n+=ni(t.c.day)):(n+=ni(t.c.month),n+=ni(t.c.day)),n}function Qo(t,e,i,n,o,r){let s=ni(t.c.hour);return e?(s+=":",s+=ni(t.c.minute),0===t.c.second&&i||(s+=":")):s+=ni(t.c.minute),0===t.c.second&&i||(s+=ni(t.c.second),0===t.c.millisecond&&n||(s+=".",s+=ni(t.c.millisecond,3))),o&&(t.isOffsetFixed&&0===t.offset&&!r?s+="Z":t.o<0?(s+="-",s+=ni(Math.trunc(-t.o/60)),s+=":",s+=ni(Math.trunc(-t.o%60))):(s+="+",s+=ni(Math.trunc(t.o/60)),s+=":",s+=ni(Math.trunc(t.o%60)))),r&&(s+="["+t.zone.ianaName+"]"),s}const tr={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},er={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},ir={ordinal:1,hour:0,minute:0,second:0,millisecond:0},nr=["year","month","day","hour","minute","second","millisecond"],or=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],rr=["year","ordinal","hour","minute","second","millisecond"];function sr(t){const e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!e)throw new we(t);return e}function ar(t,e){const i=Gi(e.zone,en.defaultZone),n=pn.fromObject(e),o=en.now();let r,s;if(Ke(t.year))r=o;else{for(const e of nr)Ke(t[e])&&(t[e]=tr[e]);const e=Fo(t)||qo(t);if(e)return hr.invalid(e);const n=i.offset(o);[r,s]=Go(t,n,i)}return new hr({ts:r,zone:i,loc:n,o:s})}function lr(t,e,i){const n=!!Ke(i.round)||i.round,o=(t,o)=>{t=ai(t,n||i.calendary?0:2,!0);return e.loc.clone(i).relFormatter(i).format(t,o)},r=n=>i.calendary?e.hasSame(t,n)?0:e.startOf(n).diff(t.startOf(n),n).get(n):e.diff(t,n).get(n);if(i.unit)return o(r(i.unit),i.unit);for(const t of i.units){const e=r(t);if(Math.abs(e)>=1)return o(e,t)}return o(t>e?-0:0,i.units[i.units.length-1])}function cr(t){let e,i={};return t.length>0&&"object"==typeof t[t.length-1]?(i=t[t.length-1],e=Array.from(t).slice(0,t.length-1)):e=Array.from(t),[i,e]}class hr{constructor(t){const e=t.zone||en.defaultZone;let i=t.invalid||(Number.isNaN(t.ts)?new zi("invalid input"):null)||(e.isValid?null:Zo(e));this.ts=Ke(t.ts)?en.now():t.ts;let n=null,o=null;if(!i){if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(e))[n,o]=[t.old.c,t.old.o];else{const t=e.offset(this.ts);n=Wo(this.ts,t),i=Number.isNaN(n.year)?new zi("invalid input"):null,n=i?null:n,o=i?null:t}}this._zone=e,this.loc=t.loc||pn.create(),this.invalid=i,this.weekData=null,this.c=n,this.o=o,this.isLuxonDateTime=!0}static now(){return new hr({})}static local(){const[t,e]=cr(arguments),[i,n,o,r,s,a,l]=e;return ar({year:i,month:n,day:o,hour:r,minute:s,second:a,millisecond:l},t)}static utc(){const[t,e]=cr(arguments),[i,n,o,r,s,a,l]=e;return t.zone=Vi.utcInstance,ar({year:i,month:n,day:o,hour:r,minute:s,second:a,millisecond:l},t)}static fromJSDate(t,e={}){const i=function(t){return"[object Date]"===Object.prototype.toString.call(t)}(t)?t.valueOf():NaN;if(Number.isNaN(i))return hr.invalid("invalid input");const n=Gi(e.zone,en.defaultZone);return n.isValid?new hr({ts:i,zone:n,loc:pn.fromObject(e)}):hr.invalid(Zo(n))}static fromMillis(t,e={}){if(Je(t))return t<-864e13||t>864e13?hr.invalid("Timestamp out of range"):new hr({ts:t,zone:Gi(e.zone,en.defaultZone),loc:pn.fromObject(e)});throw new ke(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,e={}){if(Je(t))return new hr({ts:1e3*t,zone:Gi(e.zone,en.defaultZone),loc:pn.fromObject(e)});throw new ke("fromSeconds requires a numerical input")}static fromObject(t,e={}){t=t||{};const i=Gi(e.zone,en.defaultZone);if(!i.isValid)return hr.invalid(Zo(i));const n=en.now(),o=Ke(e.specificOffset)?i.offset(n):e.specificOffset,r=vi(t,sr),s=!Ke(r.ordinal),a=!Ke(r.year),l=!Ke(r.month)||!Ke(r.day),c=a||l,h=r.weekYear||r.weekNumber,u=pn.fromObject(e);if((c||s)&&h)throw new xe("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(l&&s)throw new xe("Can't mix ordinal dates with month/day");const d=h||r.weekday&&!c;let p,m,f=Wo(n,o);d?(p=or,m=er,f=No(f)):s?(p=rr,m=ir,f=Ro(f)):(p=nr,m=tr);let g=!1;for(const t of p){Ke(r[t])?r[t]=g?m[t]:f[t]:g=!0}const v=d?function(t){const e=Xe(t.weekYear),i=ii(t.weekNumber,1,di(t.weekYear)),n=ii(t.weekday,1,7);return e?i?!n&&Lo("weekday",t.weekday):Lo("week",t.week):Lo("weekYear",t.weekYear)}(r):s?function(t){const e=Xe(t.year),i=ii(t.ordinal,1,ci(t.year));return e?!i&&Lo("ordinal",t.ordinal):Lo("year",t.year)}(r):Fo(r),y=v||qo(r);if(y)return hr.invalid(y);const b=d?zo(r):s?Bo(r):r,[_,x]=Go(b,o,i),w=new hr({ts:_,zone:i,o:x,loc:u});return r.weekday&&c&&t.weekday!==w.weekday?hr.invalid("mismatched weekday",`you can't specify both a weekday of ${r.weekday} and a date of ${w.toISO()}`):w}static fromISO(t,e={}){const[i,n]=function(t){return gn(t,[jn,Vn],[Zn,Wn],[Hn,Gn],[Un,Yn])}(t);return Ko(i,n,e,"ISO 8601",t)}static fromRFC2822(t,e={}){const[i,n]=function(t){return gn(function(t){return t.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(t),[In,Nn])}(t);return Ko(i,n,e,"RFC 2822",t)}static fromHTTP(t,e={}){const[i,n]=function(t){return gn(t,[zn,Fn],[Rn,Fn],[Bn,qn])}(t);return Ko(i,n,e,"HTTP",e)}static fromFormat(t,e,i={}){if(Ke(t)||Ke(e))throw new ke("fromFormat requires an input string and a format");const{locale:n=null,numberingSystem:o=null}=i,r=pn.fromOpts({locale:n,numberingSystem:o,defaultToEN:!0}),[s,a,l,c]=function(t,e,i){const{result:n,zone:o,specificOffset:r,invalidReason:s}=Do(t,e,i);return[n,o,r,s]}(r,t,e);return c?hr.invalid(c):Ko(s,a,i,`format ${e}`,t,l)}static fromString(t,e,i={}){return hr.fromFormat(t,e,i)}static fromSQL(t,e={}){const[i,n]=function(t){return gn(t,[Jn,Vn],[Xn,Qn])}(t);return Ko(i,n,e,"SQL",t)}static invalid(t,e=null){if(!t)throw new ke("need to specify a reason the DateTime is invalid");const i=t instanceof zi?t:new zi(t,e);if(en.throwOnInvalid)throw new ye(i);return new hr({invalid:i})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}get(t){return this[t]}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?Ho(this).weekYear:NaN}get weekNumber(){return this.isValid?Ho(this).weekNumber:NaN}get weekday(){return this.isValid?Ho(this).weekday:NaN}get ordinal(){return this.isValid?Ro(this.c).ordinal:NaN}get monthShort(){return this.isValid?ho.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?ho.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?ho.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?ho.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return!this.isOffsetFixed&&(this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset)}get isInLeapYear(){return li(this.year)}get daysInMonth(){return hi(this.year,this.month)}get daysInYear(){return this.isValid?ci(this.year):NaN}get weeksInWeekYear(){return this.isValid?di(this.weekYear):NaN}resolvedLocaleOptions(t={}){const{locale:e,numberingSystem:i,calendar:n}=Ni.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:e,numberingSystem:i,outputCalendar:n}}toUTC(t=0,e={}){return this.setZone(Vi.instance(t),e)}toLocal(){return this.setZone(en.defaultZone)}setZone(t,{keepLocalTime:e=!1,keepCalendarTime:i=!1}={}){if((t=Gi(t,en.defaultZone)).equals(this.zone))return this;if(t.isValid){let n=this.ts;if(e||i){const e=t.offset(this.ts),i=this.toObject();[n]=Go(i,e,t)}return Uo(this,{ts:n,zone:t})}return hr.invalid(Zo(t))}reconfigure({locale:t,numberingSystem:e,outputCalendar:i}={}){return Uo(this,{loc:this.loc.clone({locale:t,numberingSystem:e,outputCalendar:i})})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;const e=vi(t,sr),i=!Ke(e.weekYear)||!Ke(e.weekNumber)||!Ke(e.weekday),n=!Ke(e.ordinal),o=!Ke(e.year),r=!Ke(e.month)||!Ke(e.day),s=o||r,a=e.weekYear||e.weekNumber;if((s||n)&&a)throw new xe("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(r&&n)throw new xe("Can't mix ordinal dates with month/day");let l;i?l=zo({...No(this.c),...e}):Ke(e.ordinal)?(l={...this.toObject(),...e},Ke(e.day)&&(l.day=Math.min(hi(l.year,l.month),l.day))):l=Bo({...Ro(this.c),...e});const[c,h]=Go(l,this.o,this.zone);return Uo(this,{ts:c,o:h})}plus(t){if(!this.isValid)return this;return Uo(this,Yo(this,ao.fromDurationLike(t)))}minus(t){if(!this.isValid)return this;return Uo(this,Yo(this,ao.fromDurationLike(t).negate()))}startOf(t){if(!this.isValid)return this;const e={},i=ao.normalizeUnit(t);switch(i){case"years":e.month=1;case"quarters":case"months":e.day=1;case"weeks":case"days":e.hour=0;case"hours":e.minute=0;case"minutes":e.second=0;case"seconds":e.millisecond=0}if("weeks"===i&&(e.weekday=1),"quarters"===i){const t=Math.ceil(this.month/3);e.month=3*(t-1)+1}return this.set(e)}endOf(t){return this.isValid?this.plus({[t]:1}).startOf(t).minus(1):this}toFormat(t,e={}){return this.isValid?Ni.create(this.loc.redefaultToEN(e)).formatDateTimeFromString(this,t):jo}toLocaleString(t=Me,e={}){return this.isValid?Ni.create(this.loc.clone(e),t).formatDateTime(this):jo}toLocaleParts(t={}){return this.isValid?Ni.create(this.loc.clone(t),t).formatDateTimeParts(this):[]}toISO({format:t="extended",suppressSeconds:e=!1,suppressMilliseconds:i=!1,includeOffset:n=!0,extendedZone:o=!1}={}){if(!this.isValid)return null;const r="extended"===t;let s=Xo(this,r);return s+="T",s+=Qo(this,r,e,i,n,o),s}toISODate({format:t="extended"}={}){return this.isValid?Xo(this,"extended"===t):null}toISOWeekDate(){return Jo(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:t=!1,suppressSeconds:e=!1,includeOffset:i=!0,includePrefix:n=!1,extendedZone:o=!1,format:r="extended"}={}){if(!this.isValid)return null;return(n?"T":"")+Qo(this,"extended"===r,e,t,i,o)}toRFC2822(){return Jo(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Jo(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?Xo(this,!0):null}toSQLTime({includeOffset:t=!0,includeZone:e=!1,includeOffsetSpace:i=!0}={}){let n="HH:mm:ss.SSS";return(e||t)&&(i&&(n+=" "),e?n+="z":t&&(n+="ZZ")),Jo(this,n,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():jo}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(t={}){if(!this.isValid)return{};const e={...this.c};return t.includeConfig&&(e.outputCalendar=this.outputCalendar,e.numberingSystem=this.loc.numberingSystem,e.locale=this.loc.locale),e}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(t,e="milliseconds",i={}){if(!this.isValid||!t.isValid)return ao.invalid("created by diffing an invalid DateTime");const n={locale:this.locale,numberingSystem:this.numberingSystem,...i},o=(a=e,Array.isArray(a)?a:[a]).map(ao.normalizeUnit),r=t.valueOf()>this.valueOf(),s=po(r?this:t,r?t:this,o,n);var a;return r?s.negate():s}diffNow(t="milliseconds",e={}){return this.diff(hr.now(),t,e)}until(t){return this.isValid?co.fromDateTimes(this,t):this}hasSame(t,e){if(!this.isValid)return!1;const i=t.valueOf(),n=this.setZone(t.zone,{keepLocalTime:!0});return n.startOf(e)<=i&&i<=n.endOf(e)}equals(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)}toRelative(t={}){if(!this.isValid)return null;const e=t.base||hr.fromObject({},{zone:this.zone}),i=t.padding?this<e?-t.padding:t.padding:0;let n=["years","months","days","hours","minutes","seconds"],o=t.unit;return Array.isArray(t.unit)&&(n=t.unit,o=void 0),lr(e,this.plus(i),{...t,numeric:"always",units:n,unit:o})}toRelativeCalendar(t={}){return this.isValid?lr(t.base||hr.fromObject({},{zone:this.zone}),this,{...t,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...t){if(!t.every(hr.isDateTime))throw new ke("min requires all arguments be DateTimes");return ti(t,(t=>t.valueOf()),Math.min)}static max(...t){if(!t.every(hr.isDateTime))throw new ke("max requires all arguments be DateTimes");return ti(t,(t=>t.valueOf()),Math.max)}static fromFormatExplain(t,e,i={}){const{locale:n=null,numberingSystem:o=null}=i;return Do(pn.fromOpts({locale:n,numberingSystem:o,defaultToEN:!0}),t,e)}static fromStringExplain(t,e,i={}){return hr.fromFormatExplain(t,e,i)}static get DATE_SHORT(){return Me}static get DATE_MED(){return De}static get DATE_MED_WITH_WEEKDAY(){return $e}static get DATE_FULL(){return Ae}static get DATE_HUGE(){return Le}static get TIME_SIMPLE(){return Oe}static get TIME_WITH_SECONDS(){return Pe}static get TIME_WITH_SHORT_OFFSET(){return Ie}static get TIME_WITH_LONG_OFFSET(){return Ne}static get TIME_24_SIMPLE(){return ze}static get TIME_24_WITH_SECONDS(){return Re}static get TIME_24_WITH_SHORT_OFFSET(){return Be}static get TIME_24_WITH_LONG_OFFSET(){return Fe}static get DATETIME_SHORT(){return qe}static get DATETIME_SHORT_WITH_SECONDS(){return je}static get DATETIME_MED(){return Ze}static get DATETIME_MED_WITH_SECONDS(){return He}static get DATETIME_MED_WITH_WEEKDAY(){return Ue}static get DATETIME_FULL(){return Ve}static get DATETIME_FULL_WITH_SECONDS(){return We}static get DATETIME_HUGE(){return Ge}static get DATETIME_HUGE_WITH_SECONDS(){return Ye}}function ur(t){if(hr.isDateTime(t))return t;if(t&&t.valueOf&&Je(t.valueOf()))return hr.fromJSDate(t);if(t&&"object"==typeof t)return hr.fromObject(t);throw new ke(`Unknown datetime argument: ${t}, of type ${typeof t}`)}class dr extends tt{constructor(){super(...arguments),this.ttl=6e4,this.max=20,this.keyedAssets={},this.locale=[...navigator.languages],this.fields={},this.groups={},this.languages={},this.pinnedFields=[],this.langService=new fe,this.humanizer=new ge(this.langService),this.pendingResolves={},this.fetching={}}firstUpdated(){this.cache=me(this.max,this.ttl);const t=[];this.completionEndpoint&&t.push(Wt(this.completionEndpoint).then((t=>{this.schema=t.json.context,this.fnOptions=t.json.functions}))),this.fieldsEndpoint&&t.push(Xt(this.fieldsEndpoint).then((t=>{this.keyedAssets.fields=[],this.pinnedFields=[],t.forEach((t=>{this.keyedAssets.fields.push(t.key),this.fields[t.key]=t,t.pinned&&this.pinnedFields.push(t)})),this.pinnedFields.sort(((t,e)=>e.priority-t.priority))}))),this.globalsEndpoint&&t.push(Xt(this.globalsEndpoint).then((t=>{this.keyedAssets.globals=t.map((t=>t.key))}))),this.languagesEndpoint&&t.push(Xt(this.languagesEndpoint).then((t=>{this.languages=t.reduce((function(t,e){return t[e.value]=e.name,t}),{})}))),this.groupsEndpoint&&t.push(Xt(this.groupsEndpoint).then((t=>{t.forEach((t=>{this.groups[t.uuid]=t}))}))),this.workspaceEndpoint&&t.push(Wt(this.workspaceEndpoint).then((t=>{this.workspace=t.json;const e=t.headers.get("content-language");e&&(this.locale=[e,...this.locale])}))),this.httpComplete=Promise.all(t)}getLanguageCode(){return this.locale.length>0?this.locale[0].split("-")[0]:"en"}getShortDuration(t){const e=hr.fromISO(t),i=hr.now(),n=e.diff(i).valueOf();return this.humanizer.humanize(n,{language:this.getLanguageCode(),largest:1,round:!1})}setKeyedAssets(t,e){this.keyedAssets[t]=e}updated(t){super.updated(t)}getCompletionSchema(){return this.schema}getFunctions(){return this.fnOptions}getKeyedAssets(){return this.keyedAssets}getContactField(t){return this.fields[t]}getPinnedFields(){return this.pinnedFields}getLanguageName(t){return this.languages[t]}isDynamicGroup(t){const e=this.groups[t];return!(!e||!e.query)}getWorkspace(){return this.workspace}formatDate(t){return new Date(t).toLocaleString(this.locale,{year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric"})}postUrl(t,e="",i={},n=null){return Qt(t,e,i,n)}getUrl(t,e){return!(e=e||{}).force&&this.cache.has(t)?new Promise((e=>{e(this.cache.get(t))})):Wt(t,e.controller,e.headers||{}).then((e=>new Promise(((i,n)=>{e.status>=200&&e.status<=300?(this.cache.set(t,e),i(e)):n("Status: "+e.status)}))))}getResults(t,e){e=e||{};const i="results_"+t,n=this.cache.get(i);return!e.force&&n?new Promise((t=>{t(n)})):new Promise((e=>{const n=this.pendingResolves[t]||[];n.push(e),this.pendingResolves[t]=n,n.length<=1&&Kt(t).then((e=>{this.cache.set(i,e);const n=this.pendingResolves[t]||[];for(;n.length>0;){n.pop()(e)}}))}))}updateCache(t,e){this.cache.set(t,e),this.fireCustomEvent(de.StoreUpdated,{url:t,data:e})}makeRequest(t,e){const i=this.fetching[t],n=(new Date).getTime();if(i&&n-i<500)return;this.fetching[t]=n,e=e||{};const o=this.cache.get(t);o&&!e.force?this.fireCustomEvent(de.StoreUpdated,{url:t,data:o}):Kt(t).then((i=>{i=e.prepareData?e.prepareData(i):i,this.cache.set(t,i),this.fireCustomEvent(de.StoreUpdated,{url:t,data:i}),delete this.fetching[t]}))}}t([it({type:Number})],dr.prototype,"ttl",void 0),t([it({type:Number})],dr.prototype,"max",void 0),t([it({type:String,attribute:"completion"})],dr.prototype,"completionEndpoint",void 0),t([it({type:String,attribute:"fields"})],dr.prototype,"fieldsEndpoint",void 0),t([it({type:String,attribute:"groups"})],dr.prototype,"groupsEndpoint",void 0),t([it({type:String,attribute:"globals"})],dr.prototype,"globalsEndpoint",void 0),t([it({type:String,attribute:"languages"})],dr.prototype,"languagesEndpoint",void 0),t([it({type:String,attribute:"workspace"})],dr.prototype,"workspaceEndpoint",void 0),t([it({type:Object,attribute:!1})],dr.prototype,"schema",void 0),t([it({type:Object,attribute:!1})],dr.prototype,"fnOptions",void 0),t([it({type:Object,attribute:!1})],dr.prototype,"keyedAssets",void 0);class pr extends tt{constructor(){super(...arguments),this.marginHorizontal=0,this.marginVertical=7,this.scrollPct=75,this.cursorIndex=-1,this.nameKey="name",this.loading=!1,this.getName=function(t){return t[this.nameKey||"name"]},this.renderInputOption=function(){return null},this.scrollHeight=0,this.triggerScroll=!1,this.scrollParent=null,this.setCursor=oe((function(t){t!==this.cursorIndex&&(this.cursorIndex=t)}),50)}static get styles(){return r`
290
290
  .options-container {
291
291
  background: var(--color-widget-bg-focused);
292
292
  user-select: none;
@@ -475,7 +475,7 @@ function t(t,e,i,n){var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPro
475
475
  <temba-loading></temba-loading>
476
476
  </div>
477
477
  </div>
478
- `}}t([it({type:Number})],pr.prototype,"top",void 0),t([it({type:Number})],pr.prototype,"left",void 0),t([it({type:Number})],pr.prototype,"width",void 0),t([it({type:Number})],pr.prototype,"marginHorizontal",void 0),t([it({type:Number})],pr.prototype,"marginVertical",void 0),t([it({type:Object})],pr.prototype,"anchorTo",void 0),t([it({type:Boolean})],pr.prototype,"visible",void 0),t([it({type:Boolean})],pr.prototype,"block",void 0),t([it({type:Number})],pr.prototype,"scrollPct",void 0),t([it({type:Number})],pr.prototype,"cursorIndex",void 0),t([it({type:Array})],pr.prototype,"options",void 0),t([it({type:Array})],pr.prototype,"tempOptions",void 0),t([it({type:Boolean})],pr.prototype,"poppedTop",void 0),t([it({type:Boolean})],pr.prototype,"spaceSelect",void 0),t([it({type:String})],pr.prototype,"nameKey",void 0),t([it({type:Boolean})],pr.prototype,"loading",void 0),t([it({type:Boolean})],pr.prototype,"collapsed",void 0),t([it({attribute:!1})],pr.prototype,"getName",void 0),t([it({attribute:!1})],pr.prototype,"renderInputOption",void 0),t([it({attribute:!1})],pr.prototype,"renderOption",void 0),t([it({attribute:!1})],pr.prototype,"renderOptionName",void 0),t([it({attribute:!1})],pr.prototype,"renderOptionDetail",void 0),t([it({type:Number})],pr.prototype,"scrollHeight",void 0),t([it({type:Boolean})],pr.prototype,"triggerScroll",void 0);class mr extends ht{constructor(t){if(super(t),this.it=I,t.type!==lt)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===I||null==t)return this.ft=void 0,this.it=t;if(t===P)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this.ft;this.it=t;const e=[t];return e.raw=e,this.ft={_$litType$:this.constructor.resultType,strings:e,values:[]}}}mr.directiveName="unsafeHTML",mr.resultType=1;const fr=ct(mr),gr=(t,e,i)=>{const n=t.substring(1);if("("===n[0])return!0;{const t=n.split(".")[0].toLowerCase();if(!i)return e.indexOf(t)>=0;for(const i of e)if(o=t,0===i.indexOf(o,0))return!0;return!1}var o},vr=t=>t>="a"&&t<="z"||t>="A"&&t<="Z"||t>="0"&&t<="9"||"_"===t,yr=t=>{let e=0;for(const i of t)'"'===i&&e++;return e%2!=0};class br{constructor(t,e){this.expressionPrefix=t,this.allowedTopLevels=e}expressionContext(t){const e=this.findExpressions(t);if(0===e.length)return null;const i=e[e.length-1];return i.end<t.length||i.closed?null:i.text.substring(1)}autoCompleteContext(t){if(yr(t))return null;const e=[];let i="",n=!1,o=!1,r="";for(let s=t.length-1;s>=0;s--){const a=t[s];if(" "===a&&(n=!0),","===a&&(n=!0,"("!==e[e.length-1]&&e.push("(")),")"!==a||o||(n=!0,e.push("("),e.push("(")),'"'===a&&(o=!o),n&&("("!==a||o||("("===e[e.length-1]&&e.pop(),0===e.length&&(n=!1))),"("===a&&""===i&&(r="#"),!(n||o||"("===a&&""===i)){if(!vr(a)&&"."!==a)break;i=a+i}}return i.match(/[A-Za-z][\w]*(\.[\w]+)*/)?r+i:null}functionContext(t){let e=yr(t)?4:6,i="",n="("===t[-1]?0:1;for(let o=t.length-1;o>=0;o--){const r=t[o];if("@"===r)return"";if(6===e)0!==n||!vr(r)&&"."!==r?'"'===r?e=4:"("===r?n--:")"===r&&n++:(e=2,i=r+i);else if(2===e){if(!vr(r)&&"."!==r)return i;i=r+i}else 4===e&&'"'===r&&(e=6)}return""}getContactFields(t){const e={},i=/((parent|child\.)*contact\.)*fields\.([a-z0-9_]+)/g,n=this.findExpressions(t);for(const t of n){let n;for(;n=i.exec(t.text);)e[n[3]]=!0}return Object.keys(e)}findExpressions(t){const e=[];let i=0,n=null,o=0;for(let r=0;r<t.length;r++){const s=t[r],a=r<t.length-1?t[r+1]:0,l=r<t.length-2?t[r+2]:0;if(0===i?s!==this.expressionPrefix||!vr(a)&&"("!==a?s===this.expressionPrefix&&a===this.expressionPrefix&&(i=5):(i=1,n={start:r,end:null,text:s,closed:!1}):1===i?(vr(s)?i=2:"("===s&&(i=3,o+=1),n.text+=s):2===i?n.text+=s:3===i?("("===s?o+=1:")"===s?o-=1:'"'===s&&(i=4),n.text+=s,0===o&&(n.end=r+1)):4===i?('"'===s&&(i=3),n.text+=s):5===i&&(i=0),2===i&&(!vr(a)&&"."!==a||"."===a&&!vr(l))&&(n.end=r+1),null!=n&&(null!=n.end||0===a)){const t=0===a;gr(n.text,this.allowedTopLevels,t)&&(n.closed="("===n.text[1]&&0===o,n.end=r+1,e.push(n)),n=null,i=0}}return e}}var _r={Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"⁡",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",AMP:"&",amp:"&",And:"⩓",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",ap:"≈",apacir:"⩯",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",Barwed:"⌆",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",Because:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxDL:"╗",boxDl:"╖",boxdL:"╕",boxdl:"┐",boxDR:"╔",boxDr:"╓",boxdR:"╒",boxdr:"┌",boxH:"═",boxh:"─",boxHD:"╦",boxHd:"╤",boxhD:"╥",boxhd:"┬",boxHU:"╩",boxHu:"╧",boxhU:"╨",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxUL:"╝",boxUl:"╜",boxuL:"╛",boxul:"┘",boxUR:"╚",boxUr:"╙",boxuR:"╘",boxur:"└",boxV:"║",boxv:"│",boxVH:"╬",boxVh:"╫",boxvH:"╪",boxvh:"┼",boxVL:"╣",boxVl:"╢",boxvL:"╡",boxvl:"┤",boxVR:"╠",boxVr:"╟",boxvR:"╞",boxvr:"├",bprime:"‵",Breve:"˘",breve:"˘",brvbar:"¦",Bscr:"ℬ",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",Cap:"⋒",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",CenterDot:"·",centerdot:"·",Cfr:"ℭ",cfr:"𝔠",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",Colon:"∷",colon:":",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",Conint:"∯",conint:"∮",ContourIntegral:"∮",Copf:"ℂ",copf:"𝕔",coprod:"∐",Coproduct:"∐",COPY:"©",copy:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",Cross:"⨯",cross:"✗",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",Cup:"⋓",cup:"∪",cupbrcap:"⩈",CupCap:"≍",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",Dagger:"‡",dagger:"†",daleth:"ℸ",Darr:"↡",dArr:"⇓",darr:"↓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",DD:"ⅅ",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",Diamond:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",Downarrow:"⇓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",ecir:"≖",Ecirc:"Ê",ecirc:"ê",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",eDot:"≑",edot:"ė",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",Escr:"ℰ",escr:"ℯ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",ExponentialE:"ⅇ",exponentiale:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",ForAll:"∀",forall:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",Fscr:"ℱ",fscr:"𝒻",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",gE:"≧",ge:"≥",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",Gg:"⋙",gg:"≫",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gnE:"≩",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",GT:">",Gt:"≫",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",hArr:"⇔",harr:"↔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",Hfr:"ℌ",hfr:"𝔥",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",Hopf:"ℍ",hopf:"𝕙",horbar:"―",HorizontalLine:"─",Hscr:"ℋ",hscr:"𝒽",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"⁣",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",Ifr:"ℑ",ifr:"𝔦",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Im:"ℑ",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",Int:"∬",int:"∫",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",Iscr:"ℐ",iscr:"𝒾",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",Lang:"⟪",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",Larr:"↞",lArr:"⇐",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",lAtail:"⤛",latail:"⤙",late:"⪭",lates:"⪭︀",lBarr:"⤎",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",lE:"≦",le:"≤",LeftAngleBracket:"⟨",LeftArrow:"←",Leftarrow:"⇐",leftarrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",Ll:"⋘",ll:"≪",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lnE:"≨",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftarrow:"⟵",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",LongRightArrow:"⟶",Longrightarrow:"⟹",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",Lscr:"ℒ",lscr:"𝓁",Lsh:"↰",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",LT:"<",Lt:"≪",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",Mscr:"ℳ",mscr:"𝓂",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",ne:"≠",nearhk:"⤤",neArr:"⇗",nearr:"↗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlArr:"⇍",nlarr:"↚",nldr:"‥",nlE:"≦̸",nle:"≰",nLeftarrow:"⇍",nleftarrow:"↚",nLeftrightarrow:"⇎",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",Nopf:"ℕ",nopf:"𝕟",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nRightarrow:"⇏",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nVDash:"⊯",nVdash:"⊮",nvDash:"⊭",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwArr:"⇖",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",ocir:"⊚",Ocirc:"Ô",ocirc:"ô",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",Or:"⩔",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",Otimes:"⨷",otimes:"⊗",otimesas:"⨶",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",Popf:"ℙ",popf:"𝕡",pound:"£",Pr:"⪻",pr:"≺",prap:"⪷",prcue:"≼",prE:"⪳",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",Prime:"″",prime:"′",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",Qopf:"ℚ",qopf:"𝕢",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",QUOT:'"',quot:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",Rang:"⟫",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",Rarr:"↠",rArr:"⇒",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",rAtail:"⤜",ratail:"⤚",ratio:"∶",rationals:"ℚ",RBarr:"⤐",rBarr:"⤏",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",REG:"®",reg:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",Rfr:"ℜ",rfr:"𝔯",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrow:"→",Rightarrow:"⇒",rightarrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",Ropf:"ℝ",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",Rscr:"ℛ",rscr:"𝓇",Rsh:"↱",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",Sc:"⪼",sc:"≻",scap:"⪸",Scaron:"Š",scaron:"š",sccue:"≽",scE:"⪴",sce:"⪰",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",seArr:"⇘",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",Square:"□",square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",Sub:"⋐",sub:"⊂",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",Subset:"⋐",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",Sum:"∑",sum:"∑",sung:"♪",Sup:"⋑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",Supset:"⋑",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swArr:"⇙",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",Therefore:"∴",therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",Tilde:"∼",tilde:"˜",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",TRADE:"™",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",Uarr:"↟",uArr:"⇑",uarr:"↑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrow:"↑",Uparrow:"⇑",uparrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",Updownarrow:"⇕",updownarrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",upsi:"υ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",vArr:"⇕",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",Vbar:"⫫",vBar:"⫨",vBarv:"⫩",Vcy:"В",vcy:"в",VDash:"⊫",Vdash:"⊩",vDash:"⊨",vdash:"⊢",Vdashl:"⫦",Vee:"⋁",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",Verbar:"‖",verbar:"|",Vert:"‖",vert:"|",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",Wedge:"⋀",wedge:"∧",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",Xi:"Ξ",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",Yuml:"Ÿ",yuml:"ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",Zfr:"ℨ",zfr:"𝔷",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",Zopf:"ℤ",zopf:"𝕫",Zscr:"𝒵",zscr:"𝓏",zwj:"‍",zwnj:"‌"},xr=Object.prototype.hasOwnProperty;function wr(t){return i=t,(e=_r)&&xr.call(e,i)?_r[t]:t;var e,i}var kr=Object.prototype.hasOwnProperty;function Cr(t){var e=[].slice.call(arguments,1);return e.forEach((function(e){if(e){if("object"!=typeof e)throw new TypeError(e+"must be object");Object.keys(e).forEach((function(i){t[i]=e[i]}))}})),t}var Sr=/\\([\\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;function Er(t){return t.indexOf("\\")<0?t:t.replace(Sr,"$1")}function Tr(t){return!(t>=55296&&t<=57343)&&(!(t>=64976&&t<=65007)&&(65535!=(65535&t)&&65534!=(65535&t)&&(!(t>=0&&t<=8)&&(11!==t&&(!(t>=14&&t<=31)&&(!(t>=127&&t<=159)&&!(t>1114111)))))))}function Mr(t){if(t>65535){var e=55296+((t-=65536)>>10),i=56320+(1023&t);return String.fromCharCode(e,i)}return String.fromCharCode(t)}var Dr=/&([a-z#][a-z0-9]{1,31});/gi,$r=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i;function Ar(t,e){var i=0,n=wr(e);return e!==n?n:35===e.charCodeAt(0)&&$r.test(e)&&Tr(i="x"===e[1].toLowerCase()?parseInt(e.slice(2),16):parseInt(e.slice(1),10))?Mr(i):t}function Lr(t){return t.indexOf("&")<0?t:t.replace(Dr,Ar)}var Or=/[&<>"]/,Pr=/[&<>"]/g,Ir={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function Nr(t){return Ir[t]}function zr(t){return Or.test(t)?t.replace(Pr,Nr):t}var Rr={};function Br(t,e){return++e>=t.length-2?e:"paragraph_open"===t[e].type&&t[e].tight&&"inline"===t[e+1].type&&0===t[e+1].content.length&&"paragraph_close"===t[e+2].type&&t[e+2].tight?Br(t,e+2):e}Rr.blockquote_open=function(){return"<blockquote>\n"},Rr.blockquote_close=function(t,e){return"</blockquote>"+Fr(t,e)},Rr.code=function(t,e){return t[e].block?"<pre><code>"+zr(t[e].content)+"</code></pre>"+Fr(t,e):"<code>"+zr(t[e].content)+"</code>"},Rr.fence=function(t,e,i,n,o){var r,s,a,l,c=t[e],h="",u=i.langPrefix;if(c.params){if(s=(r=c.params.split(/\s+/g)).join(" "),a=o.rules.fence_custom,l=r[0],a&&kr.call(a,l))return o.rules.fence_custom[r[0]](t,e,i,n,o);h=' class="'+u+zr(Lr(Er(s)))+'"'}return"<pre><code"+h+">"+(i.highlight&&i.highlight.apply(i.highlight,[c.content].concat(r))||zr(c.content))+"</code></pre>"+Fr(t,e)},Rr.fence_custom={},Rr.heading_open=function(t,e){return"<h"+t[e].hLevel+">"},Rr.heading_close=function(t,e){return"</h"+t[e].hLevel+">\n"},Rr.hr=function(t,e,i){return(i.xhtmlOut?"<hr />":"<hr>")+Fr(t,e)},Rr.bullet_list_open=function(){return"<ul>\n"},Rr.bullet_list_close=function(t,e){return"</ul>"+Fr(t,e)},Rr.list_item_open=function(){return"<li>"},Rr.list_item_close=function(){return"</li>\n"},Rr.ordered_list_open=function(t,e){var i=t[e];return"<ol"+(i.order>1?' start="'+i.order+'"':"")+">\n"},Rr.ordered_list_close=function(t,e){return"</ol>"+Fr(t,e)},Rr.paragraph_open=function(t,e){return t[e].tight?"":"<p>"},Rr.paragraph_close=function(t,e){var i=!(t[e].tight&&e&&"inline"===t[e-1].type&&!t[e-1].content);return(t[e].tight?"":"</p>")+(i?Fr(t,e):"")},Rr.link_open=function(t,e,i){var n=t[e].title?' title="'+zr(Lr(t[e].title))+'"':"",o=i.linkTarget?' target="'+i.linkTarget+'"':"";return'<a href="'+zr(t[e].href)+'"'+n+o+">"},Rr.link_close=function(){return"</a>"},Rr.image=function(t,e,i){var n=' src="'+zr(t[e].src)+'"',o=t[e].title?' title="'+zr(Lr(t[e].title))+'"':"";return"<img"+n+(' alt="'+(t[e].alt?zr(Lr(Er(t[e].alt))):"")+'"')+o+(i.xhtmlOut?" /":"")+">"},Rr.table_open=function(){return"<table>\n"},Rr.table_close=function(){return"</table>\n"},Rr.thead_open=function(){return"<thead>\n"},Rr.thead_close=function(){return"</thead>\n"},Rr.tbody_open=function(){return"<tbody>\n"},Rr.tbody_close=function(){return"</tbody>\n"},Rr.tr_open=function(){return"<tr>"},Rr.tr_close=function(){return"</tr>\n"},Rr.th_open=function(t,e){var i=t[e];return"<th"+(i.align?' style="text-align:'+i.align+'"':"")+">"},Rr.th_close=function(){return"</th>"},Rr.td_open=function(t,e){var i=t[e];return"<td"+(i.align?' style="text-align:'+i.align+'"':"")+">"},Rr.td_close=function(){return"</td>"},Rr.strong_open=function(){return"<strong>"},Rr.strong_close=function(){return"</strong>"},Rr.em_open=function(){return"<em>"},Rr.em_close=function(){return"</em>"},Rr.del_open=function(){return"<del>"},Rr.del_close=function(){return"</del>"},Rr.ins_open=function(){return"<ins>"},Rr.ins_close=function(){return"</ins>"},Rr.mark_open=function(){return"<mark>"},Rr.mark_close=function(){return"</mark>"},Rr.sub=function(t,e){return"<sub>"+zr(t[e].content)+"</sub>"},Rr.sup=function(t,e){return"<sup>"+zr(t[e].content)+"</sup>"},Rr.hardbreak=function(t,e,i){return i.xhtmlOut?"<br />\n":"<br>\n"},Rr.softbreak=function(t,e,i){return i.breaks?i.xhtmlOut?"<br />\n":"<br>\n":"\n"},Rr.text=function(t,e){return zr(t[e].content)},Rr.htmlblock=function(t,e){return t[e].content},Rr.htmltag=function(t,e){return t[e].content},Rr.abbr_open=function(t,e){return'<abbr title="'+zr(Lr(t[e].title))+'">'},Rr.abbr_close=function(){return"</abbr>"},Rr.footnote_ref=function(t,e){var i=Number(t[e].id+1).toString(),n="fnref"+i;return t[e].subId>0&&(n+=":"+t[e].subId),'<sup class="footnote-ref"><a href="#fn'+i+'" id="'+n+'">['+i+"]</a></sup>"},Rr.footnote_block_open=function(t,e,i){return(i.xhtmlOut?'<hr class="footnotes-sep" />\n':'<hr class="footnotes-sep">\n')+'<section class="footnotes">\n<ol class="footnotes-list">\n'},Rr.footnote_block_close=function(){return"</ol>\n</section>\n"},Rr.footnote_open=function(t,e){return'<li id="fn'+Number(t[e].id+1).toString()+'" class="footnote-item">'},Rr.footnote_close=function(){return"</li>\n"},Rr.footnote_anchor=function(t,e){var i="fnref"+Number(t[e].id+1).toString();return t[e].subId>0&&(i+=":"+t[e].subId),' <a href="#'+i+'" class="footnote-backref">↩</a>'},Rr.dl_open=function(){return"<dl>\n"},Rr.dt_open=function(){return"<dt>"},Rr.dd_open=function(){return"<dd>"},Rr.dl_close=function(){return"</dl>\n"},Rr.dt_close=function(){return"</dt>\n"},Rr.dd_close=function(){return"</dd>\n"};var Fr=Rr.getBreak=function(t,e){return(e=Br(t,e))<t.length&&"list_item_close"===t[e].type?"":"\n"};function qr(){this.rules=Cr({},Rr),this.getBreak=Rr.getBreak}function jr(){this.__rules__=[],this.__cache__=null}function Zr(t,e,i,n,o){this.src=t,this.env=n,this.options=i,this.parser=e,this.tokens=o,this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache=[],this.isInLabel=!1,this.linkLevel=0,this.linkContent="",this.labelUnmatchedScopes=0}function Hr(t,e){var i,n,o,r=-1,s=t.posMax,a=t.pos,l=t.isInLabel;if(t.isInLabel)return-1;if(t.labelUnmatchedScopes)return t.labelUnmatchedScopes--,-1;for(t.pos=e+1,t.isInLabel=!0,i=1;t.pos<s;){if(91===(o=t.src.charCodeAt(t.pos)))i++;else if(93===o&&0===--i){n=!0;break}t.parser.skipToken(t)}return n?(r=t.pos,t.labelUnmatchedScopes=0):t.labelUnmatchedScopes=i-1,t.pos=a,t.isInLabel=l,r}function Ur(t,e,i,n){var o,r,s,a,l,c;if(42!==t.charCodeAt(0))return-1;if(91!==t.charCodeAt(1))return-1;if(-1===t.indexOf("]:"))return-1;if((r=Hr(o=new Zr(t,e,i,n,[]),1))<0||58!==t.charCodeAt(r+1))return-1;for(a=o.posMax,s=r+2;s<a&&10!==o.src.charCodeAt(s);s++);return l=t.slice(2,r),0===(c=t.slice(r+2,s).trim()).length?-1:(n.abbreviations||(n.abbreviations={}),void 0===n.abbreviations[":"+l]&&(n.abbreviations[":"+l]=c),s)}function Vr(t){var e=Lr(t);try{e=decodeURI(e)}catch(t){}return encodeURI(e)}function Wr(t,e){var i,n,o,r=e,s=t.posMax;if(60===t.src.charCodeAt(e)){for(e++;e<s;){if(10===(i=t.src.charCodeAt(e)))return!1;if(62===i)return o=Vr(Er(t.src.slice(r+1,e))),!!t.parser.validateLink(o)&&(t.pos=e+1,t.linkContent=o,!0);92===i&&e+1<s?e+=2:e++}return!1}for(n=0;e<s&&32!==(i=t.src.charCodeAt(e))&&!(i<32||127===i);)if(92===i&&e+1<s)e+=2;else{if(40===i&&++n>1)break;if(41===i&&--n<0)break;e++}return r!==e&&(o=Er(t.src.slice(r,e)),!!t.parser.validateLink(o)&&(t.linkContent=o,t.pos=e,!0))}function Gr(t,e){var i,n=e,o=t.posMax,r=t.src.charCodeAt(e);if(34!==r&&39!==r&&40!==r)return!1;for(e++,40===r&&(r=41);e<o;){if((i=t.src.charCodeAt(e))===r)return t.pos=e+1,t.linkContent=Er(t.src.slice(n+1,e)),!0;92===i&&e+1<o?e+=2:e++}return!1}function Yr(t){return t.trim().replace(/\s+/g," ").toUpperCase()}function Kr(t,e,i,n){var o,r,s,a,l,c,h,u,d;if(91!==t.charCodeAt(0))return-1;if(-1===t.indexOf("]:"))return-1;if((r=Hr(o=new Zr(t,e,i,n,[]),0))<0||58!==t.charCodeAt(r+1))return-1;for(a=o.posMax,s=r+2;s<a&&(32===(l=o.src.charCodeAt(s))||10===l);s++);if(!Wr(o,s))return-1;for(h=o.linkContent,c=s=o.pos,s+=1;s<a&&(32===(l=o.src.charCodeAt(s))||10===l);s++);for(s<a&&c!==s&&Gr(o,s)?(u=o.linkContent,s=o.pos):(u="",s=c);s<a&&32===o.src.charCodeAt(s);)s++;return s<a&&10!==o.src.charCodeAt(s)?-1:(d=Yr(t.slice(1,r)),void 0===n.references[d]&&(n.references[d]={title:u,href:h}),s)}qr.prototype.renderInline=function(t,e,i){for(var n=this.rules,o=t.length,r=0,s="";o--;)s+=n[t[r].type](t,r++,e,i,this);return s},qr.prototype.render=function(t,e,i){for(var n=this.rules,o=t.length,r=-1,s="";++r<o;)"inline"===t[r].type?s+=this.renderInline(t[r].children,e,i):s+=n[t[r].type](t,r,e,i,this);return s},jr.prototype.__find__=function(t){for(var e=this.__rules__.length,i=-1;e--;)if(this.__rules__[++i].name===t)return i;return-1},jr.prototype.__compile__=function(){var t=this,e=[""];t.__rules__.forEach((function(t){t.enabled&&t.alt.forEach((function(t){e.indexOf(t)<0&&e.push(t)}))})),t.__cache__={},e.forEach((function(e){t.__cache__[e]=[],t.__rules__.forEach((function(i){i.enabled&&(e&&i.alt.indexOf(e)<0||t.__cache__[e].push(i.fn))}))}))},jr.prototype.at=function(t,e,i){var n=this.__find__(t),o=i||{};if(-1===n)throw new Error("Parser rule not found: "+t);this.__rules__[n].fn=e,this.__rules__[n].alt=o.alt||[],this.__cache__=null},jr.prototype.before=function(t,e,i,n){var o=this.__find__(t),r=n||{};if(-1===o)throw new Error("Parser rule not found: "+t);this.__rules__.splice(o,0,{name:e,enabled:!0,fn:i,alt:r.alt||[]}),this.__cache__=null},jr.prototype.after=function(t,e,i,n){var o=this.__find__(t),r=n||{};if(-1===o)throw new Error("Parser rule not found: "+t);this.__rules__.splice(o+1,0,{name:e,enabled:!0,fn:i,alt:r.alt||[]}),this.__cache__=null},jr.prototype.push=function(t,e,i){var n=i||{};this.__rules__.push({name:t,enabled:!0,fn:e,alt:n.alt||[]}),this.__cache__=null},jr.prototype.enable=function(t,e){t=Array.isArray(t)?t:[t],e&&this.__rules__.forEach((function(t){t.enabled=!1})),t.forEach((function(t){var e=this.__find__(t);if(e<0)throw new Error("Rules manager: invalid rule name "+t);this.__rules__[e].enabled=!0}),this),this.__cache__=null},jr.prototype.disable=function(t){(t=Array.isArray(t)?t:[t]).forEach((function(t){var e=this.__find__(t);if(e<0)throw new Error("Rules manager: invalid rule name "+t);this.__rules__[e].enabled=!1}),this),this.__cache__=null},jr.prototype.getRules=function(t){return null===this.__cache__&&this.__compile__(),this.__cache__[t]||[]},Zr.prototype.pushPending=function(){this.tokens.push({type:"text",content:this.pending,level:this.pendingLevel}),this.pending=""},Zr.prototype.push=function(t){this.pending&&this.pushPending(),this.tokens.push(t),this.pendingLevel=this.level},Zr.prototype.cacheSet=function(t,e){for(var i=this.cache.length;i<=t;i++)this.cache.push(0);this.cache[t]=e},Zr.prototype.cacheGet=function(t){return t<this.cache.length?this.cache[t]:0};function Jr(t){return t.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1")}var Xr=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,Qr=/\((c|tm|r|p)\)/gi,ts={c:"©",r:"®",p:"§",tm:"™"};var es=/['"]/,is=/['"]/g,ns=/[-\s()\[\]]/;function os(t,e){return!(e<0||e>=t.length)&&!ns.test(t[e])}function rs(t,e,i){return t.substr(0,e)+i+t.substr(e+1)}var ss=[["block",function(t){t.inlineMode?t.tokens.push({type:"inline",content:t.src.replace(/\n/g," ").trim(),level:0,lines:[0,1],children:[]}):t.block.parse(t.src,t.options,t.env,t.tokens)}],["abbr",function(t){var e,i,n,o,r=t.tokens;if(!t.inlineMode)for(e=1,i=r.length-1;e<i;e++)if("paragraph_open"===r[e-1].type&&"inline"===r[e].type&&"paragraph_close"===r[e+1].type){for(n=r[e].content;n.length&&!((o=Ur(n,t.inline,t.options,t.env))<0);)n=n.slice(o).trim();r[e].content=n,n.length||(r[e-1].tight=!0,r[e+1].tight=!0)}}],["references",function(t){var e,i,n,o,r=t.tokens;if(t.env.references=t.env.references||{},!t.inlineMode)for(e=1,i=r.length-1;e<i;e++)if("inline"===r[e].type&&"paragraph_open"===r[e-1].type&&"paragraph_close"===r[e+1].type){for(n=r[e].content;n.length&&!((o=Kr(n,t.inline,t.options,t.env))<0);)n=n.slice(o).trim();r[e].content=n,n.length||(r[e-1].tight=!0,r[e+1].tight=!0)}}],["inline",function(t){var e,i,n,o=t.tokens;for(i=0,n=o.length;i<n;i++)"inline"===(e=o[i]).type&&t.inline.parse(e.content,t.options,t.env,e.children)}],["footnote_tail",function(t){var e,i,n,o,r,s,a,l,c,h=0,u=!1,d={};if(t.env.footnotes&&(t.tokens=t.tokens.filter((function(t){return"footnote_reference_open"===t.type?(u=!0,l=[],c=t.label,!1):"footnote_reference_close"===t.type?(u=!1,d[":"+c]=l,!1):(u&&l.push(t),!u)})),t.env.footnotes.list)){for(s=t.env.footnotes.list,t.tokens.push({type:"footnote_block_open",level:h++}),e=0,i=s.length;e<i;e++){for(t.tokens.push({type:"footnote_open",id:e,level:h++}),s[e].tokens?((a=[]).push({type:"paragraph_open",tight:!1,level:h++}),a.push({type:"inline",content:"",level:h,children:s[e].tokens}),a.push({type:"paragraph_close",tight:!1,level:--h})):s[e].label&&(a=d[":"+s[e].label]),t.tokens=t.tokens.concat(a),r="paragraph_close"===t.tokens[t.tokens.length-1].type?t.tokens.pop():null,o=s[e].count>0?s[e].count:1,n=0;n<o;n++)t.tokens.push({type:"footnote_anchor",id:e,subId:n,level:h});r&&t.tokens.push(r),t.tokens.push({type:"footnote_close",level:--h})}t.tokens.push({type:"footnote_block_close",level:--h})}}],["abbr2",function(t){var e,i,n,o,r,s,a,l,c,h,u,d,p=t.tokens;if(t.env.abbreviations)for(t.env.abbrRegExp||(d="(^|["+" \n()[]'\".,!?-".split("").map(Jr).join("")+"])("+Object.keys(t.env.abbreviations).map((function(t){return t.substr(1)})).sort((function(t,e){return e.length-t.length})).map(Jr).join("|")+")($|["+" \n()[]'\".,!?-".split("").map(Jr).join("")+"])",t.env.abbrRegExp=new RegExp(d,"g")),h=t.env.abbrRegExp,i=0,n=p.length;i<n;i++)if("inline"===p[i].type)for(e=(o=p[i].children).length-1;e>=0;e--)if("text"===(r=o[e]).type){for(l=0,s=r.content,h.lastIndex=0,c=r.level,a=[];u=h.exec(s);)h.lastIndex>l&&a.push({type:"text",content:s.slice(l,u.index+u[1].length),level:c}),a.push({type:"abbr_open",title:t.env.abbreviations[":"+u[2]],level:c++}),a.push({type:"text",content:u[2],level:c}),a.push({type:"abbr_close",level:--c}),l=h.lastIndex-u[3].length;a.length&&(l<s.length&&a.push({type:"text",content:s.slice(l),level:c}),p[i].children=o=[].concat(o.slice(0,e),a,o.slice(e+1)))}}],["replacements",function(t){var e,i,n,o,r,s;if(t.options.typographer)for(r=t.tokens.length-1;r>=0;r--)if("inline"===t.tokens[r].type)for(e=(o=t.tokens[r].children).length-1;e>=0;e--)"text"===(i=o[e]).type&&(n=i.content,n=(s=n).indexOf("(")<0?s:s.replace(Qr,(function(t,e){return ts[e.toLowerCase()]})),Xr.test(n)&&(n=n.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---([^-]|$)/gm,"$1—$2").replace(/(^|\s)--(\s|$)/gm,"$1–$2").replace(/(^|[^-\s])--([^-\s]|$)/gm,"$1–$2")),i.content=n)}],["smartquotes",function(t){var e,i,n,o,r,s,a,l,c,h,u,d,p,m,f,g,v;if(t.options.typographer)for(v=[],f=t.tokens.length-1;f>=0;f--)if("inline"===t.tokens[f].type)for(g=t.tokens[f].children,v.length=0,e=0;e<g.length;e++)if("text"===(i=g[e]).type&&!es.test(i.text)){for(a=g[e].level,p=v.length-1;p>=0&&!(v[p].level<=a);p--);v.length=p+1,r=0,s=(n=i.content).length;t:for(;r<s&&(is.lastIndex=r,o=is.exec(n));)if(l=!os(n,o.index-1),r=o.index+1,m="'"===o[0],(c=!os(n,r))||l){if(u=!c,d=!l)for(p=v.length-1;p>=0&&(h=v[p],!(v[p].level<a));p--)if(h.single===m&&v[p].level===a){h=v[p],m?(g[h.token].content=rs(g[h.token].content,h.pos,t.options.quotes[2]),i.content=rs(i.content,o.index,t.options.quotes[3])):(g[h.token].content=rs(g[h.token].content,h.pos,t.options.quotes[0]),i.content=rs(i.content,o.index,t.options.quotes[1])),v.length=p;continue t}u?v.push({token:e,pos:o.index,single:m,level:a}):d&&m&&(i.content=rs(i.content,o.index,"’"))}else m&&(i.content=rs(i.content,o.index,"’"))}}]];function as(){this.options={},this.ruler=new jr;for(var t=0;t<ss.length;t++)this.ruler.push(ss[t][0],ss[t][1])}function ls(t,e,i,n,o){var r,s,a,l,c,h,u;for(this.src=t,this.parser=e,this.options=i,this.env=n,this.tokens=o,this.bMarks=[],this.eMarks=[],this.tShift=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.parentType="root",this.ddIndent=-1,this.level=0,this.result="",h=0,u=!1,a=l=h=0,c=(s=this.src).length;l<c;l++){if(r=s.charCodeAt(l),!u){if(32===r){h++;continue}u=!0}10!==r&&l!==c-1||(10!==r&&l++,this.bMarks.push(a),this.eMarks.push(l),this.tShift.push(h),u=!1,h=0,a=l+1)}this.bMarks.push(s.length),this.eMarks.push(s.length),this.tShift.push(0),this.lineMax=this.bMarks.length-1}function cs(t,e){var i,n,o;return(n=t.bMarks[e]+t.tShift[e])>=(o=t.eMarks[e])||42!==(i=t.src.charCodeAt(n++))&&45!==i&&43!==i||n<o&&32!==t.src.charCodeAt(n)?-1:n}function hs(t,e){var i,n=t.bMarks[e]+t.tShift[e],o=t.eMarks[e];if(n+1>=o)return-1;if((i=t.src.charCodeAt(n++))<48||i>57)return-1;for(;;){if(n>=o)return-1;if(!((i=t.src.charCodeAt(n++))>=48&&i<=57)){if(41===i||46===i)break;return-1}}return n<o&&32!==t.src.charCodeAt(n)?-1:n}as.prototype.process=function(t){var e,i,n;for(e=0,i=(n=this.ruler.getRules("")).length;e<i;e++)n[e](t)},ls.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]},ls.prototype.skipEmptyLines=function(t){for(var e=this.lineMax;t<e&&!(this.bMarks[t]+this.tShift[t]<this.eMarks[t]);t++);return t},ls.prototype.skipSpaces=function(t){for(var e=this.src.length;t<e&&32===this.src.charCodeAt(t);t++);return t},ls.prototype.skipChars=function(t,e){for(var i=this.src.length;t<i&&this.src.charCodeAt(t)===e;t++);return t},ls.prototype.skipCharsBack=function(t,e,i){if(t<=i)return t;for(;t>i;)if(e!==this.src.charCodeAt(--t))return t+1;return t},ls.prototype.getLines=function(t,e,i,n){var o,r,s,a,l,c=t;if(t>=e)return"";if(c+1===e)return r=this.bMarks[c]+Math.min(this.tShift[c],i),s=n?this.eMarks[c]+1:this.eMarks[c],this.src.slice(r,s);for(a=new Array(e-t),o=0;c<e;c++,o++)(l=this.tShift[c])>i&&(l=i),l<0&&(l=0),r=this.bMarks[c]+l,s=c+1<e||n?this.eMarks[c]+1:this.eMarks[c],a[o]=this.src.slice(r,s);return a.join("")};var us={};["article","aside","button","blockquote","body","canvas","caption","col","colgroup","dd","div","dl","dt","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","iframe","li","map","object","ol","output","p","pre","progress","script","section","style","table","tbody","td","textarea","tfoot","th","tr","thead","ul","video"].forEach((function(t){us[t]=!0}));var ds=/^<([a-zA-Z]{1,15})[\s\/>]/,ps=/^<\/([a-zA-Z]{1,15})[\s>]/;function ms(t,e){var i=t.bMarks[e]+t.blkIndent,n=t.eMarks[e];return t.src.substr(i,n-i)}function fs(t,e){var i,n,o=t.bMarks[e]+t.tShift[e],r=t.eMarks[e];return o>=r||126!==(n=t.src.charCodeAt(o++))&&58!==n||o===(i=t.skipSpaces(o))||i>=r?-1:i}var gs=[["code",function(t,e,i){var n,o;if(t.tShift[e]-t.blkIndent<4)return!1;for(o=n=e+1;n<i;)if(t.isEmpty(n))n++;else{if(!(t.tShift[n]-t.blkIndent>=4))break;o=++n}return t.line=n,t.tokens.push({type:"code",content:t.getLines(e,o,4+t.blkIndent,!0),block:!0,lines:[e,t.line],level:t.level}),!0}],["fences",function(t,e,i,n){var o,r,s,a,l,c=!1,h=t.bMarks[e]+t.tShift[e],u=t.eMarks[e];if(h+3>u)return!1;if(126!==(o=t.src.charCodeAt(h))&&96!==o)return!1;if(l=h,(r=(h=t.skipChars(h,o))-l)<3)return!1;if((s=t.src.slice(h,u).trim()).indexOf("`")>=0)return!1;if(n)return!0;for(a=e;!(++a>=i)&&!((h=l=t.bMarks[a]+t.tShift[a])<(u=t.eMarks[a])&&t.tShift[a]<t.blkIndent);)if(t.src.charCodeAt(h)===o&&!(t.tShift[a]-t.blkIndent>=4||(h=t.skipChars(h,o))-l<r||(h=t.skipSpaces(h))<u)){c=!0;break}return r=t.tShift[e],t.line=a+(c?1:0),t.tokens.push({type:"fence",params:s,content:t.getLines(e+1,a,r,!0),lines:[e,t.line],level:t.level}),!0},["paragraph","blockquote","list"]],["blockquote",function(t,e,i,n){var o,r,s,a,l,c,h,u,d,p,m,f=t.bMarks[e]+t.tShift[e],g=t.eMarks[e];if(f>g)return!1;if(62!==t.src.charCodeAt(f++))return!1;if(t.level>=t.options.maxNesting)return!1;if(n)return!0;for(32===t.src.charCodeAt(f)&&f++,l=t.blkIndent,t.blkIndent=0,a=[t.bMarks[e]],t.bMarks[e]=f,r=(f=f<g?t.skipSpaces(f):f)>=g,s=[t.tShift[e]],t.tShift[e]=f-t.bMarks[e],u=t.parser.ruler.getRules("blockquote"),o=e+1;o<i&&!((f=t.bMarks[o]+t.tShift[o])>=(g=t.eMarks[o]));o++)if(62!==t.src.charCodeAt(f++)){if(r)break;for(m=!1,d=0,p=u.length;d<p;d++)if(u[d](t,o,i,!0)){m=!0;break}if(m)break;a.push(t.bMarks[o]),s.push(t.tShift[o]),t.tShift[o]=-1337}else 32===t.src.charCodeAt(f)&&f++,a.push(t.bMarks[o]),t.bMarks[o]=f,r=(f=f<g?t.skipSpaces(f):f)>=g,s.push(t.tShift[o]),t.tShift[o]=f-t.bMarks[o];for(c=t.parentType,t.parentType="blockquote",t.tokens.push({type:"blockquote_open",lines:h=[e,0],level:t.level++}),t.parser.tokenize(t,e,o),t.tokens.push({type:"blockquote_close",level:--t.level}),t.parentType=c,h[1]=t.line,d=0;d<s.length;d++)t.bMarks[d+e]=a[d],t.tShift[d+e]=s[d];return t.blkIndent=l,!0},["paragraph","blockquote","list"]],["hr",function(t,e,i,n){var o,r,s,a=t.bMarks[e],l=t.eMarks[e];if((a+=t.tShift[e])>l)return!1;if(42!==(o=t.src.charCodeAt(a++))&&45!==o&&95!==o)return!1;for(r=1;a<l;){if((s=t.src.charCodeAt(a++))!==o&&32!==s)return!1;s===o&&r++}return!(r<3)&&(n||(t.line=e+1,t.tokens.push({type:"hr",lines:[e,t.line],level:t.level})),!0)},["paragraph","blockquote","list"]],["list",function(t,e,i,n){var o,r,s,a,l,c,h,u,d,p,m,f,g,v,y,b,_,x,w,k,C,S=!0;if((u=hs(t,e))>=0)f=!0;else{if(!((u=cs(t,e))>=0))return!1;f=!1}if(t.level>=t.options.maxNesting)return!1;if(m=t.src.charCodeAt(u-1),n)return!0;for(v=t.tokens.length,f?(h=t.bMarks[e]+t.tShift[e],p=Number(t.src.substr(h,u-h-1)),t.tokens.push({type:"ordered_list_open",order:p,lines:b=[e,0],level:t.level++})):t.tokens.push({type:"bullet_list_open",lines:b=[e,0],level:t.level++}),o=e,y=!1,x=t.parser.ruler.getRules("list");!(!(o<i)||((d=(g=t.skipSpaces(u))>=t.eMarks[o]?1:g-u)>4&&(d=1),d<1&&(d=1),r=u-t.bMarks[o]+d,t.tokens.push({type:"list_item_open",lines:_=[e,0],level:t.level++}),a=t.blkIndent,l=t.tight,s=t.tShift[e],c=t.parentType,t.tShift[e]=g-t.bMarks[e],t.blkIndent=r,t.tight=!0,t.parentType="list",t.parser.tokenize(t,e,i,!0),t.tight&&!y||(S=!1),y=t.line-e>1&&t.isEmpty(t.line-1),t.blkIndent=a,t.tShift[e]=s,t.tight=l,t.parentType=c,t.tokens.push({type:"list_item_close",level:--t.level}),o=e=t.line,_[1]=o,g=t.bMarks[e],o>=i)||t.isEmpty(o)||t.tShift[o]<t.blkIndent);){for(C=!1,w=0,k=x.length;w<k;w++)if(x[w](t,o,i,!0)){C=!0;break}if(C)break;if(f){if((u=hs(t,o))<0)break}else if((u=cs(t,o))<0)break;if(m!==t.src.charCodeAt(u-1))break}return t.tokens.push({type:f?"ordered_list_close":"bullet_list_close",level:--t.level}),b[1]=o,t.line=o,S&&function(t,e){var i,n,o=t.level+2;for(i=e+2,n=t.tokens.length-2;i<n;i++)t.tokens[i].level===o&&"paragraph_open"===t.tokens[i].type&&(t.tokens[i+2].tight=!0,t.tokens[i].tight=!0,i+=2)}(t,v),!0},["paragraph","blockquote"]],["footnote",function(t,e,i,n){var o,r,s,a,l,c=t.bMarks[e]+t.tShift[e],h=t.eMarks[e];if(c+4>h)return!1;if(91!==t.src.charCodeAt(c))return!1;if(94!==t.src.charCodeAt(c+1))return!1;if(t.level>=t.options.maxNesting)return!1;for(a=c+2;a<h;a++){if(32===t.src.charCodeAt(a))return!1;if(93===t.src.charCodeAt(a))break}return a!==c+2&&(!(a+1>=h||58!==t.src.charCodeAt(++a))&&(n||(a++,t.env.footnotes||(t.env.footnotes={}),t.env.footnotes.refs||(t.env.footnotes.refs={}),l=t.src.slice(c+2,a-2),t.env.footnotes.refs[":"+l]=-1,t.tokens.push({type:"footnote_reference_open",label:l,level:t.level++}),o=t.bMarks[e],r=t.tShift[e],s=t.parentType,t.tShift[e]=t.skipSpaces(a)-a,t.bMarks[e]=a,t.blkIndent+=4,t.parentType="footnote",t.tShift[e]<t.blkIndent&&(t.tShift[e]+=t.blkIndent,t.bMarks[e]-=t.blkIndent),t.parser.tokenize(t,e,i,!0),t.parentType=s,t.blkIndent-=4,t.tShift[e]=r,t.bMarks[e]=o,t.tokens.push({type:"footnote_reference_close",level:--t.level})),!0))},["paragraph"]],["heading",function(t,e,i,n){var o,r,s,a=t.bMarks[e]+t.tShift[e],l=t.eMarks[e];if(a>=l)return!1;if(35!==(o=t.src.charCodeAt(a))||a>=l)return!1;for(r=1,o=t.src.charCodeAt(++a);35===o&&a<l&&r<=6;)r++,o=t.src.charCodeAt(++a);return!(r>6||a<l&&32!==o)&&(n||(l=t.skipCharsBack(l,32,a),(s=t.skipCharsBack(l,35,a))>a&&32===t.src.charCodeAt(s-1)&&(l=s),t.line=e+1,t.tokens.push({type:"heading_open",hLevel:r,lines:[e,t.line],level:t.level}),a<l&&t.tokens.push({type:"inline",content:t.src.slice(a,l).trim(),level:t.level+1,lines:[e,t.line],children:[]}),t.tokens.push({type:"heading_close",hLevel:r,level:t.level})),!0)},["paragraph","blockquote"]],["lheading",function(t,e,i){var n,o,r,s=e+1;return!(s>=i)&&(!(t.tShift[s]<t.blkIndent)&&(!(t.tShift[s]-t.blkIndent>3)&&(!((o=t.bMarks[s]+t.tShift[s])>=(r=t.eMarks[s]))&&((45===(n=t.src.charCodeAt(o))||61===n)&&(o=t.skipChars(o,n),!((o=t.skipSpaces(o))<r)&&(o=t.bMarks[e]+t.tShift[e],t.line=s+1,t.tokens.push({type:"heading_open",hLevel:61===n?1:2,lines:[e,t.line],level:t.level}),t.tokens.push({type:"inline",content:t.src.slice(o,t.eMarks[e]).trim(),level:t.level+1,lines:[e,t.line-1],children:[]}),t.tokens.push({type:"heading_close",hLevel:61===n?1:2,level:t.level}),!0))))))}],["htmlblock",function(t,e,i,n){var o,r,s,a=t.bMarks[e],l=t.eMarks[e],c=t.tShift[e];if(a+=c,!t.options.html)return!1;if(c>3||a+2>=l)return!1;if(60!==t.src.charCodeAt(a))return!1;if(33===(o=t.src.charCodeAt(a+1))||63===o){if(n)return!0}else{if(47!==o&&!function(t){var e=32|t;return e>=97&&e<=122}(o))return!1;if(47===o){if(!(r=t.src.slice(a,l).match(ps)))return!1}else if(!(r=t.src.slice(a,l).match(ds)))return!1;if(!0!==us[r[1].toLowerCase()])return!1;if(n)return!0}for(s=e+1;s<t.lineMax&&!t.isEmpty(s);)s++;return t.line=s,t.tokens.push({type:"htmlblock",level:t.level,lines:[e,t.line],content:t.getLines(e,s,0,!0)}),!0},["paragraph","blockquote"]],["table",function(t,e,i,n){var o,r,s,a,l,c,h,u,d,p,m;if(e+2>i)return!1;if(l=e+1,t.tShift[l]<t.blkIndent)return!1;if((s=t.bMarks[l]+t.tShift[l])>=t.eMarks[l])return!1;if(124!==(o=t.src.charCodeAt(s))&&45!==o&&58!==o)return!1;if(r=ms(t,e+1),!/^[-:| ]+$/.test(r))return!1;if((c=r.split("|"))<=2)return!1;for(u=[],a=0;a<c.length;a++){if(!(d=c[a].trim())){if(0===a||a===c.length-1)continue;return!1}if(!/^:?-+:?$/.test(d))return!1;58===d.charCodeAt(d.length-1)?u.push(58===d.charCodeAt(0)?"center":"right"):58===d.charCodeAt(0)?u.push("left"):u.push("")}if(-1===(r=ms(t,e).trim()).indexOf("|"))return!1;if(c=r.replace(/^\||\|$/g,"").split("|"),u.length!==c.length)return!1;if(n)return!0;for(t.tokens.push({type:"table_open",lines:p=[e,0],level:t.level++}),t.tokens.push({type:"thead_open",lines:[e,e+1],level:t.level++}),t.tokens.push({type:"tr_open",lines:[e,e+1],level:t.level++}),a=0;a<c.length;a++)t.tokens.push({type:"th_open",align:u[a],lines:[e,e+1],level:t.level++}),t.tokens.push({type:"inline",content:c[a].trim(),lines:[e,e+1],level:t.level,children:[]}),t.tokens.push({type:"th_close",level:--t.level});for(t.tokens.push({type:"tr_close",level:--t.level}),t.tokens.push({type:"thead_close",level:--t.level}),t.tokens.push({type:"tbody_open",lines:m=[e+2,0],level:t.level++}),l=e+2;l<i&&!(t.tShift[l]<t.blkIndent)&&-1!==(r=ms(t,l).trim()).indexOf("|");l++){for(c=r.replace(/^\||\|$/g,"").split("|"),t.tokens.push({type:"tr_open",level:t.level++}),a=0;a<c.length;a++)t.tokens.push({type:"td_open",align:u[a],level:t.level++}),h=c[a].substring(124===c[a].charCodeAt(0)?1:0,124===c[a].charCodeAt(c[a].length-1)?c[a].length-1:c[a].length).trim(),t.tokens.push({type:"inline",content:h,level:t.level,children:[]}),t.tokens.push({type:"td_close",level:--t.level});t.tokens.push({type:"tr_close",level:--t.level})}return t.tokens.push({type:"tbody_close",level:--t.level}),t.tokens.push({type:"table_close",level:--t.level}),p[1]=m[1]=l,t.line=l,!0},["paragraph"]],["deflist",function(t,e,i,n){var o,r,s,a,l,c,h,u,d,p,m,f,g,v;if(n)return!(t.ddIndent<0)&&fs(t,e)>=0;if(h=e+1,t.isEmpty(h)&&++h>i)return!1;if(t.tShift[h]<t.blkIndent)return!1;if((o=fs(t,h))<0)return!1;if(t.level>=t.options.maxNesting)return!1;c=t.tokens.length,t.tokens.push({type:"dl_open",lines:l=[e,0],level:t.level++}),s=e,r=h;t:for(;;){for(v=!0,g=!1,t.tokens.push({type:"dt_open",lines:[s,s],level:t.level++}),t.tokens.push({type:"inline",content:t.getLines(s,s+1,t.blkIndent,!1).trim(),level:t.level+1,lines:[s,s],children:[]}),t.tokens.push({type:"dt_close",level:--t.level});;){if(t.tokens.push({type:"dd_open",lines:a=[h,0],level:t.level++}),f=t.tight,d=t.ddIndent,u=t.blkIndent,m=t.tShift[r],p=t.parentType,t.blkIndent=t.ddIndent=t.tShift[r]+2,t.tShift[r]=o-t.bMarks[r],t.tight=!0,t.parentType="deflist",t.parser.tokenize(t,r,i,!0),t.tight&&!g||(v=!1),g=t.line-r>1&&t.isEmpty(t.line-1),t.tShift[r]=m,t.tight=f,t.parentType=p,t.blkIndent=u,t.ddIndent=d,t.tokens.push({type:"dd_close",level:--t.level}),a[1]=h=t.line,h>=i)break t;if(t.tShift[h]<t.blkIndent)break t;if((o=fs(t,h))<0)break;r=h}if(h>=i)break;if(s=h,t.isEmpty(s))break;if(t.tShift[s]<t.blkIndent)break;if((r=s+1)>=i)break;if(t.isEmpty(r)&&r++,r>=i)break;if(t.tShift[r]<t.blkIndent)break;if((o=fs(t,r))<0)break}return t.tokens.push({type:"dl_close",level:--t.level}),l[1]=h,t.line=h,v&&function(t,e){var i,n,o=t.level+2;for(i=e+2,n=t.tokens.length-2;i<n;i++)t.tokens[i].level===o&&"paragraph_open"===t.tokens[i].type&&(t.tokens[i+2].tight=!0,t.tokens[i].tight=!0,i+=2)}(t,c),!0},["paragraph"]],["paragraph",function(t,e){var i,n,o,r,s,a,l=e+1;if(l<(i=t.lineMax)&&!t.isEmpty(l))for(a=t.parser.ruler.getRules("paragraph");l<i&&!t.isEmpty(l);l++)if(!(t.tShift[l]-t.blkIndent>3)){for(o=!1,r=0,s=a.length;r<s;r++)if(a[r](t,l,i,!0)){o=!0;break}if(o)break}return n=t.getLines(e,l,t.blkIndent,!1).trim(),t.line=l,n.length&&(t.tokens.push({type:"paragraph_open",tight:!1,lines:[e,t.line],level:t.level}),t.tokens.push({type:"inline",content:n,level:t.level+1,lines:[e,t.line],children:[]}),t.tokens.push({type:"paragraph_close",tight:!1,level:t.level})),!0}]];function vs(){this.ruler=new jr;for(var t=0;t<gs.length;t++)this.ruler.push(gs[t][0],gs[t][1],{alt:(gs[t][2]||[]).slice()})}vs.prototype.tokenize=function(t,e,i){for(var n,o=this.ruler.getRules(""),r=o.length,s=e,a=!1;s<i&&(t.line=s=t.skipEmptyLines(s),!(s>=i))&&!(t.tShift[s]<t.blkIndent);){for(n=0;n<r&&!o[n](t,s,i,!1);n++);if(t.tight=!a,t.isEmpty(t.line-1)&&(a=!0),(s=t.line)<i&&t.isEmpty(s)){if(a=!0,++s<i&&"list"===t.parentType&&t.isEmpty(s))break;t.line=s}}};var ys=/[\n\t]/g,bs=/\r[\n\u0085]|[\u2424\u2028\u0085]/g,_s=/\u00a0/g;function xs(t){switch(t){case 10:case 92:case 96:case 42:case 95:case 94:case 91:case 93:case 33:case 38:case 60:case 62:case 123:case 125:case 36:case 37:case 64:case 126:case 43:case 61:case 58:return!0;default:return!1}}vs.prototype.parse=function(t,e,i,n){var o,r=0,s=0;if(!t)return[];(t=(t=t.replace(_s," ")).replace(bs,"\n")).indexOf("\t")>=0&&(t=t.replace(ys,(function(e,i){var n;return 10===t.charCodeAt(i)?(r=i+1,s=0,e):(n=" ".slice((i-r-s)%4),s=i-r+1,n)}))),o=new ls(t,this,e,i,n),this.tokenize(o,o.line,o.lineMax)};for(var ws=[],ks=0;ks<256;ks++)ws.push(0);function Cs(t){return t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122}function Ss(t,e){var i,n,o,r=e,s=!0,a=!0,l=t.posMax,c=t.src.charCodeAt(e);for(i=e>0?t.src.charCodeAt(e-1):-1;r<l&&t.src.charCodeAt(r)===c;)r++;return r>=l&&(s=!1),(o=r-e)>=4?s=a=!1:(32!==(n=r<l?t.src.charCodeAt(r):-1)&&10!==n||(s=!1),32!==i&&10!==i||(a=!1),95===c&&(Cs(i)&&(s=!1),Cs(n)&&(a=!1))),{can_open:s,can_close:a,delims:o}}"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach((function(t){ws[t.charCodeAt(0)]=1}));var Es=/\\([ \\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;var Ts=/\\([ \\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;var Ms=["coap","doi","javascript","aaa","aaas","about","acap","cap","cid","crid","data","dav","dict","dns","file","ftp","geo","go","gopher","h323","http","https","iax","icap","im","imap","info","ipp","iris","iris.beep","iris.xpc","iris.xpcs","iris.lwz","ldap","mailto","mid","msrp","msrps","mtqp","mupdate","news","nfs","ni","nih","nntp","opaquelocktoken","pop","pres","rtsp","service","session","shttp","sieve","sip","sips","sms","snmp","soap.beep","soap.beeps","tag","tel","telnet","tftp","thismessage","tn3270","tip","tv","urn","vemmi","ws","wss","xcon","xcon-userid","xmlrpc.beep","xmlrpc.beeps","xmpp","z39.50r","z39.50s","adiumxtra","afp","afs","aim","apt","attachment","aw","beshare","bitcoin","bolo","callto","chrome","chrome-extension","com-eventbrite-attendee","content","cvs","dlna-playsingle","dlna-playcontainer","dtn","dvb","ed2k","facetime","feed","finger","fish","gg","git","gizmoproject","gtalk","hcp","icon","ipn","irc","irc6","ircs","itms","jar","jms","keyparc","lastfm","ldaps","magnet","maps","market","message","mms","ms-help","msnim","mumble","mvn","notes","oid","palm","paparazzi","platform","proxy","psyc","query","res","resource","rmi","rsync","rtmp","secondlife","sftp","sgn","skype","smb","soldat","spotify","ssh","steam","svn","teamspeak","things","udp","unreal","ut2004","ventrilo","view-source","webcal","wtai","wyciwyg","xfire","xri","ymsgr"],Ds=/^<([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)>/,$s=/^<([a-zA-Z.\-]{1,25}):([^<>\x00-\x20]*)>/;function As(t,e){return t=t.source,e=e||"",function i(n,o){return n?(o=o.source||o,t=t.replace(n,o),i):new RegExp(t,e)}}var Ls=As(/(?:unquoted|single_quoted|double_quoted)/)("unquoted",/[^"'=<>`\x00-\x20]+/)("single_quoted",/'[^']*'/)("double_quoted",/"[^"]*"/)(),Os=As(/(?:\s+attr_name(?:\s*=\s*attr_value)?)/)("attr_name",/[a-zA-Z_:][a-zA-Z0-9:._-]*/)("attr_value",Ls)(),Ps=As(/<[A-Za-z][A-Za-z0-9]*attribute*\s*\/?>/)("attribute",Os)(),Is=As(/^(?:open_tag|close_tag|comment|processing|declaration|cdata)/)("open_tag",Ps)("close_tag",/<\/[A-Za-z][A-Za-z0-9]*\s*>/)("comment",/<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->/)("processing",/<[?].*?[?]>/)("declaration",/<![A-Z]+\s+[^>]*>/)("cdata",/<!\[CDATA\[[\s\S]*?\]\]>/)();var Ns=/^&#((?:x[a-f0-9]{1,8}|[0-9]{1,8}));/i,zs=/^&([a-z][a-z0-9]{1,31});/i;var Rs=[["text",function(t,e){for(var i=t.pos;i<t.posMax&&!xs(t.src.charCodeAt(i));)i++;return i!==t.pos&&(e||(t.pending+=t.src.slice(t.pos,i)),t.pos=i,!0)}],["newline",function(t,e){var i,n,o=t.pos;if(10!==t.src.charCodeAt(o))return!1;if(i=t.pending.length-1,n=t.posMax,!e)if(i>=0&&32===t.pending.charCodeAt(i))if(i>=1&&32===t.pending.charCodeAt(i-1)){for(var r=i-2;r>=0;r--)if(32!==t.pending.charCodeAt(r)){t.pending=t.pending.substring(0,r+1);break}t.push({type:"hardbreak",level:t.level})}else t.pending=t.pending.slice(0,-1),t.push({type:"softbreak",level:t.level});else t.push({type:"softbreak",level:t.level});for(o++;o<n&&32===t.src.charCodeAt(o);)o++;return t.pos=o,!0}],["escape",function(t,e){var i,n=t.pos,o=t.posMax;if(92!==t.src.charCodeAt(n))return!1;if(++n<o){if((i=t.src.charCodeAt(n))<256&&0!==ws[i])return e||(t.pending+=t.src[n]),t.pos+=2,!0;if(10===i){for(e||t.push({type:"hardbreak",level:t.level}),n++;n<o&&32===t.src.charCodeAt(n);)n++;return t.pos=n,!0}}return e||(t.pending+="\\"),t.pos++,!0}],["backticks",function(t,e){var i,n,o,r,s,a=t.pos;if(96!==t.src.charCodeAt(a))return!1;for(i=a,a++,n=t.posMax;a<n&&96===t.src.charCodeAt(a);)a++;for(o=t.src.slice(i,a),r=s=a;-1!==(r=t.src.indexOf("`",s));){for(s=r+1;s<n&&96===t.src.charCodeAt(s);)s++;if(s-r===o.length)return e||t.push({type:"code",content:t.src.slice(a,r).replace(/[ \n]+/g," ").trim(),block:!1,level:t.level}),t.pos=s,!0}return e||(t.pending+=o),t.pos+=o.length,!0}],["del",function(t,e){var i,n,o,r,s,a=t.posMax,l=t.pos;if(126!==t.src.charCodeAt(l))return!1;if(e)return!1;if(l+4>=a)return!1;if(126!==t.src.charCodeAt(l+1))return!1;if(t.level>=t.options.maxNesting)return!1;if(r=l>0?t.src.charCodeAt(l-1):-1,s=t.src.charCodeAt(l+2),126===r)return!1;if(126===s)return!1;if(32===s||10===s)return!1;for(n=l+2;n<a&&126===t.src.charCodeAt(n);)n++;if(n>l+3)return t.pos+=n-l,e||(t.pending+=t.src.slice(l,n)),!0;for(t.pos=l+2,o=1;t.pos+1<a;){if(126===t.src.charCodeAt(t.pos)&&126===t.src.charCodeAt(t.pos+1)&&(r=t.src.charCodeAt(t.pos-1),126!==(s=t.pos+2<a?t.src.charCodeAt(t.pos+2):-1)&&126!==r&&(32!==r&&10!==r?o--:32!==s&&10!==s&&o++,o<=0))){i=!0;break}t.parser.skipToken(t)}return i?(t.posMax=t.pos,t.pos=l+2,e||(t.push({type:"del_open",level:t.level++}),t.parser.tokenize(t),t.push({type:"del_close",level:--t.level})),t.pos=t.posMax+2,t.posMax=a,!0):(t.pos=l,!1)}],["ins",function(t,e){var i,n,o,r,s,a=t.posMax,l=t.pos;if(43!==t.src.charCodeAt(l))return!1;if(e)return!1;if(l+4>=a)return!1;if(43!==t.src.charCodeAt(l+1))return!1;if(t.level>=t.options.maxNesting)return!1;if(r=l>0?t.src.charCodeAt(l-1):-1,s=t.src.charCodeAt(l+2),43===r)return!1;if(43===s)return!1;if(32===s||10===s)return!1;for(n=l+2;n<a&&43===t.src.charCodeAt(n);)n++;if(n!==l+2)return t.pos+=n-l,e||(t.pending+=t.src.slice(l,n)),!0;for(t.pos=l+2,o=1;t.pos+1<a;){if(43===t.src.charCodeAt(t.pos)&&43===t.src.charCodeAt(t.pos+1)&&(r=t.src.charCodeAt(t.pos-1),43!==(s=t.pos+2<a?t.src.charCodeAt(t.pos+2):-1)&&43!==r&&(32!==r&&10!==r?o--:32!==s&&10!==s&&o++,o<=0))){i=!0;break}t.parser.skipToken(t)}return i?(t.posMax=t.pos,t.pos=l+2,e||(t.push({type:"ins_open",level:t.level++}),t.parser.tokenize(t),t.push({type:"ins_close",level:--t.level})),t.pos=t.posMax+2,t.posMax=a,!0):(t.pos=l,!1)}],["mark",function(t,e){var i,n,o,r,s,a=t.posMax,l=t.pos;if(61!==t.src.charCodeAt(l))return!1;if(e)return!1;if(l+4>=a)return!1;if(61!==t.src.charCodeAt(l+1))return!1;if(t.level>=t.options.maxNesting)return!1;if(r=l>0?t.src.charCodeAt(l-1):-1,s=t.src.charCodeAt(l+2),61===r)return!1;if(61===s)return!1;if(32===s||10===s)return!1;for(n=l+2;n<a&&61===t.src.charCodeAt(n);)n++;if(n!==l+2)return t.pos+=n-l,e||(t.pending+=t.src.slice(l,n)),!0;for(t.pos=l+2,o=1;t.pos+1<a;){if(61===t.src.charCodeAt(t.pos)&&61===t.src.charCodeAt(t.pos+1)&&(r=t.src.charCodeAt(t.pos-1),61!==(s=t.pos+2<a?t.src.charCodeAt(t.pos+2):-1)&&61!==r&&(32!==r&&10!==r?o--:32!==s&&10!==s&&o++,o<=0))){i=!0;break}t.parser.skipToken(t)}return i?(t.posMax=t.pos,t.pos=l+2,e||(t.push({type:"mark_open",level:t.level++}),t.parser.tokenize(t),t.push({type:"mark_close",level:--t.level})),t.pos=t.posMax+2,t.posMax=a,!0):(t.pos=l,!1)}],["emphasis",function(t,e){var i,n,o,r,s,a,l,c=t.posMax,h=t.pos,u=t.src.charCodeAt(h);if(95!==u&&42!==u)return!1;if(e)return!1;if(i=(l=Ss(t,h)).delims,!l.can_open)return t.pos+=i,e||(t.pending+=t.src.slice(h,t.pos)),!0;if(t.level>=t.options.maxNesting)return!1;for(t.pos=h+i,a=[i];t.pos<c;)if(t.src.charCodeAt(t.pos)!==u)t.parser.skipToken(t);else{if(n=(l=Ss(t,t.pos)).delims,l.can_close){for(r=a.pop(),s=n;r!==s;){if(s<r){a.push(r-s);break}if(s-=r,0===a.length)break;t.pos+=r,r=a.pop()}if(0===a.length){i=r,o=!0;break}t.pos+=n;continue}l.can_open&&a.push(n),t.pos+=n}return o?(t.posMax=t.pos,t.pos=h+i,e||(2!==i&&3!==i||t.push({type:"strong_open",level:t.level++}),1!==i&&3!==i||t.push({type:"em_open",level:t.level++}),t.parser.tokenize(t),1!==i&&3!==i||t.push({type:"em_close",level:--t.level}),2!==i&&3!==i||t.push({type:"strong_close",level:--t.level})),t.pos=t.posMax+i,t.posMax=c,!0):(t.pos=h,!1)}],["sub",function(t,e){var i,n,o=t.posMax,r=t.pos;if(126!==t.src.charCodeAt(r))return!1;if(e)return!1;if(r+2>=o)return!1;if(t.level>=t.options.maxNesting)return!1;for(t.pos=r+1;t.pos<o;){if(126===t.src.charCodeAt(t.pos)){i=!0;break}t.parser.skipToken(t)}return i&&r+1!==t.pos?(n=t.src.slice(r+1,t.pos)).match(/(^|[^\\])(\\\\)*\s/)?(t.pos=r,!1):(t.posMax=t.pos,t.pos=r+1,e||t.push({type:"sub",level:t.level,content:n.replace(Es,"$1")}),t.pos=t.posMax+1,t.posMax=o,!0):(t.pos=r,!1)}],["sup",function(t,e){var i,n,o=t.posMax,r=t.pos;if(94!==t.src.charCodeAt(r))return!1;if(e)return!1;if(r+2>=o)return!1;if(t.level>=t.options.maxNesting)return!1;for(t.pos=r+1;t.pos<o;){if(94===t.src.charCodeAt(t.pos)){i=!0;break}t.parser.skipToken(t)}return i&&r+1!==t.pos?(n=t.src.slice(r+1,t.pos)).match(/(^|[^\\])(\\\\)*\s/)?(t.pos=r,!1):(t.posMax=t.pos,t.pos=r+1,e||t.push({type:"sup",level:t.level,content:n.replace(Ts,"$1")}),t.pos=t.posMax+1,t.posMax=o,!0):(t.pos=r,!1)}],["links",function(t,e){var i,n,o,r,s,a,l,c,h=!1,u=t.pos,d=t.posMax,p=t.pos,m=t.src.charCodeAt(p);if(33===m&&(h=!0,m=t.src.charCodeAt(++p)),91!==m)return!1;if(t.level>=t.options.maxNesting)return!1;if(i=p+1,(n=Hr(t,p))<0)return!1;if((a=n+1)<d&&40===t.src.charCodeAt(a)){for(a++;a<d&&(32===(c=t.src.charCodeAt(a))||10===c);a++);if(a>=d)return!1;for(p=a,Wr(t,a)?(r=t.linkContent,a=t.pos):r="",p=a;a<d&&(32===(c=t.src.charCodeAt(a))||10===c);a++);if(a<d&&p!==a&&Gr(t,a))for(s=t.linkContent,a=t.pos;a<d&&(32===(c=t.src.charCodeAt(a))||10===c);a++);else s="";if(a>=d||41!==t.src.charCodeAt(a))return t.pos=u,!1;a++}else{if(t.linkLevel>0)return!1;for(;a<d&&(32===(c=t.src.charCodeAt(a))||10===c);a++);if(a<d&&91===t.src.charCodeAt(a)&&(p=a+1,(a=Hr(t,a))>=0?o=t.src.slice(p,a++):a=p-1),o||(void 0===o&&(a=n+1),o=t.src.slice(i,n)),!(l=t.env.references[Yr(o)]))return t.pos=u,!1;r=l.href,s=l.title}return e||(t.pos=i,t.posMax=n,h?t.push({type:"image",src:r,title:s,alt:t.src.substr(i,n-i),level:t.level}):(t.push({type:"link_open",href:r,title:s,level:t.level++}),t.linkLevel++,t.parser.tokenize(t),t.linkLevel--,t.push({type:"link_close",level:--t.level}))),t.pos=a,t.posMax=d,!0}],["footnote_inline",function(t,e){var i,n,o,r,s=t.posMax,a=t.pos;return!(a+2>=s)&&(94===t.src.charCodeAt(a)&&(91===t.src.charCodeAt(a+1)&&(!(t.level>=t.options.maxNesting)&&(i=a+2,!((n=Hr(t,a+1))<0)&&(e||(t.env.footnotes||(t.env.footnotes={}),t.env.footnotes.list||(t.env.footnotes.list=[]),o=t.env.footnotes.list.length,t.pos=i,t.posMax=n,t.push({type:"footnote_ref",id:o,level:t.level}),t.linkLevel++,r=t.tokens.length,t.parser.tokenize(t),t.env.footnotes.list[o]={tokens:t.tokens.splice(r)},t.linkLevel--),t.pos=n+1,t.posMax=s,!0)))))}],["footnote_ref",function(t,e){var i,n,o,r,s=t.posMax,a=t.pos;if(a+3>s)return!1;if(!t.env.footnotes||!t.env.footnotes.refs)return!1;if(91!==t.src.charCodeAt(a))return!1;if(94!==t.src.charCodeAt(a+1))return!1;if(t.level>=t.options.maxNesting)return!1;for(n=a+2;n<s;n++){if(32===t.src.charCodeAt(n))return!1;if(10===t.src.charCodeAt(n))return!1;if(93===t.src.charCodeAt(n))break}return n!==a+2&&(!(n>=s)&&(n++,i=t.src.slice(a+2,n-1),void 0!==t.env.footnotes.refs[":"+i]&&(e||(t.env.footnotes.list||(t.env.footnotes.list=[]),t.env.footnotes.refs[":"+i]<0?(o=t.env.footnotes.list.length,t.env.footnotes.list[o]={label:i,count:0},t.env.footnotes.refs[":"+i]=o):o=t.env.footnotes.refs[":"+i],r=t.env.footnotes.list[o].count,t.env.footnotes.list[o].count++,t.push({type:"footnote_ref",id:o,subId:r,level:t.level})),t.pos=n,t.posMax=s,!0)))}],["autolink",function(t,e){var i,n,o,r,s,a=t.pos;return 60===t.src.charCodeAt(a)&&(!((i=t.src.slice(a)).indexOf(">")<0)&&((n=i.match($s))?!(Ms.indexOf(n[1].toLowerCase())<0)&&(s=Vr(r=n[0].slice(1,-1)),!!t.parser.validateLink(r)&&(e||(t.push({type:"link_open",href:s,level:t.level}),t.push({type:"text",content:r,level:t.level+1}),t.push({type:"link_close",level:t.level})),t.pos+=n[0].length,!0)):!!(o=i.match(Ds))&&(s=Vr("mailto:"+(r=o[0].slice(1,-1))),!!t.parser.validateLink(s)&&(e||(t.push({type:"link_open",href:s,level:t.level}),t.push({type:"text",content:r,level:t.level+1}),t.push({type:"link_close",level:t.level})),t.pos+=o[0].length,!0))))}],["htmltag",function(t,e){var i,n,o,r=t.pos;return!!t.options.html&&(o=t.posMax,!(60!==t.src.charCodeAt(r)||r+2>=o)&&(!(33!==(i=t.src.charCodeAt(r+1))&&63!==i&&47!==i&&!function(t){var e=32|t;return e>=97&&e<=122}(i))&&(!!(n=t.src.slice(r).match(Is))&&(e||t.push({type:"htmltag",content:t.src.slice(r,r+n[0].length),level:t.level}),t.pos+=n[0].length,!0))))}],["entity",function(t,e){var i,n,o=t.pos,r=t.posMax;if(38!==t.src.charCodeAt(o))return!1;if(o+1<r)if(35===t.src.charCodeAt(o+1)){if(n=t.src.slice(o).match(Ns))return e||(i="x"===n[1][0].toLowerCase()?parseInt(n[1].slice(1),16):parseInt(n[1],10),t.pending+=Tr(i)?Mr(i):Mr(65533)),t.pos+=n[0].length,!0}else if(n=t.src.slice(o).match(zs)){var s=wr(n[1]);if(n[1]!==s)return e||(t.pending+=s),t.pos+=n[0].length,!0}return e||(t.pending+="&"),t.pos++,!0}]];function Bs(){this.ruler=new jr;for(var t=0;t<Rs.length;t++)this.ruler.push(Rs[t][0],Rs[t][1]);this.validateLink=Fs}function Fs(t){var e=t.trim().toLowerCase();return-1===(e=Lr(e)).indexOf(":")||-1===["vbscript","javascript","file","data"].indexOf(e.split(":")[0])}Bs.prototype.skipToken=function(t){var e,i,n=this.ruler.getRules(""),o=n.length,r=t.pos;if((i=t.cacheGet(r))>0)t.pos=i;else{for(e=0;e<o;e++)if(n[e](t,!0))return void t.cacheSet(r,t.pos);t.pos++,t.cacheSet(r,t.pos)}},Bs.prototype.tokenize=function(t){for(var e,i,n=this.ruler.getRules(""),o=n.length,r=t.posMax;t.pos<r;){for(i=0;i<o&&!(e=n[i](t,!1));i++);if(e){if(t.pos>=r)break}else t.pending+=t.src[t.pos++]}t.pending&&t.pushPending()},Bs.prototype.parse=function(t,e,i,n){var o=new Zr(t,this,e,i,n);this.tokenize(o)};var qs={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["block","inline","references","replacements","smartquotes","references","abbr2","footnote_tail"]},block:{rules:["blockquote","code","fences","footnote","heading","hr","htmlblock","lheading","list","paragraph","table"]},inline:{rules:["autolink","backticks","del","emphasis","entity","escape","footnote_ref","htmltag","links","newline","text"]}}},full:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{},block:{},inline:{}}},commonmark:{options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["block","inline","references","abbr2"]},block:{rules:["blockquote","code","fences","heading","hr","htmlblock","lheading","list","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","htmltag","links","newline","text"]}}}};function js(t,e,i){this.src=e,this.env=i,this.options=t.options,this.tokens=[],this.inlineMode=!1,this.inline=t.inline,this.block=t.block,this.renderer=t.renderer,this.typographer=t.typographer}function Zs(t,e){"string"!=typeof t&&(e=t,t="default"),e&&null!=e.linkify&&console.warn("linkify option is removed. Use linkify plugin instead:\n\nimport Remarkable from 'remarkable';\nimport linkify from 'remarkable/linkify';\nnew Remarkable().use(linkify)\n"),this.inline=new Bs,this.block=new vs,this.core=new as,this.renderer=new qr,this.ruler=new jr,this.options={},this.configure(qs[t]),this.set(e||{})}Zs.prototype.set=function(t){Cr(this.options,t)},Zs.prototype.configure=function(t){var e=this;if(!t)throw new Error("Wrong `remarkable` preset, check name/content");t.options&&e.set(t.options),t.components&&Object.keys(t.components).forEach((function(i){t.components[i].rules&&e[i].ruler.enable(t.components[i].rules,!0)}))},Zs.prototype.use=function(t,e){return t(this,e),this},Zs.prototype.parse=function(t,e){var i=new js(this,t,e);return this.core.process(i),i.tokens},Zs.prototype.render=function(t,e){return e=e||{},this.renderer.render(this.parse(t,e),this.options,e)},Zs.prototype.parseInline=function(t,e){var i=new js(this,t,e);return i.inlineMode=!0,this.core.process(i),i.tokens},Zs.prototype.renderInline=function(t,e){return e=e||{},this.renderer.render(this.parseInline(t,e),this.options,e)};const Hs=new Zs,Us=new br("@",["contact","fields","globals","urns"]),Vs=new br("@",["contact","fields","globals","urns","results","input","run","child","parent","node","webhook","ticket","trigger","resume"]);const Ws=ct(class extends ht{constructor(t){if(super(t),t.type!==lt)throw new Error("renderMarkdown only supports child expressions")}update(t,[e]){return this.render(e)}render(t){return void 0===this.value&&(this.value=t),O`${fr(Hs.render(this.value))}`}}),Gs=(t,e)=>{if(t.signature){const i=t.signature.indexOf("("),n=t.signature.substr(0,i),o=t.signature.substr(i);return O`
478
+ `}}t([it({type:Number})],pr.prototype,"top",void 0),t([it({type:Number})],pr.prototype,"left",void 0),t([it({type:Number})],pr.prototype,"width",void 0),t([it({type:Number})],pr.prototype,"marginHorizontal",void 0),t([it({type:Number})],pr.prototype,"marginVertical",void 0),t([it({type:Object})],pr.prototype,"anchorTo",void 0),t([it({type:Boolean})],pr.prototype,"visible",void 0),t([it({type:Boolean})],pr.prototype,"block",void 0),t([it({type:Number})],pr.prototype,"scrollPct",void 0),t([it({type:Number})],pr.prototype,"cursorIndex",void 0),t([it({type:Array})],pr.prototype,"options",void 0),t([it({type:Array})],pr.prototype,"tempOptions",void 0),t([it({type:Boolean})],pr.prototype,"poppedTop",void 0),t([it({type:Boolean})],pr.prototype,"spaceSelect",void 0),t([it({type:String})],pr.prototype,"nameKey",void 0),t([it({type:Boolean})],pr.prototype,"loading",void 0),t([it({type:Boolean})],pr.prototype,"collapsed",void 0),t([it({attribute:!1})],pr.prototype,"getName",void 0),t([it({attribute:!1})],pr.prototype,"renderInputOption",void 0),t([it({attribute:!1})],pr.prototype,"renderOption",void 0),t([it({attribute:!1})],pr.prototype,"renderOptionName",void 0),t([it({attribute:!1})],pr.prototype,"renderOptionDetail",void 0),t([it({type:Number})],pr.prototype,"scrollHeight",void 0),t([it({type:Boolean})],pr.prototype,"triggerScroll",void 0);class mr extends ht{constructor(t){if(super(t),this.it=I,t.type!==lt)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===I||null==t)return this._t=void 0,this.it=t;if(t===P)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const e=[t];return e.raw=e,this._t={_$litType$:this.constructor.resultType,strings:e,values:[]}}}mr.directiveName="unsafeHTML",mr.resultType=1;const fr=ct(mr),gr=(t,e,i)=>{const n=t.substring(1);if("("===n[0])return!0;{const t=n.split(".")[0].toLowerCase();if(!i)return e.indexOf(t)>=0;for(const i of e)if(o=t,0===i.indexOf(o,0))return!0;return!1}var o},vr=t=>t>="a"&&t<="z"||t>="A"&&t<="Z"||t>="0"&&t<="9"||"_"===t,yr=t=>{let e=0;for(const i of t)'"'===i&&e++;return e%2!=0};class br{constructor(t,e){this.expressionPrefix=t,this.allowedTopLevels=e}expressionContext(t){const e=this.findExpressions(t);if(0===e.length)return null;const i=e[e.length-1];return i.end<t.length||i.closed?null:i.text.substring(1)}autoCompleteContext(t){if(yr(t))return null;const e=[];let i="",n=!1,o=!1,r="";for(let s=t.length-1;s>=0;s--){const a=t[s];if(" "===a&&(n=!0),","===a&&(n=!0,"("!==e[e.length-1]&&e.push("(")),")"!==a||o||(n=!0,e.push("("),e.push("(")),'"'===a&&(o=!o),n&&("("!==a||o||("("===e[e.length-1]&&e.pop(),0===e.length&&(n=!1))),"("===a&&""===i&&(r="#"),!(n||o||"("===a&&""===i)){if(!vr(a)&&"."!==a)break;i=a+i}}return i.match(/[A-Za-z][\w]*(\.[\w]+)*/)?r+i:null}functionContext(t){let e=yr(t)?4:6,i="",n="("===t[-1]?0:1;for(let o=t.length-1;o>=0;o--){const r=t[o];if("@"===r)return"";if(6===e)0!==n||!vr(r)&&"."!==r?'"'===r?e=4:"("===r?n--:")"===r&&n++:(e=2,i=r+i);else if(2===e){if(!vr(r)&&"."!==r)return i;i=r+i}else 4===e&&'"'===r&&(e=6)}return""}getContactFields(t){const e={},i=/((parent|child\.)*contact\.)*fields\.([a-z0-9_]+)/g,n=this.findExpressions(t);for(const t of n){let n;for(;n=i.exec(t.text);)e[n[3]]=!0}return Object.keys(e)}findExpressions(t){const e=[];let i=0,n=null,o=0;for(let r=0;r<t.length;r++){const s=t[r],a=r<t.length-1?t[r+1]:0,l=r<t.length-2?t[r+2]:0;if(0===i?s!==this.expressionPrefix||!vr(a)&&"("!==a?s===this.expressionPrefix&&a===this.expressionPrefix&&(i=5):(i=1,n={start:r,end:null,text:s,closed:!1}):1===i?(vr(s)?i=2:"("===s&&(i=3,o+=1),n.text+=s):2===i?n.text+=s:3===i?("("===s?o+=1:")"===s?o-=1:'"'===s&&(i=4),n.text+=s,0===o&&(n.end=r+1)):4===i?('"'===s&&(i=3),n.text+=s):5===i&&(i=0),2===i&&(!vr(a)&&"."!==a||"."===a&&!vr(l))&&(n.end=r+1),null!=n&&(null!=n.end||0===a)){const t=0===a;gr(n.text,this.allowedTopLevels,t)&&(n.closed="("===n.text[1]&&0===o,n.end=r+1,e.push(n)),n=null,i=0}}return e}}var _r={Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"⁡",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",AMP:"&",amp:"&",And:"⩓",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",ap:"≈",apacir:"⩯",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",Barwed:"⌆",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",Because:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxDL:"╗",boxDl:"╖",boxdL:"╕",boxdl:"┐",boxDR:"╔",boxDr:"╓",boxdR:"╒",boxdr:"┌",boxH:"═",boxh:"─",boxHD:"╦",boxHd:"╤",boxhD:"╥",boxhd:"┬",boxHU:"╩",boxHu:"╧",boxhU:"╨",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxUL:"╝",boxUl:"╜",boxuL:"╛",boxul:"┘",boxUR:"╚",boxUr:"╙",boxuR:"╘",boxur:"└",boxV:"║",boxv:"│",boxVH:"╬",boxVh:"╫",boxvH:"╪",boxvh:"┼",boxVL:"╣",boxVl:"╢",boxvL:"╡",boxvl:"┤",boxVR:"╠",boxVr:"╟",boxvR:"╞",boxvr:"├",bprime:"‵",Breve:"˘",breve:"˘",brvbar:"¦",Bscr:"ℬ",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",Cap:"⋒",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",CenterDot:"·",centerdot:"·",Cfr:"ℭ",cfr:"𝔠",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",Colon:"∷",colon:":",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",Conint:"∯",conint:"∮",ContourIntegral:"∮",Copf:"ℂ",copf:"𝕔",coprod:"∐",Coproduct:"∐",COPY:"©",copy:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",Cross:"⨯",cross:"✗",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",Cup:"⋓",cup:"∪",cupbrcap:"⩈",CupCap:"≍",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",Dagger:"‡",dagger:"†",daleth:"ℸ",Darr:"↡",dArr:"⇓",darr:"↓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",DD:"ⅅ",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",Diamond:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",Downarrow:"⇓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",ecir:"≖",Ecirc:"Ê",ecirc:"ê",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",eDot:"≑",edot:"ė",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",Escr:"ℰ",escr:"ℯ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",ExponentialE:"ⅇ",exponentiale:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",ForAll:"∀",forall:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",Fscr:"ℱ",fscr:"𝒻",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",gE:"≧",ge:"≥",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",Gg:"⋙",gg:"≫",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gnE:"≩",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",GT:">",Gt:"≫",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",hArr:"⇔",harr:"↔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",Hfr:"ℌ",hfr:"𝔥",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",Hopf:"ℍ",hopf:"𝕙",horbar:"―",HorizontalLine:"─",Hscr:"ℋ",hscr:"𝒽",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"⁣",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",Ifr:"ℑ",ifr:"𝔦",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Im:"ℑ",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",Int:"∬",int:"∫",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",Iscr:"ℐ",iscr:"𝒾",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",Lang:"⟪",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",Larr:"↞",lArr:"⇐",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",lAtail:"⤛",latail:"⤙",late:"⪭",lates:"⪭︀",lBarr:"⤎",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",lE:"≦",le:"≤",LeftAngleBracket:"⟨",LeftArrow:"←",Leftarrow:"⇐",leftarrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",Ll:"⋘",ll:"≪",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lnE:"≨",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftarrow:"⟵",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",LongRightArrow:"⟶",Longrightarrow:"⟹",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",Lscr:"ℒ",lscr:"𝓁",Lsh:"↰",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",LT:"<",Lt:"≪",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",Mscr:"ℳ",mscr:"𝓂",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",ne:"≠",nearhk:"⤤",neArr:"⇗",nearr:"↗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlArr:"⇍",nlarr:"↚",nldr:"‥",nlE:"≦̸",nle:"≰",nLeftarrow:"⇍",nleftarrow:"↚",nLeftrightarrow:"⇎",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",Nopf:"ℕ",nopf:"𝕟",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nRightarrow:"⇏",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nVDash:"⊯",nVdash:"⊮",nvDash:"⊭",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwArr:"⇖",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",ocir:"⊚",Ocirc:"Ô",ocirc:"ô",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",Or:"⩔",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",Otimes:"⨷",otimes:"⊗",otimesas:"⨶",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",Popf:"ℙ",popf:"𝕡",pound:"£",Pr:"⪻",pr:"≺",prap:"⪷",prcue:"≼",prE:"⪳",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",Prime:"″",prime:"′",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",Qopf:"ℚ",qopf:"𝕢",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",QUOT:'"',quot:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",Rang:"⟫",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",Rarr:"↠",rArr:"⇒",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",rAtail:"⤜",ratail:"⤚",ratio:"∶",rationals:"ℚ",RBarr:"⤐",rBarr:"⤏",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",REG:"®",reg:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",Rfr:"ℜ",rfr:"𝔯",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrow:"→",Rightarrow:"⇒",rightarrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",Ropf:"ℝ",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",Rscr:"ℛ",rscr:"𝓇",Rsh:"↱",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",Sc:"⪼",sc:"≻",scap:"⪸",Scaron:"Š",scaron:"š",sccue:"≽",scE:"⪴",sce:"⪰",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",seArr:"⇘",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",Square:"□",square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",Sub:"⋐",sub:"⊂",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",Subset:"⋐",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",Sum:"∑",sum:"∑",sung:"♪",Sup:"⋑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",Supset:"⋑",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swArr:"⇙",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",Therefore:"∴",therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",Tilde:"∼",tilde:"˜",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",TRADE:"™",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",Uarr:"↟",uArr:"⇑",uarr:"↑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrow:"↑",Uparrow:"⇑",uparrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",Updownarrow:"⇕",updownarrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",upsi:"υ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",vArr:"⇕",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",Vbar:"⫫",vBar:"⫨",vBarv:"⫩",Vcy:"В",vcy:"в",VDash:"⊫",Vdash:"⊩",vDash:"⊨",vdash:"⊢",Vdashl:"⫦",Vee:"⋁",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",Verbar:"‖",verbar:"|",Vert:"‖",vert:"|",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",Wedge:"⋀",wedge:"∧",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",Xi:"Ξ",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",Yuml:"Ÿ",yuml:"ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",Zfr:"ℨ",zfr:"𝔷",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",Zopf:"ℤ",zopf:"𝕫",Zscr:"𝒵",zscr:"𝓏",zwj:"‍",zwnj:"‌"},xr=Object.prototype.hasOwnProperty;function wr(t){return i=t,(e=_r)&&xr.call(e,i)?_r[t]:t;var e,i}var kr=Object.prototype.hasOwnProperty;function Cr(t){var e=[].slice.call(arguments,1);return e.forEach((function(e){if(e){if("object"!=typeof e)throw new TypeError(e+"must be object");Object.keys(e).forEach((function(i){t[i]=e[i]}))}})),t}var Sr=/\\([\\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;function Er(t){return t.indexOf("\\")<0?t:t.replace(Sr,"$1")}function Tr(t){return!(t>=55296&&t<=57343)&&(!(t>=64976&&t<=65007)&&(65535!=(65535&t)&&65534!=(65535&t)&&(!(t>=0&&t<=8)&&(11!==t&&(!(t>=14&&t<=31)&&(!(t>=127&&t<=159)&&!(t>1114111)))))))}function Mr(t){if(t>65535){var e=55296+((t-=65536)>>10),i=56320+(1023&t);return String.fromCharCode(e,i)}return String.fromCharCode(t)}var Dr=/&([a-z#][a-z0-9]{1,31});/gi,$r=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i;function Ar(t,e){var i=0,n=wr(e);return e!==n?n:35===e.charCodeAt(0)&&$r.test(e)&&Tr(i="x"===e[1].toLowerCase()?parseInt(e.slice(2),16):parseInt(e.slice(1),10))?Mr(i):t}function Lr(t){return t.indexOf("&")<0?t:t.replace(Dr,Ar)}var Or=/[&<>"]/,Pr=/[&<>"]/g,Ir={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function Nr(t){return Ir[t]}function zr(t){return Or.test(t)?t.replace(Pr,Nr):t}var Rr={};function Br(t,e){return++e>=t.length-2?e:"paragraph_open"===t[e].type&&t[e].tight&&"inline"===t[e+1].type&&0===t[e+1].content.length&&"paragraph_close"===t[e+2].type&&t[e+2].tight?Br(t,e+2):e}Rr.blockquote_open=function(){return"<blockquote>\n"},Rr.blockquote_close=function(t,e){return"</blockquote>"+Fr(t,e)},Rr.code=function(t,e){return t[e].block?"<pre><code>"+zr(t[e].content)+"</code></pre>"+Fr(t,e):"<code>"+zr(t[e].content)+"</code>"},Rr.fence=function(t,e,i,n,o){var r,s,a,l,c=t[e],h="",u=i.langPrefix;if(c.params){if(s=(r=c.params.split(/\s+/g)).join(" "),a=o.rules.fence_custom,l=r[0],a&&kr.call(a,l))return o.rules.fence_custom[r[0]](t,e,i,n,o);h=' class="'+u+zr(Lr(Er(s)))+'"'}return"<pre><code"+h+">"+(i.highlight&&i.highlight.apply(i.highlight,[c.content].concat(r))||zr(c.content))+"</code></pre>"+Fr(t,e)},Rr.fence_custom={},Rr.heading_open=function(t,e){return"<h"+t[e].hLevel+">"},Rr.heading_close=function(t,e){return"</h"+t[e].hLevel+">\n"},Rr.hr=function(t,e,i){return(i.xhtmlOut?"<hr />":"<hr>")+Fr(t,e)},Rr.bullet_list_open=function(){return"<ul>\n"},Rr.bullet_list_close=function(t,e){return"</ul>"+Fr(t,e)},Rr.list_item_open=function(){return"<li>"},Rr.list_item_close=function(){return"</li>\n"},Rr.ordered_list_open=function(t,e){var i=t[e];return"<ol"+(i.order>1?' start="'+i.order+'"':"")+">\n"},Rr.ordered_list_close=function(t,e){return"</ol>"+Fr(t,e)},Rr.paragraph_open=function(t,e){return t[e].tight?"":"<p>"},Rr.paragraph_close=function(t,e){var i=!(t[e].tight&&e&&"inline"===t[e-1].type&&!t[e-1].content);return(t[e].tight?"":"</p>")+(i?Fr(t,e):"")},Rr.link_open=function(t,e,i){var n=t[e].title?' title="'+zr(Lr(t[e].title))+'"':"",o=i.linkTarget?' target="'+i.linkTarget+'"':"";return'<a href="'+zr(t[e].href)+'"'+n+o+">"},Rr.link_close=function(){return"</a>"},Rr.image=function(t,e,i){var n=' src="'+zr(t[e].src)+'"',o=t[e].title?' title="'+zr(Lr(t[e].title))+'"':"";return"<img"+n+(' alt="'+(t[e].alt?zr(Lr(Er(t[e].alt))):"")+'"')+o+(i.xhtmlOut?" /":"")+">"},Rr.table_open=function(){return"<table>\n"},Rr.table_close=function(){return"</table>\n"},Rr.thead_open=function(){return"<thead>\n"},Rr.thead_close=function(){return"</thead>\n"},Rr.tbody_open=function(){return"<tbody>\n"},Rr.tbody_close=function(){return"</tbody>\n"},Rr.tr_open=function(){return"<tr>"},Rr.tr_close=function(){return"</tr>\n"},Rr.th_open=function(t,e){var i=t[e];return"<th"+(i.align?' style="text-align:'+i.align+'"':"")+">"},Rr.th_close=function(){return"</th>"},Rr.td_open=function(t,e){var i=t[e];return"<td"+(i.align?' style="text-align:'+i.align+'"':"")+">"},Rr.td_close=function(){return"</td>"},Rr.strong_open=function(){return"<strong>"},Rr.strong_close=function(){return"</strong>"},Rr.em_open=function(){return"<em>"},Rr.em_close=function(){return"</em>"},Rr.del_open=function(){return"<del>"},Rr.del_close=function(){return"</del>"},Rr.ins_open=function(){return"<ins>"},Rr.ins_close=function(){return"</ins>"},Rr.mark_open=function(){return"<mark>"},Rr.mark_close=function(){return"</mark>"},Rr.sub=function(t,e){return"<sub>"+zr(t[e].content)+"</sub>"},Rr.sup=function(t,e){return"<sup>"+zr(t[e].content)+"</sup>"},Rr.hardbreak=function(t,e,i){return i.xhtmlOut?"<br />\n":"<br>\n"},Rr.softbreak=function(t,e,i){return i.breaks?i.xhtmlOut?"<br />\n":"<br>\n":"\n"},Rr.text=function(t,e){return zr(t[e].content)},Rr.htmlblock=function(t,e){return t[e].content},Rr.htmltag=function(t,e){return t[e].content},Rr.abbr_open=function(t,e){return'<abbr title="'+zr(Lr(t[e].title))+'">'},Rr.abbr_close=function(){return"</abbr>"},Rr.footnote_ref=function(t,e){var i=Number(t[e].id+1).toString(),n="fnref"+i;return t[e].subId>0&&(n+=":"+t[e].subId),'<sup class="footnote-ref"><a href="#fn'+i+'" id="'+n+'">['+i+"]</a></sup>"},Rr.footnote_block_open=function(t,e,i){return(i.xhtmlOut?'<hr class="footnotes-sep" />\n':'<hr class="footnotes-sep">\n')+'<section class="footnotes">\n<ol class="footnotes-list">\n'},Rr.footnote_block_close=function(){return"</ol>\n</section>\n"},Rr.footnote_open=function(t,e){return'<li id="fn'+Number(t[e].id+1).toString()+'" class="footnote-item">'},Rr.footnote_close=function(){return"</li>\n"},Rr.footnote_anchor=function(t,e){var i="fnref"+Number(t[e].id+1).toString();return t[e].subId>0&&(i+=":"+t[e].subId),' <a href="#'+i+'" class="footnote-backref">↩</a>'},Rr.dl_open=function(){return"<dl>\n"},Rr.dt_open=function(){return"<dt>"},Rr.dd_open=function(){return"<dd>"},Rr.dl_close=function(){return"</dl>\n"},Rr.dt_close=function(){return"</dt>\n"},Rr.dd_close=function(){return"</dd>\n"};var Fr=Rr.getBreak=function(t,e){return(e=Br(t,e))<t.length&&"list_item_close"===t[e].type?"":"\n"};function qr(){this.rules=Cr({},Rr),this.getBreak=Rr.getBreak}function jr(){this.__rules__=[],this.__cache__=null}function Zr(t,e,i,n,o){this.src=t,this.env=n,this.options=i,this.parser=e,this.tokens=o,this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache=[],this.isInLabel=!1,this.linkLevel=0,this.linkContent="",this.labelUnmatchedScopes=0}function Hr(t,e){var i,n,o,r=-1,s=t.posMax,a=t.pos,l=t.isInLabel;if(t.isInLabel)return-1;if(t.labelUnmatchedScopes)return t.labelUnmatchedScopes--,-1;for(t.pos=e+1,t.isInLabel=!0,i=1;t.pos<s;){if(91===(o=t.src.charCodeAt(t.pos)))i++;else if(93===o&&0===--i){n=!0;break}t.parser.skipToken(t)}return n?(r=t.pos,t.labelUnmatchedScopes=0):t.labelUnmatchedScopes=i-1,t.pos=a,t.isInLabel=l,r}function Ur(t,e,i,n){var o,r,s,a,l,c;if(42!==t.charCodeAt(0))return-1;if(91!==t.charCodeAt(1))return-1;if(-1===t.indexOf("]:"))return-1;if((r=Hr(o=new Zr(t,e,i,n,[]),1))<0||58!==t.charCodeAt(r+1))return-1;for(a=o.posMax,s=r+2;s<a&&10!==o.src.charCodeAt(s);s++);return l=t.slice(2,r),0===(c=t.slice(r+2,s).trim()).length?-1:(n.abbreviations||(n.abbreviations={}),void 0===n.abbreviations[":"+l]&&(n.abbreviations[":"+l]=c),s)}function Vr(t){var e=Lr(t);try{e=decodeURI(e)}catch(t){}return encodeURI(e)}function Wr(t,e){var i,n,o,r=e,s=t.posMax;if(60===t.src.charCodeAt(e)){for(e++;e<s;){if(10===(i=t.src.charCodeAt(e)))return!1;if(62===i)return o=Vr(Er(t.src.slice(r+1,e))),!!t.parser.validateLink(o)&&(t.pos=e+1,t.linkContent=o,!0);92===i&&e+1<s?e+=2:e++}return!1}for(n=0;e<s&&32!==(i=t.src.charCodeAt(e))&&!(i<32||127===i);)if(92===i&&e+1<s)e+=2;else{if(40===i&&++n>1)break;if(41===i&&--n<0)break;e++}return r!==e&&(o=Er(t.src.slice(r,e)),!!t.parser.validateLink(o)&&(t.linkContent=o,t.pos=e,!0))}function Gr(t,e){var i,n=e,o=t.posMax,r=t.src.charCodeAt(e);if(34!==r&&39!==r&&40!==r)return!1;for(e++,40===r&&(r=41);e<o;){if((i=t.src.charCodeAt(e))===r)return t.pos=e+1,t.linkContent=Er(t.src.slice(n+1,e)),!0;92===i&&e+1<o?e+=2:e++}return!1}function Yr(t){return t.trim().replace(/\s+/g," ").toUpperCase()}function Kr(t,e,i,n){var o,r,s,a,l,c,h,u,d;if(91!==t.charCodeAt(0))return-1;if(-1===t.indexOf("]:"))return-1;if((r=Hr(o=new Zr(t,e,i,n,[]),0))<0||58!==t.charCodeAt(r+1))return-1;for(a=o.posMax,s=r+2;s<a&&(32===(l=o.src.charCodeAt(s))||10===l);s++);if(!Wr(o,s))return-1;for(h=o.linkContent,c=s=o.pos,s+=1;s<a&&(32===(l=o.src.charCodeAt(s))||10===l);s++);for(s<a&&c!==s&&Gr(o,s)?(u=o.linkContent,s=o.pos):(u="",s=c);s<a&&32===o.src.charCodeAt(s);)s++;return s<a&&10!==o.src.charCodeAt(s)?-1:(d=Yr(t.slice(1,r)),void 0===n.references[d]&&(n.references[d]={title:u,href:h}),s)}qr.prototype.renderInline=function(t,e,i){for(var n=this.rules,o=t.length,r=0,s="";o--;)s+=n[t[r].type](t,r++,e,i,this);return s},qr.prototype.render=function(t,e,i){for(var n=this.rules,o=t.length,r=-1,s="";++r<o;)"inline"===t[r].type?s+=this.renderInline(t[r].children,e,i):s+=n[t[r].type](t,r,e,i,this);return s},jr.prototype.__find__=function(t){for(var e=this.__rules__.length,i=-1;e--;)if(this.__rules__[++i].name===t)return i;return-1},jr.prototype.__compile__=function(){var t=this,e=[""];t.__rules__.forEach((function(t){t.enabled&&t.alt.forEach((function(t){e.indexOf(t)<0&&e.push(t)}))})),t.__cache__={},e.forEach((function(e){t.__cache__[e]=[],t.__rules__.forEach((function(i){i.enabled&&(e&&i.alt.indexOf(e)<0||t.__cache__[e].push(i.fn))}))}))},jr.prototype.at=function(t,e,i){var n=this.__find__(t),o=i||{};if(-1===n)throw new Error("Parser rule not found: "+t);this.__rules__[n].fn=e,this.__rules__[n].alt=o.alt||[],this.__cache__=null},jr.prototype.before=function(t,e,i,n){var o=this.__find__(t),r=n||{};if(-1===o)throw new Error("Parser rule not found: "+t);this.__rules__.splice(o,0,{name:e,enabled:!0,fn:i,alt:r.alt||[]}),this.__cache__=null},jr.prototype.after=function(t,e,i,n){var o=this.__find__(t),r=n||{};if(-1===o)throw new Error("Parser rule not found: "+t);this.__rules__.splice(o+1,0,{name:e,enabled:!0,fn:i,alt:r.alt||[]}),this.__cache__=null},jr.prototype.push=function(t,e,i){var n=i||{};this.__rules__.push({name:t,enabled:!0,fn:e,alt:n.alt||[]}),this.__cache__=null},jr.prototype.enable=function(t,e){t=Array.isArray(t)?t:[t],e&&this.__rules__.forEach((function(t){t.enabled=!1})),t.forEach((function(t){var e=this.__find__(t);if(e<0)throw new Error("Rules manager: invalid rule name "+t);this.__rules__[e].enabled=!0}),this),this.__cache__=null},jr.prototype.disable=function(t){(t=Array.isArray(t)?t:[t]).forEach((function(t){var e=this.__find__(t);if(e<0)throw new Error("Rules manager: invalid rule name "+t);this.__rules__[e].enabled=!1}),this),this.__cache__=null},jr.prototype.getRules=function(t){return null===this.__cache__&&this.__compile__(),this.__cache__[t]||[]},Zr.prototype.pushPending=function(){this.tokens.push({type:"text",content:this.pending,level:this.pendingLevel}),this.pending=""},Zr.prototype.push=function(t){this.pending&&this.pushPending(),this.tokens.push(t),this.pendingLevel=this.level},Zr.prototype.cacheSet=function(t,e){for(var i=this.cache.length;i<=t;i++)this.cache.push(0);this.cache[t]=e},Zr.prototype.cacheGet=function(t){return t<this.cache.length?this.cache[t]:0};function Jr(t){return t.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1")}var Xr=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,Qr=/\((c|tm|r|p)\)/gi,ts={c:"©",r:"®",p:"§",tm:"™"};var es=/['"]/,is=/['"]/g,ns=/[-\s()\[\]]/;function os(t,e){return!(e<0||e>=t.length)&&!ns.test(t[e])}function rs(t,e,i){return t.substr(0,e)+i+t.substr(e+1)}var ss=[["block",function(t){t.inlineMode?t.tokens.push({type:"inline",content:t.src.replace(/\n/g," ").trim(),level:0,lines:[0,1],children:[]}):t.block.parse(t.src,t.options,t.env,t.tokens)}],["abbr",function(t){var e,i,n,o,r=t.tokens;if(!t.inlineMode)for(e=1,i=r.length-1;e<i;e++)if("paragraph_open"===r[e-1].type&&"inline"===r[e].type&&"paragraph_close"===r[e+1].type){for(n=r[e].content;n.length&&!((o=Ur(n,t.inline,t.options,t.env))<0);)n=n.slice(o).trim();r[e].content=n,n.length||(r[e-1].tight=!0,r[e+1].tight=!0)}}],["references",function(t){var e,i,n,o,r=t.tokens;if(t.env.references=t.env.references||{},!t.inlineMode)for(e=1,i=r.length-1;e<i;e++)if("inline"===r[e].type&&"paragraph_open"===r[e-1].type&&"paragraph_close"===r[e+1].type){for(n=r[e].content;n.length&&!((o=Kr(n,t.inline,t.options,t.env))<0);)n=n.slice(o).trim();r[e].content=n,n.length||(r[e-1].tight=!0,r[e+1].tight=!0)}}],["inline",function(t){var e,i,n,o=t.tokens;for(i=0,n=o.length;i<n;i++)"inline"===(e=o[i]).type&&t.inline.parse(e.content,t.options,t.env,e.children)}],["footnote_tail",function(t){var e,i,n,o,r,s,a,l,c,h=0,u=!1,d={};if(t.env.footnotes&&(t.tokens=t.tokens.filter((function(t){return"footnote_reference_open"===t.type?(u=!0,l=[],c=t.label,!1):"footnote_reference_close"===t.type?(u=!1,d[":"+c]=l,!1):(u&&l.push(t),!u)})),t.env.footnotes.list)){for(s=t.env.footnotes.list,t.tokens.push({type:"footnote_block_open",level:h++}),e=0,i=s.length;e<i;e++){for(t.tokens.push({type:"footnote_open",id:e,level:h++}),s[e].tokens?((a=[]).push({type:"paragraph_open",tight:!1,level:h++}),a.push({type:"inline",content:"",level:h,children:s[e].tokens}),a.push({type:"paragraph_close",tight:!1,level:--h})):s[e].label&&(a=d[":"+s[e].label]),t.tokens=t.tokens.concat(a),r="paragraph_close"===t.tokens[t.tokens.length-1].type?t.tokens.pop():null,o=s[e].count>0?s[e].count:1,n=0;n<o;n++)t.tokens.push({type:"footnote_anchor",id:e,subId:n,level:h});r&&t.tokens.push(r),t.tokens.push({type:"footnote_close",level:--h})}t.tokens.push({type:"footnote_block_close",level:--h})}}],["abbr2",function(t){var e,i,n,o,r,s,a,l,c,h,u,d,p=t.tokens;if(t.env.abbreviations)for(t.env.abbrRegExp||(d="(^|["+" \n()[]'\".,!?-".split("").map(Jr).join("")+"])("+Object.keys(t.env.abbreviations).map((function(t){return t.substr(1)})).sort((function(t,e){return e.length-t.length})).map(Jr).join("|")+")($|["+" \n()[]'\".,!?-".split("").map(Jr).join("")+"])",t.env.abbrRegExp=new RegExp(d,"g")),h=t.env.abbrRegExp,i=0,n=p.length;i<n;i++)if("inline"===p[i].type)for(e=(o=p[i].children).length-1;e>=0;e--)if("text"===(r=o[e]).type){for(l=0,s=r.content,h.lastIndex=0,c=r.level,a=[];u=h.exec(s);)h.lastIndex>l&&a.push({type:"text",content:s.slice(l,u.index+u[1].length),level:c}),a.push({type:"abbr_open",title:t.env.abbreviations[":"+u[2]],level:c++}),a.push({type:"text",content:u[2],level:c}),a.push({type:"abbr_close",level:--c}),l=h.lastIndex-u[3].length;a.length&&(l<s.length&&a.push({type:"text",content:s.slice(l),level:c}),p[i].children=o=[].concat(o.slice(0,e),a,o.slice(e+1)))}}],["replacements",function(t){var e,i,n,o,r,s;if(t.options.typographer)for(r=t.tokens.length-1;r>=0;r--)if("inline"===t.tokens[r].type)for(e=(o=t.tokens[r].children).length-1;e>=0;e--)"text"===(i=o[e]).type&&(n=i.content,n=(s=n).indexOf("(")<0?s:s.replace(Qr,(function(t,e){return ts[e.toLowerCase()]})),Xr.test(n)&&(n=n.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---([^-]|$)/gm,"$1—$2").replace(/(^|\s)--(\s|$)/gm,"$1–$2").replace(/(^|[^-\s])--([^-\s]|$)/gm,"$1–$2")),i.content=n)}],["smartquotes",function(t){var e,i,n,o,r,s,a,l,c,h,u,d,p,m,f,g,v;if(t.options.typographer)for(v=[],f=t.tokens.length-1;f>=0;f--)if("inline"===t.tokens[f].type)for(g=t.tokens[f].children,v.length=0,e=0;e<g.length;e++)if("text"===(i=g[e]).type&&!es.test(i.text)){for(a=g[e].level,p=v.length-1;p>=0&&!(v[p].level<=a);p--);v.length=p+1,r=0,s=(n=i.content).length;t:for(;r<s&&(is.lastIndex=r,o=is.exec(n));)if(l=!os(n,o.index-1),r=o.index+1,m="'"===o[0],(c=!os(n,r))||l){if(u=!c,d=!l)for(p=v.length-1;p>=0&&(h=v[p],!(v[p].level<a));p--)if(h.single===m&&v[p].level===a){h=v[p],m?(g[h.token].content=rs(g[h.token].content,h.pos,t.options.quotes[2]),i.content=rs(i.content,o.index,t.options.quotes[3])):(g[h.token].content=rs(g[h.token].content,h.pos,t.options.quotes[0]),i.content=rs(i.content,o.index,t.options.quotes[1])),v.length=p;continue t}u?v.push({token:e,pos:o.index,single:m,level:a}):d&&m&&(i.content=rs(i.content,o.index,"’"))}else m&&(i.content=rs(i.content,o.index,"’"))}}]];function as(){this.options={},this.ruler=new jr;for(var t=0;t<ss.length;t++)this.ruler.push(ss[t][0],ss[t][1])}function ls(t,e,i,n,o){var r,s,a,l,c,h,u;for(this.src=t,this.parser=e,this.options=i,this.env=n,this.tokens=o,this.bMarks=[],this.eMarks=[],this.tShift=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.parentType="root",this.ddIndent=-1,this.level=0,this.result="",h=0,u=!1,a=l=h=0,c=(s=this.src).length;l<c;l++){if(r=s.charCodeAt(l),!u){if(32===r){h++;continue}u=!0}10!==r&&l!==c-1||(10!==r&&l++,this.bMarks.push(a),this.eMarks.push(l),this.tShift.push(h),u=!1,h=0,a=l+1)}this.bMarks.push(s.length),this.eMarks.push(s.length),this.tShift.push(0),this.lineMax=this.bMarks.length-1}function cs(t,e){var i,n,o;return(n=t.bMarks[e]+t.tShift[e])>=(o=t.eMarks[e])||42!==(i=t.src.charCodeAt(n++))&&45!==i&&43!==i||n<o&&32!==t.src.charCodeAt(n)?-1:n}function hs(t,e){var i,n=t.bMarks[e]+t.tShift[e],o=t.eMarks[e];if(n+1>=o)return-1;if((i=t.src.charCodeAt(n++))<48||i>57)return-1;for(;;){if(n>=o)return-1;if(!((i=t.src.charCodeAt(n++))>=48&&i<=57)){if(41===i||46===i)break;return-1}}return n<o&&32!==t.src.charCodeAt(n)?-1:n}as.prototype.process=function(t){var e,i,n;for(e=0,i=(n=this.ruler.getRules("")).length;e<i;e++)n[e](t)},ls.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]},ls.prototype.skipEmptyLines=function(t){for(var e=this.lineMax;t<e&&!(this.bMarks[t]+this.tShift[t]<this.eMarks[t]);t++);return t},ls.prototype.skipSpaces=function(t){for(var e=this.src.length;t<e&&32===this.src.charCodeAt(t);t++);return t},ls.prototype.skipChars=function(t,e){for(var i=this.src.length;t<i&&this.src.charCodeAt(t)===e;t++);return t},ls.prototype.skipCharsBack=function(t,e,i){if(t<=i)return t;for(;t>i;)if(e!==this.src.charCodeAt(--t))return t+1;return t},ls.prototype.getLines=function(t,e,i,n){var o,r,s,a,l,c=t;if(t>=e)return"";if(c+1===e)return r=this.bMarks[c]+Math.min(this.tShift[c],i),s=n?this.eMarks[c]+1:this.eMarks[c],this.src.slice(r,s);for(a=new Array(e-t),o=0;c<e;c++,o++)(l=this.tShift[c])>i&&(l=i),l<0&&(l=0),r=this.bMarks[c]+l,s=c+1<e||n?this.eMarks[c]+1:this.eMarks[c],a[o]=this.src.slice(r,s);return a.join("")};var us={};["article","aside","button","blockquote","body","canvas","caption","col","colgroup","dd","div","dl","dt","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","iframe","li","map","object","ol","output","p","pre","progress","script","section","style","table","tbody","td","textarea","tfoot","th","tr","thead","ul","video"].forEach((function(t){us[t]=!0}));var ds=/^<([a-zA-Z]{1,15})[\s\/>]/,ps=/^<\/([a-zA-Z]{1,15})[\s>]/;function ms(t,e){var i=t.bMarks[e]+t.blkIndent,n=t.eMarks[e];return t.src.substr(i,n-i)}function fs(t,e){var i,n,o=t.bMarks[e]+t.tShift[e],r=t.eMarks[e];return o>=r||126!==(n=t.src.charCodeAt(o++))&&58!==n||o===(i=t.skipSpaces(o))||i>=r?-1:i}var gs=[["code",function(t,e,i){var n,o;if(t.tShift[e]-t.blkIndent<4)return!1;for(o=n=e+1;n<i;)if(t.isEmpty(n))n++;else{if(!(t.tShift[n]-t.blkIndent>=4))break;o=++n}return t.line=n,t.tokens.push({type:"code",content:t.getLines(e,o,4+t.blkIndent,!0),block:!0,lines:[e,t.line],level:t.level}),!0}],["fences",function(t,e,i,n){var o,r,s,a,l,c=!1,h=t.bMarks[e]+t.tShift[e],u=t.eMarks[e];if(h+3>u)return!1;if(126!==(o=t.src.charCodeAt(h))&&96!==o)return!1;if(l=h,(r=(h=t.skipChars(h,o))-l)<3)return!1;if((s=t.src.slice(h,u).trim()).indexOf("`")>=0)return!1;if(n)return!0;for(a=e;!(++a>=i)&&!((h=l=t.bMarks[a]+t.tShift[a])<(u=t.eMarks[a])&&t.tShift[a]<t.blkIndent);)if(t.src.charCodeAt(h)===o&&!(t.tShift[a]-t.blkIndent>=4||(h=t.skipChars(h,o))-l<r||(h=t.skipSpaces(h))<u)){c=!0;break}return r=t.tShift[e],t.line=a+(c?1:0),t.tokens.push({type:"fence",params:s,content:t.getLines(e+1,a,r,!0),lines:[e,t.line],level:t.level}),!0},["paragraph","blockquote","list"]],["blockquote",function(t,e,i,n){var o,r,s,a,l,c,h,u,d,p,m,f=t.bMarks[e]+t.tShift[e],g=t.eMarks[e];if(f>g)return!1;if(62!==t.src.charCodeAt(f++))return!1;if(t.level>=t.options.maxNesting)return!1;if(n)return!0;for(32===t.src.charCodeAt(f)&&f++,l=t.blkIndent,t.blkIndent=0,a=[t.bMarks[e]],t.bMarks[e]=f,r=(f=f<g?t.skipSpaces(f):f)>=g,s=[t.tShift[e]],t.tShift[e]=f-t.bMarks[e],u=t.parser.ruler.getRules("blockquote"),o=e+1;o<i&&!((f=t.bMarks[o]+t.tShift[o])>=(g=t.eMarks[o]));o++)if(62!==t.src.charCodeAt(f++)){if(r)break;for(m=!1,d=0,p=u.length;d<p;d++)if(u[d](t,o,i,!0)){m=!0;break}if(m)break;a.push(t.bMarks[o]),s.push(t.tShift[o]),t.tShift[o]=-1337}else 32===t.src.charCodeAt(f)&&f++,a.push(t.bMarks[o]),t.bMarks[o]=f,r=(f=f<g?t.skipSpaces(f):f)>=g,s.push(t.tShift[o]),t.tShift[o]=f-t.bMarks[o];for(c=t.parentType,t.parentType="blockquote",t.tokens.push({type:"blockquote_open",lines:h=[e,0],level:t.level++}),t.parser.tokenize(t,e,o),t.tokens.push({type:"blockquote_close",level:--t.level}),t.parentType=c,h[1]=t.line,d=0;d<s.length;d++)t.bMarks[d+e]=a[d],t.tShift[d+e]=s[d];return t.blkIndent=l,!0},["paragraph","blockquote","list"]],["hr",function(t,e,i,n){var o,r,s,a=t.bMarks[e],l=t.eMarks[e];if((a+=t.tShift[e])>l)return!1;if(42!==(o=t.src.charCodeAt(a++))&&45!==o&&95!==o)return!1;for(r=1;a<l;){if((s=t.src.charCodeAt(a++))!==o&&32!==s)return!1;s===o&&r++}return!(r<3)&&(n||(t.line=e+1,t.tokens.push({type:"hr",lines:[e,t.line],level:t.level})),!0)},["paragraph","blockquote","list"]],["list",function(t,e,i,n){var o,r,s,a,l,c,h,u,d,p,m,f,g,v,y,b,_,x,w,k,C,S=!0;if((u=hs(t,e))>=0)f=!0;else{if(!((u=cs(t,e))>=0))return!1;f=!1}if(t.level>=t.options.maxNesting)return!1;if(m=t.src.charCodeAt(u-1),n)return!0;for(v=t.tokens.length,f?(h=t.bMarks[e]+t.tShift[e],p=Number(t.src.substr(h,u-h-1)),t.tokens.push({type:"ordered_list_open",order:p,lines:b=[e,0],level:t.level++})):t.tokens.push({type:"bullet_list_open",lines:b=[e,0],level:t.level++}),o=e,y=!1,x=t.parser.ruler.getRules("list");!(!(o<i)||((d=(g=t.skipSpaces(u))>=t.eMarks[o]?1:g-u)>4&&(d=1),d<1&&(d=1),r=u-t.bMarks[o]+d,t.tokens.push({type:"list_item_open",lines:_=[e,0],level:t.level++}),a=t.blkIndent,l=t.tight,s=t.tShift[e],c=t.parentType,t.tShift[e]=g-t.bMarks[e],t.blkIndent=r,t.tight=!0,t.parentType="list",t.parser.tokenize(t,e,i,!0),t.tight&&!y||(S=!1),y=t.line-e>1&&t.isEmpty(t.line-1),t.blkIndent=a,t.tShift[e]=s,t.tight=l,t.parentType=c,t.tokens.push({type:"list_item_close",level:--t.level}),o=e=t.line,_[1]=o,g=t.bMarks[e],o>=i)||t.isEmpty(o)||t.tShift[o]<t.blkIndent);){for(C=!1,w=0,k=x.length;w<k;w++)if(x[w](t,o,i,!0)){C=!0;break}if(C)break;if(f){if((u=hs(t,o))<0)break}else if((u=cs(t,o))<0)break;if(m!==t.src.charCodeAt(u-1))break}return t.tokens.push({type:f?"ordered_list_close":"bullet_list_close",level:--t.level}),b[1]=o,t.line=o,S&&function(t,e){var i,n,o=t.level+2;for(i=e+2,n=t.tokens.length-2;i<n;i++)t.tokens[i].level===o&&"paragraph_open"===t.tokens[i].type&&(t.tokens[i+2].tight=!0,t.tokens[i].tight=!0,i+=2)}(t,v),!0},["paragraph","blockquote"]],["footnote",function(t,e,i,n){var o,r,s,a,l,c=t.bMarks[e]+t.tShift[e],h=t.eMarks[e];if(c+4>h)return!1;if(91!==t.src.charCodeAt(c))return!1;if(94!==t.src.charCodeAt(c+1))return!1;if(t.level>=t.options.maxNesting)return!1;for(a=c+2;a<h;a++){if(32===t.src.charCodeAt(a))return!1;if(93===t.src.charCodeAt(a))break}return a!==c+2&&(!(a+1>=h||58!==t.src.charCodeAt(++a))&&(n||(a++,t.env.footnotes||(t.env.footnotes={}),t.env.footnotes.refs||(t.env.footnotes.refs={}),l=t.src.slice(c+2,a-2),t.env.footnotes.refs[":"+l]=-1,t.tokens.push({type:"footnote_reference_open",label:l,level:t.level++}),o=t.bMarks[e],r=t.tShift[e],s=t.parentType,t.tShift[e]=t.skipSpaces(a)-a,t.bMarks[e]=a,t.blkIndent+=4,t.parentType="footnote",t.tShift[e]<t.blkIndent&&(t.tShift[e]+=t.blkIndent,t.bMarks[e]-=t.blkIndent),t.parser.tokenize(t,e,i,!0),t.parentType=s,t.blkIndent-=4,t.tShift[e]=r,t.bMarks[e]=o,t.tokens.push({type:"footnote_reference_close",level:--t.level})),!0))},["paragraph"]],["heading",function(t,e,i,n){var o,r,s,a=t.bMarks[e]+t.tShift[e],l=t.eMarks[e];if(a>=l)return!1;if(35!==(o=t.src.charCodeAt(a))||a>=l)return!1;for(r=1,o=t.src.charCodeAt(++a);35===o&&a<l&&r<=6;)r++,o=t.src.charCodeAt(++a);return!(r>6||a<l&&32!==o)&&(n||(l=t.skipCharsBack(l,32,a),(s=t.skipCharsBack(l,35,a))>a&&32===t.src.charCodeAt(s-1)&&(l=s),t.line=e+1,t.tokens.push({type:"heading_open",hLevel:r,lines:[e,t.line],level:t.level}),a<l&&t.tokens.push({type:"inline",content:t.src.slice(a,l).trim(),level:t.level+1,lines:[e,t.line],children:[]}),t.tokens.push({type:"heading_close",hLevel:r,level:t.level})),!0)},["paragraph","blockquote"]],["lheading",function(t,e,i){var n,o,r,s=e+1;return!(s>=i)&&(!(t.tShift[s]<t.blkIndent)&&(!(t.tShift[s]-t.blkIndent>3)&&(!((o=t.bMarks[s]+t.tShift[s])>=(r=t.eMarks[s]))&&((45===(n=t.src.charCodeAt(o))||61===n)&&(o=t.skipChars(o,n),!((o=t.skipSpaces(o))<r)&&(o=t.bMarks[e]+t.tShift[e],t.line=s+1,t.tokens.push({type:"heading_open",hLevel:61===n?1:2,lines:[e,t.line],level:t.level}),t.tokens.push({type:"inline",content:t.src.slice(o,t.eMarks[e]).trim(),level:t.level+1,lines:[e,t.line-1],children:[]}),t.tokens.push({type:"heading_close",hLevel:61===n?1:2,level:t.level}),!0))))))}],["htmlblock",function(t,e,i,n){var o,r,s,a=t.bMarks[e],l=t.eMarks[e],c=t.tShift[e];if(a+=c,!t.options.html)return!1;if(c>3||a+2>=l)return!1;if(60!==t.src.charCodeAt(a))return!1;if(33===(o=t.src.charCodeAt(a+1))||63===o){if(n)return!0}else{if(47!==o&&!function(t){var e=32|t;return e>=97&&e<=122}(o))return!1;if(47===o){if(!(r=t.src.slice(a,l).match(ps)))return!1}else if(!(r=t.src.slice(a,l).match(ds)))return!1;if(!0!==us[r[1].toLowerCase()])return!1;if(n)return!0}for(s=e+1;s<t.lineMax&&!t.isEmpty(s);)s++;return t.line=s,t.tokens.push({type:"htmlblock",level:t.level,lines:[e,t.line],content:t.getLines(e,s,0,!0)}),!0},["paragraph","blockquote"]],["table",function(t,e,i,n){var o,r,s,a,l,c,h,u,d,p,m;if(e+2>i)return!1;if(l=e+1,t.tShift[l]<t.blkIndent)return!1;if((s=t.bMarks[l]+t.tShift[l])>=t.eMarks[l])return!1;if(124!==(o=t.src.charCodeAt(s))&&45!==o&&58!==o)return!1;if(r=ms(t,e+1),!/^[-:| ]+$/.test(r))return!1;if((c=r.split("|"))<=2)return!1;for(u=[],a=0;a<c.length;a++){if(!(d=c[a].trim())){if(0===a||a===c.length-1)continue;return!1}if(!/^:?-+:?$/.test(d))return!1;58===d.charCodeAt(d.length-1)?u.push(58===d.charCodeAt(0)?"center":"right"):58===d.charCodeAt(0)?u.push("left"):u.push("")}if(-1===(r=ms(t,e).trim()).indexOf("|"))return!1;if(c=r.replace(/^\||\|$/g,"").split("|"),u.length!==c.length)return!1;if(n)return!0;for(t.tokens.push({type:"table_open",lines:p=[e,0],level:t.level++}),t.tokens.push({type:"thead_open",lines:[e,e+1],level:t.level++}),t.tokens.push({type:"tr_open",lines:[e,e+1],level:t.level++}),a=0;a<c.length;a++)t.tokens.push({type:"th_open",align:u[a],lines:[e,e+1],level:t.level++}),t.tokens.push({type:"inline",content:c[a].trim(),lines:[e,e+1],level:t.level,children:[]}),t.tokens.push({type:"th_close",level:--t.level});for(t.tokens.push({type:"tr_close",level:--t.level}),t.tokens.push({type:"thead_close",level:--t.level}),t.tokens.push({type:"tbody_open",lines:m=[e+2,0],level:t.level++}),l=e+2;l<i&&!(t.tShift[l]<t.blkIndent)&&-1!==(r=ms(t,l).trim()).indexOf("|");l++){for(c=r.replace(/^\||\|$/g,"").split("|"),t.tokens.push({type:"tr_open",level:t.level++}),a=0;a<c.length;a++)t.tokens.push({type:"td_open",align:u[a],level:t.level++}),h=c[a].substring(124===c[a].charCodeAt(0)?1:0,124===c[a].charCodeAt(c[a].length-1)?c[a].length-1:c[a].length).trim(),t.tokens.push({type:"inline",content:h,level:t.level,children:[]}),t.tokens.push({type:"td_close",level:--t.level});t.tokens.push({type:"tr_close",level:--t.level})}return t.tokens.push({type:"tbody_close",level:--t.level}),t.tokens.push({type:"table_close",level:--t.level}),p[1]=m[1]=l,t.line=l,!0},["paragraph"]],["deflist",function(t,e,i,n){var o,r,s,a,l,c,h,u,d,p,m,f,g,v;if(n)return!(t.ddIndent<0)&&fs(t,e)>=0;if(h=e+1,t.isEmpty(h)&&++h>i)return!1;if(t.tShift[h]<t.blkIndent)return!1;if((o=fs(t,h))<0)return!1;if(t.level>=t.options.maxNesting)return!1;c=t.tokens.length,t.tokens.push({type:"dl_open",lines:l=[e,0],level:t.level++}),s=e,r=h;t:for(;;){for(v=!0,g=!1,t.tokens.push({type:"dt_open",lines:[s,s],level:t.level++}),t.tokens.push({type:"inline",content:t.getLines(s,s+1,t.blkIndent,!1).trim(),level:t.level+1,lines:[s,s],children:[]}),t.tokens.push({type:"dt_close",level:--t.level});;){if(t.tokens.push({type:"dd_open",lines:a=[h,0],level:t.level++}),f=t.tight,d=t.ddIndent,u=t.blkIndent,m=t.tShift[r],p=t.parentType,t.blkIndent=t.ddIndent=t.tShift[r]+2,t.tShift[r]=o-t.bMarks[r],t.tight=!0,t.parentType="deflist",t.parser.tokenize(t,r,i,!0),t.tight&&!g||(v=!1),g=t.line-r>1&&t.isEmpty(t.line-1),t.tShift[r]=m,t.tight=f,t.parentType=p,t.blkIndent=u,t.ddIndent=d,t.tokens.push({type:"dd_close",level:--t.level}),a[1]=h=t.line,h>=i)break t;if(t.tShift[h]<t.blkIndent)break t;if((o=fs(t,h))<0)break;r=h}if(h>=i)break;if(s=h,t.isEmpty(s))break;if(t.tShift[s]<t.blkIndent)break;if((r=s+1)>=i)break;if(t.isEmpty(r)&&r++,r>=i)break;if(t.tShift[r]<t.blkIndent)break;if((o=fs(t,r))<0)break}return t.tokens.push({type:"dl_close",level:--t.level}),l[1]=h,t.line=h,v&&function(t,e){var i,n,o=t.level+2;for(i=e+2,n=t.tokens.length-2;i<n;i++)t.tokens[i].level===o&&"paragraph_open"===t.tokens[i].type&&(t.tokens[i+2].tight=!0,t.tokens[i].tight=!0,i+=2)}(t,c),!0},["paragraph"]],["paragraph",function(t,e){var i,n,o,r,s,a,l=e+1;if(l<(i=t.lineMax)&&!t.isEmpty(l))for(a=t.parser.ruler.getRules("paragraph");l<i&&!t.isEmpty(l);l++)if(!(t.tShift[l]-t.blkIndent>3)){for(o=!1,r=0,s=a.length;r<s;r++)if(a[r](t,l,i,!0)){o=!0;break}if(o)break}return n=t.getLines(e,l,t.blkIndent,!1).trim(),t.line=l,n.length&&(t.tokens.push({type:"paragraph_open",tight:!1,lines:[e,t.line],level:t.level}),t.tokens.push({type:"inline",content:n,level:t.level+1,lines:[e,t.line],children:[]}),t.tokens.push({type:"paragraph_close",tight:!1,level:t.level})),!0}]];function vs(){this.ruler=new jr;for(var t=0;t<gs.length;t++)this.ruler.push(gs[t][0],gs[t][1],{alt:(gs[t][2]||[]).slice()})}vs.prototype.tokenize=function(t,e,i){for(var n,o=this.ruler.getRules(""),r=o.length,s=e,a=!1;s<i&&(t.line=s=t.skipEmptyLines(s),!(s>=i))&&!(t.tShift[s]<t.blkIndent);){for(n=0;n<r&&!o[n](t,s,i,!1);n++);if(t.tight=!a,t.isEmpty(t.line-1)&&(a=!0),(s=t.line)<i&&t.isEmpty(s)){if(a=!0,++s<i&&"list"===t.parentType&&t.isEmpty(s))break;t.line=s}}};var ys=/[\n\t]/g,bs=/\r[\n\u0085]|[\u2424\u2028\u0085]/g,_s=/\u00a0/g;function xs(t){switch(t){case 10:case 92:case 96:case 42:case 95:case 94:case 91:case 93:case 33:case 38:case 60:case 62:case 123:case 125:case 36:case 37:case 64:case 126:case 43:case 61:case 58:return!0;default:return!1}}vs.prototype.parse=function(t,e,i,n){var o,r=0,s=0;if(!t)return[];(t=(t=t.replace(_s," ")).replace(bs,"\n")).indexOf("\t")>=0&&(t=t.replace(ys,(function(e,i){var n;return 10===t.charCodeAt(i)?(r=i+1,s=0,e):(n=" ".slice((i-r-s)%4),s=i-r+1,n)}))),o=new ls(t,this,e,i,n),this.tokenize(o,o.line,o.lineMax)};for(var ws=[],ks=0;ks<256;ks++)ws.push(0);function Cs(t){return t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122}function Ss(t,e){var i,n,o,r=e,s=!0,a=!0,l=t.posMax,c=t.src.charCodeAt(e);for(i=e>0?t.src.charCodeAt(e-1):-1;r<l&&t.src.charCodeAt(r)===c;)r++;return r>=l&&(s=!1),(o=r-e)>=4?s=a=!1:(32!==(n=r<l?t.src.charCodeAt(r):-1)&&10!==n||(s=!1),32!==i&&10!==i||(a=!1),95===c&&(Cs(i)&&(s=!1),Cs(n)&&(a=!1))),{can_open:s,can_close:a,delims:o}}"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach((function(t){ws[t.charCodeAt(0)]=1}));var Es=/\\([ \\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;var Ts=/\\([ \\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;var Ms=["coap","doi","javascript","aaa","aaas","about","acap","cap","cid","crid","data","dav","dict","dns","file","ftp","geo","go","gopher","h323","http","https","iax","icap","im","imap","info","ipp","iris","iris.beep","iris.xpc","iris.xpcs","iris.lwz","ldap","mailto","mid","msrp","msrps","mtqp","mupdate","news","nfs","ni","nih","nntp","opaquelocktoken","pop","pres","rtsp","service","session","shttp","sieve","sip","sips","sms","snmp","soap.beep","soap.beeps","tag","tel","telnet","tftp","thismessage","tn3270","tip","tv","urn","vemmi","ws","wss","xcon","xcon-userid","xmlrpc.beep","xmlrpc.beeps","xmpp","z39.50r","z39.50s","adiumxtra","afp","afs","aim","apt","attachment","aw","beshare","bitcoin","bolo","callto","chrome","chrome-extension","com-eventbrite-attendee","content","cvs","dlna-playsingle","dlna-playcontainer","dtn","dvb","ed2k","facetime","feed","finger","fish","gg","git","gizmoproject","gtalk","hcp","icon","ipn","irc","irc6","ircs","itms","jar","jms","keyparc","lastfm","ldaps","magnet","maps","market","message","mms","ms-help","msnim","mumble","mvn","notes","oid","palm","paparazzi","platform","proxy","psyc","query","res","resource","rmi","rsync","rtmp","secondlife","sftp","sgn","skype","smb","soldat","spotify","ssh","steam","svn","teamspeak","things","udp","unreal","ut2004","ventrilo","view-source","webcal","wtai","wyciwyg","xfire","xri","ymsgr"],Ds=/^<([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)>/,$s=/^<([a-zA-Z.\-]{1,25}):([^<>\x00-\x20]*)>/;function As(t,e){return t=t.source,e=e||"",function i(n,o){return n?(o=o.source||o,t=t.replace(n,o),i):new RegExp(t,e)}}var Ls=As(/(?:unquoted|single_quoted|double_quoted)/)("unquoted",/[^"'=<>`\x00-\x20]+/)("single_quoted",/'[^']*'/)("double_quoted",/"[^"]*"/)(),Os=As(/(?:\s+attr_name(?:\s*=\s*attr_value)?)/)("attr_name",/[a-zA-Z_:][a-zA-Z0-9:._-]*/)("attr_value",Ls)(),Ps=As(/<[A-Za-z][A-Za-z0-9]*attribute*\s*\/?>/)("attribute",Os)(),Is=As(/^(?:open_tag|close_tag|comment|processing|declaration|cdata)/)("open_tag",Ps)("close_tag",/<\/[A-Za-z][A-Za-z0-9]*\s*>/)("comment",/<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->/)("processing",/<[?].*?[?]>/)("declaration",/<![A-Z]+\s+[^>]*>/)("cdata",/<!\[CDATA\[[\s\S]*?\]\]>/)();var Ns=/^&#((?:x[a-f0-9]{1,8}|[0-9]{1,8}));/i,zs=/^&([a-z][a-z0-9]{1,31});/i;var Rs=[["text",function(t,e){for(var i=t.pos;i<t.posMax&&!xs(t.src.charCodeAt(i));)i++;return i!==t.pos&&(e||(t.pending+=t.src.slice(t.pos,i)),t.pos=i,!0)}],["newline",function(t,e){var i,n,o=t.pos;if(10!==t.src.charCodeAt(o))return!1;if(i=t.pending.length-1,n=t.posMax,!e)if(i>=0&&32===t.pending.charCodeAt(i))if(i>=1&&32===t.pending.charCodeAt(i-1)){for(var r=i-2;r>=0;r--)if(32!==t.pending.charCodeAt(r)){t.pending=t.pending.substring(0,r+1);break}t.push({type:"hardbreak",level:t.level})}else t.pending=t.pending.slice(0,-1),t.push({type:"softbreak",level:t.level});else t.push({type:"softbreak",level:t.level});for(o++;o<n&&32===t.src.charCodeAt(o);)o++;return t.pos=o,!0}],["escape",function(t,e){var i,n=t.pos,o=t.posMax;if(92!==t.src.charCodeAt(n))return!1;if(++n<o){if((i=t.src.charCodeAt(n))<256&&0!==ws[i])return e||(t.pending+=t.src[n]),t.pos+=2,!0;if(10===i){for(e||t.push({type:"hardbreak",level:t.level}),n++;n<o&&32===t.src.charCodeAt(n);)n++;return t.pos=n,!0}}return e||(t.pending+="\\"),t.pos++,!0}],["backticks",function(t,e){var i,n,o,r,s,a=t.pos;if(96!==t.src.charCodeAt(a))return!1;for(i=a,a++,n=t.posMax;a<n&&96===t.src.charCodeAt(a);)a++;for(o=t.src.slice(i,a),r=s=a;-1!==(r=t.src.indexOf("`",s));){for(s=r+1;s<n&&96===t.src.charCodeAt(s);)s++;if(s-r===o.length)return e||t.push({type:"code",content:t.src.slice(a,r).replace(/[ \n]+/g," ").trim(),block:!1,level:t.level}),t.pos=s,!0}return e||(t.pending+=o),t.pos+=o.length,!0}],["del",function(t,e){var i,n,o,r,s,a=t.posMax,l=t.pos;if(126!==t.src.charCodeAt(l))return!1;if(e)return!1;if(l+4>=a)return!1;if(126!==t.src.charCodeAt(l+1))return!1;if(t.level>=t.options.maxNesting)return!1;if(r=l>0?t.src.charCodeAt(l-1):-1,s=t.src.charCodeAt(l+2),126===r)return!1;if(126===s)return!1;if(32===s||10===s)return!1;for(n=l+2;n<a&&126===t.src.charCodeAt(n);)n++;if(n>l+3)return t.pos+=n-l,e||(t.pending+=t.src.slice(l,n)),!0;for(t.pos=l+2,o=1;t.pos+1<a;){if(126===t.src.charCodeAt(t.pos)&&126===t.src.charCodeAt(t.pos+1)&&(r=t.src.charCodeAt(t.pos-1),126!==(s=t.pos+2<a?t.src.charCodeAt(t.pos+2):-1)&&126!==r&&(32!==r&&10!==r?o--:32!==s&&10!==s&&o++,o<=0))){i=!0;break}t.parser.skipToken(t)}return i?(t.posMax=t.pos,t.pos=l+2,e||(t.push({type:"del_open",level:t.level++}),t.parser.tokenize(t),t.push({type:"del_close",level:--t.level})),t.pos=t.posMax+2,t.posMax=a,!0):(t.pos=l,!1)}],["ins",function(t,e){var i,n,o,r,s,a=t.posMax,l=t.pos;if(43!==t.src.charCodeAt(l))return!1;if(e)return!1;if(l+4>=a)return!1;if(43!==t.src.charCodeAt(l+1))return!1;if(t.level>=t.options.maxNesting)return!1;if(r=l>0?t.src.charCodeAt(l-1):-1,s=t.src.charCodeAt(l+2),43===r)return!1;if(43===s)return!1;if(32===s||10===s)return!1;for(n=l+2;n<a&&43===t.src.charCodeAt(n);)n++;if(n!==l+2)return t.pos+=n-l,e||(t.pending+=t.src.slice(l,n)),!0;for(t.pos=l+2,o=1;t.pos+1<a;){if(43===t.src.charCodeAt(t.pos)&&43===t.src.charCodeAt(t.pos+1)&&(r=t.src.charCodeAt(t.pos-1),43!==(s=t.pos+2<a?t.src.charCodeAt(t.pos+2):-1)&&43!==r&&(32!==r&&10!==r?o--:32!==s&&10!==s&&o++,o<=0))){i=!0;break}t.parser.skipToken(t)}return i?(t.posMax=t.pos,t.pos=l+2,e||(t.push({type:"ins_open",level:t.level++}),t.parser.tokenize(t),t.push({type:"ins_close",level:--t.level})),t.pos=t.posMax+2,t.posMax=a,!0):(t.pos=l,!1)}],["mark",function(t,e){var i,n,o,r,s,a=t.posMax,l=t.pos;if(61!==t.src.charCodeAt(l))return!1;if(e)return!1;if(l+4>=a)return!1;if(61!==t.src.charCodeAt(l+1))return!1;if(t.level>=t.options.maxNesting)return!1;if(r=l>0?t.src.charCodeAt(l-1):-1,s=t.src.charCodeAt(l+2),61===r)return!1;if(61===s)return!1;if(32===s||10===s)return!1;for(n=l+2;n<a&&61===t.src.charCodeAt(n);)n++;if(n!==l+2)return t.pos+=n-l,e||(t.pending+=t.src.slice(l,n)),!0;for(t.pos=l+2,o=1;t.pos+1<a;){if(61===t.src.charCodeAt(t.pos)&&61===t.src.charCodeAt(t.pos+1)&&(r=t.src.charCodeAt(t.pos-1),61!==(s=t.pos+2<a?t.src.charCodeAt(t.pos+2):-1)&&61!==r&&(32!==r&&10!==r?o--:32!==s&&10!==s&&o++,o<=0))){i=!0;break}t.parser.skipToken(t)}return i?(t.posMax=t.pos,t.pos=l+2,e||(t.push({type:"mark_open",level:t.level++}),t.parser.tokenize(t),t.push({type:"mark_close",level:--t.level})),t.pos=t.posMax+2,t.posMax=a,!0):(t.pos=l,!1)}],["emphasis",function(t,e){var i,n,o,r,s,a,l,c=t.posMax,h=t.pos,u=t.src.charCodeAt(h);if(95!==u&&42!==u)return!1;if(e)return!1;if(i=(l=Ss(t,h)).delims,!l.can_open)return t.pos+=i,e||(t.pending+=t.src.slice(h,t.pos)),!0;if(t.level>=t.options.maxNesting)return!1;for(t.pos=h+i,a=[i];t.pos<c;)if(t.src.charCodeAt(t.pos)!==u)t.parser.skipToken(t);else{if(n=(l=Ss(t,t.pos)).delims,l.can_close){for(r=a.pop(),s=n;r!==s;){if(s<r){a.push(r-s);break}if(s-=r,0===a.length)break;t.pos+=r,r=a.pop()}if(0===a.length){i=r,o=!0;break}t.pos+=n;continue}l.can_open&&a.push(n),t.pos+=n}return o?(t.posMax=t.pos,t.pos=h+i,e||(2!==i&&3!==i||t.push({type:"strong_open",level:t.level++}),1!==i&&3!==i||t.push({type:"em_open",level:t.level++}),t.parser.tokenize(t),1!==i&&3!==i||t.push({type:"em_close",level:--t.level}),2!==i&&3!==i||t.push({type:"strong_close",level:--t.level})),t.pos=t.posMax+i,t.posMax=c,!0):(t.pos=h,!1)}],["sub",function(t,e){var i,n,o=t.posMax,r=t.pos;if(126!==t.src.charCodeAt(r))return!1;if(e)return!1;if(r+2>=o)return!1;if(t.level>=t.options.maxNesting)return!1;for(t.pos=r+1;t.pos<o;){if(126===t.src.charCodeAt(t.pos)){i=!0;break}t.parser.skipToken(t)}return i&&r+1!==t.pos?(n=t.src.slice(r+1,t.pos)).match(/(^|[^\\])(\\\\)*\s/)?(t.pos=r,!1):(t.posMax=t.pos,t.pos=r+1,e||t.push({type:"sub",level:t.level,content:n.replace(Es,"$1")}),t.pos=t.posMax+1,t.posMax=o,!0):(t.pos=r,!1)}],["sup",function(t,e){var i,n,o=t.posMax,r=t.pos;if(94!==t.src.charCodeAt(r))return!1;if(e)return!1;if(r+2>=o)return!1;if(t.level>=t.options.maxNesting)return!1;for(t.pos=r+1;t.pos<o;){if(94===t.src.charCodeAt(t.pos)){i=!0;break}t.parser.skipToken(t)}return i&&r+1!==t.pos?(n=t.src.slice(r+1,t.pos)).match(/(^|[^\\])(\\\\)*\s/)?(t.pos=r,!1):(t.posMax=t.pos,t.pos=r+1,e||t.push({type:"sup",level:t.level,content:n.replace(Ts,"$1")}),t.pos=t.posMax+1,t.posMax=o,!0):(t.pos=r,!1)}],["links",function(t,e){var i,n,o,r,s,a,l,c,h=!1,u=t.pos,d=t.posMax,p=t.pos,m=t.src.charCodeAt(p);if(33===m&&(h=!0,m=t.src.charCodeAt(++p)),91!==m)return!1;if(t.level>=t.options.maxNesting)return!1;if(i=p+1,(n=Hr(t,p))<0)return!1;if((a=n+1)<d&&40===t.src.charCodeAt(a)){for(a++;a<d&&(32===(c=t.src.charCodeAt(a))||10===c);a++);if(a>=d)return!1;for(p=a,Wr(t,a)?(r=t.linkContent,a=t.pos):r="",p=a;a<d&&(32===(c=t.src.charCodeAt(a))||10===c);a++);if(a<d&&p!==a&&Gr(t,a))for(s=t.linkContent,a=t.pos;a<d&&(32===(c=t.src.charCodeAt(a))||10===c);a++);else s="";if(a>=d||41!==t.src.charCodeAt(a))return t.pos=u,!1;a++}else{if(t.linkLevel>0)return!1;for(;a<d&&(32===(c=t.src.charCodeAt(a))||10===c);a++);if(a<d&&91===t.src.charCodeAt(a)&&(p=a+1,(a=Hr(t,a))>=0?o=t.src.slice(p,a++):a=p-1),o||(void 0===o&&(a=n+1),o=t.src.slice(i,n)),!(l=t.env.references[Yr(o)]))return t.pos=u,!1;r=l.href,s=l.title}return e||(t.pos=i,t.posMax=n,h?t.push({type:"image",src:r,title:s,alt:t.src.substr(i,n-i),level:t.level}):(t.push({type:"link_open",href:r,title:s,level:t.level++}),t.linkLevel++,t.parser.tokenize(t),t.linkLevel--,t.push({type:"link_close",level:--t.level}))),t.pos=a,t.posMax=d,!0}],["footnote_inline",function(t,e){var i,n,o,r,s=t.posMax,a=t.pos;return!(a+2>=s)&&(94===t.src.charCodeAt(a)&&(91===t.src.charCodeAt(a+1)&&(!(t.level>=t.options.maxNesting)&&(i=a+2,!((n=Hr(t,a+1))<0)&&(e||(t.env.footnotes||(t.env.footnotes={}),t.env.footnotes.list||(t.env.footnotes.list=[]),o=t.env.footnotes.list.length,t.pos=i,t.posMax=n,t.push({type:"footnote_ref",id:o,level:t.level}),t.linkLevel++,r=t.tokens.length,t.parser.tokenize(t),t.env.footnotes.list[o]={tokens:t.tokens.splice(r)},t.linkLevel--),t.pos=n+1,t.posMax=s,!0)))))}],["footnote_ref",function(t,e){var i,n,o,r,s=t.posMax,a=t.pos;if(a+3>s)return!1;if(!t.env.footnotes||!t.env.footnotes.refs)return!1;if(91!==t.src.charCodeAt(a))return!1;if(94!==t.src.charCodeAt(a+1))return!1;if(t.level>=t.options.maxNesting)return!1;for(n=a+2;n<s;n++){if(32===t.src.charCodeAt(n))return!1;if(10===t.src.charCodeAt(n))return!1;if(93===t.src.charCodeAt(n))break}return n!==a+2&&(!(n>=s)&&(n++,i=t.src.slice(a+2,n-1),void 0!==t.env.footnotes.refs[":"+i]&&(e||(t.env.footnotes.list||(t.env.footnotes.list=[]),t.env.footnotes.refs[":"+i]<0?(o=t.env.footnotes.list.length,t.env.footnotes.list[o]={label:i,count:0},t.env.footnotes.refs[":"+i]=o):o=t.env.footnotes.refs[":"+i],r=t.env.footnotes.list[o].count,t.env.footnotes.list[o].count++,t.push({type:"footnote_ref",id:o,subId:r,level:t.level})),t.pos=n,t.posMax=s,!0)))}],["autolink",function(t,e){var i,n,o,r,s,a=t.pos;return 60===t.src.charCodeAt(a)&&(!((i=t.src.slice(a)).indexOf(">")<0)&&((n=i.match($s))?!(Ms.indexOf(n[1].toLowerCase())<0)&&(s=Vr(r=n[0].slice(1,-1)),!!t.parser.validateLink(r)&&(e||(t.push({type:"link_open",href:s,level:t.level}),t.push({type:"text",content:r,level:t.level+1}),t.push({type:"link_close",level:t.level})),t.pos+=n[0].length,!0)):!!(o=i.match(Ds))&&(s=Vr("mailto:"+(r=o[0].slice(1,-1))),!!t.parser.validateLink(s)&&(e||(t.push({type:"link_open",href:s,level:t.level}),t.push({type:"text",content:r,level:t.level+1}),t.push({type:"link_close",level:t.level})),t.pos+=o[0].length,!0))))}],["htmltag",function(t,e){var i,n,o,r=t.pos;return!!t.options.html&&(o=t.posMax,!(60!==t.src.charCodeAt(r)||r+2>=o)&&(!(33!==(i=t.src.charCodeAt(r+1))&&63!==i&&47!==i&&!function(t){var e=32|t;return e>=97&&e<=122}(i))&&(!!(n=t.src.slice(r).match(Is))&&(e||t.push({type:"htmltag",content:t.src.slice(r,r+n[0].length),level:t.level}),t.pos+=n[0].length,!0))))}],["entity",function(t,e){var i,n,o=t.pos,r=t.posMax;if(38!==t.src.charCodeAt(o))return!1;if(o+1<r)if(35===t.src.charCodeAt(o+1)){if(n=t.src.slice(o).match(Ns))return e||(i="x"===n[1][0].toLowerCase()?parseInt(n[1].slice(1),16):parseInt(n[1],10),t.pending+=Tr(i)?Mr(i):Mr(65533)),t.pos+=n[0].length,!0}else if(n=t.src.slice(o).match(zs)){var s=wr(n[1]);if(n[1]!==s)return e||(t.pending+=s),t.pos+=n[0].length,!0}return e||(t.pending+="&"),t.pos++,!0}]];function Bs(){this.ruler=new jr;for(var t=0;t<Rs.length;t++)this.ruler.push(Rs[t][0],Rs[t][1]);this.validateLink=Fs}function Fs(t){var e=t.trim().toLowerCase();return-1===(e=Lr(e)).indexOf(":")||-1===["vbscript","javascript","file","data"].indexOf(e.split(":")[0])}Bs.prototype.skipToken=function(t){var e,i,n=this.ruler.getRules(""),o=n.length,r=t.pos;if((i=t.cacheGet(r))>0)t.pos=i;else{for(e=0;e<o;e++)if(n[e](t,!0))return void t.cacheSet(r,t.pos);t.pos++,t.cacheSet(r,t.pos)}},Bs.prototype.tokenize=function(t){for(var e,i,n=this.ruler.getRules(""),o=n.length,r=t.posMax;t.pos<r;){for(i=0;i<o&&!(e=n[i](t,!1));i++);if(e){if(t.pos>=r)break}else t.pending+=t.src[t.pos++]}t.pending&&t.pushPending()},Bs.prototype.parse=function(t,e,i,n){var o=new Zr(t,this,e,i,n);this.tokenize(o)};var qs={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["block","inline","references","replacements","smartquotes","references","abbr2","footnote_tail"]},block:{rules:["blockquote","code","fences","footnote","heading","hr","htmlblock","lheading","list","paragraph","table"]},inline:{rules:["autolink","backticks","del","emphasis","entity","escape","footnote_ref","htmltag","links","newline","text"]}}},full:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{},block:{},inline:{}}},commonmark:{options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["block","inline","references","abbr2"]},block:{rules:["blockquote","code","fences","heading","hr","htmlblock","lheading","list","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","htmltag","links","newline","text"]}}}};function js(t,e,i){this.src=e,this.env=i,this.options=t.options,this.tokens=[],this.inlineMode=!1,this.inline=t.inline,this.block=t.block,this.renderer=t.renderer,this.typographer=t.typographer}function Zs(t,e){"string"!=typeof t&&(e=t,t="default"),e&&null!=e.linkify&&console.warn("linkify option is removed. Use linkify plugin instead:\n\nimport Remarkable from 'remarkable';\nimport linkify from 'remarkable/linkify';\nnew Remarkable().use(linkify)\n"),this.inline=new Bs,this.block=new vs,this.core=new as,this.renderer=new qr,this.ruler=new jr,this.options={},this.configure(qs[t]),this.set(e||{})}Zs.prototype.set=function(t){Cr(this.options,t)},Zs.prototype.configure=function(t){var e=this;if(!t)throw new Error("Wrong `remarkable` preset, check name/content");t.options&&e.set(t.options),t.components&&Object.keys(t.components).forEach((function(i){t.components[i].rules&&e[i].ruler.enable(t.components[i].rules,!0)}))},Zs.prototype.use=function(t,e){return t(this,e),this},Zs.prototype.parse=function(t,e){var i=new js(this,t,e);return this.core.process(i),i.tokens},Zs.prototype.render=function(t,e){return e=e||{},this.renderer.render(this.parse(t,e),this.options,e)},Zs.prototype.parseInline=function(t,e){var i=new js(this,t,e);return i.inlineMode=!0,this.core.process(i),i.tokens},Zs.prototype.renderInline=function(t,e){return e=e||{},this.renderer.render(this.parseInline(t,e),this.options,e)};const Hs=new Zs,Us=new br("@",["contact","fields","globals","urns"]),Vs=new br("@",["contact","fields","globals","urns","results","input","run","child","parent","node","webhook","ticket","trigger","resume"]);const Ws=ct(class extends ht{constructor(t){if(super(t),t.type!==lt)throw new Error("renderMarkdown only supports child expressions")}update(t,[e]){return this.render(e)}render(t){return void 0===this.value&&(this.value=t),O`${fr(Hs.render(this.value))}`}}),Gs=(t,e)=>{if(t.signature){const i=t.signature.indexOf("("),n=t.signature.substr(0,i),o=t.signature.substr(i);return O`
479
479
  <div style="${e?"font-weight: 400":""}">
480
480
  <div style="display:inline-block;margin-right: 5px">ƒ</div>
481
481
  <div style="display:inline-block">${n}</div>
@@ -1680,7 +1680,7 @@ function t(t,e,i,n){var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPro
1680
1680
  </div>`:null;return O`<div class="counter${i?" attention":""}"><div class="counts">${this.count}${this.segments>1||t?O`<div class="segments">
1681
1681
  &nbsp;/&nbsp;${this.segments}${t?O`+`:null}
1682
1682
  <div></div>
1683
- </div>`:null}</div> ${n}</div></div>`}}t([it({type:String})],fa.prototype,"text",void 0),t([it({type:Number})],fa.prototype,"count",void 0),t([it({type:Number,attribute:!1})],fa.prototype,"segments",void 0),t([it({type:Object,attribute:!1})],fa.prototype,"extended",void 0);class ga extends tt{prepareData(t){return t}refresh(){this.store.makeRequest(this.url,{prepareData:this.prepareData,force:!0})}handleStoreUpdated(t){t.detail.url===this.url&&(this.data=t.detail.data,this.fireCustomEvent(de.Refreshed,{data:this.data}))}updated(t){super.updated(t),t.has("url")&&this.url&&this.store.makeRequest(this.url,{prepareData:this.prepareData})}connectedCallback(){super.connectedCallback(),this.store=document.querySelector("temba-store"),this.handleStoreUpdated=this.handleStoreUpdated.bind(this),this.prepareData=this.prepareData.bind(this),this.store&&this.store.addEventListener(de.StoreUpdated,this.handleStoreUpdated)}disconnectedCallback(){super.disconnectedCallback(),this.store&&this.store.removeEventListener(de.StoreUpdated,this.handleStoreUpdated)}}t([it({type:String})],ga.prototype,"url",void 0),t([it({type:Object,attribute:!1})],ga.prototype,"data",void 0);class va extends ga{prepareData(t){return t&&t.length>0?((t=t[0]).groups.forEach((t=>{t.is_dynamic=this.store.isDynamicGroup(t.uuid)})),t.groups.sort(((t,e)=>{if(!t.is_dynamic||!e.is_dynamic){if(t.is_dynamic)return-1;if(e.is_dynamic)return 1}return t.name.localeCompare(e.name)})),t):null}updateStoreContact(t){this.store.updateCache(`/api/v2/contacts.json?uuid=${this.contact}`,t)}updated(t){super.updated(t),t.has("contact")&&(this.contact?this.url=`/api/v2/contacts.json?uuid=${this.contact}`:this.url=null)}}t([it({type:String})],va.prototype,"contact",void 0),t([it({type:Object,attribute:!1})],va.prototype,"data",void 0);class ya extends va{constructor(){super(),this.contactsEndpoint="/api/v2/contacts.json",this.currentChat="",this.currentNote="",this.showDetails=!0,this.toolbar=!1,this.monitor=!1,this.currentTicket=null,this.currentContact=null,this.agent="",this.refreshInterval=null,this.showDetails=ae(le.TICKET_SHOW_DETAILS)}static get styles(){return r`
1683
+ </div>`:null}</div> ${n}</div></div>`}}t([it({type:String})],fa.prototype,"text",void 0),t([it({type:Number})],fa.prototype,"count",void 0),t([it({type:Number,attribute:!1})],fa.prototype,"segments",void 0),t([it({type:Object,attribute:!1})],fa.prototype,"extended",void 0);class ga extends tt{prepareData(t){return t}refresh(){this.store.makeRequest(this.url,{prepareData:this.prepareData,force:!0})}handleStoreUpdated(t){t.detail.url===this.url&&(this.data=t.detail.data,this.fireCustomEvent(de.Refreshed,{data:this.data}))}updated(t){super.updated(t),t.has("url")&&this.url&&this.store.makeRequest(this.url,{prepareData:this.prepareData})}connectedCallback(){super.connectedCallback(),this.store=document.querySelector("temba-store"),this.handleStoreUpdated=this.handleStoreUpdated.bind(this),this.prepareData=this.prepareData.bind(this),this.store&&this.store.addEventListener(de.StoreUpdated,this.handleStoreUpdated)}disconnectedCallback(){super.disconnectedCallback(),this.store&&this.store.removeEventListener(de.StoreUpdated,this.handleStoreUpdated)}}t([it({type:String})],ga.prototype,"url",void 0),t([it({type:Object,attribute:!1})],ga.prototype,"data",void 0);class va extends ga{constructor(){super(...arguments),this.endpoint="/api/v2/contacts.json?uuid="}prepareData(t){return t&&t.length>0?((t=t[0]).groups.forEach((t=>{t.is_dynamic=this.store.isDynamicGroup(t.uuid)})),t.groups.sort(((t,e)=>{if(!t.is_dynamic||!e.is_dynamic){if(t.is_dynamic)return-1;if(e.is_dynamic)return 1}return t.name.localeCompare(e.name)})),t):null}updateStoreContact(t){this.store.updateCache(`${this.endpoint}${this.contact}`,t)}updated(t){super.updated(t),t.has("contact")&&(this.contact?this.url=`${this.endpoint}${this.contact}`:this.url=null)}}t([it({type:String})],va.prototype,"contact",void 0),t([it({type:Object,attribute:!1})],va.prototype,"data",void 0),t([it({type:String})],va.prototype,"endpoint",void 0);class ya extends va{constructor(){super(),this.contactsEndpoint="/api/v2/contacts.json",this.currentChat="",this.currentNote="",this.showDetails=!0,this.toolbar=!1,this.monitor=!1,this.currentTicket=null,this.currentContact=null,this.agent="",this.refreshInterval=null,this.showDetails=ae(le.TICKET_SHOW_DETAILS)}static get styles(){return r`
1684
1684
  .left-pane {
1685
1685
  box-shadow: -13px 10px 7px 14px rgba(0, 0, 0, 0);
1686
1686
  transition: box-shadow 600ms linear;
@@ -1850,6 +1850,7 @@ function t(t,e,i,n){var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPro
1850
1850
  ></temba-button>
1851
1851
  </div>`:O` <div
1852
1852
  class="chatbox ${this.toolbar?"full":""}"
1853
+ style="${"active"!==this.currentContact.status?"display:none":""}"
1853
1854
  >
1854
1855
  <temba-completion
1855
1856
  @change=${this.handleChatChange}
@@ -2145,7 +2146,6 @@ function t(t,e,i,n){var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPro
2145
2146
  }
2146
2147
 
2147
2148
  .grouping.verbose temba-icon {
2148
- margin-top: 3px;
2149
2149
  }
2150
2150
 
2151
2151
  .grouping.verbose > .event,
@@ -2380,7 +2380,6 @@ function t(t,e,i,n){var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPro
2380
2380
 
2381
2381
  .flow_exited temba-icon,
2382
2382
  .flow_entered temba-icon {
2383
- margin-top: 5px;
2384
2383
  }
2385
2384
 
2386
2385
  .event {
@@ -2460,7 +2459,6 @@ function t(t,e,i,n){var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPro
2460
2459
  }
2461
2460
 
2462
2461
  temba-icon[name='check'] {
2463
- margin-top: 3px;
2464
2462
  }
2465
2463
 
2466
2464
  .attn {
@@ -3298,11 +3296,6 @@ function t(t,e,i,n){var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPro
3298
3296
  --color1: var(--icon-color);
3299
3297
  }
3300
3298
 
3301
- :host([id='flow']),
3302
- :host([name='flow']) {
3303
- padding-bottom: 0.2em;
3304
- }
3305
-
3306
3299
  .sheet {
3307
3300
  fill: var(--icon-color);
3308
3301
  transform: scale(1);
@@ -4175,6 +4168,7 @@ function t(t,e,i,n){var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPro
4175
4168
 
4176
4169
  temba-icon {
4177
4170
  margin-right: 0.3em;
4171
+ padding-bottom: 0.1em;
4178
4172
  }
4179
4173
 
4180
4174
  .label.clickable .mask:hover {
@@ -4185,50 +4179,35 @@ function t(t,e,i,n){var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPro
4185
4179
  font-size: 0.8em;
4186
4180
  font-weight: 400;
4187
4181
  border-radius: 12px;
4182
+ box-shadow: 0 0.04em 0.08em rgba(0, 0, 0, 0.15);
4183
+ background: var(--color-overlay-light);
4184
+ color: var(--color-overlay-light-text);
4185
+ --icon-color: var(--color-overlay-light-text);
4186
+ text-shadow: none;
4187
+ }
4188
+
4189
+ .danger {
4188
4190
  background: tomato;
4189
4191
  color: #fff;
4190
- text-shadow: 0 0.04em 0.04em rgba(0, 0, 0, 0.35);
4192
+ --icon-color: #fff;
4191
4193
  }
4192
4194
 
4193
4195
  .primary {
4194
- background: var(--color-label-primary);
4195
- color: var(--color-label-primary-text);
4196
- --icon-color: var(--color-label-primary-text);
4196
+ background: var(--color-primary-dark);
4197
+ color: var(--color-text-light);
4198
+ --icon-color: var(--color-text-light);
4197
4199
  }
4198
4200
 
4199
4201
  .secondary {
4200
- background: var(--color-label-secondary);
4201
- color: var(--color-label-secondary-text);
4202
- --icon-color: var(--color-label-secondary-text);
4203
- text-shadow: none;
4204
- }
4205
-
4206
- .tertiary {
4207
- background: var(--color-label-tertiary);
4208
- color: var(--color-label-tertiary-text);
4209
- --icon-color: var(--color-label-tertiary-text);
4210
- text-shadow: none;
4211
- }
4212
-
4213
- .tertiary {
4214
- background: var(--color-label-tertiary);
4215
- color: var(--color-label-tertiary-text);
4216
- --icon-color: var(--color-label-tertiary-text);
4217
- text-shadow: none;
4202
+ background: var(--color-secondary-dark);
4203
+ color: var(--color-text-light);
4204
+ --icon-color: var(--color-text-light);
4218
4205
  }
4219
4206
 
4220
4207
  .tertiary {
4221
- background: var(--color-label-tertiary);
4222
- color: var(--color-label-tertiary-text);
4223
- --icon-color: var(--color-label-tertiary-text);
4224
- text-shadow: none;
4225
- }
4226
-
4227
- .light {
4228
- background: var(--color-overlay-light);
4229
- color: var(--color-overlay-light-text);
4230
- --icon-color: var(--color-overlay-light-text);
4231
- text-shadow: none;
4208
+ background: var(--color-tertiary);
4209
+ color: var(--color-text-light);
4210
+ --icon-color: var(--color-text-light);
4232
4211
  }
4233
4212
 
4234
4213
  .dark {
@@ -4245,9 +4224,9 @@ function t(t,e,i,n){var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPro
4245
4224
  .shadow {
4246
4225
  box-shadow: 1px 1px 2px 1px rgba(0, 0, 0, 0.1);
4247
4226
  }
4248
- `}render(){const t=this.backgroundColor&&this.textColor?{background:`${this.backgroundColor}`,color:`${this.textColor}`}:{};return O`
4227
+ `}render(){const t={};return this.backgroundColor&&(t.background=this.backgroundColor),this.textColor&&(t.color=this.textColor,t["--icon-color"]=this.textColor),O`
4249
4228
  <div
4250
- class="label ${Gt({clickable:this.clickable,primary:this.primary,secondary:this.secondary,tertiary:this.tertiary,light:this.light,dark:this.dark,shadow:this.shadow})}"
4229
+ class="label ${Gt({clickable:this.clickable,primary:this.primary,secondary:this.secondary,tertiary:this.tertiary,shadow:this.shadow,danger:this.danger})}"
4251
4230
  style=${ut(t)}
4252
4231
  >
4253
4232
  <div class="mask">
@@ -4255,7 +4234,7 @@ function t(t,e,i,n){var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPro
4255
4234
  <slot></slot>
4256
4235
  </div>
4257
4236
  </div>
4258
- `}}t([it({type:Boolean})],Ka.prototype,"clickable",void 0),t([it({type:Boolean})],Ka.prototype,"primary",void 0),t([it({type:Boolean})],Ka.prototype,"secondary",void 0),t([it({type:Boolean})],Ka.prototype,"tertiary",void 0),t([it({type:Boolean})],Ka.prototype,"light",void 0),t([it({type:Boolean})],Ka.prototype,"dark",void 0),t([it({type:Boolean})],Ka.prototype,"shadow",void 0),t([it({type:String})],Ka.prototype,"icon",void 0),t([it()],Ka.prototype,"backgroundColor",void 0),t([it()],Ka.prototype,"textColor",void 0);class Ja extends va{constructor(){super(...arguments),this.size=20}static get styles(){return r`
4237
+ `}}t([it({type:Boolean})],Ka.prototype,"clickable",void 0),t([it({type:Boolean})],Ka.prototype,"primary",void 0),t([it({type:Boolean})],Ka.prototype,"secondary",void 0),t([it({type:Boolean})],Ka.prototype,"tertiary",void 0),t([it({type:Boolean})],Ka.prototype,"danger",void 0),t([it({type:Boolean})],Ka.prototype,"dark",void 0),t([it({type:Boolean})],Ka.prototype,"shadow",void 0),t([it({type:String})],Ka.prototype,"icon",void 0),t([it()],Ka.prototype,"backgroundColor",void 0),t([it()],Ka.prototype,"textColor",void 0);class Ja extends va{constructor(){super(...arguments),this.size=20}static get styles(){return r`
4259
4238
  :host {
4260
4239
  display: flex;
4261
4240
  }
@@ -4783,7 +4762,7 @@ function t(t,e,i,n){var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPro
4783
4762
  color: #999;
4784
4763
  padding: 0em 1em;
4785
4764
  }
4786
- `}firstUpdated(t){super.firstUpdated(t),this.handleMouseMove=this.handleMouseMove.bind(this),this.handleMouseUp=this.handleMouseUp.bind(this)}updated(t){t.has("value")&&this.updateCircle()}updateValue(t){const e=this.shadowRoot.querySelector(".track"),i=(t.pageX-e.offsetLeft)/e.offsetWidth,n=(this.max-this.min)*i+this.min;this.value=""+Math.max(this.min,Math.min(Math.round(n),this.max))}handleMouseMove(t){this.grabbed&&this.updateValue(t)}handleTrackDown(t){this.grabbed=!0,document.addEventListener("mousemove",this.handleMouseMove),document.addEventListener("mouseup",this.handleMouseUp),document.querySelector("html").classList.add("dragging"),this.updateValue(t),this.requestUpdate()}handleMouseUp(t){this.grabbed=!1,this.updateValue(t),this.requestUpdate(),document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp),document.querySelector("html").classList.remove("dragging")}updateCircle(){const t=this.shadowRoot.querySelector(".track"),e=this.shadowRoot.querySelector(".pre"),i=this.max-this.min,n=(parseInt(this.value)-this.min)/i,o=t.offsetWidth*n;this.circleX=o+(e?e.offsetWidth:0),this.requestUpdate()}render(){return O` <div class="${Gt({grabbed:this.grabbed})}">
4765
+ `}firstUpdated(t){super.firstUpdated(t),this.handleMouseMove=this.handleMouseMove.bind(this),this.handleMouseUp=this.handleMouseUp.bind(this)}updated(t){t.has("value")&&this.updateCircle()}updateValue(t){const e=this.shadowRoot.querySelector(".track"),i=(t.pageX-e.offsetLeft)/e.offsetWidth,n=(this.max-this.min)*i+this.min;this.value=""+Math.max(this.min,Math.min(Math.round(n),this.max))}handleMouseMove(t){this.grabbed&&this.updateValue(t)}handleTrackDown(t){this.grabbed=!0,document.addEventListener("mousemove",this.handleMouseMove),document.addEventListener("mouseup",this.handleMouseUp),document.querySelector("html").classList.add("dragging"),this.updateValue(t),this.requestUpdate()}handleMouseUp(t){this.grabbed=!1,this.updateValue(t),this.requestUpdate(),document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp),document.querySelector("html").classList.remove("dragging")}updateCircle(){const t=this.shadowRoot.querySelector(".track"),e=this.shadowRoot.querySelector(".pre"),i=this.max-this.min;let n=parseInt(this.value);!n||n<this.min?n=this.min:n>this.max&&(n=this.max),this.value=""+n;const o=(n-this.min)/i,r=t.offsetWidth*o;this.circleX=r+(e?e.offsetWidth:0),this.requestUpdate()}render(){return O` <div class="${Gt({grabbed:this.grabbed})}">
4787
4766
  <div
4788
4767
  style=${ut({left:this.circleX+"px"})}
4789
4768
  class="circle"
@@ -4794,7 +4773,7 @@ function t(t,e,i,n){var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPro
4794
4773
  <div class="track" @mousedown=${this.handleTrackDown}></div>
4795
4774
  ${this.range?O`<div class="post">${this.max}</div>`:null}
4796
4775
  </div>
4797
- </div>`}}function sl(t,e){window.customElements.get(t)||window.customElements.define(t,e)}t([it({type:Boolean})],rl.prototype,"range",void 0),t([it({type:Number})],rl.prototype,"min",void 0),t([it({type:Number})],rl.prototype,"max",void 0),sl("temba-anchor",Va),sl("temba-alert",Ia),sl("temba-store",dr),sl("temba-textinput",Ht),sl("temba-completion",ea),sl("temba-checkbox",rt),sl("temba-select",ta),sl("temba-options",pr),sl("temba-loading",sa),sl("temba-button",oa),sl("temba-omnibox",Fa),sl("temba-tip",Za),sl("temba-contact-name",Ja),sl("temba-contact-field",tl),sl("temba-contact-fields",Qa),sl("temba-urn",Xa),sl("temba-field",ra),sl("temba-dialog",na),sl("temba-modax",ia),sl("temba-charcount",fa),sl("temba-contact-history",Aa),sl("temba-contact-chat",ya),sl("temba-contact-details",Pa),sl("temba-ticket-list",Oa),sl("temba-list",La),sl("temba-label",Ka),sl("temba-menu",Ua),sl("temba-contact-search",Na),sl("temba-icon",za),sl("temba-dropdown",Wa),sl("temba-tabs",Ga),sl("temba-tab",Ya),sl("temba-contact-groups",class extends va{static get styles(){return r`
4776
+ </div>`}}function sl(t,e){window.customElements.get(t)||window.customElements.define(t,e)}t([it({type:Boolean})],rl.prototype,"range",void 0),t([it({type:Number})],rl.prototype,"min",void 0),t([it({type:Number})],rl.prototype,"max",void 0),sl("temba-anchor",Va),sl("temba-alert",Ia),sl("temba-store",dr),sl("temba-textinput",Ht),sl("temba-completion",ea),sl("temba-checkbox",rt),sl("temba-select",ta),sl("temba-options",pr),sl("temba-loading",sa),sl("temba-button",oa),sl("temba-omnibox",Fa),sl("temba-tip",Za),sl("temba-contact-name",Ja),sl("temba-contact-field",tl),sl("temba-contact-fields",Qa),sl("temba-urn",Xa),sl("temba-field",ra),sl("temba-dialog",na),sl("temba-modax",ia),sl("temba-charcount",fa),sl("temba-contact-history",Aa),sl("temba-contact-chat",ya),sl("temba-contact-details",Pa),sl("temba-ticket-list",Oa),sl("temba-list",La),sl("temba-label",Ka),sl("temba-menu",Ua),sl("temba-contact-search",Na),sl("temba-icon",za),sl("temba-dropdown",Wa),sl("temba-tabs",Ga),sl("temba-tab",Ya),sl("temba-contact-badges",class extends va{static get styles(){return r`
4798
4777
  temba-label {
4799
4778
  margin: 0.3em;
4800
4779
  }
@@ -4803,19 +4782,15 @@ function t(t,e,i,n){var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPro
4803
4782
  display: flex;
4804
4783
  flex-wrap: wrap;
4805
4784
  }
4806
-
4807
- .flow {
4808
- }
4809
4785
  `}render(){if(this.data){const t=el[this.data.status];return O`
4810
4786
  <div class="badges">
4811
4787
  ${t&&"active"!==this.data.status?O`
4812
4788
  <temba-label
4813
- class="status"
4814
4789
  icon="${t.icon}"
4815
4790
  onclick="goto(event)"
4816
4791
  href="/contact/${t.name.toLowerCase()}"
4817
- clickable
4818
4792
  secondary
4793
+ clickable
4819
4794
  shadow
4820
4795
  >
4821
4796
  ${t.name}
@@ -4823,12 +4798,11 @@ function t(t,e,i,n){var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPro
4823
4798
  `:null}
4824
4799
  ${this.data.flow?O`
4825
4800
  <temba-label
4826
- class="flow"
4827
4801
  icon="flow"
4828
4802
  onclick="goto(event)"
4829
4803
  href="/contact/?search=flow+%3D+${encodeURIComponent('"'+this.data.flow.name+'"')}"
4830
4804
  clickable
4831
- tertiary
4805
+ primary
4832
4806
  shadow
4833
4807
  >
4834
4808
  ${this.data.flow.name}
@@ -4836,7 +4810,6 @@ function t(t,e,i,n){var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPro
4836
4810
  `:null}
4837
4811
  ${this.data.language?O`
4838
4812
  <temba-label
4839
- class="language"
4840
4813
  icon="globe"
4841
4814
  onclick="goto(event)"
4842
4815
  href="/contact/?search=language+%3D+${encodeURIComponent('"'+this.data.language+'"')}"
@@ -4854,7 +4827,6 @@ function t(t,e,i,n){var o,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPro
4854
4827
  href="/contact/filter/${t.uuid}/"
4855
4828
  icon=${t.is_dynamic?"atom":"users"}
4856
4829
  clickable
4857
- light
4858
4830
  shadow
4859
4831
  >
4860
4832
  ${t.name}